@font-face{font-family:"Baloo 2";font-style:normal;font-display:swap;font-weight:400;src:url(./baloo-2-devanagari-400-normal-DwSYK00u.woff2)format("woff2"),url(./baloo-2-devanagari-400-normal-BdQx5VUP.woff)format("woff");unicode-range:U+900-97F,U+1CD0-1CF9,U+200C-200D,U+20A8,U+20B9,U+20F0,U+25CC,U+A830-A839,U+A8E0-A8FF,U+11B00-11B09}@font-face{font-family:"Baloo 2";font-style:normal;font-display:swap;font-weight:400;src:url(./baloo-2-vietnamese-400-normal-Bw8Sx-UF.woff2)format("woff2"),url(./baloo-2-vietnamese-400-normal-q9RGxceT.woff)format("woff");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:"Baloo 2";font-style:normal;font-display:swap;font-weight:400;src:url(./baloo-2-latin-ext-400-normal-D__FNg33.woff2)format("woff2"),url(./baloo-2-latin-ext-400-normal-nuHowdHt.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:"Baloo 2";font-style:normal;font-display:swap;font-weight:400;src:url(./baloo-2-latin-400-normal-D8VfTcZx.woff2)format("woff2"),url(./baloo-2-latin-400-normal-DCk_bY-6.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:"Baloo 2";font-style:normal;font-display:swap;font-weight:600;src:url(./baloo-2-devanagari-600-normal-CuT_xCk5.woff2)format("woff2"),url(./baloo-2-devanagari-600-normal-Cnn1WFYO.woff)format("woff");unicode-range:U+900-97F,U+1CD0-1CF9,U+200C-200D,U+20A8,U+20B9,U+20F0,U+25CC,U+A830-A839,U+A8E0-A8FF,U+11B00-11B09}@font-face{font-family:"Baloo 2";font-style:normal;font-display:swap;font-weight:600;src:url(./baloo-2-vietnamese-600-normal-C5EqHgu0.woff2)format("woff2"),url(./baloo-2-vietnamese-600-normal-CGkk4Wtx.woff)format("woff");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:"Baloo 2";font-style:normal;font-display:swap;font-weight:600;src:url(./baloo-2-latin-ext-600-normal-DiVeaYrH.woff2)format("woff2"),url(./baloo-2-latin-ext-600-normal-CFaB2nBN.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:"Baloo 2";font-style:normal;font-display:swap;font-weight:600;src:url(./baloo-2-latin-600-normal-tIfxVoAe.woff2)format("woff2"),url(./baloo-2-latin-600-normal-B4tNaogw.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:"Baloo 2";font-style:normal;font-display:swap;font-weight:800;src:url(./baloo-2-devanagari-800-normal-BURIY0wZ.woff2)format("woff2"),url(./baloo-2-devanagari-800-normal-YLp1oUqR.woff)format("woff");unicode-range:U+900-97F,U+1CD0-1CF9,U+200C-200D,U+20A8,U+20B9,U+20F0,U+25CC,U+A830-A839,U+A8E0-A8FF,U+11B00-11B09}@font-face{font-family:"Baloo 2";font-style:normal;font-display:swap;font-weight:800;src:url(./baloo-2-vietnamese-800-normal-ConLnEgt.woff2)format("woff2"),url(./baloo-2-vietnamese-800-normal-GQACmpuv.woff)format("woff");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:"Baloo 2";font-style:normal;font-display:swap;font-weight:800;src:url(./baloo-2-latin-ext-800-normal-C_Iwmf1s.woff2)format("woff2"),url(./baloo-2-latin-ext-800-normal-D-iCxxqE.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:"Baloo 2";font-style:normal;font-display:swap;font-weight:800;src:url(./baloo-2-latin-800-normal-BbF3Etk1.woff2)format("woff2"),url(./baloo-2-latin-800-normal-B8BXfZF7.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{--wood:#4a3527;--wood-dark:#33241a;--paper:#f7f1e3;--paper-edge:#e6dcc4;--ink:#3b352c;--ink-soft:#8a7f6c;--accent:#c4561b;--accent-ink:#fff8ee;--card:#fbf7ee;--turn:#b3261e;--radius:14px;color:var(--ink);-webkit-tap-highlight-color:transparent;font-family:"Baloo 2",system-ui,-apple-system,Segoe UI,Noto Sans Devanagari,sans-serif}*{box-sizing:border-box}html,body{min-height:100%;margin:0}body{background:repeating-linear-gradient(92deg, #ffffff06 0 3px, transparent 3px 11px), radial-gradient(ellipse at 50% 30%, #5d4433, var(--wood) 60%, var(--wood-dark));background-color:var(--wood);min-height:100dvh}button{font:inherit;cursor:pointer}button:disabled{cursor:default}:focus-visible{outline-offset:2px;outline:3px solid #ffb347}.primary,.secondary{border:2px solid #0000;border-radius:999px;min-height:48px;padding:.6em 1.4em;font-size:1.05rem;font-weight:600;transition:transform .1s,background .2s,opacity .2s}.primary{background:var(--accent);color:var(--accent-ink);box-shadow:0 3px #8a3a10}.primary:active:not(:disabled){transform:translateY(2px);box-shadow:0 1px #8a3a10}.primary:disabled{opacity:.45;box-shadow:none}.secondary{border-color:var(--paper-edge);color:var(--paper);background:0 0}.card .secondary{color:var(--ink);border-color:var(--ink-soft)}.card{background:var(--card);border-radius:var(--radius);padding:20px;box-shadow:0 10px 30px #00000059}.dot{border:2px solid #ffffffb3;border-radius:50%;flex:none;width:14px;height:14px;margin-right:8px;display:inline-block}.menu{max-width:520px;padding:calc(env(safe-area-inset-top) + 20px) 16px calc(env(safe-area-inset-bottom) + 32px);flex-direction:column;gap:18px;margin:0 auto;display:flex}.menu-head{text-align:center;color:var(--paper)}.menu-head h1{letter-spacing:.5px;text-shadow:0 3px #0000004d;margin:0;font-size:clamp(2.4rem,9vw,3.4rem);font-weight:800;line-height:1}.subtitle{opacity:.85;margin:6px 0 4px}.link{color:#ffcf8a;background:0 0;border:none;min-height:44px;padding:8px;text-decoration:underline}.menu-actions{flex-wrap:wrap;justify-content:center;gap:10px;display:flex}.setup h2{margin:0 0 12px}.field{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin:12px 0;display:flex}.field-label{font-weight:600}.segmented{background:#ece3cf;border-radius:999px;padding:3px;display:inline-flex}.segmented button{min-width:44px;min-height:40px;color:var(--ink);background:0 0;border:none;border-radius:999px;padding:6px 14px}.segmented button[aria-pressed=true]{background:var(--ink);color:var(--paper)}.player-rows{border-top:1px dashed var(--paper-edge);border-bottom:1px dashed var(--paper-edge);flex-direction:column;gap:8px;padding:10px 0;display:flex}.player-row{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.player-label{align-items:center;min-width:80px;font-weight:600;display:inline-flex}.player-row .dot{border-color:#00000026}.level{font:inherit;border:1px solid var(--ink-soft);background:#fff;border-radius:10px;min-height:40px;padding:0 8px}.house{margin:8px 0 16px}.house summary{cursor:pointer;align-items:center;gap:8px;min-height:44px;font-weight:600;list-style:none;display:flex}.house summary::-webkit-details-marker{display:none}.house summary:before{content:"▸";transition:transform .2s}.house[open] summary:before{transform:rotate(90deg)}.check{align-items:center;gap:10px;min-height:40px;padding:6px 0;display:flex}.check input{width:20px;height:20px;accent-color:var(--accent);flex:none}.start-btn{width:100%;font-size:1.25rem}.overlay{z-index:10;background:#140c0699;place-items:center;padding:16px;animation:.25s ease-out fade;display:grid;position:fixed;inset:0}.rules-card{max-width:560px;max-height:85dvh;overflow:auto}.rules-card ol{padding-left:1.3em;line-height:1.5}.rules-card li{margin-bottom:6px}.win-card{text-align:center;min-width:min(340px,100%);animation:.35s ease-out pop}.win-card h2{margin:0 0 8px;font-size:2rem}.win-card ol{text-align:left;margin:0 0 12px;display:inline-block}.row{flex-wrap:wrap;justify-content:center;gap:10px;display:flex}@keyframes fade{0%{opacity:0}}@keyframes pop{0%{opacity:0;transform:scale(.85)}}.game{height:100dvh;min-height:480px;padding:calc(env(safe-area-inset-top) + 8px) calc(env(safe-area-inset-right) + 16px) calc(env(safe-area-inset-bottom) + 12px) calc(env(safe-area-inset-left) + 16px);grid-template-rows:auto 1fr auto;grid-template-areas:"top""board""controls";gap:8px;max-width:1200px;margin:0 auto;display:grid}.topbar{grid-area:top;align-items:center;gap:8px;display:flex}.icon-btn{width:44px;height:44px;color:var(--paper);background:#ffffff1f;border:none;border-radius:50%;flex:none;font-size:1.2rem}.banner{color:var(--paper);white-space:nowrap;border:2px solid var(--turn);text-align:center;background:#00000040;border-radius:999px;flex:1;justify-content:center;align-items:center;min-height:44px;padding:0 14px;font-size:clamp(.9rem,3.8vw,1.15rem);font-weight:600;line-height:1.15;transition:border-color .3s;display:flex;overflow:hidden}.board-wrap{grid-area:board;min-width:0;min-height:0}.board{touch-action:manipulation;width:100%;height:100%;display:block}.controls{border-radius:var(--radius);color:var(--paper);background:#00000038;flex-direction:column;grid-area:controls;align-items:center;gap:4px;padding:8px 12px 10px;display:flex}.status{text-align:center;min-height:1.6em;margin:0;font-size:1.05rem}.chips{flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;min-height:44px;display:flex}.chips-label{opacity:.8}.chip{border:2px solid var(--paper-edge);background:var(--paper);min-width:44px;height:44px;color:var(--ink);border-radius:12px;font-size:1.2rem;font-weight:800}.chip[aria-pressed=true]{background:var(--accent);color:var(--accent-ink);border-color:#ffd8a8;transform:translateY(-2px)}.chip:disabled{opacity:.55}.throw-btn{min-width:220px}@media (aspect-ratio>=5/4) and (width>=800px){.game{grid-template:"top top""board controls"1fr/1fr 300px}.controls{align-self:center;padding:20px 16px}}.cowries{justify-content:center;gap:10px;padding:4px 0;display:flex}.shell{width:56px;height:38px;transform:rotate(var(--rot,0deg));transition:transform .15s;overflow:visible}.shell-body{fill:#f3e9d2;stroke:#a8946b;stroke-width:1.5px}.shell .slit{fill:#6e5838}.shell .teeth{stroke:#6e5838;stroke-width:1.3px;stroke-linecap:round}.shell .hump{fill:#e3cfa4}.shell .hump-shine{fill:#fffaf0;opacity:.8}.shell .mouth{display:none}.shell.up .mouth{display:inline}.shell.up .back{display:none}.cowries.rolling .shell{animation:.16s linear infinite alternate tumble}@keyframes tumble{0%{transform:rotate(-30deg)translateY(-6px)scale(1.05)}to{transform:rotate(30deg)translateY(2px)}}.board .paper{fill:var(--paper);stroke:var(--paper-edge);stroke-width:3px;filter:drop-shadow(0 8px 12px #00000059)}.board .ink{stroke:var(--ink);stroke-width:2.4px;stroke-linecap:round}.board .cross{stroke:var(--ink);stroke-width:2px;opacity:.75}.board .centre-mark{fill:none;stroke:var(--accent);stroke-width:3px}.board .home{fill:none;stroke-width:5px;opacity:.55}.board .arrow{fill:none;stroke-width:4px;stroke-linecap:round;stroke-linejoin:round;opacity:.8}.board .yard{opacity:.18}.board .target{fill:#ffb347;opacity:.45;stroke:#c4561b;stroke-width:3px;pointer-events:none}.piece{transform-box:view-box;transition:transform .15s ease-out}.piece .seed{stroke:#0000008c;stroke-width:2.5px}.piece:focus{outline:none}.piece:focus-visible .seed{stroke:#ffb347;stroke-width:6px}.piece .sheen{fill:#fff;opacity:.35;pointer-events:none}.piece .glow{fill:#ffd27a;opacity:0}.piece.movable{cursor:pointer}.piece.movable .glow{animation:1s ease-in-out infinite alternate glow}.piece.moving{transition-duration:.14s}.piece.captured .seed{animation:.4s shake}@keyframes glow{0%{opacity:.25}to{opacity:.85}}@keyframes shake{25%{transform:translate(-6px)}75%{transform:translate(6px)}}@media (prefers-reduced-motion:reduce){.piece,.piece.moving{transition-duration:0s}.piece.movable .glow{opacity:.7;animation:none}.overlay,.win-card{animation:none}}.help{color:var(--ink-soft);margin:2px 0 8px;font-size:.9rem}.menu-head .help{color:var(--paper)}.small{min-height:40px;padding:.3em .9em;font-size:.95rem}.danger{color:#a3261b!important;border-color:#d9a29b!important}.text-input{font:inherit;border:1px solid var(--ink-soft);min-height:44px;color:var(--ink);background:#fff;border-radius:10px;width:100%;padding:0 10px}textarea.text-input{resize:vertical;padding:8px 10px}.num-input{font:inherit;border:1px solid var(--ink-soft);text-align:center;border-radius:8px;width:64px;min-height:40px}.segmented button:disabled{opacity:.35}.seed-icon{flex:none;display:block}.banner .seed-icon{margin-right:8px}.banner span{text-overflow:ellipsis;overflow:hidden}.rules-row{flex-wrap:wrap;flex:1;justify-content:flex-end;align-items:center;gap:6px;display:flex}.rules-select{flex:160px;min-width:0}.player-row{border-bottom:1px dotted var(--paper-edge);flex-direction:column;align-items:stretch;gap:6px;padding:8px 0;display:flex}.player-row:last-child{border-bottom:none}.player-main{align-items:center;gap:8px;display:flex}.player-main .name-input{flex:1;min-width:0}.player-extra{flex-wrap:wrap;align-items:center;gap:8px;padding-left:52px;display:flex}.player-extra:empty{display:none}.color-btn{border:2px solid var(--c);background:#fffdf7;border-radius:50%;flex:none;place-items:center;width:44px;height:44px;padding:0;display:grid}.team-badge{border-radius:999px;padding:2px 10px;font-size:.9rem;font-weight:700}.team-0{color:#8a3a10;background:#fde2c8}.team-1{color:#1f4f80;background:#d6e6f5}.dialog-card{flex-direction:column;gap:10px;width:100%;max-width:560px;max-height:85dvh;display:flex;overflow:auto}.dialog-card h2{margin:0}.rules-list{margin:0;padding-left:1.3em;line-height:1.5}.rules-list li{margin-bottom:6px}.pass-overlay{background:#140c06eb}.pass-overlay .dialog-card{text-align:center;align-items:center;max-width:380px}.pass-heading{justify-content:center;align-items:center;gap:10px;display:flex}.toast{left:50%;bottom:max(24px, env(safe-area-inset-bottom));background:var(--ink);color:var(--paper);z-index:20;overflow-wrap:anywhere;border-radius:999px;max-width:calc(100% - 32px);padding:10px 18px;animation:.2s fade;position:fixed;transform:translate(-50%)}.cowries.many{flex-wrap:wrap;gap:4px}.cowries.many .shell{width:40px;height:28px}.editor{max-width:640px;padding:calc(env(safe-area-inset-top) + 12px) 16px calc(env(safe-area-inset-bottom) + 32px);margin:0 auto}.editor-head{align-items:center;gap:10px;margin-bottom:12px;display:flex}.editor-head .text-input{font-size:1.15rem;font-weight:700}.editor-body{flex-direction:column;gap:4px;display:flex}.editor-section{border-bottom:1px dashed var(--paper-edge);padding:4px 0 10px}.editor-section summary{cursor:pointer;align-items:center;gap:8px;min-height:48px;font-size:1.1rem;font-weight:700;list-style:none;display:flex}.editor-section summary::-webkit-details-marker{display:none}.editor-section summary:before{content:"▸";transition:transform .2s}.editor-section[open] summary:before{transform:rotate(90deg)}.flag{color:#fff;border-radius:50%;place-items:center;width:20px;height:20px;font-size:.8rem;display:inline-grid}.flag.error{background:#b3261e}.flag.warning{background:#c4911f}.problem{border-radius:8px;margin:6px 0;padding:6px 10px;font-size:.95rem}.problem:empty{display:none}.problem.error{color:#8c1d14;background:#fbe3df}.problem.warning{color:#6b4a07;background:#fbf0d6}.preview{max-width:340px;margin:6px auto}.preview .board{height:auto}.cell-hit{fill:#0000;cursor:pointer}.cell-hit:hover,.cell-hit:focus-visible{fill:#c4561b2e;outline:none}.table-wrap{overflow-x:auto}.throw-table{border-collapse:collapse;width:100%;margin:6px 0}.throw-table th,.throw-table td{text-align:center;border-bottom:1px dotted var(--paper-edge);padding:4px 6px}.throw-table thead th{color:var(--ink-soft);font-size:.85rem;font-weight:600}.throw-table tbody th{text-align:left;white-space:nowrap;font-weight:600}.throw-table input[type=checkbox]{width:22px;height:22px;accent-color:var(--accent)}.chance{color:var(--ink-soft);font-variant-numeric:tabular-nums}.mini-shells{vertical-align:middle;gap:2px;margin-right:6px;display:inline-flex}.mini{background:#e3cfa4;border:1px solid #a8946b;border-radius:50%;width:10px;height:7px;display:inline-block}.mini.open{background:#6e5838}.open-label{vertical-align:middle}.value-toggles{flex-wrap:wrap;gap:6px;display:flex}.editor-actions{flex-wrap:wrap;gap:8px;margin-top:8px;display:flex}.editor-actions .primary{flex:100%}.test-result{min-height:1.4em;margin:8px 0 0;font-weight:600}.test-result:empty{display:none}.field.stacked{flex-direction:column;align-items:stretch;gap:6px}.field.stacked .rules-row{justify-content:flex-start}.field.stacked .segmented{width:100%;display:flex}.field.stacked .segmented button{flex:1 1 0;min-width:0;padding:6px 4px}.editor .segmented{flex-wrap:wrap;max-width:100%}@media (width<=380px){.mini-shells{display:none}.num-input{width:52px}.throw-table th,.throw-table td{padding:4px 3px}}.native body{overscroll-behavior:none}.native .game,.native .board,.native .cowries,.native button{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.game .board{-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.native body:before{content:"";height:env(safe-area-inset-top);background:var(--wood-dark);z-index:30;position:fixed;top:0;left:0;right:0}.menu-foot{text-align:center;color:var(--paper);opacity:.85}.menu-foot a{color:#ffcf8a;min-height:44px;padding:0 8px;line-height:44px;display:inline-block}
