/* ═══════════════════════════════════════════════════════════════════
   WOWS – Wolf of Wall Street  |  Premium Dark Theme Stylesheet
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Design Tokens ───────────────────────────────────────────────── */
:root {
    /* Backgrounds */
    --bg-primary:   #0a0e27;
    --bg-secondary: #12162e;
    --bg-card:      rgba(18, 22, 46, 0.85);
    --bg-card-solid:#12162e;
    --bg-surface:   rgba(18, 22, 46, 0.6);

    /* Accent colours */
    --gold:         #d4af37;
    --gold-light:   #f5d76e;
    --gold-dark:    #b8942e;
    --green:        #00e676;
    --green-dark:   #00c853;
    --red:          #ff1744;
    --red-dark:     #d50000;
    --blue:         #448aff;
    --blue-dark:    #2979ff;

    /* Text */
    --text-primary:   #e0e0e0;
    --text-secondary: #9e9e9e;
    --text-muted:     #616161;

    /* Borders */
    --border:       rgba(212, 175, 55, 0.2);
    --border-light: rgba(255, 255, 255, 0.06);

    /* Radii */
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --radius-xs: 4px;

    /* Glassmorphism */
    --glass-blur: blur(16px);
    --glass-bg:   rgba(10, 14, 39, 0.78);
    --glass-border: rgba(212, 175, 55, 0.12);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 24px rgba(0,0,0,0.45);
    --shadow-lg: 0 8px 48px rgba(0,0,0,0.6);
    --shadow-gold: 0 0 24px rgba(212,175,55,0.15);

    /* Transitions */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);

    /* Z-layers */
    --z-hud:         250;
    --z-modal:       200;
    --z-notification:300;
    --z-raid:        400;
    --z-leaderboard: 260;
}

/* ─── Global Reset ────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    outline: none;
    background: none;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

/* Utility */
.hidden {
    display: none !important;
}

/* ═════════════════════════════════════════════════════════════════════
   1. LANDING PAGE
   ═════════════════════════════════════════════════════════════════════ */
#landing {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.landing-content-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1.5rem;
}

@media (min-width: 768px) {
    .landing-content-wrapper { padding: 1.5rem 3rem; }
}

@media (min-width: 1024px) {
    .landing-content-wrapper { padding: 1.5rem 4rem; }
}

/* Liquid Glass (Global) */
.liquid-glass {
    background: rgba(0, 0, 0, 0.4);
    background-blend-mode: luminosity;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: none;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.liquid-glass::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.4px;
    background: linear-gradient(180deg,
        rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.1) 20%,
        rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%,
        rgba(255,255,255,0.1) 80%, rgba(255,255,255,0.3) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Navbar */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
}

.nav-left {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: #fff;
}

.nav-center {
    display: none;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-center { display: flex; }
}

.nav-center a {
    color: #fff;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.nav-center a:hover {
    color: #d1d5db; /* gray-300 */
}

.nav-btn {
    background: #fff;
    color: #000;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.2s;
}

.nav-btn:hover {
    background: #f3f4f6; /* gray-100 */
}

/* Hero Content */
.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 3rem;
}

@media (min-width: 1024px) {
    .hero-content {
        flex-direction: row;
        align-items: flex-end;
        padding-bottom: 4rem;
    }
}

.hero-left {
    flex: 1;
}

.hero-right {
    display: flex;
    justify-content: flex-start;
    margin-top: 2rem;
}

@media (min-width: 1024px) {
    .hero-right {
        justify-content: flex-end;
        margin-top: 0;
    }
}

.hero-heading {
    font-size: clamp(2.25rem, 5vw, 4.5rem);
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: #fff;
    white-space: pre-wrap;
}

