*, *::before, *::after {
  box-sizing: border-box;
}

*:not(dialog) {
  margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;

}

body,html {
    height: 100%;
    overflow: hidden;
    background: #f3f0e8;
    color: #18181b;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

p {
  text-wrap: pretty;
}
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

#root, #__next {
  isolation: isolate;
}

body, html {
    font-family: Inter, system-ui, -apple-system, sans-serif;
}

:root {
    /* Styleguide-tokens (zie STYLEGUIDE.md / landing.css).
       --bg is hier bewust een tint donkerder dan op de landing:
       witte kaarten en invoervelden moeten eruit springen. */
    --bg: #f3f0e8;
    --card: #fffdf9;
    --tint: #faf8f3;
    --ink: #18181b;
    --muted: #6b7280;
    --border: #e9e7e2;
    --accent: #f08c00;
    --accent-soft: #fff4e0;
    --accent-dark: #92600a;
    --accent-border: #f5dcae;
    --good: #15803d;
    --bad: #e11d48;

    /* Optiekleuren A–F (styleguide): vaste volgorde, kleurenblind-gevalideerd.
       Server-theme kan deze per scherm overschrijven via inline style. */
    --a: #f08c00;
    --b: #0284c7;
    --c: #4338ca;
    --d: #e11d48;
    --e: #15803d;
    --f: #a855f7;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.app {
    height: 100%;
    background-color: var(--bg);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Schermen zijn full-width; de inhoud zelf blijft een gecentreerde kolom */
.form,
.mc-options,
.order-list,
.matching-area,
.open-answer,
.wc-body,
.scorebord-list {
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
}

.app:has(.result-wrong,.result-correct)   .player-header {
    position: absolute;
    width: 100%;
    background-color: transparent;
    border-bottom-color: transparent;
 }

/* Header ligt dan over het groene/rode uitslagvlak: inhoud wit */
.app:has(.result-wrong,.result-correct) .player-name,
.app:has(.result-wrong,.result-correct) .player-score-value {
    color: white;
}
.app:has(.result-wrong,.result-correct) .player-score {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.3);
}
.app:has(.result-wrong,.result-correct) .settings-btn {
    color: rgba(255, 255, 255, 0.6);
}
.app:has(.result-wrong,.result-correct) .settings-btn:hover {
    color: white;
}

/* Dots vallen anders weg tegen het groene/rode uitslagvlak (zelfde kleuren) */
.app:has(.result-wrong,.result-correct) .streak-dot {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.45);
}
.app:has(.result-wrong,.result-correct) .streak-dot-hot {
    animation: none;
}

.app.offline::after {
    content: 'Verbinding kwijt, opnieuw verbinden…';
    position: absolute;
    bottom: 1.25rem;
    z-index: 50;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: var(--bad);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    animation: fade-in 0.3s ease both;
    align-self: center;
}

@keyframes slide-in {
    from { transform: translateY(-40px); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}

@keyframes slide-out {
    from { transform: translateY(0);    opacity: 1; }
    to   { transform: translateY(40px); opacity: 0; }
}

.screen-enter {
    animation: slide-in 0.25s ease forwards;
}

.screen-exit {
    animation: slide-out 0.25s ease forwards;
    pointer-events: none;
    position: absolute;
    inset: 0;
}

.waiting-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--ink);
}

.waiting-screen .main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem;
}

.waiting-logo {
    width: 72px;
    height: 72px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 10px 18px rgba(240, 140, 0, 0.35))
            drop-shadow(0 2px 4px rgba(24, 24, 27, 0.12));
    animation: check-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both,
               waiting-bob 2.4s 0.5s ease-in-out infinite;
}

@keyframes waiting-bob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-9px); }
}

.waiting-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    animation: round-meta-enter 0.4s 0.15s ease both;
}

.waiting-sub {
    font-size: 0.82rem;
    color: var(--muted);
    font-weight: 500;
    animation: round-meta-enter 0.4s 0.25s ease both;
}

.waiting-tip {
    padding: 0 1.5rem 1.5rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--muted);
    text-align: center;
    animation: round-meta-enter 0.4s 0.5s ease both;
}

