/* Seiteneigenes CSS fuer /highscore – ausgelagert aus highscore.php,
   wo es als Inline-Block bei jedem Aufruf neu uebertragen wurde. */
    :root { --wof-ease: cubic-bezier(.32,.72,0,1); }

    /* ── Hero ─────────────────────────────────────────────────────────── */
    .wof-hero {
        background: linear-gradient(160deg, #0f172a 0%, #1e293b 55%, #0f172a 100%);
    }
    .dark .wof-hero {
        background: linear-gradient(160deg, #020617 0%, #0f172a 55%, #020617 100%);
    }
    .wof-dotgrid {
        background-image:
            radial-gradient(rgba(255,255,255,0.18) 1px, transparent 1px);
        background-size: 28px 28px;
        mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
        -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
    }
    .wof-gold-text {
        background: linear-gradient(90deg, #f59e0b, #fde68a, #f59e0b);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    /* ── Trophäen-Emblem: Glas-Plate + Halo + animierter Pokal ──────────── */
    .wof-emblem {
        position: relative;
        width: 128px; height: 128px;
    }
    @media (min-width: 640px) {
        .wof-emblem { width: 152px; height: 152px; }
    }
    .wof-emblem-halo {
        position: absolute; inset: -20%; border-radius: 9999px;
        background: radial-gradient(circle, rgba(245,158,11,.32) 0%, transparent 68%);
        filter: blur(2px);
    }
    .wof-emblem-plate {
        position: absolute; inset: 0; border-radius: 26%;
        background: linear-gradient(158deg, rgba(51,41,15,.55), rgba(15,23,42,.75));
        border: 1px solid rgba(245,158,11,.25);
        box-shadow: inset 0 1px 0 rgba(255,255,255,.10),
                    0 1px 2px rgba(0,0,0,.2),
                    0 30px 60px -26px rgba(245,158,11,.5);
    }
    .wof-emblem svg { position: relative; display: block; width: 100%; height: 100%; }

    .wof-e-spin     { transform-box: view-box; transform-origin: 50% 50%; animation: wof-e-spin 34s linear infinite; }
    .wof-e-spin-rev { transform-box: view-box; transform-origin: 50% 50%; animation: wof-e-spin 24s linear infinite reverse; }
    @keyframes wof-e-spin { to { transform: rotate(360deg); } }

    .wof-e-shine-sweep { transform-box: view-box; animation: wof-e-shine 3.6s var(--wof-ease) infinite; }
    @keyframes wof-e-shine { 0% { transform: translateX(-8px); opacity: 0; } 15% { opacity: 1; } 55%, 100% { transform: translateX(96px); opacity: 0; } }

    .wof-e-spark { transform-box: fill-box; transform-origin: 50% 50%; animation: wof-e-spark 2.4s var(--wof-ease) infinite; }
    .wof-e-spark-2 { animation-delay: 1.1s; }
    @keyframes wof-e-spark { 0%, 100% { opacity: .15; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.05); } }

    .wof-crown { filter: drop-shadow(0 4px 8px rgba(245,158,11,.35)); }

    /* ── Zweispaltiger Hero ab lg: Grafik neben Überschrift/Beschreibung ── */
    /* DOM-Reihenfolge bleibt Grafik → Text (Screenreader/Tab-Reihenfolge);
       ab lg tauscht order nur die visuelle Position, Text steht links. */
    .wof-hero-split { display: grid; gap: 1.75rem; justify-items: center; text-align: center; }
    @media (min-width: 1024px) {
        .wof-hero-split {
            grid-template-columns: minmax(0, 1fr) auto;
            align-items: center; gap: 3.5rem;
            justify-items: stretch; text-align: left;
        }
        .wof-hero-copy { order: 1; min-width: 0; }
        .wof-hero-art  { order: 2; }
        .wof-hero-art .wof-emblem { width: 200px; height: 200px; margin: 0; }
    }

    /* ── Stat pills ───────────────────────────────────────────────────── */
    .wof-stat-pill {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 7px 16px;
        border-radius: 9999px;
        font-size: 0.8rem;
        color: rgba(255,255,255,0.75);
        background: rgba(255,255,255,0.07);
        border: 1px solid rgba(255,255,255,0.11);
        backdrop-filter: blur(6px);
    }
    .wof-stat-gold {
        color: #fde68a;
        background: rgba(245,158,11,0.12);
        border-color: rgba(245,158,11,0.25);
    }

    /* ── Tab bar ──────────────────────────────────────────────────────── */
    .wof-tab-bar {
        background: white;
        border: 1px solid #e2e8f0;
    }
    .dark .wof-tab-bar {
        background: #0f172a;
        border-color: #1e293b;
    }
    .wof-tab {
        color: #64748b;
    }
    .dark .wof-tab {
        color: #94a3b8;
    }
    .wof-tab-active {
        background: white;
        color: #2563eb;
        box-shadow: 0 1px 6px rgba(0,0,0,0.10), 0 0 0 1px rgba(37,99,235,0.10);
    }
    .dark .wof-tab-active {
        background: #1e293b;
        color: #60a5fa;
        box-shadow: 0 1px 6px rgba(0,0,0,0.30);
    }
    .wof-tab:hover:not(.wof-tab-active) {
        color: #2563eb;
        background: rgba(37,99,235,0.05);
    }
    .dark .wof-tab:hover:not(.wof-tab-active) {
        color: #60a5fa;
        background: rgba(96,165,250,0.07);
    }

    /* ── Podium cards ─────────────────────────────────────────────────── */
    .dark .wof-podium-card {
        background: linear-gradient(160deg, rgba(30,41,59,0.80), rgba(15,23,42,0.95)) !important;
    }
    .wof-domain {
        word-break: break-all;
    }
    @keyframes wofPodiumIn {
        from { opacity: 0; transform: translateY(14px) scale(.96); }
        to   { opacity: 1; transform: translateY(0) scale(1); }
    }
    .wof-podium-in {
        animation: wofPodiumIn .5s var(--wof-ease) both;
        animation-delay: var(--wof-pdelay, 0ms);
    }
    .wof-card-sheen {
        position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
        background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.4) 48%, transparent 66%);
        transform: translateX(-120%);
        opacity: 0;
    }
    .wof-podium-card:hover .wof-card-sheen {
        animation: wofSheen 1s var(--wof-ease);
    }
    .dark .wof-card-sheen {
        background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.12) 48%, transparent 66%);
    }
    @keyframes wofSheen {
        0%   { transform: translateX(-120%); opacity: 1; }
        100% { transform: translateX(120%); opacity: 0; }
    }

    /* ── Score ring track + rotating tick ring ───────────────────────── */
    .wof-ring-track {
        stroke: #e2e8f0;
    }
    .dark .wof-ring-track {
        stroke: #334155;
    }
    .wof-ring-ticks {
        transform-box: view-box; transform-origin: 50% 50%;
        animation: wof-e-spin 60s linear infinite;
    }

    /* ── List rows ────────────────────────────────────────────────────── */
    @keyframes wofSlideIn {
        from { opacity: 0; transform: translateY(8px); }
        to   { opacity: 1; transform: translateY(0); }
    }
    .wof-list-item {
        animation: wofSlideIn 0.35s cubic-bezier(0.4,0,0.2,1) both;
        animation-delay: var(--wof-delay, 0ms);
    }
    .wof-row-accent {
        position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
        opacity: 0; transition: opacity .2s var(--wof-ease);
    }
    .wof-list-item:hover .wof-row-accent {
        opacity: .85;
    }

    /* ── Score arc transition (set via JS) ───────────────────────────── */
    .score-arc {
        transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* ── CTA section ──────────────────────────────────────────────────── */
    .wof-cta {
        background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 40%, #4f46e5 100%);
        position: relative;
        overflow: hidden;
    }
    .wof-cta::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: radial-gradient(rgba(255,255,255,0.12) 1px, transparent 1px);
        background-size: 22px 22px;
        mask-image: radial-gradient(ellipse 80% 100% at 50% 0%, black 0%, transparent 80%);
        -webkit-mask-image: radial-gradient(ellipse 80% 100% at 50% 0%, black 0%, transparent 80%);
        pointer-events: none;
    }

    /* ── Reduced motion ───────────────────────────────────────────────── */
    @media (prefers-reduced-motion: reduce) {
        .wof-e-spin, .wof-e-spin-rev, .wof-e-shine-sweep, .wof-e-spark,
        .wof-ring-ticks, .wof-podium-in, .wof-list-item, .wof-card-sheen,
        .score-arc { animation: none; }
        .wof-podium-card:hover .wof-card-sheen { animation: none; opacity: 0; }
        .score-arc { transition: none; }
    }