.hero-heading span {
    display: inline-block;
    opacity: 0;
    transform: translateX(-18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-heading span.visible {
    opacity: 1;
    transform: translateX(0);
}

.hero-subheading {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: #d1d5db; /* gray-300 */
    margin-bottom: 1.25rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-primary {
    background: #fff;
    color: #000;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 500;
}

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: background 0.3s, color 0.3s;
}

.btn-secondary:hover {
    background: #fff;
    color: #000;
}

.tag-card {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    font-weight: 300;
    color: #fff;
}

/* Animations */
.fade-in-800, .fade-in-1200, .fade-in-1400 {
    opacity: 0;
    transition: opacity 1s ease;
}

.fade-in-800.visible, .fade-in-1200.visible, .fade-in-1400.visible {
    opacity: 1;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

/* ── Video Wrapper ── */
.demo-video-wrapper {
    margin-top: 2rem;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.video-frame {
    position: relative;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 230, 118, 0.15), 0 0 0 1px rgba(255,255,255,0.05);
    background: var(--bg-surface);
    aspect-ratio: 16/9;
}

#demo-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-overlay-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.1);
}

.pulse-btn {
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(0, 230, 118, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}

/* ═════════════════════════════════════════════════════════════════════
   2. GAME CONTAINER
   ═════════════════════════════════════════════════════════════════════ */
#game-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: var(--bg-main);
    z-index: 200;
}

#game-canvas {
    display: block;
    width: 100%;
    height: 100%;
    /* Keep crisp pixels if we scale */
    image-rendering: pixelated;
    background-image: url('../assets/floor_bg.png');
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* ═════════════════════════════════════════════════════════════════════
   3. HUD (top bar overlay)
   ═════════════════════════════════════════════════════════════════════ */
#hud {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-hud);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border);
    padding: 0.4rem 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 1.5rem;
}

.hud-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    width: 100%;
}

.hud-row:nth-child(2) {
    font-size: 0.78rem;
    gap: 1rem;
    padding-top: 0.15rem;
}

/* Individual resource items */
.hud-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.hud-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hud-value {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
}

/* Colour-coded resource values */
.hud-value.capital { color: var(--gold); }
.hud-value.leads   { color: var(--green); }
.hud-value.points  { color: var(--blue); }

.hud-token-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--gold-light);
    letter-spacing: 0.06em;
}

.hud-spacer {
    flex: 1;
}

/* ═════════════════════════════════════════════════════════════════════
   4. HEAT STARS
   ═════════════════════════════════════════════════════════════════════ */
.heat-stars {
    display: inline-flex;
    gap: 2px;
    font-size: 1rem;
}

.star {
    transition: transform 0.2s, color 0.2s;
}

.star.filled {
    color: var(--gold);
}

.star.partial {
    color: var(--gold);
}

.star.empty {
    color: #3a3a4a;
}

/* Danger pulsing when heat ≥ 4 stars */
.heat-danger .star.filled {
    color: var(--red);
    animation: pulse 0.8s ease-in-out infinite;
}

/* ═════════════════════════════════════════════════════════════════════
   5. STATION MODAL
   ═════════════════════════════════════════════════════════════════════ */
#station-modal, #info-modal {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease-out);
}

#station-modal.visible, #info-modal.visible {
    opacity: 1;
    pointer-events: auto;
}

.station-modal-card, .modal-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 2.25rem;
    max-width: 400px;
    width: 90vw;
    box-shadow: var(--shadow-lg);
    transform: translateY(24px);
    transition: transform 0.4s var(--ease-out);
    position: relative;
}

#station-modal.visible .station-modal-card,
#info-modal.visible .modal-card {
    transform: translateY(0);
}

#station-icon {
    font-size: 3rem;
    display: block;
    text-align: center;
    margin-bottom: 0.5rem;
}

#station-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 0.25rem;
}

#station-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

#station-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

/* Close button (top-right X) */
#station-close-btn,
.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--text-secondary);
    background: rgba(255,255,255,0.05);
    transition: background 0.2s, color 0.2s;
    border: none;
    cursor: pointer;
}

#station-close-btn:hover,
.modal-close:hover {
    background: rgba(255,255,255,0.12);
    color: var(--text-primary);
}

