/* =========================================================================
   Woop - design system
   Mobile first. No UI framework, everything below is specific to Woop.
   ========================================================================= */

:root {
    color-scheme: light dark;

    --woop-brand-from: #7c5cff;
    --woop-brand-to: #ff5f9e;

    --woop-bg: #f5f6fb;
    --woop-bg-accent: radial-gradient(120% 90% at 100% 0%, rgba(124, 92, 255, .18) 0%, rgba(255, 95, 158, .10) 40%, rgba(245, 246, 251, 0) 70%);
    --woop-surface: #ffffff;
    --woop-surface-2: #eef0f7;
    --woop-surface-3: #e3e6f0;

    --woop-text: #14161f;
    --woop-text-muted: #676d82;
    --woop-text-inverse: #ffffff;

    --woop-border: rgba(20, 22, 31, .09);
    --woop-border-strong: rgba(20, 22, 31, .16);

    --woop-danger: #e5484d;
    --woop-success: #17a673;
    --woop-warning: #d99100;

    --woop-radius-xs: 10px;
    --woop-radius-sm: 14px;
    --woop-radius-md: 18px;
    --woop-radius-lg: 24px;
    --woop-radius-xl: 30px;

    --woop-shadow-sm: 0 1px 2px rgba(16, 18, 30, .06), 0 2px 8px rgba(16, 18, 30, .05);
    --woop-shadow-md: 0 6px 20px rgba(16, 18, 30, .10);
    --woop-shadow-lg: 0 18px 48px rgba(16, 18, 30, .18);

    --woop-space-1: 4px;
    --woop-space-2: 8px;
    --woop-space-3: 12px;
    --woop-space-4: 16px;
    --woop-space-5: 24px;
    --woop-space-6: 32px;
    --woop-space-7: 48px;

    --woop-safe-top: env(safe-area-inset-top, 0px);
    --woop-safe-bottom: env(safe-area-inset-bottom, 0px);

    --woop-ease: cubic-bezier(.22, .61, .36, 1);
    --woop-content-width: 1120px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --woop-bg: #0e1017;
        --woop-bg-accent: radial-gradient(120% 90% at 100% 0%, rgba(124, 92, 255, .28) 0%, rgba(255, 95, 158, .12) 40%, rgba(14, 16, 23, 0) 70%);
        --woop-surface: #181b25;
        --woop-surface-2: #212533;
        --woop-surface-3: #2b3041;

        --woop-text: #f2f4fb;
        --woop-text-muted: #9aa2bb;

        --woop-border: rgba(255, 255, 255, .10);
        --woop-border-strong: rgba(255, 255, 255, .20);

        --woop-shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
        --woop-shadow-md: 0 8px 24px rgba(0, 0, 0, .45);
        --woop-shadow-lg: 0 20px 50px rgba(0, 0, 0, .55);
    }
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    /* Woop runs as an installed PWA - there is no browser chrome to reveal an accidental
       horizontal overflow, and no way for the user to pinch-zoom or swipe back to center. Any
       row that would overflow must shrink or truncate instead (see .admin-bar), this is only
       the last-resort safety net so a future regression can never hide content off-screen.
       Deliberately only on <html>, not <body>: setting it on both gives body its own (empty,
       since it just grows via min-height to fit its content) overflow-y:auto scroll container:
       combined with body's overscroll-behavior-y:none below, that dead-end swallowed every mouse
       wheel tick instead of letting it bubble up to <html> - the one that actually scrolls -
       leaving only the native scrollbar drag (which targets <html> directly) working. */
    overflow-x: hidden;
    /* html is the actual scroll container (see above), so the pull-to-refresh gesture has to be
       killed here too - body's overscroll-behavior-y below only stops it on body's own (unused)
       scroll box. */
    overscroll-behavior-y: none;
    /* Belt-and-suspenders for double-tap-to-zoom: some Android WebViews still honor it even with
       user-scalable=no on the viewport meta. */
    touch-action: manipulation;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background-color: var(--woop-bg);
    background-image: var(--woop-bg-accent);
    background-attachment: fixed;
    color: var(--woop-text);
    font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overscroll-behavior-y: none;
}

h1, h2, h3, h4 {
    margin: 0 0 var(--woop-space-3);
    line-height: 1.15;
    letter-spacing: -.02em;
    font-weight: 800;
}

h1 { font-size: clamp(2rem, 8vw, 2.75rem); }
h2 { font-size: clamp(1.3rem, 5vw, 1.6rem); }
h3 { font-size: 1.1rem; }

p { margin: 0 0 var(--woop-space-3); }

a {
    color: inherit;
    text-decoration: none;
}

img, svg { max-width: 100%; }

button, input, select, textarea {
    font: inherit;
    color: inherit;
}

:focus-visible {
    outline: 3px solid var(--woop-brand-from);
    outline-offset: 2px;
}

.woop-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------------------------------------------------------------- layout */

.app-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

.app-bar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: var(--woop-space-3);
    padding: calc(var(--woop-safe-top) + 10px) var(--woop-space-4) 10px;
    background: var(--woop-bg);
    background: color-mix(in srgb, var(--woop-bg) 82%, transparent);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s var(--woop-ease);
}

.app-bar.is-scrolled {
    border-bottom-color: var(--woop-border);
}

.app-bar__brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 900;
    font-size: 1.15rem;
    letter-spacing: -.03em;
}

.app-bar__logo {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: .95rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--woop-brand-from), var(--woop-brand-to));
    box-shadow: var(--woop-shadow-sm);
}

.app-bar__spacer { flex: 1; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.language-switcher {
    position: relative;
    flex-shrink: 0;
}

.language-switcher__trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid var(--woop-border);
    background: var(--woop-surface);
    color: inherit;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.language-switcher__trigger::-webkit-details-marker {
    display: none;
}

.language-switcher__chevron {
    color: var(--woop-text-muted);
    transition: transform .15s ease;
}

.language-switcher[open] .language-switcher__chevron {
    transform: rotate(180deg);
}

.flag-icon {
    display: inline-flex;
    align-items: center;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(127, 127, 127, .25);
    flex-shrink: 0;
}

.flag-icon svg {
    display: block;
}

.language-switcher__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 40;
    min-width: 160px;
    padding: 6px;
    border-radius: 16px;
    border: 1px solid var(--woop-border);
    background: var(--woop-surface);
    box-shadow: var(--woop-shadow-md, var(--woop-shadow-sm));
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.language-switcher__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    font-size: .9rem;
}

.language-switcher__item:hover,
.language-switcher__item:focus-visible {
    background: var(--woop-surface-2, rgba(127, 127, 127, .12));
}

.language-switcher__item.is-active {
    background: var(--woop-brand-from, rgba(127, 127, 127, .18));
    color: #fff;
}

#woop-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

[data-woop-page] {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.app-main {
    flex: 1;
    width: 100%;
    max-width: var(--woop-content-width);
    margin: 0 auto;
    padding: var(--woop-space-4) var(--woop-space-4) calc(var(--woop-space-6) + var(--woop-safe-bottom));
}

.app-footer {
    padding: var(--woop-space-5) var(--woop-space-4) calc(var(--woop-space-6) + var(--woop-safe-bottom));
    text-align: center;
    color: var(--woop-text-muted);
    font-size: .85rem;
}

.app-footer a { text-decoration: underline; text-underline-offset: 3px; }

.app-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--woop-space-4);
    justify-content: center;
    margin-bottom: var(--woop-space-2);
}

.page-head { margin-bottom: var(--woop-space-4); }

.page-head__eyebrow {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .7rem;
    font-weight: 800;
    color: var(--woop-text-muted);
}

.page-head__sub {
    color: var(--woop-text-muted);
    margin: 0;
}

