﻿#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto 0 auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

/* ==================================================================
   DESIGN TOKENS — Ethereal Glass (OLED, cinematic scoreboard)
   ================================================================== */
:root {
    --font-display: 'Space Grotesk', system-ui, sans-serif;
    /* Zahlen laufen jetzt ebenfalls über Space Grotesk – kombiniert mit
       font-variant-numeric: tabular-nums (global auf body) bekommen alle
       Ziffern die gleiche Breite, ohne die dotted-zero-Optik eines
       Monospace-Fonts. */
    --font-numeric: 'Space Grotesk', system-ui, sans-serif;
    --font-editorial: 'Instrument Serif', Georgia, serif;
    --font-stencil: 'Capture It', Impact, sans-serif;

    --ease-hero: cubic-bezier(0.32, 0.72, 0, 1);
    --ease-glide: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Ziffern global tabellarisch (gleiche Breite pro Ziffer) – ersetzt den
   „springt nicht"-Vorteil von Monospace bei Score-/Statistik-Anzeigen. */
body {
    font-variant-numeric: tabular-nums;
}

/* Vereins-Wasserzeichen — Rot-Textur im Vordergrund via Screen-Blend.
   Sichtbar über allen dunklen Cards, unsichtbar über weißen Zahlen und
   farbigen Score-Tiers. Der Text kommt aus --club-watermark (aktuell aus
   den App-Einstellungen, später aus einer Lizenzdatei); der hardcodierte
   Fallback greift nur, falls die Variable nie gesetzt wurde. */
.scoreboard-shell::before {
    content: var(--club-watermark, "DC TITANS HAAG");
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-stencil);
    font-weight: 400;
    font-size: clamp(2.8rem, 9vw, 10rem);
    letter-spacing: 0.1em;
    color: rgba(225, 29, 46, 0.04);
    text-transform: uppercase;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
    overflow: hidden;
    z-index: 100;
    mix-blend-mode: screen;
}

.base-wrapper {
    /* Rot/Schwarz Vereinsfarben — Kontrast maximiert für 2,4 m Sichtdistanz */
    --base-bg: #0a0a0a;
    --base-bg-elev: #131315;
    --base-foreground: #fafafa;
    /* Muted/subtle absichtlich hoch — die Vereinshalle sitzt >2 m vom Screen,
       jede Prozent-Deckkraft weniger kostet Distanz-Lesbarkeit. */
    --base-muted: rgba(250, 250, 250, 0.9);
    --base-subtle: rgba(250, 250, 250, 0.68);
    --base-hairline: rgba(255, 255, 255, 0.12);
    --base-hairline-strong: rgba(255, 255, 255, 0.22);
    /* Vereinsrot als Primäraccent */
    --club-red: #e11d2e;
    --club-red-deep: #b81524;
    --club-red-soft: rgba(225, 29, 46, 0.22);
    --club-red-glow: rgba(225, 29, 46, 0.55);
    --club-red-hairline: rgba(225, 29, 46, 0.35);
    /* Semantische Farben (bleiben universell lesbar) */
    --score-180: #f5c451;
    --score-140: #f59e0b;
    --score-100: #67e8f9;
    --score-bust: #ff4d4d;
    --finish-zone: #22c55e;
    --finish-zone-glow: rgba(34, 197, 94, 0.55);
    --finish-zone-bogey: #f59e0b;
    --finish-zone-bogey-glow: rgba(245, 158, 11, 0.55);
    background-color: var(--base-bg);
    color: var(--base-foreground);
    height: 100vh;
    height: 100dvh;
    padding: 14px 14px calc(14px + env(safe-area-inset-bottom, 0px));
    font-family: var(--font-display);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    isolation: isolate;
    /* Dezente vertikale Rot-Vignette — Vereinsidentität ohne Ablenkung */
    background-image: radial-gradient(ellipse 90% 40% at 50% -10%, rgba(225, 29, 46, 0.12), transparent 70%), radial-gradient(ellipse 90% 30% at 50% 110%, rgba(225, 29, 46, 0.06), transparent 70%);
}

/* ==================================================================
   BEZEL PRIMITIVE — einfach, rot-getönte Hairline
   Nur EINE Nesting-Ebene: Shell trägt die Karte, Inner den Inhalt.
   ================================================================== */
.shell {
    position: relative;
    padding: 3px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 12px 40px -20px rgba(0, 0, 0, 0.8);
    transition: box-shadow 400ms var(--ease-hero);
}

.shell__inner {
    position: relative;
    background: #0d0d0f;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* ==================================================================
   HOME PAGE — Ethereal Glass, DC Titans Haag Identity
   Kontinuität zum Scoreboard: gleicher OLED-BG, Vereinsrot-Vignette,
   Wasserzeichen, Doppelrand-Shells, Space Grotesk / JetBrains Mono.
   ================================================================== */
.home-shell {
    overflow-y: auto;
    padding: clamp(20px, 3.5vw, 48px);
    /* "safe center" fällt bei Überlauf auf "start" zurück – sonst schiebt
       die Zentrierung den oberen Rand aus dem scrollbaren Bereich. */
    justify-content: safe center;
    align-items: stretch;
}

/* Wasserzeichen — identisch zum Scoreboard für Marken-Kontinuität */
.home-shell::before {
    content: var(--club-watermark, "DC TITANS HAAG");
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-stencil);
    font-weight: 400;
    font-size: clamp(2.8rem, 9vw, 10rem);
    letter-spacing: 0.1em;
    color: rgba(225, 29, 46, 0.02);
    text-transform: uppercase;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
    overflow: hidden;
    z-index: 0;
    mix-blend-mode: screen;
}

.home-viewport {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: clamp(22px, 2.6vh, 34px);
    padding: clamp(16px, 2vh, 28px) 0;
}

@media (min-width: 1600px) {
    .home-viewport { max-width: 1200px; }
}

/* -- HERO -- */
.home-hero {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    animation: heroReveal 900ms var(--ease-hero) both;
}

@keyframes heroReveal {
    0%   { opacity: 0; transform: translateY(24px); filter: blur(8px); }
    100% { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

@keyframes dotPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50%      { opacity: 1;   transform: scale(1.35); }
}

.home-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.6rem, 5.5vw, 4.6rem);
    line-height: 0.92;
    letter-spacing: -0.035em;
    color: #fff;
    text-transform: uppercase;
    margin: 0;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.06);
}

.home-title__dot {
    color: var(--club-red);
    text-shadow:
        0 0 24px rgba(225, 29, 46, 0.85),
        0 0 56px rgba(225, 29, 46, 0.35);
    margin-left: -0.02em;
}

/* Feiner Rot-Hairline unter dem Titel — semantischer Anschluss ans Scoreboard */
.home-hero::after {
    content: "";
    width: clamp(60px, 8vw, 96px);
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--club-red), transparent);
    box-shadow: 0 0 12px var(--club-red-glow);
    margin-top: 2px;
}

/* -- SECTIONS -- */
.home-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: sectionReveal 900ms var(--ease-hero) both;
}
.home-section:nth-of-type(1) { animation-delay: 140ms; }
.home-section:nth-of-type(2) { animation-delay: 240ms; }
.home-section:nth-of-type(3) { animation-delay: 340ms; }

@keyframes sectionReveal {
    0%   { opacity: 0; transform: translateY(28px); filter: blur(6px); }
    100% { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

.home-section__label {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-display);
    font-size: 0.88rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 600;
    padding-left: 6px;
    line-height: 1;
}

.home-section__label::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.14), transparent 75%);
    margin-left: 4px;
}

.home-section__label-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--club-red);
    box-shadow: 0 0 14px var(--club-red-glow);
    animation: dotPulse 2.4s var(--ease-glide) infinite;
    flex-shrink: 0;
}

.home-section__label-text { flex-shrink: 0; }

/* -- MATCHUP GRID -- */
.matchup {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
    gap: 18px;
}

.player-card.shell {
    padding: 3px;
    border-radius: 22px;
    transition:
        box-shadow 400ms var(--ease-hero),
        transform 400ms var(--ease-hero);
}

.player-card.shell:hover {
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 20px 60px -24px rgba(225, 29, 46, 0.25);
}

.player-card__inner {
    padding: 20px 24px 22px;
    background: #0c0c0e;
    border-radius: 19px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
}

/* Corner-Marker — Vereinsrot-Farbanker ohne Layout-Cost */
.player-card__badge {
    position: absolute;
    top: 14px;
    right: 20px;
    padding: 0;
    background: transparent;
    box-shadow: none;
    color: var(--club-red);
    font-family: var(--font-numeric);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    text-shadow: 0 0 14px rgba(225, 29, 46, 0.5);
    line-height: 1;
    pointer-events: none;
    z-index: 1;
}

/* -- FIELDS -- */
.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field__label {
    font-family: var(--font-display);
    font-size: 0.6rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
    line-height: 1;
}

.field__input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    padding: 4px 0 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition:
        border-color 400ms var(--ease-hero),
        box-shadow 400ms var(--ease-hero),
        color 400ms var(--ease-hero);
}

.field__input--sub {
    font-size: 1.05rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

.field__input::placeholder {
    color: rgba(255, 255, 255, 0.22);
    font-weight: 500;
    letter-spacing: 0;
}

.field__input:focus {
    border-bottom-color: var(--club-red);
    box-shadow: 0 1px 0 0 var(--club-red);
}

/* -- VS PILL -- */
.matchup__vs {
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.32em;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    position: relative;
    line-height: 1;
}

.matchup__vs::before,
.matchup__vs::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--club-red-hairline), transparent);
}
.matchup__vs::before { right: 100%; }
.matchup__vs::after  { left: 100%; }

/* -- FORMAT GRID -- */
.format-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.format-card.shell {
    padding: 3px;
    border-radius: 22px;
}

.format-card__inner {
    padding: 16px 22px 16px;
    background: #0c0c0e;
    border-radius: 19px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.format-card__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
}

.format-card__eyebrow {
    font-family: var(--font-display);
    font-size: 0.62rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 500;
}

.format-card__value {
    font-family: var(--font-numeric);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    font-size: 2.4rem;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #fff;
}

/* Karten mit Text- statt Zahlenwert (z. B. Header-Optik): Display-Font,
   kleiner gesetzt, damit der Wert nicht umbricht. */
.format-card__value--text {
    font-family: var(--font-display);
    font-size: 1.35rem;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

/* Sektion mit nur einer Karte — sonst bliebe die zweite Spalte leer. */
.format-grid--single { grid-template-columns: 1fr; }

/* -- SEGMENTED PILLS -- */
.segmented {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    padding: 4px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.segmented__opt {
    appearance: none;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-numeric);
    font-variant-numeric: tabular-nums;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 10px 4px;
    border-radius: 10px;
    cursor: pointer;
    transition:
        color 300ms var(--ease-hero),
        background-color 300ms var(--ease-hero),
        box-shadow 300ms var(--ease-hero),
        transform 300ms var(--ease-hero);
    position: relative;
    line-height: 1;
}

/* Zwei-Optionen-Variante mit Textlabels statt Zahlen. */
.segmented--duo {
    grid-template-columns: 1fr 1fr;
    max-width: 340px;
}

.segmented--duo .segmented__opt {
    font-family: var(--font-display);
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.segmented__opt:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.045);
}

.segmented__opt.is-active {
    color: #fff;
    background: linear-gradient(180deg, var(--club-red), var(--club-red-deep));
    box-shadow:
        0 0 0 1px var(--club-red),
        0 8px 20px -8px var(--club-red-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.segmented__opt:active {
    transform: scale(0.97);
}

/* -- OPTION CARD (Anzeige-Präferenzen) -- */
.option-card.shell {
    padding: 3px;
    border-radius: 22px;
}

.option-card__inner {
    padding: 14px 22px;
    background: #0c0c0e;
    border-radius: 19px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.option-card__meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    flex: 1;
}

.option-card__title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.005em;
    color: #fff;
    line-height: 1.15;
}

.option-card__sub {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.01em;
    line-height: 1.35;
}

/* -- CUSTOM SWITCH — iOS-inspired, DC-tuned -- */
.switch {
    appearance: none;
    border: none;
    flex-shrink: 0;
    width: 62px;
    height: 34px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 1px 1px rgba(0, 0, 0, 0.35);
    position: relative;
    cursor: pointer;
    padding: 0;
    transition:
        background 500ms var(--ease-hero),
        box-shadow 500ms var(--ease-hero);
    outline: none;
}

.switch__thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f5f5f5;
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition:
        transform 500ms var(--ease-hero),
        background-color 500ms var(--ease-hero);
    will-change: transform;
}

