.rnd{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"title" "lead" "form" "output" "promo";align-content:start;gap:16px;width:min(100% - 32px,var(--content));margin-inline:auto;padding-top:16px}@media(min-width:900px){.rnd{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);grid-template-areas:"title title" "lead lead" "form output" "promo promo";column-gap:32px;align-items:start}}.rnd__title{grid-area:title;margin:0;font-size:clamp(1.6rem,4vw,2.2rem)}.rnd__lead{grid-area:lead;margin:-8px 0 0;color:var(--muted)}.rnd__form{grid-area:form;min-width:0}.rnd__output{grid-area:output;display:grid;gap:10px;min-width:0}.rnd__promo{grid-area:promo}.rnd .ad-slot{grid-column:1 / -1}.rnd__hint{margin:8px 0 0;color:var(--muted);font-size:.85rem}.rnd__error{margin:10px 0 0;color:#d23c3c;font-size:.9rem}.rnd-modes,.rnd-chips{display:flex;flex-wrap:wrap;gap:6px}.rnd-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;margin-top:14px;padding:16px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface)}.rnd-field{display:grid;align-content:start;gap:6px;min-width:0;font-size:.9rem;font-weight:600}.rnd-field--wide{grid-column:1 / -1}.rnd-field__label{font-size:.9rem;font-weight:600}.rnd-field input[type=number],.rnd-field textarea,.rnd-custom-sides input{width:100%;min-height:44px;padding:8px 12px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--bg);font-weight:400}.rnd-field textarea{resize:vertical;line-height:1.45}.rnd-checks{display:flex;flex-wrap:wrap;gap:0 20px}.rnd-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.rnd-pair input{width:100%;min-height:44px;padding:8px 12px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--bg);font-weight:400}.rnd-check{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-weight:400;cursor:pointer}.rnd-check input{width:18px;height:18px;accent-color:var(--accent)}.rnd-custom-sides{display:inline-flex;align-items:center;gap:8px;font-weight:400}.rnd-custom-sides input{width:6.5em}.rnd-stage{position:relative;display:grid;justify-items:center;align-content:center;gap:1em;min-height:340px;padding:1.5em 1.25em;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow);text-align:center}.rnd-stage:fullscreen,body.pseudo-fullscreen .rnd-stage{min-height:100%;border:0;border-radius:0;background:var(--fullscreen-bg);font-size:clamp(1rem,2.2vw,2.2rem)}body.pseudo-fullscreen .rnd-stage{position:fixed;inset:0;z-index:1000}.rnd-stage__exit{display:none;position:absolute;top:16px;right:16px;width:44px;height:44px;border:0;border-radius:999px;background:var(--surface-2);color:var(--text);font-size:1.1rem;cursor:pointer}.rnd-stage:fullscreen .rnd-stage__exit,body.pseudo-fullscreen .rnd-stage__exit{display:block}.rnd-result{display:grid;justify-items:center;gap:.4em;width:100%;min-width:0}.rnd-result__empty,.rnd-result__spinning{margin:0;color:var(--muted)}.rnd-result__label{margin:0;color:var(--muted);font-size:.85em;font-weight:600;letter-spacing:.08em;text-transform:uppercase}.rnd-result__big{margin:0;max-width:100%;font-size:clamp(2rem,4.5em,5em);font-weight:800;line-height:1.1;overflow-wrap:anywhere}.rnd-result__total{margin:0;color:var(--muted);font-size:1.1em;font-weight:600}.rnd-result__numbers{display:flex;flex-wrap:wrap;justify-content:center;gap:.4em;margin:0}.rnd-result__numbers span{min-width:2.4em;padding:.35em .6em;border-radius:var(--radius-sm);background:var(--surface-2);font-size:1.4em;font-weight:700;font-variant-numeric:tabular-nums}.rnd-list{display:inline-grid;gap:.2em;margin:0;padding-left:1.6em;font-size:1.25em;font-weight:600;text-align:left}.rnd-teams{display:grid;grid-template-columns:repeat(auto-fit,minmax(10em,1fr));gap:.75em;width:100%}.rnd-team{padding:.75em 1em;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--bg);text-align:left}.rnd-team h3{margin:0 0 .4em;color:var(--accent);font-size:1em}.rnd-team .rnd-list{font-size:1em;font-weight:500}.rnd-stage__actions{display:flex;justify-content:center}.rnd-go{min-width:10em;min-height:52px;font-size:1.1em;font-weight:700}.rnd-tools{display:flex;flex-wrap:wrap;gap:8px}.wheel{order:-1;width:min(100%,420px);height:auto}.rnd-stage:fullscreen .wheel,body.pseudo-fullscreen .wheel{width:min(calc(100vh - 14em),80vw);min-width:200px}.wheel__disc{transform-origin:0 0;will-change:transform}.wheel__disc text{fill:#fff;font-family:var(--font);font-weight:600;pointer-events:none}.wheel__disc path,.wheel__disc circle{stroke:#ffffffd9;stroke-width:.6}.wheel__empty{fill:var(--surface-2)}.wheel__hub{fill:var(--surface);stroke:var(--border);stroke-width:1.5}.wheel__pointer{fill:var(--text);stroke:var(--surface);stroke-width:1.5;stroke-linejoin:round}.rnd-stage.has-wheel .rnd-result__big{font-size:clamp(1.6rem,3em,3.5em)}.rnd-dice{display:flex;flex-wrap:wrap;justify-content:center;gap:.6em;max-width:100%}.die{display:grid;place-items:center;width:4em;height:4em;border:1px solid rgb(0 0 0 / .12);border-radius:.8em;background:#fbfbf8;box-shadow:0 .15em .4em #0000002e,inset 0 -.2em #0000000f;color:#16181d}.die--number{font-size:1.6em;font-weight:800;width:2.5em;height:2.5em;border-radius:.5em}.die--pips{grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);padding:.55em}.die--pips i{width:.75em;height:.75em;border-radius:50%}.die--pips i.pip{background:#16181d}.rnd-dice:has(.die:nth-child(13)) .die--pips{width:3em;height:3em;padding:.4em}.rnd-dice:has(.die:nth-child(13)) .die--pips i{width:.55em;height:.55em}.is-rolling .die{animation:rnd-roll .55s ease-out}.is-rolling .die:nth-child(2n){animation-duration:.45s}@keyframes rnd-roll{0%{transform:translateY(-.6em) rotate(-200deg) scale(.8);opacity:.4}60%{transform:translateY(.1em) rotate(15deg) scale(1.03);opacity:1}to{transform:none}}.coin-toss{perspective:40em}.coin-toss.is-tossing{animation:rnd-toss 1.6s cubic-bezier(.3,.6,.4,1)}@keyframes rnd-toss{0%{transform:translateY(0) scale(.95)}40%{transform:translateY(-1.6em) scale(1.08)}to{transform:translateY(0) scale(1)}}.coin3d{position:relative;width:9em;height:9em;transform-style:preserve-3d}.coin__face{position:absolute;inset:0;display:grid;place-items:center;padding:1em;border-radius:50%;backface-visibility:hidden;-webkit-backface-visibility:hidden;box-shadow:inset 0 0 0 .45em #ffffff40,0 .3em 1em #00000040;font-weight:800;letter-spacing:.04em;line-height:1.15;text-transform:uppercase;overflow-wrap:anywhere}.coin__face--heads{background:radial-gradient(circle at 35% 30%,#f6e27a,#d4a514 60%,#9c7409);color:#5a4206}.coin__face--tails{background:radial-gradient(circle at 35% 30%,#eee,#b9bcc4 60%,#7d828e);color:#3a3e48;transform:rotateY(180deg)}.coin__face span{font-size:1.05em}.rnd-history__head{display:flex;align-items:center;gap:12px}.rnd-history__title{margin:0;font-size:1rem}.rnd-history__head .button{min-height:44px;margin-left:auto}.rnd-history__list{max-height:14em;margin:8px 0 0;padding-left:2.2em;overflow-y:auto;color:var(--muted);font-variant-numeric:tabular-nums}@media(prefers-reduced-motion:reduce){.is-rolling .die,.coin-toss.is-tossing{animation:none}}
