@font-face{font-family:Jakarta;src:url(/fonts/plus-jakarta-sans-latin.woff2) format("woff2");font-weight:200 800;font-display:swap}@font-face{font-family:Playfair;src:url(/fonts/playfair-display-latin.woff2) format("woff2");font-weight:400 900;font-display:swap}:root{--bg: #f5efe2;--ink: #161513;--muted: #5c564b;--card: #fffdf8;--red: #c83e2b;--red-dark: #b83222;--blue: #1f5fa8;--yellow: #f2c53d;--green: #1f7a3f;color-scheme:light}*{box-sizing:border-box;margin:0}html,body,#root{height:100%}body{background:var(--bg);color:var(--ink);font:500 1.0625rem/1.35 Jakarta,system-ui,sans-serif;-webkit-tap-highlight-color:transparent}button,input{font:inherit;color:inherit}button{cursor:pointer;touch-action:manipulation;user-select:none;-webkit-user-select:none}:focus-visible{outline:3px solid var(--blue);outline-offset:3px}h1{font-family:Playfair,Georgia,serif;line-height:1.1}fieldset{border:0;padding:0;min-width:0}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.home{min-height:100%;max-width:34rem;margin:auto;padding:max(2rem,env(safe-area-inset-top)) 1.25rem max(1.25rem,env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:.5rem}.home h1{font-size:2.75rem}.home>nav{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,9rem),1fr));gap:.9rem}.home>nav a{display:flex;flex-direction:column;align-items:flex-start;gap:.5rem;min-height:6rem;padding:.9rem;color:inherit;text-decoration:none;background:var(--card);border:2.5px solid var(--ink);border-radius:22px;box-shadow:5px 5px 0 var(--ink)}.home>nav b{display:block;font-size:1.2rem;line-height:1.15}.home small,.home footer,.home>p{color:var(--muted)}.home footer{margin-top:auto;padding-top:1.5rem;font-size:.875rem}.icon{flex:none;width:2.5rem;fill:none;stroke:var(--red-dark);stroke-width:3.5}.icon .dot{fill:var(--red-dark);stroke:none}.tool{height:100vh;height:100dvh;max-width:44rem;margin:auto;padding:env(safe-area-inset-top) max(.75rem,env(safe-area-inset-right)) max(.75rem,env(safe-area-inset-bottom)) max(.75rem,env(safe-area-inset-left));display:flex;flex-direction:column}.tool header{display:flex;align-items:center;gap:.25rem;min-height:3.5rem}.tool header h1{flex:1;min-width:0;font-size:1.3rem;overflow-wrap:anywhere}.tool header a,.tool header button{min-width:44px;min-height:44px;display:grid;place-items:center;padding:0 .4rem;border:0;background:none;color:var(--red-dark);font-weight:700}.tool header svg{width:26px;fill:none;stroke:currentColor;stroke-width:3}.stage{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:1rem;padding:.5rem .25rem 1rem}.stage>:first-child{margin-top:auto}.stage>:last-child{margin-bottom:auto}.stage.top>:first-child{margin-top:0}.main{flex:none;min-height:76px;width:100%;border:2.5px solid var(--ink);border-radius:22px;background:var(--red-dark);color:#fff;font-size:1.75rem;font-weight:800}.main:active{background:#952718}.result{display:grid;place-items:center;min-height:3.5rem;text-align:center;font-size:clamp(1.5rem,7.5vw,2.5rem);font-weight:800;line-height:1.15;overflow-wrap:anywhere}.result small{font-size:1.0625rem;font-weight:500;color:var(--muted)}.side{display:grid;gap:.5rem}.count{display:flex;align-items:center;gap:.5rem}.count legend{float:left;width:5rem;font-weight:800}.count button,.pick-row button,.tabs button,.stepper button,.toggle{min-width:48px;min-height:48px;border:2px solid var(--ink);border-radius:14px;background:var(--card);font-weight:700}.count button[aria-pressed=true],.pick-row button[aria-pressed=true],.tabs button[aria-pressed=true]{background:var(--ink);color:var(--card)}.dice{display:flex;gap:.75rem}.die{flex:none;width:min(calc((100% - 1.5rem) / 3),15vh);text-align:center}.die svg{display:block;width:100%}.die rect{stroke:var(--ink);stroke-width:4}.attack rect{fill:var(--red-dark)}.attack circle,.attack text{fill:#fff}.defend rect{fill:#fff}.defend circle,.defend text{fill:var(--ink)}.die text{font:800 52px Jakarta,sans-serif}.die .unknown{opacity:.45}.die.lose svg{opacity:.6}.mark{display:block;min-height:1.4em;font-weight:800}.rolling svg{animation:tumble .32s linear infinite}@keyframes tumble{25%{transform:translateY(-10%) rotate(90deg)}50%{transform:rotate(180deg)}75%{transform:translateY(-6%) rotate(270deg)}to{transform:rotate(360deg)}}.wheels{display:flex;justify-content:center;gap:.75rem}.wheel{position:relative;width:min(48%,34vh);padding-top:14px}.face{display:block;width:100%}.face.moving{transition:transform .9s cubic-bezier(.15,.7,.2,1)}.face path{stroke:var(--ink);stroke-width:3}.face text{font:800 23px Jakarta,sans-serif;fill:#fff}.limb-0{fill:#fff}.limb-1{fill:#e6d9bd}path.limb-0~text,path.limb-1~text,path.c-yellow~text{fill:var(--ink)}.hub{fill:var(--ink)}.pointer{position:absolute;top:0;left:calc(50% - 13px);width:26px;fill:var(--ink);stroke:var(--bg);stroke-width:2}path.c-red{fill:var(--red-dark)}path.c-blue{fill:var(--blue)}path.c-yellow{fill:var(--yellow)}path.c-green{fill:var(--green)}.call{flex:none;position:relative;display:grid;place-content:center;text-align:center;min-height:8rem;border:2.5px solid var(--ink);border-radius:22px;background:var(--card);font-size:clamp(1.75rem,9vw,3rem);font-weight:800;line-height:1.1}.call.c-red{background:var(--red-dark);color:#fff}.call.c-blue{background:var(--blue);color:#fff}.call.c-yellow{background:var(--yellow)}.call.c-green{background:var(--green);color:#fff}.pick-row{display:grid;grid-template-columns:repeat(4,1fr);gap:.5rem}.pick-row legend{margin-bottom:.35rem;font-weight:700}.toggle{flex:none}.tabs{display:grid;grid-template-columns:1fr 1fr;gap:.5rem;margin-bottom:.75rem}.touch{flex:1;position:relative;overflow:hidden;border:2.5px dashed var(--ink);border-radius:22px;background:var(--card);touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;display:grid;place-content:center;text-align:center;padding:1rem}.touch p{font-size:2rem;font-weight:800;line-height:1.15}.touch small{color:var(--muted);margin-top:.5rem}.touch i{position:absolute;width:120px;height:120px;margin:-60px;border:4px solid var(--ink);border-radius:50%;pointer-events:none;animation:pulse .5s ease-in-out infinite alternate}.touch i.won{animation:none;transform:scale(1.25);box-shadow:0 0 0 10px var(--card),0 0 0 16px var(--ink)}.touch p,.touch small{pointer-events:none}@keyframes pulse{to{transform:scale(1.12)}}.stepper{display:flex;align-items:center;justify-content:center;gap:.75rem;max-width:100%;min-width:0}.stepper b{flex:0 1 auto}.stepper button{flex:none;width:56px;font-size:1.5rem}.stepper b{text-align:center;width:7rem;min-width:3rem}.names{list-style:none;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:.6rem}.names input{width:100%;min-height:48px;padding:0 .75rem;border:2px solid var(--ink);border-radius:14px;background:var(--card)}.names input::placeholder{color:var(--muted);opacity:1}.names .won input{background:var(--yellow);font-weight:800}.pop{animation:pop .25s ease-out}@keyframes pop{0%{transform:scale(.7)}}@media(orientation:landscape)and (max-height:520px){.dice-stage{display:grid;grid-template-columns:1fr 1fr;align-content:center}.spin-stage{display:grid;grid-template-columns:1fr 1fr;align-content:start}.spin-stage>*{margin-block:0!important}.dice-stage .result{grid-column:1 / -1}.main{min-height:64px}}@media(prefers-reduced-motion:reduce){*,*:before{animation:none!important;transition:none!important}}button:disabled{opacity:.45;cursor:default}.wide,.bar button,.pair>button,.choice button{min-width:48px;min-height:48px;padding:0 .75rem;border:2px solid var(--ink);border-radius:14px;background:var(--card);font-weight:700}.choice button[aria-pressed=true],.keys button[aria-pressed=true]{background:var(--ink);color:var(--card)}.wide{width:100%;flex:none}.note{color:var(--muted);text-align:center}.choice legend{margin-bottom:.35rem;font-weight:700}.choice>div{display:flex;flex-wrap:wrap;gap:.5rem}.choice button{flex:1 0 auto}.pair{display:flex;flex-wrap:wrap;justify-content:center;gap:.75rem}.pair>button{flex:1 0 auto}.bar{flex:none;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.5rem;margin-bottom:.5rem}.status{flex:1 1 7.5rem;min-width:0;text-align:center;font-weight:800;font-size:1.2rem;line-height:1.15;overflow-wrap:anywhere}.tabs.three{grid-template-columns:repeat(3,1fr)}.field{display:grid;gap:.25rem;font-weight:700}.field input{width:100%;min-height:48px;padding:0 .75rem;border:2px solid var(--ink);border-radius:14px;background:var(--card)}.sheet{width:100%;max-width:30rem;max-height:calc(100% - 1rem);margin:auto auto 0;padding:0;border:2.5px solid var(--ink);border-bottom:0;border-radius:22px 22px 0 0;background:var(--bg);color:inherit;overflow-y:auto;overscroll-behavior:contain}.sheet::backdrop{background:#1615138c}.sheet-body{display:grid;grid-template-columns:minmax(0,1fr);gap:.9rem;padding:1rem 1rem max(1rem,env(safe-area-inset-bottom))}.sheet h2{font-size:1.4rem;line-height:1.15;overflow-wrap:anywhere}.kind{display:grid;gap:.5rem}.pad{display:grid;gap:.6rem}.pad p{color:var(--muted)}.pad output{font-size:2.75rem;font-weight:800;line-height:1.1;text-align:center;font-variant-numeric:tabular-nums}.keys{display:grid;grid-template-columns:repeat(3,1fr);gap:.5rem}.keys button{min-height:56px;border:2px solid var(--ink);border-radius:14px;background:var(--card);font-size:1.5rem;font-weight:700}.pad .main,.sheet .main{min-height:64px;font-size:1.4rem;overflow-wrap:anywhere}.grid-stage{overflow:auto;padding:0;margin-bottom:.75rem}.scores{border-collapse:separate;border-spacing:0;width:max-content;min-width:100%;font-variant-numeric:tabular-nums}.scores th,.scores td{padding:0;text-align:center;background:var(--bg);border-bottom:1.5px solid rgb(22 21 19 / 20%)}.scores thead th{position:sticky;top:0;z-index:1;font-size:.9rem}.scores tr>:first-child{position:sticky;left:0;z-index:1;width:7rem;min-width:7rem;max-width:7rem;text-align:left;padding-left:.5rem;overflow:hidden}.scores tr>.total{position:sticky;left:7rem;z-index:1;min-width:5.5rem;border-right:2px solid var(--ink)}.scores thead tr>:first-child,.scores thead tr>.total{z-index:2}.scores th span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;line-height:1.15;overflow-wrap:anywhere}.scores td.total{font-size:1.6rem;font-weight:800;line-height:1.1}.scores td.total small{display:block;font-size:.75rem}.scores .lead>th,.scores .lead>.total{background:var(--yellow)}.scores button{min-width:4.5rem;width:100%;min-height:56px;padding:0 .4rem;border:0;background:none;font-size:1.2rem}.scores thead button{min-height:48px;max-width:8rem;font-size:.9rem;font-weight:700;text-decoration:underline}.counters{flex:1;min-height:0;overflow-y:auto;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),1fr));grid-auto-rows:minmax(min-content,1fr);gap:.6rem}.counters section{display:flex;flex-direction:column;justify-content:center;gap:.4rem;padding:.5rem;border:2.5px solid var(--ink);border-radius:22px;background:var(--card)}.counters h2{font-size:1.1rem;line-height:1.15;text-align:center;overflow-wrap:anywhere}.counter{display:flex;align-items:stretch;gap:.5rem}.counter button{flex:none;width:84px;min-height:60px;border:2px solid var(--ink);border-radius:16px;background:var(--bg);font-size:2rem;font-weight:800;-webkit-touch-callout:none}.counter button:active{background:var(--yellow)}.counter output{position:relative;flex:1;min-width:0;display:grid;place-content:center;text-align:center;font-variant-numeric:tabular-nums}.counter b{font-size:2.5rem;line-height:1}.counter i{position:absolute;top:-.2rem;right:0;font-style:normal;font-weight:800;color:var(--red-dark)}.counters.two{grid-template-columns:1fr}.counters.two b{font-size:clamp(3rem,12vh,5.5rem)}.counters.two.facing .seat-0{transform:rotate(180deg)}.clock h2{text-align:center;font-size:1.75rem;overflow-wrap:anywhere}.clock .big{text-align:center;font-size:clamp(4rem,26vw,11rem);font-weight:800;line-height:1;font-variant-numeric:tabular-nums}.clock .word{min-height:1.3em;text-align:center;font-size:2rem;font-weight:800;line-height:1.3}.clock.over .big,.clock.over .word{color:var(--red-dark)}.sandbar{flex:none;height:22px;border:2.5px solid var(--ink);border-radius:11px;background:var(--card);overflow:hidden}.sandbar i{display:block;height:100%;background:var(--red);transform-origin:left}.chess{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:.6rem}.half{flex:1 0 auto;min-height:110px;display:grid;place-content:center;gap:.25rem;border:2.5px solid var(--ink);border-radius:22px;background:var(--card)}.half b{font-size:clamp(3rem,20vw,7rem);line-height:1;font-variant-numeric:tabular-nums}.half span{min-height:1.35em}.half.flip{transform:rotate(180deg)}.half.on{background:var(--green);color:#fff}.half.out{background:var(--red-dark);color:#fff}.mid{flex:none}.mid.options{display:grid;gap:.5rem}.sum b{font-size:clamp(3.5rem,18vw,6rem);line-height:1}.sum{min-height:7rem;align-content:center}.tray{flex:none;display:grid;gap:5px;justify-content:center;grid-template-columns:repeat(auto-fit,minmax(0,min(27%,15vh)))}.tray.n1,.tray.n2,.tray.n4{grid-template-columns:repeat(2,min(36%,15vh))}.tray.n1{grid-template-columns:min(40%,18vh)}.tray.n3{grid-template-columns:repeat(3,min(30%,14vh))}.tray.n5{grid-template-columns:repeat(5,min(calc(20% - 4px),12vh))}.tray .die{width:auto;min-height:44px;padding:0;border:0;background:none}.tray .die:disabled{opacity:1}.tray .mark{font-size:.9rem}.tray .held rect{fill:var(--yellow)}.history summary{min-height:44px;display:flex;align-items:center;font-weight:700;cursor:pointer}.history ol{padding-left:1.75rem;color:var(--muted)}@media(orientation:landscape)and (max-height:520px){.chess{flex-direction:row}.half{flex:1 1 0;min-width:0}.half b{font-size:3.25rem}.half.flip{transform:none}.mid{flex:0 1 15rem;align-self:center}.clock .big{font-size:5rem}.keys{grid-template-columns:repeat(6,1fr)}.sheet{max-width:40rem}}.home label{display:block;margin-bottom:.35rem;font-weight:700;font-size:1.2rem}.home input[type=search]{width:100%;min-height:60px;padding:0 1rem;border:2.5px solid var(--ink);border-radius:18px;background:var(--card);font-size:1.25rem;-webkit-appearance:none;-moz-appearance:none;appearance:none}.home input::placeholder{color:var(--muted);opacity:1}.home h2{margin-top:.75rem;font-size:1.1rem}.games{display:grid;gap:.6rem;margin-top:.5rem}.game{display:grid;align-content:center;min-height:60px;padding:.5rem 1rem;border:2.5px solid var(--ink);border-radius:18px;background:var(--card);color:inherit;text-decoration:none}details.games>.game{margin-bottom:.6rem}.games.recent h2{margin-top:.25rem}.recent>div{display:flex;flex-wrap:wrap;gap:.5rem}.recent a{display:grid;place-items:center;min-height:48px;padding:0 1rem;border:2px solid var(--ink);border-radius:14px;background:var(--yellow);color:inherit;font-weight:700;text-decoration:none}.home summary{min-height:48px;display:flex;align-items:center;font-weight:700;cursor:pointer}.game-tabs{flex:none;display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:.4rem;margin-top:.5rem}.game-tabs a{display:grid;place-items:center;min-height:48px;border-radius:14px;color:inherit;font-weight:700;text-decoration:none}.game-tabs a[aria-current]{background:var(--ink);color:var(--card)}.link{display:grid;place-items:center start;padding:.5rem 1rem;color:inherit}.link small{display:block;font-weight:500;color:var(--muted)}.more{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,9rem),1fr));gap:.5rem}.more button{display:flex;align-items:center;gap:.5rem;min-height:60px;text-align:left}.more .icon{width:1.75rem}.wheel.one{width:min(80%,42vh)}.recent>div{flex-wrap:nowrap;overflow-x:auto;margin:0 -1.25rem;padding:0 1.25rem .25rem}.recent a{flex:none}.games.recent{grid-template-columns:minmax(0,1fr)}.tool{overflow-y:auto}.tool>.stage,.tool>.counters,.tool>.chess{min-height:110px}@media(min-height:480px){.tool>.stage,.tool>.counters,.tool>.chess{min-height:200px}}.about{display:flex;flex-wrap:wrap;gap:0 1.25rem}.about a{display:inline-flex;align-items:center;min-width:44px;min-height:44px;color:inherit}.label-face{display:grid;place-items:center;aspect-ratio:1;padding:4px;border:3px solid var(--ink);border-radius:20%;background:var(--card);font-weight:800;font-size:clamp(.75rem,3.6vw,1.05rem);line-height:1.1;text-align:center;overflow-wrap:anywhere}.rolling .label-face{animation:tumble .32s linear infinite}.held .label-face{background:var(--yellow)}.result .tally{font-size:clamp(1.5rem,7vw,2.4rem);line-height:1.15}.counter .amount{width:auto;min-width:0;min-height:48px;padding:0 .25rem;border:0;border-bottom:2px dashed rgb(22 21 19 / 30%);border-radius:0;background:none;font-size:2.5rem;line-height:1}.counters.two .counter .amount{font-size:clamp(3rem,12vh,5.5rem)}.bag-left{list-style:none;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:.4rem 1rem}.bag-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.5rem;align-items:center}.bag-row input{min-width:0;min-height:48px;padding:0 .75rem;border:2px solid var(--ink);border-radius:14px;background:var(--card)}.bag-row .stepper b{width:3rem}.guide{list-style:none;padding:0;display:grid;gap:.5rem}.guide button{display:flex;gap:.75rem;align-items:center;width:100%;min-height:56px;padding:.5rem .9rem;text-align:left;border:2px solid var(--ink);border-radius:14px;background:var(--card);font-weight:600}.guide button span{flex:none;width:1.5rem;font-weight:800}.guide button[aria-pressed=true]{background:var(--yellow)}.result.role{font-family:Playfair,Georgia,serif;font-size:clamp(2.25rem,11vw,3.5rem)}.told{list-style:none;padding:0;text-align:center;font-size:1.2rem}.counters section.table{background:#e6d9bd}