.switch.is-on {
    background: linear-gradient(180deg, var(--club-red), var(--club-red-deep));
    box-shadow:
        inset 0 0 0 1px var(--club-red),
        0 10px 26px -10px var(--club-red-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.switch.is-on .switch__thumb {
    transform: translateX(28px);
    background: #ffffff;
}

.switch:active .switch__thumb {
    transform: scale(0.94);
}
.switch.is-on:active .switch__thumb {
    transform: translateX(28px) scale(0.94);
}

.switch:focus-visible {
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.14),
        inset 0 1px 1px rgba(0, 0, 0, 0.35),
        0 0 0 3px rgba(225, 29, 46, 0.3);
}
.switch.is-on:focus-visible {
    box-shadow:
        inset 0 0 0 1px var(--club-red),
        0 10px 26px -10px var(--club-red-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 0 0 3px rgba(225, 29, 46, 0.35);
}

/* -- CTA ROW -- */
.home-cta-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 4px;
    animation: sectionReveal 900ms var(--ease-hero) 460ms both;
}

/* -- PRIMARY CTA — "Button-in-Button" magnetic pill -- */
.home-cta {
    appearance: none;
    border: none;
    padding: 6px 8px 6px 32px;
    display: inline-flex;
    align-items: center;
    gap: 22px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--club-red) 0%, var(--club-red-deep) 100%);
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow:
        0 0 0 1px var(--club-red),
        0 22px 56px -20px var(--club-red-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transition:
        transform 400ms var(--ease-hero),
        box-shadow 400ms var(--ease-hero),
        opacity 400ms var(--ease-hero);
    position: relative;
    isolation: isolate;
    line-height: 1;
}

.home-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.22), transparent 65%);
    opacity: 0;
    transition: opacity 500ms var(--ease-hero);
    pointer-events: none;
}

.home-cta:hover {
    box-shadow:
        0 0 0 1px var(--club-red),
        0 30px 70px -22px rgba(225, 29, 46, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.home-cta:hover::before { opacity: 1; }
.home-cta:hover .home-cta__icon {
    transform: translateX(3px) scale(1.05);
    background: rgba(0, 0, 0, 0.45);
}

.home-cta:active {
    transform: scale(0.98);
}

.home-cta:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow:
        0 0 0 1px rgba(225, 29, 46, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.home-cta:disabled:hover .home-cta__icon {
    transform: none;
    background: rgba(0, 0, 0, 0.35);
}

.home-cta__label {
    padding: 14px 0;
    white-space: nowrap;
}

.home-cta__icon {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.32);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition:
        transform 500ms var(--ease-hero),
        background-color 400ms var(--ease-hero);
    flex-shrink: 0;
}

/* -- CONTINUE (secondary ghost link — deliberately quieter than CTA) -- */
.home-continue {
    appearance: none;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.45);
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 4px;
    cursor: pointer;
    transition: color 400ms var(--ease-hero);
    line-height: 1;
    margin-top: 6px;
    position: relative;
}

.home-continue__text {
    position: relative;
}

.home-continue__text::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 500ms var(--ease-hero);
    opacity: 0.5;
}

.home-continue__arrow {
    opacity: 0.6;
    transition:
        transform 500ms var(--ease-hero),
        opacity 400ms var(--ease-hero);
    flex-shrink: 0;
}

.home-continue:hover {
    color: #fff;
}
.home-continue:hover .home-continue__text::after {
    transform: scaleX(1);
    opacity: 0.35;
}
.home-continue:hover .home-continue__arrow {
    transform: translateX(4px);
    opacity: 1;
}

/* -- MOBILE -- */
@media (max-width: 768px) {
    .home-shell {
        padding: 16px 14px calc(16px + env(safe-area-inset-bottom, 0px));
    }
    .home-shell::before { display: none; }

    .home-viewport {
        gap: 28px;
        padding: 12px 0 24px;
    }

    .home-hero { gap: 14px; }
    .home-title { font-size: clamp(2.4rem, 11vw, 3.6rem); }
    .home-hero::after { width: 56px; }

    .home-section__label { font-size: 0.78rem; letter-spacing: 0.22em; gap: 12px; }
    .home-section__label-dot { width: 7px; height: 7px; }

    .matchup {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .matchup__vs { justify-self: center; padding: 6px 14px; }
    .matchup__vs::before,
    .matchup__vs::after { width: 40px; }

    .player-card__inner { padding: 18px 18px 18px; gap: 14px; }
    .player-card__badge { top: 12px; right: 16px; font-size: 0.65rem; letter-spacing: 0.22em; }
    .field__input { font-size: 1.15rem; }
    .field__input--sub { font-size: 0.95rem; }

    .format-grid { grid-template-columns: 1fr; gap: 14px; }
    .format-card__inner { padding: 18px 18px 16px; gap: 14px; }
    .format-card__value { font-size: 2rem; }
    .segmented__opt { font-size: 0.85rem; padding: 9px 2px; }

    .option-card__inner { padding: 16px 18px; gap: 16px; }
    .option-card__title { font-size: 1rem; }
    .option-card__sub { font-size: 0.78rem; }
    .switch { width: 54px; height: 30px; }
    .switch__thumb { width: 24px; height: 24px; }
    .switch.is-on .switch__thumb { transform: translateX(24px); }
    .switch.is-on:active .switch__thumb { transform: translateX(24px) scale(0.94); }

    .home-cta {
        font-size: 0.82rem;
        padding: 5px 6px 5px 24px;
        gap: 16px;
        letter-spacing: 0.2em;
    }
    .home-cta__label { padding: 12px 0; }
    .home-cta__icon { width: 40px; height: 40px; }

    .home-continue { font-size: 0.8rem; }
}

/* ==================================================================
   DIALOGS
   ================================================================== */
.dialog-title {
    color: var(--base-accent) !important;
    font-weight: 700;
}

.dialog-meta {
    font-size: 0.875rem;
    color: var(--base-muted);
}

/* ==================================================================
   ENDGAME DIALOG — Vantablack + Double-Bezel, matched Winner-Overlay
   ================================================================== */

/* MudDialog-Paper transparent machen, damit unser Shell die Kante zeichnet.
   `Class="endgame-dialog"` landet direkt auf `.mud-dialog` — wir müssen dessen
   Default-Background (#1a1a1a), Border-Radius (4px) und Material-Shadow killen. */
.mud-dialog.endgame-dialog {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 34px !important;
    overflow: visible !important;
}

.mud-dialog.endgame-dialog .mud-dialog-content {
    padding: 0 !important;
    overflow: visible !important;
}

/* Outer shell — Hairline, wie Winner-Overlay */
.endgame-dialog__shell {
    padding: 5px;
    border-radius: 34px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    box-shadow:
        0 60px 140px -40px rgba(0, 0, 0, 0.9),
        0 0 0 1px rgba(255, 255, 255, 0.06);
    animation: endgameDialogPop 480ms cubic-bezier(0.32, 0.72, 0, 1);
}

@keyframes endgameDialogPop {
    from { opacity: 0; transform: translateY(20px) scale(0.96); filter: blur(6px); }
    to   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* Inner core — Vantablack mit dezentem rotem Marken-Ausklang oben.
   Rot statt Gold, weil Utility-Dialoge nicht die Sieger-Semantik tragen dürfen. */
.endgame-dialog__core {
    position: relative;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(225, 29, 46, 0.09), transparent 70%),
        linear-gradient(180deg, #0a0a0c 0%, #050506 100%);
    border-radius: calc(34px - 5px);
    padding: 44px 44px 32px;
    text-align: center;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Feiner Grain-Overlay */
.endgame-dialog__core::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 3px 3px;
    opacity: 0.5;
    pointer-events: none;
    mix-blend-mode: overlay;
}

/* Crest — Custom-SVG in Club-Red (Brand-Akzent), weicher roter Glow */
.endgame-dialog__crest {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0 auto 16px;
    color: var(--club-red);
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 18px rgba(225, 29, 46, 0.5));
}

.endgame-dialog__crest::before {
    content: "";
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle, rgba(225, 29, 46, 0.22), transparent 65%);
    z-index: -1;
    pointer-events: none;
}

/* Eyebrow */
.endgame-dialog__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 5px 12px;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10);
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-size: 0.6rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.62);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.endgame-dialog__eyebrow-dot {
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: var(--club-red);
    box-shadow: 0 0 8px rgba(225, 29, 46, 0.9);
}

.endgame-dialog__title {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3.8vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    color: #ffffff;
    line-height: 1;
    margin: 0 0 14px;
    position: relative;
    z-index: 1;
}

.endgame-dialog__body {
    font-family: var(--font-display);
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 auto 32px;
    max-width: 34ch;
    position: relative;
    z-index: 1;
}

.endgame-dialog__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    position: relative;
    z-index: 1;
}

/* Buttons — gleiche Skala wie Winner-Overlay */
.endgame-dialog__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 50px;
    padding: 0 22px;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 999px;
    cursor: pointer;
    border: none;
    transition:
        transform 260ms cubic-bezier(0.32, 0.72, 0, 1),
        box-shadow 260ms cubic-bezier(0.32, 0.72, 0, 1),
        background 260ms cubic-bezier(0.32, 0.72, 0, 1);
}

.endgame-dialog__btn:active {
    transform: scale(0.98);
}

/* Ghost — primärer harmloser Button (Schließen / Speichern & beenden) */
.endgame-dialog__btn--ghost {
    background: transparent;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.92);
}

.endgame-dialog__btn--ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}

/* Primary — Weißer Solid-Pill mit Nested-Arrow. Neutrale positive Aktion:
   Rot bleibt "Löschen" vorbehalten, Gold bleibt dem Sieger-Dialog vorbehalten. */
.endgame-dialog__btn--primary {
    background: linear-gradient(180deg, #ffffff 0%, #e5e5e5 100%);
    color: #0a0a0c;
    padding: 0 8px 0 24px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 10px 30px -10px rgba(255, 255, 255, 0.25);
}

.endgame-dialog__btn--primary:hover {
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        0 16px 40px -10px rgba(255, 255, 255, 0.35);
}

.endgame-dialog__btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.1);
    color: #0a0a0c;
    transition: transform 260ms cubic-bezier(0.32, 0.72, 0, 1);
}

.endgame-dialog__btn--primary:hover .endgame-dialog__btn-icon {
    transform: translate(2px, -1px) scale(1.06);
}

/* Destructive Link — visuell klar sekundär, aber eindeutig */
.endgame-dialog__link {
    background: transparent;
    border: none;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 12px 8px;
    margin-top: 4px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.4);
    transition: color 220ms cubic-bezier(0.32, 0.72, 0, 1);
    border-radius: 6px;
}

.endgame-dialog__link--danger:hover {
    color: #f87171;
}

@media (max-width: 600px) {
    .endgame-dialog__shell { border-radius: 26px; padding: 4px; }
    .endgame-dialog__core { padding: 32px 22px 24px; border-radius: calc(26px - 4px); }
    .endgame-dialog__title { font-size: 1.5rem; }
    .endgame-dialog__body { font-size: 0.9rem; margin-bottom: 24px; }
    .endgame-dialog__btn { height: 48px; }
}

.dialog-date {
    font-size: 0.75rem;
    color: #888;
}

/* ==================================================================
   CONFIRM DIALOG — Vantablack + Double-Bezel, matched EndGame-Dialog
   Zweck: universelle Ja/Nein-Bestätigung (Direkt-Checkout, Restart, …)
   ================================================================== */

.mud-dialog.confirm-dialog {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 30px !important;
    overflow: visible !important;
}

.mud-dialog.confirm-dialog .mud-dialog-content {
    padding: 0 !important;
    overflow: visible !important;
}

.confirm-dialog__shell {
    padding: 5px;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    box-shadow:
        0 60px 140px -40px rgba(0, 0, 0, 0.9),
        0 0 0 1px rgba(255, 255, 255, 0.06);
    animation: endgameDialogPop 480ms cubic-bezier(0.32, 0.72, 0, 1);
    outline: none;
}

.confirm-dialog__core {
    position: relative;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(225, 29, 46, 0.10), transparent 70%),
        linear-gradient(180deg, #0a0a0c 0%, #050506 100%);
    border-radius: calc(30px - 5px);
    padding: 40px 40px 26px;
    text-align: center;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.confirm-dialog__core::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 3px 3px;
    opacity: 0.5;
    pointer-events: none;
    mix-blend-mode: overlay;
}

/* Crest — Dartscheiben-Bullseye statt Ordner/Haus, weil dieser Dialog
   generisch für Match-Entscheidungen greift (Checkout, Restart, …). */
.confirm-dialog__crest {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0 auto 14px;
    color: var(--club-red);
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 18px rgba(225, 29, 46, 0.5));
}

.confirm-dialog__crest::before {
    content: "";
    position: absolute;
    inset: -55%;
    background: radial-gradient(circle, rgba(225, 29, 46, 0.22), transparent 65%);
    z-index: -1;
    pointer-events: none;
}

.confirm-dialog__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 5px 12px;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10);
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-size: 0.6rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.62);
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.confirm-dialog__eyebrow-dot {
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: var(--club-red);
    box-shadow: 0 0 8px rgba(225, 29, 46, 0.9);
}

.confirm-dialog__title {
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 3.4vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    color: #ffffff;
    line-height: 1.05;
    margin: 0 0 12px;
    position: relative;
    z-index: 1;
}

.confirm-dialog__body {
    font-family: var(--font-display);
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.62);
    margin: 0 auto 26px;
    max-width: 36ch;
    position: relative;
    z-index: 1;
}