/* ═════════════════════════════════════════════════════════════════════
   6. ACTION BUTTONS
   ═════════════════════════════════════════════════════════════════════ */
.action-btn {
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.action-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.action-btn:active:not(:disabled) {
    transform: translateY(1px);
}

/* ═════════════════════════════════════════════════════════════════════
   7. HIRE BUTTONS
   ═════════════════════════════════════════════════════════════════════ */
.hire-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold);
    background: transparent;
    border: 1px solid var(--gold-dark);
    border-radius: var(--radius-sm);
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}

.hire-btn:hover:not(:disabled) {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--gold);
    transform: translateY(-1px);
}

.hire-btn:active:not(:disabled) {
    transform: translateY(1px);
}

.hire-cost {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

/* Worker info label */
.worker-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0 0;
    margin-top: 0.35rem;
    border-top: 1px solid var(--border-light);
    font-size: 0.8rem;
}

.worker-label {
    color: var(--text-secondary);
}

.worker-count {
    font-weight: 700;
    color: var(--text-primary);
}

/* ═════════════════════════════════════════════════════════════════════
   8. NOTIFICATIONS
   ═════════════════════════════════════════════════════════════════════ */
#notifications {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: var(--z-notification);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
    max-width: 340px;
}

.notification {
    padding: 0.6rem 1.1rem;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-light);
    border-left: 3px solid var(--green);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--green);
    box-shadow: var(--shadow-sm);
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.35s var(--ease-out), opacity 0.35s;
    pointer-events: auto;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

/* ═════════════════════════════════════════════════════════════════════
   9. RAID ALERT
   ═════════════════════════════════════════════════════════════════════ */
#raid-alert {
    position: fixed;
    inset: 0;
    z-index: var(--z-raid);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 23, 68, 0.12);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
}

#raid-alert.visible {
    opacity: 1;
    pointer-events: auto;
    animation: raidFlash 0.5s ease-in-out infinite alternate;
}

.raid-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    color: var(--red);
    text-shadow:
        0 0 40px rgba(255, 23, 68, 0.6),
        0 0 80px rgba(255, 23, 68, 0.3);
    letter-spacing: 0.1em;
    animation: pulse 0.6s ease-in-out infinite;
}

.raid-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 0.75rem;
}

/* ═════════════════════════════════════════════════════════════════════
   10. LEADERBOARD PANEL
   ═════════════════════════════════════════════════════════════════════ */
#leaderboard-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 380px;
    max-width: 90vw;
    z-index: var(--z-leaderboard);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-left: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.45s var(--ease-out);
}

#leaderboard-panel.visible {
    transform: translateX(0);
}

.lb-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid var(--border);
}

.lb-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--gold);
    text-transform: uppercase;
}

#leaderboard-close-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    background: rgba(255,255,255,0.05);
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
}

#leaderboard-close-btn:hover {
    background: rgba(255,255,255,0.12);
    color: var(--text-primary);
}

/* Scrollable list */
#leaderboard-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(212,175,55,0.2) transparent;
}

#leaderboard-list::-webkit-scrollbar {
    width: 5px;
}
#leaderboard-list::-webkit-scrollbar-track {
    background: transparent;
}
#leaderboard-list::-webkit-scrollbar-thumb {
    background: rgba(212,175,55,0.2);
    border-radius: 4px;
}

/* ═════════════════════════════════════════════════════════════════════
   11. LEADERBOARD ROWS
   ═════════════════════════════════════════════════════════════════════ */
.lb-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.25rem;
    font-size: 0.82rem;
    transition: background 0.2s;
}

.lb-row:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.lb-row:hover {
    background: rgba(255, 255, 255, 0.04);
}