.section { margin-top: var(--woop-space-6); }

.section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--woop-space-3);
    margin-bottom: var(--woop-space-3);
}

.section__head h2 { margin: 0; }

.stack { display: grid; gap: var(--woop-space-3); }
.stack--sm { gap: var(--woop-space-2); }
.stack--lg { gap: var(--woop-space-5); }

.row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--woop-space-2);
    align-items: center;
}

.row--end { justify-content: flex-end; }
.text-muted { color: var(--woop-text-muted); }
.text-center { text-align: center; }
.text-small { font-size: .85rem; }

/* --------------------------------------------------------------- buttons */

.btn {
    --btn-bg: var(--woop-surface);
    --btn-fg: var(--woop-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 var(--woop-space-5);
    border: 1px solid var(--woop-border);
    border-radius: var(--woop-radius-xl);
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: transform .12s var(--woop-ease), box-shadow .2s var(--woop-ease), opacity .2s var(--woop-ease);
}

.btn:active { transform: scale(.97); }

.btn[disabled], .btn.is-disabled {
    opacity: .5;
    pointer-events: none;
}

.btn--primary {
    --btn-fg: #fff;
    border-color: transparent;
    background: linear-gradient(90deg, var(--woop-brand-from), var(--woop-brand-to));
    box-shadow: var(--woop-shadow-md);
}

.btn--accent {
    --btn-fg: #fff;
    border-color: transparent;
    background: linear-gradient(90deg, var(--accent-from, var(--woop-brand-from)), var(--accent-to, var(--woop-brand-to)));
    box-shadow: var(--woop-shadow-md);
}

.btn--ghost {
    background: transparent;
    border-color: var(--woop-border-strong);
}

.btn--soft { background: var(--woop-surface-2); border-color: transparent; }

.btn--danger { --btn-fg: #fff; background: var(--woop-danger); border-color: transparent; }

.btn--block { width: 100%; }

.btn--lg { min-height: 58px; font-size: 1.05rem; }

.btn--sm { min-height: 38px; padding: 0 var(--woop-space-3); font-size: .85rem; border-radius: var(--woop-radius-sm); }

.btn--dark {
    --btn-fg: #fff;
    background: #17181f;
    border-color: rgba(255, 255, 255, .06);
    box-shadow: var(--woop-shadow-md);
}

@media (prefers-color-scheme: dark) {
    .btn--dark { background: #05060a; border-color: rgba(255, 255, 255, .12); }
}

.btn--pill { border-radius: 999px; }

.icon-btn {
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--woop-border);
    background: var(--woop-surface);
    cursor: pointer;
    box-shadow: var(--woop-shadow-sm);
    transition: transform .12s var(--woop-ease);
    -webkit-tap-highlight-color: transparent;
}

.icon-btn:active { transform: scale(.93); }
.icon-btn--plain { border-color: transparent; background: transparent; box-shadow: none; }

/* ----------------------------------------------------------------- chips */

.chip-bar {
    display: flex;
    gap: var(--woop-space-2);
    overflow-x: auto;
    padding-bottom: var(--woop-space-1);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.chip-bar::-webkit-scrollbar { display: none; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 var(--woop-space-4);
    border-radius: var(--woop-radius-xl);
    border: 1px solid var(--woop-border);
    background: var(--woop-surface);
    color: var(--woop-text);
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--woop-shadow-sm);
    transition: transform .12s var(--woop-ease), background .2s var(--woop-ease);
    -webkit-tap-highlight-color: transparent;
}

.chip:active { transform: scale(.96); }

.chip.is-active {
    background: linear-gradient(135deg, var(--woop-brand-from), var(--woop-brand-to));
    color: #fff;
    border-color: transparent;
}

.chip--select {
    padding: 0 var(--woop-space-3);
}

/* ---------------------------------------------------------------- search */

.search-field {
    position: relative;
    display: flex;
    align-items: center;
}

.search-field svg {
    position: absolute;
    left: 18px;
    width: 20px;
    height: 20px;
    opacity: .5;
    pointer-events: none;
}

.search-field input {
    width: 100%;
    min-height: 52px;
    padding: 0 46px 0 48px;
    border-radius: var(--woop-radius-xl);
    border: 1px solid var(--woop-border);
    background: var(--woop-surface);
    box-shadow: var(--woop-shadow-sm);
}

.search-field input::placeholder { color: var(--woop-text-muted); }

.search-field__clear {
    position: absolute;
    right: 10px;
    border: 0;
    background: var(--woop-surface-2);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
}

.search-field.has-value .search-field__clear { display: block; }

/* ------------------------------------------------------------ game cards */

.game-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--woop-space-3);
}

@media (min-width: 620px) {
    .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--woop-space-4); }
}

@media (min-width: 960px) {
    .game-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.game-card-wrap {
    position: relative;
    display: block;
}

.game-card-wrap.is-hidden { display: none; }

.game-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    aspect-ratio: 3 / 4;
    padding: var(--woop-space-3);
    border-radius: var(--woop-radius-lg);
    overflow: hidden;
    color: #fff;
    isolation: isolate;
    background: linear-gradient(150deg, var(--accent-from), var(--accent-to));
    box-shadow: var(--woop-shadow-md);
    transition: transform .18s var(--woop-ease), box-shadow .18s var(--woop-ease);
    -webkit-tap-highlight-color: transparent;
}

/* Comic-burst rays behind the character art - the cheapest way to give a flat accent
   gradient the "poster" energy of the reference without needing painted artwork yet.
   A conic-gradient is computed as a circle in its own box, so sizing it with `inset` on a
   non-square card (this one is 3:4) stretches that circle into an ellipse and the rays come out
   uneven. Sizing a square explicitly and centering it keeps every ray dead straight regardless of
   the card's own aspect ratio. */
.game-card::before {
    content: "";
    position: absolute;
    top: 38%;
    left: 50%;
    width: 220%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    z-index: -2;
    background-image: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .16) 0deg 5deg, transparent 5deg 16deg);
    opacity: .85;
}

.game-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(90% 60% at 15% 0%, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 60%),
                linear-gradient(to top, rgba(0, 0, 0, .58), rgba(0, 0, 0, 0) 62%);
}

.game-card:active { transform: scale(.97); }

@media (hover: hover) {
    .game-card:hover { transform: translateY(-4px) scale(1.02); box-shadow: var(--woop-shadow-lg); }
}

/* The commissioned illustrations already carry their own rounded icon frame baked into the
   artwork - that IS the tile design. Giving the card its own rounding, background or clip fights
   that baked-in frame instead of matching it, so the card adds no chrome of its own and shows
   the artwork exactly as painted, uncropped. */
.game-card--photo {
    aspect-ratio: 1 / 1;
    padding: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    overflow: visible;
}

.game-card--photo::before,
.game-card--photo::after {
    content: none;
}

.game-card__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: -1;
}

.game-card__art {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -66%);
    font-size: clamp(4.4rem, 24vw, 6.4rem);
    line-height: 1;
    filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .35));
    z-index: -1;
}

.game-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 11px;
    border-radius: var(--woop-radius-xl);
    background: #14161f;
    color: #fff;
    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .08em;
    box-shadow: var(--woop-shadow-sm);
}

.game-card__fav {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .22);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(4px);
    -webkit-tap-highlight-color: transparent;
}

