:root{--ink:#2b2118;--paper:#fffaf0eb;--blue:#0f4db8;--orange:#ffa800;color:var(--ink);font-family:ui-rounded,SF Pro Rounded,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Noto Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}*{box-sizing:border-box}html,body{background:#cfe9fb;height:100%;margin:0;overflow:hidden}body{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}canvas{touch-action:none;width:100%;height:100%;display:block;position:fixed;top:0;bottom:0;left:0;right:0}button{font:inherit;color:inherit;cursor:pointer}[hidden]{display:none!important}.top{top:max(10px, env(safe-area-inset-top));pointer-events:none;align-items:center;gap:10px;display:flex;position:fixed;left:12px;right:12px}.top>*{pointer-events:auto}.title,.score{white-space:nowrap;text-overflow:ellipsis;background:var(--paper);border-radius:999px;min-width:0;padding:8px 14px;font-size:15px;line-height:1.2;overflow:hidden;box-shadow:0 2px 10px #3c280a26}.title strong{margin-right:8px}.title span{opacity:.7}.score{margin:0 auto;font-weight:600}.btns{gap:8px;display:flex}.btns button{background:var(--paper);border:0;border-radius:50%;width:44px;height:44px;font-size:20px;box-shadow:0 2px 10px #3c280a26}.hint{left:50%;bottom:max(84px, calc(env(safe-area-inset-bottom) + 76px));color:#fff;pointer-events:none;text-align:center;background:#2b2118b8;border-radius:18px;width:max-content;max-width:calc(100vw - 32px);padding:8px 16px;font-size:15px;transition:opacity .3s;position:fixed;transform:translate(-50%)}.hint:empty{opacity:0}.hint.up{bottom:auto;top:max(64px, calc(env(safe-area-inset-top) + 58px))}.bottom{left:12px;right:12px;bottom:max(14px, env(safe-area-inset-bottom));pointer-events:none;justify-content:center;display:flex;position:fixed}.seg{pointer-events:auto;background:var(--paper);border-radius:999px;align-items:center;gap:4px;padding:4px;display:flex;box-shadow:0 2px 10px #3c280a26}.seg button{background:0 0;border:0;border-radius:999px;min-height:44px;padding:10px 18px;font-weight:600}.seg button.on{background:var(--blue);color:#fff}.seg span{padding:0 6px;font-weight:600}.toast{color:#fff;text-shadow:0 3px 0 var(--orange), 0 6px 18px #00000059;opacity:0;pointer-events:none;text-align:center;max-width:90vw;font-size:clamp(28px,7vw,48px);font-weight:800;transition:opacity .2s,transform .25s;position:fixed;top:22%;left:50%;transform:translate(-50%,-50%)scale(.8)}.toast.show{opacity:1;transform:translate(-50%,-50%)scale(1)}.toast{text-shadow:0 3px 0 var(--toast,var(--orange)), 0 6px 18px #00000059}.card{background:var(--paper);text-align:center;border-radius:24px;width:min(420px,100vw - 32px);padding:22px 26px;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);box-shadow:0 10px 40px #281e0a4d}.card p{margin:6px 0}.card .kicker{color:var(--blue);font-size:22px;font-weight:800}.card .big{font-size:64px;font-weight:800;line-height:1}.card .small{opacity:.7;font-size:14px}.card .row{flex-wrap:wrap;justify-content:center;gap:8px;margin-top:14px;display:flex}.card button{background:#efe6d6;border:0;border-radius:999px;min-height:44px;padding:12px 18px;font-weight:700}.card .row button:first-child{background:var(--orange)}.panel{top:max(64px, calc(env(safe-area-inset-top) + 60px));background:var(--paper);border-radius:18px;width:min(360px,100vw - 24px);max-height:calc(100vh - 140px);padding:14px;font-size:14px;position:fixed;right:12px;overflow:auto;box-shadow:0 10px 40px #281e0a4d}.panel-head{justify-content:space-between;align-items:baseline;margin-bottom:8px;display:flex}.panel-head span{opacity:.6;font-size:12px}.readout{color:#ffe9b8;background:#2b2118;border-radius:10px;min-height:2.6em;margin-bottom:10px;padding:8px 10px;font-size:12px}.prow{grid-template-columns:1fr 1.2fr 3.2em;align-items:center;gap:8px;margin:6px 0;display:grid}.prow select{font:inherit;grid-column:2/4;padding:4px}.prow output{text-align:right;font-variant-numeric:tabular-nums}.reset{background:#efe6d6;border:0;border-radius:999px;margin-top:8px;padding:8px 14px;font-weight:600}@media (max-width:560px){.title span{display:none}.title,.score{padding:7px 11px;font-size:13px}.hint{font-size:13px}}.prow.changed span:after{content:" •";color:var(--orange);font-weight:800}.panel-buttons{flex-wrap:wrap;gap:8px;display:flex}.card.setup{max-height:calc(100vh - 24px);text-align:left;max-height:calc(100dvh - 24px);overflow:auto}.card.setup .go{box-shadow:0 -10px 14px -4px var(--paper), 0 4px 12px #3c280a2e;position:sticky;bottom:0}.picked{align-items:center;gap:8px;min-width:0;display:flex}#picked-dots{flex-wrap:wrap;justify-content:flex-end;gap:4px;display:flex}#picked-dots i{border-radius:50%;width:20px;height:20px;box-shadow:inset -2px -3px 4px #00000040}.card .picked button{min-height:36px;padding:6px 14px}@media (max-height:760px){.card.setup{padding:14px 18px}.card.setup .kicker{font-size:19px}.card.setup .field,.card.setup .check{margin:6px 0}.card.setup .seg button{min-height:36px;padding:6px 11px}.card.setup .go{margin-top:8px;padding:12px}}.card.setup .kicker{text-align:center;margin-bottom:0}.card.setup>.small{text-align:center;margin-top:2px}.field{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:6px 10px;margin:10px 0;display:flex}.field>.seg{margin-left:auto}.card .seg button{white-space:nowrap}@media (max-width:480px){.card.setup #mode{flex:100%}.card.setup #mode button{flex:1;padding:8px 4px;font-size:14px}}.field>span{font-weight:700}.card .seg{box-shadow:none;background:#efe6d6}.card .seg button{background:0 0;min-height:40px;padding:8px 12px}.card .seg button.on{background:var(--blue);color:#fff}.check{align-items:center;gap:8px;margin:10px 0;font-weight:700;display:flex}.check input{width:20px;height:20px}.bag{flex-wrap:wrap;gap:6px;max-height:190px;margin-top:12px;padding:2px;display:flex;overflow:auto}.chip{background:#fff;border:2px solid #e6dcc8;border-radius:999px;align-items:center;gap:6px;min-height:32px;padding:4px 10px 4px 4px;font-size:13px;font-weight:600;display:inline-flex}.chip i{border-radius:50%;flex:none;display:inline-block;box-shadow:inset -2px -3px 4px #00000040}button.chip{cursor:pointer}.chip.on{border-color:var(--blue);background:#e7efff}.card .go{background:var(--orange);width:100%;margin-top:12px;padding:14px;font-size:18px;display:block}.chiprow{flex-wrap:wrap;justify-content:center;align-items:center;gap:6px;margin:6px 0;font-weight:700;display:flex}.score .who{opacity:.7;align-items:center;gap:4px;margin:0 5px;display:inline-flex}.score .who:before{content:"";background:var(--c);border-radius:50%;width:10px;height:10px}.score .who.now{opacity:1;font-weight:800}@media (max-width:560px){body.turns .score .who .nm,body.playing .title{display:none}.score .who{margin:0 3px}}body.clean .top,body.clean .hint,body.clean .bottom,body.clean .toast,body.clean .card,body.clean #setup{display:none!important}.card .made{text-align:center;margin:10px 0 0}.card .made a{color:inherit;opacity:.75;text-decoration:none}.card .made a:hover{opacity:1;text-decoration:underline}.card .challenge{text-align:center;background:#fff1c9;border-radius:12px;margin:6px 0 8px;padding:8px 12px;font-weight:700}