.lb-rank {
    width: 36px;
    text-align: center;
    font-weight: 700;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.lb-name {
    flex: 1;
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lb-wallet {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.72rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.lb-points {
    font-weight: 700;
    color: var(--blue);
    flex-shrink: 0;
    min-width: 70px;
    text-align: right;
}

.lb-level {
    font-weight: 600;
    color: var(--text-secondary);
    flex-shrink: 0;
    min-width: 36px;
    text-align: right;
}

/* Top 3 rank highlights */
.lb-top-1 {
    border-left: 3px solid var(--gold);
    background: rgba(212, 175, 55, 0.06) !important;
}
.lb-top-1 .lb-rank { color: var(--gold); font-size: 1.1rem; }
.lb-top-1 .lb-name { color: var(--gold-light); }

.lb-top-2 {
    border-left: 3px solid #b0bec5;
    background: rgba(176, 190, 197, 0.04) !important;
}
.lb-top-2 .lb-rank { color: #cfd8dc; font-size: 1rem; }

.lb-top-3 {
    border-left: 3px solid #cd7f32;
    background: rgba(205, 127, 50, 0.04) !important;
}
.lb-top-3 .lb-rank { color: #cd7f32; font-size: 1rem; }

/* Current player highlight */
.lb-you {
    background: rgba(68, 138, 255, 0.08) !important;
    border-left: 3px solid var(--blue);
    position: relative;
}

.lb-you::after {
    content: 'YOU';
    position: absolute;
    right: 0.5rem;
    top: 80px;
    
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--blue);
    background: rgba(68, 138, 255, 0.12);
    padding: 0.15rem 0.4rem;
    border-radius: var(--radius-xs);
}

.lb-empty {
    padding: 2rem 1.25rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ═════════════════════════════════════════════════════════════════════
   12. TOKEN NAME MODAL
   ═════════════════════════════════════════════════════════════════════ */
#token-name-modal {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease-out);
}

#token-name-modal.visible {
    opacity: 1;
    pointer-events: auto;
}

.token-modal-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    max-width: 380px;
    width: 90vw;
    box-shadow: var(--shadow-lg);
    text-align: center;
    transform: translateY(24px) scale(0.97);
    transition: transform 0.4s var(--ease-out);
}

#token-name-modal.visible .token-modal-card {
    transform: translateY(0) scale(1);
}

.token-modal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.token-modal-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.token-input {
    width: 100%;
    padding: 0.7rem 1rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
    letter-spacing: 0.06em;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.token-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.token-input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.btn-token-submit {
    margin-top: 1.25rem;
    padding: 0.7rem 2rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0a0e27;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-token-submit:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 24px rgba(212, 175, 55, 0.45);
}

.btn-token-submit:active {
    transform: scale(0.98);
}

/* ═════════════════════════════════════════════════════════════════════
   13. UPGRADE BUTTON
   ═════════════════════════════════════════════════════════════════════ */
#hud-upgrade-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: #0a0e27;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.25);
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    white-space: nowrap;
}

#hud-upgrade-btn:hover:not(:disabled) {
    transform: scale(1.04);
    box-shadow: 0 4px 18px rgba(212, 175, 55, 0.4);
}

#hud-upgrade-btn:active:not(:disabled) {
    transform: scale(0.97);
}

#hud-upgrade-btn:disabled {
    background: linear-gradient(135deg, #555, #444);
    color: #999;
    box-shadow: none;
}

#hud-upgrade-cost {
    font-size: 0.72rem;
    opacity: 0.8;
}

.disconnect-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
    margin-left: 1rem;
}
.disconnect-btn:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
}

/* ── Online Count Pill ─────────────────────────────────────────── */
.hud-online-count {
    font-size: 0.7rem;
    color: #00e676;
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.3);
    border-radius: 12px;
    padding: 2px 10px;
    margin-right: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ═════════════════════════════════════════════════════════════════════
   CHAT PANEL
   ═════════════════════════════════════════════════════════════════════ */
.chat-panel {
    position: fixed;
    bottom: 60px;
    right: 16px;
    width: 300px;
    background: rgba(10, 14, 39, 0.92);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 12px;
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    z-index: 260;
    box-shadow: 0 4px 32px rgba(0,0,0,0.5);
    overflow: hidden;
    transition: height 0.2s ease;
}