.game-card__fav.is-active { color: #ff5f7a; }
.game-card__fav.is-active svg path { fill: currentColor; }

.game-card__title {
    margin: 0;
    font-size: clamp(1.15rem, 6vw, 1.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -.01em;
    text-transform: uppercase;
    color: #fff;
    -webkit-text-stroke: 1.5px rgba(0, 0, 0, .28);
    paint-order: stroke fill;
    text-shadow: 0 3px 0 rgba(0, 0, 0, .18), 0 10px 20px rgba(0, 0, 0, .4);
}

.game-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    font-size: .68rem;
    font-weight: 700;
    opacity: .92;
}

.game-card__meta span {
    padding: 3px 8px;
    border-radius: var(--woop-radius-xl);
    background: rgba(255, 255, 255, .2);
    backdrop-filter: blur(3px);
}

.game-card--disabled { filter: grayscale(.75); opacity: .65; }

.empty-state {
    padding: var(--woop-space-7) var(--woop-space-4);
    text-align: center;
    color: var(--woop-text-muted);
}

.empty-state__icon { font-size: 3rem; }

/* ---------------------------------------------------------------- cards */

.card {
    background: var(--woop-surface);
    border: 1px solid var(--woop-border);
    border-radius: var(--woop-radius-md);
    padding: var(--woop-space-4);
    box-shadow: var(--woop-shadow-sm);
}

.card--flush { padding: 0; overflow: hidden; }

.card__head {
    display: flex;
    align-items: center;
    gap: var(--woop-space-3);
    margin-bottom: var(--woop-space-3);
}

.card__title { margin: 0; font-size: 1.05rem; font-weight: 800; }

.tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--woop-space-3);
}

.tile {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: var(--woop-space-4);
    border-radius: var(--woop-radius-md);
    border: 1px solid var(--woop-border);
    background: var(--woop-surface);
    box-shadow: var(--woop-shadow-sm);
    transition: transform .15s var(--woop-ease);
    -webkit-tap-highlight-color: transparent;
}

.tile:active { transform: scale(.98); }
.tile__icon { font-size: 1.7rem; }
.tile__title { font-weight: 800; }
.tile__meta { font-size: .8rem; color: var(--woop-text-muted); }

.tile--admin { position: relative; }

.tile__state {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .06em;
    padding: 3px 8px;
    border-radius: var(--woop-radius-xl);
    background: var(--woop-surface-2);
    color: var(--woop-text-muted);
}

.tile__state--on { background: rgba(23, 166, 115, .14); color: var(--woop-success); }
.tile__state--off { background: rgba(229, 72, 77, .14); color: var(--woop-danger); }

/* ----------------------------------------------------------------- forms */

.field { display: grid; gap: 6px; }

/* .field sets display:grid, which would otherwise beat the [hidden] attribute's default styling. */
.field[hidden] { display: none; }

.field > label { font-weight: 700; font-size: .9rem; }

.field__hint { font-size: .8rem; color: var(--woop-text-muted); }

.input, .textarea, .select {
    width: 100%;
    min-height: 50px;
    padding: 12px 16px;
    border-radius: var(--woop-radius-sm);
    border: 1px solid var(--woop-border-strong);
    background: var(--woop-surface);
    transition: border-color .15s var(--woop-ease), box-shadow .15s var(--woop-ease);
}

.input:focus, .textarea:focus, .select:focus {
    border-color: var(--woop-brand-from);
    box-shadow: 0 0 0 4px rgba(124, 92, 255, .16);
    outline: none;
}

.textarea { min-height: 130px; resize: vertical; line-height: 1.45; }

.field-error { color: var(--woop-danger); font-size: .85rem; font-weight: 600; }

.alert {
    padding: var(--woop-space-3) var(--woop-space-4);
    border-radius: var(--woop-radius-sm);
    font-size: .9rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.alert--error { background: rgba(229, 72, 77, .12); color: var(--woop-danger); border-color: rgba(229, 72, 77, .25); }
.alert--success { background: rgba(23, 166, 115, .12); color: var(--woop-success); border-color: rgba(23, 166, 115, .25); }
.alert--info { background: var(--woop-surface-2); color: var(--woop-text-muted); }

.switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 52px;
    height: 30px;
    flex: 0 0 auto;
    cursor: pointer;
}

.switch input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
}

.switch__track {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: var(--woop-surface-3);
    transition: background .2s var(--woop-ease);
}

.switch__thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    box-shadow: var(--woop-shadow-sm);
    transition: transform .2s var(--woop-ease);
}

.switch input:checked ~ .switch__track { background: linear-gradient(135deg, var(--woop-brand-from), var(--woop-brand-to)); }
.switch input:checked ~ .switch__thumb { transform: translateX(22px); }

.segmented {
    display: inline-flex;
    padding: 4px;
    gap: 4px;
    border-radius: var(--woop-radius-xl);
    background: var(--woop-surface-2);
}

.segmented button {
    border: 0;
    background: transparent;
    border-radius: var(--woop-radius-xl);
    min-height: 40px;
    padding: 0 var(--woop-space-4);
    font-weight: 700;
    cursor: pointer;
    color: var(--woop-text-muted);
    -webkit-tap-highlight-color: transparent;
}

.segmented button.is-active {
    background: var(--woop-surface);
    color: var(--woop-text);
    box-shadow: var(--woop-shadow-sm);
}

/* ------------------------------------------------------------------ list */

.list { display: grid; }

.list__item {
    display: flex;
    align-items: center;
    gap: var(--woop-space-3);
    padding: var(--woop-space-3) var(--woop-space-4);
    border-bottom: 1px solid var(--woop-border);
    background: var(--woop-surface);
}

.list__item:last-child { border-bottom: 0; }
.list__grow { flex: 1; min-width: 0; }
.list__title { font-weight: 700; overflow-wrap: anywhere; }
.list__meta { font-size: .8rem; color: var(--woop-text-muted); }

/*
 * "Spiele verwalten" packs an icon, title/meta, a badge field, a toggle and a drag handle into one
 * row. A plain flex row either overflowed on a phone or squeezed the badge field into a sliver on
 * desktop where there was room to spare, so this row gets its own grid: two tracks (icon+title,
 * controls) on a phone, five tracks in a single line once there is enough width for all of them.
 * Scoped to .list__item--game so the generic .list__item used elsewhere is untouched.
 */

.list__item--game {
    display: grid;
    grid-template-columns: 32px 1fr auto auto;
    grid-template-areas:
        "icon  title toggle handle"
        "badge badge badge badge";
    align-items: center;
    row-gap: var(--woop-space-3);
    column-gap: var(--woop-space-3);
}

.list__item--game .list__icon { grid-area: icon; font-size: 1.5rem; line-height: 1; }
.list__item--game .list__grow { grid-area: title; }

.list__badge-form { grid-area: badge; justify-self: stretch; margin-top: var(--woop-space-2); }
.list__toggle-form { grid-area: toggle; }

.badge-input {
    width: 100%;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: var(--woop-radius-sm);
    border: 1px solid var(--woop-border-strong);
    background: var(--woop-surface-2);
    font-size: .85rem;
    transition: border-color .15s var(--woop-ease), box-shadow .15s var(--woop-ease);
}

.badge-input:focus {
    border-color: var(--woop-brand-from);
    box-shadow: 0 0 0 4px rgba(124, 92, 255, .16);
    outline: none;
}

.drag-handle {
    grid-area: handle;
    width: 40px;
    height: 40px;
    cursor: grab;
    touch-action: none;
    color: var(--woop-text-muted);
}

.drag-handle:active { cursor: grabbing; }
.list__item--game.list__item--dragging { position: relative; z-index: 1; opacity: .6; box-shadow: var(--woop-shadow-md); }

@media (min-width: 640px) {
    .list__item--game {
        grid-template-columns: 32px minmax(0, 1fr) 9rem auto auto;
        grid-template-areas: "icon title badge toggle handle";
    }

    .list__badge-form { margin-top: 0; }
    .badge-input { width: 9rem; }
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: var(--woop-radius-xl);
    background: var(--woop-surface-2);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .04em;
    color: var(--woop-text-muted);
}

