/**
 * WK Striker — Oranje Gekte v4
 * Darkshop × WK 2026 Design System
 * 
 * Font: Outfit (Darkshop theme font)
 * Mono: JetBrains Mono (scores, codes)
 * Radius: 12px (Darkshop theme)
 * 
 * Google Fonts import:
 * @import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=JetBrains+Mono:wght@700;800&display=swap');
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=JetBrains+Mono:wght@700;800&display=swap');

/* ═══════════════════════════════════════════════════════════════════
   TOKENS — CSS Custom Properties
   ═══════════════════════════════════════════════════════════════════ */
:root {
    /* ── Darkshop Brand ─────────────────────────── */
    --dwg-oranje:         #FF6C00;
    --dwg-oranje-light:   #FF8533;
    --dwg-oranje-deep:    #E55D00;
    --dwg-oranje-soft:    rgba(255,108,0,0.10);
    --dwg-oranje-glow:    rgba(255,108,0,0.45);

    /* ── Darkshop Theme (from WP settings) ──────── */
    --dwg-accent:         #000000;
    --dwg-text-dark:      #3a2035;
    --dwg-text-light:     #363636;
    --dwg-bg-light:       #fafafa;
    --dwg-item-bg:        #f2f2f2;

    /* ── Neutral accent (replaces gold) ─────────── */
    --dwg-silver:         #D1CCC6;
    --dwg-silver-soft:    rgba(209,204,198,0.10);

    /* ── Dutch Flag ─────────────────────────────── */
    --dwg-rood:           #AE1C28;
    --dwg-wit:            #FFFFFF;
    --dwg-blauw:          #21468B;

    /* ── Dark Mode Surfaces ─────────────────────── */
    --dwg-bg:             #0D0B08;
    --dwg-dark:           #1A1A1A;
    --dwg-surface:        rgba(255,255,255,0.05);
    --dwg-surface-hi:     rgba(255,255,255,0.08);
    --dwg-border:         rgba(255,255,255,0.08);
    --dwg-border-hi:      rgba(255,108,0,0.20);

    /* ── Text ───────────────────────────────────── */
    --dwg-white:          #FFFFFF;
    --dwg-white-dim:      rgba(255,255,255,0.75);
    --dwg-muted:          rgba(255,255,255,0.40);
    --dwg-muted-light:    rgba(255,255,255,0.55);

    /* ── Semantic ───────────────────────────────── */
    --dwg-green-field:    #1A5C28;
    --dwg-red:            #E53935;

    /* ── Radii (Darkshop theme: 12px) ───────────── */
    --dwg-radius:         12px;
    --dwg-radius-sm:      8px;
    --dwg-radius-pill:    100px;

    /* ── Shadows ────────────────────────────────── */
    --dwg-shadow:         0 4px 20px rgba(0,0,0,0.4);
    --dwg-shadow-lg:      0 8px 32px rgba(0,0,0,0.6);
    --dwg-shadow-oranje:  0 4px 16px rgba(255,108,0,0.35);

    /* ── Fonts ──────────────────────────────────── */
    --dwg-font:           'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --dwg-font-mono:      'JetBrains Mono', 'SF Mono', monospace;

    /* ── Transitions ────────────────────────────── */
    --dwg-transition:     0.2s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ═══════════════════════════════════════════════════════════════════
   BASE — Full-bleed dark container with smoke & net
   ═══════════════════════════════════════════════════════════════════ */
.dwg-wrapper {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    min-height: 100vh;
    background: var(--dwg-bg);
    font-family: var(--dwg-font);
    color: var(--dwg-white);
    -webkit-user-select: none;
    user-select: none;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── Orange Smoke Atmosphere ────────────────────────────────────── */
.dwg-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        /* Grote rookwolk boven */
        radial-gradient(ellipse 100% 80% at 50% -10%, rgba(255,108,0,0.35) 0%, rgba(255,108,0,0.15) 30%, transparent 65%),
        /* Linker rookwolk */
        radial-gradient(ellipse 60% 50% at -5% 40%, rgba(255,108,0,0.20) 0%, transparent 60%),
        /* Rechter rode rookwolk */
        radial-gradient(ellipse 50% 45% at 105% 55%, rgba(174,28,40,0.12) 0%, transparent 55%),
        /* Bodem oranje gloed */
        radial-gradient(ellipse 80% 40% at 50% 105%, rgba(255,108,0,0.18) 0%, transparent 60%);
    filter: blur(30px);
    z-index: 0;
}

/* ── Floodlight beams ───────────────────────────────────────────── */
.dwg-wrapper::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 100%;
    pointer-events: none;
    background:
        linear-gradient(172deg, rgba(255,200,100,0.06) 0%, transparent 50%),
        linear-gradient(188deg, rgba(255,200,100,0.06) 0%, transparent 50%);
    z-index: 0;
}