.chat-panel.collapsed .chat-messages,
.chat-panel.collapsed .chat-input-row {
    display: none;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(212, 175, 55, 0.08);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold);
    user-select: none;
    cursor: pointer;
}

.chat-toggle {
    background: none;
    border: none;
    color: var(--gold);
    font-size: 1rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}

.chat-messages {
    flex: 1;
    height: 180px;
    overflow-y: auto;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(212,175,55,0.3) transparent;
}

.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(212,175,55,0.3); border-radius: 2px; }

.chat-msg {
    font-size: 0.75rem;
    line-height: 1.4;
    color: #e0e0e0;
    word-break: break-word;
}

.chat-msg .chat-author {
    color: var(--gold);
    font-weight: 700;
    margin-right: 4px;
}

.chat-msg.self .chat-author {
    color: #00e676;
}

.chat-msg.system {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.7rem;
}

.chat-input-row {
    display: flex;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.chat-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #e0e0e0;
    font-family: inherit;
    font-size: 0.8rem;
    padding: 8px 10px;
}

.chat-input::placeholder { color: var(--text-muted); }

.chat-send-btn {
    background: var(--gold);
    color: #000;
    border: none;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0 12px;
    cursor: pointer;
    transition: background 0.15s;
}
.chat-send-btn:hover { background: var(--gold-light); }

/* ═════════════════════════════════════════════════════════════════════
   LEADERBOARD TABS
   ═════════════════════════════════════════════════════════════════════ */
.lb-tabs { display:flex; gap:4px; margin-left:auto; margin-right:0.5rem; }
.lb-tab {
    background:transparent; border:1px solid rgba(212,175,55,0.3);
    color:var(--text-secondary); font-size:0.75rem; font-weight:600;
    padding:3px 10px; border-radius:6px; cursor:pointer; transition:all 0.15s;
}
.lb-tab.active { background:var(--gold); color:#000; border-color:var(--gold); }

/* ═════════════════════════════════════════════════════════════════════
   SOCIAL SIDEBAR
   ═════════════════════════════════════════════════════════════════════ */
.social-sidebar {
    position:fixed; left:12px; top:50%; transform:translateY(-50%);
    display:flex; flex-direction:column; gap:8px; z-index:270;
}
.social-sidebar-btn {
    width:44px; height:44px; border-radius:12px;
    background:rgba(10,14,39,0.88); border:1px solid rgba(212,175,55,0.3);
    font-size:1.3rem; cursor:pointer; backdrop-filter:blur(12px);
    transition:all 0.15s; display:flex; align-items:center; justify-content:center;
}
.social-sidebar-btn:hover { background:rgba(212,175,55,0.15); border-color:var(--gold); transform:scale(1.08); }

/* ═════════════════════════════════════════════════════════════════════
   FRIENDS PANEL
   ═════════════════════════════════════════════════════════════════════ */
.friends-panel {
    position:fixed; top:80px; left:66px; width:280px;
    max-height:calc(100vh - 100px); background:rgba(10,14,39,0.95);
    border:1px solid rgba(212,175,55,0.25); border-radius:14px;
    backdrop-filter:blur(20px); display:none; flex-direction:column;
    z-index:265; box-shadow:0 8px 40px rgba(0,0,0,0.6); overflow:hidden;
}
.friends-panel.visible { display:flex; }

.friends-header {
    display:flex; align-items:center; justify-content:space-between;
    padding:10px 14px; background:rgba(212,175,55,0.07);
    border-bottom:1px solid rgba(212,175,55,0.15);
    font-size:0.85rem; font-weight:700; color:var(--gold);
}

.friends-search-row { display:flex; gap:6px; padding:10px 12px 4px; }

.friends-input {
    flex:1; background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.1);
    border-radius:8px; color:#e0e0e0; font-family:inherit; font-size:0.78rem;
    padding:6px 10px; outline:none;
}
.friends-input:focus { border-color:rgba(212,175,55,0.5); }

