@font-face {
  font-family: Studio;
  src: url('/fonts/dm-sans.woff2') format('woff2');
  font-weight: 100 1000;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f6f7fb;
  --card: #fff;
  --ink: #182238;
  --muted: #526176;
  --edge: #dce2ec;
  --soft: #edf1f7;
  --accent: #304bd6;
  --tint: #e9edff;
  --sans: Studio,system-ui,-apple-system,"Segoe UI",sans-serif;
}
* { box-sizing: border-box }
body { margin: 0; color: var(--ink); background: var(--paper); font: 15px/1.52 var(--sans); -webkit-font-smoothing: antialiased }
button,input,select,textarea { font: inherit; color: inherit }
button { border: 0; background: none; cursor: pointer }
button:disabled { opacity: .48; cursor: default }
a { color: inherit; text-decoration: none }
a:hover { text-decoration: underline }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible { outline: 3px solid #4162e9; outline-offset: 3px }
[hidden] { display: none !important }
.icon { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; display: block }
.skip { position: fixed; z-index: 40; left: 12px; top: -90px; background: white; padding: 12px; border-radius: 5px }
.skip:focus { top: 10px }
.layout { display: grid; grid-template-columns: 216px minmax(0,1fr); min-height: 100vh }
.sidebar { background: white; border-right: 1px solid var(--edge); position: sticky; top: 0; height: 100vh; height: 100dvh; z-index: 12; display: flex; flex-direction: column; padding: 28px 15px 18px; overflow: auto }
.brand { display: flex; align-items: center; gap: 10px; margin: 0 8px 39px }
.brand:hover,.local-info:hover,.nav-link:hover { text-decoration: none }
.brand img { width: 37px; height: 37px }
.brand>span { font-size: 26px; font-weight: 790; line-height: .95; letter-spacing: -1.65px }
.brand small { display: block; color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: 2.2px; margin: 6px 0 0 1px }
.nav-label,.eyebrow,.micro { font-size: 10px; font-weight: 740; text-transform: uppercase; letter-spacing: 1.3px }
.nav-label { color: #667184; margin: 0 13px 8px; font-size: 9px }
.nav-link { width: 100%; min-height: 40px; display: flex; align-items: center; gap: 12px; padding: 9px 13px; margin: 3px 0; color: #465167; border-radius: 7px; text-align: left; font-size: 13px; font-weight: 560 }
.nav-link:hover { background: var(--soft) }
.nav-link.current { background: var(--tint); color: #2943c2; font-weight: 670 }
.nav-link .icon { width: 18px; height: 18px }
.nav-rule { height: 1px; background: var(--edge); margin: 23px 12px 20px }
.sidebar-bottom { margin-top: auto; padding-top: 26px }
.local-info { display: flex; align-items: center; gap: 9px; padding: 17px 4px 2px; margin: 13px 2px 0; border-top: 1px solid var(--edge); font-size: 12px }
.local-info strong,.local-info small { display: block }
.local-info>span:nth-child(2) { min-width: 0 }
.local-info strong,.local-info small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis }
.local-info small { font-size: 10px; color: var(--muted); font-weight: 480 }
.local-info>.icon { margin-left: auto; width: 13px; color: var(--muted) }
.profile { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--soft); color: #34445d; font-size: 15px; font-weight: 750 }
main,.board-column,.desk { min-width: 0 }
.main-wrap { max-width: 1320px; margin: auto; padding: 0 clamp(23px,3.45vw,62px) }
.top,.crumb,.date,.section-heading,.hero-kicker,.cta,.button,.desk-title,.player-row,.board-tools,.tabs,.desk-opponent,.text-btn,.replay,footer,footer>div,.mast-actions,.account-shortcut { display: flex; align-items: center }
.top { min-height: 63px; justify-content: space-between; gap: 6px }
.crumb,.date,.account-shortcut { gap: 8px; font-size: 12px; color: var(--muted) }
.crumb strong { font-weight: 620; color: var(--ink) }
.crumb>.icon { width: 11px; height: 11px; color: #8792a6 }
.crumb-emblem,.date .icon { display: none }
.mast-actions { gap: 14px }
.account-shortcut,.mobile-toggle,.nav-scrim { display: none }
.hero { isolation: isolate; position: relative; display: flex; align-items: center; overflow: hidden; min-height: clamp(215px,18.5vw,264px); border-radius: 15px; border: 1px solid #d8dfea; background: linear-gradient(112deg,#f0f3fb 7%,#e7edf9 67%,#d9e2f6 100%) }
.hero-art { position: absolute; inset: 0 -1% 0 45%; overflow: hidden; pointer-events: none }
.hero-art:before { content: ''; position: absolute; inset: 0 2% 0 10%; background-image: radial-gradient(#445fb152 .8px,transparent .9px); background-size: 10px 10px; opacity: .37; mask-image: linear-gradient(90deg,transparent,black 38%); -webkit-mask-image: linear-gradient(90deg,transparent,black 38%) }
.hero-art img { position: absolute; width: 100%; height: 107%; top: -3%; display: block; object-fit: contain; filter: drop-shadow(0 8px 6px #25345d20) }
.hero-copy { position: relative; z-index: 1; width: 56%; padding: 28px 0 28px clamp(23px,3.0vw,46px) }
.hero-kicker { color: #344db0; letter-spacing: 1.7px; font-size: 9px; gap: 7px }
.studio-grid { width: 13px; height: 13px; background: repeating-conic-gradient(var(--accent) 0 25%,transparent 0 50%) 0 / 8px 8px; clip-path: inset(0 1px 1px 0 round 2px) }
.hero h1 { margin: 7px 0; font-size: clamp(50px,4.75vw,76px); line-height: .98; font-weight: 680; letter-spacing: -.075em }
.hero p { max-width: 375px; margin: 9px 0 17px; font-size: clamp(13px,1.06vw,16px); line-height: 1.5; color: #46546e }
.cta { justify-content: center; gap: 10px; width: max-content; font-size: 13px; font-weight: 670; border-radius: 7px }
.hero-cta { padding: 9px 14px; background: var(--accent); color: white; box-shadow: 0 2px 3px #2e40a41c }
.hero-cta:hover { background: #243bb6; text-decoration: none }
.hero-cta .icon { width: 15px; height: 15px }
.room { scroll-margin-top: 12px }
.section-heading { justify-content: space-between; gap: 12px; margin: 29px 0 15px }
.section-heading h2,.study-links h2 { margin: 0; font-size: clamp(26px,2.3vw,37px); line-height: 1.15; font-weight: 680; letter-spacing: -.058em }
.button { border: 1px solid var(--edge); border-radius: 7px; gap: 7px; justify-content: center; background: white; padding: 8px 12px; font-weight: 650; font-size: 12px }
.button .icon { width: 15px; height: 15px }
.button:hover,.board-tool:hover,.tool-link:hover,.text-btn:hover { background: var(--soft) }
.new-game { background: #1d2a42; border-color: #1d2a42; color: white }
.new-game:hover { background: #2c3c59 }
.room-grid { display: grid; align-items: start; grid-template-columns: minmax(0,1.63fr) minmax(238px,1fr); gap: clamp(15px,1.7vw,25px) }
.board-card,.desk-card,.lesson-card { border: 1px solid var(--edge); border-radius: 12px; background: var(--card) }
.board-card { overflow: hidden }
.player-row { gap: 9px; min-height: 54px; padding: 10px 13px }
.player-meta { min-width: 0; display: flex; flex-direction: column }
.player-name { font-size: 14px; font-weight: 730; line-height: 1.25 }
.player-detail { font-size: 11px; color: var(--muted); line-height: 1.45 }
.avatar { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 7px }
.bot-avatar,.bot-print { background: #e7ecfa }
.bot-avatar img { width: 29px; height: 29px }
.guest-avatar { background: #e9edf2 }
.side-token { width: 16px; height: 16px; border-radius: 4px; background: white; border: 1px solid #9ba8bb; box-shadow: 2px 2px 0 #bac6d6; transform: rotate(-6deg) }
.opponent-tag { margin-left: auto; padding: 3px 7px; background: var(--soft); color: #4b5871; border-radius: 5px; font: 650 9px var(--sans); letter-spacing: .6px; text-transform: uppercase }
.board-surround { margin: 0 8px }
.board { display: grid; grid-template: repeat(8,1fr)/repeat(8,1fr); width: 100%; aspect-ratio: 1; border-radius: 4px; overflow: hidden; isolation: isolate; box-shadow: 0 0 0 1px #96a7bd3b }
.square { position: relative; min-width: 0; min-height: 0; display: grid; place-items: center; border: 0; border-radius: 0; padding: 0; touch-action: manipulation }
.square.light { background: #e8edf4; color: #52637b }
.square.dark { background: #8fa4c0; color: #1a304d }
.square img { position: relative; z-index: 1; width: 90%; height: 90%; object-fit: contain; user-select: none; pointer-events: none }
.square:focus-visible { outline: 3px solid #2a47ce; outline-offset: -3px; z-index: 2 }
.square.last { box-shadow: inset 0 0 0 100px #748efa4a }
.square.selected { box-shadow: inset 0 0 0 100px #617af68a }
.square.hint { box-shadow: inset 0 0 0 3px #344fd0; background-image: linear-gradient(#bbc6ff59,#bbc6ff59) }
.square .rank,.square .file { position: absolute; z-index: 2; font: 720 clamp(8px,.68vw,11px)/1 var(--sans) }
.rank { top: 3px; left: 3px }.file { bottom: 2px; right: 3px }
.square.legal:after { content: ''; position: absolute; width: 24%; height: 24%; border-radius: 50%; background: #203f8d70 }
.square.legal.capture:after { width: 87%; height: 87%; background: none; border: 4px solid #2a438b8a }
.square.check { background: radial-gradient(ellipse,#ffc7b9,#e58c7e) }
.board-tools { flex: none; margin-left: auto; gap: 1px }.board-tool { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 6px; color: #52627c }
.board-tool .icon { width: 17px; height: 17px }.board-tool[data-muted=true] { color: #7d8899 }
.piece-key { margin: 10px 2px 0; font-size: 12px; color: var(--muted) }.piece-key summary { cursor: pointer; width: max-content }.piece-key-grid { display: grid; grid-template-columns: repeat(6,1fr); margin-top: 7px; background: white; border: 1px solid var(--edge); border-radius: 7px; padding: 8px 4px }.piece-key-grid div { display: grid; justify-items: center; gap: 2px }.piece-key-grid img { width: 31px; height: 31px }.piece-key-grid span { font-size: 11px }
.desk { display: grid; gap: 14px }.desk-card { padding: 19px clamp(15px,1.45vw,23px) 10px }.desk-title { gap: 8px }.desk-title h3 { margin: 0; font-size: 20px; font-weight: 670; line-height: 1.2; letter-spacing: -.045em }
.desk-icon { color: #536583 }.desk-icon .icon { width: 17px; height: 17px }.tabs { gap: 3px; background: var(--soft); padding: 3px; border-radius: 7px; margin: 15px 0 17px }
.tabs button { flex: 1; padding: 5px 6px; border: 1px solid transparent; border-radius: 5px; color: var(--muted); font-size: 12px; font-weight: 610 }
.tabs [aria-selected=true] { color: var(--accent); background: white; border-color: #dce2ee; box-shadow: 0 1px 2px #25335410 }
.micro { color: #626f84; font-size: 9px; letter-spacing: 1.1px }.desk-opponent { gap: 10px; margin: 8px 0 12px }.bot-print { width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center }.bot-print img { width: 33px }.desk-opponent>div { display: grid }.desk-opponent strong { font-size: 16px; letter-spacing: -.025em; line-height: 1.3; font-weight: 670 }.desk-opponent [data-bot-level] { font-size: 11px; color: var(--muted) }
.button.full { width: 100% }.desk-divider { height: 1px; background: var(--edge); margin: 16px 0 8px }.tool-link { display: flex; width: 100%; align-items: center; gap: 9px; text-align: left; padding: 6px 2px; border-radius: 6px; font-size: 12px; font-weight: 590 }
.tool-icon,.lesson-icon { display: grid; place-items: center; color: #526789; background: var(--soft); border-radius: 6px }.tool-icon { width: 26px; height: 26px }.tool-icon .icon { width: 15px;height: 15px }.tool-link>.icon { width: 12px; margin-left: auto; color: #748199 }
.daily-card { position: relative; overflow: hidden; isolation: isolate; min-height: 126px; text-align: left; border: 1px solid #d3dbfa; border-radius: 11px; padding: 16px clamp(15px,1.5vw,25px); background: linear-gradient(110deg,#e9edff,#dce5ff); color: #223664 }.daily-card:hover { border-color: #9eadf0 }.daily-content { display: grid; gap: 4px; position: relative; z-index: 2 }.daily-content .micro { color: #42589a }.daily-content strong { font-size: 24px; font-weight: 660; line-height: 1.22; letter-spacing: -.05em }.daily-link { display: flex; gap: 6px; align-items: center; color: #344cb5; font-size: 12px; font-weight: 650; margin-top: 8px }.daily-link .icon { width: 14px }
.daily-graphic { position: absolute; inset: 0 -8px 0 auto; width: 40%; overflow: hidden; pointer-events: none }.daily-graphic span { position: absolute; width: 160px; height: 76px; bottom: -27px; right: -20px; background: repeating-conic-gradient(#b5c4ea 0 25%,#d3ddf6 0 50%) 0/25px 25px; transform: skewY(-19deg) rotate(-4deg) }.daily-graphic img { position: absolute; right: 7px; bottom: 8px; height: 76%; transform: rotate(5deg); filter: drop-shadow(3px 6px 0 #8399ce48) }
.text-btn { gap: 6px; width: max-content; border-radius: 4px; font-size: 12px; color: var(--accent); font-weight: 660; padding: 6px 0 }.text-btn .icon { width: 15px }.study-links { margin: 32px 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px }.study-links>.text-btn { justify-self: end; align-self: end }.study-links h2 { font-size: 25px }.lesson-card { display: flex; align-items: center; gap: 12px; padding: 15px }.lesson-card:hover { background: #fcfdff; border-color: #abb9d2; text-decoration: none }.lesson-icon { width: 39px; height: 39px }.lesson-card small,.lesson-card strong { display: block }.lesson-card small { font-size: 10px; color: var(--muted) }.lesson-card strong { font-weight: 650; font-size: 14px }.lesson-card>.icon { width: 16px; margin-left: auto; color: var(--muted) }
footer { justify-content: space-between; gap: 12px; border-top: 1px solid var(--edge); padding: 20px 0 23px; color: var(--muted); font-size: 11px }footer>span { font-weight: 670; font-size: 13px; color: #40506b }footer>div { flex-wrap: wrap; gap: 13px }.noscript { position: fixed; inset: auto 10% 8px; background: white; padding: 10px }
#move-list { max-height: 218px; overflow-y: auto; padding: 6px 0 }.history-line { display: grid; align-items: center; gap: 3px; grid-template-columns: 30px 1fr 1fr; padding: 3px 0 }.move-number { font-size: 12px; color: var(--muted) }.move { text-align: left; padding: 4px 7px; background: var(--soft); border-radius: 4px; font-weight: 600; font-size: 12px }.move.active { background: var(--tint); color: var(--accent) }.replay { justify-content: center; gap: 4px; border-block: 1px solid var(--edge); margin: 8px 0 }.empty-history,#coach-output { font-size: 13px; color: var(--muted) }#coach-output { max-height: 250px; overflow: auto }
#coach-form>label,.field label { display: block; font-size: 12px; font-weight: 650; margin: 11px 0 4px }.chat-control { display: flex; border: 1px solid var(--edge); overflow: hidden; background: white; border-radius: 7px }.chat-control input { min-width: 0; width: 100%; padding: 8px; border: 0; font-size: 12px }.chat-control button { padding: 8px; color: var(--accent); background: var(--tint) }.chat-control .icon { width: 16px }.chat-turn { padding: 8px 10px; margin: 6px 0; background: var(--soft); border-radius: 7px; font-size: 13px }.chat-turn.user { background: var(--tint) }.chat-turn p { margin: 3px 0; white-space: pre-line }
dialog.play-dialog { position: fixed; width: min(470px,calc(100vw - 28px)); max-height: 86dvh; margin: auto; padding: 0; color: var(--ink); border: 1px solid var(--edge); border-radius: 14px; background: var(--card); box-shadow: 0 20px 80px #1b284035 }dialog::backdrop { background: #17233c75; backdrop-filter: blur(2px) }.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-bottom: 1px solid var(--edge); padding: 17px 21px }.dialog-head h2,.dialog-head h3 { font-size: 23px; font-weight: 660; letter-spacing: -.045em; line-height: 1.25; margin: 0 }.dialog-head button { padding: 4px 9px; border-radius: 5px; background: var(--soft) }
.dialog-body { padding: 17px 21px 21px; font-size: 14px }.dialog-body p { margin: 0 0 12px }.dialog-body input:not([type=radio]):not([type=checkbox]),.dialog-body select,.dialog-body textarea { accent-color: var(--accent); width: 100%; background: white; border: 1px solid var(--edge); padding: 8px; border-radius: 6px }.dialog-body input[type=range] { padding: 4px 0 }.dialog-body textarea { resize: vertical }.field { display: grid; gap: 5px; margin: 10px 0 }.dialog-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 15px }.dialog-button,.dialog-secondary { border-radius: 6px; padding: 8px 13px; font-size: 13px; font-weight: 650 }.dialog-button { color: white; background: var(--accent) }.dialog-secondary { color: #384863; background: var(--soft) }.dialog-body output { font-weight: 650 }.dialog-note { font-size: 12px; color: var(--muted) }.dialog-chat-output { max-height: 35dvh; overflow: auto }.live-opt { font-size: 12px; line-height: 1.45; margin: 10px 0; display: block }.analysis-line { background: var(--soft); border-radius: 6px; margin: 12px 0; padding: 10px; font-variant-numeric: tabular-nums }.retry-bot { text-decoration: underline; font-size: inherit }.review-list { display: grid; gap: 7px; margin: 12px 0 }.review-item { display: grid; grid-template-columns: 1fr auto; text-align: left; gap: 5px; padding: 9px 12px; border: 1px solid var(--edge); border-radius: 6px; background: var(--soft); font-size: 13px }.review-item span { font-size: 12px; color: var(--muted) }.review-item:hover { background: var(--tint) }.review-progress { width: 100%; accent-color: var(--accent) }.dialog-chat-form .dialog-button { margin-top: 5px }#panel-moves .text-btn { margin-right: 9px }
@media (max-width:1080px) {
  .layout { grid-template-columns: 185px minmax(0,1fr) }.sidebar { padding-inline: 10px }.main-wrap { padding-inline: 22px }.room-grid { grid-template-columns: minmax(0,1.53fr) minmax(213px,1fr); gap: 13px }.hero-copy { width: 58% }.hero-art { left: 45% }
}
@media (max-width:820px) {
  .layout { display: block }.sidebar { position: fixed; z-index: 25; inset: 0 auto 0 0; width: 235px; transform: translateX(-102%); visibility: hidden; transition: transform .18s,visibility .18s }.sidebar.open { transform: none; visibility: visible }.mobile-toggle { display: grid; place-items: center; padding: 5px; margin-left: -4px }.nav-scrim:not([hidden]) { display: block; position: fixed; inset: 0; background: #19264366; z-index: 20 }.crumb-emblem { display: none }.account-shortcut { display: inline-flex; color: var(--accent); font-weight: 630 }.account-shortcut .icon { width: 15px; height: 15px }.top { min-height: 54px }.main-wrap { padding-inline: 20px }.section-heading { margin-top: 22px }.room-grid { grid-template-columns: minmax(0,1.6fr) minmax(212px,1fr) }
}
@media (max-width:620px) {
  .main-wrap { padding-inline: 13px }.date { display: none }.hero { min-height: 174px; border-radius: 11px }.hero-copy { width: 58%; padding: 19px 0 20px 17px }.hero h1 { font-size: clamp(39px,8.5vw,52px); margin: 8px 0 }.hero p { font-size: 12px; margin: 7px 0 12px }.hero-art { left: 47%; right: -14% }.hero-art img { object-fit: contain; top: 2% }.hero-kicker { font-size: 8px; letter-spacing: 1px }.studio-grid { width: 11px; height: 11px }.hero-cta { padding: 7px 11px; font-size: 12px }.room-grid { grid-template-columns: minmax(0,1fr) }.section-heading { margin: 21px 0 11px }.section-heading h2 { font-size: 26px }.player-row { min-height: 49px; padding: 8px 10px }.board-surround { margin: 0 6px }.board-tool { width: 31px; height: 31px }.square .rank,.square .file { font-size: 8px }.desk-card { padding: 16px 16px 10px }.study-links { grid-template-columns: minmax(0,1fr) auto }.lesson-card { grid-column: 1/-1 }.study-links h2 { font-size: 22px }.daily-card { min-height: 109px }.daily-graphic { width: 30% }footer { flex-direction: column; align-items: flex-start }
}
@media (max-width:370px) { .hero-copy { width: 66% }.hero-art { left: 53%; right: -20%; opacity: .9 }.room-grid { gap: 12px }.player-detail { font-size: 10px } }
@media (prefers-reduced-motion:reduce) { *,*:before,*:after { scroll-behavior: auto!important; transition: none!important; animation: none!important } }

.review-card{display:grid;gap:6px}.review-card .dialog-secondary{justify-self:start;padding:5px 9px}.review-list{margin-bottom:9px}

.visually-hidden{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}
.board-access{padding:12px 16px}.board-access summary{cursor:pointer;font-weight:680}.board-access[open] summary{margin-bottom:12px}
.move-entry{display:grid;gap:4px;margin-bottom:8px}.move-entry>div{display:flex;gap:6px}.move-entry input{width:100%;min-width:0;font:inherit;border:1px solid #aab8cc;border-radius:6px;padding:.42em}.move-entry label,.access-check{font-size:.88rem}.access-check{display:flex;align-items:center;gap:6px;margin:.4em 0}.move-entry [role=status]{font-size:.84rem}
.board[data-contrast=true] .square.light{background:#f5f7fb;color:#163147}.board[data-contrast=true] .square.dark{background:#345777;color:#fff}.board[data-contrast=true] .square.selected,.board[data-contrast=true] .square.hint{box-shadow:inset 0 0 0 4px #efae39}.board[data-contrast=true] .square.last{outline:2px solid #efae39;outline-offset:-3px}.board[data-contrast=true] .square.legal::after{background:#f4ad2c;opacity:1}.board[data-contrast=true] .square.capture::after{background:none;border-color:#f4ad2c}.board[data-contrast=true] .square.check{background:#b14140;color:white}.board[data-large=true] .square img{width:99%;height:99%;object-fit:contain}

.play-modes{display:flex;flex-wrap:wrap;gap:6px;margin:3px 0 5px}.play-modes a,.play-modes button{border:1px solid var(--edge);background:var(--card);padding:6px 11px;border-radius:8px;font-weight:630;font-size:.84rem}.play-modes a:hover,.play-modes button:hover,.play-modes a[aria-current=page]{background:var(--tint);color:var(--accent)}.section-heading h1{margin:0;font-size:clamp(1.85rem,4vw,2.7rem);line-height:1.1;letter-spacing:-.055em;font-weight:760}
