/*
 * ArshTall - Arcade Design System
 *
 * One file. Replaces variables.css / style.css / dashboard.css for the rebrand.
 * Mirrors arshtall.no landing palette:
 *   bg #120a2e  card #241456  card2 #2e1a6b
 *   pink #ff3db0  purple #9d4dff  blue #27e1ff  green #3dff9a  yellow #ffd43d  orange #ff7a2f
 * Fonts: Luckiest Guy (headings), Press Start 2P (accents), Fredoka (body).
 *
 * Kid-readability rules baked in:
 *   - 16px minimum text size (no iOS zoom)
 *   - Big touch targets (min 48px on buttons, 56px on game choices)
 *   - High contrast text (--ink, --muted)
 *   - Press Start 2P used ONLY for tiny accents/badges, never long text
 */

:root {
    /* Backgrounds */
    --bg:        #120a2e;
    --bg2:       #1b1147;
    --card:      #241456;
    --card2:     #2e1a6b;
    --card3:     #3a157a;
    --input-bg:  #1a103f;

    /* Neons */
    --neon-pink:   #ff3db0;
    --neon-purple: #9d4dff;
    --neon-blue:   #27e1ff;
    --neon-green:  #3dff9a;
    --neon-yellow: #ffd43d;
    --neon-orange: #ff7a2f;
    --neon-red:    #ff6b6b;

    /* Text */
    --ink:    #f4eeff;
    --muted:  #b8a9ee;
    --dim:    #8a7dc4;
    --on-light:#120a2e;

    /* Layout */
    --radius-sm:  10px;
    --radius-md:  16px;
    --radius-lg:  22px;
    --radius-xl:  28px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --bottom-nav-h: 68px;

    /* Backwards-compat aliases so old code that uses --color-primary still works */
    --color-primary:   var(--neon-purple);
    --color-secondary: var(--neon-blue);
    --color-success:   var(--neon-green);
    --color-warning:   var(--neon-yellow);
    --color-error:     var(--neon-red);
    --bg-primary:      var(--bg);
    --bg-secondary:    var(--card);
    --bg-accent:       var(--card2);
    --text-primary:    var(--ink);
    --text-secondary:  var(--muted);
    --text-light:      var(--ink);
    --gradient-button: linear-gradient(180deg, var(--neon-green), #1fce7a);
    --gradient-header: linear-gradient(180deg, var(--bg2), var(--bg));
    --gradient-card:   linear-gradient(180deg, var(--card2), var(--card));
    --shadow-card:     0 8px 0 rgba(0,0,0,0.28);
    --shadow-button:   0 6px 0 #119457, 0 0 26px rgba(61,255,154,.6);
    --shadow-hover:    0 9px 0 #119457, 0 0 34px rgba(61,255,154,.8);
    --font-heading:    'Luckiest Guy', 'Fredoka', cursive;
    --font-body:       'Fredoka', system-ui, sans-serif;
    --font-numbers:    'Press Start 2P', monospace;
    --font-pixel:      'Press Start 2P', monospace;
    --radius-small:    var(--radius-sm);
    --radius-medium:   var(--radius-md);
    --radius-large:    var(--radius-lg);
    --spacing-xs: 6px;  --spacing-sm: 10px;  --spacing-md: 18px;  --spacing-lg: 28px;  --spacing-xl: 44px;
    --transition-fast:   0.15s ease;
    --transition-normal: 0.25s ease;
}

/* ─────────── Base ─────────── */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(157,77,255,.42), transparent 60%),
        radial-gradient(900px 500px at 10% 10%, rgba(39,225,255,.28), transparent 55%),
        radial-gradient(800px 600px at 50% 110%, rgba(255,61,176,.32), transparent 60%),
        var(--bg);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
.arcade  { font-family: 'Luckiest Guy', cursive; letter-spacing: 1px; }
.pixel   { font-family: 'Press Start 2P', monospace; }

h1, h2, h3, h4 { font-family: var(--font-heading); margin: 0; letter-spacing: 1px; line-height: 1.1; }
h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
h2 { font-size: clamp(1.3rem, 4vw, 1.7rem); }
h3 { font-size: clamp(1.1rem, 3.5vw, 1.3rem); }
p  { line-height: 1.5; }
a  { color: var(--neon-blue); text-decoration: none; }
a:hover { color: var(--neon-green); }
small { color: var(--muted); }

