button,select{touch-action:manipulation}button:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #d1aa57;outline-offset:3px}
#search-count{display:none!important}
.deck-surface img[src$="back-legendary.jpg"]{transform:scaleX(1.025);transform-origin:right center}
.inventory{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));align-items:start;gap:4px}.inventory>.owned-column{min-width:0;width:100%;gap:3px}.owned-card{width:100%;white-space:normal;line-height:1.45;border:2px solid var(--owned-color);padding:5px 2px;background:white;overflow-wrap:anywhere}.owned-card.double-bonus{border-width:6px;border-style:double}.evolution-cost{display:flex;justify-content:center;flex-wrap:wrap;font-size:9px;font-weight:400;gap:1px;margin-top:4px}.evolution-cost>span{display:inline-flex;align-items:center;gap:1px}.evolution-cost>span:first-child{width:100%;justify-content:center;color:#879783}.inventory .evolution-cost img{width:15px;height:15px}.owned-card:hover{border-color:var(--owned-color);filter:brightness(.97)}
.deck{display:flex;justify-content:center;width:100%;padding:2px;border:2px solid transparent}.deck-surface{display:block;position:relative;height:149px;aspect-ratio:600/950;max-width:100%;border-radius:5px;overflow:hidden;box-shadow:0 3px 6px #19251826}.deck .deck-surface img{display:block;width:100%;height:100%;object-fit:fill;filter:contrast(1.035) saturate(1.04);border-radius:5px}.deck:hover{border-color:#9fb39a;background:#ffffff50}.deck>.deck-surface{position:relative;bottom:auto;right:auto;background:none;padding:0}.deck>span:last-child{z-index:1}.deck-preview{width:min(680px,82vw);max-height:70dvh;overflow:auto;padding:6px}.deck-preview h3{margin-bottom:5px}.deck-preview-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(75px,1fr));gap:10px;margin-top:12px}.deck-preview-grid>div{text-align:center}.deck-preview-grid .card-surface,#detail-art .deck-preview-grid .card-surface,#zoom .deck-preview-grid .card-surface{height:120px;max-width:100%;margin:auto}.deck-preview-grid small{display:block;font-size:10px;margin-top:4px}#card-dialog:has(.deck-preview){width:min(740px,94vw)}#zoom:has(.deck-preview){top:8vh}#detail-art .deck-preview{width:100%}
@media(min-width:1500px){.deck-surface{height:175px}}@media(max-width:1050px){.deck-surface{height:124px}}@media(max-width:760px){.deck-surface{height:110px}.inventory{gap:3px}.owned-card{font-size:9px}.deck-preview-grid .card-surface,#detail-art .deck-preview-grid .card-surface,#zoom .deck-preview-grid .card-surface{height:105px}}
.resource-dock{position:sticky;top:8px;z-index:8;background:#f3f5f2f5;border-radius:14px;padding:9px 0 5px;backdrop-filter:blur(8px)}
.bank-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:9px;font-size:11px;color:#758470}.bank-heading strong{color:#446449;white-space:nowrap}.bank-heading span{text-align:right;font-size:10px}
.ball-slot{min-width:0}.ball-slot>.ball-button{width:100%}.ball-button{min-height:98px}.ball-button.last-taken{box-shadow:inset 0 -3px #d2b266}
.ball-steps{display:flex;align-items:center;justify-content:space-between;gap:3px;margin-top:6px;background:white;border-radius:7px;border:1px solid #d4dfcc;padding:2px}.ball-steps button{width:32px;height:32px;border:0;border-radius:5px;background:#edf3e6;color:#375d3d;font-size:20px}.ball-steps span{font-size:12px;font-weight:600}.ball-steps button:disabled{opacity:.35}
#ball-quick-actions{min-height:38px;display:flex;justify-content:flex-start;align-items:center}.double-choice{padding:7px 12px;border:1px solid #bdd0ae;border-radius:7px;background:#f6faee;color:#486540;font-size:12px}
.premium{grid-template-columns:90px minmax(0,1fr) 90px minmax(0,1fr)}
.card{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.card img{pointer-events:none}.card.selected{box-shadow:0 0 0 2px #3c785036}.mini.last-move{background:#fff8e4}.owned-card.last-move{border-color:var(--owned-color);box-shadow:none}
.card:active{transform:translateY(0)}.last-action{font-size:12px;color:#576d4e;background:#ebf1e4;border-left:3px solid #a8bb8d;padding:9px 12px;border-radius:5px;margin-bottom:14px}
.score-progress{height:4px;width:100%;margin-top:10px;appearance:none;border:none;border-radius:4px;overflow:hidden;background:#eef2e8}.score-progress::-webkit-progress-bar{background:#eef2e8}.score-progress::-webkit-progress-value{background:#829b65}.own .score-progress::-webkit-progress-value{background:#3f7c56}.score-progress::-moz-progress-bar{background:#829b65}
.owned-cards{margin-top:9px}.owned-cards summary{cursor:pointer;color:#708565;font-size:11px;padding:4px 0}.player-panel .caption{margin-top:8px}.player-panel{padding:15px}
.table-heading .game-controls{width:100%;max-width:none;justify-content:flex-end}.table-heading #difficulty-label{margin-right:auto}.local,.local span{display:block}.evolution-cost>span:first-child{width:auto;color:inherit}.evolution-cost{margin-top:4px;gap:2px}
#selection{font-size:12px;line-height:1.6;min-height:48px}.payment-preview{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:6px;color:#74846c;font-size:11px}.payment-token{display:inline-flex;align-items:center;gap:2px;color:#36593b}.payment-token img{width:23px;height:23px;object-fit:contain}
#thinking:not([hidden]){display:block;padding-top:6px}.thinking-heading{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#466247}#thinking-time{color:#8b987f;font-size:11px;font-variant-numeric:tabular-nums}#search-progress{width:100%;height:5px;appearance:none;border:0;border-radius:5px;overflow:hidden;margin:9px 0;background:#e8efdf}#search-progress::-webkit-progress-bar{background:#e8efdf}#search-progress::-webkit-progress-value{background:#639660;transition:width .12s}#search-count{display:block;font-size:10px;color:#8b987f}.keyboard-hint{display:block;margin-top:9px;color:#a2ad98;text-align:center;font-size:10px}
#card-dialog{border:1px solid #d2dfca;border-radius:15px;padding:18px;width:min(430px,92vw);max-height:94dvh;color:#31513a;overflow:auto}#card-dialog::backdrop{background:#112e23b0;backdrop-filter:blur(5px)}#detail-art{display:flex;justify-content:center}#detail-art .card-surface{height:min(70dvh,680px);max-width:100%;filter:none}.history-box{margin-top:18px}aside{gap:12px}.decision{top:12px}
@media(max-width:1050px){.premium{grid-template-columns:65px minmax(0,1fr) 65px minmax(0,1fr)}}
@media(max-width:760px){
 body.has-game{padding-bottom:220px}main{padding-top:12px}.table-heading{gap:7px}.eyebrow{font-size:8px}.game-controls .turn{width:auto;text-align:right;font-size:10px}.local,.local span{display:block}
 .resource-dock{top:0;padding:7px 0 5px;border-bottom:1px solid #d9e3d2;border-radius:0}.bank-heading{margin-bottom:5px}.bank-heading span{font-size:8px}.ball-button{min-height:75px}.ball-button img{width:40px;height:40px;margin-top:8px}.ball-button .color-label{font-size:9px}.ball-button .count{font-size:11px;right:2px;top:3px}.ball-button .selected-count{left:3px;top:3px;min-width:16px;font-size:9px}.ball-steps button{width:24px;height:28px;font-size:17px}.ball-steps{gap:0}.ball-steps span{font-size:10px}
 .premium{grid-template-columns:55px minmax(0,1fr) 55px minmax(0,1fr)}.hint{font-size:10px;margin:8px 0 12px}.last-action{font-size:10px;padding:7px 9px}
 .has-game .decision{position:fixed;left:8px;right:8px;bottom:max(8px,env(safe-area-inset-bottom));top:auto;z-index:12;padding:12px 14px;border-color:#c2d2b6;box-shadow:0 -6px 35px #27482c20;max-height:44dvh;overflow-y:auto;background:#fffffff5;backdrop-filter:blur(8px)}
 .decision .panel-title{margin-bottom:6px}.decision #selection{font-size:11px;padding:7px 9px;min-height:34px}.decision #actions{max-height:90px;margin-top:5px}.decision .primary{margin-top:8px;padding:11px}.keyboard-hint{display:none}.decision .action{padding:7px;font-size:11px}#thinking:not([hidden]){padding-top:4px}#search-progress{margin:5px 0}.history-box{display:block;padding:15px}#history{max-height:120px}
 .inventory img{width:30px;height:30px}.player-panel{padding:13px}.table-area{min-width:0}footer{padding-bottom:20px}
}
.market{--market-card-height:149px}.market .tier:not(.premium){grid-template-columns:repeat(5,minmax(0,1fr))}.market .tier.premium{grid-template-columns:repeat(4,minmax(0,1fr))!important}.market .card-surface,.market .deck-surface{width:calc(var(--market-card-height)*600/950);height:auto;aspect-ratio:600/950;max-width:100%}.market .deck,.market .card{min-width:0;padding:2px;border-width:2px}.market .deck{width:fit-content;max-width:100%;justify-self:center}.market .deck-surface{flex-shrink:1}.market .deck .deck-surface img{width:100%;height:100%}
@media(min-width:1500px){.market{--market-card-height:175px}}@media(max-width:1050px){.market{--market-card-height:124px}}@media(max-width:760px){.market{--market-card-height:110px}.market .deck,.market .card{padding:1px}.table-heading .game-controls{flex-wrap:nowrap}.table-heading #difficulty-label{display:block;font-size:10px}.local span{font-size:10px}}