.waiting-tip svg {
    display: inline-block;
    vertical-align: -2px;
}

.blink-dots span {
    display: inline-block;
    animation: blink-dot 1.4s infinite;
    opacity: 0;
}
.blink-dots span:nth-child(2) { animation-delay: 0.25s; }
.blink-dots span:nth-child(3) { animation-delay: 0.5s; }

@keyframes blink-dot {
    0%, 100% { opacity: 0; }
    50%       { opacity: 1; }
}

/* Header */

.player-header {
    display: flex;
    position: absolute;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    z-index: 3;
    flex-shrink: 0;
}



.player-name {
    color: var(--ink);
    font-weight: 700;
    font-size: 0.95rem;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-score {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 0.28rem 0.7rem;
    border-radius: 8px;
}

/* Settings */

html[data-textsize="large"] { font-size: 115%; }
html[data-textsize="xl"]    { font-size: 130%; }

.settings-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0.28rem;
    margin-left: -0.28rem;
    color: #b6b2a9;
    cursor: pointer;
    flex-shrink: 0;
    transition: color 0.15s ease;
}

.settings-btn:hover { color: var(--ink); }

.settings-menu {
    position: absolute;
    top: 3.1rem;
    left: 0.75rem;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 11rem;
    padding: 0.4rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(24, 24, 27, 0.04), 0 12px 32px -10px rgba(24, 24, 27, 0.18);
    animation: round-meta-enter 0.2s ease both;
}

.settings-menu[hidden] { display: none; }

.settings-title {
    padding: 0.35rem 0.6rem 0.15rem;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
}

.settings-menu button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0.6rem;
    background: none;
    border: none;
    border-radius: 8px;
    color: var(--ink);
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.settings-menu button:hover { background: var(--bg); }

.settings-menu button.active {
    background: var(--accent-soft);
    color: var(--accent-dark);
}

.settings-menu button.active::after {
    content: '✓';
    font-weight: 800;
}

.settings-menu button[data-size="normal"] { font-size: 0.9rem; }
.settings-menu button[data-size="large"]  { font-size: 1.05rem; }
.settings-menu button[data-size="xl"]     { font-size: 1.2rem; }

.settings-title-lang {
    margin-top: 0.3rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
}

.settings-langs {
    display: flex;
    gap: 0.2rem;
}

.settings-langs button {
    flex: 1;
    justify-content: center;
    padding: 0.45rem 0;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
}

.settings-langs button.active::after {
    content: none;
}

.player-score-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ink);
}

/* Streak dots */

.streak-dots {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
}

.streak-dot {
    width: 7px;
    height: 7px;
    border-radius: 20%;
}

.streak-dot-good { background: var(--good); }
.streak-dot-bad  { background: var(--bad); }

.streak-dot-hot {
    animation: streak-glow 1.2s ease-in-out infinite;
}

.streak-flame {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--accent);
    margin-left: 0.1rem;
    animation: check-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes streak-glow {
    0%, 100% { box-shadow: 0 0 3px rgba(21, 128, 61, 0.4); }
    50%      { box-shadow: 0 0 8px rgba(21, 128, 61, 0.9); }
}

/* Join screen */

.join-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    gap: 2.5rem;
    background: var(--bg);
    color: var(--ink);
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: var(--ink);
    animation: round-meta-enter 0.5s ease both;
}

.join-screen .form {
    max-width: 380px;
    animation: round-meta-enter 0.5s 0.12s ease both;
}

.logo img {
    width: 56px;
    height: 56px;
}

.logo h1 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--ink);
}

.join-sub {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--muted);
    margin-top: -0.35rem;
    text-align: center;
}

.join-hint {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--muted);
    text-align: center;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.form input {
    width: 100%;
    font-weight: 700;
    padding: 8px;
    text-align: center;
    border: none;
    outline: none;
    background: transparent;
    color: var(--ink);
    font-size: 1.125rem;
}
.form input[inputmode="numeric"] {
    letter-spacing: 0.3em;
    font-size: 1.375rem;
}

.form input::placeholder {
    color: #c9c5bc;
    letter-spacing: 0.2em;
}