.pill--on { background: rgba(23, 166, 115, .14); color: var(--woop-success); }
.pill--off { background: rgba(229, 72, 77, .14); color: var(--woop-danger); }

/* ------------------------------------------------------------ game shell */

.game-hero {
    position: relative;
    margin: calc(var(--woop-space-4) * -1) calc(var(--woop-space-4) * -1) var(--woop-space-4);
    padding: var(--woop-space-5) var(--woop-space-4) var(--woop-space-5);
    color: #fff;
    background: linear-gradient(150deg, var(--accent-from), var(--accent-to));
    border-radius: 0 0 var(--woop-radius-lg) var(--woop-radius-lg);
    overflow: hidden;
    transition: padding .3s var(--woop-ease);
}

.game-hero::after {
    content: attr(data-art);
    position: absolute;
    right: -12px;
    top: -18px;
    font-size: 7rem;
    opacity: .22;
    pointer-events: none;
    transition: font-size .3s var(--woop-ease), opacity .3s var(--woop-ease);
}

.game-hero__figure {
    position: absolute;
    right: 12px;
    bottom: 0;
    height: 132px;
    width: auto;
    opacity: .5;
    pointer-events: none;
    transition: height .3s var(--woop-ease), opacity .3s var(--woop-ease);
}

.game-hero h1 { margin-bottom: 6px; font-size: clamp(1.6rem, 6.5vw, 2.2rem); transition: font-size .3s var(--woop-ease), margin .3s var(--woop-ease); }
.game-hero p { margin: 0; opacity: .92; max-width: 46ch; }

.game-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: var(--woop-space-3);
    font-size: .75rem;
    font-weight: 700;
}

.game-hero__meta span {
    padding: 4px 10px;
    border-radius: var(--woop-radius-xl);
    background: rgba(255, 255, 255, .22);
}

/* Once a round is under way the hero's marketing copy only pushes the actual game surface
   further down the screen - most visible on the "one phone in the middle of the table" case this
   product is built for. Collapse it to a slim identity bar the moment any screen other than the
   game's own entry screen (marked .game-screen--intro) becomes active; :has() reacts to the same
   is-active toggling every game's show() already does, so no game needs its own JS for this. */
#woop-main:has(.game-screen.is-active:not(.game-screen--intro)) .game-hero {
    padding: var(--woop-space-3) var(--woop-space-4);
}

#woop-main:has(.game-screen.is-active:not(.game-screen--intro)) .game-hero h1 {
    font-size: 1.25rem;
    margin-bottom: 0;
}

#woop-main:has(.game-screen.is-active:not(.game-screen--intro)) .game-hero p,
#woop-main:has(.game-screen.is-active:not(.game-screen--intro)) .game-hero__meta {
    display: none;
}

#woop-main:has(.game-screen.is-active:not(.game-screen--intro)) .game-hero::after {
    font-size: 3.25rem;
    opacity: .18;
}

#woop-main:has(.game-screen.is-active:not(.game-screen--intro)) .game-hero__figure {
    height: 62px;
    opacity: .4;
}

.game-stage {
    display: grid;
    gap: var(--woop-space-4);
    max-width: 620px;
    margin: 0 auto;
}

.game-screen { display: none; }
.game-screen.is-active { display: grid; gap: var(--woop-space-4); animation: woop-fade .25s var(--woop-ease); }

@keyframes woop-fade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

.reveal-card {
    position: relative;
    display: grid;
    place-items: center;
    align-content: center;
    gap: var(--woop-space-3);
    text-align: center;
    min-height: 260px;
    padding: var(--woop-space-5);
    border-radius: var(--woop-radius-lg);
    background: linear-gradient(150deg, var(--accent-from), var(--accent-to));
    color: #fff;
    box-shadow: var(--woop-shadow-md);
    overflow: hidden;
}

.reveal-card > * { position: relative; z-index: 1; }

/* Decorative figure for cards that opt in via data-art: a faint icon in the
   corner so the card reads as designed rather than a flat gradient. */
.reveal-card[data-art]::after {
    content: attr(data-art);
    position: absolute;
    right: -14px;
    bottom: -22px;
    z-index: 0;
    font-size: 6.5rem;
    line-height: 1;
    opacity: .16;
    transform: rotate(-8deg);
    pointer-events: none;
}

.reveal-card__label { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; opacity: .85; font-weight: 800; }
.reveal-card__value { font-size: clamp(1.6rem, 8vw, 2.4rem); font-weight: 900; line-height: 1.1; }
.reveal-card__hint { opacity: .9; }

.reveal-card__starter {
    font-size: clamp(1.3rem, 6.5vw, 2.1rem);
    font-weight: 900;
    line-height: 1.15;
    animation: woop-starter-blink 1s ease-in-out infinite;
}

@keyframes woop-starter-blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .5; transform: scale(1.15); }
}

.reveal-card__timeup {
    font-size: clamp(1.5rem, 7.5vw, 2.3rem);
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
    animation: woop-pulse 1.2s ease-in-out infinite;
}

.reveal-card--secret {
    background: linear-gradient(150deg, var(--accent-from), var(--accent-to));
    color: #fff;
}

.reveal-card--secret::before,
.reveal-card--secret::after {
    content: "";
    position: absolute;
    z-index: 0;
    bottom: -10px;
    font-size: clamp(3.6rem, 16vw, 5rem);
    line-height: 1;
    opacity: .5;
    pointer-events: none;
}

.reveal-card--secret::before {
    content: "🤫";
    left: -6px;
    transform: rotate(-10deg);
}

.reveal-card--secret::after {
    content: "🙈";
    right: -6px;
    transform: rotate(10deg);
}

.timer {
    display: grid;
    place-items: center;
    font-size: 3rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.03em;
}

.timer--warn { color: var(--woop-danger); animation: woop-pulse .7s infinite; }

@keyframes woop-pulse {
    50% { transform: scale(1.07); }
}

.progress-track {
    height: 8px;
    border-radius: 999px;
    background: var(--woop-surface-2);
    overflow: hidden;
}

.progress-track__bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-from, var(--woop-brand-from)), var(--accent-to, var(--woop-brand-to)));
    transition: width .3s linear;
}

.player-chips { display: flex; flex-wrap: wrap; gap: var(--woop-space-2); }

.player-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 8px 8px 14px;
    border-radius: var(--woop-radius-xl);
    background: var(--woop-surface-2);
    font-weight: 700;
}

.player-chip button {
    border: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--woop-surface);
    cursor: pointer;
    line-height: 1;
}

.scoreboard { display: grid; gap: var(--woop-space-2); }

.scoreboard__row {
    display: flex;
    align-items: center;
    gap: var(--woop-space-3);
    padding: var(--woop-space-3) var(--woop-space-4);
    border-radius: var(--woop-radius-sm);
    background: var(--woop-surface);
    border: 1px solid var(--woop-border);
}

.scoreboard__rank {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--woop-surface-2);
    font-weight: 900;
    font-size: .85rem;
}

.scoreboard__row--first .scoreboard__rank {
    background: linear-gradient(135deg, #ffcf4b, #ff9a44);
    color: #3d2a00;
}

.scoreboard__points { font-weight: 900; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------- option list */

.option-list {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--woop-border);
    border-radius: var(--woop-radius-md);
    background: var(--woop-surface);
    overflow: hidden;
    box-shadow: var(--woop-shadow-sm);
}

.option-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--woop-space-4);
    width: 100%;
    min-height: 58px;
    margin: 0;
    padding: 10px var(--woop-space-4);
    border-bottom: 1px solid var(--woop-border);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.option-row:last-child { border-bottom: 0; }