.confirm-dialog__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.confirm-dialog__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 50px;
    padding: 0 22px;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 999px;
    cursor: pointer;
    border: none;
    transition:
        transform 260ms cubic-bezier(0.32, 0.72, 0, 1),
        box-shadow 260ms cubic-bezier(0.32, 0.72, 0, 1),
        background 260ms cubic-bezier(0.32, 0.72, 0, 1);
}

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

/* Sichtbarer Fokus-Ring auf dem Primary-Button — signalisiert, dass ENTER greift.
   Wir übermalen den harten Default-Outline mit einem weichen Ring in Club-Red. */
.confirm-dialog__btn:focus,
.confirm-dialog__btn:focus-visible {
    outline: none;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 10px 30px -10px rgba(255, 255, 255, 0.25),
        0 0 0 3px rgba(225, 29, 46, 0.55);
}

.confirm-dialog__btn--ghost:focus,
.confirm-dialog__btn--ghost:focus-visible {
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.34),
        0 0 0 3px rgba(225, 29, 46, 0.45);
}

/* Primary — weißer Solid-Pill mit Nested-Arrow-Icon. Neutrale positive Aktion. */
.confirm-dialog__btn--primary {
    background: linear-gradient(180deg, #ffffff 0%, #e5e5e5 100%);
    color: #0a0a0c;
    padding: 0 8px 0 24px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 10px 30px -10px rgba(255, 255, 255, 0.25);
}

.confirm-dialog__btn--primary:hover {
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        0 16px 40px -10px rgba(255, 255, 255, 0.35);
}

.confirm-dialog__btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.1);
    color: #0a0a0c;
    transition: transform 260ms cubic-bezier(0.32, 0.72, 0, 1);
}

.confirm-dialog__btn--primary:hover .confirm-dialog__btn-icon {
    transform: translate(2px, -1px) scale(1.06);
}

/* Ghost — Cancel, klar sekundär */
.confirm-dialog__btn--ghost {
    background: transparent;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.92);
}

.confirm-dialog__btn--ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}

/* Keyboard-Hint — Enter/Esc dezent zeigen, weil beide Shortcuts tragen. */
.confirm-dialog__hint {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.34);
    position: relative;
    z-index: 1;
}

.confirm-dialog__hint kbd {
    font-family: var(--font-display);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 2px 7px;
    margin-right: 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.7);
}

.confirm-dialog__hint-sep {
    opacity: 0.5;
}

@media (max-width: 600px) {
    .confirm-dialog__shell { border-radius: 24px; padding: 4px; }
    .confirm-dialog__core { padding: 30px 22px 22px; border-radius: calc(24px - 4px); }
    .confirm-dialog__title { font-size: 1.4rem; }
    .confirm-dialog__body { font-size: 0.9rem; margin-bottom: 22px; }
    .confirm-dialog__btn { height: 48px; }
    .confirm-dialog__hint { font-size: 0.6rem; }
}

/* ==================================================================
   SELECT GAME DIALOG — matches EndGame-Dialog (Vantablack + Double-Bezel)
   ================================================================== */

.mud-dialog.select-dialog {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 34px !important;
    overflow: visible !important;
}

.mud-dialog.select-dialog .mud-dialog-content {
    padding: 0 !important;
    overflow: visible !important;
}

.select-dialog__shell {
    padding: 5px;
    border-radius: 34px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    box-shadow:
        0 60px 140px -40px rgba(0, 0, 0, 0.9),
        0 0 0 1px rgba(255, 255, 255, 0.06);
    animation: endgameDialogPop 480ms cubic-bezier(0.32, 0.72, 0, 1);
}

.select-dialog__core {
    position: relative;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(225, 29, 46, 0.09), transparent 70%),
        linear-gradient(180deg, #0a0a0c 0%, #050506 100%);
    border-radius: calc(34px - 5px);
    padding: 36px 32px 24px;
    text-align: center;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.select-dialog__core::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 3px 3px;
    opacity: 0.5;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.select-dialog__crest {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0 auto 14px;
    color: var(--club-red);
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 18px rgba(225, 29, 46, 0.5));
}

.select-dialog__crest::before {
    content: "";
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle, rgba(225, 29, 46, 0.22), transparent 65%);
    z-index: -1;
    pointer-events: none;
}

.select-dialog__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 5px 12px;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10);
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-size: 0.6rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.62);
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.select-dialog__eyebrow-dot {
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: var(--club-red);
    box-shadow: 0 0 8px rgba(225, 29, 46, 0.9);
}

.select-dialog__title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.4vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #ffffff;
    line-height: 1;
    margin: 0 0 24px;
    position: relative;
    z-index: 1;
}

/* Item-Liste — scrollt intern, damit lange Archive den Dialog nicht sprengen */
.select-dialog__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: min(52vh, 440px);
    overflow-y: auto;
    padding: 2px;
    margin: 0 -2px 20px;
    position: relative;
    z-index: 1;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
}

.select-dialog__list::-webkit-scrollbar { width: 6px; }
.select-dialog__list::-webkit-scrollbar-track { background: transparent; }
.select-dialog__list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 999px;
}

.select-dialog__item {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: none;
    border-radius: 14px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.92);
    text-align: left;
    cursor: pointer;
    transition:
        transform 240ms var(--ease-hero),
        background 240ms var(--ease-hero),
        box-shadow 240ms var(--ease-hero);
}

.select-dialog__item:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-1px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.select-dialog__item:active { transform: scale(0.995); }

/* Laufende Spiele: dezenter roter Akzent-Streifen links — signalisiert "aktiv" */
.select-dialog__item--running {
    background:
        linear-gradient(90deg, rgba(225, 29, 46, 0.08) 0%, rgba(225, 29, 46, 0) 45%),
        rgba(255, 255, 255, 0.02);
}

.select-dialog__item--running:hover {
    background:
        linear-gradient(90deg, rgba(225, 29, 46, 0.14) 0%, rgba(225, 29, 46, 0) 55%),
        rgba(255, 255, 255, 0.04);
}

.select-dialog__item-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.select-dialog__item-players {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.98rem;
    letter-spacing: -0.01em;
    color: #ffffff;
}

.select-dialog__item-name {
    text-transform: uppercase;
    letter-spacing: 0.02em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 40%;
}

/* Profil-Logo aus dem Match-Snapshot — kleiner runder Avatar vor dem Namen */
.select-dialog__item-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
    flex-shrink: 0;
    align-self: center;
}

.select-dialog__item-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.select-dialog__item-vs {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

.select-dialog__item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-family: var(--font-display);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.select-dialog__item-meta-dot {
    width: 3px;
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    flex-shrink: 0;
}

.select-dialog__item-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.04);
    flex-shrink: 0;
    transition: transform 240ms var(--ease-hero), background 240ms var(--ease-hero), color 240ms var(--ease-hero);
}

.select-dialog__item:hover .select-dialog__item-arrow {
    transform: translateX(2px);
    background: rgba(255, 255, 255, 0.09);
    color: #ffffff;
}

.select-dialog__actions {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.select-dialog__link {
    background: transparent;
    border: none;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 12px 20px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.4);
    transition: color 220ms var(--ease-hero);
    border-radius: 6px;
}

.select-dialog__link:hover {
    color: rgba(255, 255, 255, 0.85);
}

/* ==================================================================
   HEADER — glass shell, player pills, floating legs badge
   ================================================================== */
/* ==================================================================
   HEADER — Rot als Grundfarbe, Aktiver Spieler durch Weißglühen abgesetzt
   ================================================================== */
.scoreboard-header.shell {
    padding: 3px;
    border-radius: 14px;
    /* Roter Rand statt neutralem Grau — passt zur Vereinsidentität (N01-Stil).
       Horizontal um 6 px eingerückt, damit die Breite exakt zu den MudItem-
       Panels darunter (padding: 6 px) fluchtet. Margin-bottom auf 6 px
       überschreibt Bootstrap-Utility `mb-3` (12 px), damit die Vertikallücke
       zum Middle-Section (6 px + 6 px MudItem-Padding = 12 px) exakt der
       Horizontallücke zwischen den Panels entspricht. */
    margin: 0 6px 6px 6px !important;
    /* Neutraler Doppelrand wie alle anderen Shells. Die Vereinsfarbe ist
       kein Flaechen-, sondern ein Zustandssignal (siehe .header-wash). */
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 12px 40px -20px rgba(225, 29, 46, 0.35);
}

.scoreboard-header .shell__inner {
    /* Bewusst symmetrisches Padding rundum, damit der Abstand von Logo/Name
       zur linken Kante 1:1 dem Abstand zum oberen Rand entspricht.
       Reduziert (14 → 10 px), damit die vergrößerte Titel-Typografie
       den Header-Rahmen in seinen bisherigen Proportionen belässt. */
    padding: 10px 14px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 18px;
    /* Dunkle Grundfläche, identisch zu den übrigen Panels — der Header
       konkurriert nicht mehr mit den Zahlen um die Aufmerksamkeit. */
    background: linear-gradient(180deg, #131315 0%, #0b0b0d 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    position: relative;
    isolation: isolate;
}

/* ------------------------------------------------------------------
   AKTIV-SEITE — die Vereinsfarbe wandert auf die Hälfte des Werfers.
   Zwei feste Verlaufsflächen (links/rechts) werden per Opacity gekreuzt,
   dazu gleitet ein Akzentbalken auf der Unterkante zur aktiven Seite.
   Nur opacity/transform => GPU-sicher, kein Reflow beim Spielerwechsel.
   ------------------------------------------------------------------ */
.header-wash {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 62%;
    z-index: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 520ms var(--ease-hero);
}

.header-wash--left {
    left: 0;
    background: linear-gradient(90deg,
        rgba(225, 29, 46, 0.45) 0%,
        rgba(225, 29, 46, 0.18) 42%,
        rgba(225, 29, 46, 0) 100%);
}

.header-wash--right {
    right: 0;
    background: linear-gradient(270deg,
        rgba(225, 29, 46, 0.45) 0%,
        rgba(225, 29, 46, 0.18) 42%,
        rgba(225, 29, 46, 0) 100%);
}

.scoreboard-header.is-p1 .header-wash--left,
.scoreboard-header.is-p2 .header-wash--right { opacity: 1; }

/* Durchgehende Unterkante in Vereinsfarbe — Identität, immer sichtbar ... */
.header-underline {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--club-red-hairline) 18%,
        var(--club-red-hairline) 82%,
        transparent 100%);
}

/* ... darauf der helle Balken, der die aktive Hälfte markiert (Zustand). */
.header-underline__bar {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 50%;
    /* Beidseitig weich auslaufend — dadurch braucht der Balken beim
       Seitenwechsel keine Spiegelung, ein reines translateX genügt. */
    background: linear-gradient(90deg,
        rgba(225, 29, 46, 0) 0%,
        var(--club-red) 28%,
        var(--club-red) 72%,
        rgba(225, 29, 46, 0) 100%);
    box-shadow: 0 0 16px var(--club-red-glow);
    transform: translateX(0);
    transition: transform 620ms var(--ease-hero), opacity 320ms var(--ease-hero);
    will-change: transform;
}

.scoreboard-header.is-p2 .header-underline__bar { transform: translateX(100%); }

/* Kein aktiver Spieler (z. B. Match ohne Sieger beendet): Balken ausblenden. */
.scoreboard-header:not(.is-p1):not(.is-p2) .header-underline__bar { opacity: 0; }

/* Inhalte über die Verlaufsflächen heben. */
.scoreboard-header .player-header { z-index: 1; }
/* Legs-Gruppe wird absolut auf die exakte Mitte des Headers gelegt.
   So bleibt der Ergebnis-Block (Legs + Eyebrow) unabhängig von der
   Breite der Spielernamen oder dem rechts absolut positionierten
   Menü-Button optisch zentriert. */
.scoreboard-header .legs-group {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
    .header-wash,
    .header-underline__bar { transition-duration: 1ms; }
}

.player-header {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    /* Einheitliches Padding rundum — kombiniert mit dem shell__inner-Padding
       ergibt sich links/oben derselbe Abstand von der äußeren Header-Kante. */
    padding: 4px;
    transition: opacity 300ms var(--ease-hero), color 300ms var(--ease-hero);
    position: relative;
}

/* Rechts brauchen wir zusätzlichen Freiraum für den absolut positionierten
   Menü-Button (drei-Punkte), damit die P2-Zeile nicht darunter läuft. */
.player-header--right { align-items: flex-end; text-align: right; }

/* Der aktive Spieler bekommt neben dem roten Score-Box-Rahmen unten
   einen zweiten, klar sichtbaren Signalpfad: der Name bleibt voll weiß,
   der inaktive Name fällt spürbar zurück. So ist auch aus 7 m ohne
   Blick auf die Box eindeutig, wer wirft. */
.player-header.inactive-player {
    opacity: 0.5;
}

.player-header.inactive-player .player-header__name {
    font-weight: 600;
    text-shadow: none;
    color: rgba(255, 255, 255, 0.62);
}