/* ── Goal Net Pattern ───────────────────────────────────────────── */
.dwg-net {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.04;
    background-image:
        linear-gradient(45deg, var(--dwg-oranje) 1px, transparent 1px),
        linear-gradient(-45deg, var(--dwg-oranje) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* ── Dutch Flag Bar ─────────────────────────────────────────────── */
.dwg-flag-bar {
    width: 100%;
    height: 3px;
    display: flex;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.dwg-flag-bar__rood  { flex: 1; background: var(--dwg-rood); }
.dwg-flag-bar__wit   { flex: 1; background: var(--dwg-wit); }
.dwg-flag-bar__blauw { flex: 1; background: var(--dwg-blauw); }


/* ═══════════════════════════════════════════════════════════════════
   SCREENS — Centered content panels
   ═══════════════════════════════════════════════════════════════════ */
.dwg-wrapper > .dwg-screen {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
    padding: 18px 28px 36px;
}

.dwg-screen {
    animation: dwg-fadeIn 0.3s ease;
}

@keyframes dwg-fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ═══════════════════════════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════════════════════════ */

/* Headings — Outfit uppercase */
.dwg-heading {
    font-family: var(--dwg-font);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.1;
    color: var(--dwg-white);
    margin: 0;
}
.dwg-heading--xl  { font-size: 42px; }  /* mobile title */
.dwg-heading--lg  { font-size: 28px; }  /* screen titles */
.dwg-heading--md  { font-size: 22px; }  /* section titles */
.dwg-heading--sm  { font-size: 18px; }  /* card titles */

/* Title with oranje glow */
.dwg-heading--oranje {
    color: var(--dwg-oranje);
    text-shadow:
        0 0 40px rgba(255,108,0,0.5),
        0 0 80px rgba(255,108,0,0.2),
        0 2px 8px rgba(0,0,0,0.5);
}

/* Label — small uppercase tracking */
.dwg-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--dwg-muted);
}
.dwg-label--oranje { color: var(--dwg-oranje); }
.dwg-label--silver { color: var(--dwg-silver); }

/* Score numbers — mono */
.dwg-score {
    font-family: var(--dwg-font-mono);
    font-weight: 800;
    color: var(--dwg-silver);
    line-height: 1;
}
.dwg-score--xl { font-size: 52px; }  /* desktop */
.dwg-score--lg { font-size: 44px; }  /* mobile main */
.dwg-score--md { font-size: 20px; }  /* stats */
.dwg-score--sm { font-size: 14px; }  /* HUD */

/* Body text */
.dwg-text       { font-size: 14px; color: var(--dwg-white-dim); }
.dwg-text--sm   { font-size: 12px; color: var(--dwg-muted); }
.dwg-text--xs   { font-size: 11px; color: var(--dwg-muted); }

/* Oranje Boven badge */
.dwg-oranje-boven {
    display: inline-flex;
    padding: 4px 16px;
    background: rgba(255,108,0,0.12);
    border-radius: var(--dwg-radius);
    border: 1px solid rgba(255,108,0,0.20);
    font-family: var(--dwg-font);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.20em;
    color: var(--dwg-oranje);
    text-transform: uppercase;
}


/* ═══════════════════════════════════════════════════════════════════
   BUTTONS — Darkshop style (12px radius)
   ═══════════════════════════════════════════════════════════════════ */
.dwg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 14px 28px;
    border: none;
    border-radius: var(--dwg-radius);
    font-family: var(--dwg-font);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--dwg-transition);
    text-decoration: none;
    line-height: 1.2;
    -webkit-tap-highlight-color: transparent;
    width: 100%;
}

.dwg-btn--primary {
    background: var(--dwg-oranje);
    color: #fff;
    box-shadow: var(--dwg-shadow-oranje);
}
.dwg-btn--primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
}
.dwg-btn--primary:active {
    transform: scale(0.98);
}

.dwg-btn--silver {
    background: linear-gradient(135deg, #D1CCC6, #B8B3AD);
    color: #1A1A1A;
    font-weight: 700;
    box-shadow: 0 3px 12px rgba(209,204,198,0.20);
}

.dwg-btn--ghost {
    background: transparent;
    color: var(--dwg-white-dim);
    border: 1.5px solid var(--dwg-border);
    min-height: 46px;
    font-size: 13px;
}
.dwg-btn--ghost:hover {
    background: rgba(255,108,0,0.08);
    border-color: rgba(255,108,0,0.25);
    color: var(--dwg-white);
}

.dwg-btn--full { width: 100%; }
.dwg-btn--lg   { min-height: 54px; font-size: 16px; }
.dwg-btn--sm   { min-height: 44px; font-size: 13px; padding: 10px 18px; }

.dwg-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
}

/* ── Icon inside button (SVG) ───────────────────────────────────── */
.dwg-btn svg {
    flex-shrink: 0;
}


/* ═══════════════════════════════════════════════════════════════════
   CARDS & SURFACES
   ═══════════════════════════════════════════════════════════════════ */
.dwg-card {
    background: var(--dwg-surface);
    border: 1px solid var(--dwg-border);
    border-radius: var(--dwg-radius);
    padding: 16px;
}
.dwg-card--oranje {
    background: var(--dwg-oranje-soft);
    border-color: var(--dwg-border-hi);
}
.dwg-card--silver {
    background: var(--dwg-silver-soft);
    border-color: rgba(209,204,198,0.15);
}

/* Score card (big score display) */
.dwg-scorecard {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px;
    background: var(--dwg-oranje-soft);
    border: 1px solid var(--dwg-border-hi);
    border-radius: var(--dwg-radius);
}

/* Stats row (level, ballen, tackles) */
.dwg-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    width: 100%;
}
.dwg-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    border: 1px solid var(--dwg-border);
    border-radius: var(--dwg-radius-sm);
    padding: 10px 6px;
    background: var(--dwg-surface);
}
.dwg-stat__value {
    font-family: var(--dwg-font-mono);
    font-size: 18px;
    font-weight: 700;
    color: var(--dwg-white);
    line-height: 1;
}
.dwg-stat__label {
    font-size: 10px;
    font-weight: 600;
    color: var(--dwg-muted);
}