.option-row:active { background: var(--woop-surface-2); }

.option-row__text { flex: 1 1 auto; min-width: 0; }
.option-row__label { font-weight: 700; }
.option-row__hint { font-size: .8rem; color: var(--woop-text-muted); }

/* The toggle keeps its size and stays pinned to the right edge of the row. */
.option-row .switch { flex: 0 0 auto; margin-left: auto; }

/* --------------------------------------------------------- hold to reveal */

.hold-card {
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: none;
    cursor: pointer;
    transition: transform .12s var(--woop-ease);
}

.hold-card:active { transform: scale(.99); }

.hold-card__cover {
    display: grid;
    gap: var(--woop-space-2);
    place-items: center;
}

.hold-card__icon { font-size: 2.4rem; }
.hold-card__turn { margin: var(--woop-space-2) 0 0; font-weight: 900; font-size: 1.1rem; text-align: center; }

/* Visibility is driven by the hidden attribute (set in JavaScript), these rules only lay the parts
   out. That way a not-yet-loaded stylesheet can never leave a secret on screen. */
.hold-card__cover { display: grid; gap: var(--woop-space-2); place-items: center; }
.hold-card__cover[hidden] { display: none; }

.hold-card__secret { display: grid; gap: var(--woop-space-3); place-items: center; width: 100%; }
.hold-card__secret[hidden] { display: none; }

.secret-list {
    display: grid;
    gap: var(--woop-space-2);
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.secret-list li {
    display: grid;
    gap: 2px;
    padding: 10px var(--woop-space-4);
    border-radius: var(--woop-radius-sm);
    background: rgba(255, 255, 255, .18);
    text-align: center;
}

.secret-list__name {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: .8;
    font-weight: 700;
}

.secret-list__term { font-size: 1.35rem; font-weight: 900; line-height: 1.15; }

/* --------------------------------------------------------------- overlays */

.backdrop {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(8, 10, 18, .55);
    backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s var(--woop-ease);
}

.backdrop.is-open { opacity: 1; pointer-events: auto; }

.sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    padding: var(--woop-space-5) var(--woop-space-4) calc(var(--woop-space-5) + var(--woop-safe-bottom));
    background: var(--woop-surface);
    border-radius: var(--woop-radius-lg) var(--woop-radius-lg) 0 0;
    box-shadow: var(--woop-shadow-lg);
    transform: translateY(110%);
    transition: transform .32s var(--woop-ease);
    max-height: 88vh;
    max-height: 88dvh;
    overflow-y: auto;
}

.sheet.is-open { transform: none; }

@media (min-width: 620px) {
    .sheet {
        left: 50%;
        right: auto;
        bottom: 24px;
        width: min(460px, calc(100vw - 48px));
        transform: translate(-50%, 130%);
        border-radius: var(--woop-radius-lg);
    }

    .sheet.is-open { transform: translate(-50%, 0); }
}

/* Centered variant for popups that announce something (whose turn it is) rather than offer a list
   of choices - a modal in the middle of the screen reads clearer than a sheet sliding from below. */
.sheet.sheet--center {
    left: 50%;
    right: auto;
    top: 50%;
    bottom: auto;
    width: min(360px, calc(100vw - 48px));
    border-radius: var(--woop-radius-lg);
    max-height: 80vh;
    max-height: 80dvh;
    text-align: center;
    transform: translate(-50%, -50%) scale(.9);
    opacity: 0;
    transition: transform .22s var(--woop-ease), opacity .18s var(--woop-ease);
}

.sheet.sheet--center.is-open { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.sheet.sheet--center .sheet__grabber { display: none; }
.sheet.sheet--center .sheet__actions { margin-top: var(--woop-space-2); }

.sheet__grabber {
    width: 44px;
    height: 5px;
    border-radius: 999px;
    background: var(--woop-surface-3);
    margin: -8px auto var(--woop-space-4);
}

.sheet__title { margin: 0 0 var(--woop-space-2); font-size: 1.25rem; }
.sheet__text { color: var(--woop-text-muted); margin-bottom: var(--woop-space-4); }
.sheet__actions { display: grid; gap: var(--woop-space-2); }

.install-sheet__head {
    display: flex;
    align-items: center;
    gap: var(--woop-space-3);
    margin-bottom: var(--woop-space-3);
}

.install-sheet__icon {
    width: 56px;
    height: 56px;
    border-radius: var(--woop-radius-sm);
    object-fit: cover;
    flex: 0 0 auto;
    box-shadow: var(--woop-shadow-md);
}

.install-steps {
    display: grid;
    gap: var(--woop-space-3);
    margin: 0 0 var(--woop-space-4);
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.install-steps li {
    display: flex;
    align-items: center;
    gap: var(--woop-space-3);
    counter-increment: step;
}

.install-steps li::before {
    content: counter(step);
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--woop-surface-2);
    font-weight: 900;
    font-size: .85rem;
}

.toast-host {
    position: fixed;
    left: 50%;
    bottom: calc(24px + var(--woop-safe-bottom));
    z-index: 90;
    transform: translateX(-50%);
    display: grid;
    gap: var(--woop-space-2);
    width: min(420px, calc(100vw - 32px));
    pointer-events: none;
}

.toast {
    padding: var(--woop-space-3) var(--woop-space-4);
    border-radius: var(--woop-radius-sm);
    background: #14161f;
    color: #fff;
    font-weight: 600;
    box-shadow: var(--woop-shadow-lg);
    animation: woop-toast-in .25s var(--woop-ease);
}

.toast--error { background: var(--woop-danger); }
.toast--success { background: var(--woop-success); }
.toast.is-leaving { animation: woop-toast-out .25s var(--woop-ease) forwards; }

@keyframes woop-toast-in {
    from { opacity: 0; transform: translateY(14px); }
}

@keyframes woop-toast-out {
    to { opacity: 0; transform: translateY(14px); }
}

.route-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    z-index: 100;
    background: linear-gradient(90deg, var(--woop-brand-from), var(--woop-brand-to));
    opacity: 0;
    transition: width .25s var(--woop-ease), opacity .25s var(--woop-ease);
}

.route-progress.is-active { opacity: 1; }

/* ------------------------------------------------------------- splash */

.splash {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    gap: var(--woop-space-4);
    background: linear-gradient(135deg, var(--woop-brand-from), var(--woop-brand-to));
    opacity: 0;
    transition: opacity .4s var(--woop-ease);
}

.splash[hidden] { display: none; }

.splash.is-visible { opacity: 1; }
.splash.is-leaving { opacity: 0; }