/* Kein Wurf-Punkt (bewusst) — würde beim Spielerwechsel den Namen
   um seine eigene Breite verschieben und optisch springen lassen.
   Aktiv-Signal trägt das stark gedimmte Verlierer-Feld unten + der
   dunklere inaktive Name. */

.player-header.active-player {
    opacity: 1;
}

.player-header__row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.player-header__row--right { justify-content: flex-end; }

.player-header__name {
    font-family: var(--font-display);
    font-weight: 700;
    /* Vergrößert, damit der Vereinsname visuell etwa auf der Höhe des
       Logos sitzt — Header-Rahmen bleibt dabei durch reduziertes
       shell__inner-Padding (siehe oben) proportional erhalten. */
    font-size: clamp(2.4rem, 3.2vw, 4.2rem);
    letter-spacing: 0.02em;
    line-height: 1;
    color: var(--base-foreground);
    text-transform: uppercase;
}

/* Nutzt ein Spieler ein Profil mit eigener Schrift, wird die CSS-Variable
   --player-font pro Seite gesetzt und überschreibt die Default-Schrift. */
.player-header__name[data-has-profile-font="true"] {
    font-family: var(--player-font, var(--font-display));
    font-weight: 400;
    letter-spacing: 0.04em;
}

/* Der Glow des aktiven Namens trägt jetzt die Vereinsfarbe — dasselbe
   Signal wie Wash und Unterkanten-Balken, nur auf Typo-Ebene. */
.player-header.active-player .player-header__name {
    color: #fff;
    text-shadow: 0 0 26px var(--club-red-glow), 0 0 60px rgba(225, 29, 46, 0.25);
}

.player-header__team {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--base-subtle);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.player-header__team--right { text-align: right; }

/* Vereinslogo neben dem Namen — links bei Spieler 1, rechts bei Spieler 2.
   Höhe folgt der aktuellen Schriftgröße, damit Logo und Text zusammen bündig
   in der Zeile sitzen (auch bei Custom-Fonts, die höhere Ascender haben). */
.player-header__logo {
    height: clamp(2rem, 2.6vw, 3.4rem);
    width: auto;
    max-width: clamp(2rem, 2.6vw, 3.4rem);
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 0 12px rgba(0, 0, 0, 0.35));
    transition: opacity 300ms var(--ease-hero), filter 300ms var(--ease-hero);
}

.player-header.inactive-player .player-header__logo {
    opacity: 0.65;
}

/* Legs-Gruppe — zentrale Match-Meta-Zone (Eyebrow + Score) */
.legs-group {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    line-height: 1;
}

.legs-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 4px 14px;
    border-radius: 999px;
    /* Auf dunklem Header-Grund: dezenter Glas-Pill. */
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--base-subtle);
    line-height: 1;
    white-space: nowrap;
}

.legs-eyebrow__dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--club-red);
    box-shadow: 0 0 8px var(--club-red-glow);
    flex-shrink: 0;
}

.legs-badge__value {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    font-family: var(--font-numeric);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    /* Ohne Eyebrow trägt der Legs-Stand die Mitte der Titelzeile allein —
       daher etwas kräftiger und deutlich größer als die Vereinsnamen. */
    font-size: clamp(2.8rem, 3.8vw, 5rem);
    line-height: 1;
    color: var(--base-foreground);
    letter-spacing: -0.02em;
}

.legs-badge__num {
    min-width: 1.4ch;
    text-align: center;
    color: var(--base-muted);
    transition: color 350ms var(--ease-hero), text-shadow 350ms var(--ease-hero);
    display: inline-block;
}

/* Leg-Führung — dominante weiße Ziffer mit weichem Weiß-Halo (auf Rot lesbar) */
.legs-badge__num.is-leading {
    color: #fff;
    text-shadow:
        0 0 24px rgba(255, 255, 255, 0.65),
        0 0 56px rgba(255, 255, 255, 0.28);
    animation: legWinPulse 950ms var(--ease-hero) 1;
}

.legs-badge__num.is-trailing {
    color: rgba(255, 255, 255, 0.48);
    font-weight: 500;
}

@keyframes legWinPulse {
    0%   { transform: scale(1);    text-shadow: 0 0 24px rgba(255, 255, 255, 0.65), 0 0 56px rgba(255, 255, 255, 0.28); }
    35%  { transform: scale(1.28); text-shadow: 0 0 36px rgba(255, 255, 255, 0.9), 0 0 84px rgba(255, 255, 255, 0.4); }
    100% { transform: scale(1);    text-shadow: 0 0 24px rgba(255, 255, 255, 0.65), 0 0 56px rgba(255, 255, 255, 0.28); }
}

/* Der Doppelpunkt ist der einzige feste Farbakzent im Header — er sitzt
   auf der meistgelesenen Zahl und kostet keine Signalwirkung. */
.legs-badge__sep {
    color: var(--club-red);
    font-weight: 500;
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Schwebender Aktions-Menü-Button oben rechts. Auf Web sitzt er allein an der
   Kante; auf Desktop rückt er links neben die Window-Controls (Fullscreen/Close)
   und passt sich an deren dynamische Breite an. Optik ist bewusst identisch mit
   .window-controls__btn, damit es wie ein zusammenhängender Toolbar-Streifen wirkt. */
.scoreboard-floating-menu {
    position: fixed;
    top: 8px;
    right: 8px;
    z-index: 9999;
    display: flex;
    align-items: center;
    /* Fullscreen-Button = 28px, Close-Button = 28px (nur im Vollbild sichtbar),
       jeweils 4px Gap und 8px right der Window-Controls: rechten Offset dynamisch
       pro Zustand setzen. */
}
.scoreboard-floating-menu.has-window-controls {
    right: calc(8px + 28px + 6px); /* Fullscreen-Button + kleiner Abstand */
}
.scoreboard-floating-menu.has-window-controls.has-close-btn {
    right: calc(8px + 28px + 4px + 28px + 6px); /* Fullscreen + Close + Gap + kleiner Abstand */
}
.scoreboard-floating-menu .mud-icon-button {
    width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
    color: rgba(255, 255, 255, 0.75) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border-radius: 8px !important;
    opacity: 0.65;
    transition: opacity 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease !important;
    outline: none !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
}
.scoreboard-floating-menu .mud-icon-button:hover {
    opacity: 1;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.14) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22) !important;
}
.scoreboard-floating-menu .mud-icon-button:focus,
.scoreboard-floating-menu .mud-icon-button:focus-visible,
.scoreboard-floating-menu .mud-icon-button:active {
    opacity: 1;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.06) !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.55) !important;
}
/* MudBlazor ripple/overlay dämpfen — verhindert das rote Nachleuchten */
.scoreboard-floating-menu .mud-icon-button .mud-ripple,
.scoreboard-floating-menu .mud-icon-button .mud-button-focus-overlay {
    background-color: transparent !important;
    opacity: 0 !important;
}

/* ------------------------------------------------------------------
   VARIANTE "Vollfläche" (AppSettings.HeaderStyle = Solid)
   Klassische N01-Optik: Header durchgehend in Vereinsfarbe. Wash und
   Unterkanten-Balken entfallen, alle Kind-Elemente wechseln auf die
   Kontrastwerte für hellen Grund.
   ------------------------------------------------------------------ */
.scoreboard-header.is-solid.shell {
    background: linear-gradient(180deg, rgba(225, 29, 46, 0.7), rgba(184, 21, 36, 0.6));
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 12px 40px -20px rgba(225, 29, 46, 0.5);
}

.scoreboard-header.is-solid .shell__inner {
    background: linear-gradient(180deg, var(--club-red) 0%, var(--club-red-deep) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.scoreboard-header.is-solid .header-wash,
.scoreboard-header.is-solid .header-underline { display: none; }

.scoreboard-header.is-solid .player-header.active-player .player-header__name {
    text-shadow: 0 0 24px rgba(255, 255, 255, 0.2);
}

.scoreboard-header.is-solid .player-header.inactive-player .player-header__name {
    color: rgba(255, 255, 255, 0.72);
}

.scoreboard-header.is-solid .legs-eyebrow {
    background: rgba(0, 0, 0, 0.22);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.92);
}

.scoreboard-header.is-solid .legs-eyebrow__dot {
    background: #ffffff;
    box-shadow: none;
    opacity: 0.9;
}

.scoreboard-header.is-solid .legs-badge__num { color: rgba(255, 255, 255, 0.92); }
.scoreboard-header.is-solid .legs-badge__num.is-trailing { color: rgba(255, 255, 255, 0.55); }
.scoreboard-header.is-solid .legs-badge__sep { color: rgba(255, 255, 255, 0.7); opacity: 0.85; }

/* ==================================================================
   MIDDLE SECTION
   Keine eigene margin-bottom — die 12 px Vertikallücke zur Score-Boxes-
   Zeile entsteht symmetrisch aus MudItem-Paddings (6 px unten + 6 px oben)
   und passt so exakt zur Horizontallücke zwischen den Grid-Kindern.
   ================================================================== */
.middle-section {
    flex-grow: 1;
    min-height: 0;
    margin-bottom: 0;
}

/* ==================================================================
   TABLE SHELL (mid-column double-bezel)
   ================================================================== */
.table-shell.shell {
    padding: 3px;
    border-radius: 14px;
    height: 100%;
}
.table-shell__inner {
    height: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    background: #0d0d0f;
    /* Rundung reduziert (der äußere .shell mit 18px Radius trägt die visuelle
       Rundung); shell__inner nahezu rechteckig, damit Zellen am Rand nicht
       mehr durch die 15px-Rundung beschnitten werden (relevant für active-input). */
    border-radius: 4px;
}

/* ==================================================================
   SCOREBOARD TABLE
   ================================================================== */
.base-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.5rem;
    color: var(--base-foreground);
    display: flex;
    flex-direction: column;
    height: 100%;
    font-family: var(--font-numeric);
    font-variant-numeric: tabular-nums;
}

.base-table thead { flex-shrink: 0; }
.base-table tbody {
    flex-grow: 1;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.base-table tbody::-webkit-scrollbar { display: none; }
.base-table tr { display: table; width: 100%; table-layout: fixed; }
.base-table th:nth-child(1), .base-table td:nth-child(1) { width: 22%; }
.base-table th:nth-child(2), .base-table td:nth-child(2) { width: 22%; }
.base-table th:nth-child(3), .base-table td:nth-child(3) { width: 12%; }
.base-table th:nth-child(4), .base-table td:nth-child(4) { width: 22%; }
.base-table th:nth-child(5), .base-table td:nth-child(5) { width: 22%; }

.base-table th, .base-table td {
    border: none;
    border-bottom: 1px solid var(--base-hairline);
    padding: 8px;
    text-align: center;
    height: 45px;
    overflow: hidden;
}

.base-table th {
    font-size: 0.72rem;
    color: var(--base-subtle);
    font-family: var(--font-display);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.24em;
}

/* Dart-count column — Meta-Info, aber auf Distanz noch erkennbar.
   Skaliert mit; auf 1920 ~34 px hoch, damit die Ziffernkolonne aus 7 m
   noch klar zu erkennen ist (in N01 gleich groß wie die Score-Ziffer). */
.base-table td.dart-count-col {
    color: rgba(250, 250, 250, 0.82) !important;
    font-weight: 500 !important;
    /* Nahe an der Eingabe-Ziffer (~clamp(3rem, 3.6vw, 4.4rem)), nur einen Tick
       kleiner, damit die Dart-Zählung (3/6/9/12) aus der Halle klar erkennbar ist. */
    font-size: clamp(2.7rem, 3.3vw, 4rem) !important;
    font-family: var(--font-numeric) !important;
    font-variant-numeric: tabular-nums !important;
    letter-spacing: 0.02em !important;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)) !important;
    border-left: 1px solid var(--base-hairline) !important;
    border-right: 1px solid var(--base-hairline) !important;
}

/* Row canvas — no zebra; use subtle hairline rhythm instead */
.base-table tbody tr {
    background: transparent;
    animation: fadeSlideIn 400ms var(--ease-hero);
    transition: background-color 300ms var(--ease-hero);
}

.base-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.025);
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(-6px); filter: blur(2px); }
    to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

/* Start-Score Zeile — dunkler Karton mit dezenter roter Bottom-Rail als Leg-Start-Marker */
.start-score-row {
    background: #0a0a0c !important;
    color: var(--base-foreground);
    font-weight: 700;
    position: relative;
}

.start-score-row td {
    border-bottom: none !important;
    box-shadow: inset 0 -1px 0 var(--club-red) !important;
}

.start-score-cell {
    position: relative;
    vertical-align: bottom !important;
    padding-top: 18px !important;
    padding-bottom: 8px !important;
}

.start-score-label {
    position: absolute;
    top: 6px;
    left: 0;
    right: 0;
    text-align: center;
    font-family: var(--font-display);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.26em;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
    line-height: 1;
}

.start-score-number {
    display: block;
    font-family: var(--font-numeric);
    font-variant-numeric: tabular-nums;
    font-size: clamp(2.2rem, 2.4vw, 3rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.92);
}

/* To-Go: die operative Zahl — dominant weiß, kräftig */
.togo-cell {
    font-weight: 800 !important;
    color: #ffffff !important;
    letter-spacing: -0.03em !important;
}