.form .grouped {
    border: 1px solid var(--border);
    display: grid;
    background: #fff;
    border-radius: 12px;
    padding: 4px;
    grid-template-columns: 1fr auto;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.form .grouped:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.form button {
    width: 100%;
    font-weight: 600;
    color: white;
    padding: 12px 16px;
    background: var(--ink);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(24, 24, 27, 0.15);
    transition: background 0.15s, transform 0.1s, color 0s;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form button:hover {
    background: #333338;
}

.form button:active {
    transform: scale(0.98);
}


.lang-select {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    margin-top: -1.25rem;
    animation: round-meta-enter 0.5s 0.2s ease both;
}

.lang-select span {
    font-size: 0.7rem;
    color: var(--border);
    user-select: none;
}

.lang-select button {
    background: none;
    border: none;
    padding: 4px 7px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--muted);
    cursor: pointer;
    transition: color 0.15s;
}

.lang-select button:hover {
    color: var(--ink);
}

.lang-select button.active {
    color: var(--ink);
    font-weight: 700;
}

.error {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--bad);
    text-align: center;
}

.error:not([hidden]) {
    animation: result-shake 0.4s ease both;
}

.loader {
    width: 1em;
    height: 1em;
    border: 0.15em solid #FFF;
    border-bottom-color: transparent;
    border-radius: 50%;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    position: absolute;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Announce screen */

.announce-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 3rem 2rem 2.5rem;
    background: var(--bg);
    color: var(--ink);
}

/* Gecentreerde inhoudskolom; tekst blijft links uitgelijnd */
.announce-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    width: 100%;
    max-width: 40rem;
    margin-inline: auto;
}

.announce-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    animation: round-title-enter 0.5s ease both;
}

.announce-dot {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    animation: announce-pulse 1.4s ease-in-out infinite;
}

.announce-question {
    font-size: clamp(1.6rem, 7vw, 2.3rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
    text-wrap: pretty;
    animation: round-title-enter 0.7s 0.12s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}

/* announce-pulse wordt ook gebruikt door .slide-icon */
@keyframes announce-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(240, 140, 0, 0.55); }
    50%      { box-shadow: 0 0 0 6px rgba(240, 140, 0, 0); }
}

/* MC screen */

.mc-screen, .open-screen, .fb-screen, .order-screen, .matching-screen, .numimg-screen, .wc-screen {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--bg);
    color: var(--ink);
}

.question {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: var(--card);
    color: var(--ink);
    border-bottom: 1px solid var(--border);
    position: relative;
}

.question-timer {
    background: #e5e1d5;
    height: 6px;
    flex-shrink: 0;
}

.timer-bar {
    position: relative;
    height: 100%;
    background: linear-gradient(90deg, #0b4a24, #15803d 55%, #1fa353);
    box-shadow: 0 0 10px rgba(11, 74, 36, 0.45);
    transform-origin: left;
    overflow: hidden;
}

.timer-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.22) 0 8px, transparent 8px 16px);
    animation: timer-stripes 0.9s linear infinite;
}

.timer-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #be123c, #f08c00);
    box-shadow: 0 0 10px rgba(225, 29, 72, 0.4);
    opacity: 0;
    animation: timer-urgency var(--timer-duration, 20s) linear both;
}

/* 16px streepperiode op -45deg: één naadloze loop is 16 × √2 ≈ 22.63px horizontaal */
@keyframes timer-stripes {
    from { background-position: 0 0; }
    to   { background-position: 22.63px 0; }
}

@keyframes timer-urgency {
    0%, 70% { opacity: 0; }
    82%, 100% { opacity: 1; }
}
.question:has(.points-value) {
    background-color: var(--card);
    color: var(--ink);
}

.question.result-correct,.question.result-wrong {
    flex: 3;
}

