.cg-wrap{box-sizing:content-box;display:block;position:relative}cg-container{width:100%;height:100%;display:block;position:absolute;top:0}cg-board{-webkit-user-select:none;user-select:none;background-size:cover;width:100%;height:100%;line-height:0;position:absolute;top:0;left:0}.cg-wrap.manipulable cg-board{cursor:pointer}cg-board square{pointer-events:none;width:12.5%;height:12.5%;position:absolute;top:0;left:0}cg-board square.move-dest{pointer-events:auto}cg-board square.last-move{will-change:transform}.cg-wrap piece{z-index:2;will-change:transform;pointer-events:none;background-size:cover;width:12.5%;height:12.5%;position:absolute;top:0;left:0}cg-board piece.dragging{cursor:move;z-index:11!important}piece.anim{z-index:8}piece.fading{z-index:1;opacity:.5}.cg-wrap piece.ghost{opacity:.3}.cg-wrap piece svg{pointer-events:none;z-index:2;opacity:.6;width:100%;height:100%;position:relative;top:0;left:0;overflow:hidden}.cg-wrap cg-auto-pieces,.cg-wrap .cg-shapes,.cg-wrap .cg-custom-svgs{pointer-events:none;width:100%;height:100%;position:absolute;top:0;left:0;overflow:visible}.cg-wrap cg-auto-pieces{z-index:2}.cg-wrap cg-auto-pieces piece{opacity:.3}.cg-wrap .cg-shapes{opacity:.6;z-index:2;overflow:hidden}.cg-wrap .cg-custom-svgs{z-index:9}.cg-wrap .cg-custom-svgs svg{overflow:visible}.cg-wrap coords{pointer-events:none;opacity:.8;font-family:sans-serif;font-size:9px;display:flex;position:absolute}.cg-wrap coords.ranks{flex-flow:column-reverse;width:12px;height:100%;top:-20px;left:4px}.cg-wrap coords.ranks.black{flex-flow:column}.cg-wrap coords.ranks.left{align-items:flex-end;left:-15px}.cg-wrap coords.files{text-transform:uppercase;text-align:center;flex-flow:row;width:100%;height:16px;bottom:-4px;left:24px}.cg-wrap coords.files.black{flex-flow:row-reverse}.cg-wrap coords coord{flex:auto}.cg-wrap coords.ranks coord{transform:translateY(39%)}.cg-wrap coords.squares{text-transform:uppercase;text-align:right;flex-flow:column-reverse;width:12.5%;height:100%;bottom:0;left:0}.cg-wrap coords.squares.black{flex-flow:column}.cg-wrap coords.squares.left{text-align:left}.cg-wrap coords.squares coord{padding:6% 4%}.cg-wrap coords.squares.rank2{transform:translate(100%)}.cg-wrap coords.squares.rank3{transform:translate(200%)}.cg-wrap coords.squares.rank4{transform:translate(300%)}.cg-wrap coords.squares.rank5{transform:translate(400%)}.cg-wrap coords.squares.rank6{transform:translate(500%)}.cg-wrap coords.squares.rank7{transform:translate(600%)}.cg-wrap coords.squares.rank8{transform:translate(700%)}:root{--bg:#f3f1ed;--surface:#fff;--surface-2:#ece9e3;--captured-bg:var(--sq-light);--fg:#22201c;--muted:#74706a;--accent:#3d8a2e;--accent-soft:#3d8a2e24;--accent-fg:#fff;--border:#dcd7ce;--current:#cfe7bf;--shadow:0 1px 2px #0000000f, 0 4px 16px #0000000f;--eval-black:#3a3734;--eval-white:#f7f7f7;--best:#2e9e3e;--inaccuracy:#56b4e9;--mistake:#e69f00;--blunder:#df5353;--sq-light:#f0d9b5;--sq-dark:#b58863;--radius:12px;--gutter:12px;--topbar-h:56px;--strip-h:34px;--evalbar-w:14px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--bg:#161512;--surface:#23211e;--surface-2:#2e2b28;--captured-bg:var(--sq-dark);--fg:#e8e6e3;--muted:#9b968f;--accent:#6aac2c;--accent-soft:#6aac2c2e;--border:#37342f;--current:#3c5a26;--shadow:0 1px 2px #0006, 0 4px 16px #00000040;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}:root[data-theme=dark]{--bg:#161512;--surface:#23211e;--surface-2:#2e2b28;--captured-bg:var(--sq-dark);--fg:#e8e6e3;--muted:#9b968f;--accent:#6aac2c;--accent-soft:#6aac2c2e;--border:#37342f;--current:#3c5a26;--shadow:0 1px 2px #0006, 0 4px 16px #00000040;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box}html,body{background:var(--bg);color:var(--fg);overscroll-behavior:none;-webkit-tap-highlight-color:transparent;-webkit-text-size-adjust:100%;margin:0;font:15px/1.4 system-ui,-apple-system,Segoe UI,Roboto,sans-serif}body{min-height:100dvh;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}button,input,textarea{font:inherit;color:inherit}button{touch-action:manipulation;cursor:pointer;border:1px solid var(--border);background:var(--surface);border-radius:10px;min-height:44px;padding:0 14px;transition:background-color .15s,border-color .15s,color .15s}button:hover:not(:disabled){border-color:var(--muted)}button:active:not(:disabled){transform:translateY(1px)}button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}button.primary{background:var(--accent);color:var(--accent-fg);border-color:#0000;font-weight:600}button.wide{width:100%}button svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;flex:none;width:20px;height:20px}kbd{border:1px solid var(--border);background:var(--surface-2);color:var(--muted);border-bottom-width:2px;border-radius:4px;padding:3px 5px;font:600 11px/1 ui-monospace,SFMono-Regular,Menlo,monospace}.muted{color:var(--muted)}.spacer{flex:1}[hidden]{display:none!important}.topbar{height:var(--topbar-h);padding:0 var(--gutter);align-items:center;gap:6px;max-width:1680px;margin:0 auto;display:flex}.brand{white-space:nowrap;letter-spacing:.2px;align-items:center;gap:10px;font-size:17px;font-weight:700;display:flex}.brand img{border-radius:8px;width:40px;height:40px}@media (width>=1024px){:root{--topbar-h:76px}.brand{gap:14px;font-size:24px}.brand img{border-radius:10px;width:56px;height:56px}}.tb-btn{background:0 0;border-color:#0000;align-items:center;gap:8px;padding:0 10px;display:inline-flex}.tb-btn:hover:not(:disabled){background:var(--surface-2);border-color:#0000}.tb-btn span{display:none}.rage-icon{font-size:18px;font-style:normal;line-height:1}.tb-btn.rage[data-level=orange]{color:var(--mistake);border-color:var(--mistake)}.tb-btn.rage[data-level=red]{color:#fff;background:var(--blunder);border-color:var(--blunder);animation:.6s ease-in-out infinite rage-shake}@keyframes rage-shake{0%,to{transform:translate(0)}25%{transform:translate(-2px)rotate(-2deg)}75%{transform:translate(2px)rotate(2deg)}}@media (prefers-reduced-motion:reduce){.tb-btn.rage[data-level=red]{animation:none}}.icon-btn{background:0 0;border-color:#0000;place-items:center;width:44px;padding:0;display:grid}.desktop-only{display:none}.layout{flex-direction:column;gap:12px;padding-bottom:16px;display:flex}.board-col{padding:0 var(--gutter) 0 6px}.board-row{gap:6px;display:flex}.board-frame{flex:1;min-width:0;position:relative}.board{aspect-ratio:1;touch-action:none;width:100%;box-shadow:var(--shadow);border-radius:6px}.side,.insights{padding:0 var(--gutter);flex-direction:column;gap:10px;min-width:0;display:flex}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:12px}.card-head{justify-content:space-between;align-items:baseline;margin-bottom:8px;display:flex}.card-head h2{text-transform:uppercase;letter-spacing:.6px;color:var(--muted);margin:0;font-size:13px;font-weight:700}@media (width>=1024px) and (orientation:landscape){:root{--evalbar-w:18px}.tb-btn span,.desktop-only{display:inline-flex}.layout{grid-template-columns:minmax(240px,1fr) auto minmax(320px,1fr);align-items:start;gap:20px;max-width:1680px;margin:0 auto;padding:4px 20px 20px;display:grid}.board-col{width:calc(min(100dvh - var(--topbar-h) - 2 * var(--strip-h) - 40px, 46vw, 840px) + var(--evalbar-w) + 6px);grid-area:1/2;padding:0}.side{max-width:440px;max-height:calc(100dvh - var(--topbar-h) - 24px);grid-area:1/3;padding:0}.insights{width:100%;max-width:380px;margin-top:var(--strip-h);grid-area:1/1;justify-self:end;padding:0}.moves-card{flex:1;min-height:120px;overflow-y:auto}}@media (width<=1023px) and (orientation:landscape) and (width>=600px){.layout{grid-template-columns:auto 1fr;gap:12px;display:grid}.board-col{width:calc(100dvh - var(--topbar-h) - 2 * var(--strip-h) - 16px + var(--evalbar-w) + 6px);grid-row:1/span 2}.side,.insights{padding-left:0}}.strip{height:var(--strip-h);padding-left:calc(var(--evalbar-w) + 8px);color:var(--muted);align-items:center;gap:8px;font-weight:600;display:flex}.strip.active{color:var(--fg)}.strip .side-dot{border:1.5px solid var(--muted);border-radius:50%;width:12px;height:12px}.strip .side-dot.white{background:#fff}.strip .side-dot.black{background:#222}.strip.active .side-dot{box-shadow:0 0 0 3px var(--accent-soft);border-color:var(--accent)}.strip .elo{pointer-events:none;background:var(--surface-2);border-color:#0000;border-radius:999px;min-height:26px;padding:0 8px;font-size:13px;font-weight:700}.strip .thinking{color:var(--accent);font-size:13px;font-weight:500}.strip .thinking:after{content:"…";animation:1s steps(2,end) infinite blink}@keyframes blink{50%{opacity:.2}}.strip .flip{width:30px;min-height:30px;color:var(--muted);background:0 0;border-color:#0000;place-items:center;margin-left:6px;padding:0;display:grid}.strip .flip svg{width:16px;height:16px}.strip .material{align-items:center;gap:0;display:flex}.strip .captured{background:var(--captured-bg);border-radius:999px;align-items:center;padding:1px 6px 1px 4px;display:flex}.strip .captured img{width:22px;height:22px;margin-left:-9px}.strip .captured img:first-child{margin-left:0}.strip .captured img.new-role{margin-left:-2px}.strip .material b{margin-left:8px;font-size:13px}cg-board{background:repeating-conic-gradient(var(--sq-dark) 0 25%, var(--sq-light) 0 50%) 0 0 / 25% 25%;border-radius:6px}cg-board square.last-move{background-color:#9bc70069}cg-board square.selected{background-color:#14551e80}cg-board square.move-dest{background:radial-gradient(#14551e80 19%,#0000 20%)}cg-board square.move-dest:hover{background:#14551e4d}cg-board square.oc.move-dest{background:radial-gradient(#0000 0% 79%,#1455004d 80%)}cg-board square.check{background:radial-gradient(red 0%,#e70000 25%,#a9000000 89%,#9e000000 100%)}.cg-wrap .cg-shapes{opacity:.9}.cg-wrap{-webkit-touch-callout:none}.cg-wrap .cg-shapes text,.cg-wrap .cg-custom-svgs text{font-weight:800}.cg-wrap coords{font-size:10px;font-weight:700}.cg-wrap coords.files{height:auto;line-height:1;bottom:0;left:0}.cg-wrap coords.files coord{text-align:right;padding:0 3px 2px 0}.cg-wrap.orientation-white coords coord:nth-child(odd),.cg-wrap.orientation-black coords coord:nth-child(2n){color:var(--sq-light)}.cg-wrap.orientation-white coords coord:nth-child(2n),.cg-wrap.orientation-black coords coord:nth-child(odd){color:var(--sq-dark)}.gameover{z-index:10;background:#00000059;border-radius:6px;place-items:center;animation:.25s ease-out fade;display:grid;position:absolute;inset:0}@keyframes fade{0%{opacity:0}}.gameover-card{background:var(--surface);box-shadow:var(--shadow);text-align:center;border-radius:16px;flex-direction:column;align-items:center;gap:6px;padding:20px 24px;display:flex}.gameover-card strong{font-size:24px}.gameover-card span{color:var(--muted)}.gameover-card .row{margin-top:10px}.gameover-card button{white-space:nowrap}.evalbar{width:var(--evalbar-w);background:var(--eval-black);box-shadow:var(--shadow);border-radius:4px;flex:none;position:relative;overflow:hidden}.evalbar.off{visibility:hidden}.evalbar-white{background:var(--eval-white);height:50%;transition:height .45s;position:absolute;bottom:0;left:0;right:0}.evalbar.flipped .evalbar-white{top:0;bottom:auto}.evalbar-mid{background:#d64f0099;height:2px;margin-top:-1px;position:absolute;top:50%;left:0;right:0}.evalbar-label{writing-mode:vertical-rl;align-items:center;padding:4px 0;font-size:9px;font-weight:800;display:flex;position:absolute;left:0;right:0;transform:rotate(180deg)}.evalbar-label.bottom{color:var(--eval-black);bottom:0}.evalbar-label.top{color:var(--eval-white);top:0}.evalbar.flipped .evalbar-label.bottom{color:var(--eval-white)}.evalbar.flipped .evalbar-label.top{color:var(--eval-black)}@media (width>=1024px){.evalbar-label{font-size:11px}}.controls{grid-template-columns:repeat(7,1fr);gap:6px;display:grid}.ctrl{place-items:center;min-height:46px;padding:0;display:grid}.ctrl:disabled,.toggle:disabled,.games-list li button:disabled{opacity:.35;cursor:default}.ctrl.active{color:var(--accent);border-color:var(--accent)}.ctrl.active svg{fill:currentColor}.toggles{gap:6px;display:grid}.toggle{text-align:left;align-items:center;gap:10px;min-height:42px;padding:0 12px;font-size:13px;font-weight:600;line-height:1.25;display:flex}.toggle svg{flex:none}.toggle span{flex:1}.toggle kbd{flex:none;display:none}.toggle[aria-pressed=true]{background:var(--accent-soft);border-color:var(--accent);color:var(--accent)}@media (hover:hover) and (width>=1024px){.toggle kbd{display:inline-block}}.status{color:var(--muted);padding:0 2px;font-size:14px}.lines{flex-direction:column;gap:6px;display:flex}.lines-head{color:var(--muted);justify-content:space-between;align-items:center;gap:8px;font-size:14px;display:flex}.lines-head .mv{color:var(--fg)}.lines-head button{min-height:32px;padding:0 10px;font-size:13px}.line{text-align:left;background:var(--surface);min-height:42px;box-shadow:var(--shadow);align-items:center;gap:10px;padding:0 10px;display:flex}.line:disabled{color:inherit;cursor:default}.line.muted{box-shadow:none;border-style:dashed;justify-content:center}.line .rank{color:#fff;border-radius:50%;flex:none;place-items:center;width:22px;height:22px;font-size:12px;font-weight:800;display:grid}.line .score{font-variant-numeric:tabular-nums;flex:none;min-width:46px;font-weight:800}.line .pv{white-space:nowrap;text-overflow:ellipsis;min-width:0;color:var(--muted);flex:1;font-size:14px;overflow:hidden}.line .pv b{color:var(--fg)}.moves-card{padding:4px}.moves{font-variant-numeric:tabular-nums;grid-template-columns:40px 1fr 1fr;display:grid}.moves .empty{color:var(--muted);grid-column:1/-1;margin:8px}.moves .num{color:var(--muted);background:var(--surface-2);border-radius:6px;place-items:center;margin:1px 0;font-size:13px;display:grid}.moves .cell{cursor:pointer;justify-content:space-between;align-items:center;min-height:34px;padding:0 4px;display:flex}.moves .cell.filler{color:var(--muted);cursor:default;padding-left:10px}.cell-eval{color:var(--muted);padding-right:4px;font-size:11px}.mv{cursor:pointer;white-space:nowrap;border-radius:6px;padding:2px 6px;font-weight:500;display:inline-block}.mv:hover{background:var(--surface-2)}.mv.current{background:var(--current);font-weight:700}.mv.bookmarked:after{content:"";background:var(--accent);vertical-align:middle;border-radius:50%;width:7px;height:7px;margin-left:4px;display:inline-block}.glyph{margin-left:1px;font-weight:800}.glyph.inaccuracy{color:var(--inaccuracy)}.glyph.mistake{color:var(--mistake)}.glyph.blunder{color:var(--blunder)}.moves .cell[class*=judged-]{--judged:transparent;border-left:4px solid var(--judged);background:color-mix(in srgb, var(--judged) 18%, transparent);border-radius:6px;margin:1px 2px}.moves .cell.judged-best{--judged:var(--best);background:color-mix(in srgb, var(--judged) 10%, transparent)}.moves .cell.judged-inaccuracy{--judged:var(--inaccuracy)}.moves .cell.judged-mistake{--judged:var(--mistake)}.moves .cell.judged-blunder{--judged:var(--blunder);background:color-mix(in srgb, var(--judged) 28%, transparent)}.moves .cell:has(>.mv.current){box-shadow:inset 0 0 0 2px var(--accent);border-radius:6px}.moves .cell[class*=judged-] .glyph{vertical-align:top;font-size:15px;line-height:1}.alts{color:var(--muted);margin-right:auto;font-size:12px}.alts .mv{padding:1px 4px;font-weight:400;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.alts .best-mark{margin:0 2px 0 0}.moves .cell .mv:first-child{flex:none}.timeline{cursor:pointer;border-radius:8px;height:120px;position:relative;overflow:hidden}.timeline p{place-items:center;height:100%;margin:0;font-size:13px;display:grid}.timeline-svg{width:100%;height:100%;display:block}.tl-black{fill:var(--eval-black)}.tl-white{fill:var(--eval-white)}.tl-line{fill:none;stroke:var(--accent);stroke-width:2px;vector-effect:non-scaling-stroke}.tl-mid{stroke:#d64f0099;stroke-width:1px;vector-effect:non-scaling-stroke}.tl-cursor{stroke:var(--accent);stroke-width:2px;stroke-dasharray:4 3;vector-effect:non-scaling-stroke}.tl-dots{pointer-events:none;position:absolute;inset:0}.tl-dot{border:2px solid var(--surface);pointer-events:auto;border-radius:50%;width:12px;height:12px;min-height:0;padding:0;position:absolute;transform:translate(-50%,-50%)}.tl-dot:active:not(:disabled){transform:translate(-50%,-50%)}.tl-dot.best,.dot.best{background:var(--best)}.best-mark{background:var(--best);vertical-align:middle;border-radius:50%;width:7px;height:7px;margin:0 2px 0 -9px;display:inline-block}.tl-dot.inaccuracy,.dot.inaccuracy{background:var(--inaccuracy)}.tl-dot.mistake,.dot.mistake{background:var(--mistake)}.tl-dot.blunder,.dot.blunder{background:var(--blunder)}.legend{color:var(--muted);gap:12px;margin-top:8px;font-size:12px;display:flex}.legend span{align-items:center;gap:5px;display:inline-flex}.dot{border-radius:50%;width:9px;height:9px;display:inline-block}.bookmarks{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.bookmarks li{gap:6px;display:flex}.bookmarks .go{text-align:left;flex:1;align-items:center;gap:8px;display:flex}.bookmarks .go svg{width:16px;height:16px;color:var(--accent);fill:currentColor}.bookmarks .go.current{border-color:var(--accent);background:var(--accent-soft)}.bookmarks .small{width:44px;padding:0}.sheet{padding:0 20px calc(20px + env(safe-area-inset-bottom));background:var(--surface);color:var(--fg);overscroll-behavior:contain;width:100%;max-width:100%;max-height:88dvh;box-shadow:var(--shadow);border:none;border-radius:18px 18px 0 0;margin:auto 0 0;overflow-y:auto}.sheet[open]{animation:.22s ease-out slide-up}.sheet::backdrop{background:#00000073}@keyframes slide-up{0%{transform:translateY(100%)}}@media (width>=640px){.sheet{border-radius:18px;max-width:480px;margin:auto}.sheet[open]{animation:.18s ease-out fade}}.sheet-head{background:var(--surface);z-index:1;justify-content:space-between;align-items:center;padding-top:12px;display:flex;position:sticky;top:0}.sheet-head h2{margin:0;font-size:19px}.sheet-section+.sheet-section{border-top:1px solid var(--border)}.sheet-section{padding:16px 0 4px}.sheet-section h3{text-transform:uppercase;letter-spacing:.6px;color:var(--muted);margin:0 0 4px;font-size:13px;font-weight:700}.sheet-section>.segmented{margin:10px 0 12px}.sheet-section .field{margin:12px 0}.segmented button .flag{width:22px;height:15px;box-shadow:0 0 0 1px var(--border);vertical-align:middle;border-radius:2px;margin-right:8px}.field{flex-direction:column;gap:8px;margin:18px 0;display:flex}.field>span,.field>summary{cursor:pointer;font-weight:600}.field.inline{flex-direction:row;align-items:center}.field small{color:var(--muted)}.field input[type=range]{width:100%;height:32px;accent-color:var(--accent)}.field input[type=checkbox]{width:22px;height:22px;accent-color:var(--accent)}.field input[type=text],.field textarea{border:1px solid var(--border);background:var(--bg);border-radius:10px;width:100%;padding:10px;font-size:16px}.row{flex-wrap:wrap;gap:8px;display:flex}.row>*{flex:1}.segmented{background:var(--surface-2);border-radius:12px;gap:4px;padding:4px;display:flex}.segmented button{background:0 0;border-color:#0000;flex:1;padding:0 6px}.segmented button[aria-pressed=true]{background:var(--surface);border-color:var(--border);box-shadow:var(--shadow);font-weight:700}.color-tiles{grid-template-columns:repeat(3,1fr);gap:8px;display:grid}.color-tiles button{border-width:2px;flex-direction:column;align-items:center;gap:4px;padding:10px 6px 8px;display:flex}.color-tiles button[aria-pressed=true]{border-color:var(--accent);background:var(--accent-soft);font-weight:700}.color-tiles .piece{background:var(--captured-bg);border-radius:10px;width:48px;height:48px;position:relative}.color-tiles .piece img{width:calc(100% - 6px);height:calc(100% - 6px);position:absolute;inset:3px}.color-tiles .piece.half img:first-child{clip-path:inset(0 50% 0 0)}.color-tiles .piece.half img:last-child{clip-path:inset(0 0 0 50%)}.swatches button[aria-pressed=true],.piece-sets button[aria-pressed=true]{outline:3px solid var(--accent);outline-offset:2px}.swatches,.piece-sets{grid-template-columns:repeat(auto-fill,minmax(60px,1fr));gap:10px;display:grid}.swatches button{aspect-ratio:1;background:repeating-conic-gradient(var(--d) 0 25%, var(--l) 0 50%) 0 0 / 50% 50%;padding:0}.piece-sets button{aspect-ratio:1;background:repeating-conic-gradient(var(--sq-dark) 0 25%, var(--sq-light) 0 50%) 0 0 / 100% 100%;padding:4px}.piece-sets img{width:100%;height:100%}.file-btn{border:1px solid var(--border);cursor:pointer;border-radius:10px;place-items:center;min-height:44px;display:grid}.games-list{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.games-list li{gap:6px;display:flex}.games-list .open{text-align:left;flex-direction:column;flex:1;justify-content:center;padding:6px 12px;display:flex}.games-list .open small{color:var(--muted)}.games-list li.current .open{border-color:var(--accent);background:var(--accent-soft)}.games-list li button:not(.open){width:48px;padding:0}#settings-intro{margin-top:16px}.shortcuts{grid-template-columns:auto 1fr;align-items:center;gap:10px 16px;margin:16px 0 4px;display:grid}.shortcuts dt{text-align:right}.shortcuts dd{margin:0}.promotion{z-index:20;background:#00000073;place-items:center;display:grid;position:fixed;inset:0}.promotion .choices{background:var(--surface);border-radius:16px;grid-template-columns:repeat(4,72px);gap:8px;padding:12px;display:grid}.promotion button{height:72px;padding:6px}.promotion img{width:100%;height:100%}.toast{left:50%;bottom:calc(20px + env(safe-area-inset-bottom));background:var(--fg);max-width:calc(100vw - 32px);min-height:44px;color:var(--bg);z-index:30;border-radius:12px;align-items:center;gap:12px;padding:6px 6px 6px 16px;animation:.2s ease-out fade;display:flex;position:fixed;transform:translate(-50%);box-shadow:0 6px 24px #0000004d}.toast>span:last-child{padding-right:10px}.toast button{color:inherit;background:0 0;border-color:currentColor;min-height:34px}.footer{padding:16px var(--gutter) calc(16px + env(safe-area-inset-bottom));color:var(--muted);flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;font-size:13px;display:flex}.footer a{color:inherit;align-items:center;gap:6px;display:inline-flex}.footer a:hover{color:var(--fg)}.footer svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;width:16px;height:16px}.welcome-tagline{color:var(--muted);margin:0 0 16px;font-size:16px}.welcome-features{gap:14px;margin:0 0 20px;padding:0;list-style:none;display:grid}.welcome-features li{align-items:center;gap:14px;display:flex}.welcome-features svg{background:color-mix(in srgb, var(--accent) 14%, transparent);fill:none;width:40px;height:40px;stroke:var(--accent);stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;border-radius:12px;flex:none;padding:9px}.welcome-features span{gap:2px;display:grid}.welcome-features small{color:var(--muted)}.welcome-foot{color:var(--muted);flex-wrap:wrap;justify-content:center;align-items:center;gap:6px;margin-top:14px;font-size:12px;display:flex}.welcome-foot a{color:inherit;align-items:center;gap:4px;display:inline-flex}.welcome-foot svg,.install-icon{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;width:14px;height:14px}.install-intro{color:var(--muted);margin:0 0 14px}.install-steps{counter-reset:step;gap:12px;margin:16px 0;padding:0;list-style:none;display:grid}.install-steps li{counter-increment:step;align-items:center;gap:12px;display:flex}.install-steps li:before{content:counter(step);background:var(--accent);width:28px;height:28px;color:var(--accent-fg);border-radius:50%;flex:none;place-items:center;font-size:14px;font-weight:700;display:grid}.install-icon{width:18px;height:18px;color:var(--accent)}.tour-target{outline:3px solid var(--accent);outline-offset:3px;border-radius:6px;animation:1.6s ease-in-out infinite tour-pulse}@keyframes tour-pulse{50%{outline-offset:6px}}.tour{z-index:1000;background:var(--surface);width:min(300px,100vw - 16px);color:var(--fg);border:1px solid var(--accent);border-radius:12px;padding:12px 14px;font-size:14px;position:fixed;top:0;left:0;box-shadow:0 6px 24px #0000002e}.tour p{margin:0 0 10px;line-height:1.4}.tour footer{align-items:center;gap:8px;display:flex}.tour-count{color:var(--muted);margin-right:auto;font-size:12px}@media (prefers-reduced-motion:reduce){.tour-target{animation:none}}
