.fence{position:relative}.fence-lit{z-index:-1;pointer-events:none;opacity:0;background:radial-gradient(ellipse 85% 60% at 50% 34%, rgba(var(--light), .34), rgba(var(--light), .1) 55%, transparent 82%);transition:opacity .8s .9s;position:fixed;inset:0}.fence[data-solved=true] .fence-lit{opacity:1}.fence-head{justify-content:space-between;align-items:baseline;display:flex}.fence-head h1{letter-spacing:.04em;color:var(--ice);margin:0;font-size:20px;font-weight:600}.fence-timer{font-variant-numeric:tabular-nums;color:var(--accent)}.fence-sizes{gap:8px;margin-top:8px;display:flex}.fence-sizes button{flex:1}.fence-sizes button[aria-pressed=true]{border-color:var(--accent);color:var(--accent)}.fence-board{touch-action:manipulation;border:1px solid var(--panel-edge);width:100%;max-width:520px;box-shadow:0 14px 40px #000000b3, 0 0 60px rgba(var(--light), .1);background:#0a1016;border-radius:14px;margin:12px auto;display:block}.fence-clue{fill:#cfe6f5;font-variant-numeric:tabular-nums;pointer-events:none;-webkit-user-select:none;user-select:none;font-size:46px;transition:fill .15s}.fence-clue[data-clue-state=met]{fill:#566472}.fence-clue[data-clue-state=over]{fill:#e0675f}.fence-dot{fill:#5e7280;pointer-events:none}.fence-line{stroke:var(--ice);stroke-width:11px;stroke-linecap:round;stroke-dasharray:1;filter:drop-shadow(0 0 4px rgba(var(--light), .7));pointer-events:none;transition:stroke .5s .9s,filter .5s .9s;animation:.12s ease-out fence-draw}.fence-board[data-solved=true] .fence-line{stroke:#fff;filter:drop-shadow(0 0 8px rgba(var(--light), 1))}.fence-x{stroke:#8a4a47;stroke-width:5px;stroke-linecap:round;fill:none;opacity:.85;pointer-events:none}.fence-hit{fill:#0000;pointer-events:all;cursor:pointer}.fence-reveal{fill:none;stroke:#fff;stroke-width:14px;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1 1;filter:drop-shadow(0 0 10px rgba(var(--light), 1)) drop-shadow(0 0 22px rgba(var(--light), .7));pointer-events:none;animation:.9s ease-in-out fence-reveal}.fence-tools{gap:8px;display:flex}.fence-tools button{flex:1}.fence-complete{text-align:center;background:var(--panel);border:1px solid var(--panel-edge);border-radius:10px;margin-top:12px;padding:12px;animation:.45s ease-out 1.4s both fence-panel-in;box-shadow:0 10px 30px #0009}.fence-complete h2{letter-spacing:.2em;color:var(--ice);margin:0 0 6px;font-size:18px;font-weight:600}.fence-complete p{color:var(--muted);margin:0 0 10px}.fence-complete strong{font-variant-numeric:tabular-nums;color:var(--ice);text-shadow:0 0 12px rgba(var(--light), .8);font-size:26px;animation:.25s ease-out 1.7s both fence-stamp;display:inline-block}.fence-actions{justify-content:center;gap:8px;display:flex}@keyframes fence-draw{0%{stroke-dashoffset:1px}}@keyframes fence-reveal{0%{stroke-dashoffset:1px}}@keyframes fence-panel-in{0%{opacity:0;pointer-events:none;transform:translateY(14px)}}@keyframes fence-stamp{0%{opacity:0;transform:scale(1.35)}}@media (prefers-reduced-motion:reduce){.fence-line,.fence-reveal,.fence-complete,.fence-complete strong{animation:none}.fence-line,.fence-lit,.fence-clue{transition:none}}.fence-head-right{align-items:center;gap:10px;display:flex}.fence-head-right .fence-rules-btn{min-height:36px;padding:0 12px;font-size:14px}.fence-hint-count{color:var(--muted);font-size:13px}.fence-hint{stroke:var(--accent);stroke-width:16px;stroke-linecap:round;opacity:0;filter:drop-shadow(0 0 8px #4fd1c5e6)drop-shadow(0 0 18px #4fd1c599);pointer-events:none;animation:1.2s ease-in-out fence-hint-pulse}@keyframes fence-hint-pulse{0%,to{opacity:0}25%,75%{opacity:.95}50%{opacity:.45}}.fence-record-hints{font-size:13px}.rules-backdrop{z-index:10;background:#000000b8;justify-content:center;align-items:flex-end;display:flex;position:fixed;inset:0}.rules-sheet{background:var(--panel);border:1px solid var(--panel-edge);width:100%;max-width:540px;max-height:100%;box-shadow:0 -10px 40px #0009, 0 0 50px rgba(var(--light), .08);border-radius:16px 16px 0 0;padding:18px 16px 16px;animation:.25s ease-out rules-up;overflow-y:auto}.rules-sheet h2{letter-spacing:.2em;color:var(--ice);margin:0 0 10px;font-size:18px;font-weight:600}.rules-list{flex-direction:column;gap:10px;margin:0 0 14px;padding:0;list-style:none;display:flex}.rules-list li{align-items:center;gap:14px;display:flex}.rules-list p{color:var(--text);margin:0;font-size:14px;line-height:1.5}.rules-art{border:1px solid var(--panel-edge);background:#0a1016;border-radius:8px;flex:none;width:64px;height:56px;padding:4px}.rules-art-wide{width:96px}.rules-dot{fill:#6b7f8e}.rules-line,.rules-loop{stroke:var(--ice);stroke-width:3px;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 2px rgba(var(--light), .8))}.rules-loop{fill:none}.rules-x{stroke:#8a4a47;stroke-width:2px;stroke-linecap:round}.rules-clue{fill:#cfe6f5;font-size:13px}.rules-close{border-color:var(--accent);width:100%;color:var(--accent)}@keyframes rules-up{0%{opacity:0;transform:translateY(24px)}}@media (prefers-reduced-motion:reduce){.rules-sheet,.fence-hint{animation:none}.fence-hint{opacity:.9}}:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#07090c;--panel:#0c1218;--panel-edge:#96c8eb2e;--text:#d6e3ee;--muted:#7b8a96;--ice:#e8f4ff;--accent:#4fd1c5;--warn:#c0554f;--light:120, 190, 230}*{box-sizing:border-box}html,body{background:var(--bg);color:var(--text);margin:0;font-family:system-ui,-apple-system,Apple SD Gothic Neo,Noto Sans KR,sans-serif}.app{isolation:isolate;flex-direction:column;min-height:100vh;display:flex;position:relative}.app:before,.app:after{content:"";z-index:-1;pointer-events:none;position:fixed;inset:0}.app:before{background:radial-gradient(ellipse 80% 55% at 50% 34%, rgba(var(--light), .2), rgba(var(--light), .05) 55%, transparent 80%)}.app:after{background:radial-gradient(90% 80% at 50% 40%,#0000 45%,#000c 100%)}.app-main{flex:1;width:100%;max-width:540px;margin:0 auto;padding:16px}.disclaimer{text-align:center;color:var(--muted);padding:12px 16px;font-size:12px}button{font:inherit;color:var(--text);cursor:pointer;background:#0e151c;border:1px solid #96c8eb47;border-radius:8px;min-height:44px;padding:0 16px}button:hover:not(:disabled){border-color:var(--accent)}button:disabled{opacity:.4;cursor:default}button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.lobby h1{letter-spacing:.04em;color:var(--ice);margin:8px 0 20px;font-size:22px;font-weight:600}.lobby-list{margin:0;padding:0;list-style:none}.lobby-game{text-align:left;background:var(--panel);border-color:var(--panel-edge);width:100%;box-shadow:0 8px 30px #0009, 0 0 40px rgba(var(--light), .06);align-items:center;gap:16px;padding:14px 16px;display:flex}.lobby-game-text{flex-direction:column;gap:4px;display:flex}.lobby-game-text strong{color:var(--ice);font-size:17px}.lobby-game-text span{color:var(--muted);font-size:14px}.fence-preview{flex:none;width:72px;height:72px}.fence-preview-dot{fill:#5e7280}.fence-preview-loop{fill:none;stroke:var(--ice);stroke-width:2.4px;stroke-linejoin:round;filter:drop-shadow(0 0 2px rgba(var(--light), .8))}
