@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Libre+Caslon+Display&display=swap');
:root{--bg:#f2f1e9;--ink:#233b2c;--muted:#778071;--line:#d9ddcf;--green:#284c36;--gold:#c6a66a}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:'DM Sans',sans-serif;font-size:14px}button,select{font:inherit;color:inherit}button,a,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0;background:none}button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid #bb924b;outline-offset:3px}header{height:88px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;max-width:1320px;margin:auto;padding:0 48px}.brand{display:flex;align-items:center;color:var(--ink);text-decoration:none;font-size:12px;letter-spacing:2px;font-weight:700}.brand-icon{font-size:36px;margin-right:12px;line-height:1}.brand-slash{margin:0 22px;color:#a0a58e}.brand-game{font-size:10px;font-weight:500;color:var(--muted);letter-spacing:1.5px}.text-button{font-size:12px}.text-button span{margin-left:12px}main{max-width:1136px;margin:0 auto;padding:46px 40px 0}.intro{display:flex;justify-content:space-between;align-items:center;margin-bottom:36px}.eyebrow{font-size:9px;letter-spacing:2px;font-weight:700;margin:0 0 16px}.eyebrow>span{display:inline-block;background:#789064;width:6px;height:6px;border-radius:50%;margin-right:7px}h1{font-family:'Libre Caslon Display',Georgia,serif;font-size:76px;font-weight:400;letter-spacing:-2px;line-height:1;margin:0 0 17px}h1 em{color:#6d8055;font-weight:400}.subtitle{color:#778071;font-size:13px;margin:0}.edition{font-size:9px;line-height:2.2;letter-spacing:2px;text-align:right}.edition span{font-size:8px;color:var(--muted);letter-spacing:1px}.game-layout{display:grid;grid-template-columns:minmax(0,640px) 290px;gap:52px}.player{display:flex;align-items:center;gap:12px;margin-bottom:15px}.avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;font-size:29px}.pine{background:#294c38;color:#c4cdb4}.birch{background:#e5dfca;color:#5d6d4c}.player strong{font-size:12px;font-weight:600;display:block}.player small{font-size:10px;color:var(--muted);display:block;margin-top:4px}.player-tag{margin-left:auto;font-size:8px;letter-spacing:1.5px;color:var(--muted)}.board-frame{background:#344833;padding:20px;border-radius:4px;box-shadow:0 12px 28px #1d30251a;position:relative}#board{display:grid;grid-template-columns:repeat(8,1fr);border:1px solid #233922}.square{position:relative;aspect-ratio:1;display:grid;place-items:center;padding:3px;background:#dce0c4}.square.dark{background:#7e936c}.square.last{background:#c0c58a}.square.dark.last{background:#a2b074}.square.selected{background:#e1cd84;box-shadow:inset 0 0 0 3px #b29550}.square .piece{width:85%;height:85%;filter:drop-shadow(0 3px 1px #16251830);transition:transform .15s;pointer-events:none}.square:hover .piece{transform:translateY(-2px)}.square.legal:after{content:'';position:absolute;width:20%;height:20%;border-radius:50%;background:#243e3860;pointer-events:none}.square.capture:after{width:85%;height:85%;background:none;border:4px solid #284c3670}.coord{position:absolute;left:4px;top:3px;font-size:8px;color:#324e32;pointer-events:none}.file{top:auto;bottom:2px;left:auto;right:4px}.dark .coord{color:#e3e8d5}.bottom{margin:16px 0}.board-tools{display:flex;justify-content:center;gap:25px;padding:16px 0;border-top:1px solid var(--line)}.board-tools button{font-size:10px;color:#697663}.board-tools button:disabled{opacity:.4;cursor:default}aside{padding-top:53px}.status-card{border:1px solid #d4dbca;background:#e9eddf;padding:25px;border-radius:5px}.status-card .eyebrow{font-size:8px;color:#748464;letter-spacing:1.6px}.turn-dot{height:9px;width:9px;border:2px solid #889873;background:#fffcef;border-radius:50%;margin:22px 0 12px}h2{font:36px/1.1 'Libre Caslon Display',Georgia,serif;font-weight:400;margin:0 0 12px}.status-card p:not(.eyebrow){font-size:11px;color:#73816b;line-height:1.8;min-height:40px;margin-bottom:0}.rule{height:1px;background:#d0d8c5;margin:22px 0}label{font-size:10px;display:block;margin:0 0 10px}select{width:100%;border:1px solid #ccd5bf;border-radius:3px;background:#f4f5ed;padding:12px;font-size:11px;cursor:pointer}.small-label{font-size:8px;letter-spacing:1px;margin:17px 0 7px;color:#7b856d}.primary{background:#284c36;color:#f0f1df;width:100%;padding:14px 15px;text-align:left;border-radius:3px;font-size:11px;margin-top:20px}.primary:hover{background:#3a6347}.primary span{float:right}.journal{margin-top:27px}.section-title{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding-bottom:14px}h3{font-size:12px;font-weight:500;margin:0}.section-title span{font-size:8px;letter-spacing:1px;color:#8a917e}#history{height:135px;overflow:auto}.empty{text-align:center;color:#929b85;padding:15px;font-size:11px;line-height:1.6}.empty span{font-size:27px}.empty p{margin:4px}.move-row{display:grid;grid-template-columns:35px 1fr 1fr;padding:8px 10px;font-size:11px}.move-row:nth-child(even){background:#e7eadf}.move-row span:first-child{color:#8a917e}.quiet-note{display:flex;gap:14px;align-items:center;justify-content:center;color:#8a947d;font-size:10px;line-height:1.7;margin-top:20px}.quiet-note>span{font-size:31px}.piece-guide{margin:35px 0;border-top:1px solid var(--line);padding-top:25px;display:flex;align-items:center;gap:35px}.piece-guide>.eyebrow{font-size:8px;white-space:nowrap;margin:0}#legend{display:flex;justify-content:space-between;flex:1;gap:10px}.legend-item{display:flex;align-items:center;gap:8px;color:#77816d;font-size:9px}.legend-item svg{width:28px;height:33px}.legend-item small{display:block;font-size:8px;opacity:.75;margin-top:3px}footer{max-width:1230px;margin:0 auto;padding:25px 40px;border-top:1px solid var(--line);display:flex;justify-content:space-between;font-size:8px;color:#89907e;letter-spacing:1.4px}dialog{border:1px solid #c7d1ba;border-radius:8px;background:var(--bg);color:var(--ink);max-width:460px;width:calc(100% - 36px);padding:35px;box-shadow:0 25px 80px #102b2840}dialog::backdrop{background:#19382677;backdrop-filter:blur(3px)}dialog p{line-height:1.8;color:#74806a;font-size:13px}.close{position:absolute;right:14px;top:12px;font-size:25px}#promotion-options{display:flex;gap:6px}#promotion-options button{flex:1;background:#dce2cf;border-radius:5px;padding:10px;font-size:10px}#promotion-options svg{width:100%}#cancel-new{margin-top:15px;width:100%;padding:10px}@media(min-width:1400px){main{padding-top:60px}}@media(max-width:900px){.game-layout{gap:25px;grid-template-columns:minmax(0,1fr) 250px}main{padding:35px 25px 0}.board-frame{padding:15px}.piece-guide{display:block}.piece-guide>.eyebrow{display:block;margin-bottom:20px}.edition{display:none}header{padding:0 25px}}@media(max-width:670px){header{height:68px}.brand-game,.brand-slash{display:none}.brand{font-size:10px}main{padding:30px 18px 0}h1{font-size:62px}.intro{margin-bottom:28px}.eyebrow{font-size:8px}.game-layout{display:block}.board-frame{padding:13px}.board-tools{gap:20px}aside{padding-top:15px}.status-card{padding:22px}.status-card .turn-dot{float:left;margin:14px 10px 0 0}.status-card h2{font-size:32px}.status-card p:not(.eyebrow){min-height:0}.journal{margin-top:25px}#legend{display:grid;grid-template-columns:repeat(3,1fr);row-gap:20px}.piece-guide{margin-top:25px}footer{padding:20px 18px;font-size:7px}footer span:last-child{display:none}.coord{font-size:7px}}
/* TREE Arcade palette and official Tree Hero artwork. */
:root{--bg:#061116;--ink:#e9f5ed;--muted:#a2b9ad;--line:#244336;--green:#35e895;--gold:#ffe05e}body{background:radial-gradient(ellipse at 80% 5%,#173c2d 0,transparent 42%),#061116}header{border-color:#294936}.brand-logo{width:44px;height:44px;object-fit:cover;border-radius:50%;margin-right:12px;border:1px solid #c8ac61}.brand-game{color:#86ba9a}h1 em{color:#35e895}.subtitle{color:#a2b9ad}.eyebrow>span{background:#35e895}.intro{gap:25px}.hero-feature{display:flex;align-items:center;gap:18px}.hero-feature>img{width:140px;height:140px;object-fit:contain;filter:drop-shadow(0 8px 18px #0008)}.hero-feature .eyebrow{font-size:7px;letter-spacing:1.3px;display:block;color:#89b99b;margin-bottom:10px}.hero-feature strong{display:block;font:30px/1.05 'Libre Caslon Display',Georgia,serif;color:#ffe05e}.hero-caption{display:block;color:#a5baa8;font-size:8px;letter-spacing:1.7px;margin-top:13px}.board-frame{background:linear-gradient(135deg,#657646,#1c3b2b 40%,#294532);border:1px solid #80915a;box-shadow:0 14px 40px #0006}.status-card{background:linear-gradient(145deg,#142e24,#0a1c18);border-color:#2c563d}.status-card .eyebrow,.small-label{color:#82bc94}.status-card p:not(.eyebrow){color:#a8c0ae}.rule{background:#30523b}select{background:#091b16;color:#d5e7d8;border-color:#3c6046}select:disabled{opacity:.45}.primary{background:#35e895;color:#052718;font-weight:700}.primary:hover{background:#7df6b5}.turn-dot{border-color:#35e895;background:#e9f7cb;box-shadow:0 0 12px #35e89550}.player small,.player-tag,.board-tools button{color:#a2b9ad}.avatar.birch{background:#e5dfca}.avatar.pine{border:1px solid #6c8e4f}.move-row:nth-child(even){background:#12281e}.empty,.quiet-note,.legend-item,.section-title span{color:#9cb09f}.piece-guide>.eyebrow{color:#7eb18b}footer{color:#8da996}footer a{color:#a5c8af;text-decoration:none}footer a:hover{color:#35e895}dialog{background:#10251d;color:#e9f5ed;border-color:#467451}dialog p{color:#afc3b3}#promotion-options button{background:#294d36;color:#e9f5ed}.hero-piece{display:flex;flex-direction:column;align-items:center;justify-content:center;width:96%;height:98%;position:relative;pointer-events:none;filter:drop-shadow(0 2px 2px #0007)}.hero-piece img{width:92%;height:87%;object-fit:contain;min-height:0}.hero-base{display:block;border-radius:8px;border:1px solid #7a6a37;font-size:6px;line-height:1.3;font-weight:800;letter-spacing:1.4px;text-align:center;width:70%;background:#fff0c4;color:#29422d}.side-b .hero-base{background:#123626;color:#f8e395;border-color:#cfb75d}.side-b img{filter:brightness(.78) saturate(.85)}.legend-item .hero-piece{width:30px;height:38px;flex-shrink:0}.legend-item .hero-base{font-size:3px;letter-spacing:.5px}.square:hover .hero-piece{transform:translateY(-2px)}@media(max-width:900px){.hero-feature>img{width:100px;height:100px}.hero-feature strong{font-size:25px}.hero-feature .eyebrow{max-width:100px;line-height:1.5}.hero-feature{gap:10px}.hero-caption{font-size:7px}}@media(max-width:670px){.hero-feature{display:none}.subtitle{font-size:12px}.brand-logo{width:35px;height:35px}.hero-base{font-size:5px;letter-spacing:.5px}.brand-game{display:none}}@media(prefers-reduced-motion:reduce){.square .piece{transition:none}}
/* Illustrated woodland court, rendered from a transparent four-cell sprite sheet. */
.court-piece{width:96%;height:98%;display:flex;flex-direction:column;align-items:center;justify-content:center;pointer-events:none;filter:drop-shadow(0 2px 2px #0007)}.court-art{display:block;height:85%;width:auto;aspect-ratio:0.75;background-image:url('assets/woodland-court.png');background-size:400% 100%;background-repeat:no-repeat;flex-shrink:1;min-height:0}.court-q{background-position:0% 50%}.court-r{background-position:33.333333% 50%}.court-b{background-position:66.666667% 50%}.court-n{background-position:100% 50%}.court-piece .hero-base{width:62%;flex-shrink:0}.side-b .court-art{filter:brightness(.85)}.square:hover .court-piece{transform:translateY(-2px)}.legend-item{text-align:left;padding:5px;border-radius:5px}.legend-item:hover{background:#1b382a}.legend-item .court-piece{width:34px;height:45px;flex-shrink:0}.legend-item .court-art{height:36px}.legend-item .court-piece .hero-base{font-size:3px;letter-spacing:.4px}.piece-tip{min-height:34px;margin:4px 0 0;font-size:11px;line-height:1.6;color:#b4cbb9;text-align:center}#piece-info{text-align:center}#piece-info-art{display:flex;justify-content:center;height:220px;margin:5px 0 25px}#piece-info-art .court-piece,#piece-info-art .hero-piece{width:180px;height:220px}#piece-info-art .hero-base{font-size:11px;line-height:1.5}#piece-info-art .piece{width:150px;height:200px}#promotion-options .court-piece{height:100px;width:100%;margin-bottom:8px}#promotion-options .court-art{height:85px}#promotion-options .hero-base{font-size:5px}.piece-guide{gap:20px}@media(max-width:900px){.piece-guide{display:block}.legend-item{font-size:8px;gap:5px}}@media(max-width:670px){.piece-tip{font-size:10px;min-height:45px}#legend{grid-template-columns:repeat(3,minmax(0,1fr))}.legend-item{font-size:9px}}
/* Clear team markers and board state for the playable beta. */
.square.in-check{background:#cd7865;box-shadow:inset 0 0 0 3px #9c302b}.square.in-check:before{content:'!';position:absolute;right:3px;top:2px;z-index:2;border-radius:50%;background:#891b1b;color:#fff;width:15px;height:15px;line-height:15px;font-size:11px;font-weight:800}.square.selected{box-shadow:inset 0 0 0 3px #e6b642}.square:focus-visible{outline:3px solid #fff1ab;outline-offset:-3px;z-index:3}.square.legal:after{background:#153f35aa;box-shadow:0 0 0 2px #eaf3c766}.square.capture:after{background:none;border-color:#fce19a;box-shadow:0 0 0 2px #325139}.square .hero-base{font-size:7px;min-height:8px;line-height:1.3;letter-spacing:.6px;border-width:1.5px;width:74%;box-shadow:0 1px 2px #0007}.square .side-w .hero-base{background:#fff4d5;color:#193b27;border-color:#fffbea}.square .side-b .hero-base{background:#09291b;color:#f5e4a1;border-color:#a9c77d}.board-instructions{font-size:10px;color:#91aa9a;text-align:center;line-height:1.6;margin:5px 0 9px}.captures-panel{margin-top:23px;border:1px solid #294936;border-radius:5px;padding:15px}.captures-panel h3{margin-bottom:14px}.captures-panel>div{display:flex;align-items:center;gap:10px;margin-top:9px}.captures-panel p{font-size:10px;line-height:1.6;margin:0;color:#b5cbb9}.team-chip{font-size:7px;letter-spacing:.6px;padding:4px 6px;border-radius:3px;white-space:nowrap}.birch-chip{background:#f4e6bd;color:#254634}.pine-chip{background:#173d2a;color:#d4e4b3;border:1px solid #527d4b}@media(max-width:670px){.square .hero-base{font-size:5px;letter-spacing:.2px;min-height:6px}.board-instructions{font-size:9px}.captures-panel>div{margin-top:12px}}
/* Piece identity, side guide and a square board that fits its frame. */
.play-area{display:flex;flex-direction:column;min-width:0}.board-frame{order:1;width:100%;min-width:0}#board{width:100%;aspect-ratio:1;grid-template-columns:repeat(8,minmax(0,1fr));grid-template-rows:repeat(8,minmax(0,1fr))}.square{min-width:0;min-height:0;width:100%;height:100%;overflow:hidden}.player{order:0;flex-shrink:0}.player.bottom{order:2}.board-tools{order:3}.board-instructions{order:4}.piece-tip{order:5}.hero-piece,.court-piece{min-width:0;min-height:0}.square .pawn-piece{height:82%;width:85%;align-self:end;margin-bottom:3px}.square .hero-base{font-size:6px;letter-spacing:0;width:85%}.piece-guide{display:block;margin:25px 0 0;padding:18px 0;border-top:1px solid var(--line)}.piece-guide>.eyebrow{display:block;margin-bottom:14px;font-size:10px}#legend{display:grid;grid-template-columns:1fr;gap:6px}.legend-item{width:100%;padding:7px;gap:12px;font-size:11px;line-height:1.3}.legend-item small{font-size:12px;color:#ffe05e;font-weight:700;margin-top:2px}.guide-movement{display:block;font-size:10px;color:#a5bdaa;margin-top:4px}.legend-item .hero-piece,.legend-item .court-piece{height:53px;width:43px;flex-shrink:0}.legend-item .court-art{height:43px}.legend-item .hero-base{display:none}.captures-panel{margin-top:12px}@media(max-width:670px){.square .hero-base{font-size:5px}.piece-guide #legend{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.legend-item{font-size:9px;gap:6px;padding:5px}.legend-item small{font-size:11px}.guide-movement{font-size:9px}.legend-item .hero-piece,.legend-item .court-piece{width:35px;height:47px}.legend-item .court-art{height:39px}}

/* Mobile play comes first. Stable square buttons preserve touch focus between turns. */
.mobile-play-bar,.mobile-return{display:none}
@media(max-width:670px){
 header{height:48px;padding:0 16px}.brand-logo{width:28px;height:28px}.brand{font-size:9px}header .text-button{font-size:10px;min-height:40px}
 main{display:flex;flex-direction:column;padding:10px 12px 0}.intro{order:0;margin:0 0 8px}.intro .eyebrow,.intro .subtitle{display:none}.intro h1{font-size:36px;letter-spacing:-1px;margin:0;line-height:1.1}
 .game-layout{display:contents}.play-area{order:1;scroll-margin-top:8px}.play-access-banner{order:2;margin-top:16px}aside{order:3;scroll-margin-top:8px}
 .mobile-play-bar{display:flex;order:-1;justify-content:space-between;align-items:center;gap:8px;min-height:40px}.mobile-play-bar strong{font-size:13px}.mobile-play-bar button{font-size:11px;min-height:40px;color:#9af1bf}
 .player,.player.bottom{min-height:28px;margin:4px 0;gap:7px}.player .avatar{width:25px;height:25px;font-size:21px}.player strong{font-size:10px}.player small{display:none}.player-tag{font-size:7px}
 .board-frame{padding:7px;max-width:min(100%,calc(100svh - 255px));align-self:center}#board{overflow-anchor:none}.square{touch-action:manipulation}
 .board-tools{padding:0;gap:12px;min-height:40px}.board-tools button{min-height:40px;font-size:10px}.board-instructions{display:none}.piece-tip{font-size:10px;min-height:34px;margin:2px 0 0}
 .mobile-return{display:block;position:sticky;top:8px;z-index:4;width:100%;padding:12px;background:#123b28;border:1px solid #467451;border-radius:5px;margin-bottom:12px;font-size:12px}
}
@media(max-width:670px) and (max-height:450px){.board-frame{max-width:min(100%,calc(100svh - 40px))}}

/* Keep the two-step move instruction visible before the first move on every device. */
.board-instructions{order:-1;text-align:left;margin:0 0 10px;color:#b9d3c3}.keyboard-instructions{display:block;font-size:9px;color:#91aa9a}
@media(max-width:670px){.board-instructions{display:block;order:-1;min-height:32px;margin:0 0 4px;font-size:10px;line-height:1.5}.keyboard-instructions{display:none}.board-frame{max-width:min(100%,calc(100svh - 311px))}}
@media(max-width:670px) and (max-height:450px){.board-frame{max-width:min(100%,calc(100svh - 40px))}}

/* TREE player coins: side identity stays distinct, minted rims follow the selected set. */
.player .avatar.tree-coin{position:relative;flex-shrink:0;isolation:isolate;overflow:hidden;border:1.5px solid var(--finish,#edcd73);box-shadow:inset 0 0 0 1px var(--finish-deep,#70501d),0 2px 5px #0007;background:radial-gradient(circle at 32% 22%,#397950,#0b291d 75%)}
.player .avatar.tree-coin.birch{background:radial-gradient(circle at 30% 20%,#fffdf0,#e8dcb2 74%,#b59a5b)}
.tree-coin::before{content:"";position:absolute;inset:3px;border:1px dashed var(--finish,#edcd73);border-radius:50%;opacity:.65;z-index:-1}
.tree-coin svg{width:78%;height:78%;overflow:visible;filter:drop-shadow(0 1px 1px #0005)}
.tree-coin .coin-trunk{fill:#cda94b}.tree-coin .coin-leaves{fill:#42c979;stroke:#e3c766;stroke-width:1.2;stroke-linejoin:round}.tree-coin .coin-veins{fill:none;stroke:#ebcf72;stroke-width:1.7;stroke-linecap:round}.tree-coin .coin-spark{fill:#ffe7a1}
.tree-coin.birch .coin-leaves{fill:#267643;stroke:#aa8739;stroke-width:1}.tree-coin.birch .coin-trunk{fill:#96732d}.tree-coin.birch .coin-veins{stroke:#96732d;stroke-width:2.5}
@media(max-width:670px){.player .avatar.tree-coin{border-width:1px}.tree-coin::before{inset:2px}.tree-coin svg{width:80%;height:80%}}

/* Same brand and navigation as the TREE Arcade home, scoped to chess. */
header.suite-header{height:auto;max-width:none;padding:0;background:#07110eef;border-bottom:1px solid #a9984b2d}
.suite-header-inner{display:flex;align-items:center;justify-content:space-between;gap:20px;width:min(1440px,calc(100% - 64px));min-height:64px;margin:auto}
.suite-brand{display:flex;align-items:center;gap:11px;min-height:44px;text-decoration:none;flex-shrink:0}.suite-brand img{width:38px;height:38px;object-fit:contain}.suite-brand>span{display:grid;gap:4px}.suite-brand strong{color:#ffe05e;font-size:12px;letter-spacing:.1em}.suite-brand small{color:#acb3cb;font:10px monospace;letter-spacing:.1em;text-transform:uppercase}
.suite-header nav{display:flex;gap:6px;flex-wrap:wrap;margin-left:auto}.suite-header nav a{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:44px;padding:9px 14px;border:1px solid transparent;border-radius:4px;color:#bdc5dc;text-decoration:none;font-size:11px;font-weight:850;letter-spacing:.1em}.suite-header nav a:hover{border-color:#a5acd536;color:#fff}.suite-header nav a[aria-current]{color:#93edbd;border-color:#93edbd4a;background:#93edbd0b}.suite-header #help{min-height:44px;white-space:nowrap}
@media(max-width:900px){.suite-header-inner{width:calc(100% - 32px);gap:10px}.suite-header nav{gap:1px}.suite-header nav a{padding:9px 10px}}
@media(max-width:670px){.suite-header-inner{width:calc(100% - 28px);flex-wrap:wrap;gap:0;min-height:92px;padding:2px 0}.suite-brand img{width:32px;height:32px}.suite-brand strong{font-size:11px}.suite-header #help{margin-left:auto;order:1}.suite-header nav{order:2;width:100%;gap:2px;justify-content:space-between}.suite-header nav a{min-width:44px;min-height:44px;padding:8px;font-size:10px;letter-spacing:.03em}.board-frame{max-width:min(100%,calc(100svh - 355px))}}
@media(max-width:670px) and (max-height:450px){.board-frame{max-width:min(100%,calc(100svh - 40px))}}

/* Mobile game choices open over the board instead of navigating down the page. */
#mobile-controls{width:min(460px,calc(100% - 24px));max-height:calc(100dvh - 24px);padding:0;overflow:auto;overscroll-behavior:contain}
.mobile-controls-heading{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;background:#0b2118;border-bottom:1px solid #365c43}.mobile-controls-heading h2{font:600 17px 'DM Sans',sans-serif;margin:0}.mobile-controls-heading button{min-height:44px;font-size:12px;color:#9af1bf}
#mobile-controls-content{padding:12px 16px}#mobile-controls .status-card{margin:0;padding:14px}#mobile-controls .status-card>.eyebrow:first-child,#mobile-controls .turn-dot,#mobile-controls .rule{display:none}#mobile-controls .status-card h2{font-size:25px}#mobile-controls #status-detail{margin-bottom:16px}#mobile-controls .status-card .eyebrow{margin-top:14px;margin-bottom:12px}#mobile-controls #online-panel{margin-top:12px}#mobile-controls-wallet{display:block;min-height:44px;width:calc(100% - 32px);margin:0 16px;border:1px solid #467451;border-radius:4px;color:#9af1bf}#mobile-controls .mobile-controls-hint{margin:12px 16px 18px;font-size:11px;line-height:1.5}

/* A compact title and a sidebar for the live match, with reference panels on demand. */
.intro{justify-content:flex-start;gap:18px;margin-bottom:20px}.title-hero{width:88px;height:88px;object-fit:contain;filter:drop-shadow(0 4px 9px #0008)}.intro h1{font-size:58px;margin-bottom:8px}main{padding-top:24px}
.mobile-play-bar{display:flex;order:-1;align-items:center;justify-content:space-between;gap:10px;min-height:40px}.mobile-play-bar button{min-height:40px;color:#9af1bf;font-size:12px}.board-menu{display:flex;order:4;gap:8px;justify-content:center;margin:8px 0}.board-menu button,.controls-shortcuts button{min-height:44px;border:1px solid #416d53;border-radius:4px;padding:8px;color:#baffd7;font-size:11px}.controls-shortcuts{display:flex;flex-wrap:wrap;gap:6px;padding:12px 16px 0}.controls-shortcuts button{flex:1 1 85px}
aside{padding-top:0}aside>.status-card{padding:16px}aside>.status-card :is(label,.select-wrap,select,#new,.rule),aside>.status-card .rule~.eyebrow{display:none}aside>.status-card .turn-dot{float:left;margin:12px 10px 0 0}aside>.status-card h2{font-size:30px}aside>.status-card p:not(.eyebrow){min-height:0}aside>.finish-panel,aside>.quiet-note{display:none}aside>.captures-panel{margin-top:14px}.journal{margin-top:18px}#history{height:190px}
#guide-dialog{max-width:620px;max-height:90dvh;overflow:auto}#guide-dialog .piece-guide{border:0;margin:0;padding:10px 0}#guide-dialog #legend{grid-template-columns:repeat(2,minmax(0,1fr))}#match-dialog{max-width:520px;max-height:90dvh;overflow:auto;padding:0}#match-content{padding:0 16px 20px}#match-content #history{height:250px}
@media(max-width:670px){main{padding-top:8px}.intro{gap:8px;margin-bottom:4px}.title-hero{width:40px;height:40px}.intro h1{font-size:32px;margin:0}.board-menu{display:none}aside>.status-card,aside>.captures-panel,aside>.journal{display:none}.board-frame{max-width:min(100%,calc(100svh - 355px))}.mobile-play-bar button{font-size:11px}.piece-tip{order:5}#guide-dialog #legend{grid-template-columns:1fr}}

/* A Tree Hero title and a game-like turn card with a clear visual hierarchy. */
.intro{gap:20px;margin-bottom:22px}.title-hero{width:108px;height:108px;filter:drop-shadow(0 5px 14px #0009)}.intro h1{font-size:clamp(54px,5.3vw,76px);letter-spacing:-1.5px;line-height:1.05}.intro .subtitle{font-size:17px;line-height:1.5;color:#cfdfd3}
.status-card{position:relative;overflow:hidden;background:radial-gradient(ellipse at 0 0,#29624080,transparent 75%),linear-gradient(135deg,#183d2c,#081e18);border:1px solid #78ac72;box-shadow:inset 0 0 0 3px #0b261b,0 8px 22px #0003}.status-card::before{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(125deg,transparent 60%,#d4bf5320 60.4%,transparent 61%)}.status-card>.eyebrow:first-child{color:#cbdc9f;letter-spacing:2px;font-size:9px}.status-card .turn-dot{display:grid;place-items:center;width:58px;height:58px;border:1px solid #d5b66c;border-radius:14px;background:radial-gradient(circle,#416b42,#0a241c);box-shadow:inset 0 0 0 2px #283d24;margin:4px 12px 6px 0;float:left}.turn-dot img{width:54px;height:54px;object-fit:contain}aside>.status-card .turn-dot{margin:4px 12px 6px 0}aside>.status-card h2{font:600 29px/1.15 'DM Sans',sans-serif;color:#fff0ba;margin-top:8px}.status-card #status-detail{clear:both;padding-top:8px;color:#c1dccb;font-size:12px!important}#mobile-controls .status-card h2{font:600 24px/1.2 'DM Sans',sans-serif;color:#fff0ba}#mobile-controls .turn-dot{display:grid}
@media(max-width:670px){.intro{gap:10px;margin-bottom:4px}.title-hero{width:48px;height:54px}.intro h1{font-size:35px;letter-spacing:-.8px;line-height:1.05}.intro .subtitle{display:block;font-size:11px;line-height:1.3;margin-top:3px}.board-frame{max-width:min(100%,calc(100svh - 371px))}}
