:root{color-scheme:dark;--accent:#47caff;--safe-top:0px;--safe-bottom:16px}*{box-sizing:border-box}body{margin:0;color:#e9f3ff;background:radial-gradient(ellipse at 50% 0%,#183348 0,#09131e 60%);font-family:system-ui,-apple-system,sans-serif;padding:var(--safe-top) 0 var(--safe-bottom)}main{max-width:520px;margin:auto;padding:0 16px}header{display:flex;justify-content:space-between;align-items:center;padding:20px 0;border-bottom:1px solid #ffffff0c}.brand{display:flex;gap:10px;align-items:center}.brand-mark{display:grid;place-items:center;width:38px;height:38px;border:1px solid #82d4ff55;border-radius:12px;color:#bceaff;font-size:24px;font-weight:800;background:linear-gradient(145deg,#254e68,#122737);box-shadow:inset 0 1px #ffffff22}.brand strong{display:block;letter-spacing:3px;font-size:13px}.brand div>span{display:block;color:#91acbc;letter-spacing:2px;font-size:9px;margin-top:3px}.live{font-size:10px;letter-spacing:1px;background:#56dcac0d;border:1px solid #56dcac26;color:#91e5c2;padding:7px 10px;border-radius:20px}.stage-heading{display:flex;justify-content:space-between;align-items:center;padding:22px 0 16px}.eyebrow{color:#7f99ac;letter-spacing:1.8px;font-size:9px}h1{font-size:26px;margin:5px 0 0;letter-spacing:-.6px}h1 span{color:var(--accent)}.stage-badge{font-size:9px;letter-spacing:1px;color:#edcd8c;border:1px solid #d9b16e3b;background:#d9b16e09;padding:8px 10px;border-radius:8px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:16px}.stats>div{background:linear-gradient(145deg,#182b3b,#102131);border:1px solid #ffffff0b;padding:12px 15px;border-radius:12px}.stats span{display:block;color:#7f98ab;letter-spacing:1.5px;font-size:9px}.stats b{display:block;font-size:22px;font-variant-numeric:tabular-nums;margin-top:5px}.stats>div:first-child b{color:#eed291}.board-shell{border-radius:22px;background:#101e2b;border:1px solid #ffffff0b;padding:8px;box-shadow:0 18px 45px #0004}.board{padding:8px;background:repeating-linear-gradient(4deg,#7d5634 0px,#8e623d 2px,#bb8d5a 3px,#996941 8px);border:2px solid #d7ad7755;border-radius:17px;box-shadow:inset 0 1px 2px #ffecbb55}.play{position:relative;aspect-ratio:360/470;border-radius:11px;background:radial-gradient(ellipse at 35% 15%,#273a49,#111f2a 70%);overflow:hidden;touch-action:none;box-shadow:inset 0 4px 16px #0009;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}svg{position:absolute;width:100%;height:100%;z-index:2;touch-action:none}.board-watermark{position:absolute;inset:0;display:grid;place-items:center;font-size:36px;font-weight:900;letter-spacing:7px;color:#ffffff03;pointer-events:none}.board-footer{display:flex;justify-content:space-between;align-items:center;padding:12px 5px 4px;gap:6px;font-size:11px;color:#9cb3c4}.cross-label{display:flex;gap:5px;align-items:center}.cross-label i{width:6px;height:6px;border-radius:50%;background:#f6af70;box-shadow:0 0 10px #f6af7055}.cross-label b{color:#f3cd97}#dragHint{font-size:8px;letter-spacing:.9px;color:#728b9d}.hole{fill:#09151e;stroke:#73849270;stroke-width:1.5;transition:stroke .12s,fill .12s}.hole.available{fill:#56cbff15;stroke:#56cbff80;stroke-width:2;animation:breathe 1.4s ease-in-out infinite}.hole.target{fill:#69e6b430;stroke:#a1ffda;stroke-width:3}.hole.invalid{stroke:#ff8179;stroke-width:3}.peg{stroke:#effaff80;stroke-width:1;filter:drop-shadow(1px 3px 2px #000b)}.peg.lifted{filter:drop-shadow(0 8px 5px #0009);stroke:#fff;stroke-width:2}.ropeShadow{fill:none;stroke:#0009;stroke-width:14;stroke-linecap:round;pointer-events:none}.rope{fill:none;stroke-width:10;stroke-linecap:round;cursor:grab}.ropeLight{fill:none;stroke-width:2.2;stroke-dasharray:2 4;stroke-linecap:round;opacity:.8;pointer-events:none}.rope-edge{fill:none;stroke:#fff;stroke-opacity:.12;stroke-width:5;pointer-events:none}.ropeGlow{fill:none;stroke-width:19;opacity:.25;filter:url(#lift-glow);pointer-events:none}.hit{cursor:grab}.dragging,.dragging .hit,.dragging .rope{cursor:grabbing}.cross-marker{fill:#ffc078;stroke:#fff1c6;stroke-width:1.2;opacity:.85;pointer-events:none}.progress-track{height:4px;background:#20303e;border-radius:10px;overflow:hidden;margin:18px 4px 0}.progress-track>div{height:100%;background:linear-gradient(90deg,#4bbeef,#91f6d1);border-radius:10px;width:0;transition:width .3s}.hint{text-align:center;font-size:12px;color:#9db5c6;line-height:1.7;margin:12px 8px 16px;min-height:40px}.actions{display:flex;gap:9px;margin-bottom:22px}button{border:0;cursor:pointer;font:inherit}button:disabled{opacity:.4;cursor:default}.actions button,.modal>button{flex:1;background:linear-gradient(120deg,#42b5e9,#258bc5);color:#071723;border-radius:12px;padding:14px 10px;font-size:12px;font-weight:750;box-shadow:inset 0 1px #ffffff44}.actions .secondary{background:#172c3b;color:#a8c1d2;border:1px solid #ffffff0e;box-shadow:none}.panel{border:1px solid #ffffff0d;border-radius:17px;background:linear-gradient(145deg,#152a3b,#0e1d2b);padding:17px}.panel-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.panel h2{font-size:17px;margin:5px 0;color:#edcf99}.icon-button{color:#a8c1d2;background:#ffffff08;border-radius:10px;padding:8px 12px;font-size:20px}.leader{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #ffffff08}.leader:last-child{border:0}.rank{width:27px;color:#d3bd91;font-weight:800}.person{flex:1;font-size:13px;overflow-wrap:anywhere;min-width:0}.score{color:#87d7fa;font-size:14px;font-weight:800}.empty{font-size:12px;color:#7f99ac;padding:8px 0}.note{text-align:center;font-size:10px;color:#6d8799;line-height:1.8;margin:18px 0}.status{margin:14px 0 0;border:1px solid #4d809650;border-radius:12px;font-size:12px;line-height:1.8;background:#12334470;padding:12px;color:#c8e0ed}.status:empty{display:none}.status button{margin:7px 0 0 8px;padding:8px;border-radius:7px;background:#28526a;color:white}a{color:#80d7ff}.overlay{position:fixed;inset:0;z-index:10;display:none;align-items:center;justify-content:center;background:#030b15c9;backdrop-filter:blur(8px);padding:20px;overflow:auto}.modal{max-width:380px;width:100%;max-height:90dvh;overflow:auto;padding:26px 22px;background:radial-gradient(ellipse at top,#264358,#102332 65%);border:1px solid #80b8d144;border-radius:24px;text-align:center;box-shadow:0 30px 80px #0008;animation:modal-in .32s ease-out}.victory-mark{font-size:40px;color:#e8ca8c;line-height:1;text-shadow:0 0 40px #f2bd6570}.stars{font-size:28px;letter-spacing:7px;color:#f7d388;margin:12px 0;text-shadow:0 3px 18px #f7c66b66}.stars .dim{color:#ffffff18;text-shadow:none}.modal h2{font-size:20px;margin:12px 0;color:#f5dba7}.modal>p{font-size:13px;color:#a3bfce;line-height:1.6}.result-gain{font-size:25px;font-weight:800;color:#90edc8;margin:16px 0 22px}.modal label{display:block;font-size:12px;color:#e1edf5;text-align:left}.modal label span{color:#8ea8ba}.modal input{width:100%;padding:13px;background:#0a1a26;border:1px solid #557e9455;color:white;border-radius:10px;font-size:16px;margin:9px 0 2px}.modal .privacy-note{font-size:10px;color:#7f9bad}.modal #nameError{color:#ffb6a6;font-size:12px}.modal>button{width:100%;margin-top:8px}button:focus-visible,input:focus-visible,.hit:focus-visible{outline:2px solid #ffe4a9;outline-offset:3px}#confetti{position:absolute;inset:0;z-index:3;pointer-events:none;overflow:hidden}.confetti{position:absolute;width:6px;height:12px;border-radius:2px;animation:confetti 1.3s ease-out forwards}.solved-board{animation:board-win .7s ease-out}.settling .peg{animation:snap .23s ease-out}@keyframes breathe{50%{stroke-opacity:.45}}@keyframes snap{50%{stroke-width:4}}@keyframes board-win{30%{box-shadow:inset 0 0 35px #8affcd55}}@keyframes modal-in{from{opacity:0;transform:translateY(18px) scale(.96)}to{opacity:1;transform:none}}@keyframes confetti{from{transform:translateY(-15px) rotate(0);opacity:1}to{transform:translateY(480px) rotate(540deg);opacity:0}}@media(max-width:350px){main{padding:0 10px}.stats>div{padding:10px}.board-footer{font-size:10px}#dragHint{font-size:7px}.stage-badge{font-size:8px;padding:7px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}.confetti{display:none}}