.friends-action-btn {
    background:var(--gold); color:#000; border:none; border-radius:8px;
    font-size:0.78rem; font-weight:700; padding:6px 12px; cursor:pointer;
    transition:background 0.15s; white-space:nowrap;
}
.friends-action-btn:hover { background:var(--gold-light); }

.friends-label {
    font-size:0.68rem; font-weight:700; color:var(--text-muted);
    text-transform:uppercase; letter-spacing:0.06em;
    padding:8px 12px 2px; display:flex; align-items:center; gap:6px;
}

.friends-mini-btn {
    background:transparent; border:1px solid rgba(255,255,255,0.15);
    color:var(--text-muted); border-radius:6px; font-size:0.7rem;
    padding:2px 6px; cursor:pointer;
}
.friends-mini-btn:hover { border-color:var(--gold); color:var(--gold); }

.friends-section {
    padding:4px 12px 8px; overflow-y:auto; max-height:150px;
    scrollbar-width:thin; scrollbar-color:rgba(212,175,55,0.2) transparent;
}
.friends-empty { color:var(--text-muted); font-size:0.75rem; font-style:italic; padding:8px 12px; }

.friend-row {
    display:flex; align-items:center; gap:8px; padding:6px 0;
    border-bottom:1px solid rgba(255,255,255,0.04); font-size:0.78rem;
}
.friend-row:last-child { border-bottom:none; }
.friend-name { flex:1; color:#e0e0e0; font-weight:600; }
.friend-online { color:#00e676; font-size:0.65rem; }
.friend-offline { color:var(--text-muted); font-size:0.65rem; }
.friend-btn {
    background:transparent; border:1px solid rgba(212,175,55,0.3);
    color:var(--gold); border-radius:6px; font-size:0.65rem;
    padding:2px 6px; cursor:pointer; white-space:nowrap;
}
.friend-btn:hover { background:rgba(212,175,55,0.1); }
.friend-btn.accept { border-color:#00e676; color:#00e676; }
.friend-btn.accept:hover { background:rgba(0,230,118,0.1); }
.friend-btn.decline { border-color:#ef5350; color:#ef5350; }
.friend-btn.decline:hover { background:rgba(239,83,80,0.1); }
.friend-actions { display:flex; gap:4px; }
.friend-btn.teleport-btn { border-color:#42a5f5; color:#42a5f5; font-size:0.8rem; padding:2px 5px; }
.friend-btn.teleport-btn:hover { background:rgba(66,165,245,0.15); }
.friend-btn.copy-btn { font-size:0.8rem; padding:2px 5px; }

/* ═════════════════════════════════════════════════════════════════════
   FIRM PANEL
   ═════════════════════════════════════════════════════════════════════ */
.firm-panel {
    position:fixed; top:80px; left:66px; width:280px;
    max-height:calc(100vh - 100px); background:rgba(10,14,39,0.95);
    border:1px solid rgba(212,175,55,0.25); border-radius:14px;
    backdrop-filter:blur(20px); display:none; flex-direction:column;
    z-index:265; box-shadow:0 8px 40px rgba(0,0,0,0.6); overflow:hidden;
}
.firm-panel.visible { display:flex; }

.firm-panel-header {
    display:flex; align-items:center; justify-content:space-between;
    padding:10px 14px; background:rgba(212,175,55,0.07);
    border-bottom:1px solid rgba(212,175,55,0.15);
    font-size:0.85rem; font-weight:700; color:var(--gold);
}

#firm-no-firm, #firm-in-firm { padding:12px; display:flex; flex-direction:column; gap:8px; }
.firm-desc { font-size:0.78rem; color:var(--text-secondary); margin:0; line-height:1.5; }
.firm-divider { text-align:center; color:var(--text-muted); font-size:0.72rem; }
.firm-name-display { font-size:1.1rem; font-weight:800; color:var(--gold); text-align:center; padding:4px 0; }
.firm-invite-row {
    display:flex; align-items:center; gap:8px;
    background:rgba(255,255,255,0.04); border-radius:8px; padding:6px 10px;
}
.firm-label { font-size:0.68rem; font-weight:700; color:var(--text-muted); text-transform:uppercase; letter-spacing:0.05em; }
.firm-invite-code { font-size:1rem; font-weight:800; color:var(--gold); letter-spacing:0.1em; flex:1; }
.firm-member-row {
    display:flex; align-items:center; gap:8px; padding:5px 0;
    border-bottom:1px solid rgba(255,255,255,0.04); font-size:0.76rem;
}
.firm-member-row:last-child { border-bottom:none; }
.firm-member-name { flex:1; color:#e0e0e0; font-weight:600; }
.firm-member-pts { color:var(--gold); font-size:0.7rem; }
.firm-member-you { color:#00e676; font-size:0.65rem; }

/* ═════════════════════════════════════════════════════════════════════
   14. RESPONSIVE
   ═════════════════════════════════════════════════════════════════════ */
@media (max-width: 1000px) {
    #game-container {
        width: 100vw;
    }

    #game-canvas {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}

@media (max-width: 720px) {
    .feature-cards {
        flex-direction: column;
        align-items: center;
    }

    .feature-card {
        width: 280px;
    }

    #leaderboard-panel {
        width: 100vw;
        max-width: 100vw;
    }

    .hud-row {
        gap: 0.75rem;
    }

    .hud-value {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .landing-title {
        font-size: 2.5rem;
    }

    .hud-row {
        flex-wrap: wrap;
        gap: 0.3rem 0.6rem;
    }
}

/* ═════════════════════════════════════════════════════════════════════
   15. KEYFRAME ANIMATIONS
   ═════════════════════════════════════════════════════════════════════ */

/* Landing page animated gradient */
@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Generic pulse (used for heat-danger, raid text) */
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.08); opacity: 0.85; }
}

/* Slide up (modals) */
@keyframes slideUp {
    from { transform: translateY(24px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

/* Slide in from right (leaderboard, notifications) */
@keyframes slideInRight {
    from { transform: translateX(100%); }
    to   { transform: translateX(0); }
}

/* Fade in */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Subtle float / hover bobbing */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-14px); }
}

/* Raid red flash */
@keyframes raidFlash {
    from { background: rgba(255, 23, 68, 0.08); }
    to   { background: rgba(255, 23, 68, 0.2); }
}

/* Spin (for loading states) */
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ═════════════════════════════════════════════════════════════════════
   16. MISCELLANEOUS
   ═════════════════════════════════════════════════════════════════════ */

/* Selection colour */
::selection {
    background: rgba(212, 175, 55, 0.25);
    color: var(--text-primary);
}

/* Focus-visible for accessibility */
:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Custom scrollbar (global) */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.14);
}

/* ═════════════════════════════════════════════════════════════════════
   17. MINI-GAMES
   ═════════════════════════════════════════════════════════════════════ */
.minigame-wrapper {
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.mg-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

/* Timing Track */
.mg-timing-track {
    position: relative;
    width: 100%;
    height: 24px;
    background: #1e1e2e;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(255,255,255,0.1);
}
.mg-timing-zone {
    position: absolute;
    top: 0;
    left: 30%;
    width: 40%;
    height: 100%;
    background: #00e676;
}
.mg-timing-cursor {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #fff;
    transform: translateX(-50%);
}
#mg-timing-btn {
    width: 100%;
    padding: 0.5rem;
    font-weight: bold;
}

/* Drag Slider */
.mg-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 24px;
    background: #1e1e2e;
    border-radius: 12px;
    outline: none;
    border: 1px solid rgba(255,255,255,0.1);
}
.mg-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gold);
    cursor: pointer;
}

