/* Shared typography, colors and controls, informed by Primer / Radix principles. */
:root{--lab-bg:#f7f8fa;--lab-surface:#fff;--lab-ink:#1c3028;--lab-muted:#58685f;--lab-border:#dce3df;--lab-accent:#256348;--lab-soft:#eef5f0;--lab-radius:12px;--lab-shadow:0 8px 28px #19362a08;font-size:16px;color-scheme:light}
body{font-family:system-ui,-apple-system,"Segoe UI","Microsoft YaHei","PingFang SC",sans-serif;font-size:1rem;line-height:1.6;color:var(--lab-ink);background:var(--lab-bg)}button,input,select{font-family:inherit}button,a,input,select{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #78a58a;outline-offset:3px}button:disabled{cursor:default}::selection{background:#c8e5d3}
.lab-global-header{height:84px;padding:0 max(24px,4vw);display:flex;align-items:center;justify-content:space-between;gap:20px;background:#fff;border-bottom:1px solid var(--lab-border)}.lab-brand-link{display:flex;gap:12px;align-items:center;color:var(--lab-ink);text-decoration:none;font-size:18px;font-weight:650;line-height:1.4}.lab-brand-link img{width:40px;height:40px}.lab-brand-link small{display:block;font-size:13px;font-weight:400;color:var(--lab-muted);margin-top:4px}.lab-header-caption{font-size:14px;color:var(--lab-muted)}
.lab-tags{display:flex;gap:8px;flex-wrap:wrap}.lab-tags span{font-size:13px;padding:4px 10px;border:1px solid var(--lab-border);border-radius:6px;background:#fff;color:var(--lab-muted)}.lab-help{font-size:14px;line-height:1.8;color:var(--lab-muted)}.lab-callout{padding:16px;border:1px solid #d2e4d7;background:var(--lab-soft);border-radius:10px;display:flex;flex-direction:column;gap:4px;margin:20px 0}.lab-callout strong{font-size:16px;font-weight:600}.lab-callout span{font-size:14px;color:var(--lab-muted)}
/* Pokémon: preserve board proportions, increase readable UI text. */
.game-header{background:#fff;height:84px}.game-header>.lab-home-link{font-size:18px;line-height:1.4}.game-header>.lab-home-link small{font-size:13px;color:var(--lab-muted)}.game-header>.lab-home-link img{width:40px;height:40px}.game-header-right{font-size:14px;color:var(--lab-muted)}.game-header-right #version{font-size:13px;color:var(--lab-muted)}.lobby-breadcrumb{font-size:14px;color:var(--lab-muted);margin-bottom:28px}.lobby-kicker,.setup-eyebrow{font-size:13px;color:var(--lab-muted);letter-spacing:1.2px}.lobby-story>h1{font-size:40px}.lobby-intro{font-size:16px;color:var(--lab-muted);line-height:1.8}.lobby-tags>span{font-size:13px;color:var(--lab-muted)}.lobby-art-note{font-size:13px;color:var(--lab-muted)}.quick-guide summary{font-size:15px;color:var(--lab-ink);padding:6px 0}.quick-guide ol{font-size:14px;color:var(--lab-muted)}.lobby-bottom-note{font-size:14px;color:var(--lab-muted)}#lobby-settings>.settings{background:#fff;border-color:var(--lab-border);box-shadow:var(--lab-shadow);padding:28px}.settings #setup-title{font-size:28px}.setup-intro{font-size:15px;color:var(--lab-muted);line-height:1.7}.settings label{font-size:15px;color:var(--lab-ink)}.difficulty-choice{padding:15px;min-height:76px;background:#fff;border-color:var(--lab-border);border-radius:10px}.difficulty-choice strong{font-size:16px}.difficulty-choice small{font-size:14px;color:var(--lab-muted)}.difficulty-choice em{font-size:13px;color:var(--lab-muted)}.difficulty-choice[aria-checked=true]{border-color:#58916d;background:var(--lab-soft)}.setting-help{font-size:14px;color:var(--lab-muted);line-height:1.7;min-height:0}.settings select{font-size:16px;min-height:48px;background:#fff}.settings .primary{font-size:16px;min-height:48px;border-radius:9px;background:var(--lab-accent)}.engine-state{font-size:14px;color:var(--lab-muted)}.settings #runtime{font-size:13px;color:var(--lab-muted)}.setup-warning{font-size:14px;line-height:1.7}.settings #close-setup,#setup-dialog #close-setup{font-size:14px;padding:8px;min-height:40px}.game-footer{font-size:13px;color:var(--lab-muted)}.game-footer a{font-size:13px;color:var(--lab-muted)}#leave-dialog p{font-size:16px;color:var(--lab-muted)}.leave-actions a,.leave-actions button{font-size:14px}.subtle-button{font-size:14px;min-height:42px}.table-heading #difficulty-label{font-size:14px;color:var(--lab-muted)}.turn{font-size:14px}.bank-heading{font-size:14px}.bank-heading span{font-size:13px;color:var(--lab-muted)}.ball-button .color-label{font-size:13px}.double-choice{font-size:14px;min-height:40px}.hint,.last-action{font-size:14px;color:var(--lab-muted)}.player-panel h3{font-size:17px}.score small{font-size:13px}.inventory small{font-size:13px;color:var(--lab-muted)}.inventory strong{font-size:16px}.caption{font-size:13px;color:var(--lab-muted)}.owned-card,.reserved-card{font-size:13px}.evolution-cost{font-size:13px}.inventory .evolution-cost img{width:17px;height:17px}.reserved-card.affordable:after,.reserved-card.evolvable:before{font-size:13px}.reserved-card.hidden-reserve{font-size:13px}.card.affordable:after,.card.evolvable:before{font-size:13px}.deck>span:last-child{font-size:13px}.decision h3{font-size:17px}.decision .text-button{font-size:14px;min-height:36px}#selection{font-size:15px}.action{font-size:15px}.action small,.payment-preview{font-size:13px}.decision .primary{font-size:16px;min-height:48px}.thinking-heading{font-size:14px}#thinking-time{font-size:14px}.keyboard-hint{font-size:13px;color:var(--lab-muted)}.history-box h3{font-size:17px}.history-box h3 span,#history,.text-button{font-size:14px}.fine{font-size:14px;color:var(--lab-muted)}#detail-title{font-size:20px}.deck-preview-grid small{font-size:13px}
@media(max-width:760px){.lab-global-header{height:76px;padding:0 18px;gap:12px}.lab-brand-link{font-size:16px;gap:9px}.lab-brand-link img{width:34px;height:34px}.lab-brand-link small{font-size:13px}.lab-header-caption{display:none}.game-header{height:76px}.game-header>.lab-home-link{font-size:15px}.game-header>.lab-home-link small{font-size:13px}.game-header>.lab-home-link img{width:32px;height:32px}.game-header-right #version{font-size:13px}.lobby-story>h1{font-size:30px}.lobby-intro{font-size:16px}.lobby-kicker,.lobby-tags>span{font-size:13px}.lobby-breadcrumb{font-size:14px}.lobby-art-note{font-size:13px}.quick-guide summary{font-size:14px}.quick-guide ol,.lobby-bottom-note{font-size:14px}#lobby-settings>.settings{padding:22px 18px}.difficulty-choice{padding:12px}.difficulty-choice small{font-size:13px}.difficulty-choice em{font-size:13px}.lobby-bottom-note{font-size:13px}.table-heading #difficulty-label,.game-controls .turn{font-size:13px}.bank-heading span{display:none}.ball-button .color-label{font-size:13px}.ball-button .count{font-size:15px}.hint,.last-action{font-size:13px}.caption{font-size:13px}.decision #selection,.decision .action{font-size:14px}.decision .primary{font-size:16px}.game-footer,.game-footer>span,.game-footer a{font-size:13px}.game-header .header-game-title{display:none}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