/* Rank pill */
.dwg-rank {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    font-family: var(--dwg-font-mono);
    color: var(--dwg-oranje);
    padding: 8px 20px;
    background: var(--dwg-oranje-soft);
    border: 1px solid rgba(255,108,0,0.15);
    border-radius: var(--dwg-radius);
}

/* WK badge pill */
.dwg-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--dwg-oranje-soft);
    border: 1px solid var(--dwg-border-hi);
    border-radius: var(--dwg-radius);
    padding: 5px 14px;
}

/* Prize banner */
.dwg-prize {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    border: 1px solid rgba(209,204,198,0.15);
    border-radius: var(--dwg-radius);
    padding: 12px 16px;
    background: var(--dwg-silver-soft);
}
.dwg-prize__icon {
    width: 36px; height: 36px;
    flex-shrink: 0;
    background: rgba(209,204,198,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* ═══════════════════════════════════════════════════════════════════
   HUD (in-game heads-up display)
   ═══════════════════════════════════════════════════════════════════ */
.dwg-hud {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr auto;
    align-items: center;
    gap: 4px;
    width: 100%;
    padding: 12px 16px;
    background:
        linear-gradient(180deg, rgba(26,22,16,0.97), rgba(10,8,5,0.97));
    border: 2px solid var(--dwg-oranje);
    border-radius: var(--dwg-radius-sm);
    box-shadow:
        inset 0 1px 0 rgba(255,180,80,0.25),
        inset 0 0 24px rgba(255,108,0,0.12),
        0 0 0 1px rgba(0,0,0,0.4),
        0 4px 16px rgba(0,0,0,0.5),
        0 0 24px rgba(255,108,0,0.25);
}
.dwg-hud__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.dwg-hud__item + .dwg-hud__item {
    border-left: 1px solid rgba(255,108,0,0.18);
}
.dwg-hud__label {
    font-size: 9px;
    font-weight: 800;
    color: var(--dwg-oranje);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.9;
}
.dwg-hud__value {
    font-family: var(--dwg-font-mono);
    font-size: 26px;
    font-weight: 800;
    color: #FFD23F;
    line-height: 1;
    letter-spacing: 0.04em;
    text-shadow:
        0 0 10px rgba(255,210,63,0.6),
        0 0 3px rgba(255,210,63,0.9),
        0 2px 0 rgba(180,110,0,0.5);
    font-variant-numeric: tabular-nums;
}
.dwg-hud__value--sm {
    font-size: 16px;
    color: #fff;
    text-shadow: 0 0 6px rgba(255,255,255,0.35);
}
.dwg-hud__lives {
    font-size: 15px;
    color: var(--dwg-oranje);
    letter-spacing: 3px;
    line-height: 1;
    text-shadow: 0 0 8px rgba(255,108,0,0.7);
}

/* Arcade pauze-knop — onmiskenbaar */
.dwg-hud__pause {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px 9px 12px;
    margin-left: 6px;
    border: none;
    border-radius: var(--dwg-radius-sm);
    background: linear-gradient(145deg, var(--dwg-oranje-light), var(--dwg-oranje-deep));
    box-shadow:
        0 3px 12px rgba(255,108,0,0.5),
        inset 0 1px 0 rgba(255,255,255,0.3),
        inset 0 -2px 4px rgba(120,50,0,0.4);
    cursor: pointer;
    transition: all var(--dwg-transition);
    -webkit-tap-highlight-color: transparent;
}
.dwg-hud__pause svg { stroke: #fff; flex-shrink: 0; }
.dwg-hud__pause-text {
    font-family: var(--dwg-font);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #fff;
    text-shadow: 0 1px 1px rgba(0,0,0,0.3);
}
.dwg-hud__pause:hover { filter: brightness(1.1); transform: translateY(-1px); }
.dwg-hud__pause:active { transform: translateY(0) scale(0.97); }

/* Mobiel: alleen het pauze-icoon (label kost te veel ruimte) */
@media (max-width: 560px) {
    .dwg-hud { padding: 10px 12px; gap: 2px; }
    .dwg-hud__value { font-size: 22px; }
    .dwg-hud__pause { padding: 9px; margin-left: 4px; }
    .dwg-hud__pause-text { display: none; }
    .dwg-hud__item + .dwg-hud__item { border-left: none; }
}


/* ═══════════════════════════════════════════════════════════════════
   LEADERBOARD / SCORES TABLE
   ═══════════════════════════════════════════════════════════════════ */
.dwg-leaderboard {
    width: 100%;
    border: 1px solid var(--dwg-border);
    border-radius: var(--dwg-radius);
    padding: 12px 14px;
    background: var(--dwg-surface);
}
.dwg-leaderboard__header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.dwg-scores-row {
    display: grid;
    grid-template-columns: 26px 1fr 68px;
    padding: 5px 4px;
    align-items: center;
    font-size: 12px;
    border-radius: 4px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.dwg-scores-row:last-child { border-bottom: none; }
.dwg-scores-row--me {
    background: var(--dwg-oranje-soft);
    border: 1px solid rgba(255,108,0,0.15);
    border-bottom: 1px solid rgba(255,108,0,0.15);
}
.dwg-scores-row__rank {
    font-family: var(--dwg-font-mono);
    font-weight: 700;
    text-align: center;
    font-size: 11px;
    color: var(--dwg-muted);
}
.dwg-scores-row__rank--top { color: var(--dwg-silver); }
.dwg-scores-row__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--dwg-white-dim);
    font-weight: 500;
}
.dwg-scores-row--me .dwg-scores-row__name {
    color: var(--dwg-white);
    font-weight: 700;
}
.dwg-scores-row__score {
    text-align: right;
    font-family: var(--dwg-font-mono);
    font-weight: 700;
    font-size: 11px;
    color: var(--dwg-silver);
}

/* Full scores table (klassement page) */
.dwg-scores-table__row {
    display: grid;
    grid-template-columns: 32px 1fr 76px 36px;
    padding: 8px;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    border-radius: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.dwg-scores-table__row--me {
    background: var(--dwg-oranje-soft);
    border: 1px solid rgba(255,108,0,0.15);
}


/* ═══════════════════════════════════════════════════════════════════
   FORM FIELDS (Auth screen)
   ═══════════════════════════════════════════════════════════════════ */
.dwg-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.dwg-field__label {
    font-size: 12px;
    font-weight: 600;
    color: var(--dwg-white-dim);
}
.dwg-field__input {
    min-height: 46px;
    padding: 12px 14px;
    border: 1.5px solid var(--dwg-border);
    border-radius: var(--dwg-radius-sm);
    background: var(--dwg-surface);
    color: var(--dwg-white);
    font-family: var(--dwg-font);
    font-size: 14px;
    outline: none;
    transition: all var(--dwg-transition);
    -webkit-appearance: none;
}
.dwg-field__input:focus {
    border-color: var(--dwg-oranje);
    box-shadow: 0 0 0 3px rgba(255,108,0,0.10);
}
.dwg-field__input::placeholder {
    color: rgba(255,255,255,0.20);
}
.dwg-field__hint {
    font-size: 10px;
    color: var(--dwg-muted);
}

/* Auth tabs */
.dwg-auth-tabs {
    display: flex;
    gap: 2px;
    background: var(--dwg-surface);
    border: 1.5px solid var(--dwg-border);
    border-radius: var(--dwg-radius);
    padding: 3px;
}
.dwg-auth-tab {
    flex: 1;
    min-height: 40px;
    border: none;
    border-radius: 9px;
    cursor: pointer;
    font-family: var(--dwg-font);
    font-size: 13px;
    font-weight: 600;
    background: transparent;
    color: var(--dwg-muted);
    transition: all 0.15s;
}
.dwg-auth-tab--active {
    background: var(--dwg-oranje);
    color: #fff;
}


/* ═══════════════════════════════════════════════════════════════════
   GAME CANVAS
   ═══════════════════════════════════════════════════════════════════ */
.dwg-canvas-wrap {
    position: relative;
    width: 100%;
    max-width: 680px;
    border-radius: var(--dwg-radius-sm);
    overflow: hidden;
    box-shadow: var(--dwg-shadow);
    background: var(--dwg-green-field);
    line-height: 0;
}
#dwg-canvas {
    display: block;
    width: 100%;
    height: auto;
    touch-action: none;
}

/* ── D-Pad ──────────────────────────────────────────────────────── */
.dwg-dpad { display: block; margin: 10px auto 0; width: 150px; height: 150px; position: relative; }
.dwg-dpad__btn {
    position: absolute;
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 1px solid var(--dwg-border);
    background: var(--dwg-surface);
    color: var(--dwg-white-dim);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.08s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.dwg-dpad__btn:active {
    background: rgba(255,108,0,0.3);
    border-color: var(--dwg-oranje);
}
.dwg-dpad__up    { top: 0;    left: 46px; }
.dwg-dpad__left  { top: 46px; left: 0; }
.dwg-dpad__right { top: 46px; left: 92px; }
.dwg-dpad__down  { top: 92px; left: 46px; }

/* Joystick */
.dwg-joystick {
    position: absolute; top: 46px; left: 46px;
    width: 58px; height: 58px; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.05), rgba(0,0,0,0.2));
    border: 1px solid var(--dwg-border);
    display: flex; align-items: center; justify-content: center;
    touch-action: none;
}
.dwg-joystick__knob {
    width: 30px; height: 30px; border-radius: 50%;
    background: linear-gradient(145deg, var(--dwg-oranje-light), var(--dwg-oranje-deep));
    box-shadow: 0 2px 8px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.2);
    pointer-events: none;
}


