.bar{position:fixed;left:0;right:0;bottom:0;padding:0 40px calc(28px + env(safe-area-inset-bottom));display:grid;grid-template-columns:1fr auto 1fr;grid-template-areas:"score . ." "flavor controls tally";align-items:end;gap:16px;pointer-events:none}.flavor{grid-area:flavor;display:flex;flex-direction:column;align-items:flex-start;gap:10px;justify-self:start;padding-bottom:8px;pointer-events:auto}.controls{grid-area:controls;display:flex;flex-direction:column;align-items:center;gap:12px;pointer-events:auto}.scoreboard{grid-area:score;justify-self:start;width:312px;display:grid;grid-template-columns:1fr 1fr;gap:6px 12px;align-items:stretch}.card{min-width:0;padding:11px 16px 12px;border:1.5px solid var(--line);border-radius:16px;background:#ffffff8c;display:flex;flex-direction:column;gap:6px;transition:border-color .2s,box-shadow .2s,background .2s}.card.active{border-color:var(--plum);background:#fffc;box-shadow:0 0 0 3px #6a2d481f}.card .label{white-space:nowrap}.card .mood{font-weight:400;letter-spacing:.08em;text-transform:none}.card .score{font-family:var(--serif);font-size:44px;line-height:1;color:var(--ink);min-width:2ch;transition:color .2s}.card .score.drop{color:#b8477c}.card .turn{align-self:flex-start;font-size:11px;letter-spacing:.06em;color:var(--mauve);border:1.5px solid var(--line);border-radius:999px;padding:2px 9px;background:#ffffff80;visibility:hidden;white-space:nowrap}.card .turn b{font-weight:600;color:var(--plum)}.card.active .turn{visibility:visible}.speech{grid-column:2;margin:0;min-height:2.4em;font-family:var(--serif);font-style:italic;font-size:15px;line-height:1.2;color:var(--plum);opacity:0;transition:opacity .35s ease}.speech.show{opacity:1}.stats{grid-column:1/-1;text-align:center;margin:0;font-size:11px;letter-spacing:.06em;color:var(--mauve)}.settings{display:flex;align-items:center;gap:14px;flex-wrap:wrap;justify-content:center}.setting{display:flex;align-items:center;gap:8px}.setting .label{font-size:10px;letter-spacing:.14em;white-space:nowrap}.pill.small{height:32px;padding:0 12px;font-size:13px;gap:8px}.pill.small svg{width:15px;height:15px}.actions{display:flex;gap:10px}.actions .pill{min-width:150px;justify-content:space-between}.actions .pill.ghost{justify-content:space-between}.hint{text-align:center;max-width:360px}.tally{grid-area:tally;justify-self:end;text-align:left}.tally .label{margin-bottom:12px}.roll{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.faces{display:flex;align-items:center;gap:8px}.face{width:34px;height:34px;border:1.5px solid var(--line);border-radius:8px;display:grid;place-items:center;font-size:15px;color:var(--ink);background:#ffffff59}.face.wait{font-size:16px}.face.one{border-color:#b8477c;color:#b8477c}.event{margin:0;font-size:12px;font-weight:500;letter-spacing:.02em;color:var(--ink);max-width:150px;line-height:1.25}.event.bad{color:#a83c6f}.event.good{color:var(--plum)}.overlay{position:fixed;inset:0;z-index:5;display:grid;place-items:center;pointer-events:none;background:radial-gradient(ellipse at 50% 45%,#fbf8fa8c,#fbf8fa26 60%,#fbf8fa00)}.overlay[hidden]{display:none}.card-win{pointer-events:auto;text-align:center;padding:28px 36px 30px;max-width:min(88vw,420px);background:#ffffffe0;border:1.5px solid var(--line);border-radius:24px;box-shadow:0 20px 50px #3c14282e;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);animation:pop-in .35s cubic-bezier(.2,.9,.3,1.2) both}.card-win h2{font-family:var(--serif);font-weight:400;font-size:clamp(44px,7vw,72px);line-height:.95;letter-spacing:-.02em;margin:8px 0 6px}.card-win .final{font-family:var(--serif);font-size:22px;margin:0 0 4px;color:var(--ink)}.card-win .quip{font-family:var(--serif);font-style:italic;font-size:16px;color:var(--plum);margin:0 0 18px;min-height:1.2em}.card-win .pill{margin:0 auto}@keyframes pop-in{0%{opacity:0;transform:translateY(12px) scale(.96)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){.card-win{animation:none}.speech,.card,.card .score{transition:none}}@media(max-width:1000px){.bar{grid-template-columns:1fr;grid-template-areas:"flavor" "settings" "actions" "tally";padding:24px 16px calc(14px + env(safe-area-inset-bottom));gap:10px;background:linear-gradient(180deg,#f4eef200,#f4eef2eb 30%)}.controls{display:contents}.flavor{grid-area:flavor;flex-direction:row;align-items:center;justify-content:space-between;width:100%;gap:10px;padding-bottom:0}.flavor .label{flex:none}.swatches{gap:4px}.swatch{width:24px;height:24px}.settings{grid-area:settings;width:100%;justify-content:space-between;gap:8px;flex-wrap:nowrap}.setting{gap:0}.setting .label{display:none}.seg{gap:4px}.seg button{height:44px;padding:0 9px;border-radius:10px;font-size:12px}.pill.small{height:44px;width:44px;padding:0;justify-content:center;flex:none}.pill.small span{display:none}.actions{grid-area:actions;width:100%;max-width:560px;justify-self:center}.actions .pill{flex:1;min-width:0;height:48px}.hint{display:none}.tally{grid-area:tally;justify-self:stretch;display:flex;align-items:center;justify-content:space-between;gap:12px}.tally .label{margin-bottom:0}.roll{flex-wrap:nowrap}.faces{gap:6px}.face{width:30px;height:30px;font-size:13px;border-radius:7px}.event{max-width:150px;text-align:right}.scoreboard{position:fixed;left:16px;right:16px;width:auto;top:calc(36px + 1.72*clamp(40px,6.4vw,92px) + env(safe-area-inset-top));grid-template-columns:1fr 1fr;gap:6px 8px;pointer-events:none}.card{padding:8px 12px;gap:2px;background:#ffffffb3}.card .label{font-size:10px}.card .score{font-size:30px}.card .turn{font-size:10px;padding:1px 7px}.speech{font-size:14px;min-height:0}.stats{font-size:10px}}@media(max-width:760px){.scoreboard{top:calc(30px + 1.72*clamp(34px,10vw,56px) + env(safe-area-inset-top))}}@media(max-width:359px){.swatches{gap:3px;flex-wrap:wrap;justify-content:flex-end}.swatch{width:22px;height:22px}.settings{gap:6px;flex-wrap:wrap}.seg button{padding:0 6px;font-size:11px}.pill.small{width:40px;height:40px}}@media(max-height:520px)and (orientation:landscape){.bar{grid-template-columns:auto 1fr;grid-template-areas:"flavor settings" "actions actions";padding:14px 16px calc(12px + env(safe-area-inset-bottom));gap:8px 16px;align-items:center;background:linear-gradient(180deg,#f4eef200,#f4eef2e6 40%)}.controls{display:contents}.flavor{grid-area:flavor;flex-direction:row;align-items:center;justify-content:flex-start;width:auto;gap:10px;padding-bottom:0}.swatches{gap:4px;flex-wrap:nowrap}.swatch{width:24px;height:24px}.settings{grid-area:settings;justify-self:end;width:auto;justify-content:flex-end;gap:10px;flex-wrap:nowrap}.setting{gap:0}.setting .label{display:none}.seg{gap:4px}.seg button{height:36px;padding:0 9px;border-radius:9px;font-size:12px}.pill.small{height:36px;width:36px;padding:0;justify-content:center;flex:none}.pill.small span{display:none}.actions{grid-area:actions;width:100%;max-width:560px;justify-self:center}.actions .pill{flex:1;min-width:0;height:44px}.hint{display:none}.tally{position:fixed;right:16px;top:84px;justify-self:auto;display:block;pointer-events:none}.tally .label{margin-bottom:6px}.roll{flex-direction:column;align-items:flex-end;gap:4px;flex-wrap:nowrap}.faces{gap:6px}.face{width:28px;height:28px;font-size:13px;border-radius:7px}.event{text-align:right;max-width:130px;font-size:11px}.scoreboard{position:fixed;top:12px;left:50%;right:auto;transform:translate(-50%);width:min(440px,calc(100vw - 310px));grid-template-columns:1fr 1fr;gap:4px 8px;pointer-events:none}.card{padding:6px 10px;flex-direction:row;align-items:center;gap:6px;background:#ffffffb3}.card .label{font-size:9px}.card .score{font-size:26px}.card .turn{font-size:10px;padding:1px 7px;margin-left:auto}.speech{font-size:13px;min-height:0}.stats{font-size:10px}.card-win{padding:16px 24px 18px}.card-win h2{font-size:40px;margin-top:4px}.card-win .quip{margin-bottom:10px}}@media(max-height:520px)and (orientation:landscape)and (max-width:700px){.flavor .label,.speech,.card .mood{display:none}}
