:root{--bg: #0f1519;--surface: #172027;--surface-hover: #202b33;--border: #2a3741;--text: #eef2f4;--muted: #94a4af;--accent: #f2b544;--accent-text: #2a1b02;--gold: #ffd166;--danger: #ff6b5e;--wood-light: #ecd09f;--wood: #ddb57c;--wood-dark: #b88c55;--line: rgba(92, 60, 26, .28);--hole: #7a5631;--s0: #e5484d;--s0-light: #ff9b9b;--s0-dark: #8c1c22;--s1: #3b82f6;--s1-light: #a3c8ff;--s1-dark: #1b3c8c;--s2: #2fb36b;--s2-light: #94e6b6;--s2-dark: #12663a;--s3: #f5c518;--s3-light: #fff1a3;--s3-dark: #9a7400;--s4: #9b5de5;--s4-light: #d6b9ff;--s4-dark: #55238f;--s5: #ebe8e2;--s5-light: #ffffff;--s5-dark: #9c978d;--radius: 14px;color-scheme:dark}*,*:before,*:after{box-sizing:border-box}html,body{margin:0;background:var(--bg);color:var(--text);font:16px/1.45 system-ui,-apple-system,Segoe UI,Roboto,sans-serif;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}html.playing .pl-info,html.playing .pl-lang-hint{display:none}@media(display-mode:standalone){html .pl-info,html .pl-lang-hint{display:none}}button,select,input{font:inherit;color:inherit}button{cursor:pointer}a{color:inherit}h1,h2,p{margin:0}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}:focus-visible{outline:3px solid var(--gold);outline-offset:2px}.app{max-width:480px;margin:0 auto;height:var(--app-height, 100dvh);display:flex;flex-direction:column}.screen{flex:1;min-height:0;display:flex;flex-direction:column;padding:max(12px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(14px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}.scroll{flex:1;min-height:0;overflow-y:auto;scrollbar-width:none;display:flex;flex-direction:column;gap:10px}.grow{flex:1}.muted{color:var(--muted)}.small{font-size:13px}.link{color:var(--accent);font-weight:600;text-align:center;padding:8px}.topbar{display:flex;align-items:center;gap:8px;min-height:48px}.topbar h1{flex:1;font-size:17px;font-weight:650;text-align:center}.topbar h1 small{display:block;font-size:12px;font-weight:500;color:var(--muted)}.topbar-actions{min-width:44px}.icon-btn{width:44px;height:44px;flex:none;border-radius:12px;border:1px solid var(--border);background:var(--surface);display:grid;place-items:center}.icon-btn svg{width:20px;height:20px}.btn{min-height:52px;border-radius:var(--radius);border:1px solid var(--border);background:var(--surface);font-weight:600;font-size:16px;padding:0 18px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none}.btn:active{background:var(--surface-hover)}.btn:disabled{opacity:.45;cursor:default}.btn.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-text)}.btn-row{display:flex;gap:10px}.btn-row>*{flex:1}.dock{margin-top:auto;padding-top:12px;display:flex;flex-direction:column;gap:10px}.links{display:flex;justify-content:center}.links a{color:var(--muted);min-height:44px;display:inline-flex;align-items:center;padding:0 12px;font-size:14px;text-decoration:none}.hero{text-align:center;padding:6px 0 2px}.hero h1{margin:8px 0 2px;font-size:30px;letter-spacing:-.02em}.hero p{color:var(--muted);font-size:14px;max-width:320px;margin:0 auto}.logo{width:112px;height:auto;display:block;margin:0 auto}.logo-star{fill:var(--wood);stroke:var(--wood);stroke-width:8;stroke-linejoin:round}.logo-s0{fill:var(--s0)}.logo-s1{fill:var(--s1)}.logo-jump{fill:none;stroke:var(--s0-dark);stroke-width:2;stroke-dasharray:3 3;opacity:.8}.logo-hop{stroke:var(--gold);stroke-width:1.5}.setup{display:flex;flex-direction:column;gap:8px;margin-top:4px}.row-label{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin:6px 2px 0;font-weight:600}.segmented,.kinds{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:4px;padding:4px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius)}.segmented button,.kinds button{min-height:42px;border:0;border-radius:10px;background:transparent;font-size:14px;font-weight:650;color:var(--muted);padding:0 2px}.segmented button.on,.kinds button.on{background:var(--surface-hover);color:var(--text);box-shadow:inset 0 0 0 1px var(--accent)}.segmented button:disabled{opacity:.35;cursor:default}.seat-list{display:flex;flex-direction:column;gap:6px}.seat-row{display:flex;align-items:center;gap:8px}.seat-name{width:66px;flex:none;display:flex;align-items:center;gap:6px;font-size:14px;font-weight:600}.seat-name .chip{width:18px;height:18px}.kinds{flex:1;min-width:0;padding:3px}.kinds button{min-height:38px;font-size:12.5px}.hint{font-size:13px;color:var(--gold);text-align:center}.seats{display:grid;grid-template-columns:repeat(2,1fr);gap:6px;margin:4px 0 6px}.seats.n3{grid-template-columns:repeat(3,1fr)}.seats.n4,.seats.n6{grid-template-columns:repeat(var(--cols, 3),1fr)}.seats.n4{--cols: 4}.seats.n6{--cols: 6;gap:4px}.seat{min-width:0;display:flex;align-items:center;gap:8px;padding:7px 9px;border-radius:12px;border:1px solid var(--border);background:var(--surface);transition:border-color .2s,box-shadow .2s}.seat.turn{border-color:var(--seat);box-shadow:0 0 0 1px var(--seat) inset}.seat-text{min-width:0;flex:1}.seat .nm{font-weight:650;font-size:14px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.seat .sub{color:var(--muted);font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.seat .home{display:flex;align-items:center;gap:5px;margin-top:3px}.seat .bar{flex:1;height:4px;border-radius:2px;background:var(--surface-hover);overflow:hidden}.seat .bar i{display:block;height:100%;background:var(--seat);transition:width .4s}.seat .count{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}.seats.n4 .seat,.seats.n6 .seat{flex-direction:column;gap:3px;padding:5px 4px;text-align:center}.seats.n4 .seat-text,.seats.n6 .seat-text{width:100%}.seats.n4 .seat .chip,.seats.n6 .seat .chip{width:16px;height:16px}.seats.n4 .sub,.seats.n6 .sub{font-size:10.5px}.seats.n4 .home,.seats.n6 .home{margin-top:2px}.seats.n6 .nm{font-size:12px}.seats.n6 .sub,.seats.n6 .bar{display:none}.seats.n6 .home{justify-content:center}.s0{--seat: var(--s0)}.s1{--seat: var(--s1)}.s2{--seat: var(--s2)}.s3{--seat: var(--s3)}.s4{--seat: var(--s4)}.s5{--seat: var(--s5)}.chip{width:24px;height:24px;flex:none;border-radius:50%;display:inline-block;vertical-align:middle;background:var(--seat);box-shadow:inset -3px -4px 6px #00000059,inset 3px 3px 5px #ffffff59}.board-wrap{flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}.movebar{display:flex;justify-content:space-between;width:100%;font-size:12.5px;color:var(--muted);padding:0 4px}.board-box{flex:1;min-height:0;width:100%;max-height:560px;container-type:size;display:grid;place-items:center}.board{width:min(100cqw,89cqh);height:auto;aspect-ratio:13.8 / 15.5;display:block;overflow:visible;user-select:none;-webkit-user-select:none;touch-action:manipulation}.board .star{filter:drop-shadow(0 8px 18px rgba(0,0,0,.5))}.board .star polygon{fill:var(--wood);stroke:var(--wood);stroke-width:56;stroke-linejoin:round}.board .home{fill:var(--seat);stroke:var(--seat);stroke-width:34;stroke-linejoin:round;opacity:.3}.board .goal{fill:var(--gold);stroke:var(--gold);stroke-width:34;stroke-linejoin:round;opacity:.16;pointer-events:none;animation:goal 2.4s ease-in-out infinite}@keyframes goal{50%{opacity:.3}}.board .grid{fill:none;stroke:var(--line);stroke-width:2}.board .hole{fill:var(--hole);stroke:#ffffff40;stroke-width:1}.board .hit{fill:transparent;outline:none}.board .hit.active{cursor:pointer}.board .hit:focus-visible{stroke:var(--gold);stroke-width:3}.board .target{fill:var(--gold);stroke:#5c3c1ab3;stroke-width:2;pointer-events:none;transform-box:fill-box;transform-origin:center;animation:target 1.1s ease-in-out infinite}@keyframes target{50%{transform:scale(1.35);opacity:.7}}.board .last-path{fill:none;stroke:#3c260e8c;stroke-width:3;stroke-dasharray:5 6;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.board .last-from{fill:none;stroke:#3c260eb3;stroke-width:2.5;stroke-dasharray:5 5;pointer-events:none}.board .last-to{fill:#fff;opacity:.9;pointer-events:none}.peg{pointer-events:none;transition:transform .24s cubic-bezier(.4,0,.3,1)}.peg .shadow{fill:#00000052}.peg .body{stroke-width:1.5;stroke:var(--seat-dark, rgba(0, 0, 0, .4))}.peg.s0 .body{fill:url(#peg-0)}.peg.s1 .body{fill:url(#peg-1)}.peg.s2 .body{fill:url(#peg-2)}.peg.s3 .body{fill:url(#peg-3)}.peg.s4 .body{fill:url(#peg-4)}.peg.s5 .body{fill:url(#peg-5)}.peg .shine{fill:#fff;opacity:.55}.peg.movable .body{stroke:var(--gold);stroke-width:2}.peg.selected .body{stroke:var(--gold);stroke-width:4.5}.peg.selected>g{animation:lift .18s ease-out both}@keyframes lift{to{transform:translateY(-4px) scale(1.08)}}.peg .hop{animation:hop .26s ease-in-out both}@keyframes hop{50%{transform:translateY(-7px) scale(1.28)}}@media(prefers-reduced-motion:reduce){.peg,.peg *,.board .goal,.board .target{animation:none!important;transition:none!important}}.status{text-align:center;min-height:40px;display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:15px}.status b{color:var(--text)}.think{display:inline-flex;gap:4px;margin-left:6px}.think i{width:6px;height:6px;border-radius:50%;background:var(--accent);animation:blink 1s infinite}.think i:nth-child(2){animation-delay:.15s}.think i:nth-child(3){animation-delay:.3s}@keyframes blink{50%{opacity:.2}}.sheet{margin-top:auto;background:var(--surface);border:1px solid var(--border);border-radius:20px;padding:16px 16px 14px;display:flex;flex-direction:column;gap:12px;box-shadow:0 -10px 30px #00000059}.sheet h2{font-size:26px;text-align:center}.sheet .meta{text-align:center;color:var(--muted);font-size:14px;margin-top:-8px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.stats div{background:var(--bg);border-radius:12px;padding:10px 6px;text-align:center}.stats b{display:block;font-size:20px}.stats span{font-size:12px;color:var(--muted)}.stats .series{display:flex;justify-content:center;gap:6px}.stats .series span{font-size:inherit;color:var(--seat)}.play.ended .board-box{max-height:300px}.play.ended .movebar,.play.ended .status{display:none}.prose{gap:12px;line-height:1.55}.prose h2{font-size:17px;margin-top:8px}.prose ul{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:6px}.label{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin:12px 2px 0;font-weight:600}.setting{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px;padding:8px 12px;border-radius:12px;background:var(--surface);border:1px solid var(--border)}.setting small{display:block;color:var(--muted);font-size:12px;margin-top:2px}.setting small .chip{width:20px;height:20px}.setting input[type=checkbox]{width:22px;height:22px;accent-color:var(--accent);flex:none}.setting select{padding:6px 8px;border-radius:8px;border:1px solid var(--border);background:var(--surface-hover);max-width:50%}.consent{position:fixed;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px));z-index:10;max-width:456px;margin:0 auto;padding:14px;border-radius:14px;background:var(--surface);border:1px solid var(--border);box-shadow:0 12px 30px #0006;font-size:14px}.consent a{color:var(--accent)}.consent .row{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}@media(max-height:700px){.hero{padding:0}.logo{width:80px}.hero h1{font-size:24px;margin-top:6px}.seats{margin:0 0 4px}.movebar{display:none}}.legal-links{margin:4px 0}.share{position:relative}.share-note{position:absolute;top:calc(100% + 6px);right:0;z-index:21;white-space:nowrap;padding:6px 10px;border-radius:10px;border:1px solid var(--border);background:var(--surface);font-size:13px;box-shadow:0 10px 30px #0006}.share-note:empty{display:none}