/* Scored: gut lesbar (Distanz), Tier-Farben (100/140/180) übersteuern */
.score-cell {
    transition: color 300ms var(--ease-hero);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.94) !important;
}
.score-180 { color: var(--score-180) !important; font-weight: 700 !important; text-shadow: 0 0 12px rgba(245, 196, 81, 0.35); }
.score-140 { color: var(--score-140) !important; font-weight: 600 !important; }
.score-100 { color: var(--score-100) !important; font-weight: 600 !important; }
.score-bust { color: var(--score-bust) !important; opacity: 0.65; text-decoration: line-through; text-decoration-thickness: 1px; text-decoration-color: rgba(248, 113, 113, 0.4); }
.score-zero { color: var(--base-subtle) !important; }

/* 180 halo — subtle, not tacky */
@keyframes goldenPulse {
    0%,100% { text-shadow: 0 0 12px rgba(245, 196, 81, 0.35); }
    50%     { text-shadow: 0 0 20px rgba(245, 196, 81, 0.65), 0 0 40px rgba(245, 196, 81, 0.15); }
}
.score-180 { animation: goldenPulse 3s var(--ease-glide) infinite; }

/* ==================================================================
   180er-Flash — kurzer goldener Moment, wenn eine 180 frisch
   eingetragen wird. Bewusst kurz (900ms) und mit pointer-events:none,
   damit der Spielablauf nicht gestört wird. Wird per @key im Razor
   bei jedem neuen Trigger neu erzeugt, sodass die Animation
   zuverlässig von vorn startet.
   ================================================================== */
.oneeighty-flash {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 900;
    pointer-events: none;
    animation: oneEightyFade 2000ms var(--ease-hero) forwards;
}

.oneeighty-flash__glow {
    position: absolute;
    width: min(60vw, 640px);
    height: min(60vw, 640px);
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(245, 196, 81, 0.45) 0%,
        rgba(245, 196, 81, 0.18) 35%,
        transparent 70%);
    filter: blur(4px);
    animation: oneEightyGlow 2000ms var(--ease-hero) forwards;
}

.oneeighty-flash__number {
    position: relative;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(120px, 22vw, 260px);
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--score-180);
    text-shadow:
        0 0 30px rgba(245, 196, 81, 0.75),
        0 0 60px rgba(245, 196, 81, 0.35),
        0 4px 20px rgba(0, 0, 0, 0.6);
    animation: oneEightyPop 2000ms var(--ease-hero) forwards;
}

@keyframes oneEightyFade {
    0%   { opacity: 0; }
    15%  { opacity: 1; }
    70%  { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes oneEightyPop {
    0%   { transform: scale(0.55) rotate(-4deg); opacity: 0; }
    25%  { transform: scale(1.18) rotate(1deg);  opacity: 1; }
    45%  { transform: scale(0.98) rotate(0deg);  opacity: 1; }
    70%  { transform: scale(1.02) rotate(0deg);  opacity: 1; }
    100% { transform: scale(1.10) rotate(0deg);  opacity: 0; }
}

@keyframes oneEightyGlow {
    0%   { transform: scale(0.4); opacity: 0; }
    25%  { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1.3); opacity: 0; }
}

/* Reduce Motion — Nutzer, die Systemeinstellungen mit reduzierten
   Animationen bevorzugen, bekommen nur einen kurzen statischen Flash
   statt Scale/Rotate. */
@media (prefers-reduced-motion: reduce) {
    .oneeighty-flash__number,
    .oneeighty-flash__glow {
        animation-duration: 1200ms;
    }
    @keyframes oneEightyPop {
        0%,100% { opacity: 0; transform: none; }
        50%     { opacity: 1; transform: none; }
    }
}

/* Tappable cells */
.tappable-cell {
    cursor: pointer;
    transition: background-color 250ms var(--ease-hero);
}
.tappable-cell:hover {
    background-color: rgba(255, 255, 255, 0.04);
}

/* Active input — kräftiger Rot-Rahmen (aus Distanz klar erkennbar)
   Ausschließlich Inset-Shadows, damit die Zelle am Table-Rand nicht durch
   overflow:hidden des Shell-Containers beschnitten wird. */
.active-input {
    background:
        radial-gradient(ellipse at center, rgba(225, 29, 46, 0.2), transparent 70%),
        rgba(225, 29, 46, 0.06) !important;
    box-shadow:
        inset 0 0 0 2px var(--club-red),
        inset 0 0 28px rgba(225, 29, 46, 0.34) !important;
    border: none !important;
    border-radius: 6px;
    padding: 0 !important;
    position: relative;
}

.grid-input {
    width: 100%; height: 100%;
    background-color: transparent; border: none;
    color: var(--base-foreground) !important;
    text-align: center;
    font-family: var(--font-numeric);
    font-variant-numeric: tabular-nums;
    font-size: 1.5rem; font-weight: 600;
    letter-spacing: -0.02em;
    outline: none; box-sizing: border-box;
    caret-color: var(--base-accent);
}

.grid-input::-webkit-outer-spin-button, .grid-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number].grid-input { -moz-appearance: textfield; }

/* ==================================================================
   STATS PANELS — double-bezel glass cards
   ================================================================== */
.stat-container.shell {
    height: 100%;
    padding: 3px;
}

.stat-container__inner {
    height: 100%;
    padding: 12px 16px;
    overflow-y: auto;
    scrollbar-width: none;
    background: #0d0d0f;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-container__inner::-webkit-scrollbar { display: none; }

.stat-header {
    color: var(--club-red) !important;
    font-family: var(--font-display) !important;
    font-size: clamp(0.85rem, 1vw, 1.3rem) !important;
    margin-top: 18px;
    margin-bottom: 10px;
    font-weight: 700 !important;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    position: relative;
    padding-bottom: 6px;
}

.stat-header::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent);
}

.stat-header:first-child { margin-top: 0; }

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 1.55vw, 2rem);
    padding: 2px 0;
}

.stat-row span:first-child {
    color: var(--base-muted);
    font-weight: 600;
    letter-spacing: 0.01em;
}

.stat-row span:last-child {
    color: var(--base-foreground);
    font-family: var(--font-numeric);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    letter-spacing: -0.01em;
    font-size: clamp(1.35rem, 1.75vw, 2.3rem);
}

/* ==================================================================
   SCORE BOXES — the money shot (double-bezel, cinematic)
   ================================================================== */
/* ==================================================================
   SCORE BOXES — Primärelement für Lesbarkeit aus 2,4 m
   Aktiv = Rot (Vereinsfarbe), Finish = Grün (semantisch, universell)
   ================================================================== */
.score-boxes-row { gap: 0; }

.score-box.shell {
    height: clamp(160px, 16vw, 250px);
    padding: 3px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
    transition:
        box-shadow 350ms var(--ease-hero),
        opacity 300ms var(--ease-hero);
}

.score-box__inner {
    height: 100%;
    padding: 24px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 14px;
    background: #08080a;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

/* Aktiver Spieler — kräftiger Rot-Rahmen, weit sichtbar */
.score-box.active {
    background: linear-gradient(180deg, var(--club-red) 0%, var(--club-red-deep) 100%);
    box-shadow:
        0 0 0 1px var(--club-red),
        0 12px 40px -12px rgba(225, 29, 46, 0.55);
}
.score-box.active .score-box__inner {
    background: #0a0a0a;
}

/* Inaktive Score-Box tritt deutlich zurück — Zahl wird zu dezenter Hollow-
   Version, aber ohne die Distanz-Lesbarkeit ganz zu opfern. */
.score-box.inactive {
    opacity: 0.9;
}

/* Finish-Zone — Grüner Rahmen (Checkout möglich) */
.score-box.finish-zone {
    background: linear-gradient(180deg, var(--finish-zone) 0%, #15803d 100%) !important;
    box-shadow:
        0 0 0 1px var(--finish-zone),
        0 12px 40px -12px var(--finish-zone-glow) !important;
}
.score-box.finish-zone .score-box__inner {
    background: #0a0a0a;
}

/* Finish-Zone, aber Bogey Zahl — Oranger Rahmen (Kein Checkout möglich) */
.score-box.finish-zone-bogey {
    background: linear-gradient(180deg, var(--finish-zone-bogey) 0%, #d97706 100%) !important;
    box-shadow: 0 0 0 1px var(--finish-zone-bogey), 0 12px 40px -12px var(--finish-zone-bogey-glow) !important;
}
.score-box.finish-zone-bogey .score-box__inner {
    background: #0a0a0a;
}

/* Zahl — maximaler Kontrast, tabular, sehr fett.
   Die Score-Box hat eine feste Höhe (clamp 160–250 px), der Rahmen wächst
   also nicht mit — die vergrößerte Zahl (11 vw / max 12 rem ≈ 192 px)
   passt weiterhin in die Box inkl. optionalem Checkout-Hinweis. */
.score-value {
    font-family: var(--font-numeric);
    font-variant-numeric: tabular-nums;
    font-size: clamp(5.5rem, 11vw, 12rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: #fff;
    transition: transform 200ms var(--ease-hero);
    position: relative;
    z-index: 1;
}

/* Kein flaches Weiß mehr — mittelgraue Zahl setzt klaren Kontrast zum
   aktiven Spieler (voll-weiße Zahl im rot gerahmten Aktiv-Feld). */
.score-box.inactive .score-value {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 700;
}

.score-box.finish-zone .score-value {
    color: #d4fbd0;
}

/* Checkout-Hinweis — grüner Pill mit Label + Wurf-Vorschlag */
.checkout-hint {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.14);
    box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.45);
    margin-top: 4px;
}

.checkout-hint__label {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #d4fbd0;
}

.checkout-hint__value {
    font-family: var(--font-numeric);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    color: #fff;
}

/* Inaktiver Spieler mit Finish-Score: Checkout-Info bleibt lesbar, tritt aber zurück */
.score-box.inactive .checkout-hint {
    opacity: 0.35;
    transition: opacity 350ms var(--ease-hero);
}

/* Sieger-Highlight (nach Match-Ende) — goldener Rahmen */
.score-box.winner {
    background: linear-gradient(180deg, #eab308 0%, #a16207 100%);
    box-shadow:
        0 0 0 1px #eab308,
        0 12px 40px -12px rgba(234, 179, 8, 0.55);
}
.score-box.winner .score-box__inner {
    background: #0a0a0a;
}
.score-box.winner .score-value {
    color: #fde68a;
}

/* Verlierer-Score nach Match-Ende — stark zurückgenommen */
.score-box.loser {
    opacity: 0.35;
}

/* ==================================================================
   WINNER OVERLAY — Editorial Silence
   Reduzierte Komposition: ein Gold-Moment (Gewinnerzahl), sonst
   Vantablack + Editorial-Typografie. Score IST die Trophäe.
   ================================================================== */
.winner-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 3, 5, 0.72);
    -webkit-backdrop-filter: blur(18px) saturate(120%);
    backdrop-filter: blur(18px) saturate(120%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1400;
    padding: 24px;
    animation: winnerOverlayFadeIn 280ms cubic-bezier(0.32, 0.72, 0, 1);
}

@keyframes winnerOverlayFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Outer shell — dezenter Hairline (kein Gold hier), Wafer-Effekt */
.winner-overlay__shell {
    padding: 5px;
    border-radius: 34px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    box-shadow:
        0 60px 140px -40px rgba(0, 0, 0, 0.9),
        0 0 0 1px rgba(255, 255, 255, 0.06);
    max-width: 640px;
    width: min(94vw, 640px);
    animation: winnerCardPop 520ms cubic-bezier(0.32, 0.72, 0, 1);
}

@keyframes winnerCardPop {
    from { opacity: 0; transform: translateY(28px) scale(0.96); filter: blur(8px); }
    to   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* Inner core — Vantablack, ein einziger warmer Ausklang oben */
.winner-overlay__core {
    position: relative;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(234, 179, 8, 0.10), transparent 70%),
        linear-gradient(180deg, #0a0a0c 0%, #050506 100%);
    border-radius: calc(34px - 5px);
    padding: 56px 64px 40px;
    text-align: center;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Feiner Grain-Overlay für haptische Tiefe */
.winner-overlay__core::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 3px 3px;
    opacity: 0.6;
    pointer-events: none;
    mix-blend-mode: overlay;
}

/* Crest — Ultra-thin Custom-Pokal als Emblem. Kein Container, nur weiches Radial-Glow. */
.winner-overlay__crest {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    color: #fde68a;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 6px 24px rgba(234, 179, 8, 0.55));
    animation:
        winnerRise 900ms cubic-bezier(0.32, 0.72, 0, 1) both,
        crestBreath 4200ms 800ms cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.winner-overlay__crest::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle, rgba(234, 179, 8, 0.24), transparent 65%);
    z-index: -1;
    pointer-events: none;
}

@keyframes crestBreath {
    0%, 100% { filter: drop-shadow(0 6px 24px rgba(234, 179, 8, 0.45)); }
    50%      { filter: drop-shadow(0 8px 32px rgba(234, 179, 8, 0.75)); }
}

/* Eyebrow — Editorial-Pill, keine Farbe */
.winner-overlay__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    border-radius: 999px;
    background: transparent;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10);
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.32em;
    font-size: 0.66rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.62);
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
    animation: winnerRise 700ms 60ms cubic-bezier(0.32, 0.72, 0, 1) both;
}

