:root{--bg: #0b0f19;--panel: #141a2a;--text: #e5e7eb;--muted: #94a3b8;--accent: #22c55e;--accent-2: #ef4444;--btn-text: #052e16;--bg-grad1: #0f1629;--surface: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, 0));--border: rgba(255, 255, 255, .08);--border-strong: rgba(255, 255, 255, .12);--nav-bg: rgba(11, 15, 25, .7);--nav-current-bg: rgba(255, 255, 255, .08);--control-bg: rgba(255, 255, 255, .06);--icon-bg: rgba(255, 255, 255, .06);--icon-bg-hover: rgba(255, 255, 255, .1);--icon-border: rgba(255, 255, 255, .08);--icon-border-hover: rgba(255, 255, 255, .16)}[data-theme=light]{--bg: #ffffff;--panel: #f7fafc;--text: #0f172a;--muted: #475569;--accent: #16a34a;--accent-2: #dc2626;--btn-text: #052e16;--bg-grad1: #f2f7ff;--surface: linear-gradient(180deg, rgba(15, 23, 42, .02), rgba(15, 23, 42, 0));--border: rgba(15, 23, 42, .12);--border-strong: rgba(15, 23, 42, .2);--nav-bg: rgba(255, 255, 255, .8);--nav-current-bg: rgba(15, 23, 42, .08);--control-bg: rgba(15, 23, 42, .06);--icon-bg: rgba(15, 23, 42, .06);--icon-bg-hover: rgba(15, 23, 42, .1);--icon-border: rgba(15, 23, 42, .12);--icon-border-hover: rgba(15, 23, 42, .2)}[data-theme=alt]{--bg: #0a0a12;--panel: #12121e;--text: #e6e9ff;--muted: #a3a9c7;--accent: #7c3aed;--accent-2: #22d3ee;--btn-text: #0b0f19;--bg-grad1: #15152a;--surface: linear-gradient(180deg, rgba(230, 233, 255, .06), rgba(230, 233, 255, 0));--border: rgba(230, 233, 255, .16);--border-strong: rgba(230, 233, 255, .24);--nav-bg: rgba(10, 10, 18, .76);--nav-current-bg: rgba(230, 233, 255, .1);--control-bg: rgba(230, 233, 255, .08);--icon-bg: rgba(230, 233, 255, .08);--icon-bg-hover: rgba(230, 233, 255, .14);--icon-border: rgba(230, 233, 255, .16);--icon-border-hover: rgba(230, 233, 255, .24)}*{box-sizing:border-box}html,body,#root{min-height:100%}html{overflow-y:scroll}html,body{overflow-x:hidden}body{margin:0;font-family:ui-sans-serif,system-ui,Segoe UI,Roboto,Helvetica,Arial;background:radial-gradient(1200px 600px at 20% -10%,var(--bg-grad1) 0%,var(--bg) 60%);overflow-x:hidden;overscroll-behavior-x:contain;color:var(--text)}a{color:var(--accent);text-decoration:none}h1{font-size:clamp(1.6rem,1.2rem + 2vw,2.4rem)}h2{font-size:clamp(1.2rem,1rem + 1vw,1.6rem)}p,li{font-size:clamp(.95rem,.9rem + .3vw,1.05rem)}.skip-link{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}.skip-link:focus{left:1rem;top:1rem;width:auto;height:auto;background:var(--accent);color:#052e16;padding:.4rem .6rem;border-radius:6px;z-index:999}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.back-to-top{position:fixed;right:14px;bottom:calc(14px + env(safe-area-inset-bottom,0px));background:var(--icon-bg);color:var(--text);border:1px solid var(--icon-border);border-radius:10px;width:44px;height:44px;display:grid;place-items:center;cursor:pointer;z-index:30}.back-to-top:hover{background:var(--icon-bg-hover);border-color:var(--icon-border-hover)}.container{max-width:min(1100px,100vw);margin:0 auto;padding:clamp(.9rem,1.5vw,1.25rem)}:root{--nav-h: 56px}body{padding-top:var(--nav-h)}section[id]{scroll-margin-top:var(--nav-h)}.grid{display:grid;grid-template-columns:1fr;gap:1rem}@media (min-width: 900px){.grid-2{grid-template-columns:1.2fr .8fr}.grid-3{grid-template-columns:repeat(3,1fr)}}.card{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:1rem;box-shadow:0 10px 30px #00000040;color:var(--text)}.card{transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}.card:hover{transform:translateY(-2px);box-shadow:0 14px 34px #00000052;border-color:var(--border-strong)}.nav{position:fixed;top:0;left:0;right:0;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:var(--bg);border-bottom:1px solid var(--border);z-index:100}@media (max-width: 700px){.nav{background:var(--bg)}}.nav-inner{display:flex;align-items:center;justify-content:space-between}.nav-links{display:flex;gap:.25rem;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;scroll-snap-type:x proximity}.nav-links.has-overflow{-webkit-mask-image:linear-gradient(to right,transparent 0,black 16px,black calc(100% - 16px),transparent 100%);mask-image:linear-gradient(to right,transparent 0,black 16px,black calc(100% - 16px),transparent 100%)}.nav-links::-webkit-scrollbar{display:none}.nav a{color:var(--text);opacity:.9;margin-left:.75rem;padding:.25rem .35rem;border-radius:6px;white-space:nowrap;scroll-snap-align:center}.nav a[aria-current=page]{background:var(--nav-current-bg)}.brand{font-weight:700;letter-spacing:.2px}.section-title{margin:0 0 .5rem;font-size:1.25rem;color:var(--text)}.muted{color:var(--muted)}.btn{background:var(--accent);color:var(--btn-text);border:none;padding:.6rem 1rem;border-radius:8px;font-weight:600;cursor:pointer}.btn{transition:transform .12s ease,filter .12s ease}.btn:hover{transform:translateY(-1px)}.btn:disabled{opacity:.6;cursor:not-allowed}.snake-wrap{display:grid;place-items:center}.dpad{display:none;gap:8px;margin-top:.75rem}.dpad-btn{background:var(--control-bg);color:var(--text);border:1px solid var(--border);border-radius:8px;padding:.4rem .8rem;font-size:1.1rem;touch-action:manipulation}.dpad-btn:active{transform:translateY(1px)}@media (hover: none) and (pointer: coarse){.dpad{display:grid}}.show-dpad .dpad{display:grid}.snake-active{border-color:var(--accent)!important}.snake-wrap canvas:focus-visible{outline:none}.icon-link{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:8px;color:var(--text);background:var(--icon-bg);border:1px solid var(--icon-border);transition:transform .12s ease,background .12s ease,border-color .12s ease}.icon-link:hover{transform:translateY(-1px);background:var(--icon-bg-hover);border-color:var(--icon-border-hover)}.reveal{opacity:0;transform:translateY(10px);transition:opacity .4s ease,transform .4s ease}.reveal.reveal-in{opacity:1;transform:none}@media (prefers-reduced-motion: reduce){.reveal{opacity:1;transform:none}.card,.btn,.icon-link{transition:none!important;transform:none!important}}.edge-btn{position:fixed;top:50%;transform:translateY(-50%);background:var(--icon-bg);color:var(--text);border:1px solid var(--icon-border);border-radius:10px;width:40px;height:40px;display:grid;place-items:center;cursor:pointer;opacity:.85;z-index:20}.edge-hide{opacity:0;pointer-events:none}.edge-btn:hover{background:var(--icon-bg-hover);border-color:var(--icon-border-hover)}.edge-btn:disabled{opacity:.4;cursor:default}.edge-left{left:10px}.edge-right{right:10px}.back-to-top{right:12px}@media (max-width: 700px){.back-to-top{bottom:calc(16px + env(safe-area-inset-bottom,0px))}}@media (max-width: 700px){.edge-btn,.back-to-top{width:48px;height:48px}}input,textarea,select{font-size:16px}@supports (height: 100dvh){#contact.card{min-height:60dvh}}@supports (height: 100dvh){body{padding-top:calc(var(--nav-h) + env(safe-area-inset-top,0px))}}.snake-toolbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center;justify-content:flex-start;width:100%;position:sticky;top:0;z-index:10;padding:6px 8px;margin-bottom:6px;background:color-mix(in oklab,var(--bg),transparent 10%);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);border-bottom:1px solid var(--border);flex-direction:column}.snake-toolbar .toolbar-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;width:100%}.snake-toolbar .toolbar-row+.toolbar-row{margin-top:6px}.snake-layout{display:grid;grid-template-columns:1fr minmax(320px,380px);gap:12px;align-items:start;width:100%}@media (max-width: 900px){.snake-layout{grid-template-columns:1fr}}.controls-group,.mp-group{display:grid;gap:8px}.controls-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.btn--wide{min-width:120px}.snake-toolbar .group-label{margin-left:8px}.snake-toolbar .btn[data-active]{opacity:1;background:var(--accent);color:var(--btn-text);border:1px solid var(--border)}.snake-toolbar .btn:not([data-active]){opacity:.7;background:var(--control-bg);color:var(--text);border:1px solid var(--border)}.snake-toolbar .btn--stable{min-width:96px}.snake-toolbar .vs-inline{flex-wrap:wrap}.snake-grid{display:grid;gap:12px;align-items:start;justify-items:center;touch-action:none}.snake-grid[data-versus]{grid-template-columns:1fr}.snake-grid:not([data-versus]){grid-template-columns:1fr}.snake-canvas{margin-top:1rem;border:2px solid var(--border);border-radius:8px;outline:none;touch-action:none}.snake-canvas:focus,.snake-canvas:focus-visible{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in oklab,var(--accent),transparent 70%)}.snake-canvas--opp{border-style:dashed;opacity:.8}.snake-hud{display:flex;gap:12px;align-items:center;margin-top:8px}.snake-hud .hud-paused{min-width:6ch}.snake-canvas-wrap{position:relative;overscroll-behavior:contain}.snake-fab{position:absolute;top:8px;right:8px;z-index:2;padding:4px 10px;opacity:.9}.snake-fab--left,.snake-joystick,.snake-joystick .ring,.snake-joystick .knob{display:none}.snake-hint{position:absolute;left:50%;bottom:8px;transform:translate(-50%);padding:4px 8px;border-radius:999px;font-size:12px;line-height:1;background:color-mix(in oklab,var(--bg),transparent 10%);border:1px solid var(--border);color:var(--text-muted);opacity:0;transition:opacity .25s ease;pointer-events:none;z-index:3}.snake-hint[data-show]{opacity:1}.snake-touch,.snake-touch .row{display:none}.snake-status{display:flex;gap:16px;align-items:center;justify-content:center;margin:8px 0;flex-wrap:wrap}.snake-touch button{display:none}.snake-tabs{display:flex;gap:8px;align-items:center;border-bottom:1px solid var(--border);margin-top:8px}.snake-tabs .tab{appearance:none;background:transparent;border:none;color:var(--text-muted);padding:8px 10px;cursor:pointer;border-bottom:2px solid transparent;font-weight:500}.snake-tabs .tab:hover{color:var(--text)}.snake-tabs .tab[data-active]{color:var(--text);border-bottom-color:var(--accent)}@media (max-width: 640px){.snake-toolbar{position:static;gap:6px;padding:6px;margin-bottom:4px}.snake-toolbar .group-label{display:none}.snake-toolbar .btn--stable{min-width:80px}.snake-toolbar .vs-inline{display:grid!important;grid-template-columns:1fr 1fr;gap:6px;width:100%}.snake-toolbar .vs-inline input{grid-column:1 / -1;min-width:0;width:100%}.snake-toolbar .vs-inline .btn{min-width:auto}.snake-toolbar .vs-inline .vs-metric{display:none}.snake-grid[data-versus]{grid-template-columns:1fr;gap:8px}.snake-canvas{margin-top:.5rem}.snake-canvas--opp,.previews-section{display:none}}