/* ═══════════════════════════════════════════════════════════════════
   PAUSE / MODAL OVERLAY
   ═══════════════════════════════════════════════════════════════════ */
.dwg-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.82);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 20px;
}
.dwg-overlay__box {
    background: var(--dwg-bg);
    border: 1px solid var(--dwg-border);
    border-radius: var(--dwg-radius);
    padding: 28px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-shadow: var(--dwg-shadow-lg);
    width: 100%;
    max-width: 280px;
}


/* ═══════════════════════════════════════════════════════════════════
   ICON CIRCLES (replace emoji)
   ═══════════════════════════════════════════════════════════════════ */
.dwg-icon-circle {
    width: 42px; height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.dwg-icon-circle--oranje {
    background: var(--dwg-oranje-soft);
    border: 1px solid var(--dwg-border-hi);
}
.dwg-icon-circle--silver {
    background: var(--dwg-silver-soft);
    border: 1px solid rgba(209,204,198,0.15);
}
.dwg-icon-circle--sm { width: 36px; height: 36px; }

/* Player avatar */
.dwg-avatar {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--dwg-oranje);
    display: flex;
    align-items: center;
    justify-content: center;
}


/* ═══════════════════════════════════════════════════════════════════
   CROWD SILHOUETTE (CSS-only via clip-path on ::after)
   For full fidelity, use the SVG version from the design.
   ═══════════════════════════════════════════════════════════════════ */