.winner-overlay__eyebrow-dot {
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: #eab308;
    box-shadow: 0 0 10px rgba(234, 179, 8, 0.9);
}

/* Name — Editorial-Statement */
.winner-overlay__name {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8.5vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.045em;
    color: #ffffff;
    line-height: 0.95;
    margin: 0 0 44px;
    word-break: break-word;
    position: relative;
    z-index: 1;
    animation: winnerRise 800ms 140ms cubic-bezier(0.32, 0.72, 0, 1) both;
}

/* Score — das Herzstück. Riesige Ziffern, Gold nur beim Gewinner. */
.winner-overlay__scoreline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
    line-height: 1;
    animation: winnerRise 900ms 240ms cubic-bezier(0.32, 0.72, 0, 1) both;
}

.winner-overlay__scoreline-num {
    font-family: var(--font-numeric);
    font-variant-numeric: tabular-nums;
    font-size: clamp(4rem, 12vw, 7rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    display: inline-block;
    min-width: 0.7em;
    text-align: center;
}

.winner-overlay__scoreline-num.is-winner {
    color: #fde68a;
    text-shadow: 0 0 60px rgba(234, 179, 8, 0.5);
}

.winner-overlay__scoreline-num.is-loser {
    color: rgba(255, 255, 255, 0.4);
}

.winner-overlay__scoreline-sep {
    font-family: var(--font-numeric);
    font-variant-numeric: tabular-nums;
    font-size: clamp(3rem, 9vw, 5rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.22);
    line-height: 1;
    letter-spacing: -0.04em;
    align-self: center;
    transform: translateY(-0.12em);
}

/* Meta — Format-Info als leise Fußzeile über den Actions */
.winner-overlay__meta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-size: 0.62rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 44px;
    position: relative;
    z-index: 1;
    animation: winnerRise 900ms 320ms cubic-bezier(0.32, 0.72, 0, 1) both;
}

.winner-overlay__meta-dot {
    width: 3px;
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.3);
}

.winner-overlay__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    animation: winnerRise 900ms 400ms cubic-bezier(0.32, 0.72, 0, 1) both;
}

@keyframes winnerRise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Buttons — gleiche Höhe/Radius/Padding-Skala, nur Farb-Kontrast unterscheidet */
.winner-overlay__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 52px;
    padding: 0 8px 0 26px;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 999px;
    cursor: pointer;
    border: none;
    transition:
        transform 260ms cubic-bezier(0.32, 0.72, 0, 1),
        box-shadow 260ms cubic-bezier(0.32, 0.72, 0, 1),
        background 260ms cubic-bezier(0.32, 0.72, 0, 1);
}

.winner-overlay__btn:active {
    transform: scale(0.98);
}

/* Ghost — hairline pill, gleiche Höhe wie primary */
.winner-overlay__btn--ghost {
    background: transparent;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.88);
    padding: 0 26px;
}

.winner-overlay__btn--ghost:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-1px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

/* Primary — Gold-Pill mit nested Trailing-Icon (der eine Gold-Moment) */
.winner-overlay__btn--primary {
    background: linear-gradient(180deg, #fde68a 0%, #eab308 60%, #b45309 100%);
    color: #0a0a0c;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.45),
        0 10px 30px -10px rgba(234, 179, 8, 0.55);
}

.winner-overlay__btn--primary:hover {
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 16px 40px -10px rgba(234, 179, 8, 0.65);
}

.winner-overlay__btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.15);
    color: #0a0a0c;
    transition: transform 260ms cubic-bezier(0.32, 0.72, 0, 1);
}

.winner-overlay__btn--primary:hover .winner-overlay__btn-icon {
    transform: translate(2px, -1px) scale(1.06);
}

@media (max-width: 600px) {
    .winner-overlay { padding: 16px; }
    .winner-overlay__shell { border-radius: 26px; padding: 4px; }
    .winner-overlay__core { padding: 32px 24px 28px; border-radius: calc(26px - 4px); }
    .winner-overlay__crest { width: 44px; height: 44px; margin-bottom: 14px; }
    .winner-overlay__crest svg { width: 34px; height: 34px; }
    .winner-overlay__eyebrow { font-size: 0.58rem; letter-spacing: 0.26em; margin-bottom: 22px; padding: 5px 12px; }
    .winner-overlay__name { margin-bottom: 28px; }
    .winner-overlay__scoreline { gap: 18px; margin-bottom: 14px; }
    .winner-overlay__meta { margin-bottom: 32px; font-size: 0.55rem; letter-spacing: 0.24em; }
    .winner-overlay__actions { flex-direction: column-reverse; width: 100%; gap: 10px; }
    .winner-overlay__btn { width: 100%; justify-content: center; height: 48px; }
    .winner-overlay__btn--primary { padding: 0 6px 0 24px; }
    .winner-overlay__btn--ghost { padding: 0 24px; }
    .winner-overlay__btn-icon { width: 32px; height: 32px; }
}

/* ==================================================================
   1920 SCOREBOARD — desktop sizing (visible at distance, ~7 m Halle)
   Zahlen skalieren mit der Viewport-Breite: auf 1920 landen die Table-
   Zellen bei ~90 px Ziffer, damit sie aus 7 m klar lesbar bleiben.
   Kleinere Fenster (Split-Screen, Sekundärmonitor) fallen zurück auf
   sinnvollere Größen, damit nichts kollidiert.
   ================================================================== */
.base-table td {
    height: clamp(90px, 8vw, 115px) !important;
    font-size: clamp(3rem, 3.6vw, 4.4rem) !important;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--base-foreground);
}

.base-table th {
    font-size: clamp(0.78rem, 0.75vw, 0.95rem) !important;
    height: 44px !important;
    color: rgba(255, 255, 255, 0.82) !important;
    font-weight: 600 !important;
    letter-spacing: 0.22em !important;
}

/* Höher-spezifisch als `.base-table td`, damit die Startzeile flacher bleibt
   als die Aufnahme-Zeilen — sonst reißt die 115-px-Zellhöhe der Basisregel
   die Header-Zeile mit hoch. Etwas mehr Vertikalluft als das absolute
   Minimum, damit Label und Zahl atmen können. */
.base-table .start-score-row td,
.base-table .start-score-row td.dart-count-col {
    height: clamp(58px, 4.4vw, 76px) !important;
    line-height: 1 !important;
}
.base-table .start-score-row td.start-score-cell .start-score-number { line-height: 1 !important; }

.grid-input {
    font-size: clamp(3rem, 3.6vw, 4.4rem) !important;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Stat-Panels — Distanz-Overrides für 1920: die Sidebar-Werte
   müssen aus der Halle noch als Zahlen erkennbar sein. Vertikaler Rhythmus
   ist bewusst eng, damit alle 11 Zeilen ohne Scroll in den Panel passen. */
.stat-row {
    font-size: clamp(1.15rem, 1.55vw, 2rem) !important;
    margin-bottom: 3px !important;
    padding: 1px 0 !important;
}

.stat-row span:last-child { font-size: clamp(1.35rem, 1.75vw, 2.3rem) !important; }

.stat-header {
    font-size: clamp(0.85rem, 1vw, 1.3rem) !important;
    margin-top: 12px !important;
    margin-bottom: 8px !important;
    padding-bottom: 4px !important;
}

.stat-header:first-child { margin-top: 0 !important; }

/* Averages hervorheben — der wichtigste Kennwert des Panels. Da die Legs-Zeile
   aus den Totals entfernt wurde, ist Platz frei geworden, den Score und First 9
   nun als deutlich größere Werte nutzen. Regeln stehen bewusst nach den
   .stat-row-Overrides oben, damit sie per Source-Order (gleiche Spezifität)
   gewinnen. */
.stat-row--avg {
    font-size: clamp(1.5rem, 2vw, 2.6rem) !important;
    margin-bottom: 8px !important;
    padding: 3px 0 !important;
}

.stat-row--avg span:last-child {
    font-size: clamp(2rem, 2.7vw, 3.5rem) !important;
}

/* Averages-Label als zurückgenommene Caption: klar kleiner, gedimmt und in
   Versalien mit Sperrung. So dominiert die große weiße Zahl, und "First 9"
   verschmilzt aus ~2,5 m nicht mehr mit dem Wert daneben. */
.stat-row--avg span:first-child {
    font-size: clamp(1.05rem, 1.3vw, 1.65rem) !important;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    color: rgba(250, 250, 250, 0.42) !important;
    align-self: center;
    white-space: nowrap;
    padding-right: 0.6em;
}

/* ==================================================================
   SETTINGS + HISTORY
   ================================================================== */

/* Toolbar oben rechts im Home-Viewport (Zahnrad + Profile). Startwert liegt bewusst
   unterhalb der 44px, die die Desktop-Fenster-Controls (Fullscreen-Toggle + Close)
   belegen, damit sich beide Bedienelemente nicht überlappen. */
.home-toolbar {
    position: absolute;
    top: clamp(48px, 5vh, 60px);
    right: clamp(6px, 2vw, 18px);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2;
}

.home-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.045);
    border: none;
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition:
        color 240ms var(--ease-hero),
        background 240ms var(--ease-hero),
        box-shadow 240ms var(--ease-hero),
        transform 240ms var(--ease-hero);
}
.home-icon-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.14),
        0 10px 26px -12px rgba(225, 29, 46, 0.35);
}

/* Zahnrad dreht sich, Profile-Icon bekommt einen leichten Lift. */
.home-icon-btn--settings:hover { transform: rotate(30deg); }
.home-icon-btn--settings:active { transform: rotate(30deg) scale(0.94); }
.home-icon-btn--profiles:hover { transform: translateY(-1px); }
.home-icon-btn--profiles:active { transform: translateY(-1px) scale(0.94); }


/* Einheiten-Zusatz im Format-Card-Value ("21 Darts") */
.format-card__unit {
    font-size: 0.55em;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-left: 6px;
    vertical-align: middle;
}

/* Kleiner Hilfstext unter den Format-Cards auf der Settings-Seite */
.settings-hint {
    margin-top: 12px;
    font-family: var(--font-display);
    font-size: 0.78rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.01em;
}

.settings-empty {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    padding: 8px 4px 4px;
    letter-spacing: 0.02em;
}

/* --- Tastaturkürzel-Rows (Settings) --- */
.shortcut-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.shortcut-row:last-of-type {
    border-bottom: 0;
}

.shortcut-row__label {
    flex: 1;
    font-family: var(--font-display);
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* Badge und Input teilen sich exakt dieselbe Breite, damit Pfeil und Key-Button
   in der Add-Zeile und in den existierenden Zeilen darüber untereinander stehen. */
.shortcut-row__score-badge,
.shortcut-row__score-input {
    width: 72px;
    box-sizing: border-box;
    padding: 8px 10px;
    border-radius: 10px;
    text-align: center;
    font-family: var(--font-numeric);
    font-variant-numeric: tabular-nums;
    font-size: 0.98rem;
    color: #fff;
}

.shortcut-row__score-badge {
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    font-weight: 700;
}

.shortcut-row__score-input {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 600;
    outline: none;
    transition: border-color 200ms var(--ease-hero);
}

.shortcut-row__score-input:focus {
    border-color: var(--club-red);
}

/* Chrome/Safari — Spin-Buttons vom number-Input ausblenden */
.shortcut-row__score-input::-webkit-outer-spin-button,
.shortcut-row__score-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
/* Firefox */
.shortcut-row__score-input[type=number] {
    -moz-appearance: textfield;
}

/* Wasserzeichen-Text — breites Freitextfeld, gleicher Look wie Score-Inputs. */
.watermark-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    margin-top: 4px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    font-family: var(--font-stencil);
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    outline: none;
    transition: border-color 200ms var(--ease-hero);
}

.watermark-input:focus {
    border-color: var(--club-red);
}

.shortcut-row__arrow {
    color: rgba(255, 255, 255, 0.3);
    font-family: var(--font-numeric);
    font-size: 0.95rem;
    padding: 0 2px;
}

.shortcut-key {
    flex: 0 0 auto;
    min-width: 128px;
    padding: 9px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
    color: #fff;
    font-family: var(--font-numeric);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    border: none;
    text-align: center;
    transition:
        background-color 200ms var(--ease-hero),
        box-shadow 200ms var(--ease-hero),
        color 200ms var(--ease-hero);
}

.shortcut-key:hover {
    background: rgba(255, 255, 255, 0.08);
}

.shortcut-key.is-empty {
    color: rgba(255, 255, 255, 0.42);
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.72rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.shortcut-key.is-capturing {
    color: #fff;
    background: linear-gradient(180deg, var(--club-red), var(--club-red-deep));
    box-shadow:
        0 0 0 1px var(--club-red),
        0 8px 20px -8px var(--club-red-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.72rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    animation: shortcut-capture-pulse 1.4s ease-in-out infinite;
}

@keyframes shortcut-capture-pulse {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-1px); box-shadow: 0 0 0 1px var(--club-red), 0 12px 26px -8px var(--club-red-glow), inset 0 1px 0 rgba(255, 255, 255, 0.22); }
}

