/* Keep the name on its own line and leave room for three/four Chinese glyphs. */
@media(min-width:1100px){main#game-board{grid-template-columns:minmax(0,1fr) 464px}}
.player-panel .inventory{grid-template-columns:repeat(5,minmax(72px,1fr)) 36px;overflow-x:auto;gap:4px;padding-bottom:5px;scrollbar-width:none}
.player-panel .inventory::-webkit-scrollbar{display:none}
@media(min-width:1100px){.player-panel .inventory{overflow:visible}}
@media(min-width:761px) and (max-width:1099px){.player-panel .inventory{grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible;row-gap:12px}}
.owned-card .owned-name{display:block;white-space:nowrap;overflow-wrap:normal;font-size:13px;line-height:1.6}
.owned-card{padding:6px 3px;flex:none;min-height:34px}
.owned-card .evolution-cost{white-space:normal}
.game-results{border:1px solid #d8dfcf;background:#fcfdf8;border-radius:18px;padding:25px;margin:20px 0;color:#304d3c}
.game-results[hidden]{display:none}.result-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.result-eyebrow{font-size:11px;letter-spacing:.15em;color:#89987a;margin:0 0 9px}.result-heading h2{font-size:25px;line-height:1.4;margin:0}.result-score{font-size:40px;font-weight:750;white-space:nowrap;letter-spacing:-1px;font-variant-numeric:tabular-nums}.result-meta{font-size:13px;color:#7b8971;margin:16px 0 24px}.result-grid{display:grid;grid-template-columns:1fr 1fr;gap:25px}.result-player{min-width:0}.result-player h3{font-size:17px;margin-bottom:14px}.action-stack{height:10px;display:flex;overflow:hidden;border-radius:8px;background:#e9ede2}.action-stack span{min-width:0}.action-stack .take{background:#70946e}.action-stack .capture{background:#dda064}.action-stack .reserve{background:#9c8db9}.action-stack .pass{background:#a6afa1}.action-legend{display:flex;flex-wrap:wrap;gap:7px 14px;font-size:12px;color:#63745a;margin:12px 0 18px}.action-legend span:before{content:'';display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:5px;background:#a6afa1}.action-legend .take:before{background:#70946e}.action-legend .capture:before{background:#dda064}.action-legend .reserve:before{background:#9c8db9}.result-metrics{display:grid;grid-template-columns:1fr auto;gap:10px;margin:0;padding:16px 0;border-top:1px solid #e2e7d8;border-bottom:1px solid #e2e7d8;font-size:13px}.result-metrics dt{color:#7b8971}.result-metrics dd{margin:0;font-weight:600}.result-player h4{font-size:13px;font-weight:500;color:#7b8971;margin:18px 0 10px}.result-permanent{display:flex;gap:14px;flex-wrap:wrap}.result-permanent>span{display:flex;gap:5px;align-items:center}.result-permanent img{width:26px;height:26px;object-fit:contain}.result-tier,.result-footnote{font-size:11px;color:#8b987e;line-height:1.9}.result-footnote{border-top:1px solid #e2e7d8;padding-top:15px;margin:20px 0 0}@media(max-width:650px){.game-results{padding:19px}.result-heading{gap:10px}.result-heading h2{font-size:20px}.result-score{font-size:31px}.result-grid{grid-template-columns:1fr;gap:26px}.result-meta{line-height:1.8}.result-player+ .result-player{border-top:1px solid #d8dfcf;padding-top:24px}}
.game-results{scroll-margin-top:100px}.settings .replay-import-link{display:block;text-align:center;padding:12px;margin:4px 0 8px;color:#315e43;font-size:15px;text-underline-offset:4px}
.difficulty-choice{gap:12px;min-height:88px}.difficulty-choice .difficulty-portrait{display:block;width:64px;height:64px;object-fit:contain;flex:0 0 64px;pointer-events:none}.difficulty-choice>span{min-width:0}.difficulty-choice strong{line-height:1.4}.difficulty-choice em{flex-shrink:0}.difficulty-choice[aria-checked=true]{box-shadow:inset 3px 0 0 #58916d}@media(max-width:480px){.difficulty-choice{gap:9px;padding:10px;min-height:78px}.difficulty-choice .difficulty-portrait{width:52px;height:56px;flex-basis:52px}.difficulty-choice strong{font-size:15px}.difficulty-choice small{font-size:12px}.difficulty-choice em{font-size:12px;padding:4px}}
.settings .setting-help.public-information-notice{color:#8a3c2a;background:#fff0e6;border-left:3px solid #bb6247;padding:12px 14px;font-size:13px;line-height:1.8;border-radius:4px;margin-top:12px}
.market .deck.selected{border-color:#397451;background:#e3efdf;box-shadow:0 0 0 3px #39745130;border-radius:9px}.market .deck.selected:hover{border-color:#397451}.market .deck.reservable>span:last-child{color:#315e43;background:#edf7e8}.market .deck.selected>span:last-child{background:#315f49;color:white}
.market .deck{width:100%;justify-self:stretch}#zoom{z-index:1000}
.result-dialog{width:min(900px,94vw);max-height:90dvh;overflow:auto;border:1px solid #ccd9c4;border-radius:18px;padding:24px;background:#fbfcf6;color:#304d3c}.result-dialog::backdrop{background:#152c25a6;backdrop-filter:blur(4px)}.result-dialog>.panel-title{gap:15px}.result-dialog>.panel-title h2{font-size:24px;margin:0}.result-dialog .game-results{margin:16px 0}.local-match-tools{margin:18px 0;font-size:13px;color:#75866c}.local-match-tools>div{display:flex;align-items:center;gap:20px;flex-wrap:wrap}.local-match-tools a{color:#315e43;text-underline-offset:4px}.local-match-tools p{line-height:1.8;margin:10px 0 0}.player-panel h3{gap:12px;line-height:1.5}.player-panel .score{flex-shrink:0}.game-header-right>a{color:#476b4d;font-size:14px}.thinking-heading{gap:10px}@media(max-width:650px){.result-dialog{padding:16px}.result-dialog .game-results{padding:16px}.result-dialog>.panel-title h2{font-size:21px}.player-panel h3{font-size:15px}}