.question.result-correct,
.mc-wait.result-correct {
    background: radial-gradient(ellipse at 50% 35%, #1fb968 0%, #15803d 65%, #116632 100%);
}

.question.result-wrong,
.mc-wait.result-wrong {
    background: radial-gradient(ellipse at 50% 35%, #f43f5e 0%, #e11d48 65%, #be123c 100%);
}

.question.result-correct,
.question.result-wrong,
.mc-wait.result-correct,
.mc-wait.result-wrong {
    color: white;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}



.question-text {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.2;
    max-width: 40rem;
}

.mc-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 0.5rem;
    flex: 1;
}

.mc-option {
    display: grid;
    grid-template-columns: auto 1fr;
    background: var(--color, #e11d48);
    align-items: center;
    color: white;
    text-align: start;
    border: none;
    border-radius: 10px;
    gap: 8px;
}

.mc-option:active {
    filter: brightness(0.88);
    transform: scale(0.96);
}

.mc-option-a { --color: var(--a); }
.mc-option-b { --color: var(--b); }
.mc-option-c { --color: var(--c); }
.mc-option-d { --color: var(--d); }
.mc-option-e { --color: var(--e); }
.mc-option-f { --color: var(--f); }

/* Optie A (amber) krijgt donkere tekst: wit haalt het contrast niet (styleguide) */
.mc-option-a { color: #18181b; }
.mc-option-a .mc-key { color: white; }
.order-item.opt-a, .match-item.opt-a { color: #18181b; }
.opt-a .order-handle, .opt-a .match-handle { color: rgba(0, 0, 0, 0.4); }

.mc-key {
    display: grid;
    height: 22px;
    width: 22px;
    align-items: center;
    justify-content: center;
    background-color: color-mix(in srgb, var(--color) 75%, black);
    border-radius: 50%;
    font-size: 0.62rem;
    font-weight: 800;
    flex-shrink: 0;
}

.mc-value {
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.25;
}

.mc-option.multi-selected {
    box-shadow: inset 0 0 0 3px rgba(0, 0, 0, 0.5);
    filter: brightness(1.12);
}



.mc-confirm {
    margin: 0.5rem auto;
    width: calc(100% - 1rem);
    max-width: 560px;
    padding: 0.85rem;
    background: var(--ink);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(24, 24, 27, 0.15);
    transition: background 0.15s, transform 0.1s, opacity 0.2s, filter 0.2s;
    opacity: 0.4;
    filter: saturate(0.3);
}

.mc-confirm.armed {
    opacity: 1;
    filter: none;
    animation: confirm-pulse 1.8s ease-out infinite;
}

@keyframes confirm-pulse {
    0% { box-shadow: 0 0 0 0 rgba(24, 24, 27, 0.35); }
    60% { box-shadow: 0 0 0 10px rgba(24, 24, 27, 0); }
    100% { box-shadow: 0 0 0 0 rgba(24, 24, 27, 0); }
}

.mc-confirm:hover {
    background: #333338;
}

.mc-confirm:active {
    transform: scale(0.98);
}

/* Submitted state */

.mc-options.submitted .mc-option {
    opacity: 0.25;
    pointer-events: none;
    transition: opacity 0.35s ease;
    padding: 20px;
}

.mc-options.submitted .mc-option.selected {
    opacity: 1;
    animation: pulse-selected 1.6s ease-in-out infinite;
}

@keyframes pulse-selected {
    0%, 100% { filter: brightness(1); }
    50%       { filter: brightness(1.12); }
}

.mc-wait {
    padding: 1.1rem 1rem;
    flex: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    background: var(--card);
    /* animation: slide-up 0.25s ease forwards; */
}

.mc-wait-check {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(21, 128, 61, 0.1);
    border: 1.5px solid rgba(21, 128, 61, 0.4);
    color: var(--good);
    animation: check-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes check-pop {
    from { transform: scale(0.4); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.mc-wait-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    animation: round-meta-enter 0.4s 0.1s ease both;
}

.mc-wait-sub {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--muted);
    animation: round-meta-enter 0.4s 0.2s ease both;
}

.points-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    /* animation: fade-in 0.3s ease forwards; */
}

.points-value {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    color: inherit;
}

.points-value::before {
    content: '+';
    font-size: 2rem;
    font-weight: 700;
    vertical-align: super;
    margin-right: 2px;
}

.points-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.points-streak {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.4rem;
    padding: 0.35rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    font-size: 0.95rem;
    font-weight: 700;
    animation: check-pop 0.5s 1s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes fade-in {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

/* Pause overlay */

.pause-overlay {
    position: absolute;
    inset: 0;
    z-index: 60;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    background: rgba(243, 240, 232, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--ink);
    text-align: center;
    padding: 1rem;
    animation: fade-in 0.25s ease both;
}

.pause-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent-soft);
    border: 1.5px solid var(--accent-border);
    color: var(--accent-dark);
    margin-bottom: 0.65rem;
    animation: pause-pulse 2.2s ease-in-out infinite;
}

@keyframes pause-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.07); }
}

.pause-title {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.pause-sub {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--muted);
}

.pause-player {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 0.45rem 0.9rem;
    border-radius: 10px;
    max-width: 100%;
}

.pause-player-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pause-player-points {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
}

.pause-points-value {
    font-weight: 700;
    color: var(--ink);
}

@keyframes slide-up {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* Result state */

.mc-options.result .mc-option {
    opacity: 0.2;
    pointer-events: none;
    transition: opacity 0.4s ease;
    padding: 20px;
}

.mc-options.result .mc-option.correct {
    opacity: 1;
    animation: pop-correct 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.mc-options.result .mc-option.selected:not(.correct) {
    opacity: 0.6;
}

@keyframes pop-correct {
    from { transform: scale(0.93); }
    to   { transform: scale(1); }
}

.mc-wait.result-correct,
.mc-wait.result-wrong {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    min-height: calc(5rem + 1.125rem + 0.5rem + 4rem);
    animation: fade-in 0.3s ease both;
    /* zelfde boxmaten als .question, anders verschuift de layout bij de wissel naar de puntenweergave */
    padding: 24px 16px;
    border-bottom: 1px solid transparent;
}

.result-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    animation: check-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.result-icon {
    color: white;
    background: rgba(255, 255, 255, 0.16);
    border: 2px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.result-wrong .result-icon {
    animation: check-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both,
               result-shake 0.4s 0.5s ease both;
}

@keyframes result-shake {
    0%, 100% { transform: translateX(0); }
    20%      { transform: translateX(-7px); }
    40%      { transform: translateX(6px); }
    60%      { transform: translateX(-4px); }
    80%      { transform: translateX(3px); }
}

.result-title {
    animation: round-meta-enter 0.4s 0.15s ease both;
}

.question.result-correct .points-display,
.question.result-wrong .points-display {
    animation: fade-in 0.3s ease both;
}

.question.result-correct .points-label,
.question.result-wrong .points-label {
    color: rgba(255, 255, 255, 0.8);
}

.points-wrong .points-value::before {
    content: none;
}


/* Ended screen */

.ended-screen {
    flex: 1;
    display: grid;
    grid-template-rows: 1fr auto;
    background: var(--bg);
    color: var(--ink);
}

.ended-screen:has(.ended-rank-1) {
    background:
        radial-gradient(circle at 50% 12%, rgba(240, 140, 0, 0.09), transparent 60%),
        var(--bg);
}

.ended-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    text-align: center;
}

.ended-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
}

.ended-rank {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
}

.ended-rank[hidden] { display: none; }

.ended-rank-value {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: white;
    background: var(--ink);
    box-shadow: 0 1px 2px rgba(24, 24, 27, 0.15), 0 12px 32px -10px rgba(24, 24, 27, 0.25);
    animation: ended-badge-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.ended-rank-1 .ended-rank-value {
    background: linear-gradient(160deg, #ffe08a, #d9971c);
    color: #4a3305;
    box-shadow: 0 12px 32px -10px rgba(217, 151, 28, 0.45), inset 0 2px 0 rgba(255, 255, 255, 0.55);
}

.ended-rank-2 .ended-rank-value {
    background: linear-gradient(160deg, #eef2f6, #97a5b3);
    color: #2c3540;
    box-shadow: 0 12px 32px -10px rgba(151, 165, 179, 0.45), inset 0 2px 0 rgba(255, 255, 255, 0.6);
}

.ended-rank-3 .ended-rank-value {
    background: linear-gradient(160deg, #efae6c, #a35d22);
    color: #3d2306;
    box-shadow: 0 12px 32px -10px rgba(163, 93, 34, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.35);
}

.ended-rank-sub {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--muted);
}

@keyframes ended-badge-pop {
    from { transform: scale(0.5); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

.ended-name {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-top: -0.7rem;
    margin-bottom: 0.4rem;
}

.ended-points {
    margin-top: 0.5rem;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    font-variant-numeric: tabular-nums;
}

.ended-questions-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--muted);
    margin-top: -0.6rem;
}

.ended-questions-text[hidden] { display: none; }

.ended-streak-dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
    max-width: 16rem;
    margin-top: 0.1rem;
}

.ended-streak-dots .streak-dot {
    width: 10px;
    height: 10px;
}

.ended-streak-dots[hidden] { display: none; }

.ended-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--border);
}

.ended-thanks {
    font-size: 1rem;
    font-weight: 700;
}

.ended-sub {
    font-size: 0.82rem;
    color: var(--muted);
    font-weight: 500;
}

/* Feedback op het ended-scherm */

.ended-screen.feedback-mode {
    grid-template-rows: 1fr;
}

.ended-screen.feedback-mode .ended-top {
    display: none;
}

.ended-screen.feedback-mode .ended-bottom {
    justify-content: center;
    border-top: none;
}

.ended-feedback {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 22rem;
}

.ended-feedback[hidden] { display: none; }

.feedback-title {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--muted);
}

.feedback-mode .feedback-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
}