.shortcut-btn-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 200ms var(--ease-hero);
}

.shortcut-btn-icon:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.shortcut-btn-icon:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.shortcut-btn-icon.is-add {
    color: var(--club-red);
    background: rgba(225, 29, 46, 0.08);
    box-shadow: inset 0 0 0 1px var(--club-red-hairline);
}

.shortcut-btn-icon.is-add:hover:not(:disabled) {
    background: rgba(225, 29, 46, 0.18);
    color: #fff;
}

.shortcut-row--add {
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    border-bottom: 0;
    margin-top: 4px;
    padding-top: 14px;
}

@media (max-width: 560px) {
    .shortcut-row {
        flex-wrap: wrap;
        gap: 8px;
    }
    .shortcut-row__label {
        flex-basis: 100%;
    }
    .shortcut-key {
        min-width: 108px;
        flex: 1 1 auto;
    }
}

/* --- Match-Verlauf-Dialog ------------------------------------------------ */
.history-dialog {
    background: #0c0c0e;
    color: #fff;
    padding: 0;
    max-width: 720px;
    width: 100%;
    border-radius: 20px;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        0 30px 80px -20px rgba(0, 0, 0, 0.75);
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.history-dialog__header {
    padding: 22px 26px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, rgba(225, 29, 46, 0.06), transparent);
}
.history-dialog__eyebrow {
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    display: flex;
    align-items: center;
    gap: 10px;
}
.history-dialog__eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--club-red);
    box-shadow: 0 0 12px var(--club-red-glow);
}
.history-dialog__title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    line-height: 1.1;
    margin: 0;
}
.history-dialog__meta {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.02em;
}

.history-dialog__body {
    padding: 20px 26px 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* Highlights-Grid pro Spieler */
.history-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.history-player {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    padding: 14px 16px 16px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0;
}
.history-player__name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
    line-height: 1.1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 0;
}
.history-player__legs {
    font-family: var(--font-numeric);
    font-variant-numeric: tabular-nums;
    font-size: 1rem;
    color: var(--club-red);
    letter-spacing: 0.06em;
    font-weight: 700;
}
.history-highlight-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    padding: 10px 0;
    border-top: 1px dashed rgba(255, 255, 255, 0.06);
}
.history-highlight-row:first-of-type {
    border-top: none;
    padding-top: 12px;
}
.history-highlight-row__label {
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.82rem;
    font-weight: 500;
    flex-shrink: 0;
}
.history-highlight-row__value {
    text-align: right;
    font-variant-numeric: tabular-nums;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
}
.history-highlight-row__count {
    color: var(--club-red);
    font-weight: 700;
    margin-right: 8px;
    font-size: 1.15rem;
}
.history-highlight-row__list {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    font-weight: 500;
}

/* Leg-Liste */
.history-legs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.history-section-label {
    font-family: var(--font-display);
    font-size: 0.72rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}
.history-section-label::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--club-red);
    box-shadow: 0 0 12px var(--club-red-glow);
}

.history-leg {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    overflow: hidden;
}
.history-leg__head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    cursor: pointer;
    user-select: none;
    background: transparent;
    border: none;
    color: inherit;
    width: 100%;
    text-align: left;
    font-family: var(--font-display);
}
.history-leg__head:hover { background: rgba(255, 255, 255, 0.03); }

.history-leg__num {
    font-family: var(--font-numeric);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--club-red);
    min-width: 42px;
}
.history-leg__title {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.history-leg__winner {
    font-size: 0.98rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.15;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.history-leg__winner .winner-name { white-space: nowrap; }
.history-leg__meta {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.02em;
}

.history-leg__badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.history-badge {
    font-family: var(--font-display);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
}
.history-badge--short { background: rgba(52, 199, 89, 0.18); color: #7ce495; }
.history-badge--high  { background: rgba(225, 29, 46, 0.22); color: #ff8a95; }

.history-leg__chevron {
    color: rgba(255, 255, 255, 0.4);
    transition: transform 200ms var(--ease-hero);
}
.history-leg.is-open .history-leg__chevron { transform: rotate(180deg); }

.history-leg__body {
    padding: 0 16px 14px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 22px;
    animation: legReveal 220ms var(--ease-hero) both;
}
@keyframes legReveal {
    0%   { opacity: 0; transform: translateY(-4px); }
    100% { opacity: 1; transform: translateY(0); }
}
.history-leg__col {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.history-leg__col-title {
    font-family: var(--font-display);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.history-leg__stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.85);
}
.history-leg__stat span:first-child {
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.02em;
}
.history-leg__stat span:last-child {
    font-variant-numeric: tabular-nums;
    color: #fff;
}

/* Wird angezeigt, wenn das Match noch keine Legs hat */
.history-empty {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.55);
    font-family: var(--font-display);
}

/* Aufnahme-Chips im aufgeklappten Leg pro Spieler */
.history-visits {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 8px;
    margin-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.history-visit {
    font-family: var(--font-numeric);
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 4px 9px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.85);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    min-width: 34px;
    text-align: center;
}
.history-visit--100 { background: rgba(88, 166, 255, 0.15); color: #9dc7ff; box-shadow: inset 0 0 0 1px rgba(88, 166, 255, 0.3); }
.history-visit--140 { background: rgba(255, 168, 0, 0.18);  color: #ffc766; box-shadow: inset 0 0 0 1px rgba(255, 168, 0, 0.35); }
.history-visit--180 { background: linear-gradient(180deg, var(--club-red), var(--club-red-deep)); color: #fff; box-shadow: 0 0 0 1px var(--club-red), 0 4px 12px -4px var(--club-red-glow); }
.history-visit--bust { background: rgba(255, 68, 68, 0.12); color: #ff8080; box-shadow: inset 0 0 0 1px rgba(255, 68, 68, 0.3); text-decoration: line-through; }

/* ==================================================================
   RESPONSIVE (Mobile)
   ================================================================== */
@media (max-width: 768px) {
    .base-wrapper {
        overflow: auto;
        padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px));
    }

    .scoreboard-header .shell__inner { padding: 10px 14px; gap: 10px; }
    .player-header { padding: 4px; }
    .player-header__name { font-size: 1.05rem; }
    .player-header__team { font-size: 0.8rem; }
    .legs-badge__value { font-size: 1.4rem; }

    .base-table { font-size: 1rem; min-width: 320px; }
    .base-table th, .base-table td { padding: 6px; height: 40px !important; }
    .base-table td { font-size: 1.2rem !important; }
    .grid-input { font-size: 1.2rem !important; }

    .stat-container { display: none !important; }

    .mud-grid > .mud-item { padding-left: 4px !important; padding-right: 4px !important; }
    .mud-grid { margin-bottom: calc(env(safe-area-inset-bottom, 0px)); }

    .score-box.shell { height: auto; padding: 3px; border-radius: 18px; }
    .score-box__inner { padding: 16px; border-radius: 15px; gap: 8px; }
    .score-value { font-size: clamp(2.4rem, 12vw, 5rem) !important; }
    .checkout-hint { padding: 4px 10px; gap: 6px; }
    .checkout-hint__label, .checkout-hint__value { font-size: 0.75rem; }
    /* Legs-Eyebrow im Header auf Mobile: kompakter */
    .legs-eyebrow { font-size: 0.5rem; letter-spacing: 0.22em; padding: 3px 10px; gap: 6px; }

    /* Wasserzeichen auf Mobile deaktivieren — konkurriert mit dem kompakten Layout */
    .scoreboard-shell::before { display: none; }

    /* Highlights und Leg-Details auf Mobile in eine Spalte */
    .history-highlights,
    .history-leg__body { grid-template-columns: 1fr; }
    .history-dialog__body { padding: 16px 18px 18px; }
    .history-dialog__header { padding: 18px 20px 14px; }
    .history-dialog__title { font-size: 1.35rem; }

    .home-icon-btn { width: 40px; height: 40px; }

    /* Select-Dialog (Laufende / Beendete Spiele) */
    .select-dialog__shell { border-radius: 26px; padding: 4px; }
    .select-dialog__core { padding: 28px 20px 18px; border-radius: calc(26px - 4px); }
    .select-dialog__title { font-size: 1.35rem; margin-bottom: 18px; }
    .select-dialog__item { padding: 12px 14px; }
    .select-dialog__item-players { font-size: 0.9rem; }
    .select-dialog__item-meta { font-size: 0.62rem; letter-spacing: 0.12em; gap: 6px; }
    .select-dialog__list { max-height: 60vh; margin-bottom: 14px; }
}

/* -- BOT-AUSWAHL (Home, P2-Karte) --
   Ziel: die P2-Karte muss visuell identisch hoch bleiben wie P1. Dafür sitzt der
   Mensch/Bot-Umschalter kompakt neben dem "NAME"-Label (kein zusätzlicher Vertikalraum),
   und die Level-Chips ersetzen im Bot-Modus das Team-Feld in EXAKT gleicher Höhe. */

/* Kopfzeile eines Fields: Label links, optionale Steuerelemente rechts.
   Rechts bleibt Platz für den absolut positionierten P2-Badge, damit dieser
   nicht mit dem Mensch/Bot-Toggle kollidiert. */
.field__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    line-height: 1;
    min-height: 14px;
    padding-right: 32px;
}

/* Read-only-Anzeige an der Stelle, an der sonst ein <input> steht.
   Ich spiegle Padding, Border und Typografie des field__input, damit die
   Feldhöhe im Mensch- und Bot-Modus 1:1 identisch bleibt. */
.field__display {
    width: 100%;
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    padding: 4px 0 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    line-height: 1.15;
}

/* Kompakter Mensch/Bot-Toggle in der Field-Kopfzeile. */
.mode-toggle {
    display: inline-flex;
    gap: 2px;
    padding: 2px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.mode-toggle__opt {
    appearance: none;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    font-family: var(--font-display);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 999px;
    cursor: pointer;
    transition:
        color 220ms var(--ease-hero),
        background-color 220ms var(--ease-hero),
        box-shadow 220ms var(--ease-hero);
    line-height: 1;
}

.mode-toggle__opt:hover {
    color: #fff;
}

.mode-toggle__opt.is-active {
    color: #fff;
    background: linear-gradient(180deg, var(--club-red), var(--club-red-deep));
    box-shadow:
        0 0 0 1px var(--club-red),
        0 4px 12px -4px var(--club-red-glow);
}

/* Level-Auswahl: 5 kompakte Pills nebeneinander, gleiche Höhe wie ein input. */
.bot-levels {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
}

.bot-level {
    appearance: none;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 5px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    cursor: pointer;
    transition:
        background-color 220ms var(--ease-hero),
        border-color 220ms var(--ease-hero),
        transform 220ms var(--ease-hero),
        box-shadow 220ms var(--ease-hero);
    color: rgba(255, 255, 255, 0.65);
    min-height: 43px;
}

.bot-level:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

.bot-level.is-active {
    color: #fff;
    background: linear-gradient(180deg, var(--club-red), var(--club-red-deep));
    border-color: var(--club-red);
    box-shadow:
        0 0 0 1px var(--club-red),
        0 6px 16px -8px var(--club-red-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.bot-level__name {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.1;
    text-align: center;
}

.bot-level__avg {
    font-size: 0.55rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: inherit;
    opacity: 0.75;
    font-family: var(--font-numeric);
    line-height: 1;
}

/* -- BOT-WURF-DIALOG -- */
.bot-throw {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    padding: 32px 28px 26px;
    min-width: 320px;
}

.bot-throw__eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    display: flex;
    align-items: center;
    gap: 8px;
}

.bot-throw__eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--club-red);
    box-shadow: 0 0 10px var(--club-red-glow);
}

.bot-throw__name {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    text-align: center;
}

.bot-throw__darts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    width: 100%;
}

.bot-throw__dart {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 20px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-numeric);
    font-variant-numeric: tabular-nums;
    font-size: 1.7rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.25);
    transition:
        color 300ms var(--ease-hero),
        background-color 300ms var(--ease-hero),
        border-color 300ms var(--ease-hero),
        transform 300ms var(--ease-hero),
        box-shadow 300ms var(--ease-hero);
    min-height: 74px;
}

.bot-throw__dart.is-revealed {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.16);
    transform: scale(1.04);
    box-shadow: 0 12px 32px -18px rgba(0, 0, 0, 0.75);
}

.bot-throw__dart.is-bust {
    color: #ff6b6b;
    border-color: rgba(255, 107, 107, 0.35);
    background: rgba(255, 107, 107, 0.08);
}

.bot-throw__total {
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    display: flex;
    align-items: center;
    gap: 12px;
}

.bot-throw__total-value {
    font-family: var(--font-numeric);
    font-variant-numeric: tabular-nums;
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}

.bot-throw__total-value--bust {
    color: #ff6b6b;
}

