/* Last-layer presentation rules for the 0.80 test. Equipped artwork stays 3:1. */
.weapon-slot.empty-weapon80{justify-content:center;padding:10px;gap:3px;min-height:70px}
.weapon-slot.empty-weapon80>.weapon-art,.weapon-slot.empty-weapon80>#weapon-action,.weapon-slot.empty-weapon80>small{display:none}
.deck-option[hidden],.filter-empty80[hidden],.planned80[hidden],.choice-hint80[hidden]{display:none!important}
.deck-filters80{display:flex;gap:10px;align-items:end;margin-bottom:8px;flex:none}
.deck-filters80 label{display:grid;gap:4px;flex:1;min-width:0;font-size:12px}
.deck-filters80 input,.deck-filters80 select,.options-extra80 select{width:100%;min-width:0;border:1px solid #47566a;background:#111c28;color:#edf3fa;border-radius:7px;padding:10px;font:inherit}
.picked-decks80{margin:4px 0 10px;font-size:12px;line-height:1.5;color:#e9cd83;flex:none}
.picked-flash80{animation:picked80 .6s ease-out}
@keyframes picked80{from{background:#75622f}to{background:transparent}}
.setup-heading #setup-back-button{flex:none;white-space:nowrap}
.choice-hint80{background:#243d50;border:1px solid #83cce7;border-radius:8px;padding:10px;margin:8px 0;color:#effaff;font-size:13px;line-height:1.5}
.choice-hint80 .inline-choice76{display:flex;gap:8px;align-items:center;flex-wrap:wrap;border:0;background:none;padding:0;min-width:0}
.choice-target80{outline:2px solid #85dce9!important;outline-offset:-2px}
.planned80{font-size:12px;color:#c5d5e3;margin:8px 0}
.planned80 summary{cursor:pointer;min-height:28px}
.planned80 p{margin:4px 0;overflow-wrap:anywhere}
.notice80{position:fixed;z-index:150;top:12px;left:50%;transform:translateX(-50%);max-width:calc(100vw - 24px);width:max-content;background:#192c3b;color:#f3f8ff;border:1px solid #80b6cc;border-radius:8px;padding:12px 16px;pointer-events:none;box-shadow:0 6px 20px #0007;font-size:14px}
.options-extra80{display:grid;gap:10px;margin-top:20px;border-top:1px solid #415363;padding-top:16px}
.options-extra80 label{display:flex;justify-content:space-between}.options-extra80 input{width:100%;accent-color:#dec47b;min-height:30px}.options-extra80 p{font-size:12px;color:#b3c6d5;line-height:1.5}
.background-shade80{position:fixed;inset:0;z-index:-1;pointer-events:none;background:rgb(0 0 0 / var(--background-dim80,0))}
body{isolation:isolate}body.solid-background80{background:#101820!important}
.network-locked80 #player-hand,.network-locked80 .weapon-action,.network-locked80 #end-turn-button,.network-locked80 #choice-options{opacity:.65;cursor:wait}
.pvp-connection{line-height:1.5;min-height:30px}
.pvp-search80{display:grid;grid-template-columns:1fr auto;gap:8px;margin:8px 0}
.pvp-search80 input{min-width:0;background:#13202c;color:#edf3fa;border:1px solid #526476;border-radius:6px;padding:10px}
button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid #8ce3f1;outline-offset:3px}
button:not(:disabled):active{filter:brightness(.9)}
/* Let the weapon row determine desktop height; history scrolls inside it. */
@media(min-width:721px){
 .combat-center .battle-log{display:flex;flex-direction:column;min-height:0}
 .combat-center .battle-log .log-heading{flex:none}
 .combat-center .battle-log #log-list{flex:1 1 0;height:0;min-height:0;max-height:none;overflow-y:auto}
}
@media(max-width:720px){
 .topbar .topbar-actions{display:flex;gap:5px}.topbar .brand-lockup{min-width:0}.topbar h1{font-size:17px;white-space:nowrap}.topbar .brand-mark{display:none}
 #battle-options80,#new-game-button,#end-turn-button,.weapon-action,.battle-view-tabs66 button,#setup-back-button,.random-deck-button,.deck-view-button,.pvp-dialog button,.choice-hint80 button{min-height:44px}
 #battle-options80{min-width:44px;padding:6px}.topbar #new-game-button{padding:6px 8px;min-height:44px}.turn-pill{padding:7px;font-size:11px;white-space:nowrap}
 .weapon-slot.empty-weapon80{min-height:62px;padding:8px}.weapon-slot.empty-weapon80 strong{font-size:12px}
 .deck-filters80{gap:6px}.deck-filters80 label:first-child{flex:1.2}.deck-filters80 input,.deck-filters80 select{padding:7px;font-size:12px;min-height:40px}.deck-filters80 button{font-size:12px;padding:6px;min-height:40px}
 .picked-decks80{font-size:11px;margin-bottom:5px}.setup-heading h2{font-size:18px}
 .combat-center{padding-top:5px!important}.combat-center .feedback-source761{inset:5px 7px auto 112px!important}
 body.battle-active66{--tray66:230px}#player-panel>.hand-heading{height:56px;min-height:56px}
 .battle-active66 .choice-hint80{position:fixed;bottom:calc(230px + env(safe-area-inset-bottom));left:8px;right:8px;z-index:44;margin:0;max-height:92px;overflow:auto;padding:8px}
 body.battle-active66.choosing-hand80{--tray66:326px}
 .choice-hint80 .inline-choice76 span{font-size:11px}.choice-hint80 .inline-choice76{gap:4px}
 .planned80{margin:5px 0}.planned80 summary{min-height:36px;padding-top:6px}
 .options-extra80 input{min-height:44px}.pvp-connection{font-size:12px}
}
@media(max-width:720px) and (max-height:600px){body.battle-active66{--tray66:186px}body.battle-active66.choosing-hand80{--tray66:282px}.battle-active66 .choice-hint80{bottom:calc(186px + env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){.picked-flash80{animation:none}}