.dwg-crowd {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.10;
}


/* ═══════════════════════════════════════════════════════════════════
   FULLSCREEN TAKEOVER (alle devices)
   ═══════════════════════════════════════════════════════════════════ */
html.dwg-no-scroll, body.dwg-no-scroll {
    overflow: hidden !important;
    height: 100%;
}
.dwg-wrapper.dwg-takeover {
    position: fixed;
    inset: 0;
    width: 100%;
    margin-left: 0;
    height: 100dvh;
    z-index: 999990;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* Close button */
.dwg-close-btn {
    position: fixed;
    top: 16px; right: 16px;
    z-index: 999999;
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid var(--dwg-border);
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
    color: var(--dwg-white-dim);
    font-size: 16px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--dwg-transition);
}
.dwg-close-btn:hover {
    background: rgba(255,108,0,0.15);
    border-color: rgba(255,108,0,0.3);
    color: var(--dwg-white);
}


/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
    .dwg-wrapper > .dwg-screen { padding: 16px 20px 32px; }
    .dwg-btn { font-size: 14px; }
    .dwg-btn--lg { min-height: 52px; font-size: 15px; }
    .dwg-heading--xl { font-size: 36px; }
}

@media (min-width: 769px) {
    .dwg-wrapper > .dwg-screen { padding: 40px 40px 60px; }

    /* Desktop: primaire actie vol, secundaire knoppen eronder naast elkaar */
    .dwg-buttons--row {
        flex-direction: row !important;
        flex-wrap: wrap;
        max-width: 420px !important;
    }
    .dwg-buttons--row .dwg-btn--primary { flex: 1 1 100%; }
    .dwg-buttons--row .dwg-btn--silver,
    .dwg-buttons--row .dwg-btn--ghost { flex: 1 1 calc(50% - 6px); white-space: nowrap; }

    /* Desktop HUD: single row with labels inline */
    .dwg-hud {
        display: flex;
        gap: 24px;
        justify-content: center;
        max-width: 700px;
        margin: 0 auto 12px;
        padding: 10px 20px;
    }
    .dwg-hud__item { flex-direction: row; gap: 8px; }
}

/* ═══════════════════════════════════════════════════════════════════
   PLUGIN-SPECIFIC — Oranje Gekte tokens toegepast op game-features
   (prijzen, voorwaarden, intro-stappen, gast-CTA, mijlpalen)
   ═══════════════════════════════════════════════════════════════════ */

/* Canvas wrap — speelveld (rendering ongewijzigd) */
.dwg-canvas-wrap {
    width: 100%;
    max-width: 680px;
    border-radius: var(--dwg-radius-sm);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4), 0 0 0 1px var(--dwg-border);
    background: var(--dwg-green-field);
    line-height: 0;
    position: relative;
}
#dwg-canvas { display: block; width: 100%; height: auto; touch-action: none; }

/* HUD ballen-variant */
.dwg-hud__balls { display: flex; flex-direction: column; align-items: center; gap: 1px; }

/* Mini scores (inactive / login preview) */
.dwg-mini-scores__row {
    display: flex; align-items: center; gap: 12px;
    padding: 8px 0; font-size: 14px;
}
.dwg-mini-scores__rank { width: 30px; font-weight: 800; text-align: center; }
.dwg-mini-scores__name { flex: 1; color: var(--dwg-white-dim); }
.dwg-mini-scores__score {
    font-family: var(--dwg-font-mono); font-weight: 700;
    font-size: 13px; color: var(--dwg-oranje);
}

/* Scores body + dynamische rijen (game over context) */
.dwg-scores-table__body { display: flex; flex-direction: column; }
.dwg-go-scores { display: flex; flex-direction: column; }
.dwg-go-scores__row {
    display: grid; grid-template-columns: 40px 1fr 90px;
    padding: 9px 6px; align-items: center; font-size: 14px;
    border-bottom: 1px solid var(--dwg-border);
    border-radius: 6px;
}
.dwg-go-scores__row:last-child { border-bottom: none; }
.dwg-go-scores__row--me {
    background: var(--dwg-oranje-soft);
    border: 1px solid var(--dwg-border-hi);
}
.dwg-go-scores__rank { font-weight: 800; text-align: center; }
.dwg-go-scores__name {
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    color: var(--dwg-white-dim); font-weight: 500;
}
.dwg-go-scores__score {
    text-align: right; font-family: var(--dwg-font-mono);
    font-weight: 700; font-size: 13px; color: var(--dwg-oranje);
}
.dwg-go-scores__sep { text-align: center; color: var(--dwg-muted); padding: 2px 0; letter-spacing: 4px; }

/* Scores empty state */
.dwg-scores-empty {
    display: flex; flex-direction: column; align-items: center;
    gap: 6px; padding: 40px 20px; text-align: center;
}
.dwg-scores-empty__icon { margin-bottom: 4px; display: flex; }
.dwg-scores-empty strong { font-size: 17px; color: var(--dwg-white); }
.dwg-scores-empty span:last-child { font-size: 14px; color: var(--dwg-muted); }

