/* Three game routes, with the same ivory/Bebas identity as the wordmark. */
:root { --navigation-height: 64px; --navigation-ivory:#f4f0df; --navigation-gold:#b89450; }
*,*::before,*::after { box-sizing:border-box; }
body { display:block; padding:0; }
.top-navigation { position:relative; z-index:50; width:100%; background:#000; color:var(--navigation-ivory); display:grid; grid-template-columns:1fr auto 1fr; align-items:center; min-height:64px; padding:0 20px; }
#navigation-items { position:absolute; left:var(--board-nav-center,50%); width:max-content; max-width:none; transform:translateX(-50%) scale(var(--board-nav-scale,1)); transform-origin:center; display:flex; flex-wrap:nowrap; align-items:center; justify-content:center; gap:clamp(16px,3vw,54px); min-height:64px; }
#navigation-items > a { position:relative; flex:0 0 auto; display:inline-flex; align-items:center; padding:13px 4px; border:0; background:transparent; color:var(--navigation-ivory); text-decoration:none; font:400 clamp(19px,1.7vw,28px)/1.2 "Bebas Neue",Impact,sans-serif; letter-spacing:.035em; white-space:nowrap; }
#navigation-items > a:hover { color:#e7b84f; }
#navigation-items > [aria-current=page]::after { content:''; position:absolute; left:4px; right:4px; bottom:5px; height:2px; background:var(--navigation-gold); }
.navigation-signin { flex:0 0 auto; justify-self:end; border:1px solid var(--navigation-gold); border-radius:3px; padding:9px 22px; min-height:40px; background:var(--navigation-gold); color:#17231f; font:700 13px/1.4 system-ui,sans-serif; cursor:pointer; }
.navigation-signin:hover { background:#d1b073; }
.navigation-brand { --brand-name-size:36px; --brand-tagline-size:10px; --brand-stack-height:calc(var(--brand-name-size) * .95 + 4px + var(--brand-tagline-size) * 1.1); grid-column:1; grid-row:1; justify-self:start; min-width:0; }
.navigation-brand .brand-lockup { position:relative; display:grid; grid-template-columns:calc(8px + var(--brand-stack-height) * 786 / 1199) minmax(0,1fr); align-items:center; gap:0 3px; }
.navigation-brand .brand-home { position:relative; display:block; margin-left:-18px; padding-left:18px; color:inherit; text-decoration:none; }
.navigation-brand .brand-home:focus-visible { outline:2px solid #e9bd60; outline-offset:2px; border-radius:2px; }
.navigation-brand .brand-title-row { display:contents; }
.navigation-brand .brand-mark { position:absolute; left:calc(8px - var(--brand-stack-height) * 222 / 1199); top:calc(var(--brand-stack-height) * -25 / 1199); display:block; width:calc(var(--brand-stack-height) * 1230 / 1199); height:calc(var(--brand-stack-height) * 1278 / 1199); object-fit:contain; pointer-events:none; }
.navigation-brand h1 { grid-column:2; grid-row:1; margin:0; padding:0; font:700 var(--brand-name-size)/.95 "Bebas Neue",Impact,sans-serif; letter-spacing:.02em; color:#f4f0df; text-transform:uppercase; white-space:nowrap; }
.navigation-brand .brand-copy { grid-column:2; grid-row:2; display:block; margin:0; }
.navigation-brand .tagline { margin:4px 0 0; color:#d8bb72; font:700 var(--brand-tagline-size)/1.1 system-ui,sans-serif; letter-spacing:.1em; white-space:nowrap; }
.navigation-actions { grid-column:3; grid-row:1; justify-self:end; width:min(100%,480px); display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:16px; }
.navigation-extras { min-width:0; width:min(100%,300px); justify-self:center; display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:0; }
.others-control { position:relative; min-width:0; }
.navigation-extra-button { display:flex; align-items:center; justify-content:center; gap:10px; width:100%; height:40px; padding:7px 12px; border:1px solid #527d95; border-radius:4px; background:#284759; color:#f4f0df; font:400 23px/1 "Bebas Neue",Impact,sans-serif; letter-spacing:.04em; white-space:nowrap; cursor:pointer; }
.others-control .navigation-extra-button { border-radius:4px 0 0 4px; }
.navigation-book { border-left:0; border-radius:0 4px 4px 0; }
.navigation-extra-button:hover { background:#365c73; }
.navigation-book:disabled { background:#284759; color:#f4f0df; opacity:1; cursor:default; }
#account-overlay .account-dialog { width:min(100%,480px); }
#account-overlay .account-card { border:0; border-radius:0; background:transparent; box-shadow:none; }
#account-overlay .account-toggle,#account-overlay .account-intro,#account-overlay .account-view-buttons { display:none; }
#account-overlay .account-content { padding:0; border:0; }
#account-overlay .account-methods { display:grid; gap:10px; padding:4px 0 8px; }
#account-overlay .account-methods[hidden],#account-overlay .account-email-actions[hidden] { display:none; }
#account-overlay .account-methods button { min-height:48px; border:1px solid #5a6d60; border-radius:5px; background:#1c2a25; color:#f4f0df; font:600 15px/1.25 system-ui,sans-serif; cursor:pointer; }
#account-overlay .account-methods button:hover { border-color:#e7b84f; background:#2b4036; }
#account-overlay .account-form { gap:9px; margin-top:7px; }
#account-overlay .account-form label { font-size:12px; }
#account-overlay .account-form input { min-height:40px; font-size:14px; }
#account-overlay .account-form > button { min-height:41px; font-size:13px; }
#account-overlay .account-email-actions { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:12px; }
#account-overlay .account-email-actions button { padding:4px 0; border:0; background:transparent; color:#d8bb72; font:600 11px/1.4 system-ui,sans-serif; text-decoration:underline; cursor:pointer; }
#account-overlay .account-email-actions button[hidden] { display:none; }
#account-overlay .account-status { min-height:20px; margin-top:12px; font-size:12px; }
#account-overlay .account-connect-providers { display:flex; flex-wrap:wrap; gap:8px; margin-top:15px; padding-top:12px; border-top:1px solid #40564a; }
#account-overlay .account-connect-providers p { flex-basis:100%; margin:0; color:#c1cbc3; font:600 12px system-ui,sans-serif; }
#account-overlay .account-connect-providers button { flex:1; min-height:37px; border:1px solid #5a6d60; border-radius:5px; background:#1c2a25; color:#f4f0df; cursor:pointer; }
.others-dropdown { position:absolute; z-index:60; top:calc(100% + 9px); left:0; min-width:220px; padding:6px; border:1px solid #527d95; border-radius:5px; background:#182e3b; box-shadow:0 8px 24px #0006; }
.others-dropdown[hidden] { display:none; }
.others-dropdown button { display:block; width:100%; padding:11px 12px; border:0; border-radius:3px; background:transparent; color:#f4f0df; text-align:left; font:650 13px/1.3 system-ui,sans-serif; cursor:pointer; }
.others-dropdown button:hover { background:#284759; }
html body .centered-classic #signed-in-name { display:block !important; }
.navigation-toggle { display:none; background:transparent; border:0; color:var(--navigation-ivory); font:400 22px/1.2 "Bebas Neue",Impact,sans-serif; cursor:pointer; }
.top-navigation a:focus-visible,.top-navigation button:focus-visible { outline:2px solid #e7b84f; outline-offset:3px; }
.skip-navigation { position:absolute; top:-80px; left:12px; padding:12px; z-index:4000; background:#f4f0df; color:#17231f; }
.skip-navigation:focus { top:8px; }
html body .app.chesstive-layout.centered-classic { position:relative; display:block; width:100%; height:calc(100dvh - var(--navigation-height)); min-height:0; margin:0; padding:0; }
html body .centered-classic .board-column,html body .centered-classic .board-game-layout,html body .centered-classic .board-support-column,html body .centered-classic .board-stage,html body .centered-classic .player-summary,html body .centered-classic .summary-stat-row,html body .centered-classic .site-brand,html body .centered-classic .brand-lockup,html body .centered-classic .brand-title-row,html body .centered-classic .brand-copy { display:contents; position:static; }
html body .centered-classic [data-center-element] { position:absolute !important; left:var(--center-left) !important; top:var(--center-top) !important; width:var(--center-width) !important; height:var(--center-height) !important; margin:0 !important; transform:none !important; }
html body .centered-classic [data-center-element=board] { aspect-ratio:1; }
html body .centered-classic .board-game-layout,html body .centered-classic .board-support-column,html body .centered-classic .board-stage,html body .centered-classic .player-summary,html body .centered-classic .summary-stat-row,html body .centered-classic .site-brand,html body .centered-classic .brand-lockup,html body .centered-classic .brand-title-row,html body .centered-classic .brand-copy { display:contents !important; position:static !important; }
html body .centered-classic .board-column { position:absolute !important; display:block !important; inset:0 !important; width:100% !important; height:100% !important; margin:0 !important; }
html body .centered-classic [data-center-element=brandName] { font-size:var(--center-font); line-height:1.1; }
html body .centered-classic [data-center-element=tagline],html body .centered-classic [data-center-element=online],html body .centered-classic [data-center-element=username],html body .centered-classic [data-center-element=score],html body .centered-classic [data-center-element=aura] { font-size:var(--center-font) !important; line-height:1.2; display:block; text-align:left; }
html body .centered-classic [data-center-element=username] { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
html body .centered-classic #signed-in-name { font-family:"Bebas Neue",Impact,sans-serif; font-weight:400; letter-spacing:.045em; border:0; padding:0; }
html body .centered-classic .player-heading { display:flex !important; align-items:flex-end; gap:14px; font:400 var(--center-font,36px)/1.1 "Bebas Neue",Impact,sans-serif; }
html body .centered-classic .player-identity { display:flex; align-items:baseline; gap:10px; min-width:0; flex:0 1 auto; }
html body .centered-classic .player-heading .summary-box { position:static !important; inset:auto !important; display:block !important; width:auto !important; height:auto !important; min-width:0; margin:0 !important; padding:0 !important; border:0 !important; background:transparent; transform:none !important; font:inherit !important; line-height:1.1 !important; text-align:left !important; }
html body .centered-classic .player-heading #signed-in-name { flex:0 1 auto; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
html body .centered-classic .player-heading #score { position:absolute !important; left:var(--score-panel-left,0px) !important; right:auto !important; top:var(--score-panel-top,58px) !important; width:var(--score-panel-width,112px) !important; height:auto !important; z-index:12; flex:none; color:#f4f0df; font-size:var(--score-font,68px) !important; line-height:.8 !important; font-variant-numeric:tabular-nums; pointer-events:none; text-align:right !important; }
html body .centered-classic .player-heading #score.score-counting { transform:scale(1.08) !important; transform-origin:right top !important; color:#e7b84f; }
html body .centered-classic .player-heading .aura-box { flex:0 0 auto; display:flex !important; gap:.14em; margin-left:0 !important; margin-right:auto !important; color:#e7b84f; white-space:nowrap; font-variant-numeric:tabular-nums; }
html body .centered-classic .player-heading { z-index:12; }
html body .centered-classic #player-powerup-panel { border:1px solid #53685b; border-radius:5px; background:#1b2b251f; pointer-events:none; z-index:9; }
html body .centered-classic #powerup-card-rail { z-index:10; isolation:isolate; pointer-events:none; }
html body .centered-classic #powerup-card-rail [data-powerup-type] { pointer-events:auto; touch-action:none; }
html body .centered-classic #powerup-card-rail .mystery-box.ready { cursor:grab; }
html body .centered-classic [data-center-element=score] { font-weight:850; }
html body .centered-classic [data-center-element=aura] { white-space:nowrap; color:#e7b84f; }
html body .centered-classic [data-center-element=cards] { left:var(--concept-left) !important; top:var(--concept-top) !important; width:var(--concept-width) !important; height:var(--concept-height) !important; display:block; min-height:0; max-height:none; }
body[data-game-page] .route-main { width:min(1420px,calc(100% - 32px)); max-width:none; padding:12px 0 28px; }
body[data-game-page=honor] #honor-overlay { position:static; inset:auto; z-index:auto; background:transparent; overflow:visible; padding:0; overscroll-behavior:auto; }
body[data-game-page=honor] #honor-overlay .honor-window { min-height:0; padding:12px 0; }
body[data-game-page=honor] #honor-overlay .honor-menu { margin:24px auto; }
body[data-game-page=pvp] #pvp-overlay { position:static; inset:auto; padding:0; background:transparent; backdrop-filter:none; display:block; overflow:visible; }
body[data-game-page=pvp] #pvp-overlay .pvp-shell { width:100%; max-height:none; overflow:visible; padding:16px 0; background:transparent; border:0; border-radius:0; box-shadow:none; }
/* Every game and blue announcement stays visible; narrow screens use rows. */
@media(max-width:1600px) {
 .top-navigation { padding:0 12px; }
 .navigation-brand { --brand-name-size:clamp(25px,2.2vw,34px); --brand-tagline-size:9px; }
 #navigation-items { gap:clamp(12px,2vw,30px); }
 #navigation-items > a { font-size:clamp(19px,1.7vw,27px); }
 .navigation-actions { width:auto; gap:12px; }
 .navigation-extras { width:clamp(172px,18vw,280px); }
 .navigation-extra-button { font-size:clamp(18px,1.55vw,23px); padding:7px 9px; }
 .navigation-signin { padding:8px 12px; }
}
@media(max-width:999px) {
 .top-navigation { grid-template-columns:minmax(0,1fr) auto; grid-template-rows:60px 44px; }
 .navigation-actions { grid-column:2; grid-row:1; display:flex; gap:12px; width:auto; }
 .navigation-extras { width:230px; display:grid; }
 #navigation-items { top:60px; min-height:44px; max-width:none; gap:clamp(12px,4vw,38px); padding:0; }
 #navigation-items > a { font-size:clamp(19px,3vw,25px); padding:9px 2px; }
 #navigation-items > [aria-current=page]::after { bottom:3px; }
 .navigation-brand { --brand-name-size:30px; }
 .others-dropdown { min-width:210px; left:auto; right:0; }
}
@media(max-width:600px) {
 .navigation-actions { gap:8px; }
 .navigation-extras { width:180px; }
 .navigation-extra-button { font-size:18px; height:36px; gap:5px; padding:6px; }
 .navigation-brand { --brand-name-size:clamp(23px,5vw,29px); --brand-tagline-size:8px; }
 .navigation-signin { font-size:11px; padding:7px 10px; min-height:36px; }
}
@media(max-width:479px) {
 .top-navigation { grid-template-rows:54px 42px 44px; padding:0 10px; }
 .navigation-brand { --brand-name-size:26px; }
 .navigation-actions { display:contents; }
 .navigation-signin { grid-column:2; grid-row:1; }
 .navigation-extras { grid-column:1 / -1; grid-row:3; justify-self:center; display:grid; width:min(280px,calc(100vw - 24px)); margin:0; }
 #navigation-items { top:54px; min-height:42px; gap:clamp(8px,3vw,16px); }
 #navigation-items > a { font-size:clamp(16px,5vw,21px); }
 .navigation-extra-button { font-size:20px; height:34px; }
 .others-dropdown { left:0; right:auto; min-width:min(220px,calc(100vw - 24px)); }
}
.navigation-toggle { display:none !important; }
#development-workspace { display: block; width: 100%; height: min(75dvh,780px); border: 0; background: #17231f; }
#development-overlay .dev-create-colors { display: flex; gap: 10px; margin-top: 12px; }
#development-overlay .dev-create-colors > button { flex: 1; min-height: 42px; }
#development-overlay .dev-create-picker { display: grid; grid-template-columns: 44px minmax(0,1fr) 44px; align-items: center; gap: 12px; margin: 14px 0; }
#development-overlay .dev-create-picker > button { min-height: 44px; font-size: 22px; }
#development-overlay .dev-create-selection { display: grid; justify-items: center; gap: 7px; }
#development-overlay .dev-create-preview { display: grid; place-items: center; width: 64px; height: 64px; font-size: 55px; line-height: 1; }
#development-overlay .dev-create-label { color: #f4f0df; font-size: 16px; }
#development-overlay #dev-create-cancel { background: #26352f; color: #f4f0df; }
.game-route { min-height: 100dvh; background: #17231f; color: #f4f0df; font: 16px/1.5 system-ui,sans-serif; }
.route-main { max-width: 860px; margin: 0 auto; padding: clamp(24px,5vw,70px) 24px; }
.route-main h1 { margin: 10px 0; font-size: clamp(36px,6vw,64px); line-height: 1.1; }
.route-kicker { margin: 0; color: #d8bb72; font-size: 11px; font-weight: 750; letter-spacing: .12em; }
.route-intro, .route-note { color: #bfc9c1; max-width: 600px; }
.route-note { margin-top: 24px; font-size: 13px; }
.route-profile { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; margin: 24px 0; }
.route-profile strong { font-size: 22px; }
.route-profile > span:nth-child(2) { color: #e7b84f; }
.route-profile #connection-status { position: static; color: #9bd2a0; font-size: 12px; }
.route-launch { display: inline-block; padding: 12px 22px; background: #e7b84f; color: #18231f; border: 0; border-radius: 5px; font: 700 15px/1.4 system-ui,sans-serif; cursor: pointer; }
.game-route #pvp-arena-card { position: static; width: min(100%,500px); margin: 30px auto; }
.game-route .vision-ethics { color: #f4f0df; }
html[data-embedded-tools] .top-navigation,
html[data-embedded-tools] .site-brand,
html[data-embedded-tools] .player-summary,
html[data-embedded-tools] .board-support-column,
html[data-embedded-tools] #sound-toggle { display: none !important; }
html[data-embedded-tools] .app.chesstive-layout { display: block !important; min-height: 0; height: auto; padding: 12px; }
html[data-embedded-tools] .board-game-layout { display: block !important; height: auto !important; }
html[data-embedded-tools] .board-stage { width: 100%; height: auto !important; }
html[data-embedded-tools] .board-wrap { --responsive-board-size: min(calc(100vw - 24px),440px); margin: 0 auto; }
@media (prefers-reduced-motion: reduce) { #navigation-items > a, #navigation-items > button { transition: none; } }

/* Official supplied PNG; fit the existing logo areas without stretching. */
img.signin-mark { display:block; width:44px; height:44px; object-fit:contain; margin:0 auto; }

.site-footer { width:100%; padding:28px 18px 36px; text-align:center; background:#0d1512; color:#c5d0c6; font:14px/1.5 system-ui,sans-serif; }
.site-footer a { color:#f4f0df; text-decoration:underline; text-underline-offset:4px; }
.site-footer a:hover,.site-footer a:focus-visible { color:#e7b84f; }
.virtual-currency-note { max-width:720px; margin:0 0 18px; color:#c5d0c6; font-size:13px; line-height:1.5; }
