*{box-sizing:border-box}body{margin:0;background:#111619;color:#e8eceb;font:16px system-ui,sans-serif}header{display:flex;justify-content:space-between;align-items:center;padding:16px;background:#1a2226;border-bottom:1px solid #303b40}header span,.muted,.beta{color:#a9b9ba;font-size:.8rem}main{max-width:590px;margin:auto;padding:14px}h1{font-size:1.8rem;margin:16px 0}h2{font-size:1.15rem;margin:10px 0}section{background:#1b2428;border:1px solid #303d42;border-radius:12px;padding:14px;margin:12px 0}label{display:block;color:#c8d3d4;font-size:.9rem;margin:10px 0}input,select,button{font:inherit;border-radius:8px;border:1px solid #3b5156;padding:12px;color:#eef3f3;background:#222f33}input,select{display:block;width:100%;margin-top:6px}button{cursor:pointer;width:100%;margin:4px 0}button:disabled{opacity:.4;cursor:not-allowed}section>button:first-of-type{background:#365e4e}button:focus-visible{outline:2px solid #b6d8c6}.notice{padding:12px;background:#42362a;border-radius:8px}.row{display:flex;gap:8px}.board{display:grid;grid-template-columns:repeat(8,1fr);width:100%;aspect-ratio:1;border:3px solid #303d42;border-radius:4px;overflow:hidden}.square{margin:0;padding:0;position:relative;border:0;border-radius:0;aspect-ratio:1;display:grid;place-items:center;color:#151c1c;font-size:clamp(24px,8vw,54px);line-height:1}.light{background:#d7d7ba}.dark{background:#72917d}.selected{box-shadow:inset 0 0 0 4px #eccd57}.last{background:#a5ac65}.square i{position:absolute;width:22%;height:22%;background:#26382e66;border-radius:50%;pointer-events:none}.rank,.file{position:absolute;font-size:10px;font-weight:700}.rank{top:2px;left:3px}.file{bottom:2px;right:3px}.square span{pointer-events:none}.beta{display:block;letter-spacing:.06em}.board button{touch-action:manipulation}p{overflow-wrap:anywhere}:root{color-scheme:dark}.board{color-scheme:light;forced-color-adjust:none;border-color:#4d4842;grid-template-columns:repeat(8,minmax(0,1fr));grid-template-rows:repeat(8,minmax(0,1fr));background:#e7d9be}.board .square{min-width:0;min-height:0;overflow:hidden;forced-color-adjust:none;color-scheme:light;aspect-ratio:auto;background-image:none;box-shadow:none}.board .light{background:#eddfc5;color:#70543f}.board .dark{background:#987655;color:#f5e6cd}.board .last.light{background:#e9d57f}.board .last.dark{background:#b5a05c}.board .selected{box-shadow:inset 0 0 0 3px #dfaa30}.board .check{box-shadow:inset 0 0 0 3px #b8272a;background:#e08a7f}.piece-svg{display:block;width:86%;height:86%;max-width:58px;max-height:58px;pointer-events:none;forced-color-adjust:none;filter:none}.row .piece-svg{width:32px;height:32px;margin:auto}.board .rank,.board .file{font-size:clamp(8px,2.5vw,11px);pointer-events:none}.board .square i{z-index:1;background:#39432c88}.board .square:has(.piece-svg) i{width:88%;height:88%;background:transparent;border:3px solid #51633d88}.board .square:focus-visible{outline-offset:-3px;z-index:2}header{position:relative;gap:12px;align-items:center}header b{font-size:clamp(13px,4vw,20px)}.build-version{display:block;font-size:11px;line-height:1.6;color:#a9b9ba}.account{position:relative;min-width:0}.account-trigger{display:flex;align-items:center;justify-content:center;gap:7px;width:auto;max-width:155px;margin:0;padding:9px;font-size:12px}.account-trigger span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:inherit}.account-trigger svg{flex-shrink:0}.account-panel{position:absolute;top:calc(100% + 8px);right:0;width:min(285px,85vw);padding:14px;z-index:50;border:1px solid #536068;background:#1b2428;border-radius:12px;box-shadow:0 10px 30px #0005}.account-panel button{font-size:14px;text-align:left}.account-panel b{overflow-wrap:anywhere}.summary>div{flex:1;text-align:center}.summary b,.summary small{display:block}.summary b{font-size:20px}.summary small{font-size:11px}.history-title{display:flex;justify-content:space-between;gap:8px}.positive{color:#9bdfad}.negative{color:#ffad9f}:root[data-theme=light]{color-scheme:light}:root[data-theme=light] body{background:#f5f2ec;color:#26302e}:root[data-theme=light] header,:root[data-theme=light] section,:root[data-theme=light] .account-panel{background:#fffdf8;border-color:#d6d1c7}:root[data-theme=light] input,:root[data-theme=light] select,:root[data-theme=light] button:not(.square){background:#f3f0e8;color:#29342d;border-color:#c2c8bb}:root[data-theme=light] section>button:first-of-type{background:#d5e6d8;color:#1d4b35}:root[data-theme=light] label,:root[data-theme=light] .muted,:root[data-theme=light] .beta,:root[data-theme=light] .build-version,:root[data-theme=light] header span{color:#52625a}:root[data-theme=light] .notice{background:#eee1cc}:root[data-theme=light] .positive{color:#246a40}:root[data-theme=light] .negative{color:#a6382c}.board,.board .square,.piece-svg{color-scheme:light;forced-color-adjust:none}.board .square{-moz-appearance:none;appearance:none;-webkit-appearance:none}:root,:root[data-theme=light],:root[data-theme=dark]{color-scheme:only light}.board,.board .square,.piece-svg{color-scheme:only light!important;forced-color-adjust:none!important}.board .square.light{background-color:#f0d9b5;background-image:linear-gradient(#f0d9b5,#f0d9b5);color:#5b412e}.board .square.dark{background-color:#b58863;background-image:linear-gradient(#b58863,#b58863);color:#fff5e4}.board .square.last{background-image:linear-gradient(#d7bd5c,#d7bd5c)}.board .square.check{background-image:linear-gradient(#df8580,#df8580)}:root[data-theme=light] .board .square.light{background-color:#f1e8d6;background-image:linear-gradient(#f1e8d6,#f1e8d6)}:root[data-theme=light] .board .square.dark{background-color:#7f987d;background-image:linear-gradient(#7f987d,#7f987d)}:root[data-theme=light] .board .square.last{background-image:linear-gradient(#dbca72,#dbca72)}:root[data-theme=light] .board .square.check{background-image:linear-gradient(#df8580,#df8580)}.board .square .piece-svg{position:relative;z-index:0}.account-panel{max-height:min(70dvh,450px);overflow-y:auto;overscroll-behavior:contain}.account-panel label select{color-scheme:only light}.account-panel button{min-height:40px}form button[type=submit]{background:#365e4e;color:#fff}form label small{display:block;margin-top:6px;color:inherit}.build-version{font-variant-numeric:tabular-nums}@media(orientation:landscape)and (max-height:550px){.account-panel{position:fixed;top:6px;right:8px;max-height:calc(100dvh - 12px);width:min(285px,48vw)}main{padding:8px 14px}.board{max-width:calc(100dvh - 30px);margin-inline:auto}}.board.raster-board{position:relative;display:block;isolation:isolate;overflow:hidden;background:none!important;color-scheme:only light!important;forced-color-adjust:none!important}.board-raster-image{display:block;position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:fill;pointer-events:none;-webkit-user-select:none;user-select:none;-webkit-user-drag:none;color-scheme:only light!important;forced-color-adjust:none!important;filter:none!important}.board-touch-grid{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;grid-template-columns:repeat(8,minmax(0,1fr));grid-template-rows:repeat(8,minmax(0,1fr))}.board .raster-square,:root[data-theme=light] .board .raster-square{-moz-appearance:none;appearance:none;-webkit-appearance:none;display:block;min-width:0;min-height:0;width:100%;height:100%;padding:0;margin:0;border:0;border-radius:0;box-shadow:none;background:transparent!important;color:transparent!important;touch-action:manipulation;-webkit-tap-highlight-color:transparent}.board .raster-square:focus-visible{outline:3px solid #e2ac23;outline-offset:-3px;z-index:1}.home-modes{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))}.home-modes section{margin:0}.nav-card h2{font-size:1.3rem}.nav-card p{line-height:1.45;font-size:.95rem}.eyebrow{font-size:10px;letter-spacing:.12em;color:#86bba1}.lobby-tabs button{font-size:.86rem}.lobby-tabs button[aria-pressed=true]{border-color:#8dc4a2;background:#365e4e;color:#fff}.watch-button{display:flex;align-items:center;justify-content:center;gap:8px}p.muted>svg{vertical-align:middle;margin-right:5px}:root[data-theme=light] .eyebrow{color:#426b53}.mission-score progress,.mission-card progress{display:block;width:100%;height:12px;accent-color:#68a982;margin:10px 0}.mission-card .history-title{align-items:center}.mission-card .history-title span{font-variant-numeric:tabular-nums;color:inherit}.mission-score .summary b{font-size:clamp(14px,5vw,23px)}.mission-card .positive{font-weight:600}.archive-row{border-top:1px solid #7d8b8555;padding:12px 0}.mission-score button[aria-pressed=true],section button[aria-pressed=true]{border-color:#8dc4a2}.archive-row p{margin:5px 0}