/* Prijzenlijst op startscherm */
.dwg-prizes {
    width: 100%; max-width: 420px;
    background: var(--dwg-surface);
    border: 1px solid rgba(209,204,198,0.15);
    border-radius: var(--dwg-radius);
    padding: 16px 18px; margin-bottom: 18px; text-align: left;
}
.dwg-prizes__title {
    margin: 0 0 10px; font-size: 13px; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--dwg-silver); text-align: center;
}
.dwg-prizes__row {
    display: grid; grid-template-columns: 44px 84px 1fr auto;
    gap: 8px; align-items: center; padding: 8px 4px;
    font-size: 13px; border-bottom: 1px solid var(--dwg-border);
}
.dwg-prizes__row:last-of-type { border-bottom: none; }
.dwg-prizes__row--claimed { opacity: 0.5; }
.dwg-prizes__img {
    width: 38px; height: 38px; display: flex;
    align-items: center; justify-content: center;
    background: rgba(255,255,255,0.04); border-radius: 6px; overflow: hidden;
}
.dwg-prizes__img img { width: 100%; height: 100%; object-fit: cover; }
.dwg-prizes__threshold {
    font-family: var(--dwg-font-mono); font-weight: 700;
    color: var(--dwg-oranje); font-size: 12px;
}
.dwg-prizes__prize { font-weight: 600; color: var(--dwg-white); }
.dwg-prizes__status { font-size: 12px; color: var(--dwg-muted); white-space: nowrap; }
.dwg-prizes__row:not(.dwg-prizes__row--claimed) .dwg-prizes__status {
    color: var(--dwg-oranje); font-weight: 700;
}
.dwg-prizes__note { margin: 10px 0 0; font-size: 11px; color: var(--dwg-muted); text-align: center; }

/* Prijs gewonnen banner (game over) */
.dwg-prize-won {
    display: flex; align-items: center; gap: 14px; width: 100%;
    text-align: left;
    background: linear-gradient(135deg, rgba(255,108,0,0.16), rgba(229,93,0,0.08));
    border: 2px solid var(--dwg-border-hi);
    border-radius: var(--dwg-radius);
    padding: 16px 18px; margin-bottom: 14px;
    animation: dwg-fadeIn 0.4s ease;
}
.dwg-prize-won__icon {
    font-size: 32px; flex-shrink: 0; display: flex;
    width: 48px; height: 48px; align-items: center; justify-content: center;
    background: var(--dwg-oranje-soft); border-radius: 50%;
}
.dwg-prize-won__text { display: flex; flex-direction: column; gap: 3px; }
.dwg-prize-won__text strong {
    font-size: 16px; font-weight: 800; color: var(--dwg-oranje);
    letter-spacing: 0.02em; text-transform: uppercase;
}
.dwg-prize-won__text span { font-size: 14px; color: var(--dwg-white); font-weight: 600; }
.dwg-prize-won__text small { font-size: 12px; color: var(--dwg-muted); }

/* Intro-stappen */
.dwg-intro__steps {
    display: flex; flex-direction: column; gap: 12px;
    width: 100%; margin-bottom: 24px;
}
.dwg-intro__step {
    display: flex; align-items: center; gap: 16px; text-align: left;
    background: var(--dwg-surface); border: 1px solid var(--dwg-border);
    border-radius: var(--dwg-radius); padding: 14px 16px;
}
.dwg-intro__step-icon {
    flex-shrink: 0; width: 44px; height: 44px; display: flex;
    align-items: center; justify-content: center;
    background: var(--dwg-oranje-soft); border-radius: var(--dwg-radius-sm);
    color: var(--dwg-oranje);
}
.dwg-intro__step-text { display: flex; flex-direction: column; gap: 2px; }
.dwg-intro__step-text strong { font-size: 15px; font-weight: 700; color: var(--dwg-white); }
.dwg-intro__step-text span { font-size: 13px; color: var(--dwg-muted); line-height: 1.4; }

/* Gast-CTA na game over */
.dwg-go-cta {
    width: 100%;
    background: linear-gradient(135deg, rgba(255,108,0,0.12), rgba(229,93,0,0.06));
    border: 1px solid var(--dwg-border-hi);
    border-radius: var(--dwg-radius); padding: 22px 20px; margin-bottom: 16px;
    text-align: center;
}
.dwg-go-cta__icon {
    width: 52px; height: 52px; margin: 0 auto 10px; display: flex;
    align-items: center; justify-content: center;
    background: var(--dwg-oranje-soft); border-radius: 50%; color: var(--dwg-oranje);
}
.dwg-go-cta__title { font-size: 18px; font-weight: 800; margin: 0 0 8px; color: var(--dwg-oranje); }
.dwg-go-cta__text { font-size: 14px; color: var(--dwg-white-dim); line-height: 1.5; margin: 0 0 16px; }

/* Voorwaarden */
.dwg-terms-note { font-size: 12px; color: var(--dwg-muted); margin: 14px 0 0; }
.dwg-terms-note--center { text-align: center; margin-top: 10px; }
.dwg-terms-note a { color: var(--dwg-oranje); text-decoration: underline; }
.dwg-terms-box { max-width: 560px !important; max-height: 80dvh; align-items: stretch !important; }
.dwg-terms-text {
    text-align: left; font-size: 13px; line-height: 1.6;
    color: var(--dwg-white-dim); overflow-y: auto;
    padding: 4px 8px 4px 0; margin-bottom: 8px;
}

/* Modal input (gamertag) */
.dwg-modal-input {
    min-height: 50px; padding: 14px 16px;
    border: 1px solid var(--dwg-border); border-radius: var(--dwg-radius-sm);
    background: rgba(255,255,255,0.05); color: var(--dwg-white);
    font-family: var(--dwg-font); font-size: 16px; outline: none; text-align: center;
    width: 100%;
}
.dwg-modal-input:focus { border-color: var(--dwg-oranje); }