.splash__mark {
    width: 96px;
    height: 96px;
    border-radius: var(--woop-radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
    opacity: 0;
    transform: scale(.6);
    animation: woop-splash-mark .6s var(--woop-ease) forwards;
}

.splash__mark img { width: 100%; height: 100%; object-fit: cover; display: block; }

.splash__word {
    color: var(--woop-text-inverse);
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: .02em;
    opacity: 0;
    animation: woop-splash-word .5s var(--woop-ease) .25s forwards;
}

@keyframes woop-splash-mark {
    0% { opacity: 0; transform: scale(.6); }
    60% { opacity: 1; transform: scale(1.08); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes woop-splash-word {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ----------------------------------------------------------------- prose */

.prose { max-width: 70ch; }
.prose h2 { margin-top: var(--woop-space-5); font-size: 1.25rem; }
.prose h3 { margin-top: var(--woop-space-4); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--woop-brand-from); text-decoration: underline; text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; }
.prose th, .prose td { border: 1px solid var(--woop-border); padding: 8px 10px; text-align: left; }

/* ----------------------------------------------------------------- admin */

.admin-bar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: var(--woop-space-2);
    padding: calc(var(--woop-safe-top) + 10px) var(--woop-space-4) 10px;
    color: #fff;
    background: linear-gradient(120deg, #1d2030, #2b2350);
}

.admin-bar a { color: #fff; }

.admin-bar__title {
    font-weight: 900;
    letter-spacing: -.02em;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-tag {
    flex-shrink: 0;
    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .1em;
    padding: 3px 8px;
    border-radius: var(--woop-radius-xl);
    background: rgba(255, 255, 255, .16);
}

.auth-card {
    max-width: 420px;
    margin: var(--woop-space-6) auto;
}

.split {
    display: grid;
    gap: var(--woop-space-4);
}

@media (min-width: 860px) {
    .split--2 { grid-template-columns: 1fr 1fr; align-items: start; }
}

.scroll-box { max-height: 340px; overflow-y: auto; }

/* ------------------------------------------------------------- game setup */
/* Boxed, tappable settings used on every game's start screen: a row opens a
   full sub page instead of cramming pickers onto the setup screen itself. */

.setup { display: grid; gap: var(--woop-space-5); }

.setup-group { display: grid; gap: var(--woop-space-2); }
.setup-group[hidden] { display: none; }

.setup-group__title { margin: 0; padding-left: 4px; font-size: .95rem; font-weight: 800; }

.setup-box {
    display: flex;
    flex-direction: column;
    border-radius: var(--woop-radius-lg);
    background: var(--woop-surface-3);
    overflow: hidden;
    box-shadow: var(--woop-shadow-sm);
}

.setup-row {
    display: flex;
    align-items: center;
    gap: var(--woop-space-3);
    width: 100%;
    margin: 0;
    padding: 14px var(--woop-space-4);
    border: 0;
    border-bottom: 1px solid var(--woop-border);
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.setup-row:last-child { border-bottom: 0; }
.setup-row:active { background: var(--woop-surface-2); }

.setup-row__icon { flex: 0 0 auto; width: 28px; font-size: 1.3rem; text-align: center; }

.setup-row__text { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
.setup-row__label { font-weight: 700; }
.setup-row__hint { font-size: .78rem; color: var(--woop-text-muted); }

.setup-row__value {
    flex: 0 0 auto;
    max-width: 40vw;
    overflow: hidden;
    color: var(--woop-text-muted);
    font-weight: 600;
    font-size: .92rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.setup-row__chevron { flex: 0 0 auto; opacity: .5; }
.setup-row .switch { flex: 0 0 auto; margin-left: auto; }

.setup-row.is-disabled { cursor: not-allowed; opacity: .45; }
.setup-row.is-disabled:active { background: transparent; }

.setup-note { margin: 0; color: var(--woop-text-muted); font-size: .88rem; text-align: center; }

/* ------------------------------------------------------------- setup panel */
/* Slides in from the right like a real sub page. No JavaScript framework -
   the shared runtime only toggles the hidden attribute and a class. */

.panel {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: flex;
    flex-direction: column;
    background: var(--woop-bg);
    background-image: var(--woop-bg-accent);
    background-attachment: fixed;
    transform: translateX(100%);
    transition: transform .3s var(--woop-ease);
}

.panel[hidden] { display: none; }
.panel.is-open { transform: none; }

.panel__bar {
    display: flex;
    align-items: center;
    gap: var(--woop-space-2);
    flex: 0 0 auto;
    padding: calc(var(--woop-safe-top) + var(--woop-space-2)) var(--woop-space-3) var(--woop-space-2);
}

.panel__title { font-size: 1.1rem; font-weight: 800; }

.panel__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 0 var(--woop-space-4) var(--woop-space-4);
    display: flex;
    flex-direction: column;
}

.panel__note { margin: 0 0 var(--woop-space-3); color: var(--woop-text-muted); font-size: .85rem; }

.panel__foot {
    flex: 0 0 auto;
    padding: var(--woop-space-2) var(--woop-space-4) calc(var(--woop-safe-bottom) + var(--woop-space-4));
}

/* --------------------------------------------------------------- roster */

.roster { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }

.roster__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--woop-space-2);
    margin: var(--woop-space-2) 0 var(--woop-space-3);
    font-size: 1.05rem;
}

.roster__count {
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--woop-surface-2);
    color: var(--woop-text-muted);
    font-size: .78rem;
    font-weight: 800;
}

.roster__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    border-radius: var(--woop-radius-lg);
    overflow: hidden;
    background: var(--woop-surface-3);
    box-shadow: var(--woop-shadow-sm);
}

.roster__list:empty { display: none; }

.roster__item {
    display: flex;
    align-items: center;
    gap: var(--woop-space-2);
    padding: 12px var(--woop-space-4);
    background: var(--woop-surface-3);
    border-bottom: 1px solid var(--woop-border);
}

.roster__item:last-child { border-bottom: 0; }

.roster__item.is-dragging {
    position: relative;
    z-index: 5;
    background: var(--woop-surface-2);
    box-shadow: var(--woop-shadow-md);
    border-radius: var(--woop-radius-sm);
}

.roster__item.is-drop-target { border-top: 2px solid var(--woop-brand-from); }

.roster__item--over { background: rgba(229, 72, 77, .12); }
.roster__item--over .roster__name { color: var(--woop-danger); }

.roster__name { flex: 1 1 auto; font-weight: 700; overflow-wrap: anywhere; }

.roster__remove {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--woop-text-muted);
    cursor: pointer;
}

.roster__remove:active { background: var(--woop-surface-2); }

.roster__handle {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    color: var(--woop-text-muted);
    touch-action: none;
    cursor: grab;
}

.roster__empty {
    margin: 0;
    padding: var(--woop-space-6) 0;
    color: var(--woop-text-muted);
    text-align: center;
}

.roster__empty[hidden] { display: none; }

.roster__overflow {
    margin: var(--woop-space-3) 0 0;
    padding: 10px var(--woop-space-4);
    border-radius: var(--woop-radius-sm);
    background: rgba(229, 72, 77, .12);
    color: var(--woop-danger);
    font-size: .85rem;
    font-weight: 700;
    text-align: center;
}

.roster__overflow[hidden] { display: none; }

.roster-add {
    display: flex;
    align-items: center;
    gap: var(--woop-space-2);
    padding: 6px 6px 6px var(--woop-space-4);
    border-radius: 999px;
    background: var(--woop-surface-2);
}

.roster-add__input {
    flex: 1 1 auto;
    min-height: 44px;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 1rem;
}

.roster-add__input:focus { outline: 0; }
.roster-add__input::placeholder { color: var(--woop-text-muted); }

.roster-add__button {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-from, var(--woop-brand-from)), var(--accent-to, var(--woop-brand-to)));
    color: #fff;
    cursor: pointer;
}

.roster-add__button:active { transform: scale(.94); }

/* --------------------------------------------------------------- choice */

.choice { flex: 1 1 auto; display: flex; flex-direction: column; }

.choice-box {
    display: flex;
    flex-direction: column;
    border-radius: var(--woop-radius-lg);
    overflow: hidden;
    background: var(--woop-surface-3);
    box-shadow: var(--woop-shadow-sm);
}

