@media (max-width: 600px){body>main{padding-left:max(10px,env(safe-area-inset-left,0px));padding-right:max(10px,env(safe-area-inset-right,0px))}.board{gap:3px}.board .cell .s{display:none}.board .cell .n{top:2px;left:3px;font-size:9px}.board .cell svg{width:46%;margin-top:8px}}:root{--bg: #f4efe4;--fg: #1f2a2b;--muted: #5f635c;--line: #cfc6b2;--cell: #fbf8f1;--sp: #efe1bf;--p1: #0072b2;--p2: #e69f00;--accent: #0072b2;--on-accent: #ffffff;color-scheme:light}@media (prefers-color-scheme: dark){:root:not([data-theme=light]){--bg: #17201f;--fg: #ece6d8;--muted: #9aa096;--line: #3a4544;--cell: #1d2827;--sp: #2a3431;--p1: #56b4e9;--p2: #e69f00;--accent: #56b4e9;--on-accent: #12191a;color-scheme:dark}}body{margin:0;background:var(--bg);color:var(--fg);font:14px/1.5 Inter,system-ui,sans-serif}main{max-width:560px;margin:0 auto;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px));padding-block:16px;touch-action:manipulation}h1{font:700 22px/1.2 Cinzel,Georgia,serif;letter-spacing:.06em;margin:0}header p{margin:4px 0 0;color:var(--muted);font-size:13px}button,select{font:inherit;color:var(--fg);background:transparent;border:.5px solid var(--line);border-radius:8px;padding:7px 12px;min-height:36px;cursor:pointer}select{background:var(--cell);width:100%}button.primary{background:var(--accent);color:var(--on-accent);border-color:var(--accent)}button:focus-visible,select:focus-visible{outline:2px solid var(--fg);outline-offset:2px}.controls{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin:14px 0 0}.controls label{display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--muted)}.actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:12px 0 0}.actions .grow{margin-left:auto}.hint{font-size:12px;color:var(--muted)}.status{margin:12px 0 8px}.board{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:4px}.cell{position:relative;aspect-ratio:1;min-width:0;min-height:0;padding:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:var(--cell);border-radius:8px;border:.5px solid var(--line)}.cell.sp{background:var(--sp)}.cell.hl{border:2px solid var(--fg);animation:glow 1.2s ease-in-out infinite alternate}@keyframes glow{0%{outline:0 solid var(--fg)}to{outline:2px solid var(--fg);outline-offset:2px}}.cell .n{position:absolute;top:3px;left:5px;font-size:10px;color:var(--muted)}.cell .s{position:absolute;bottom:3px;max-width:100%;overflow:hidden;white-space:nowrap;font-size:9px;line-height:1;color:var(--fg)}.cell svg{width:min(22px,60%);height:auto;aspect-ratio:1;fill:none;stroke:var(--fg);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;opacity:.85;margin-top:6px}.pawn{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:52%;aspect-ratio:1;border-radius:50%}.pawn.p1{background:var(--p1)}.pawn.p2{background:var(--p2)}.cell:has(.pawn) svg{opacity:.3}@keyframes pop{0%{transform:translate(-50%,-50%) scale(.4)}to{transform:translate(-50%,-50%) scale(1)}}.pawn.fresh{animation:pop .3s ease-out}@media (prefers-reduced-motion: reduce){.pawn.fresh,.cell.hl{animation:none}}.tray{display:flex;gap:6px;align-items:center;height:48px;margin:12px 0 0}.stick{width:8px;height:40px;border-radius:4px;background:var(--fg)}.stick.lt{background:var(--cell);border:1px solid var(--fg)}.die{width:44px;height:44px;box-sizing:border-box;padding:6px;border:1px solid var(--fg);border-radius:8px;background:var(--cell);display:grid;grid-template-columns:repeat(3,1fr);gap:2px}.die i{border-radius:50%}.die i.p{background:var(--fg)}.info{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0 0;color:var(--muted);font-size:13px}.log{min-height:20px;margin:6px 0 0}.panel{margin-top:14px;border-top:.5px solid var(--line);padding-top:10px}.panel summary{cursor:pointer;font-weight:500}.panel ul{padding-left:18px;margin:8px 0}.panel li{margin:4px 0}.note{font-size:12px;color:var(--muted);margin:6px 0 0}.panel table{width:100%;border-collapse:collapse;margin-top:8px;font-size:13px}.panel th,.panel td{text-align:left;padding:6px 4px;border-bottom:.5px solid var(--line);font-weight:400}.panel td{text-align:right}.actions .help{width:36px;padding:0;border-radius:50%;font-family:Cinzel,Georgia,serif;font-weight:700}.titlebar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:10px 0 0}.titlebar .help{width:36px;height:36px;padding:0;border-radius:50%;font-family:Cinzel,Georgia,serif;font-weight:700}.titlebar h1{display:flex;align-items:center;gap:8px}.titlebar .eye{width:30px;height:30px;fill:none;stroke:var(--fg);stroke-width:26;stroke-linecap:round;stroke-linejoin:round}.titlebar .eye .fill{fill:var(--fg);stroke:none}.titlebar .eye .accent{fill:var(--accent);stroke:none}main{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}main input,main select{-webkit-user-select:text;user-select:text}.cell.last{box-shadow:inset 0 0 0 2px var(--accent)}.tray.cb .stick{background:var(--p1)}.tray.cb .stick.lt{background:var(--p2);border:none}.start-panel{display:flex;flex-direction:column;gap:10px;padding:12px 0 0}.start-row{display:flex;align-items:center;gap:12px}.start-row>span{min-width:90px;color:var(--muted)}.start-row .tray{margin:0;height:44px}.status{margin:18px 0 12px;font-size:15px;font-weight:500;line-height:1.5}.info{gap:6px 18px;margin:14px 0 0}.first-banner{margin:12px 0 0;padding:10px 14px;border-radius:10px;background:var(--accent);color:var(--on-accent);text-align:center;font-weight:600;animation:first-in .6s ease-out}@keyframes first-in{0%{transform:scale(.6);opacity:0}to{transform:scale(1);opacity:1}}@media (prefers-reduced-motion: reduce){.first-banner{animation:none}}