/* Keys Sequence */
.mg-keys {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.75rem 0;
}
.mg-key {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1e1e2e;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-xs);
    font-weight: bold;
    font-size: 1.2rem;
    font-family: 'Courier New', monospace;
    color: var(--text-primary);
    transition: all 0.15s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.mg-key.correct {
    background: rgba(0, 230, 118, 0.2);
    border-color: var(--green);
    color: var(--green);
    transform: scale(1.1);
    box-shadow: 0 0 12px rgba(0,230,118,0.4);
}
.mg-key.wrong {
    background: rgba(255, 23, 68, 0.2);
    border-color: var(--red);
    color: var(--red);
    animation: shake 0.3s ease;
}

/* Compliance progress bar wrap + countdown */
.mg-progress-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    margin: 12px 0;
}
.mg-progress-bar {
    flex: 1;
    height: 10px;
    background: #333;
    border-radius: 5px;
    overflow: hidden;
}
.mg-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00b0ff, #00e676);
    transition: width 0.1s linear;
    border-radius: 5px;
}
.mg-timer-label {
    font-size: 0.75rem;
    color: #888;
    min-width: 32px;
    text-align: right;
    font-family: 'Courier New', monospace;
}
.mg-feedback {
    font-size: 0.8rem;
    color: var(--red);
    min-height: 18px;
    text-align: center;
    margin-top: 4px;
}
.mg-hint {
    font-size: 0.78rem;
    color: #666;
    text-align: center;
    margin: 4px 0 8px;
}
.mg-hint kbd {
    display: inline-block;
    padding: 1px 5px;
    border: 1px solid #555;
    border-radius: 3px;
    font-size: 0.75rem;
    background: #222;
    color: #aaa;
}