.choice-row {
    display: flex;
    align-items: center;
    gap: var(--woop-space-3);
    width: 100%;
    margin: 0;
    padding: 14px var(--woop-space-4);
    border: 0;
    border-bottom: 1px solid var(--woop-border);
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.choice-row:last-child { border-bottom: 0; }
.choice-row:active { background: var(--woop-surface-2); }

.choice-row__icon { flex: 0 0 auto; width: 26px; font-size: 1.2rem; text-align: center; }

.choice-row__text { flex: 1 1 auto; min-width: 0; }
.choice-row__label { font-weight: 700; }
.choice-row__hint { font-size: .78rem; color: var(--woop-text-muted); }

.choice-row__mark {
    flex: 0 0 auto;
    opacity: 0;
    transform: scale(.5);
    color: var(--accent-from, var(--woop-danger));
    transition: opacity .15s var(--woop-ease), transform .15s var(--woop-ease);
}

.choice-row[aria-pressed="true"] .choice-row__mark { opacity: 1; transform: none; }
.choice-row:disabled { opacity: .4; pointer-events: none; }

/* ----------------------------------------------------------- swipe reveal */
/* Used by "Imposter": the card carries the player's name, swiping it up and
   holding it there reveals the role underneath - releasing hides it again. */

.swipe-card {
    position: relative;
    aspect-ratio: 4 / 5;
    min-height: 420px;
    border-radius: var(--woop-radius-lg);
    overflow: hidden;
    background: var(--woop-surface-3);
    box-shadow: var(--woop-shadow-md);
    border: 3px solid rgba(255, 255, 255, .55);
}

.swipe-card__secret {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: var(--woop-space-3);
    padding: var(--woop-space-5);
    text-align: center;
    color: #fff;
    background: #000;
}

.swipe-card__mark {
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    box-shadow: var(--woop-shadow-sm);
}

.swipe-card__mark--out { color: var(--woop-danger); }
.swipe-card__mark--in { color: #2f6fed; }

.swipe-card__role {
    font-size: clamp(1.5rem, 7.5vw, 2.1rem);
    font-weight: 900;
    text-transform: uppercase;
    -webkit-text-stroke: 1.5px rgba(0, 0, 0, .25);
    paint-order: stroke fill;
    text-shadow: 0 3px 0 rgba(0, 0, 0, .18), 0 10px 20px rgba(0, 0, 0, .4);
}
.swipe-card__role-hint { max-width: 32ch; opacity: .92; }

.swipe-card__cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: var(--woop-space-3);
    padding: var(--woop-space-5);
    color: #fff;
    background: linear-gradient(165deg, var(--accent-from), var(--accent-to));
    cursor: grab;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
    transition: transform .28s var(--woop-ease);
    will-change: transform;
    text-align: center;
}

.swipe-card__cover-name {
    position: relative;
    z-index: 2;
    font-size: clamp(1.7rem, 8vw, 2.3rem);
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
    -webkit-text-stroke: 1.5px rgba(0, 0, 0, .25);
    paint-order: stroke fill;
    text-shadow: 0 3px 0 rgba(0, 0, 0, .18), 0 10px 20px rgba(0, 0, 0, .4);
}

.swipe-card__cover-figure {
    font-size: clamp(4.4rem, 22vw, 6.2rem);
    line-height: 1;
    margin: 2px 0;
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .3));
    animation: woop-figure-float 3.2s ease-in-out infinite;
}

.swipe-card__cover-figure--img {
    position: absolute;
    z-index: 1;
    inset: auto 0 0 0;
    margin: 0;
    height: 74%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    filter: none;
    animation: none;
    pointer-events: none;
}

.swipe-card__cover-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

@keyframes woop-figure-float {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

.swipe-card__cover-prompt {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.swipe-card__cover-icon {
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1;
    animation: woop-arrow-bounce 1.4s ease-in-out infinite;
}

@keyframes woop-arrow-bounce {
    0%, 100% { transform: translateY(0); opacity: .75; }
    50% { transform: translateY(-6px); opacity: 1; }
}

.swipe-card__cover-text { margin: 0; font-weight: 800; opacity: .9; line-height: 1.4; }

.swipe-pass { display: grid; gap: var(--woop-space-2); text-align: center; }

/* --------------------------------------------------------------- stepper */

.stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--woop-space-5);
    margin: var(--woop-space-4) 0;
}

/* .stepper sets display:flex, which would otherwise beat the [hidden] attribute's default styling. */
.stepper[hidden] { display: none; }

.stepper__button {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 1px solid var(--woop-border-strong);
    border-radius: 50%;
    background: var(--woop-surface-2);
    color: var(--woop-text);
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform .12s var(--woop-ease), opacity .2s var(--woop-ease);
}

.stepper__button:active { transform: scale(.92); }
.stepper__button[disabled] { opacity: .35; pointer-events: none; }

.stepper__value { min-width: 108px; text-align: center; }
.stepper__value-number { font-size: 2rem; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1.1; }

.stepper__value-suffix {
    display: block;
    margin-top: 2px;
    color: var(--woop-text-muted);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
}

/* ------------------------------------------------------------ was ist das */

.wid-tile[aria-pressed="true"] { border-color: var(--woop-brand-from); box-shadow: 0 0 0 2px var(--woop-brand-from) inset; }
.wid-tile[disabled] { opacity: .5; pointer-events: none; }

/* .stack sets display:grid, which would otherwise beat the [hidden] attribute's default styling. */
[data-host-actions][hidden] { display: none; }

/* .btn sets display:inline-flex, which would otherwise beat the [hidden] attribute too. */
.btn[hidden] { display: none; }

/* .reveal-card sets display:grid, which would otherwise beat the [hidden] attribute too. */
.reveal-card[hidden] { display: none; }

.wid-code {
    font-size: clamp(2.2rem, 12vw, 3.2rem);
    font-weight: 900;
    letter-spacing: .12em;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.wid-image {
    width: 100%;
    aspect-ratio: 3 / 2;
    border-radius: var(--woop-radius-md);
    overflow: hidden;
    background: var(--woop-surface-2);
    box-shadow: var(--woop-shadow-sm);
}

.wid-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.wid-paste-zone {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: var(--woop-space-2);
    min-height: 96px;
    padding: var(--woop-space-3);
    border: 2px dashed var(--woop-border);
    border-radius: var(--woop-radius-md);
    text-align: center;
    color: var(--woop-text-muted);
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}

.wid-paste-zone:hover,
.wid-paste-zone:focus-visible {
    border-color: var(--woop-brand-from);
    outline: none;
}

.wid-paste-zone--filled {
    border-style: solid;
    padding: var(--woop-space-2);
}

.wid-paste-zone img {
    max-width: 100%;
    max-height: 160px;
    border-radius: var(--woop-radius-sm);
    object-fit: contain;
}

.wid-answer--selected { border-color: var(--woop-brand-from); box-shadow: 0 0 0 2px var(--woop-brand-from) inset; }
.wid-answer--correct { --btn-fg: #fff; background: var(--woop-success); border-color: transparent; }
.wid-answer--wrong { --btn-fg: #fff; background: var(--woop-danger); border-color: transparent; opacity: .75; }

.wid-players { display: grid; gap: var(--woop-space-2); }

.wid-player {
    display: flex;
    align-items: center;
    gap: var(--woop-space-3);
    padding: var(--woop-space-3) var(--woop-space-4);
    border-radius: var(--woop-radius-sm);
    background: var(--woop-surface);
    border: 1px solid var(--woop-border);
}

.wid-player__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--woop-border-strong); flex: 0 0 auto; }
.wid-player__dot--online { background: var(--woop-success); }
.wid-player__name { flex: 1 1 auto; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ----------------------------------------------------------------- board games (TicTacToe, Connect Four) */

.ttt-board {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--woop-space-2);
    max-width: 360px;
    margin: 0 auto;
    width: 100%;
}

.ttt-win-line {
    position: absolute;
    height: 6px;
    top: 0;
    left: 0;
    margin-top: -3px;
    width: 0;
    border-radius: 999px;
    background: var(--woop-success);
    box-shadow: 0 0 14px rgba(23, 166, 115, .65);
    transform-origin: 0 50%;
    pointer-events: none;
    z-index: 2;
    transition: width .35s .1s var(--woop-ease);
}

.ttt-cell {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.8rem, 9vw, 2.6rem);
    font-weight: 900;
    border-radius: var(--woop-radius-sm);
    background: var(--woop-surface);
    border: 1px solid var(--woop-border);
    cursor: pointer;
    transition: transform .12s var(--woop-ease), border-color .12s var(--woop-ease);
}