/* ─────────── Animated background ─────────── */
.grid-floor {
    position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; opacity: .35;
}
.grid-floor::after {
    content: ""; position: absolute; left: -50%; right: -50%; bottom: -10%; height: 60%;
    background-image:
        linear-gradient(rgba(39,225,255,.25) 2px, transparent 2px),
        linear-gradient(90deg, rgba(39,225,255,.25) 2px, transparent 2px);
    background-size: 48px 48px;
    transform: perspective(420px) rotateX(62deg); transform-origin: bottom;
    animation: gridscroll 6s linear infinite;
    -webkit-mask-image: linear-gradient(to top, #000, transparent);
            mask-image: linear-gradient(to top, #000, transparent);
}
@keyframes gridscroll { 0% { background-position: 0 0; } 100% { background-position: 0 48px; } }

.floaties { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.floaties span {
    position: absolute; font-size: 1.7rem;
    filter: drop-shadow(0 0 8px rgba(255,255,255,.4));
    animation: bobf 7s ease-in-out infinite;
}
@keyframes bobf {
    0%,100% { transform: translateY(0) rotate(-6deg); }
    50%     { transform: translateY(-22px) rotate(8deg); }
}

/* App pages opt out of background animations on perf-sensitive surfaces */
body.no-bg-fx .grid-floor,
body.no-bg-fx .floaties { display: none; }

/* ─────────── Wrap container ─────────── */
.arc-wrap {
    position: relative; z-index: 2;
    max-width: 780px; margin: 0 auto;
    padding: 16px 14px 80px;
}
body.has-bottom-nav .arc-wrap {
    padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 16px);
}

/* ─────────── Cards ─────────── */
.arc-card {
    background: linear-gradient(180deg, var(--card2), var(--card));
    border: 2px solid rgba(255,255,255,.10);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: 0 8px 0 rgba(0,0,0,0.28);
    color: var(--ink);
}
.arc-card.neon-pink   { border-color: rgba(255,61,176,.55); }
.arc-card.neon-blue   { border-color: rgba(39,225,255,.55); box-shadow: 0 8px 0 rgba(0,0,0,0.28), 0 0 28px rgba(39,225,255,.18); }
.arc-card.neon-green  { border-color: rgba(61,255,154,.55); }
.arc-card.neon-yellow { border-color: rgba(255,212,61,.55); }
.arc-card.neon-purple { border-color: rgba(157,77,255,.55); box-shadow: 0 8px 0 rgba(0,0,0,0.28), 0 0 28px rgba(157,77,255,.22); }

/* ─────────── Buttons ─────────── */
.arc-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: 'Luckiest Guy', cursive; letter-spacing: 1px;
    font-size: 1.1rem; color: var(--on-light); cursor: pointer; text-decoration: none;
    background: linear-gradient(180deg, var(--neon-green), #1fce7a);
    padding: 14px 24px; border-radius: 14px; border: 0;
    box-shadow: 0 6px 0 #119457, 0 0 26px rgba(61,255,154,.6);
    transition: transform .12s ease, box-shadow .12s ease;
    min-height: 50px;
}
.arc-btn:hover  { transform: translateY(-3px); box-shadow: 0 9px 0 #119457, 0 0 34px rgba(61,255,154,.8); }
.arc-btn:active { transform: translateY(3px);  box-shadow: 0 2px 0 #119457; }
.arc-btn:disabled, .arc-btn[disabled] { opacity: .55; cursor: not-allowed; transform: none !important; }

.arc-btn.pink   { background: linear-gradient(180deg, var(--neon-pink), #c81f87);   box-shadow: 0 6px 0 #8a1660, 0 0 26px rgba(255,61,176,.55); }
.arc-btn.pink:hover  { box-shadow: 0 9px 0 #8a1660, 0 0 34px rgba(255,61,176,.75); }
.arc-btn.pink:active { box-shadow: 0 2px 0 #8a1660; }

.arc-btn.blue   { background: linear-gradient(180deg, var(--neon-blue), #15a5c2);   box-shadow: 0 6px 0 #0a6f8a, 0 0 26px rgba(39,225,255,.55); color: var(--on-light); }
.arc-btn.blue:hover  { box-shadow: 0 9px 0 #0a6f8a, 0 0 34px rgba(39,225,255,.75); }
.arc-btn.blue:active { box-shadow: 0 2px 0 #0a6f8a; }

.arc-btn.yellow { background: linear-gradient(180deg, var(--neon-yellow), var(--neon-orange)); box-shadow: 0 6px 0 #b85600, 0 0 22px rgba(255,212,61,.5); }
.arc-btn.yellow:hover  { box-shadow: 0 9px 0 #b85600, 0 0 30px rgba(255,212,61,.75); }
.arc-btn.yellow:active { box-shadow: 0 2px 0 #b85600; }

.arc-btn.ghost {
    background: rgba(255,255,255,.06); color: var(--ink);
    border: 2px solid rgba(255,255,255,.18);
    box-shadow: none;
}
.arc-btn.ghost:hover  { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.arc-btn.ghost:active { transform: translateY(1px); }

.arc-btn.small  { padding: 10px 16px; font-size: 0.95rem; min-height: 42px; }
.arc-btn.block  { width: 100%; }

/* Back link */
.arc-back {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--neon-blue); font-weight: 600; text-decoration: none; margin-bottom: 12px;
    padding: 6px 8px; margin-left: -8px; min-height: 36px;
}
.arc-back:hover { color: var(--neon-green); }

/* ─────────── Inputs ─────────── */
input[type=text], input[type=email], input[type=password], input[type=number], select, textarea {
    width: 100%;
    background: var(--input-bg); color: var(--ink);
    border: 2px solid rgba(255,255,255,.14);
    border-radius: 12px; padding: 12px 14px;
    font-size: 16px; /* prevents iOS zoom */
    font-family: var(--font-body); font-weight: 500;
    outline: none; transition: border-color .15s ease, box-shadow .15s ease;
}
input::placeholder, textarea::placeholder { color: var(--dim); }
input:focus, select:focus, textarea:focus {
    border-color: var(--neon-green);
    box-shadow: 0 0 0 3px rgba(61,255,154,.22);
}
label { display: block; font-weight: 700; margin: 14px 0 6px; color: var(--ink); }
label small { color: var(--muted); font-weight: 500; margin-left: 6px; }
.arc-form .row { display: flex; gap: 10px; flex-wrap: wrap; }
.arc-form .row > * { flex: 1; min-width: 140px; }
.arc-form .field-error { color: #ff8a8a; font-size: 0.88rem; margin-top: 4px; }

/* Pin boxes (4-digit grid) */
.pin-row { display: flex; gap: 10px; justify-content: center; margin: 10px 0; }
.pin-row input {
    width: 56px; height: 64px; padding: 0; text-align: center;
    font-family: 'Press Start 2P', monospace; font-size: 1.4rem;
    background: var(--input-bg); color: var(--neon-blue);
    border: 2px solid rgba(39,225,255,.4); border-radius: 12px;
}
.pin-row input:focus {
    border-color: var(--neon-green);
    box-shadow: 0 0 14px rgba(61,255,154,.45);
    color: var(--neon-green);
}

/* OTP big input */
.otp-input {
    font-family: 'Press Start 2P', monospace !important;
    font-size: 1.8rem !important;
    text-align: center !important;
    letter-spacing: 10px !important;
    color: var(--neon-blue) !important;
    padding: 16px !important;
}

/* ─────────── Flashes ─────────── */
.arc-flash {
    padding: 12px 16px; border-radius: 12px; margin-bottom: 14px;
    font-weight: 600;
}
.arc-flash.ok    { background: rgba(61,255,154,.12); color: var(--neon-green);  border-left: 4px solid var(--neon-green); }
.arc-flash.err   { background: rgba(255,107,107,.12); color: var(--neon-red);   border-left: 4px solid var(--neon-red); }
.arc-flash.warn  { background: rgba(255,212,61,.12); color: var(--neon-yellow); border-left: 4px solid var(--neon-yellow); }
.arc-flash.info  { background: rgba(39,225,255,.12); color: var(--neon-blue);   border-left: 4px solid var(--neon-blue); }

/* ─────────── HUD strip ─────────── */
.hud {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    background: linear-gradient(180deg, var(--card2), var(--card));
    border: 2px solid rgba(39,225,255,.35); border-radius: 18px;
    padding: 10px 14px;
    box-shadow: 0 0 22px rgba(39,225,255,.25), inset 0 0 18px rgba(157,77,255,.25);
    margin-bottom: 14px;
}
.hud .coin {
    font-family: 'Luckiest Guy', cursive; font-size: 1.05rem; color: var(--neon-yellow);
    text-shadow: 0 0 10px rgba(255,212,61,.7);
    display: inline-flex; align-items: center; gap: 6px;
}
.hud .lvl { font-size: .85rem; color: var(--muted); font-weight: 700; }
.hud .xpbar {
    flex: 1; height: 14px; border-radius: 999px; background: var(--input-bg);
    border: 2px solid rgba(255,255,255,.12); overflow: hidden; position: relative; margin: 0 6px;
}
.hud .xpbar i {
    position: absolute; inset: 0; border-radius: 999px;
    background: linear-gradient(90deg, var(--neon-green), var(--neon-blue));
    box-shadow: 0 0 12px var(--neon-green);
}

/* ─────────── Pixel tag (small chip) ─────────── */
.pixel-tag {
    display: inline-block; font-family: 'Press Start 2P', monospace;
    font-size: .58rem; letter-spacing: 1px;
    color: var(--on-light); background: linear-gradient(90deg, var(--neon-yellow), var(--neon-orange));
    padding: 6px 10px; border-radius: 8px; box-shadow: 0 3px 0 #b85600;
}
.pixel-tag.pink { background: var(--neon-pink); box-shadow: 0 3px 0 #8a1660; }
.pixel-tag.blue { background: var(--neon-blue); box-shadow: 0 3px 0 #0a6f8a; }
.pixel-tag.green{ background: var(--neon-green); box-shadow: 0 3px 0 #119457; }

/* ─────────── Tile grid (used in game hub, friend cards etc) ─────────── */
.tile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 640px) { .tile-grid { grid-template-columns: 1fr 1fr 1fr; } }
.tile {
    position: relative;
    background: linear-gradient(180deg, var(--card2), var(--card));
    border: 2px solid rgba(255,255,255,.10);
    border-radius: 18px; padding: 14px;
    color: var(--ink); text-decoration: none; display: block;
    box-shadow: 0 6px 0 rgba(0,0,0,0.3);
    transition: transform .12s ease;
    min-height: 96px;
}
.tile:hover { transform: translateY(-3px); }
.tile:active { transform: translateY(2px); }
.tile .ic { font-size: 2.2rem; display: block; line-height: 1; margin-bottom: 6px;
    filter: drop-shadow(0 0 8px rgba(255,255,255,.3)); }
.tile h3 { font-family: 'Luckiest Guy', cursive; font-size: 1.05rem; margin: 4px 0; }
.tile p  { color: var(--muted); font-size: 0.85rem; margin: 0; }
.tile.locked { opacity: .55; cursor: not-allowed; }
.tile.locked::after {
    content: '🔒'; position: absolute; top: 10px; right: 10px;
    background: rgba(0,0,0,.4); border-radius: 50%; padding: 6px 8px;
    font-size: 0.9rem;
}
.tile.pink   { border-color: rgba(255,61,176,.55); }
.tile.blue   { border-color: rgba(39,225,255,.55); }
.tile.green  { border-color: rgba(61,255,154,.55); }
.tile.yellow { border-color: rgba(255,212,61,.55); }
.tile.purple { border-color: rgba(157,77,255,.55); }
.tile.orange { border-color: rgba(255,122,47,.55); }

/* ─────────── Bottom nav (re-skin) ─────────── */
.bottom-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
    background: linear-gradient(0deg, var(--bg), rgba(36,20,86,.94));
    border-top: 2px solid rgba(157,77,255,.45);
    box-shadow: 0 -6px 28px rgba(157,77,255,.25);
    padding-bottom: var(--safe-bottom);
    display: none;
}
.bottom-nav-inner { display: flex; align-items: stretch; justify-content: space-around; height: var(--bottom-nav-h); }
.bottom-nav-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; text-decoration: none; color: var(--muted);
    font-family: 'Fredoka', sans-serif; font-size: .72rem; font-weight: 700;
    padding: 6px 4px; position: relative;
    transition: color .15s ease;
}
.bottom-nav-item .nav-icon { font-size: 1.5rem; line-height: 1; filter: grayscale(.2) brightness(.85); }
.bottom-nav-item.active { color: var(--neon-green); }
.bottom-nav-item.active .nav-icon { filter: none; text-shadow: 0 0 10px rgba(61,255,154,.7); }
.bottom-nav-item.active::after {
    content: ''; position: absolute; top: 0; left: 28%; right: 28%; height: 3px;
    background: linear-gradient(90deg, var(--neon-green), var(--neon-blue));
    border-radius: 0 0 4px 4px;
    box-shadow: 0 0 10px var(--neon-green);
}
.bottom-nav-badge {
    position: absolute; top: 4px; right: calc(50% - 22px);
    background: var(--neon-pink); color: #fff;
    font-size: 0.62rem; font-weight: 700;
    border-radius: 999px; padding: 2px 6px; min-width: 18px; text-align: center; line-height: 1;
    box-shadow: 0 0 10px rgba(255,61,176,.7);
}
@media (max-width: 767px) { .bottom-nav { display: block; } }
@media (min-width: 768px) { body.has-bottom-nav .arc-wrap { padding-bottom: 24px; } }

/* ─────────── Logo wordmark (ARSHTALL gradient) ─────────── */
.logo-wordmark {
    font-family: 'Luckiest Guy', cursive; line-height: .95;
    background: linear-gradient(180deg, #fff, var(--neon-pink) 60%, var(--neon-purple));
    -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 0 18px rgba(255,61,176,.55));
    letter-spacing: 1px;
}

/* ─────────── ArshTall Logo Component ─────────── */
.atl-link { text-decoration: none; display: inline-flex; }
.atl {
    --atl-size: 44px;
    display: inline-flex; align-items: center; gap: 10px;
    line-height: 1; user-select: none;
}
.atl.atl-stacked { flex-direction: column; gap: 6px; }
.atl-mark {
    width:  calc(var(--atl-size) * 0.83);
    height: var(--atl-size);
    display: block;
    flex-shrink: 0;
    filter: drop-shadow(0 0 10px rgba(255,61,176,.35));
}
.atl-mark-only .atl-mark { width: var(--atl-size); height: calc(var(--atl-size) * 1.2); }
.atl-wordmark {
    font-family: 'Luckiest Guy', cursive;
    font-size: calc(var(--atl-size) * 0.66);
    letter-spacing: 1px;
    background: linear-gradient(180deg, #fff, var(--neon-pink) 60%, var(--neon-purple));
    -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 0 12px rgba(255,61,176,.5));
    line-height: 0.95;
}
.atl-stacked .atl-wordmark { font-size: calc(var(--atl-size) * 0.55); }

/* Hover pulse on link variant */
.atl-link:hover .atl-mark { transform: scale(1.05); transition: transform 0.2s ease; }
.atl-link:hover .atl-wordmark { filter: drop-shadow(0 0 16px rgba(255,61,176,.8)); }

/* Existing oversize hero in landing — overridden so the big version still feels right */
.land-logo, .logo-img-header, .logo-img-small, .logo-img {
    display: none !important; /* hide legacy image-based logos that may still linger */
}
.land-hero .atl { margin: 8px auto 4px; justify-content: center; }
.land-hero .atl-wordmark { font-size: clamp(2.4rem, 13vw, 5rem); }
.land-hero .atl-mark { width: clamp(70px, 18vw, 110px); height: auto; }


/* ─────────── Modal overlay ─────────── */
.arc-modal-backdrop {
    position: fixed; inset: 0; background: rgba(10,5,30,.78);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    display: none; align-items: flex-start; justify-content: center;
    z-index: 2500; padding: 20px 14px; overflow-y: auto;
}
.arc-modal-backdrop.open { display: flex; animation: modalFadeIn .25s ease; }
@keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }

.arc-modal {
    background: linear-gradient(180deg, var(--card2), var(--card));
    border: 3px solid rgba(157,77,255,.55);
    border-radius: var(--radius-xl);
    box-shadow: 0 0 40px rgba(157,77,255,.45), inset 0 0 30px rgba(39,225,255,.12);
    max-width: 460px; width: 100%; margin: 24px auto;
    padding: 26px 22px;
    color: var(--ink); position: relative;
    animation: modalPop .35s cubic-bezier(.34,1.56,.64,1);
}
@keyframes modalPop { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.arc-modal h2 { text-align: center; color: var(--neon-blue); text-shadow: 0 0 14px rgba(39,225,255,.6); margin-bottom: 4px; }
.arc-modal .modal-subtitle { text-align: center; color: var(--muted); margin: 0 0 16px; font-size: .95rem; }
.arc-modal-close {
    position: absolute; top: 10px; right: 12px;
    background: rgba(255,255,255,.1); color: var(--ink);
    border: 0; border-radius: 50%; width: 36px; height: 36px;
    font-size: 1.2rem; cursor: pointer; font-family: inherit;
    display: flex; align-items: center; justify-content: center;
}
.arc-modal-close:hover { background: var(--neon-pink); color: #fff; }
.modal-alt {
    text-align: center; margin-top: 14px; color: var(--muted); font-size: .92rem;
}
.modal-alt a, .modal-alt button.link {
    color: var(--neon-green); font-weight: 700; cursor: pointer;
    background: transparent; border: 0; padding: 0; font-family: inherit; font-size: inherit;
}
.modal-alt button.link:hover { color: var(--neon-yellow); text-decoration: underline; }

/* Step indicator dots */
.step-dots { display: flex; justify-content: center; gap: 8px; margin-bottom: 14px; }
.step-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.18); transition: all .2s ease; }
.step-dot.active { background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple)); transform: scale(1.4); box-shadow: 0 0 8px rgba(255,61,176,.7); }

/* Username suggestion chips */
.suggestion-chips { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.suggestion-chip {
    background: rgba(39,225,255,.12); color: var(--neon-blue);
    border: 2px solid rgba(39,225,255,.4); border-radius: 999px;
    padding: 4px 12px; font-family: inherit; font-size: .85rem; cursor: pointer;
}
.suggestion-chip:hover { background: rgba(39,225,255,.22); }

/* Dev banner (visible only in localhost mode) */
.dev-note {
    background: linear-gradient(90deg, var(--neon-yellow), var(--neon-orange));
    color: var(--on-light); padding: 10px 14px; border-radius: 10px;
    font-family: 'Press Start 2P', monospace; font-size: .65rem;
    margin: 10px 0; text-align: center;
}

/* ─────────── Spinner ─────────── */
.arc-spinner {
    display: inline-block; width: 18px; height: 18px;
    border: 3px solid rgba(255,255,255,.2); border-top-color: var(--neon-green);
    border-radius: 50%; animation: spin 0.8s linear infinite;
    vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─────────── Tables (admin) ─────────── */
table { width: 100%; border-collapse: collapse; color: var(--ink); }
table th, table td {
    padding: 10px 12px; text-align: left;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
table th {
    background: var(--card); color: var(--neon-blue);
    font-family: 'Luckiest Guy', cursive; letter-spacing: 1px;
    border-bottom: 2px solid rgba(39,225,255,.3);
    font-weight: 400;
}
table tbody tr { background: rgba(36,20,86,.4); }
table tbody tr:hover { background: rgba(157,77,255,.15); }
.tier-badge {
    display: inline-block; padding: 4px 10px; border-radius: 999px;
    font-size: .72rem; font-weight: 700; font-family: 'Press Start 2P', monospace; letter-spacing: 1px;
}
.tier-badge.beginner     { background: rgba(61,255,154,.18); color: var(--neon-green); border: 1px solid rgba(61,255,154,.4); }
.tier-badge.intermediate { background: rgba(39,225,255,.18); color: var(--neon-blue);  border: 1px solid rgba(39,225,255,.4); }
.tier-badge.advanced     { background: rgba(255,61,176,.18); color: var(--neon-pink);  border: 1px solid rgba(255,61,176,.4); }

/* ─────────── Confetti container reusable ─────────── */
.eg-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 9000; overflow: hidden; }
.eg-confetti span { position: absolute; left: 50%; top: 30%; font-size: 1.8rem; animation: confettiFly 1s ease forwards; }
@keyframes confettiFly { to { transform: translate(var(--dx,0), var(--dy,200px)) rotate(var(--r,360deg)); opacity: 0; } }

/* ─────────── Accessibility ─────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .grid-floor, .floaties { display: none; }
}