/* Closer: multi-step indicator */
.mg-closer-steps {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 10px 0;
}
.mg-step {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: bold;
    border: 2px solid #444;
    color: #666;
    transition: all 0.2s;
}
.mg-step.active {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(212,175,55,0.1);
    box-shadow: 0 0 10px rgba(212,175,55,0.3);
}
.mg-step.done {
    border-color: var(--green);
    color: var(--green);
    background: rgba(0,230,118,0.1);
}

/* Heat warning notification pulse */
@keyframes heatWarn {
    0%,100% { transform: scale(1); }
    50%      { transform: scale(1.04); }
}
.notification.heat-warn {
    animation: heatWarn 0.6s ease 2;
}

/* ── Profile Panel ────────────────────────────────────────────────── */
.profile-panel {
    position: fixed;
    left: 60px;
    top: 80px;
    
    width: 280px;
    max-height: 80vh;
    overflow-y: auto;
    background: rgba(10, 14, 39, 0.97);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 12px;
    z-index: 1000;
    display: none;
    flex-direction: column;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    animation: slideInPanel 0.2s ease;
}
.profile-panel.visible { display: flex; }

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--gold);
}

.profile-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.profile-preview {
    display: flex;
    justify-content: center;
    padding: 0.5rem 0;
}

.profile-preview canvas {
    border-radius: 8px;
    background: #12122a;
    border: 2px solid rgba(212,175,55,0.3);
}

.profile-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.profile-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #9e9e9e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-input-row {
    display: flex;
    gap: 0.5rem;
}
.profile-input-row .friends-input {
    flex: 1;
}

.profile-color-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.profile-color-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.04);
    border-radius: 8px;
    padding: 0.4rem 0.6rem;
    font-size: 0.82rem;
    color: #ccc;
}

.profile-color-item input[type="color"] {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    cursor: pointer;
    background: none;
    padding: 0;
}
.profile-color-item input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 2px;
}
.profile-color-item input[type="color"]::-webkit-color-swatch {
    border-radius: 4px;
    border: none;
}

.profile-stats {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 0.75rem;
}

.profile-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: #999;
    padding: 0.25rem 0;
}
.profile-stat span:last-child {
    color: var(--gold);
    font-weight: 600;
}
