
button{border:8px solid transparent;border-image-source:url('assets/ui_secondary.webp');border-image-slice:41 142 65 142;border-image-width:8px;border-image-repeat:stretch;padding:6px 12px;}

/* 实测内容内框作为九宫格切线，透明壳与活文字分层。 */
.modal,.stats{border:18px solid transparent;border-image-source:url('assets/ui_panel.webp');border-image-slice:103 168 227 143;border-image-width:18px;border-image-repeat:stretch;padding:14px;}
button.primary{border:8px solid transparent;border-image-source:url('assets/ui_primary.webp');border-image-slice:72 168 77 166;border-image-width:8px;border-image-repeat:stretch;padding:6px 12px;}
button.primary:active{border:8px solid transparent;border-image-source:url('assets/ui_pressed.webp');border-image-slice:90 81 83 85;border-image-width:8px;border-image-repeat:stretch;padding:6px 12px;}
.card,.slot,.lord{border:6px solid transparent;border-image-source:url('assets/ui_frame.webp');border-image-slice:101 78 113 99;border-image-width:6px;border-image-repeat:stretch;padding:3px;}

.modal,.stats{color:var(--paper);background:#28252a}.card,.slot,.lord{background:#29262b}.primary{background:#8e3028}.card{grid-template-rows:auto 62px auto}.card .portrait{height:62px;object-fit:contain}.slot .portrait{object-fit:contain}.lord{min-height:46px}.slot{height:70px}.small{padding:4px 7px}.modal{max-height:90dvh}.modal>button{width:100%}.modal-content{min-height:0}.title-copy{margin-top:0}.title-screen{justify-content:space-between;padding-top:28px}.title-copy h1{font-size:56px}.key-art{background-position:center center}.lord .bar{pointer-events:none}.lord{position:relative}.button-label{display:block;min-width:0}.fx-spell:after{content:"✦";position:absolute;inset:0;display:grid;place-items:center;color:#ffbe65;font-size:30px;pointer-events:none;animation:float .4s}.fx-press{animation:press .14s}@keyframes press{50%{transform:translateY(3px)}}

@media(max-width:500px){.slot{height:60px}.slot .portrait{height:38px;width:32px}.card{grid-template-rows:auto 48px auto;min-height:108px}.card .portrait{height:48px}.hand{min-height:114px}.selection{min-height:32px}.resource{margin:3px 0}.toast{padding:4px 2px}.title-copy h1{font-size:50px}.rewards .card{grid-template-rows:auto 78px auto}.rewards .portrait{height:78px}}

.hand{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible;gap:7px}.hand .card{width:100%;min-width:0}.hand-tools{display:flex;gap:6px}.battlefield{position:relative}.resource{font-size:13px}.hand-tools .small{font-size:11px;padding:4px}.toast{font-size:11px}.battle-screen .selection{margin-bottom:3px}.rewards .card-top{flex-wrap:wrap;justify-content:center}.rewards .card{min-width:0}