/* Guest note + player tag helpers */
.dwg-start__guest-note { font-size: 13px; color: var(--dwg-muted); margin: 0 0 16px; max-width: 340px; text-align: center; }
.dwg-start__guest-note strong { color: var(--dwg-white-dim); }
.dwg-icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border: none; border-radius: 6px;
    background: transparent; color: var(--dwg-muted); cursor: pointer;
    transition: all var(--dwg-transition);
}
.dwg-icon-btn:hover { background: var(--dwg-surface); color: var(--dwg-white); }

/* D-pad + joystick op alle devices */
.dwg-dpad { display: block; }

/* Toast (vervangt alert) */
.dwg-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translate(-50%, 20px);
    z-index: 9999999;
    max-width: 90vw;
    padding: 14px 22px;
    background: #1A1A1A;
    border: 1px solid var(--dwg-border-hi);
    border-radius: var(--dwg-radius);
    color: var(--dwg-white);
    font-family: var(--dwg-font);
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--dwg-shadow-lg);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    text-align: center;
}
.dwg-toast--show { opacity: 1; transform: translate(-50%, 0); }

/* ── v4.3: grotere, gevoeligere mobiele besturing ───────────────── */
@media (max-width: 768px) {
    .dwg-dpad {
        width: 216px;
        height: 216px;
        margin: 12px auto 0;
        touch-action: none;
    }
    .dwg-dpad__btn {
        width: 68px !important;
        height: 68px !important;
        font-size: 22px;
        /* groter raakvlak dan zichtbaar (8px onzichtbare rand) */
        box-shadow: 0 0 0 8px transparent;
    }
    .dwg-dpad__up    { top: 0 !important;     left: 74px !important; }
    .dwg-dpad__left  { top: 74px !important;  left: 0 !important; }
    .dwg-dpad__right { top: 74px !important;  left: 148px !important; }
    .dwg-dpad__down  { top: 148px !important; left: 74px !important; }

    .dwg-joystick {
        top: 72px !important;
        left: 72px !important;
        width: 72px !important;
        height: 72px !important;
    }
    .dwg-joystick__knob {
        width: 40px !important;
        height: 40px !important;
    }
}

/* ── v4.4: boost-loadout + percentiel ───────────────────────────── */
.dwg-boosts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
    margin-bottom: 18px;
}
.dwg-boost {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 14px 8px 12px;
    background: var(--dwg-surface);
    border: 2px solid var(--dwg-border);
    border-radius: var(--dwg-radius);
    cursor: pointer;
    transition: all var(--dwg-transition);
    text-align: center;
    -webkit-tap-highlight-color: transparent;
}
.dwg-boost__icon { font-size: 28px; line-height: 1; }
.dwg-boost strong {
    font-family: var(--dwg-font);
    font-size: 12px;
    font-weight: 800;
    color: var(--dwg-white);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.dwg-boost span:last-child {
    font-size: 10px;
    color: var(--dwg-muted);
    line-height: 1.35;
}
.dwg-boost:hover { border-color: rgba(255,108,0,0.4); }
.dwg-boost--active {
    border-color: var(--dwg-oranje);
    background: var(--dwg-oranje-soft);
    box-shadow: 0 0 16px rgba(255,108,0,0.25), inset 0 1px 0 rgba(255,255,255,0.06);
}
.dwg-boost--active strong { color: var(--dwg-oranje); }

@media (max-width: 480px) {
    .dwg-boost__icon { font-size: 24px; }
    .dwg-boost { padding: 12px 6px 10px; }
}

.dwg-rank__pct {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--dwg-oranje);
}

/* ── v4.5: delen, near-miss, PRO badge ──────────────────────────── */
.dwg-nearmiss {
    width: 100%;
    padding: 10px 14px;
    margin-bottom: 12px;
    background: rgba(255,210,63,0.08);
    border: 1px solid rgba(255,210,63,0.25);
    border-radius: var(--dwg-radius-sm);
    font-size: 13px;
    color: #FFD23F;
    text-align: center;
}
.dwg-nearmiss strong { color: #FFD23F; }

.dwg-share-hint {
    font-size: 11px;
    color: var(--dwg-muted);
    text-align: center;
    margin: 0 0 14px;
    line-height: 1.4;
}
.dwg-share-hint strong { color: var(--dwg-oranje); }

.dwg-pro-badge {
    display: inline-block;
    padding: 1px 6px;
    margin-left: 4px;
    background: linear-gradient(135deg, #FFD23F, #FF9F1C);
    border-radius: 4px;
    font-size: 9px;
    font-weight: 900;
    color: #1A1A1A;
    letter-spacing: 0.06em;
    vertical-align: middle;
}

/* PRO Boots voorraad-paneel */
.dwg-pro-panel {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 14px;
    background: linear-gradient(135deg, rgba(255,210,63,0.07), rgba(255,108,0,0.05));
    border: 1px solid rgba(255,210,63,0.25);
    border-radius: var(--dwg-radius);
}
.dwg-pro-panel__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.dwg-pro-panel__info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: left;
}
.dwg-pro-panel__info strong {
    font-size: 13px;
    font-weight: 800;
    color: var(--dwg-white);
}
.dwg-pro-panel__inv {
    font-size: 14px;
    letter-spacing: 2px;
    color: #FFD23F;
}
.dwg-pro-panel__hint {
    display: block;
    margin-top: 8px;
    font-size: 11px;
    color: var(--dwg-muted);
    text-align: left;
    line-height: 1.4;
}
.dwg-pro-panel__hint strong { color: var(--dwg-oranje); }
.dwg-pro-panel .dwg-btn--sm { flex-shrink: 0; white-space: nowrap; }

/* ── v4.6: intro 2-koloms + deel-kaart ──────────────────────────── */
#dwg-intro { max-width: 460px; margin: 0 auto; }

.dwg-intro__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
}
.dwg-intro__side {
    display: flex;
    flex-direction: column;
}