.feedback-stars {
    display: flex;
    gap: 0.3rem;
}

.feedback-star {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.7rem;
    line-height: 1;
    padding: 0.1rem 0.15rem;
    color: #e2ded5;
    transition: color 0.15s, transform 0.1s;
}

.feedback-mode .feedback-star {
    font-size: 2rem;
}

.feedback-star:hover {
    transform: scale(1.15);
}

.feedback-star.selected {
    color: var(--accent);
}

.feedback-extra {
    display: none;
    flex-direction: column;
    gap: 0.6rem;
    width: 100%;
}

.feedback-rated .feedback-extra {
    display: flex;
    animation: feedback-extra-in 0.25s ease both;
}

@keyframes feedback-extra-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.feedback-text {
    resize: none;
    font-family: inherit;
    font-size: 0.9rem;
}

.feedback-submit {
    padding: 0.85rem;
    background: var(--ink);
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(24, 24, 27, 0.15);
    transition: background 0.15s, transform 0.1s;
}

.feedback-submit:hover {
    background: #333338;
}

.feedback-submit:active {
    transform: scale(0.98);
}

.ended-feedback-done {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    animation: feedback-extra-in 0.25s ease both;
}

.ended-feedback-done[hidden] { display: none; }

/* Guess number */

.gn-input-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.gn-input-wrap .open-input {
    flex: 1;
    min-width: 0;
}