.ttt-cell:active { transform: scale(.94); }
.ttt-cell[disabled] { cursor: default; }
.ttt-cell--x { color: var(--woop-brand-from); }
.ttt-cell--o { color: var(--woop-danger); }
.ttt-cell--win { border-color: var(--woop-success); box-shadow: 0 0 0 2px var(--woop-success) inset; background: rgba(23, 166, 115, .12); }

.c4-board {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: var(--woop-space-2);
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
    padding: var(--woop-space-3);
    border-radius: var(--woop-radius-md);
    background: var(--woop-brand-from, #2193ff);
    /* Same reasoning as .c4-cell--yellow below: a url()-referenced SVG image survives
       Samsung Internet's force-dark re-tinting, a CSS linear-gradient() does not. */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1' height='1'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0.2' y1='0' x2='0.6' y2='1'%3E%3Cstop offset='0' stop-color='%232193ff'/%3E%3Cstop offset='1' stop-color='%2321d4fd'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='1' height='1' fill='url(%23g)'/%3E%3C/svg%3E");
    background-size: cover;
}

.c4-column {
    display: grid;
    grid-template-rows: repeat(6, 1fr);
    gap: var(--woop-space-2);
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
}

.c4-column[disabled] { cursor: default; }

.c4-cell {
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: rgba(255, 255, 255, .25);
    transition: transform .12s var(--woop-ease);
}

/* An actual url()-referenced image, not a CSS-painted color or gradient, on purpose: mobile
   browsers with an algorithmic "force dark" (Samsung Internet's website dark mode is the one
   that prompted this - it re-tints CSS-painted fills regardless of our color-scheme opt-out)
   treat fetched images as picture content and leave them alone, unlike generated backgrounds.
   Each is a 1x1 SVG filled with the exact chip colour, stretched to cover the circle. */
.c4-cell--red { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1' height='1'%3E%3Crect width='1' height='1' fill='%23e5484d'/%3E%3C/svg%3E"); background-size: cover; }
.c4-cell--yellow { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1' height='1'%3E%3Crect width='1' height='1' fill='%23ffce31'/%3E%3C/svg%3E"); background-size: cover; }
.c4-cell--win { box-shadow: 0 0 0 3px #ffffff inset; }
.c4-column:not([disabled]):active .c4-cell:first-child { transform: scale(.92); }

.c4-cell--dropping {
    animation: c4-drop .5s cubic-bezier(.55, 0, .85, 0) both;
}

@keyframes c4-drop {
    0% { transform: translateY(calc(-1 * var(--c4-fall-distance, 0px))); }
    72% { transform: translateY(0); }
    84% { transform: translateY(-10%); }
    100% { transform: translateY(0); }
}

/* =========================================================================
   Kritzelkette
   ========================================================================= */

/* .stack sets display:grid, .row sets display:flex and .kk-chaos sets display:inline-flex, which
   would otherwise beat the [hidden] attribute's default styling - same fix as
   [data-host-actions][hidden] above. */
[data-task-prompt][hidden],
[data-task-description][hidden],
[data-task-drawing][hidden],
[data-task-submitted][hidden],
[data-host-rematch][hidden],
[data-chaos][hidden],
[data-timer-row][hidden] {
    display: none;
}

.kk-canvas-wrap {
    position: relative;
    border-radius: var(--woop-radius-md);
    overflow: hidden;
    background: #ffffff;
    box-shadow: var(--woop-shadow-sm);
    border: 1px solid var(--woop-border);
}

.kk-canvas {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    touch-action: none;
    cursor: crosshair;
}

.kk-toolbar {
    display: flex;
    align-items: center;
    gap: var(--woop-space-3);
    flex-wrap: wrap;
}

.kk-swatches {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    flex: 1 1 auto;
}

.kk-swatch {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--woop-border-strong);
    background-color: var(--swatch, #14161f);
    padding: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.kk-swatch.is-active {
    box-shadow: 0 0 0 2px var(--woop-surface), 0 0 0 4px var(--woop-brand-from);
}

.kk-swatch--eraser {
    background: var(--woop-surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border-style: dashed;
}

.kk-brush {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 140px;
    color: var(--woop-text-muted);
}

.kk-brush input[type="range"] {
    flex: 1 1 auto;
}

.kk-prompt-banner {
    padding: var(--woop-space-3) var(--woop-space-4);
    border-radius: var(--woop-radius-md);
    background: var(--woop-surface-2);
    font-weight: 800;
    font-size: 1.1rem;
    text-align: center;
}

.kk-reference-image {
    border-radius: var(--woop-radius-md);
    overflow: hidden;
    background: #ffffff;
    box-shadow: var(--woop-shadow-sm);
    border: 1px solid var(--woop-border);
}

.kk-reference-image img {
    display: block;
    width: 100%;
    height: auto;
}

.kk-reference-image__empty {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 200px;
    padding: var(--woop-space-5);
    text-align: center;
    color: var(--woop-text-muted);
    font-weight: 600;
    background: var(--woop-surface-2);
}

.kk-reference-image__empty span:first-child { font-size: 2.2rem; }

.kk-reference-image.is-empty img { display: none; }
.kk-reference-image.is-empty .kk-reference-image__empty { display: flex; }

.kk-chaos {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px var(--woop-space-3);
    border-radius: var(--woop-radius-md);
    background: rgba(217, 145, 0, .14);
    color: var(--woop-warning);
    font-weight: 700;
    font-size: .88rem;
    justify-self: start;
}

.kk-reveal-item {
    border-radius: var(--woop-radius-md);
    background: var(--woop-surface);
    box-shadow: var(--woop-shadow-sm);
    padding: var(--woop-space-4);
    display: grid;
    gap: var(--woop-space-2);
    animation: woop-fade .3s var(--woop-ease);
}

.kk-reveal-item__author {
    font-weight: 700;
    font-size: .82rem;
    color: var(--woop-text-muted);
}

.kk-reveal-item__text {
    font-size: 1.2rem;
    font-weight: 800;
}

.kk-reveal-item__text--skipped {
    color: var(--woop-text-muted);
    font-style: italic;
    font-weight: 600;
}

.kk-reveal-item img {
    display: block;
    width: 100%;
    border-radius: var(--woop-radius-sm);
    animation: woop-fade .4s var(--woop-ease);
}

.kk-reveal-item__vote {
    margin-top: var(--woop-space-1);
    justify-self: start;
}

.kk-score-row {
    display: flex;
    align-items: center;
    gap: var(--woop-space-3);
    padding: var(--woop-space-3) var(--woop-space-4);
    border-radius: var(--woop-radius-md);
    background: var(--woop-surface);
    box-shadow: var(--woop-shadow-sm);
}

.kk-score-row--top { box-shadow: 0 0 0 2px var(--woop-brand-from) inset; }

.kk-score-row__rank {
    font-weight: 900;
    width: 26px;
    text-align: center;
    color: var(--woop-text-muted);
}

.kk-score-row__name {
    font-weight: 700;
    flex: 1 1 auto;
}

.kk-score-row__badges {
    display: flex;
    gap: 4px;
    font-size: .95rem;
}

.kk-score-row__points {
    font-weight: 900;
    font-size: 1.05rem;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}
