/* Card-scale layouts deliberately scroll instead of reducing cards to icons. */
#app .hand-sort{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:9px 0 2px;font-size:12px;color:#c5d7bc}
#app .hand-sort select{padding:6px 9px;min-height:36px;font-size:13px;margin-left:6px}.hand-sort>span{font-size:11px;color:#91aa96}
#app .poker-hand{padding:23px 14px 16px;min-height:164px;gap:0;align-items:center;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;touch-action:pan-x pan-y;cursor:grab;scroll-padding-inline:16px}
#app .poker-hand .poker-card{width:calc(80px * var(--card-scale));height:calc(116px * var(--card-scale));flex:0 0 auto;margin-right:-13px;border-radius:8px;box-shadow:-3px 4px 10px #07120b66;transform:rotate(-2deg);user-select:none}
#app .poker-hand .poker-card:nth-child(even){transform:rotate(2deg)}#app .poker-hand .poker-card:last-child{margin-right:6px}
#app .poker-hand .poker-card.selected{transform:translateY(-16px) rotate(0);z-index:3;border:3px solid var(--lime);background:#fffce4;box-shadow:0 0 0 2px #cde79a55,0 9px 22px #0006}
#app .poker-hand .card-corner{font-size:24px;top:7px;left:7px}#app .poker-hand .card-corner small{font-size:19px}#app .poker-hand .card-pip{font-size:39px}.dragging,.dragging *{cursor:grabbing!important;user-select:none}
#app .special-hand{display:flex;align-items:stretch;overflow-x:auto;gap:12px;padding:12px 7px 14px;min-height:0;touch-action:pan-x pan-y;overscroll-behavior-x:contain;cursor:grab}
.special-card,#app .special-card.compact{position:relative;display:flex;flex-direction:column;width:176px;min-width:176px;min-height:288px;padding:9px;flex:none;border:2px solid #9aaa79;border-radius:12px;background:linear-gradient(155deg,#354b3e,#192a25);box-shadow:inset 0 0 0 3px #101d1977,0 5px 10px #0005;text-align:left;overflow:hidden}
.special-card.rarity-1{border-color:#73afb6}.special-card.rarity-2{border-color:#c0a0d9}.special-card.rarity-3{border-color:#e0bd68}
.special-card .special-top,#app .compact .special-top{display:flex;justify-content:space-between;gap:4px;margin:0 0 6px;font-size:10px;line-height:1.4;color:#e1e9c7}
.special-card .special-art,#app .compact .special-art{display:block;position:relative;inset:auto;width:100%;max-width:none;flex:0 0 auto;height:99px;min-height:99px;margin:0 0 7px;border:1px solid #a6bb8277;border-radius:6px;background:linear-gradient(145deg,#598c78,#253f51);overflow:hidden;opacity:1}
.special-art svg{display:block;width:100%;height:100%}.special-card .art-attack{background:linear-gradient(145deg,#b87649,#61404d)}.special-card .art-info{background:linear-gradient(145deg,#507eac,#393852)}.special-card .art-heal{background:linear-gradient(145deg,#739f79,#357f83)}.special-card .art-gold{background:linear-gradient(145deg,#aa9650,#4d7457)}
.special-card>strong,#app .compact>strong{font-size:16px;line-height:1.3;letter-spacing:-.04em;margin:6px 0;color:#fbf4d9;overflow:visible;white-space:normal}
.special-card>p,#app .compact>p{font-size:12px;line-height:1.6;color:#e0e7d8;background:#101e1866;border-radius:4px;padding:5px;display:block;-webkit-line-clamp:unset;overflow:visible;flex:1}
.special-card .card-cost{font-size:10px;line-height:1.5;color:#efd797;min-height:15px}.special-card .special-foot,#app .compact .special-foot{font-size:10px;margin-top:8px;padding-top:7px;color:#bfd3b8;display:flex;gap:5px;justify-content:space-between;line-height:1.4}.special-card .upgrade-note{font-size:10px;margin-top:5px}
.card-detail{grid-template-columns:220px minmax(0,1fr);gap:24px}.card-detail .special-card{width:220px;min-height:340px}.card-detail .special-card>p{font-size:14px}.card-detail .special-card>strong{font-size:20px}.card-detail .special-art{height:125px}.card-detail p{font-size:14px}.card-detail dl{font-size:12px;line-height:1.6}
#app .compact .special-top span:last-child{display:inline}
@media(max-width:650px){.card-detail{grid-template-columns:minmax(0,1fr)}.card-detail>div:first-child{width:min(240px,100%);margin:auto}}
.initiative-banner{display:flex;justify-content:space-between;gap:12px;padding:9px 12px;margin-bottom:10px;border:1px solid #a5be6c55;background:#45572c44;border-radius:6px;font-size:13px}.initiative-banner b{color:#dfedb2}.initiative-banner span{color:#b9caae;font-size:12px}
#app .hp-number{font-size:25px}#app .hp-number small{font-size:16px}#app .energy{font-size:15px}#app .hand-label>span{font-size:14px;white-space:normal}#app .right-tools,#app .right-tools .text-button{font-size:13px}#app .right-tools b{font-size:19px}
#app .currency{font-size:20px}#app .run-chip{font-size:25px}#app .enemy-resources{font-size:12px}#app .phase-label{font-size:12px}#app .selection-preview>strong{font-size:16px}#app .selection-preview>small{font-size:12px;line-height:1.5}#app .action-buttons button{min-height:44px!important;font-size:13px}#app .combat-controls{z-index:12;background:#1a2b24f5}
.node-after{font-size:11px;font-style:normal;color:#e6d8ac;line-height:1.4}.map-node{min-height:105px}.undiscovered-card{border:2px dashed #617363;border-radius:10px;min-height:275px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:repeating-linear-gradient(45deg,#203228,#203228 6px,#253a2e 7px,#253a2e 8px);color:#8ba28c}.undiscovered-card>b{font:60px Georgia}.undiscovered-card strong{font-size:20px}.discovery-stats{font-size:11px;line-height:1.5;color:#b9cdaf;margin-top:5px}
.settings-form input[type=range]{padding:0;width:160px;accent-color:#d0e99b}
.battle-cinema{position:fixed;inset:0;background:#0a1513f2;z-index:100;display:grid;place-items:center;padding:16px;backdrop-filter:blur(5px);overflow:auto}.cinema-table{width:min(850px,100%);border:1px solid #809961;border-radius:18px;background:radial-gradient(ellipse at center,#354e35,#152a23);padding:20px 25px;box-shadow:0 20px 100px #0009;text-align:center}.cinema-top{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#bccda9}.cinema-skip{border:1px solid #647954;border-radius:5px;padding:9px 12px;font-size:12px;color:#d7e3be}.cinema-board{display:flex;justify-content:center;gap:8px;margin:16px 0}.cinema-table h2{font-size:25px;color:#e2eebb;line-height:1.5;margin:14px 0}.cinema-match{display:flex;justify-content:center;align-items:center;gap:20px}.cinema-hand>div{display:flex;justify-content:center;gap:5px;padding:8px 0}.cinema-hand h3{font-size:21px;margin:5px 0}.cinema-hand>span{font-size:13px;color:#bfcea9}.versus{font-size:22px;color:#e9ac83}.cinema-hand .poker-card{width:49px;height:68px}.cinema-hand.entering{animation:deal-in .35s ease-out}.cinema-table.minimal *{animation:none!important;transition:none!important}.cinema-pass{display:block;font:800 46px Georgia;color:#e7af8c;padding:12px}.cinema-reason{font-size:15px;color:#ecb59a;margin:12px}.cinema-health{display:grid;grid-template-columns:1fr 1fr;gap:25px;text-align:left;margin-top:20px}.cinema-health>div{display:grid;grid-template-columns:1fr auto;gap:8px}.cinema-health b{font-size:20px}.cinema-health span{font-size:14px}.cinema-hp-track{grid-column:1/-1;height:9px;background:#1c2820;border-radius:3px;overflow:hidden}.cinema-hp-track i{display:block;height:100%;background:#d0e99b;width:var(--after);animation:hp-drop .45s ease-out}.cinema-table.event-damage{animation:impact .25s}.initiative-coin{display:grid;place-items:center;width:76px;height:76px;border:5px double #efd18c;border-radius:50%;background:#a68a40;color:#fff0bd;font-size:28px;margin:14px auto;animation:coin-turn .5s ease-out}
@keyframes deal-in{from{opacity:0;transform:translateY(60px) scale(.8)}to{opacity:1;transform:none}}@keyframes hp-drop{from{width:var(--before)}to{width:var(--after)}}@keyframes coin-turn{from{transform:rotateY(270deg)}to{transform:rotateY(0)}}@keyframes impact{25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}
@media(max-width:650px){#app .hand-sort{align-items:flex-start}.hand-sort>span{max-width:100px;text-align:right}#app .poker-hand .poker-card{width:calc(72px * var(--card-scale));height:calc(104px * var(--card-scale));margin-right:-10px}#app .poker-hand{min-height:150px}#app .special-card.compact{width:158px;min-width:158px;min-height:282px}#app .compact>strong{font-size:15px}#app .compact>p{font-size:12px}#app .hand-label>span{font-size:12px}#app .enemy-resources{font-size:12px}#app .hp-number{font-size:23px}.initiative-banner{flex-direction:column;gap:4px}.cinema-table{padding:12px}.cinema-table h2{font-size:19px}.cinema-top{font-size:10px}.cinema-skip{font-size:10px;padding:8px}.cinema-match{gap:7px;flex-wrap:wrap}.cinema-hand h3{font-size:17px}.cinema-hand .poker-card{width:39px;height:56px}.cinema-health{gap:15px}.cinema-health b{font-size:17px}.cinema-health span{font-size:12px}.card-detail .special-card{width:100%;min-width:0}.card-detail p{font-size:13px}}
@media(orientation:landscape) and (max-height:500px){#app .poker-hand .poker-card{width:66px;height:96px}#app .poker-hand{min-height:140px}#app .special-card.compact{width:160px;min-width:160px;min-height:255px}#app .compact>strong{font-size:15px}#app .compact>p{font-size:12px}#app .compact .special-art{height:75px;min-height:75px}.cinema-table{padding:9px 18px}.cinema-board{margin:5px}.cinema-board .poker-card{height:45px;width:33px}.cinema-table h2{font-size:18px;margin:5px}.cinema-hand h3{font-size:16px}.cinema-hand .poker-card{height:46px;width:33px}.cinema-hand>div{padding:3px}.cinema-health{margin-top:7px}.cinema-top{font-size:10px}.cinema-skip{padding:5px}.initiative-coin{width:50px;height:50px;font-size:20px}.cinema-pass{font-size:30px;padding:0}.cinema-reason{font-size:12px;margin:4px}.initiative-banner{padding:7px 10px}#app .opponent .health-sub{display:flex}}
.cinema-hand.enemy-entering{animation:enemy-deal-in .35s ease-out}@keyframes enemy-deal-in{from{opacity:0;transform:translateY(-60px) scale(.8)}to{opacity:1;transform:none}}