.gn-unit {
    font-size: 1rem;
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
}

.gn-correct {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--muted);
    text-align: center;
}

/* Open-ended screen */



.open-answer {
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1rem 1rem;
    gap: 0.75rem;
}

.open-input {
    border: 1px solid var(--border);
    background: #fff;
    color: var(--ink);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    outline: none;
    width: 100%;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.open-input::placeholder {
    color: #b6b2a9;
}

.open-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.open-input:disabled {
    background: var(--bg);
    border-color: var(--border);
    color: var(--ink);
    -webkit-text-fill-color: var(--ink);
    opacity: 1;
}

.open-submit {
    padding: 0.85rem;
    background: var(--ink);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(24, 24, 27, 0.15);
    transition: background 0.15s, transform 0.1s;
}

.open-submit:hover {
    background: #333338;
}

.open-submit:active {
    transform: scale(0.98);
}

.open-submit:disabled {
    opacity: 0.4;
    cursor: default;
}

/* Open-ended answer feedback */

.input-icon-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-right: 0.9rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
}

.input-icon-wrap .open-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: none;
}

:is(.answer-correct, .answer-wrong) .open-input {
    color: var(--ink);
    -webkit-text-fill-color: var(--ink);
}

.answer-correct .open-input,
.open-input.answer-correct { border-color: var(--good); }

.answer-wrong .open-input,
.open-input.answer-wrong   { border-color: var(--bad); }