@media (max-width: 640px) {
    .bot-levels { gap: 4px; }
    .bot-level { padding: 8px 2px 6px; }
    .bot-level__name { font-size: 0.7rem; }
    .bot-level__avg { font-size: 0.58rem; letter-spacing: 0.1em; }

    .bot-throw { padding: 24px 20px 20px; min-width: 260px; }
    .bot-throw__dart { font-size: 1.4rem; min-height: 62px; padding: 16px 6px; }
}

/* ==================================================================
   WINDOW CONTROLS (Desktop)
   Fenster-Buttons oben rechts (Windows-Konvention). Nur sichtbar, wenn
   IWindowService das unterstützt (Photino-Desktop). Der Close-Button
   wird nur im Vollbild eingeblendet, wo die Titelleiste fehlt.
   ================================================================== */
.window-controls {
    position: fixed;
    top: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    z-index: 9999;
    -webkit-app-region: no-drag;
}
.window-controls__btn {
    width: 28px;
    height: 28px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    opacity: 0.65;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    transition: opacity 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}
.window-controls__btn:hover {
    opacity: 1;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}
.window-controls__btn:focus-visible {
    outline: none;
    opacity: 1;
    color: #fff;
    box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.55);
}
.window-controls__btn:active { transform: scale(0.94); }

/* Close-Button hebt sich beim Hover rot ab — analog zur nativen Titelleiste. */
.window-controls__btn--close:hover {
    background: rgba(211, 47, 47, 0.85);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

/* ==================================================================
   PROFILE (Verwaltung + Auswahl)
   ================================================================== */
.profile-list__empty {
    font-family: var(--font-display);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    padding: 14px 4px;
    letter-spacing: 0.01em;
}

.profile-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 14px;
}

.profile-card__inner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
}

.profile-card__logo {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.profile-card__logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.profile-card__logo-placeholder {
    color: rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-card__name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-card__meta {
    font-family: var(--font-display);
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.42);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.profile-card__actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

/* Editor-Panel */
.profile-editor__inner {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.profile-editor__error {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 107, 107, 0.25);
    padding: 8px 12px;
    border-radius: 8px;
}

.profile-editor__buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

/* Kompakte Pill-Buttons für Karten-interne CTAs (Anlegen, Profile öffnen,
   Übernehmen …). Nicht so wuchtig wie der große .home-cta am Seitenende. */
.btn-pill {
    appearance: none;
    border: none;
    padding: 10px 22px;
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    line-height: 1;
    transition:
        background 220ms var(--ease-hero),
        box-shadow 220ms var(--ease-hero),
        transform 220ms var(--ease-hero),
        opacity 220ms var(--ease-hero),
        color 220ms var(--ease-hero);
}

.btn-pill--primary {
    background: linear-gradient(180deg, var(--club-red) 0%, var(--club-red-deep) 100%);
    color: #fff;
    box-shadow:
        0 0 0 1px var(--club-red),
        0 12px 30px -14px var(--club-red-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn-pill--primary:hover:not(:disabled) {
    box-shadow:
        0 0 0 1px var(--club-red),
        0 16px 34px -14px rgba(225, 29, 46, 0.65),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn-pill--primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-pill--ghost {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.75);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.btn-pill--ghost:hover {
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
}

/* Schrift-Auswahl (Chip-Grid) */
.font-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
    margin-top: 6px;
}

.font-picker__opt {
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    letter-spacing: 0.03em;
    cursor: pointer;
    border: none;
    text-align: left;
    transition: background 200ms var(--ease-hero), box-shadow 200ms var(--ease-hero), color 200ms var(--ease-hero);
}

.font-picker__opt:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.font-picker__opt.is-active {
    background: rgba(225, 29, 46, 0.14);
    box-shadow: inset 0 0 0 1px var(--club-red-hairline);
    color: #fff;
}

/* Logo-Editor */
.profile-logo-editor {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 8px;
}

.profile-logo-editor__preview {
    width: 88px;
    height: 88px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.profile-logo-editor__preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.profile-logo-editor__empty {
    font-family: var(--font-display);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-align: center;
    padding: 0 8px;
}

.profile-logo-editor__actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.profile-logo-editor__file {
    cursor: pointer;
    min-width: 128px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
}

/* Aktionen unterhalb eines Settings-Kartenblocks (rechtsbündig ausgerichtet). */
.settings-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
}

/* Profil-Auswahl auf dem Home-Screen */
.profile-select {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
}

/* Übersichts-Link "Profile verwalten" unterhalb der Aufstellung — nur einmal
   pro Match-Screen, weil der User keine zwei Verwalten-Links pro Karte will. */
.matchup-manage {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.matchup-manage__link {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.55);
    font-family: var(--font-display);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    cursor: pointer;
    padding: 6px 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 200ms var(--ease-hero);
}

.matchup-manage__link:hover { color: #fff; }

.profile-select__chip {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.75);
    font-family: var(--font-display);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 180ms var(--ease-hero), color 180ms var(--ease-hero), box-shadow 180ms var(--ease-hero);
}

.profile-select__chip:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.profile-select__chip.is-active {
    background: rgba(225, 29, 46, 0.18);
    box-shadow: inset 0 0 0 1px var(--club-red-hairline);
    color: #fff;
}

.profile-select__chip-logo {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.06);
}

.profile-select__manage {
    padding: 6px 12px;
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    font-family: var(--font-display);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.profile-select__manage:hover { color: #fff; }

/* ==================================================================
   CHECKOUT DIALOG — Vantablack + Double-Bezel, matched Confirm/EndGame
   Zweck: Anzahl Darts erfassen, mit der ein Leg gecheckt wurde.
   Ungültige Kombinationen (z. B. "170 in 2 Darts") werden per
   DartScoreValidator hart am Button deaktiviert.
   ================================================================== */

.mud-dialog.checkout-dialog {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 30px !important;
    overflow: visible !important;
}

.mud-dialog.checkout-dialog .mud-dialog-content {
    padding: 0 !important;
    overflow: visible !important;
}

.checkout-dialog__shell {
    padding: 5px;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    box-shadow:
        0 60px 140px -40px rgba(0, 0, 0, 0.9),
        0 0 0 1px rgba(255, 255, 255, 0.06);
    animation: endgameDialogPop 480ms cubic-bezier(0.32, 0.72, 0, 1);
    outline: none;
}

.checkout-dialog__core {
    position: relative;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(225, 29, 46, 0.10), transparent 70%),
        linear-gradient(180deg, #0a0a0c 0%, #050506 100%);
    border-radius: calc(30px - 5px);
    padding: 40px 40px 26px;
    text-align: center;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.checkout-dialog__core::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 3px 3px;
    opacity: 0.5;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.checkout-dialog__crest {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0 auto 14px;
    color: var(--club-red);
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 18px rgba(225, 29, 46, 0.5));
}

.checkout-dialog__crest::before {
    content: "";
    position: absolute;
    inset: -55%;
    background: radial-gradient(circle, rgba(225, 29, 46, 0.22), transparent 65%);
    z-index: -1;
    pointer-events: none;
}

.checkout-dialog__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 5px 12px;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10);
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-size: 0.6rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.62);
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.checkout-dialog__eyebrow-dot {
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: var(--club-red);
    box-shadow: 0 0 8px rgba(225, 29, 46, 0.9);
}

.checkout-dialog__title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3.2vw, 1.8rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #ffffff;
    line-height: 1.1;
    margin: 0 0 10px;
    position: relative;
    z-index: 1;
}

/* Die eigentliche Rest-Zahl bekommt den Marken-Akzent (Rotton + Glow),
   damit im Titel sofort klar ist, WORAUF gerade ausgemacht wurde. */
.checkout-dialog__score {
    font-family: var(--font-numeric);
    font-variant-numeric: tabular-nums;
    color: var(--club-red);
    text-shadow: 0 0 22px rgba(225, 29, 46, 0.55);
    letter-spacing: -0.02em;
    padding-left: 2px;
}

.checkout-dialog__body {
    font-family: var(--font-display);
    font-size: 0.9rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 auto 24px;
    max-width: 34ch;
    position: relative;
    z-index: 1;
}

/* Drei "Insel"-Buttons in einer Reihe — bewusst quadratisch/pill statt der
   vertikal gestapelten Bestätigungs-Buttons: numerische Auswahl mit sehr
   engem Wertebereich (1/2/3) liest sich horizontal am schnellsten. */
.checkout-dialog__actions {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 12px;
    position: relative;
    z-index: 1;
    margin-bottom: 6px;
}

.checkout-dialog__btn {
    flex: 1 1 0;
    min-width: 0;
    max-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 16px 8px 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
    color: #ffffff;
    border: none;
    border-radius: 18px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.10),
        inset 0 0 0 1px rgba(255, 255, 255, 0.10),
        0 12px 30px -18px rgba(0, 0, 0, 0.9);
    cursor: pointer;
    transition:
        transform 260ms cubic-bezier(0.32, 0.72, 0, 1),
        box-shadow 260ms cubic-bezier(0.32, 0.72, 0, 1),
        background 260ms cubic-bezier(0.32, 0.72, 0, 1),
        color 260ms cubic-bezier(0.32, 0.72, 0, 1);
    position: relative;
    isolation: isolate;
}

.checkout-dialog__btn::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background: radial-gradient(ellipse at 50% 0%, rgba(225, 29, 46, 0.28), transparent 60%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms cubic-bezier(0.32, 0.72, 0, 1);
    z-index: -1;
}

.checkout-dialog__btn:hover {
    transform: translateY(-2px);
    background:
        linear-gradient(180deg, var(--club-red) 0%, var(--club-red-deep) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 0 0 1px var(--club-red),
        0 18px 40px -14px var(--club-red-glow);
}

.checkout-dialog__btn:hover::before { opacity: 1; }

.checkout-dialog__btn:active {
    transform: translateY(0) scale(0.97);
}

.checkout-dialog__btn:focus-visible {
    outline: none;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 0 0 1px var(--club-red),
        0 0 0 3px rgba(225, 29, 46, 0.45),
        0 18px 40px -14px var(--club-red-glow);
}

.checkout-dialog__btn-number {
    font-family: var(--font-numeric);
    font-variant-numeric: tabular-nums;
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.checkout-dialog__btn-label {
    font-family: var(--font-display);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    transition: color 260ms cubic-bezier(0.32, 0.72, 0, 1);
}

.checkout-dialog__btn:hover .checkout-dialog__btn-label {
    color: rgba(255, 255, 255, 0.9);
}

/* Deaktivierte Auswahl (z. B. "170 in 2 Darts"): sichtbar unterdrückt, mit
   diagonalem Strike-Through als Zusatz-Signal — die reine Opacity reicht
   auf hochauflösenden Panels nicht, um "geht nicht" eindeutig zu lesen. */
.checkout-dialog__btn--disabled,
.checkout-dialog__btn:disabled {
    cursor: not-allowed;
    color: rgba(255, 255, 255, 0.28);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.005));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transform: none;
    position: relative;
    overflow: hidden;
}

.checkout-dialog__btn--disabled:hover,
.checkout-dialog__btn:disabled:hover {
    transform: none;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.005));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.checkout-dialog__btn--disabled:hover::before,
.checkout-dialog__btn:disabled:hover::before { opacity: 0; }

.checkout-dialog__btn--disabled .checkout-dialog__btn-number,
.checkout-dialog__btn:disabled .checkout-dialog__btn-number {
    color: rgba(255, 255, 255, 0.28);
}

.checkout-dialog__btn--disabled .checkout-dialog__btn-label,
.checkout-dialog__btn:disabled .checkout-dialog__btn-label {
    color: rgba(255, 255, 255, 0.22);
}

/* Diagonaler Strike als eindeutiges "geht nicht"-Signal — nur auf Disabled */
.checkout-dialog__btn--disabled::after,
.checkout-dialog__btn:disabled::after {
    content: "";
    position: absolute;
    left: 12%;
    right: 12%;
    top: 50%;
    height: 1px;
    background: rgba(255, 77, 77, 0.55);
    transform: rotate(-18deg);
    transform-origin: center;
    pointer-events: none;
}

.checkout-dialog__hint {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.34);
    position: relative;
    z-index: 1;
}

.checkout-dialog__hint kbd {
    font-family: var(--font-display);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 2px 6px;
    margin-right: 4px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.7);
}

.checkout-dialog__hint-sep { opacity: 0.5; }

@media (max-width: 600px) {
    .checkout-dialog__shell { border-radius: 24px; padding: 4px; }
    .checkout-dialog__core { padding: 30px 20px 22px; border-radius: calc(24px - 4px); }
    .checkout-dialog__title { font-size: 1.3rem; }
    .checkout-dialog__body { font-size: 0.85rem; margin-bottom: 20px; }
    .checkout-dialog__actions { gap: 10px; }
    .checkout-dialog__btn { padding: 14px 6px 12px; border-radius: 16px; }
    .checkout-dialog__btn-number { font-size: 1.8rem; }
    .checkout-dialog__btn-label { font-size: 0.55rem; letter-spacing: 0.22em; }
    .checkout-dialog__hint { font-size: 0.58rem; margin-top: 16px; }
}

