:root{--ink: #261c15;--paper: #fffbf2;--card-bg: #ffffff}*{box-sizing:border-box}html,body,#root{margin:0;padding:0;min-height:100%;background:var(--paper);color:var(--ink);font-family:ui-rounded,SF Pro Rounded,system-ui,-apple-system,sans-serif}.color-swatch-row{display:grid;grid-template-columns:repeat(8,1fr);gap:5px}.color-swatch{height:24px;border:2px solid #261c15;border-radius:9999px;cursor:pointer;position:relative}.color-swatch.active{box-shadow:0 0 0 2px #fff,0 0 0 4px #261c15}.pixel-canvas{image-rendering:pixelated;image-rendering:crisp-edges}.dither-bg{background-color:#fff;background-image:linear-gradient(45deg,#000000 25%,transparent 25%),linear-gradient(-45deg,#000000 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#000000 75%),linear-gradient(-45deg,transparent 75%,#000000 75%);background-size:4px 4px;background-position:0 0,0 2px,2px -2px,-2px 0}.app-shell{max-width:1040px;margin:0 auto;padding:16px;display:flex;flex-direction:column;gap:14px}.header-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;border:2px solid #000000;border-radius:10px;padding:10px 14px;background:#fff}.header-title{margin:0;font-size:20px;font-weight:900;letter-spacing:-.02em}.header-sub{font-size:12px;font-weight:700}.stage-frame{border:3px solid #000000;border-radius:10px;overflow:hidden;background:#fff}.stage-canvas{display:block;width:100%;aspect-ratio:16 / 9;cursor:crosshair;touch-action:none}.controls-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:12px}.retro-card{border:2px solid #000000;border-radius:10px;padding:12px;background:#fff;display:flex;flex-direction:column;gap:10px}.retro-card-dashed{border-style:dashed}.card-title{margin:0;font-size:13px;font-weight:900;display:flex;align-items:center;justify-content:space-between;border-bottom:2px dashed #000000;padding-bottom:6px}.row{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.btn{border:2px solid #000000;border-radius:6px;background:#fff;color:#000;padding:6px 10px;font-family:inherit;font-size:12px;font-weight:800;cursor:pointer}.btn:hover:not(:disabled){background:#000;color:#fff}.btn-solid{background:#000;color:#fff}.btn-solid:hover:not(:disabled){background:#fff;color:#000}.btn:disabled{cursor:not-allowed;border-style:dashed}.text-input{border:2px solid #000000;border-radius:6px;padding:6px 8px;font-family:inherit;font-size:13px;font-weight:800;background:#fff;color:#000;outline:none}.avatar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}.acc-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:4px}.picker-btn{border:2px solid #000000;border-radius:6px;padding:3px;background:#fff;color:#000;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;font-family:inherit;font-size:11px;font-weight:800}.picker-btn.active{background:#000;color:#fff}.energy-segs{display:grid;grid-template-columns:repeat(10,1fr);gap:2px;height:16px;border:2px solid #000000;padding:2px;flex:1}.energy-seg{height:100%;background:#fff}.energy-seg.filled{background:#000}.joystick-deck{position:relative;display:grid;grid-template-columns:1fr 1fr;height:168px;border:3px solid #261c15;border-radius:14px;overflow:hidden;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;overscroll-behavior:none}.deck-star{position:absolute;width:16px;height:16px;pointer-events:none;z-index:2}.deck-star-tl{top:6px;left:8px}.deck-star-tr{top:6px;right:8px}.deck-star-bl{bottom:6px;left:8px}.deck-star-br{bottom:6px;right:8px}.joystick-zone{position:relative;border-right:3px dotted #261c15;display:flex;align-items:center;justify-content:center;cursor:grab;padding:6px}.joystick-zone:active{cursor:grabbing}.joystick-svg,.dash-svg{width:100%;height:100%;max-width:152px;max-height:152px;display:block}.dash-circle-zone{border:none;background:transparent;padding:6px;cursor:pointer;display:flex;align-items:center;justify-content:center}.bw-flash{animation:bwInvertFlash .22s steps(2,end) 2}@keyframes bwInvertFlash{0%,to{filter:invert(0)}50%{filter:invert(1)}}.controller-page{min-height:100dvh;padding:18px;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;overscroll-behavior:none;background:#fff7e8;color:#261c15}.controller-page input,.controller-page select{user-select:text;-webkit-user-select:text}.controller-page label{display:grid;gap:6px;font-weight:800;margin:10px 0}.controller-page select,.controller-page input[type=number]{min-height:44px;padding:8px;border:2px solid #261c15;border-radius:9px;background:#fff;font:inherit}.join-card{max-width:640px;margin:0 auto}.join-card h2{font-size:16px;margin:18px 0 8px}.join-preview{display:flex;align-items:center;gap:14px;border:3px solid;border-radius:14px;padding:8px;margin:16px 0}.picker-grid{display:flex;flex-wrap:wrap;gap:8px}.picker-choice{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:68px;min-height:52px;border:2px solid #261c15;border-radius:10px;background:#fff;color:inherit;font:inherit;font-size:12px;font-weight:800;cursor:pointer}.picker-choice.active{outline:3px solid #ff5c8a;background:#fff0f4}.color-dot{width:25px;height:25px;border:2px solid #261c15;border-radius:50%}.join-submit{width:100%;min-height:56px;margin-top:20px}.controller-error{color:#c81e46;font-weight:900}.controller-hud{display:flex;align-items:center;gap:12px;flex-wrap:wrap;border:3px solid;border-radius:14px;padding:8px 14px;background:#fff;font-size:20px}.controller-hud small{margin-left:auto;font-size:12px}.runner-active{height:calc(100dvh - 100px);display:flex;flex-direction:column;text-align:center}.runner-active .joystick-deck{flex:1;min-height:250px}.runner-status{max-width:540px;margin:20px auto;display:flex;flex-direction:column;align-items:center;text-align:center}.spectator-actions{width:100%;display:grid;gap:14px}.spectator-actions .picker-grid{justify-content:center}.spectator-actions .btn{min-height:55px;font-size:22px}.spectator-actions>.btn{font-size:16px}.offscreen-warning{position:fixed;z-index:4;top:75px;left:0;right:0;padding:12px;color:#fff;background:#e11d48;font-weight:900;text-align:center;animation:warning-pulse .4s infinite alternate}@keyframes warning-pulse{to{opacity:.4}}.controller-flash{filter:grayscale(1) invert(1)}.host-page{padding:20px}.host-key-card{max-width:420px}.host-settings{display:grid;gap:4px}.host-settings .btn{min-height:54px}.host-check{display:flex!important;align-items:center}.host-player-list{max-height:330px;overflow:auto}.host-tip,.cheer-banner{background:#facc15;font-weight:900}.host-playing{display:grid;gap:18px}.host-items{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.host-track canvas{cursor:crosshair;touch-action:none}.host-track p{text-align:center;font-weight:800}.joystick-zone .floating-pad-svg{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);pointer-events:none}.fever{color:#e11d48}@media(max-width:680px){.controller-page{padding:8px}.controller-hud{font-size:16px}.runner-active{height:calc(100dvh - 75px)}}