.answer-correct .input-icon-wrap,
.input-icon-wrap.answer-correct {
    border-color: var(--good);
    background: rgba(21, 128, 61, 0.07);
}

.answer-wrong .input-icon-wrap,
.input-icon-wrap.answer-wrong {
    border-color: var(--bad);
    background: rgba(225, 29, 72, 0.06);
}

.answer-icon {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
}

.answer-correct .answer-icon { color: var(--good); }
.answer-wrong   .answer-icon { color: var(--bad); }

/* MC result indicator on selected option */

.mc-options.result .mc-option.selected {
    grid-template-columns: auto 1fr auto;
}

.mc-indicator {
    padding-right: 8px;
    font-weight: 800;
    font-size: 1rem;
}



/* Numbered image screen */



/* Order screen */


.order-list {
    list-style: none;
    padding: 0.75rem;
    display: grid;
    grid-auto-rows: 1fr;
    gap: 0.5rem;
    flex: 1;
}

.order-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.75rem;
    background: var(--color, #e11d48);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: grab;
    user-select: none;
    touch-action: none;
}

.order-item[draggable="false"] {
    cursor: default;
}

.order-num {
    display: grid;
    height: 24px;
    width: 24px;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--color, #e11d48) 75%, black);
    color: white;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 800;
    flex-shrink: 0;
}


.order-text {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.3;
}

.order-handle {
    color: rgba(255, 255, 255, 0.45);
    font-size: 1.4rem;
    line-height: 1;
}

.order-submit {
    margin: 0.5rem auto;
    width: calc(100% - 1rem);
    max-width: 560px;
    padding: 0.85rem;
    background: var(--ink);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(24, 24, 27, 0.15);
    transition: background 0.15s, transform 0.1s;
}

.order-submit:hover {
    background: #333338;
}

.order-submit:active {
    transform: scale(0.98);
}

.order-item.item-correct { --color: var(--good); color: white; }
.order-item.item-wrong   { --color: var(--bad); color: white; }

.order-item.item-correct .answer-icon { color: rgba(255, 255, 255, 0.9); }
.order-item.item-wrong   .answer-icon { color: rgba(255, 255, 255, 0.9); }

/* Matching screen */


.matching-area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 0.75rem;
    flex: 1;
}

.matching-left,
.matching-right {
    display: grid;
    grid-auto-rows: 1fr;
    gap: 0.5rem;
}

.match-item {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 8px;
    padding: 0.7rem 0.6rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.3;
}

.match-key {
    display: grid;
    height: 22px;
    width: 22px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.62rem;
    font-weight: 800;
    flex-shrink: 0;
}