@media (min-width: 900px) {
    #dwg-intro { max-width: 960px !important; }
    .dwg-intro__grid {
        grid-template-columns: 1.05fr 1fr;
        gap: 32px;
        align-items: start;
    }
    .dwg-intro__steps { margin-bottom: 0; }
}

.dwg-share-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 14px;
    background: var(--dwg-surface);
    border: 1px solid var(--dwg-border-hi);
    border-radius: var(--dwg-radius);
    text-align: left;
}
.dwg-share-card strong:first-child {
    font-size: 14px;
    font-weight: 800;
    color: var(--dwg-white);
}
.dwg-share-card > span {
    font-size: 12px;
    color: var(--dwg-muted-light);
    line-height: 1.45;
}
.dwg-share-card em {
    font-style: normal;
    font-weight: 700;
    color: var(--dwg-oranje);
}
.dwg-share-card .dwg-btn { margin-top: 4px; }

/* ── v4.6.1: game over opgeruimd ────────────────────────────────── */
.dwg-scorecard--go { padding-bottom: 14px; }
.dwg-scorecard__rank {
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.07);
    font-family: var(--dwg-font-mono);
    font-size: 13px;
    font-weight: 700;
    color: var(--dwg-oranje);
    width: 100%;
}
.dwg-scorecard__rank .dwg-rank__pct {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--dwg-muted-light);
}

/* Near-miss: subtiele regel i.p.v. grote banner */
.dwg-nearmiss-line {
    width: 100%;
    font-size: 12.5px;
    color: #FFD23F;
    margin: 2px 0 12px;
    text-align: center;
}
.dwg-nearmiss-line strong { color: #FFD23F; }

/* ── v4.7: boost-gating + mobiele volgorde ──────────────────────── */
.dwg-boost-note {
    font-size: 11px;
    color: var(--dwg-muted);
    margin: -6px 0 14px;
    line-height: 1.4;
    text-align: left;
}
.dwg-boost-note strong { color: var(--dwg-white-dim); }

/* Mobiel: boost-keuze + startknop BOVEN de spelregels (niets onder de vouw) */
@media (max-width: 899px) {
    .dwg-intro__grid { display: flex; flex-direction: column; }
    .dwg-intro__side { order: 1; }
    .dwg-intro__steps { order: 2; }

    /* Binnen de side-kolom: boosts → start → PRO → delen */
    .dwg-intro__side { display: flex; flex-direction: column; }
    .dwg-intro__side > h3 { order: 1; }
    .dwg-intro__side > .dwg-boosts { order: 2; }
    .dwg-intro__side > .dwg-boost-note { order: 3; }
    .dwg-intro__side > #dwg-btn-start-game { order: 4; margin-bottom: 16px; }
    .dwg-intro__side > .dwg-pro-panel { order: 5; }
    .dwg-intro__side > .dwg-share-card { order: 6; margin-bottom: 0; }
}

/* Deel-modal: tekst + link kopieerbaar */
.dwg-share-box { max-width: 400px !important; }
.dwg-share-text {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--dwg-border);
    border-radius: var(--dwg-radius-sm);
    font-size: 13px;
    line-height: 1.55;
    color: var(--dwg-white-dim);
    text-align: left;
    white-space: pre-wrap;
    word-break: break-word;
    user-select: all;
    -webkit-user-select: all;
    cursor: text;
}

/* ── v4.8: WK-kortingscode modal ────────────────────────────────── */
.dwg-coupon-box {
    max-width: 360px !important;
    border-color: rgba(255,108,0,0.35) !important;
    box-shadow: var(--dwg-shadow-lg), 0 0 40px rgba(255,108,0,0.2) !important;
}
.dwg-coupon-burst { font-size: 44px; line-height: 1; }
.dwg-coupon-code {
    width: 100%;
    padding: 16px;
    background: var(--dwg-oranje-soft);
    border: 2px dashed var(--dwg-oranje);
    border-radius: var(--dwg-radius);
    font-family: var(--dwg-font-mono);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--dwg-oranje);
    text-align: center;
    user-select: all;
    -webkit-user-select: all;
}
.dwg-coupon-box .dwg-btn--silver { text-decoration: none; }

/* Gamertag: generator + shuffle */
.dwg-tag-row { display: flex; gap: 8px; align-items: center; }
.dwg-tag-row input { flex: 1; min-width: 0; margin: 0 !important; }
.dwg-tag-shuffle {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    background: var(--dwg-surface);
    border: 1.5px solid var(--dwg-border);
    border-radius: var(--dwg-radius-sm);
    font-size: 19px;
    cursor: pointer;
    transition: all var(--dwg-transition);
    -webkit-tap-highlight-color: transparent;
}
.dwg-tag-shuffle:hover { border-color: var(--dwg-oranje); transform: rotate(-12deg); }
.dwg-tag-shuffle:active { transform: rotate(12deg) scale(0.94); }
