#homeView{max-width:1180px;padding:24px 0!important}#homeContent{padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;color:#f7f4e7}.home-welcome,.home-panel,#homeContent .card{background:linear-gradient(115deg,#09282ff5,#08232af5);border:1px solid #c4a45f;border-radius:12px;box-shadow:inset 0 0 0 3px #b99a4b15,0 4px 14px #0004}.home-welcome{display:flex;align-items:center;gap:16px;padding:12px 20px;margin-bottom:16px}.home-welcome p{margin:0 0 5px;font-size:20px}.home-welcome small{color:#e6d8ab}.home-welcome>a{margin-left:auto;min-height:44px;display:flex;align-items:center}.home-avatar{display:grid;place-items:center;width:54px;height:54px;border:2px solid #d1ad61;border-radius:50%;font:28px Georgia,serif;flex:none}.home-main-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,1fr);gap:16px}.home-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:18px;padding:28px}.home-hero-copy{min-width:0}.home-hero h1{font:700 clamp(34px,3.8vw,58px)/1.04 Georgia,serif;margin:0 0 16px;color:#fff8e7}.home-hero h1 em{color:#f0cb75;font-style:normal}.home-divider{display:flex;align-items:center;gap:8px;color:#e2bc65}.home-divider:before,.home-divider:after{content:'';height:1px;background:#b99b58;flex:1}.home-hero p{font-size:19px}.home-hero .dashboard-actions{margin:18px 0 0;gap:10px}.home-hero .dashboard-actions>a,.home-hero .dashboard-actions>button{font-size:17px;min-height:54px;padding:12px 16px;border-radius:8px;margin:0}.home-board{display:grid;grid-template-columns:repeat(8,1fr);aspect-ratio:1;width:100%;border:5px solid #b08c47;box-shadow:0 0 0 2px #193334,0 0 0 3px #e0c777,0 10px 22px #0008;background:#c9ba94}.home-square{display:grid;place-items:center;min-width:0;aspect-ratio:1;background:#dbd0ac}.home-square.dark{background:#68735c}.home-square img{display:block;width:90%;height:90%;object-fit:contain}.home-side-cards{display:grid;grid-template-rows:1fr 1fr;gap:16px}.home-feature{padding:22px;display:flex;align-items:center;gap:12px;overflow:hidden}.home-feature>div{flex:1;min-width:0}.home-feature h2,#homeContent .home-bottom-grid h2{font-size:21px;margin:0 0 12px}.home-feature p{font-size:16px;line-height:1.5;margin:0 0 14px;color:#e0e9e5}.home-feature-symbol{font:80px Georgia,serif;color:#d6b56c;width:70px;flex:none;text-align:center}.home-cta{display:inline-flex;align-items:center;justify-content:space-between;gap:20px;min-height:44px;padding:8px 18px;background:linear-gradient(#096a43,#084731);border:1px solid #e1c36f;border-radius:7px;text-decoration:none;font-weight:700;color:#fff9e6!important;box-shadow:inset 0 0 0 2px #d2b86222}.home-bottom-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:16px}.home-bottom-grid>.card,.home-bottom-grid>.home-panel{margin:0;padding:22px!important;min-width:0}.home-bottom-grid .dashboard-section-heading{align-items:start;gap:8px;margin:0}.home-bottom-grid .dashboard-section-heading a{font-size:13px;min-height:44px}.home-bottom-grid .dashboard-empty{padding:0;margin:8px 0 14px;line-height:1.5}.home-bottom-grid .dashboard-event{font-size:14px}.home-bottom-grid .dashboard-games button{padding:4px 0;font-size:14px}.home-bottom-grid .dashboard-games small{font-size:12px}.home-collection p{line-height:1.5;margin-bottom:22px}.home-hero button:disabled{opacity:.55}#homeContent a:focus-visible,#homeContent button:focus-visible{outline:3px solid #fff0b3;outline-offset:3px}
@media(max-width:1000px){.home-main-grid{grid-template-columns:1fr}.home-side-cards{grid-template-columns:1fr 1fr;grid-template-rows:auto}.home-hero h1{font-size:clamp(36px,6vw,58px)}.home-board{max-width:360px;justify-self:center}.home-bottom-grid{grid-template-columns:1fr 1fr}.home-collection{grid-column:1/-1}}
@media(max-width:600px){#homeView{padding:12px 0!important}.home-welcome{padding:12px;gap:10px}.home-welcome p{font-size:17px}.home-avatar{width:44px;height:44px;font-size:23px}.home-welcome>a{font-size:13px}.home-welcome small{font-size:12px}.home-hero{grid-template-columns:1fr;padding:22px;gap:22px}.home-hero h1{font-size:42px}.home-board{max-width:270px}.home-side-cards,.home-bottom-grid{grid-template-columns:1fr}.home-collection{grid-column:auto}.home-feature{padding:20px}.home-feature-symbol{font-size:68px}.home-bottom-grid>.card,.home-bottom-grid>.home-panel{padding:20px!important}.home-hero .dashboard-actions>a,.home-hero .dashboard-actions>button{font-size:17px;min-height:52px}.home-welcome>div{min-width:0;overflow-wrap:anywhere}}
@media(prefers-reduced-motion:reduce) and (scripting:none){#homeContent *{scroll-behavior:auto}}
.home-art{display:block;width:135px;height:160px;object-fit:contain;padding:6px;flex:none;filter:none}.home-feature:has(.home-art){gap:4px;padding-right:10px}@media(max-width:600px){.home-art{width:120px;height:150px}}
#homeView{margin:0 auto!important}#homeContent{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.home-bottom-grid .dashboard-events,.home-collection{position:relative;overflow:hidden;padding-right:120px!important;min-height:195px}.home-card-art{position:absolute;right:8px;bottom:10px;width:110px;height:150px;object-fit:contain;padding:8px;pointer-events:none}.home-bottom-grid .dashboard-events .dashboard-section-heading{position:relative;z-index:1;display:block}.home-bottom-grid .dashboard-events .dashboard-event{position:relative;z-index:1}.home-bottom-grid .dashboard-events .dashboard-event img{display:none}.home-bottom-grid .dashboard-events .dashboard-empty{max-width:calc(100% - 85px)}.home-collection p{max-width:calc(100% - 85px)}.home-collection .home-cta{position:relative;z-index:1}@media(max-width:600px){.home-card-art{width:120px;height:155px}.home-bottom-grid .dashboard-events,.home-collection{min-height:210px}}
.puzzle-preview-board{display:grid;grid-template-columns:repeat(8,1fr);width:128px;height:128px;flex:none;border:2px solid #c9ad64;background:#dfd3ad}.puzzle-preview-square{display:grid;place-items:center;min-width:0;aspect-ratio:1;background:#dfd3ad}.puzzle-preview-square.dark{background:#69795c}.puzzle-preview-square img{width:95%;height:95%;object-fit:contain}.home-feature small{display:block;font-size:12px;line-height:1.4;color:#d9dfcd;margin:0 0 12px}.recent-empty-action{display:flex;align-items:center;gap:12px}.recent-empty-action img{flex:none}.home-bottom-grid .dashboard-recent:has(.recent-empty-action){min-height:180px}.home-bottom-grid .dashboard-recent .dashboard-empty{font-size:14px}.home-feature:has(.puzzle-preview-board){gap:10px}@media(max-width:380px){.puzzle-preview-board{width:104px;height:104px}.home-feature:has(.puzzle-preview-board){padding:16px}}
/* Desktop density follows available height without reducing the page scale. */
@media(min-width:1001px) and (min-height:650px){#homeView{padding:14px 0!important}.home-welcome{padding:10px 16px;margin-bottom:12px}.home-avatar{width:44px;height:44px}.home-welcome p{font-size:18px}.home-main-grid,.home-side-cards{gap:12px}.home-hero{padding:20px;gap:16px}.home-hero h1{font-size:clamp(36px,3.2vw,49px);margin-bottom:12px}.home-hero p{font-size:17px;margin:12px 0}.home-hero .dashboard-actions{margin-top:12px;gap:8px}.home-hero .dashboard-actions>a,.home-hero .dashboard-actions>button{min-height:48px;font-size:16px;padding:10px 14px}.home-board{max-width:min(300px,35dvh)}.home-feature{padding:14px 16px}.home-feature h2,#homeContent .home-bottom-grid h2{font-size:20px;margin-bottom:8px}.home-feature p{font-size:15px;line-height:1.35;margin-bottom:8px}.home-feature small{font-size:11px;margin-bottom:8px}.home-feature .home-cta{min-height:40px;font-size:14px;padding:7px 12px}.home-art{width:105px;height:116px}.puzzle-preview-board{width:112px;height:112px}.home-bottom-grid{gap:12px;margin-top:12px}.home-bottom-grid>.card,.home-bottom-grid>.home-panel{padding:16px!important}.home-bottom-grid .dashboard-events,.home-collection,.home-bottom-grid .dashboard-recent:has(.recent-empty-action){min-height:165px}.home-card-art{width:95px;height:120px}.home-bottom-grid p{font-size:14px;line-height:1.4}.home-collection p{margin-bottom:12px}.home-bottom-grid .dashboard-section-heading{margin-bottom:0}.home-bottom-grid .dashboard-section-heading a{min-height:32px}.home-bottom-grid .home-cta{min-height:40px;font-size:14px;padding:8px 12px}}
.home-feature>.puzzle-preview-board{flex:0 0 128px;grid-template-rows:repeat(8,minmax(0,1fr));min-width:0;min-height:0}.puzzle-preview-board>.puzzle-preview-square{min-height:0;overflow:hidden}.puzzle-preview-board img{display:block;min-height:0}@media(min-width:1001px) and (min-height:650px){.home-feature>.puzzle-preview-board{flex-basis:112px}}@media(max-width:380px){.home-feature>.puzzle-preview-board{flex-basis:104px}}

/* Desktop checkpoint: one compact header and readable cards. */
@media(min-width:1001px){
body:before{content:'';position:fixed;inset:0;background:#051b2166;pointer-events:none;z-index:-1}
body>header{height:76px;min-height:76px;padding:4px max(20px,calc((100vw - 1280px)/2));display:flex;background:#08242ded;border-bottom:1px solid #bda26070}
body>header .brand{flex:0 0 150px}body>header .brand img.brand-logo{width:150px;height:70px;object-fit:contain}
body>header #sectionNav{width:auto;flex:1;height:52px;min-height:52px;background:transparent;margin:0 20px;align-self:center}
body>header #sectionNav a{padding:12px 20px;font-size:16px}body>header>nav:not(#sectionNav){flex:none;margin-left:0}
body:has(#club[hidden]) #sectionNav{display:none}#accountMenu>summary{border-radius:8px}#accountMenu>div{top:52px}
.home-hero{grid-template-columns:1.12fr .88fr}.home-hero h1{font-size:clamp(36px,3.05vw,46px)}.home-hero h1 em{white-space:nowrap}
.home-welcome{padding:8px 16px}.home-welcome p{font-size:17px}.home-avatar{width:40px;height:40px}
.home-bottom-grid .dashboard-events,.home-collection{padding-right:108px!important;min-height:180px}.home-bottom-grid .dashboard-events .dashboard-empty,.home-collection p{max-width:none}
.home-bottom-grid .dashboard-events .dashboard-section-heading{display:flex;flex-direction:column;gap:2px}.home-bottom-grid .dashboard-events .dashboard-section-heading a{order:2;min-height:36px;color:#f1cf82;text-decoration:underline}.home-card-art{width:96px;height:116px;right:6px;bottom:24px}
#learnTabs{display:flex;gap:10px;margin:14px 0}#learnTabs button[aria-pressed=true]{background:#22604b;color:#fff;border-color:#d7bd75}
#puzzleContent{max-width:1120px;margin:0 auto;padding:20px}#puzzleContent>h2{margin:0 0 8px}#puzzleContent>p{font-size:14px;margin:0 0 16px;color:#cedad4}
#puzzleContent .puzzle-layout{display:grid;grid-template-columns:minmax(360px,540px) minmax(270px,1fr);gap:28px;align-items:start}
#puzzleContent .puzzle-board{width:100%;max-width:540px;aspect-ratio:1;display:grid;grid-template-columns:repeat(8,1fr);grid-template-rows:repeat(8,1fr)}
#puzzleContent .puzzle-square{min-width:0;min-height:0;padding:0;margin:0;aspect-ratio:1}#puzzleContent .puzzle-square img{width:86%;height:86%;object-fit:contain}#puzzleContent .puzzle-square small{font-size:10px}
.puzzle-controls{padding:20px;background:#0c2931;border:1px solid #bda260;border-radius:10px}.puzzle-controls h3{font-size:25px;margin:16px 0 10px}.puzzle-controls .puzzle-turn{color:#efd48b;font-weight:700}.puzzle-controls form{display:grid;grid-template-columns:1fr 1fr;gap:12px}.puzzle-controls form>button,.puzzle-feedback{grid-column:1/-1}.puzzle-controls>button{margin:6px 8px 6px 0}.puzzle-feedback:empty{display:none}.puzzle-feedback{padding:12px;background:#183e42;color:#fff1b7;border-radius:6px}.puzzle-progress{font-size:14px;color:#cad9ce}
}

@media(min-width:1001px){#learnView{max-width:1120px;margin:0 auto!important}#puzzleContent{padding:16px}#puzzleContent .puzzle-layout{grid-template-columns:minmax(350px,min(500px,calc(100dvh - 270px))) minmax(300px,1fr);gap:22px}#puzzleContent .puzzle-board{max-width:min(500px,calc(100dvh - 270px))}.puzzle-controls{padding:16px}.puzzle-controls>p{margin:10px 0;line-height:1.4}.puzzle-controls h3{font-size:23px;margin:10px 0}.puzzle-controls form{gap:8px}.puzzle-controls form input{min-height:38px}.puzzle-controls form>button{min-height:40px}.puzzle-controls>button{min-height:38px;font-size:13px;padding:8px}.puzzle-controls .puzzle-feedback{margin:4px 0;padding:10px}.puzzle-controls .puzzle-progress{margin-top:0}#puzzleContent .puzzle-square small{background:transparent;color:#101c20;font-weight:700;font-size:12px;position:absolute}#puzzleContent .puzzle-square .puzzle-rank{left:3px;top:2px;bottom:auto}#puzzleContent .puzzle-square .puzzle-file{right:3px;bottom:2px;left:auto}}

@media(min-width:1001px){.puzzle-controls form>label{display:flex;flex-direction:column;align-items:stretch;gap:5px}.puzzle-controls form input{width:100%;min-width:0}#puzzleContent .puzzle-square{background:#ddd4b5;opacity:1}#puzzleContent .puzzle-square.dark{background:#65765b}#puzzleContent .puzzle-square.dark small{color:#fff8e3}}

/* Desktop Social and Store: explicit tabs, stable headings, balanced first view. */
@media(min-width:1001px){
#messagesView:not([hidden]){display:flex;flex-direction:column;height:calc(100dvh - 76px);min-height:0;padding-top:10px;gap:8px;overflow:hidden}
#messagesView .social-tabs{flex:none;margin:0;padding:0;min-height:48px}
#messagesView .social-tabs button[aria-selected=false]{background:#243a3e;color:#e5eae5;border-color:#82918a;box-shadow:none}
#messagesView .social-tabs button[aria-selected=true]{background:#d8b76c;color:#201c12;border-color:#ffe6ad;box-shadow:inset 0 -3px #fff0b2}
#messagesView #inboxContent,#messagesView #clubsContent{height:auto;min-height:0;flex:1}
#messagesView #inboxContent{padding:8px 0 12px;gap:6px}
#messagesView #inboxContent>h1,#messagesView #inboxContent>p{flex:none;line-height:1.4;margin:0}
#messagesView #inboxContent>h1{font-size:24px;min-height:34px}
#messagesView:has(.empty-state-card){height:calc(100dvh - 76px);min-height:0}
#messagesView #inboxContent>.inbox-first-run{max-width:680px;width:100%;margin:14px auto;flex:none;padding:26px}
#messagesView .inbox-layout{min-height:0;margin-top:4px}
#themesView{max-width:1120px;margin:0 auto!important;padding-top:14px}
#themesView #themes{padding:22px}#themesView #themes>h2{margin-top:0}
#themesView .theme-customizer{max-width:none;display:grid;grid-template-columns:minmax(280px,.85fr) minmax(400px,1.15fr);gap:16px 24px;align-items:start}
#themesView .theme-customizer>h3{grid-column:1/-1;margin:6px 0}
#themesView .theme-selection-fields{grid-column:1;grid-row:2;grid-template-columns:1fr 1fr}
#themesView .theme-mix-preview{grid-column:2;grid-row:2/4;margin:0;padding:22px}
#themesView .theme-sample-board{width:min(100%,330px)}
#themesView .theme-selection-actions{grid-column:1;grid-row:3;margin:0;align-self:start}
}

@media(min-width:1001px){#messagesView #inboxContent{padding:12px}#messagesView #inboxContent:has(>.inbox-first-run){flex:0 0 auto;background:transparent;border:0;box-shadow:none;overflow:visible}#messagesView #inboxContent>.inbox-first-run{margin:14px 0;max-width:760px}}

@media(min-width:1001px){#messagesView #inboxContent:has(>.inbox-first-run){max-width:860px;width:100%;align-self:flex-start;background:#102b29f5;border:1px solid #b59a5f;border-radius:12px;padding:24px}#messagesView #inboxContent>.inbox-first-run{margin:14px 0 0;padding:0;background:none;border:0;box-shadow:none}}

@media(min-width:1001px){#messagesView #clubsContent:has(>.empty-state-card){flex:0 0 auto;background:transparent;padding:0}#messagesView #clubsContent>.empty-state-card{max-width:860px;margin:8px 0}}

/* Tab selection must update background and text together, without inherited background interpolation. */
@media(min-width:1001px){#messagesView .social-tabs button{transition:none}}

/* Desktop workspace: a quiet left rail and a board-led playing surface. */
#railToggle,#companionToggle{display:none}
@media(min-width:1001px){
body{--rail-width:88px;padding-left:var(--rail-width)}body[data-rail-expanded=true]{--rail-width:192px}
body>header{position:fixed;inset:0 auto 0 0;width:var(--rail-width);height:100dvh;min-height:0;padding:12px 8px;display:flex;flex-direction:column;flex-wrap:nowrap;gap:12px;align-items:stretch;border:0;border-right:1px solid #bda26070;background:#09242bf7;z-index:30}
body>header .brand{flex:none;width:100%;height:76px;display:flex;justify-content:center}body>header .brand img.brand-logo{width:100%;height:76px;object-fit:contain}body>header .brand>span{display:none}
#railToggle{display:block;min-height:36px;padding:5px;font-size:18px;background:transparent;border-color:#59706c}
body>header #sectionNav{display:flex;flex-direction:column;width:100%;height:auto;min-height:0;flex:1;justify-content:flex-start;align-items:stretch;margin:0;gap:8px}
body>header #sectionNav a{flex:0 0 auto;min-height:60px;padding:8px 4px;flex-direction:column;gap:5px;font-size:12px;border-radius:8px;color:#e4e8e1;transition:none;text-decoration:none}
body>header #sectionNav a[aria-current=page]{background:#d8b76c;color:#172b2b;border:1px solid #f1dca1;box-shadow:none}
body[data-rail-expanded=true]>header #sectionNav a{flex-direction:row;justify-content:flex-start;font-size:15px;padding:12px;gap:12px}
body>header>nav:not(#sectionNav){display:flex;flex:none;flex-direction:column;width:100%;gap:6px;margin:0}#language{width:100%;font-size:11px;padding:6px 2px}#connection{font-size:10px;text-align:center}#accountMenu>summary{font-size:11px;justify-content:center;padding:6px;min-height:40px}#accountMenu>div{left:calc(100% + 14px);right:auto;top:auto;bottom:0}
body>main,body:has(#sectionNav)>main{width:100%;max-width:none;padding:0 24px;margin:0}#notice:not(:empty){top:12px}
#homeView{padding-top:20px!important}#messagesView:not([hidden]),#messagesView:has(.empty-state-card){height:100dvh;max-width:1180px}#themesView{max-width:1280px;padding:24px 0!important}#lobbyView{max-width:1180px;margin:0 auto!important;padding:28px 0}
#matchBar,#reviewView>.review-back{display:none}#playView>.layout{width:100%}
#playView #play{--board-size:min(calc(100dvh - 164px),calc(100vw - var(--rail-width) - 408px),820px);width:100%;height:100dvh;grid-template-columns:var(--board-size) 300px;grid-template-rows:36px var(--board-size) 36px 64px;gap:6px 24px;justify-content:center;align-content:center;margin:0;padding:8px 0}
#playView #play>.board{grid-column:1;grid-row:2}#playView #play>.playerbar{grid-column:1;height:36px;border-radius:6px}#playView #play>.playerbar:has(#clockTop){grid-row:1}#playView #play>.playerbar:has(#clockBottom){grid-row:3;margin-top:8px}
#playView #matchEssential{grid-column:1;grid-row:4;grid-template-columns:minmax(0,1fr) 42px 64px;grid-template-rows:18px 40px;height:64px;gap:2px 4px;padding:2px 4px}#playView #gameStatus{grid-column:1/4}#playView #actions{grid-column:1}#playView #actions button{min-height:40px;font-size:13px}#playView #flipBoard{grid-column:2;min-height:40px;width:42px}
#companionToggle{display:block;min-height:40px;margin:0;padding:4px;font-size:12px;grid-column:3;grid-row:2}
#playView #matchPanel,#playView #matchPanel[data-tab=moves]{grid-column:2;grid-row:1/5;align-self:stretch;height:100%;max-height:none;min-height:0;margin:0;border-color:#b69c62;background:#0b252cf5}
#playView #matchPanel[data-tab=moves]>#moves{flex:1;min-height:0;padding:16px;line-height:2.1}#matchTabs{padding:8px;gap:4px;border-bottom:1px solid #365253}#matchTabs button{font-size:13px;min-height:48px;padding:5px 3px;display:flex;flex-direction:column;align-items:center;gap:4px;transition:none}
body[data-companion-closed=true] #playView #play{--board-size:min(calc(100dvh - 164px),calc(100vw - var(--rail-width) - 88px),820px);grid-template-columns:var(--board-size)}body[data-companion-closed=true] #playView #matchPanel{display:none}
#reviewView{height:100dvh;--board-size:min(calc(100dvh - 146px),calc(100vw - var(--rail-width) - 428px),820px);padding:10px 0}
#reviewView>.review-workspace{height:100%;grid-template-columns:var(--board-size) 320px;justify-content:center;align-content:center;gap:24px}
#reviewBoardHost>#play{height:calc(var(--board-size) + 126px);grid-template-columns:var(--board-size);grid-template-rows:36px var(--board-size) 36px 44px;gap:4px}
#reviewView #play>.playerbar{height:36px}#reviewView #play>.playerbar:has(#clockBottom){margin-top:8px}#reviewView #play>.board{grid-row:2}#reviewView #matchEssential{grid-row:4;display:flex;flex-wrap:nowrap;height:44px;padding:0;margin-top:4px}#reviewView #companionToggle{flex:0 0 54px}#reviewView #replay{gap:3px}#reviewView #replay>button{font-size:12px;min-height:40px}
#reviewView #reviewSidebar,#reviewView #reviewSidebar[data-tab=moves]{align-self:stretch;height:calc(var(--board-size) + 126px);max-height:none;padding:8px;min-height:0;background:#0b252cf5;border:1px solid #b69c62;border-radius:12px}
#reviewView .review-tabs{gap:4px;padding-bottom:8px;border-bottom:1px solid #365253}#reviewView .review-tabs button{display:flex;align-items:center;justify-content:center;gap:6px;font-size:13px;margin:0;transition:none}
body[data-companion-closed=true] #reviewView{--board-size:min(calc(100dvh - 146px),calc(100vw - var(--rail-width) - 88px),820px)}body[data-companion-closed=true] #reviewView>.review-workspace{grid-template-columns:var(--board-size)}body[data-companion-closed=true] #reviewSidebar{display:none}
#reviewAnalysisHost{padding:8px 4px}#reviewAnalysisHost #matchTools{margin:0;padding:0;background:none;border:0;box-shadow:none}#reviewControls{border:0;background:none;padding:0;margin:0}#reviewControls>h3{font-size:16px;margin:8px 0}.review-selected{padding:12px;background:#18383d;border-radius:8px;font-size:14px}.review-selected strong{display:block;font-size:24px;color:#f3d384;margin-top:8px}.review-selected p{font-size:13px;line-height:1.5;margin-bottom:0}.review-request-status:empty{display:none}#reviewControls>button{min-height:42px;margin:10px 0}#reviewControls ol{padding-left:0;list-style:none}#reviewControls li{padding:12px 0;border-bottom:1px solid #365253}#reviewControls li p{font-size:13px;line-height:1.5}#reviewControls li button{font-size:13px;margin:4px 0;padding:8px;min-height:36px}.review-technical{margin:12px 0;font-size:12px}.review-technical summary{padding:8px;cursor:pointer}#reviewMore{border-top:1px solid #365253;margin-top:10px;padding-top:8px}#reviewMore>summary{cursor:pointer;padding:10px;font-size:14px}#reviewMore #classicPieces:disabled{display:none}#reviewMore nav a[href='#history']{display:none}#reviewMore button,#reviewMore nav a{font-size:13px;min-height:36px}#reviewMore #matchExports:empty{display:none}
#reviewView #annotationControls{display:flex;flex-wrap:wrap;gap:4px;padding:8px 0;border-top:1px solid #365253}#reviewView #annotationControls[hidden]{display:none}#reviewView #annotationControls>button{width:auto;flex:1;min-height:36px;margin:0;padding:6px;font-size:12px}#reviewView #annotationControls>p{font-size:11px;line-height:1.45;margin:4px 0}#reviewView #annotationControls label{display:flex;align-items:center;gap:8px;font-size:11px;margin:0}#reviewView #annotationControls input{width:16px;height:16px;min-height:16px}
.store-workspace{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(340px,.85fr);gap:24px;align-items:start}#themesView #themes{padding:24px;background:#0b252cf5}#themesView #themes>h2{font-size:28px}#themesView #themes>p{font-size:14px;line-height:1.5;max-width:760px;margin-bottom:22px}.store-collection>h3{font-size:17px;margin:0 0 12px}.store-collection>button{margin:0 0 12px;min-height:38px}.store-collection .theme-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0}.store-collection .theme-card{position:relative;padding:10px;min-width:0;margin:0;border:1px solid #506b68;border-radius:10px;background:#173238;overflow:hidden}.store-collection .theme-card[hidden]{display:none}.store-collection .theme-card[data-selected=true]{border:2px solid #e5c67d;padding:9px}.collection-art{width:100%;height:110px;object-fit:cover;border-radius:6px;display:block;margin-bottom:10px}.store-collection .theme-card h3{font-size:16px;margin:6px 0}.store-collection .theme-card p{font-size:12px;margin:6px 0;color:#cedbd3}.store-collection .theme-card button{font-size:12px;padding:6px 9px;min-height:34px;margin:4px 4px 0 0;width:auto}.store-collection .theme-slot-action{display:none}.store-collection [data-theme-choose]{background:#d8b76c;color:#14292a}
#themesView .theme-customizer{position:sticky;top:20px;display:flex;flex-direction:column;gap:12px;background:#163239;border:1px solid #506b68;border-radius:12px;padding:18px}#themesView .theme-customizer>h3{font-size:22px;order:0;margin:0}#themesView .theme-mix-preview{order:1;width:100%;padding:16px;border-radius:8px;min-height:0}#themesView .theme-sample-board{width:min(100%,270px)}#themesView .theme-selection-fields{order:2;width:100%;gap:10px;display:grid;grid-template-columns:1fr 1fr}#themesView .theme-selection-fields label{font-size:12px}#themesView .theme-selection-fields select{font-size:12px;min-height:38px;width:100%}#themesView .theme-save-state{order:3;margin:0;font-size:13px;color:#f1d28c;min-height:20px}#themesView .theme-selection-actions{order:4;display:flex;gap:6px;flex-wrap:wrap;margin:0}#themesView .theme-selection-actions button{font-size:12px;padding:7px;min-height:36px;margin:0}#themesView .theme-selection-actions button:last-child{background:#d8b76c;color:#14292a}
#lobby{padding:26px;background:#0b252cf5}#lobby>h2{font-size:28px;margin-bottom:10px}#lobby>p{font-size:14px;line-height:1.6;max-width:760px}#lobby>[role=status]:empty{display:none}.discovery-layout{display:grid;grid-template-columns:340px minmax(0,1fr);gap:28px;margin-top:24px}.discovery-setup{padding:20px;background:#163239;border:1px solid #506b68;border-radius:12px}.discovery-layout h3{font-size:17px;margin:0 0 14px}.discovery-layout p{font-size:13px;line-height:1.6}.discovery-privacy{border-bottom:1px solid #506b68;padding-bottom:14px;margin-bottom:14px}.discovery-privacy p{color:#f1d28c}.discovery-privacy button{width:100%;min-height:44px}.time-presets{display:grid;grid-template-columns:1fr 1fr;gap:8px}.time-presets button{font-size:21px;min-height:54px;margin:0;transition:none}.time-presets [aria-pressed=true]{background:#d8b76c;color:#14292a}.discovery-custom{display:grid;grid-template-columns:1fr 1fr;gap:10px}.discovery-custom label{font-size:12px}.discovery-custom select{display:block;width:100%;margin-top:6px;font-size:15px;min-height:42px}.discovery-alternatives{margin-top:20px;padding-top:18px;border-top:1px solid #506b68}.discovery-alternatives button{min-height:42px;margin:0 4px 6px 0;font-size:13px}.discovery-activity{padding-top:8px}.discovery-empty{padding:26px;background:#18373c;border-radius:10px;margin:16px 0 28px}.discovery-empty h3{font-size:21px;line-height:1.4}.discovery-players,.discovery-challenges{padding:0;list-style:none}.discovery-players li{display:flex;justify-content:space-between;align-items:center;padding:14px;background:#18373c;border-radius:8px;margin-bottom:10px}.discovery-players li span{font-size:17px}.discovery-players button{min-height:40px}.discovery-challenges li{padding:14px;border:1px solid #506b68;border-radius:8px;margin-bottom:10px}.discovery-challenges button{min-height:38px;font-size:13px;margin-right:6px}
}

@media(min-width:1001px){
#railToggle{color:#f1d28c}#themesView .theme-selection-actions button:disabled{background:#263e42;color:#acbcb8;opacity:1;border-color:#526965;cursor:default}.discovery-custom-details>summary{padding:10px 0;cursor:pointer;font-size:13px;color:#e7cb8b}.discovery-custom-details{margin-top:10px}.discovery-activity>.discovery-alternatives{padding:20px;border:1px solid #506b68;border-radius:10px;background:#173238;margin-top:24px}.discovery-activity>.discovery-alternatives p{margin-bottom:0}.discovery-setup{align-self:start}.discovery-activity{min-width:0}#lobby>[role=status]:not(:empty){position:absolute;right:32px;top:20px;font-size:12px}#lobby{position:relative}#reviewControls>ol>li:has(button:focus-visible){outline:1px solid #e7cb8b;outline-offset:2px}
}

@media(min-width:1001px){body>header #sectionNav a::before,#matchTabs button::before,.review-tabs button::before{display:none}#sectionNav a>svg,#matchTabs button>svg,.review-tabs button>svg{width:21px;height:21px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}}

@media(min-width:1001px){.move-table-heading,.move-table-row{display:grid;grid-template-columns:32px minmax(0,1fr) minmax(0,1fr);gap:4px;align-items:center}.move-table-heading{position:sticky;top:0;background:#102b31;font:12px/1.5 system-ui;padding:10px 4px;color:#b7ccc5;z-index:1}.move-table-row{padding:3px 4px;border-bottom:1px solid #26444a;font:15px/1.5 ui-monospace,monospace;min-height:39px}.move-table-row>span:first-child{color:#96ada6;font-size:12px}.move-table-row .move-san{min-width:0;min-height:32px;margin:0;padding:6px 8px;text-align:left;border:0;border-radius:5px;font:15px/1.4 ui-monospace,monospace;display:block;width:100%;background:transparent;color:#f2f0df}.move-table-row .move-san[aria-current=step]{background:#d8b76c;color:#102b2b;font-weight:700}#reviewMoveList>button{width:100%;min-height:36px;margin:8px 0;font-size:12px}.move-result{padding:12px;background:#24483c;color:#f2d793;font:600 15px/1.5 system-ui;border-radius:8px;margin-bottom:10px}#reviewSidebar[data-tab=moves] #reviewMoveList{flex:1;max-height:none}}

@media(min-width:1001px){#reviewControls>button:disabled{display:none}#reviewControls ol>li:not([data-selected=true])>p,#reviewControls ol>li:not([data-selected=true])>.engine-line-details,#reviewControls ol>li:not([data-selected=true])>button:not(:first-child){display:none}#reviewControls ol>li{padding:5px 0}#reviewControls ol>li[data-selected=true]{border:1px solid #b59b61;border-radius:8px;padding:10px;background:#17363b}#reviewControls ol>li>button:first-child{width:100%;text-align:left}#reviewControls .engine-line-details{font-size:12px;overflow-wrap:anywhere}.engine-line-details summary{padding:8px 0;cursor:pointer}#reviewView #annotationControls .drawing-help{width:100%;font-size:11px;margin-top:4px}#reviewView #annotationControls .drawing-help summary{cursor:pointer;padding:6px 0}#reviewView #annotationControls .drawing-help p{font-size:11px;line-height:1.5}#reviewView #annotationControls>label{width:100%}}

@media(min-width:1001px){#reviewControls li .variation-step{display:inline-block;width:auto;min-height:34px;margin:3px;padding:6px 9px;font-size:12px}#reviewControls li p{margin:8px 0}#reviewAnalysisHost #reviewControls{margin-top:0;padding-top:0}.review-selected>p{font-size:12px}#reviewControls>h3{margin-top:0}#reviewView #annotationControls{gap:6px}.drawing-help{color:#c5d5ce}}
@media(min-width:1001px) and (max-height:850px){#themesView .theme-sample-board{width:min(100%,220px)}#themesView .theme-mix-preview{padding:12px}#themesView .theme-customizer{gap:10px;padding:16px}#themesView .theme-selection-fields{gap:6px}#themesView #themes>p{margin-bottom:16px}}

@media(min-width:1001px){#reviewControls li:not([data-selected=true])>.variation-more{display:none}#reviewControls .variation-more{font-size:12px;margin:8px 0}#reviewControls .variation-more summary{cursor:pointer;padding:8px 0}#reviewControls li{display:flex;flex-wrap:wrap;gap:3px}#reviewControls li>button:first-child,#reviewControls li>p,#reviewControls li>.engine-line-details{width:100%}#reviewControls li>.variation-more{order:3;width:100%}#reviewControls li>.variation-step{order:2;margin:2px}#reviewControls li>.engine-line-details{order:4}#reviewMore>summary::before{content:'⋯';margin-right:8px;font-size:18px}}
@media(min-width:1001px){#playView #matchPanel[data-tab=moves]>#moves{padding:0 12px;scroll-padding-top:44px}.move-table-heading{padding-top:12px;padding-bottom:12px}}

@media(min-width:1001px){.discovery-challenges .challenge-time{font-weight:700;color:#f4d58a}.discovery-challenges button.primary,#reviewControls>button.primary{background:#d8b76c;color:#102b2b;border-color:#f0d798;font-weight:700}#actions #resign{background:transparent;color:#cbb9b5;border:1px solid #576364;font-weight:400}#reviewView #annotationControls>button{background:transparent;color:#b9cdc6;border-color:#52676a}#reviewView #annotationControls>button[aria-pressed=true]{background:#284c4b;color:#fff}}

/* Board furniture: a steady, square frame and compact position information. */
#play>.board{border:4px solid #27353b;border-image:none;border-radius:0;outline:1px solid #bca36d;outline-offset:1px;box-shadow:0 0 0 3px #12242b,0 12px 30px #07151c65}
#play>.playerbar{display:grid;grid-template-columns:minmax(0,1fr) auto auto;grid-template-rows:26px 22px;gap:1px 10px;min-height:56px;height:56px!important;padding:3px 10px!important;border:1px solid #77817a80;border-radius:7px;background:#10262eed;overflow:hidden;margin:0!important}
#play>.playerbar>span:first-child{grid-column:1;grid-row:1;font-size:13px;min-width:0}
#play>.playerbar .clock{grid-column:3;grid-row:1/3;min-width:88px;align-self:center;font-size:23px;border:1px solid #6b7777;border-radius:5px;background:#0c1b22;color:#e8eee8;padding:6px}
.player-position-info{grid-row:2;grid-column:1/3;display:flex;align-items:center;gap:8px;min-width:0;overflow:hidden;font-size:11px;color:#bccac6}
.capture-strip{display:flex;align-items:center;gap:5px;min-width:0;white-space:nowrap}.capture-caption{font-size:10px;color:#bdccc9}.capture-group{display:inline-flex;align-items:center;gap:1px;font:10px system-ui}.capture-group img{width:21px;height:21px;object-fit:contain;filter:drop-shadow(0 0 1px #eee)}.material-balance{font-size:12px;font-weight:700;color:#ead19a}.turn-indicator{grid-column:2;grid-row:1;font-size:12px;font-weight:750;color:#ffdf8f;white-space:nowrap}
#play>.playerbar[data-active-turn=true]{border-color:#e4c174;box-shadow:inset 3px 0 #e4c174;background:#203b3b}
#play>.playerbar[data-active-turn=true] .clock{border-color:#e4c174;background:#e4c174;color:#15272c}
#matchPanel,#reviewSidebar{border:1px solid #77817a80!important;box-shadow:0 6px 22px #07151c35;border-radius:10px!important}
@media(min-width:1001px){#playView #play{--board-size:min(calc(100dvh - 204px),calc(100vw - var(--rail-width) - 408px),820px);grid-template-rows:56px var(--board-size) 56px 64px}body[data-companion-closed=true] #playView #play{--board-size:min(calc(100dvh - 204px),calc(100vw - var(--rail-width) - 88px),820px)}#reviewView{--board-size:min(calc(100dvh - 186px),calc(100vw - var(--rail-width) - 428px),820px)}#reviewBoardHost>#play{grid-template-rows:56px var(--board-size) 56px 44px}body[data-companion-closed=true] #reviewView{--board-size:min(calc(100dvh - 186px),calc(100vw - var(--rail-width) - 88px),820px)}}
@container(max-width:520px){.capture-caption{display:none}.capture-group{gap:0}.capture-strip{gap:3px}.turn-indicator{font-size:11px}}
.result-view{border:1px solid #bca36d!important;outline:3px solid #152b32;box-shadow:0 20px 80px #0008;border-radius:12px!important;padding:28px!important;width:min(480px,calc(100vw - 32px))}
.result-view h2{font:700 30px/1.2 Georgia,serif;margin:0 0 14px}.result-view .result-crest{width:104px;height:104px;object-fit:contain;margin:0 auto 10px}.result-view .result-reason{font-size:19px;font-weight:650;color:#f1dfb8;margin:8px 0}.result-view .result-opponent{font-size:13px;color:#c1cfcb}.result-view .result-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.result-view .result-actions button{white-space:nowrap;padding:11px 8px;min-height:44px}.result-view .result-actions .primary{grid-column:1/-1;grid-row:1;font-weight:750}.result-view [data-result-action=close]{grid-column:1/-1;background:transparent;border-color:transparent;color:#c2cfcb}
.ambience-scene{position:fixed;inset:0;pointer-events:none;z-index:0;overflow:hidden;background:radial-gradient(ellipse at 20% 75%,color-mix(in srgb,var(--theme-light,#e4d2a8) 12%,transparent),transparent 55%)}.ambience-scene::before{content:"";position:absolute;inset:-10%;background:radial-gradient(ellipse at 65% 40%,#d4dbe912,transparent 55%);animation:realm-mist 38s ease-in-out infinite alternate}.ambience-scene i{position:absolute;width:3px;height:3px;border-radius:50%;background:var(--theme-light,#e4d2a8);opacity:.25;animation:realm-drift 35s ease-in-out infinite alternate}.ambience-scene[data-paused=true],.ambience-scene[data-paused=true]::before,.ambience-scene[data-paused=true] i{animation-play-state:paused}.ambience-scene~main,.ambience-scene~footer{position:relative;z-index:1}@keyframes realm-mist{to{transform:translate(3%,2%);opacity:.4}}@keyframes realm-drift{to{transform:translate(30px,-45px);opacity:.08}}.game-particles{position:fixed;pointer-events:none;z-index:35;overflow:hidden}.game-particles i{position:absolute;width:4px;height:4px;border-radius:50%;background:#d9bd7d;opacity:.65;animation:realm-spark .45s ease-out forwards}.game-particles[data-kind=check] i{background:#cd9a87}.game-particles[data-kind=move] i{width:16px;height:16px;background:#d9bd7d55}@keyframes realm-spark{to{transform:translate(var(--dx),var(--dy)) scale(.3);opacity:0}}@media(prefers-reduced-motion:reduce) and (scripting:none){.ambience-scene,.game-particles{display:none!important}}html[data-low-power=true] .game-particles,html[data-reduced-distraction=true] .game-particles{display:none!important}#musicCredits p{font-size:13px;line-height:1.7}#musicCredits small{display:block;margin-top:3px;color:#c0cfca}
@media(min-width:1001px){#reviewBoardHost>#play,#reviewView #reviewSidebar,#reviewView #reviewSidebar[data-tab=moves]{height:calc(var(--board-size) + 166px)}}
/* Approved sunset homepage. All layout rules are scoped to this view. */
body[data-screen=home]{background-image:linear-gradient(#15132318,#15132335),url('/assets/homepage/everwake-valley-1672.webp')!important;background-size:cover!important;background-position:center!important;background-attachment:fixed!important}
body[data-screen=home]:before{background:transparent}
#homeView{max-width:1180px;padding:clamp(24px,5.5vh,64px) 0 24px!important}
#homeContent .home-welcome,#homeContent .home-panel,#homeContent .card{border:1px solid #c5a454;border-radius:11px;background:linear-gradient(115deg,#062a2af5,#061f25ed);box-shadow:inset 0 0 0 3px #bc9b5020,0 8px 24px #0004}
#homeContent .home-welcome{min-height:68px;padding:10px 20px;margin-bottom:14px;gap:14px}
#homeContent .home-welcome p{font:700 23px/1.2 Georgia,serif;margin-bottom:4px}
#homeContent .home-welcome small{color:#d2dbd4;font-size:13px}
#homeContent .home-avatar{height:40px;width:40px;font-size:23px}
#homeContent .home-welcome>a{border:1px solid #b99b56;border-radius:6px;padding:6px 14px;text-decoration:none;color:#efd497;gap:20px}
#homeContent .home-main-grid{grid-template-columns:minmax(0,1.68fr) minmax(300px,1fr);gap:14px}
#homeContent .home-hero{position:relative;isolation:isolate;min-height:406px;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.85fr);gap:0;padding:28px;overflow:hidden;background:linear-gradient(90deg,#062a2afa 0%,#062a2af7 48%,#08232978 100%),url('/assets/homepage/everwake-valley-840.webp') right center/cover}
#homeContent .home-hero-copy{position:relative;z-index:1}
#homeContent .home-hero h1{font:700 clamp(36px,3.7vw,55px)/1.04 Georgia,serif;margin:0 0 15px;letter-spacing:-.8px}
#homeContent .home-hero h1 em{color:#f1cb76}
#homeContent .home-hero p{font-size:15px;line-height:1.5;color:#d1dcd5;margin:0 0 8px}
#homeContent .home-divider{font-size:15px;gap:8px}
#homeContent .home-hero-art{display:block;width:100%;height:340px;object-fit:contain;align-self:center;filter:drop-shadow(0 12px 12px #0006);padding:0;max-width:none}
#homeContent .dashboard-actions{display:flex;flex-direction:column;margin:9px 0 0;gap:10px}
#homeContent .dashboard-actions>button{display:flex;align-items:center;gap:12px;font-size:16px;min-height:44px;padding:9px 14px;border:1px solid #c5a454;color:#f7edcf;background:#061d24a8;border-radius:7px;box-shadow:none;text-align:left}
#homeContent .dashboard-actions>button>span{margin-left:auto}
#homeContent .dashboard-actions .dashboard-play{min-height:60px;background:linear-gradient(#08794e,#034c36);font:700 26px Georgia,serif;border-color:#dec471;box-shadow:inset 0 1px #e9d78a70}
#homeContent .dashboard-actions svg{width:25px;height:25px;flex:none;fill:none;stroke:#f0d79b;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#homeContent .home-time-controls{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
#homeContent .home-time-controls button{min-height:42px;margin:0;padding:7px 6px;background:#061d24cc;border:1px solid #b99d59;border-radius:7px;font-size:14px;color:#f0eee0;font-weight:600}
#homeContent .home-time-controls button[aria-pressed=true]{background:#0b4736;border-color:#84b77c;color:#f6d887;box-shadow:inset 0 0 0 1px #68a271}
#homeContent .home-or{display:flex;align-items:center;gap:10px;color:#bac8c0;font-size:12px}
#homeContent .home-or:before,#homeContent .home-or:after{content:'';height:1px;background:#b79d5f70;flex:1}
#homeContent .home-puzzle{padding:20px 22px 14px;display:flex;flex-direction:column;align-items:center;gap:12px;min-width:0}
#homeContent .home-puzzle>div:first-child{align-self:stretch}
#homeContent .home-puzzle h2,#homeContent .home-bottom-grid h2{font:700 23px/1.2 Georgia,serif;color:#fff3da;margin:0 0 9px}
#homeContent .home-puzzle p{margin:0;color:#d7ded7;font-size:14px}
#homeContent .puzzle-preview-board{width:min(100%,242px);height:auto;aspect-ratio:1;display:grid;grid-template:repeat(8,minmax(0,1fr))/repeat(8,minmax(0,1fr));flex:none;border:4px solid #9c854d;outline:1px solid #d9bc70;border-radius:2px;box-shadow:0 4px 12px #0005}
#homeContent .puzzle-preview-square img{width:90%;height:90%;object-fit:contain}
#homeContent .home-puzzle>.home-cta{width:100%;font:700 21px Georgia,serif;min-height:48px;margin-top:auto}
#homeContent .home-puzzle>small{font-size:11px;line-height:1.4;color:#b8cbc2;text-align:center}
#homeContent .home-bottom-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:14px}
#homeContent .home-bottom-grid>section{padding:18px!important;min-height:212px;position:relative;isolation:isolate;display:flex;flex-direction:column;overflow:hidden}
#homeContent .home-bottom-grid h2{font-size:21px}
#homeContent .home-bottom-grid .dashboard-section-heading{display:block;margin:0}
#homeContent .home-bottom-grid .dashboard-section-heading>a{display:none}
#homeContent .home-bottom-grid p{font-size:13px;line-height:1.5;margin:4px 0 14px;max-width:65%;color:#d8e1da}
#homeContent .home-bottom-grid .dashboard-empty{max-width:100%}
#homeContent .home-card-art{position:absolute;right:0;bottom:35px;width:118px;height:128px;object-fit:contain;padding:0;z-index:-1;opacity:.9}
#homeContent .home-bottom-grid .home-cta{position:relative;align-self:start;min-height:40px;margin-top:auto;padding:8px 12px;font-size:13px;background:#09272bf5;gap:14px}
#homeContent .home-bottom-grid .dashboard-events .dashboard-empty{max-width:62%}
#homeContent .home-bottom-grid .dashboard-events:after{content:none}
#homeContent .home-bottom-grid .dashboard-event{font-size:12px;padding:0;max-width:70%}
#homeContent .home-bottom-grid .dashboard-event>img{display:none}
#homeContent .home-bottom-grid .dashboard-games{margin:4px 0 12px;padding:0}
#homeContent .home-bottom-grid .dashboard-games button{width:100%;min-height:60px;display:flex;gap:8px;background:transparent;border:0;color:#fff0d0}
#homeContent .home-bottom-grid .dashboard-game-mark{width:28px;height:28px;flex:none;font-size:15px}
#homeContent .home-bottom-grid .recent-empty-action{margin-top:auto}
#homeContent .home-bottom-grid .recent-empty-action img{width:35px;height:35px}
#homeContent .home-bottom-grid .recent-empty-action .home-cta{margin:0}
#homeContent .home-bottom-grid .dashboard-events .dashboard-section-heading{display:contents}
#homeContent .home-bottom-grid .dashboard-events .dashboard-section-heading h2{order:-2}
#homeContent .home-bottom-grid .dashboard-events .dashboard-section-heading>a{display:inline-flex;order:2;margin-top:auto;align-self:start}
@media(min-width:1001px){body{--rail-width:120px}body>header{padding:16px 8px}body>header .brand,body>header .brand img.brand-logo{height:104px}body #railToggle{display:flex;position:absolute;top:113px;right:8px;width:24px;min-height:24px;height:24px;padding:0;align-items:center;justify-content:center;font-size:16px;background:#0c3033;border:1px solid #a58b52;border-radius:4px}body>header #sectionNav{gap:6px}body>header #sectionNav a{flex-direction:row;justify-content:flex-start;gap:10px;min-height:52px;padding:10px 8px;font-size:13px}body>header #sectionNav a[aria-current=page]{background:#0b4836;color:#f4edda;border-color:#4eaf76;box-shadow:inset 2px 0 #76ce8e}body[data-screen=home]>main{padding:0 30px}body #language{font-size:12px}body #accountMenu>summary{border-radius:6px}}
@media(min-width:1001px) and (max-width:1250px){#homeContent .home-hero{padding:22px;grid-template-columns:1.35fr .7fr}#homeContent .home-hero h1{font-size:40px}#homeContent .home-hero-art{height:280px}#homeContent .home-bottom-grid{grid-template-columns:repeat(2,1fr)}#homeContent .home-bottom-grid>section{min-height:190px}}
@media(max-width:1000px){#homeContent .home-main-grid{grid-template-columns:1fr}#homeContent .home-hero{min-height:390px}#homeContent .home-hero h1{font-size:49px}#homeContent .home-puzzle{display:grid;grid-template-columns:1fr 1fr;align-items:center}#homeContent .home-puzzle .puzzle-preview-board{grid-column:2;grid-row:1/4;justify-self:center}#homeContent .home-puzzle>.home-cta{margin:0}#homeContent .home-bottom-grid{grid-template-columns:1fr 1fr}#homeContent .home-collection{grid-column:auto}}
@media(max-width:600px){body[data-screen=home]{background-image:linear-gradient(#15132318,#15132335),url('/assets/homepage/everwake-valley-840.webp')!important}#homeView{padding:14px 0!important}#homeContent .home-welcome{padding:12px;gap:10px}#homeContent .home-welcome p{font-size:17px}#homeContent .home-welcome>a{font-size:12px;padding:6px 9px;gap:5px}#homeContent .home-welcome small{font-size:11px}#homeContent .home-avatar{display:none}#homeContent .home-hero{min-height:430px;padding:23px;display:block}#homeContent .home-hero h1{font-size:40px;max-width:75%}#homeContent .home-hero p{max-width:72%;font-size:14px}#homeContent .home-hero-art{position:absolute;right:-4px;top:12px;width:133px;height:195px;z-index:0;opacity:.9}#homeContent .home-hero .dashboard-actions{margin-top:25px}#homeContent .home-hero .home-divider{max-width:65%}#homeContent .dashboard-actions .dashboard-play{font-size:24px}#homeContent .home-puzzle{display:flex;padding:20px}#homeContent .puzzle-preview-board{width:244px}#homeContent .home-puzzle>.home-cta{margin:0}#homeContent .home-bottom-grid{grid-template-columns:1fr}#homeContent .home-bottom-grid>section{min-height:190px}#homeContent .home-card-art{right:15px;width:140px;height:145px}#homeContent .home-bottom-grid p{max-width:62%}}


.capture-group img.classic-capture{width:23px;height:23px;padding:1px;background:#e8e4d4;border:1px solid #afae9e;border-radius:3px;filter:none}

/* Edge compositor stability: the endless background loops stay hidden and backdrop blur stays off.
   A global animation/transition kill used to sit here too; it froze every piece slide, popup and
   hover on the site, and the loops it was guarding against are already hidden by the rule below. */
.ambience-scene,.game-particles{display:none!important}
body,body *,body *::before,body *::after{backdrop-filter:none!important}
body[data-screen=home]{background-attachment:scroll!important}
#homeContent img{filter:none!important}

/* One explicit collapsed state across every desktop route. */
@media(min-width:1001px){
 body[data-rail-expanded=true]{--rail-width:120px}
 body[data-rail-expanded=false]{--rail-width:64px}
 body[data-rail-expanded=false]>header .brand,body[data-rail-expanded=false]>header .brand img.brand-logo{height:70px}
 body[data-rail-expanded=false]>header #railToggle{top:80px}
 body[data-rail-expanded=false]>header #sectionNav a{font-size:0;justify-content:center;padding:10px 4px;gap:0}
 body[data-rail-expanded=false]>header #sectionNav a>svg{width:21px;height:21px}
 body[data-rail-expanded=false] #language{width:100%;font-size:10px}
 body[data-rail-expanded=false] #accountMenu>summary{padding:4px;font-size:10px}
 body[data-rail-expanded=false] #connection{font-size:9px}
}
/* Shared navigation and account controls: dimensions stay constant across routes. */
@media(min-width:1001px){
 body>header #sectionNav a{border:1px solid transparent;position:relative;background:transparent;box-shadow:none}
 body>header #sectionNav a[aria-current=page]{background:transparent;color:#f8e2a6;border-color:transparent;box-shadow:none;font-weight:650}
 body>header #sectionNav a[aria-current=page]::after{content:'';position:absolute;left:0;top:14px;bottom:14px;width:2px;background:#d1b46c;border-radius:2px}
 body>header #sectionNav a:hover{background:#ffffff08}
 body>header #sectionNav a:focus-visible{outline:2px solid #fff0b3;outline-offset:1px}
 body #railToggle{top:108px;right:4px;width:20px;min-height:20px;height:20px;color:#c3d1cb;border:0;background:transparent}
 body>header #language{height:36px;min-height:36px;padding:6px;border-color:#69796c;border-radius:6px;background:#102e32;color:#e7ece3}
 body>header #connection{line-height:20px;color:#bbd6c5;font-size:10px;letter-spacing:.02em}
 body>header #accountMenu>summary{min-height:40px;border-color:#69796c;background:#102e32;color:#e7ece3}
 body>header #accountMenu[open]>summary{border-color:#d2b46e;color:#f8e2a6}
 body>header #accountMenu>div{width:244px;padding:8px;border:1px solid #8b815b;border-radius:10px;background:#10292e;box-shadow:0 8px 28px #0006;bottom:0;left:calc(100% + 16px)}
 body>header #accountMenu a{padding:10px 12px;min-height:44px;display:flex;align-items:center;text-decoration:none;font-size:14px;border-radius:6px;color:#eceddf}
 body>header #accountMenu a:hover{background:#ffffff09}
 body>header #accountMenu #accountIdentity{border-top:1px solid #ffffff18;margin:6px 0 0;padding:8px 0 0}
 body>header #accountMenu #accountIdentity strong{display:block;padding:8px 12px;color:#c7d5ce;font-size:12px;overflow-wrap:anywhere}
 body>header #accountMenu #accountIdentity button{margin:4px 0 0;width:100%;min-height:44px;padding:8px 12px;text-align:left;background:transparent;color:#e0cbb1;border:1px solid transparent;border-radius:6px;font-size:14px}
 body>header #accountMenu #accountIdentity button:hover{background:#ffffff09;border-color:#ffffff22}
}
/* Section surfaces share the selected homepage's palette and native controls. */
.app-view:not(#homeView){--section-panel:linear-gradient(115deg,#0a2b31f5,#0a2229f5);color:#f3efdf}
.app-view:not(#homeView) h1,.app-view:not(#homeView) h2{font-family:Georgia,'Noto Serif KR',serif;color:#fff4d9}
.app-view:not(#homeView) h1{font-size:clamp(28px,3vw,38px);line-height:1.15}
.app-view:not(#homeView) .card,.app-view .empty-state-card,#playHome,.puzzle-controls{background:var(--section-panel,linear-gradient(115deg,#0a2b31f5,#0a2229f5));border:1px solid #aa925b;border-radius:12px;box-shadow:inset 0 0 0 2px #c4a45f0a,0 4px 14px #0003}
.app-view:not(#homeView) p{line-height:1.55}
.app-view:not(#homeView) button:not(.square):not(.puzzle-square),.app-view:not(#homeView) input:not([type=radio]):not([type=checkbox]),.app-view:not(#homeView) select,.app-view:not(#homeView) textarea{border-radius:7px}
.app-view:not(#homeView) button.primary,#playHome .play-entry-actions>a,.puzzle-controls form>button,.learn-lesson form>button{background:linear-gradient(#096044,#084432);border:1px solid #c9ac64;color:#fff1cd}
.app-view:not(#homeView) :focus-visible{outline:3px solid #fff0b3;outline-offset:2px}
#playHome{max-width:1000px;padding:36px;margin:32px auto;position:relative}
#playHome h1,#playHome>p{max-width:660px}
#playHome h1{margin:0 0 12px}#playHome>p{color:#cbd8cf;margin:0 0 28px}
#playHome .play-entry-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
#playHome .play-entry-actions>a,#playHome .play-entry-actions>button{min-height:144px;padding:24px 20px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;text-align:left;gap:12px;margin:0;font:700 23px Georgia,serif;border:1px solid #ac945d;border-radius:10px;background:#102f34;color:#f5e7c3;text-decoration:none}
#playHome .play-entry-actions span{font:14px/1.5 system-ui,sans-serif;color:#d0dcd2}
#playHome #playDestinations{margin-top:24px;padding-top:12px;border-top:1px solid #c4a45f33}#playHome #watchGames{font-size:14px}
#setupView,#cupsView,#lobbyView,#historyView{max-width:1180px;margin:0 auto!important;padding:24px 12px}
#setupContent>.card,#setupContent>aside>.card{padding:24px}
#cupsView>.card:first-child{position:relative;padding:28px 190px 28px 28px;min-height:240px;background-image:url('/assets/homepage/tournament-trophy-384-9a3b1305c5eb.webp'),var(--section-panel);background-repeat:no-repeat;background-position:right 24px top 24px,center;background-size:140px auto,cover}
#cupsView>.card:first-child h2{font-size:30px;margin:8px 0 14px}#cupsView>.card:first-child p{max-width:660px}
#learnTabs,.social-tabs{display:flex;gap:6px;padding:14px 0;margin:0}
#learnTabs button,.social-tabs button{min-width:112px;padding:10px 20px;border:1px solid #6b8075;background:#102d32;color:#d4ded5}
#learnTabs button[aria-pressed=true],.social-tabs button[aria-selected=true]{background:#184037!important;color:#f6dfaa!important;border-color:#b9a064!important;box-shadow:none!important}
#learnContent{padding:20px 24px;background:var(--section-panel);border:1px solid #aa925b;border-radius:12px;margin-bottom:24px}
#learnContent>h1{margin:14px 0}#learnContent>p{color:#c8d6cc;max-width:800px}#learnContent>.learn-layout{gap:24px}
.learn-list button{padding:14px 16px;min-height:52px;margin-bottom:8px;border-color:#667c70;text-align:left;background:#102c31;color:#e1e9da}
.learn-list button[aria-pressed=true]{background:#21443a;color:#ffe4a0;border-color:#c3a561}
.learn-lesson{padding:24px!important}.learn-lesson h2{font-size:26px;margin-top:0}.learn-lesson fieldset{padding:16px;border:1px solid #6f806c;border-radius:8px}.learn-lesson fieldset label{display:flex;align-items:center;gap:12px;padding:8px}.learn-lesson fieldset input{accent-color:#d4b76e}
#puzzleContent{padding:24px}.puzzle-controls{padding:22px}.puzzle-controls label{color:#d9e2d5;font-size:13px}.puzzle-controls .puzzle-turn{color:#e9cf89}
#reviewEmpty{max-width:900px;margin:28px auto;padding:32px}#reviewEmpty h2{font-size:30px}#reviewSidebar,#matchPanel{background:#0a272ef7;border:1px solid #aa925b;border-radius:10px}
#messagesView{padding-inline:8px}.inbox-first-run,.inbox-conversation,.inbox-list{border-color:#8b8056!important;border-radius:10px}.inbox-conversation h2{font-family:Georgia,serif}.dm-composer{padding:10px;border-top:1px solid #aa925b40;border-radius:8px}.dm-log li{border-radius:9px;line-height:1.5}
#themesView #themes{background:var(--section-panel);padding:28px}#themesView .theme-card{border:1px solid #8f8258;border-radius:10px;background:#102c31;overflow:hidden}#themesView .theme-card img{border-radius:0}#themesView .theme-card[data-selected=true]{border-color:#d1b66e;box-shadow:inset 0 0 0 1px #d1b66e}#themesView .theme-customizer{padding:20px;border:1px solid #a18e5b;border-radius:10px;background:#0c272c}#themesView .theme-sample-board{border:4px solid #bca062}
@media(max-width:700px){#playHome{padding:22px;margin:16px auto}#playHome .play-entry-actions{grid-template-columns:1fr}#playHome .play-entry-actions>a,#playHome .play-entry-actions>button{min-height:100px;padding:18px}#learnContent{padding:16px}#cupsView>.card:first-child{padding:22px;background-image:var(--section-panel)}#learnTabs button,.social-tabs button{min-width:0;flex:1}#themesView #themes{padding:16px}#themesView .theme-customizer{padding:12px}}
@media(min-width:1001px){body[data-rail-expanded=true]>header #sectionNav a{flex-direction:row;justify-content:flex-start;font-size:13px;padding:10px 8px;gap:10px;min-height:52px}body>header #sectionNav a[aria-current=page]{background:transparent;color:#f8e2a6;border-color:transparent;box-shadow:none}}
/* Completed-game rows and the replaceable Collection artwork slot. */
.dashboard-games .recent-result{display:grid;grid-template-columns:32px minmax(0,1fr) auto;gap:10px;align-items:start;padding:12px 0;border-bottom:1px solid #c4a45f26}
.dashboard-games .recent-result .dashboard-game-mark{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#244637;color:#d0e8cb;font:700 20px Georgia,serif}
.dashboard-games .recent-result[data-outcome=loss] .dashboard-game-mark{background:#46352e;color:#f2c7a9}.dashboard-games .recent-result[data-outcome=draw] .dashboard-game-mark{background:#304048;color:#dae5e6}
.recent-result-copy{min-width:0;display:flex;flex-direction:column;gap:4px}.recent-result-copy>strong{font-size:14px;color:#f0e6c9}.recent-opponent{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.recent-result-copy small{font-size:11px;line-height:1.5;color:#bacdc2;overflow-wrap:anywhere}.recent-result .recent-review{grid-column:2/4;justify-self:start;min-height:36px;margin:4px 0 0;padding:6px 12px!important;font-size:12px!important;border:1px solid #9b8d5f;border-radius:6px;background:#0d3432;color:#f1dfb0}.recent-result .dashboard-delta{font-size:13px;white-space:nowrap}.recent-empty{display:flex;gap:12px;align-items:center;margin:12px 0}.recent-empty-symbol{font-size:38px;color:#cfb577}.recent-empty .dashboard-empty{margin:0!important;font-size:14px}.recent-empty small{display:block;color:#b7cbbf;font-size:12px;line-height:1.5;margin-top:5px}.recent-empty-action>img{display:none}.recent-empty-action{margin-top:auto}
#homeContent .dashboard-recent .dashboard-section-heading{display:flex;align-items:center;flex-wrap:wrap;gap:4px}#homeContent .dashboard-recent .dashboard-section-heading h2{margin:0}#homeContent .dashboard-recent .dashboard-section-heading>a{font-size:11px;min-height:28px;padding:0;color:#cabc96}#homeContent .dashboard-recent .dashboard-games{margin:8px 0 0;padding:0}#homeContent .dashboard-recent .recent-result{border:0;padding:6px 0;gap:8px}
.collection-art-slot{position:absolute;right:8px;bottom:52px;width:140px;height:122px;pointer-events:none}.collection-art-slot .home-card-art{position:static!important;width:100%!important;height:100%!important;object-fit:contain;padding:0!important}#homeContent .home-collection .home-cta{margin-top:auto;position:relative;z-index:1}
.puzzle-board{touch-action:none;user-select:none}.puzzle-board[data-dragging]{cursor:grabbing}.puzzle-square{touch-action:none}.puzzle-square[aria-pressed=true]{box-shadow:inset 0 0 0 4px #d1a636!important}.puzzle-controls label:has([data-field=promotion]){grid-column:1/-1}.puzzle-controls label[hidden]{display:none!important}
#playHome .play-entry-actions>a{grid-column:auto}#playHome .play-entry-actions>button{width:auto}#playDestinations a,#playHome #watchGames{font:14px system-ui,sans-serif!important;min-height:44px!important;width:auto!important;display:inline-flex!important;padding:10px 14px!important;margin:0 8px 0 0!important;background:#0c3033!important;border:1px solid #7b805d!important;border-radius:6px!important}
/* Expanded navigation: larger approved logo, shared sizing on every desktop page. */
@media(min-width:1001px){body,body[data-rail-expanded=true]{--rail-width:168px}body[data-rail-expanded=true]>header .brand,body[data-rail-expanded=true]>header .brand img.brand-logo{height:min(152px,18dvh)}body[data-rail-expanded=true]>header #railToggle{top:calc(min(152px,18dvh) + 4px);right:6px}body>header #sectionNav{min-height:0;overflow-y:auto;overflow-x:hidden}body[data-rail-expanded=true]>header #sectionNav a{padding-inline:14px}body[data-rail-expanded=false]{--rail-width:64px}}
#homeContent .home-collection{padding:16px!important;gap:8px}#homeContent .home-collection h2{margin-bottom:0}#homeContent .home-collection p{max-width:none;margin:0;font-size:12px;line-height:1.4}.collection-art-slot{position:static;width:100%;height:auto;aspect-ratio:3/2;flex:none;overflow:hidden;border:1px solid #9c8758;border-radius:7px;background:#12242b}.collection-art-slot img{display:block;width:100%;height:100%;object-fit:contain}#homeContent .home-collection .home-cta{align-self:stretch;font-size:12px;padding:8px 12px;min-height:40px}
#homeContent .dashboard-games .recent-result .dashboard-game-mark{width:30px;height:30px;min-height:30px;min-width:30px;border:0;padding:0;line-height:1}
#homeContent .dashboard-games .recent-review{display:inline-flex;align-items:center;gap:10px;min-height:36px;border:1px solid #9b8d5f;background:#0d3432;color:#f1dfb0;padding:6px 12px!important;border-radius:6px;font-size:12px!important}
/* Opt-in direct route for isolating compositing problems; assets/preferences stay intact. */
html[data-render-mode=basic] body{background:#10272c!important;background-image:none!important}
html[data-render-mode=basic] body::before,html[data-render-mode=basic] .ambience-scene{display:none!important}
html[data-render-mode=basic] *{filter:none!important;backdrop-filter:none!important;box-shadow:none!important;animation:none!important;transition:none!important}
html[data-render-mode=basic] .home-hero{background:#0a292f!important}
#reviewView[data-ready=true]>.review-back{display:flex!important;align-items:center;gap:8px;min-height:44px;margin:0 0 8px}
#reviewNewGame{display:inline-flex;align-items:center;min-height:40px;padding:8px 16px;border:1px solid #bda363;border-radius:7px;background:#0b503b;color:#fff1cb;text-decoration:none;font-weight:700}
@media(min-width:1001px){#reviewView{--board-size:min(calc(100dvh - 238px),calc(100vw - var(--rail-width) - 428px),820px)}#reviewView>.review-workspace{height:calc(100% - 52px)}body[data-companion-closed=true] #reviewView{--board-size:min(calc(100dvh - 238px),calc(100vw - var(--rail-width) - 88px),820px)}}
/* Restore the compact lower row; Collection art does not set the row height. */
#homeContent .home-bottom-grid>section{min-height:212px}
#homeContent .home-collection{padding:18px!important;gap:0}
#homeContent .home-collection h2{margin-bottom:12px}
#homeContent .home-collection p{max-width:58%;font-size:14px;line-height:1.5;margin:0 0 14px}
#homeContent .collection-art-slot{position:absolute;right:8px;bottom:52px;width:116px;height:94px;aspect-ratio:auto;border:0;background:transparent;border-radius:0;overflow:visible}
#homeContent .collection-art-slot img{object-fit:contain}
#homeContent .home-collection .home-cta{align-self:flex-start;margin-top:auto;font-size:12px;min-height:40px}
.recent-board{display:grid;grid-template-columns:repeat(8,1fr);width:80px;height:80px;flex:none;border:2px solid #ab945b;grid-column:1;grid-row:1/4}.recent-square{display:grid;place-items:center;min-width:0;min-height:0;background:#ded5b5}.recent-square.dark{background:#65785e}.recent-square img{display:block;width:100%;height:100%;object-fit:contain}
#homeContent .recent-result:has(.recent-board){grid-template-columns:80px minmax(0,1fr);gap:6px 10px;position:relative}
#homeContent .recent-result:has(.recent-board) .dashboard-game-mark{display:none}
#homeContent .recent-result:has(.recent-board) .recent-result-copy{grid-column:2;grid-row:1}
#homeContent .recent-result:has(.recent-board) .recent-review{grid-column:2;grid-row:3;margin:0}
#homeContent .recent-result:has(.recent-board) .dashboard-delta{grid-column:2;grid-row:2}
.dashboard-games .recent-result:has(.recent-board){grid-template-columns:80px minmax(0,1fr);gap:6px 10px}.dashboard-games .recent-result:has(.recent-board) .dashboard-game-mark{display:none}.dashboard-games .recent-result:has(.recent-board) .recent-result-copy{grid-column:2;grid-row:1}.dashboard-games .recent-result:has(.recent-board) .recent-review{grid-column:2;grid-row:3;margin:0}.dashboard-games .recent-result:has(.recent-board) .dashboard-delta{grid-column:2;grid-row:2}
#homeContent .collection-art-slot{width:138px;height:138px;right:4px;bottom:40px}#homeContent .home-collection .home-cta{position:relative;z-index:1}
/* Compact card actions share one component; game artwork aligns bottom-right. */
#homeContent .home-bottom-grid .home-cta.home-cta{position:absolute;left:18px;bottom:18px;display:inline-flex;align-items:center;justify-content:space-between;gap:14px;width:auto;min-height:40px;height:40px;box-sizing:border-box;margin:0;padding:8px 12px!important;border:1px solid #dfc474;border-radius:7px;background:#092c32;color:#fff8e6!important;font:700 12px/1.2 system-ui,sans-serif!important;text-decoration:none!important;box-shadow:inset 0 0 0 2px #bda35c22;z-index:2}
#homeContent .home-bottom-grid .home-cta span{text-decoration:none}
#homeContent .home-bottom-grid .dashboard-events .dashboard-section-heading{position:static}
#homeContent .home-bottom-grid .recent-result:has(.recent-board){display:block;position:static;padding:6px 0;border:0}
#homeContent .home-bottom-grid .recent-board{position:absolute;right:18px;bottom:40px;width:88px;height:88px}
#homeContent .home-bottom-grid .recent-result-copy{max-width:calc(100% - 98px);gap:5px}
#homeContent .home-bottom-grid .dashboard-delta{display:block;font-size:12px;margin-top:5px}
#homeContent .home-bottom-grid .home-cta:focus-visible{outline:3px solid #fff0b3;outline-offset:3px}

/* Analysis is available only after completion; live More keeps actionable controls. */
body[data-screen=play][data-completed=false] #matchTools #reviewControls{display:none}

/* Empty Recent Games: static decorative scroll, aligned with the neighboring art. */
#homeContent .dashboard-recent:has(.recent-scroll-art) .recent-empty{display:block;width:calc(100% - 112px);margin:4px 0 0;position:relative;z-index:1}
#homeContent .dashboard-recent:has(.recent-scroll-art) .recent-empty-symbol{display:none}
#homeContent .dashboard-recent:has(.recent-scroll-art) .dashboard-empty{max-width:none;font-size:13px;line-height:1.4}
#homeContent .dashboard-recent:has(.recent-scroll-art) .recent-empty small{font-size:12px;line-height:1.4}
#homeContent .recent-scroll-art{position:absolute;right:0;bottom:35px;width:118px;height:128px;object-fit:contain;pointer-events:none;user-select:none;z-index:0}
@media(max-width:600px){#homeContent .recent-scroll-art{right:10px;width:140px;height:145px}#homeContent .dashboard-recent:has(.recent-scroll-art) .recent-empty{width:calc(100% - 138px)}}

/* Empty Review already has its own actions; gameplay navigation needs a recorded board. */
#reviewView[data-ready=false] .review-back{display:none}
#reviewEmpty{position:relative;padding-right:190px}
.review-empty-art{position:absolute;right:24px;top:24px;width:128px;height:150px;object-fit:contain;pointer-events:none}
@media(max-width:600px){#reviewEmpty{padding-right:24px}.review-empty-art{position:static;display:block;width:110px;height:120px;margin:0 0 12px auto}}
/* Guided lesson: stable mentor action area and touch-friendly board. */
.quick-header{display:flex;align-items:center;justify-content:space-between;gap:16px}.quick-header h1{font-size:24px}.quick-layout{display:grid;grid-template-columns:minmax(280px,640px) minmax(260px,1fr);gap:24px;align-items:start;margin-top:20px}.quick-board{display:grid;grid-template-columns:repeat(8,1fr);aspect-ratio:1;border:8px solid #292a39;border-radius:12px;overflow:hidden;width:100%}.quick-square{position:relative;display:grid;place-items:center;aspect-ratio:1;padding:0!important;border:0!important;border-radius:0!important;background:#eadfce!important;min-width:0;min-height:0;color:#302a2a!important;opacity:1!important}.quick-square.dark{background:#7b8b7c!important}.quick-square img{width:86%;height:86%;pointer-events:none}.quick-square.selected{box-shadow:inset 0 0 0 5px #e1a844}.quick-square.hint{background:#d8bc66!important}.quick-square:focus-visible{outline:4px solid #723ccc!important;outline-offset:-4px;z-index:1}.quick-coordinate{position:absolute;bottom:2px;left:3px;font-size:10px;line-height:1}.quick-correct{position:absolute;right:3px;top:3px;background:#238452;color:white;border-radius:50%;width:26px;height:26px;font-size:20px}.quick-mentor{padding:24px!important;display:flex;flex-direction:column;gap:10px;min-height:540px}.quick-avatar{width:90px;height:90px;object-fit:contain;align-self:center}.quick-eyebrow{text-align:center;color:#d9c197}.quick-mentor p,.quick-mentor h2{margin:0}.quick-mentor progress{width:100%;accent-color:#bda06e}.quick-feedback{min-height:155px;line-height:1.65}.quick-feedback p+p{margin-top:12px}.quick-main{width:100%;height:48px;min-height:48px;background:#b69661!important;color:#17151d!important;font-weight:700;margin-top:auto}.quick-retry{height:40px}.quick-mentor small{opacity:.7}.quick-invitation{max-width:420px;width:calc(100% - 32px);padding:28px;border:1px solid #665a43;border-radius:20px;background:#22232f;color:#eee;text-align:center}.quick-invitation::backdrop{background:#070913b0}.quick-invitation .quick-close{position:absolute;right:10px;top:10px}.quick-invitation img{width:100px;height:100px;object-fit:contain}.quick-invitation button{min-height:44px}.quick-invitation .quick-main{margin:12px 0}.quick-invitation h2{font-size:23px}
@media(max-width:800px){.quick-layout{grid-template-columns:1fr;gap:16px}.quick-mentor{min-height:0!important;padding:20px!important}.quick-avatar{width:64px;height:64px}.quick-feedback{min-height:140px}.quick-header{align-items:start}.quick-header h1{font-size:20px}.quick-board{border-width:4px}.quick-correct{width:20px;height:20px;font-size:16px}}
.quick-mentor h2{min-height:72px}.quick-feedback{height:176px;overflow:auto}.quick-retry[hidden]{display:block!important;visibility:hidden}.quick-mentor{min-height:660px}.quick-mentor small{min-height:36px}@media(max-width:800px){.quick-feedback{height:210px}.quick-mentor h2{min-height:64px}}
.quick-play-disclosure{font-size:12px!important;line-height:1.5!important;max-width:340px;margin:12px 0!important}.quick-human-only{display:inline-flex;align-items:center;min-height:44px;font-size:13px;text-decoration:underline}.home-hero:has([data-dashboard-action=playNow]) .home-hero-copy>p{max-width:320px}
.result-view{position:relative;background:#f6efdf!important;color:#20372f!important;border:2px solid #b69b62!important;outline:1px solid #e8d8b6!important;padding:28px!important;width:min(440px,calc(100vw - 28px));max-height:calc(100dvh - 32px)}.result-view[open]{display:flex;flex-direction:column;gap:8px}.result-view h2{order:1;font-size:34px;margin:0}.result-view .result-crest{order:0;width:76px!important;height:76px!important;margin:0 auto!important}.result-view>*{order:2}.result-view p{color:#4e554c!important;margin:4px 0}.result-view .result-rating{font-size:26px;font-weight:700;color:#173c2c!important}.result-view .result-reason{font-size:17px;color:#4a493f!important}.result-view .result-mode{font-size:13px}.result-view .result-actions{order:3;margin-top:12px;width:100%}.result-view .result-actions button{background:#faf6eb;color:#253c32;border-color:#b9aa8c;white-space:normal}.result-view .result-actions .primary{background:#0f503a!important;color:#fff3d7!important;border-color:#b99d62}.result-view [data-result-action=close]{position:absolute;top:8px;right:8px;width:40px;min-height:40px!important;padding:0!important;font-size:24px;background:transparent!important;border:0!important;color:#405044!important}.result-view :focus-visible{outline:3px solid #176c4e!important;outline-offset:2px}.result-view::backdrop{background:#07181599}.draw-offer-dialog{width:min(420px,calc(100vw - 24px))}.draw-offer-dialog button{margin:4px;min-height:44px}.draw-offer-dialog [data-draw-response=accept]{background:#125a40;color:#fff0cc}
/* Premium Gray: source-derived marble with silver seams on the native grid. */
html[data-board-theme="premium-gray"] .board,[data-board="premium-gray"] .theme-sample-board{border:6px solid #bac0c4!important;border-image:linear-gradient(135deg,#fff,#737a80 16%,#e6e9ea 31%,#858c91 50%,#f7f8f9 72%,#788087 88%,#f4f5f6) 1!important;border-radius:0!important;box-shadow:0 0 0 1px #454b51,0 4px 14px #0005}
html[data-board-theme="premium-gray"] .board .square,[data-board="premium-gray"] .theme-sample-square{background-image:url('/assets/themes/premium-gray-board-light.webp')!important;background-size:100% 100%!important;box-shadow:inset 0 0 0 1px #b7bdc1,inset 0 0 0 2px #ffffff65}
html[data-board-theme="premium-gray"] .board .square.dark,[data-board="premium-gray"] .theme-sample-square[data-dark="true"]{background-image:url('/assets/themes/premium-gray-board-dark.webp')!important}
html[data-board-theme="premium-gray"] .board .square.selected{box-shadow:inset 0 0 0 3px #e3b34b!important}html[data-board-theme="premium-gray"] .board .square:focus-visible{outline:3px solid #f4bd43;outline-offset:-3px;z-index:2}
html[data-piece-set="premium-gray"] .board .piece img,[data-pieces="premium-gray"] .theme-sample-square img{width:100%!important;height:100%!important;object-fit:contain;filter:none!important}
html[data-piece-set="premium-gray"] .board .piece,[data-pieces="premium-gray"] .theme-sample-square{padding:0!important}
/* Compact shared workspace. Content remains reachable without scaling the page. */
#accountMenu{position:fixed;right:14px;top:6px;z-index:55;margin:0!important;width:auto!important;background:#102b32;border-radius:24px}#accountMenu>summary{display:flex;gap:8px;min-height:38px!important;padding:4px 12px 4px 4px!important;font-size:13px!important;color:#fff0cb}#accountMenu>summary::before{content:attr(data-initials);display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#d5b66b;color:#142b30;font-weight:700}#accountMenu>div{left:auto!important;right:0!important;top:44px!important;bottom:auto!important;max-height:calc(100dvh - 64px)}
#reviewMoveList{display:block!important;scroll-padding:8px}#reviewMoveList>.move-table-heading,#reviewMoveList>.move-table-row{display:grid!important;grid-template-columns:32px minmax(0,1fr) minmax(0,1fr);width:100%;gap:6px;float:none;box-sizing:border-box}#reviewMoveList>.move-table-row{min-height:44px;border-bottom:1px solid #ffffff18;padding:2px 0}#reviewMoveList .move-san{width:100%;min-width:0;margin:0;min-height:40px;padding:6px;font-size:13px}#reviewMoveList>.move-table-heading{position:static;background:#102b32;padding:6px 0}
#messagesView:has(.empty-state-card){min-height:0!important;height:auto!important}#messagesView:has(.empty-state-card) #inboxContent{min-height:0;height:auto;padding:12px}#inboxContent>.empty-state-card{margin:10px 0;padding:18px}
#learnContent{padding:16px!important}#learnContent>h1{font-size:28px!important;margin:6px 0!important}#learnContent>p{margin:7px 0!important;line-height:1.4}#learnTabs,.social-tabs{margin:6px 0!important}#learnTabs button,.social-tabs button{min-height:44px!important;margin:0 6px 0 0!important;padding:8px 18px!important}.learn-list{gap:6px!important}.learn-list button{margin:0 0 6px!important;padding:8px 12px!important;min-height:44px!important}.learn-lesson{padding:16px!important;margin:0!important}.learn-lesson h2{font-size:23px!important;margin:0 0 8px}.learn-lesson p{margin:6px 0;line-height:1.4}.learn-lesson fieldset{padding:8px;margin:8px 0}.learn-lesson details{margin:4px 0}.learn-lesson form label{padding:4px;min-height:44px}.lesson-example-board{width:min(100%,240px);margin:8px auto}
#identity.welcome-panel{margin:12px auto!important;padding:20px!important;color:#edf1df;max-width:700px}#identity.welcome-panel p,#identity.welcome-panel label{color:#d5ded6}#identity.welcome-panel a{color:#f1d99c}.welcome-copy .welcome-logo{width:100px!important;height:92px!important;object-fit:contain}.welcome-copy h1{font-size:27px!important;margin:4px 0}.welcome-copy p{margin:6px 0!important}.welcome-tabs{margin:12px 0!important}.welcome-form input{margin-bottom:8px!important;min-height:44px}.welcome-form p{margin:8px 0}.welcome-guest{margin-top:14px!important;padding-top:12px!important}.welcome-guest p{margin:6px 0}.welcome-guest h2{margin:0 0 4px}.welcome-provider{margin-top:8px}
.theme-preview-dialog{width:min(1000px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 24px);overflow:auto;padding:16px!important;text-align:center;background:#102a32ed!important;color:#f5eedb;box-sizing:border-box}.theme-preview-dialog h2{margin:0 0 10px;font-size:25px}.piece-detail-stage{display:grid;grid-template-columns:minmax(100px,1fr) minmax(280px,460px) minmax(100px,1fr);align-items:center;gap:12px}.piece-detail-stage>.theme-modal-scene{grid-column:2;grid-row:1;margin:0;min-width:0;padding:12px}.piece-detail{margin:0;min-width:0;filter:drop-shadow(0 6px 8px #0007)}.piece-detail-w{grid-column:1;grid-row:1}.piece-detail-b{grid-column:3;grid-row:1}.piece-detail img{width:100%;height:clamp(180px,30dvh,300px);object-fit:contain}.piece-detail figcaption{padding:6px;color:#f5e9c4;font-size:14px}.piece-detail-picker{grid-column:1/-1;margin:0;display:flex;align-items:center;justify-content:center;gap:12px}.piece-detail-type{min-height:44px}.theme-preview-dialog>p{margin:10px 0;font-size:13px}.theme-preview-dialog>button{min-height:44px;margin:4px 0}
@media(min-width:1001px){body>main,body:has(#sectionNav)>main{padding-top:48px}#homeView,#themesView,#lobbyView,#cupsView,#setupView,#profileView,#settingsView{padding-top:8px!important}#playView #play{height:calc(100dvh - 48px);--board-size:min(calc(100dvh - 212px),calc(100vw - var(--rail-width) - 408px),820px)}body[data-companion-closed=true] #playView #play{--board-size:min(calc(100dvh - 212px),calc(100vw - var(--rail-width) - 88px),820px)}#reviewView{height:calc(100dvh - 48px);--board-size:min(calc(100dvh - 200px),calc(100vw - var(--rail-width) - 428px),820px)}body[data-companion-closed=true] #reviewView{--board-size:min(calc(100dvh - 200px),calc(100vw - var(--rail-width) - 88px),820px)}#messagesView:not([hidden]){height:calc(100dvh - 56px)}#themesView #themes{padding:16px;margin-bottom:8px}#themesView h2{font-size:27px;margin:0 0 8px}#themesView .theme-customizer{padding:12px}#themesView .theme-grid{max-height:calc(100dvh - 230px);overflow:auto;scroll-padding:8px;padding-right:6px}#themesView .collection-art{height:90px!important}#themesView .theme-card{padding:8px}#themesView .theme-card h3,#themesView .theme-card p{margin:5px 0}#themesView .theme-customizer>.theme-mix-preview .theme-sample-board{width:min(100%,240px)}#themesView .theme-selection-fields{gap:6px}#themesView .theme-selection-actions{margin-top:8px}.learn-layout{grid-template-columns:180px minmax(0,1fr)!important;gap:14px!important}.learn-lesson{display:grid;grid-template-columns:minmax(220px,1fr) minmax(210px,1fr);gap:6px 18px;align-items:start}.learn-lesson>h2{grid-column:1/-1}.learn-lesson>.lesson-example{grid-column:1;grid-row:2/5}.learn-lesson>details{grid-column:2;grid-row:2}.learn-lesson>form{grid-column:2;grid-row:3}.welcome-copy{display:grid;grid-template-columns:100px 1fr;text-align:left!important;gap:0 12px;align-items:center}.welcome-copy .welcome-logo{grid-column:1;grid-row:1/3}.welcome-copy h1{grid-column:2}.welcome-copy p{grid-column:2}#identity.welcome-panel{max-width:680px}#cupsView>.card{padding:16px;margin-bottom:10px}}
@media(max-width:1000px){body>header>nav:not(#sectionNav){margin-right:110px}#accountMenu{right:8px;top:5px}#sectionNav{overflow-x:auto!important;justify-content:flex-start!important;scrollbar-width:thin}#sectionNav>a{flex:0 0 auto!important;white-space:nowrap;padding-inline:12px!important}#sectionNav a svg{width:18px;height:18px}}
@media(max-width:700px){.theme-preview-dialog{padding:12px!important}.theme-preview-dialog h2{font-size:22px}.piece-detail-stage{grid-template-columns:1fr 1fr;gap:6px}.piece-detail-stage>.theme-modal-scene{grid-column:1/-1;grid-row:1;padding:8px}.piece-detail-stage .theme-sample-board{width:min(100%,260px)}.piece-detail-w{grid-column:1;grid-row:2}.piece-detail-b{grid-column:2;grid-row:2}.piece-detail img{height:112px}.piece-detail figcaption{font-size:12px;padding:2px}.piece-detail-picker{grid-row:3}.piece-detail-type{min-height:44px}.learn-lesson{display:block}.learn-list{display:grid;grid-template-columns:1fr 1fr}.learn-list button{font-size:13px}.theme-preview-dialog>.piece-detail-stage{overflow:visible}#identity.welcome-panel{padding:14px!important}.welcome-copy .welcome-logo{height:64px!important;width:80px!important}.welcome-copy h1{font-size:24px!important}}
/* Scoped overrides keep the editor grid from positioning the modal scene. */
#themesView .theme-preview-dialog{width:min(1040px,calc(100vw - 24px));max-width:none}#themesView .theme-preview-dialog .piece-detail-stage>.theme-modal-scene{grid-column:2;grid-row:1;padding:12px;margin:0;width:100%}#themesView .theme-preview-dialog .theme-sample-board{width:min(100%,320px)}#themesView .theme-preview-dialog .piece-detail img{height:clamp(200px,33dvh,300px);max-width:100%}
@media(min-width:1001px){#learnContent{display:grid;grid-template-columns:1fr auto;gap:6px 12px}#learnContent>a:first-child{grid-column:2;grid-row:1;align-self:center;margin:0!important;padding:0 8px!important;min-height:44px}#learnContent>h1{grid-column:1;grid-row:1;margin:0!important}#learnContent>p{grid-column:1/-1;margin:0!important;font-size:13px}#learnContent>button{justify-self:start;margin:2px 0!important;min-height:44px}#learnContent>.learn-layout{grid-column:1/-1}.learn-lesson>.lesson-example{margin:0}.learn-lesson>.lesson-example>p{font-size:13px}.lesson-example-board{width:min(100%,220px)}#themesView .theme-grid{max-height:calc(100dvh - 260px)}#themesView .theme-customizer h3{margin:0 0 8px}.theme-customizer .theme-selection-fields label{margin-bottom:2px}.theme-customizer .theme-save-state{margin:6px 0}#themesView .theme-customizer>.theme-mix-preview{padding:10px}.theme-customizer .theme-selection-actions button{min-height:44px;padding:6px}}
@media(max-width:700px){#themesView .theme-preview-dialog .piece-detail-stage>.theme-modal-scene{grid-column:1/-1;grid-row:1;padding:8px}#themesView .theme-preview-dialog .piece-detail img{height:112px}#themesView .theme-preview-dialog .theme-sample-board{width:min(100%,250px)}}
@media(min-width:1001px){#reviewView[data-ready=true]>.review-back{display:none!important}#identity.welcome-panel .welcome-copy{display:grid!important;grid-template-columns:90px minmax(0,1fr);gap:0 12px;align-items:center;text-align:left!important}#identity.welcome-panel .welcome-copy .welcome-logo{grid-column:1;grid-row:1/3;width:90px!important;height:80px!important;margin:0!important}#identity.welcome-panel .welcome-copy h1{grid-column:2;grid-row:1;margin:0!important}#identity.welcome-panel .welcome-copy p{grid-column:2;grid-row:2;margin:0!important}}

body[data-authenticated=false] #accountMenu,body[data-authenticated=false] #matchBar,body[data-authenticated=false] .setup-nav{display:none!important}

/* Result emblems: retain the original 256px artwork and its full silhouette. */
.result-view .result-crest{width:200px!important;height:200px!important;max-width:70%;flex:none;object-fit:contain;margin:0 auto 4px!important}
@media(max-width:600px){.result-view .result-crest{width:170px!important;height:170px!important}.result-view{padding:20px!important;gap:6px!important}}
@media(max-height:640px){.result-view .result-crest{width:130px!important;height:130px!important}}

#ownerPasswordForm{display:grid;gap:12px;max-width:440px}#ownerPasswordForm label{display:grid;gap:6px}#ownerPasswordForm input{width:100%;box-sizing:border-box}#ownerPasswordForm button{justify-self:start}
/* Animated background (ambience.js): one canvas behind the page content, under the rail and panels. */
.ambience-live{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden}
.ambience-live[hidden]{display:none!important}
.ambience-live canvas{display:block;width:100%;height:100%}
.ambience-live~main{position:relative;z-index:1}
html[data-render-mode=basic] .ambience-live{display:none!important}