.match-left-item .match-key {
    background: color-mix(in srgb, var(--color, #e11d48) 75%, black);
    color: white;
}

.match-right-item .match-key {
    background: color-mix(in srgb, var(--color, #e11d48) 75%, black);
    color: white;
}

.match-left-item {
    background: var(--color, #e11d48);
    color: white;
}

.match-right-item {
    grid-template-columns: auto 1fr auto;
    background: var(--color, #e11d48);
    color: white;
    cursor: grab;
}

.match-right-item[draggable="false"] {
    cursor: default;
}

.match-right-item.item-correct { --color: var(--good); color: white; }
.match-right-item.item-wrong   { --color: var(--bad); color: white; }

.match-right-item .answer-icon { color: rgba(255, 255, 255, 0.9); }

.match-swapping { filter: brightness(1.2); outline: 3px solid rgba(255,255,255,0.6); }

/* Scorebord screen */

.scorebord-screen {
    flex: 1;
    display: grid;
    grid-template-rows: auto 1fr;
    background: var(--bg);
    color: var(--ink);
    overflow: hidden;
}

.scorebord-header {
    padding: 1.25rem 1rem 0.75rem;
    text-align: center;
}

.scorebord-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
}

.scorebord-list {
    list-style: none;
    padding: 0 0.5rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    overflow-y: auto;
}

.scorebord-item {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.9rem;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--border);
    font-size: 0.95rem;
    font-weight: 600;
    animation: scorebord-enter 0.35s ease both;
}

@keyframes scorebord-enter {
    from { opacity: 0; transform: translateX(-16px); }
    to   { opacity: 1; transform: translateX(0); }
}

.scorebord-item.scorebord-me {
    background: var(--accent-soft);
    border-color: var(--accent-border);
    box-shadow: 0 6px 20px -6px rgba(240, 140, 0, 0.25);
}

.scorebord-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--muted);
}

.scorebord-item.scorebord-me .scorebord-rank {
    color: var(--accent-dark);
}

.scorebord-item.scorebord-top-1 .scorebord-rank {
    background: linear-gradient(160deg, #ffe08a, #d9971c);
    color: #4a3305;
}

.scorebord-item.scorebord-top-2 .scorebord-rank {
    background: linear-gradient(160deg, #eef2f6, #97a5b3);
    color: #2c3540;
}

.scorebord-item.scorebord-top-3 .scorebord-rank {
    background: linear-gradient(160deg, #efae6c, #a35d22);
    color: #3d2306;
}

.scorebord-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scorebord-move {
    font-size: 0.6rem;
    font-weight: 800;
}

.scorebord-up   { color: var(--good); }
.scorebord-down { color: var(--bad); }

.scorebord-score {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* Round announcement screen */

.round-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--bg);
    color: var(--ink);
    padding: 2.5rem 2rem;
    gap: 0.75rem;
}

.round-main {
    display: contents;
}

/* Gecentreerde inhoudskolom; tekst blijft links uitgelijnd */
.round-label,
.round-title,
.round-meta {
    width: 100%;
    max-width: 40rem;
    margin-inline: auto;
}

.round-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    animation: round-title-enter 0.5s ease both;
}

.round-title {
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--ink);
    animation: round-title-enter 0.7s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}

@keyframes round-title-enter {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.94);
        filter: blur(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.round-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    animation: round-meta-enter 0.5s 0.3s ease both;
}

@keyframes round-meta-enter {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.round-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.85rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 999px;
}

.round-meta-key {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.round-meta-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ink);
}

/* Word cloud screen */


.wc-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
}

.wc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 12px;
}

.wc-tag {
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
}

.wc-tries {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--muted);
    text-align: center;
}

/* Countdown screen */

.countdown-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    background: var(--bg);
    color: var(--ink);
    text-align: center;
}

.countdown-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.countdown-number {
    font-size: 8rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
}

@keyframes countdown-pulse {
    from { transform: scale(1.25); opacity: 0.6; }
    to   { transform: scale(1);    opacity: 1; }
}

.countdown-number.tick {
    animation: countdown-pulse 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Slide screen */

.slide-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    background: var(--bg);
    color: var(--ink);
    text-align: center;
    padding: 2rem;
}

.slide-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--accent-soft);
    border: 1.5px solid var(--accent-border);
    color: var(--accent-dark);
    animation: check-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.slide-icon::after {
    content: "";
    position: absolute;
    inset: -1.5px;
    border-radius: 50%;
    animation: announce-pulse 2.2s ease-in-out 0.6s infinite;
}

.slide-title {
    max-width: 24rem;
    font-size: clamp(1.4rem, 6vw, 1.8rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
    text-wrap: balance;
    animation: round-title-enter 0.6s 0.1s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}

.slide-sub {
    margin-top: -0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--muted);
    animation: round-meta-enter 0.5s 0.35s ease both;
}

/* Spin wheel screen */

.spinn-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    background: var(--bg);
    color: var(--ink);
    text-align: center;
    padding: 2rem;
}

.spinn-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    transition: color 0.4s ease;
}

.spinn-ring {
    width: 120px;
    height: 120px;
    border: 8px solid var(--border);
    border-top-color: var(--accent);
    border-right-color: var(--accent-border);
    border-radius: 50%;
    animation: spinn-rotate 0.7s linear infinite;
}

.spinn-ring.slowing {
    animation-duration: 2.5s;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
}

@keyframes spinn-rotate {
    to { transform: rotate(360deg); }
}

.spinn-result {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    min-height: 2.6rem;
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.spinn-result.visible {
    opacity: 1;
    transform: scale(1);
}

[hidden] {
    display: none;
}
