/* ============================================
   Race Your Lucky Block Wiki — Page-specific Styles
   ============================================ */

/* --- Home / Landing --- */

/* Subtitle shown under a section <h1> — used on the Tools section
   to tell users that WFL + Trade Hub are live utilities separate
   from the reference wiki. */
.section-subtitle {
    margin: 4px 0 0;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    text-align: center;
}

/* Video Hero Section — full bleed, edge to edge */
.hero-video-section {
    margin-top: calc(-1 * (var(--nav-height) + var(--space-sm)));
    margin-bottom: var(--space-xl);
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
    max-width: 100vw;
}

.hero-video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 7;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-video-overlay {
    display: none;
}

.hero-video-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-lg);
    z-index: 1;
}

.hero-video-content .hero-title {
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 215, 0, 0.3);
}

.hero-video-content .hero-subtitle {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.hero-video-content .hero-badge {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(255, 215, 0, 0.12);
}

/* Bottom-corner CTA buttons overlaid on the hero video. WFL anchors to
   the bottom-left, Trade Hub to the bottom-right. Both sit above the
   video dim + below the hero-nav side arrows so the side panels still
   work when they expand. */
.hero-video-cta {
    position: absolute;
    bottom: clamp(12px, 3vw, 28px);
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-radius: 16px;
    text-decoration: none;
    color: #fff;
    font-family: var(--font-primary);
    font-weight: 700;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.hero-video-cta:hover { transform: translateY(-2px); }

.hero-video-cta-wfl {
    left: clamp(12px, 3vw, 28px);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.92), rgba(255, 152, 0, 0.92));
    border: 1px solid rgba(255, 235, 150, 0.6);
    color: #1A0F00;
    text-shadow: 0 1px 0 rgba(255, 245, 200, 0.35);
}
.hero-video-cta-wfl:hover {
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55), 0 0 26px rgba(255, 190, 40, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 235, 150, 0.9);
}

.hero-video-cta-trade {
    right: clamp(12px, 3vw, 28px);
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.92), rgba(41, 121, 255, 0.92));
    border: 1px solid rgba(150, 180, 255, 0.55);
}
.hero-video-cta-trade:hover {
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55), 0 0 26px rgba(88, 101, 242, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    border-color: rgba(150, 180, 255, 0.85);
}

.hero-video-cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.22);
    color: inherit;
    flex-shrink: 0;
}
.hero-video-cta-icon svg { width: 26px; height: 26px; }

.hero-video-cta-body {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-align: left;
}
.hero-video-cta-trade .hero-video-cta-body { text-align: right; }

.hero-video-cta-eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.82;
}
.hero-video-cta-title {
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    letter-spacing: 0.01em;
}

/* Mobile: smaller padding so both chips still sit cleanly on narrow
   screens without overlapping the side-nav arrows. */
@media (max-width: 600px) {
    .hero-video-cta { padding: 9px 12px; gap: 8px; border-radius: 12px; }
    .hero-video-cta-icon { width: 34px; height: 34px; border-radius: 10px; }
    .hero-video-cta-icon svg { width: 20px; height: 20px; }
    .hero-video-cta-eyebrow { display: none; }
    .hero-video-cta-title { font-size: 0.95rem; }
}

/* Hero video side-nav arrows — collapsed arrow button on each side that
   expands into a full card on click. First click opens the card, a second
   click navigates to WFL / Trade Hub. Clicking outside collapses it.
   The card is shown once on page load for 2.5s as a hint (.initial-show). */
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 0;
    max-width: 52px;
    padding: 10px 12px;
    background: rgba(10, 10, 16, 0.72);
    border: 1px solid rgba(255, 215, 0, 0.35);
    border-radius: 16px;
    color: var(--color-text-primary);
    text-decoration: none;
    overflow: hidden;
    white-space: nowrap;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 215, 0, 0.05) inset;
    transition: max-width 380ms cubic-bezier(0.2, 0.85, 0.2, 1),
                gap 280ms ease,
                padding 280ms ease,
                background 240ms ease,
                border-color 240ms ease,
                box-shadow 260ms ease,
                border-radius 280ms ease;
    /* hero-nav-pulse removed — was animating box-shadow infinitely on
       Home, repainting the arrow every frame even with motion ON. The
       static glow below + the user's hover transitions provide enough
       visual cue without a perpetual paint loop. */
    cursor: pointer;
}

.hero-nav-left  { left: 16px; transform-origin: left center; }
.hero-nav-right { right: 16px; transform-origin: right center; }

.hero-nav-arrow {
    flex-shrink: 0;
    font-size: 1.75rem;
    line-height: 1;
    font-weight: 900;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: transform 260ms ease;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
}

/* Hidden card body in collapsed state */
.hero-nav-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    white-space: normal;
    transition: opacity 240ms ease 80ms,
                max-width 360ms cubic-bezier(0.2, 0.85, 0.2, 1);
}

.hero-nav-eyebrow {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1;
}

.hero-nav-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    line-height: 1.15;
    background: linear-gradient(135deg, #FFE98A 0%, #FFD700 50%, #FFB347 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 1px 6px rgba(255, 215, 0, 0.35));
}

.hero-nav-desc {
    font-size: 0.8rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.82);
    max-width: 220px;
}

.hero-nav-cta {
    margin-top: 4px;
    padding: 7px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #FFE98A, #FFD700 50%, #FFB347);
    color: #1a1a24;
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    align-self: flex-start;
    box-shadow: 0 4px 12px rgba(255, 170, 40, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease;
    cursor: pointer;
}

.hero-nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(255, 170, 40, 0.6);
}

.hero-nav-cta span { font-size: 0.95rem; font-weight: 900; }

/* Expanded state — card visible, full layout.
   Clamp the width so two simultaneously-expanded cards (initial-show) never
   collide on narrow viewports: each gets at most ~half the viewport minus
   the side offset + a small gap. */
.hero-nav.expanded,
.hero-nav.initial-show {
    max-width: min(280px, calc(50vw - 28px));
    gap: 12px;
    padding: 14px 18px;
    background: rgba(10, 10, 16, 0.92);
    border-color: rgba(255, 215, 0, 0.85);
    border-radius: 20px;
    box-shadow: 0 14px 40px rgba(255, 170, 40, 0.4),
                0 0 0 1px rgba(255, 215, 0, 0.15) inset;
    animation: none;
    align-items: flex-start;
}

.hero-nav.expanded .hero-nav-arrow,
.hero-nav.initial-show .hero-nav-arrow {
    align-self: center;
}

.hero-nav-left.expanded .hero-nav-arrow,
.hero-nav-left.initial-show .hero-nav-arrow {
    transform: translateX(-2px);
}
.hero-nav-right.expanded .hero-nav-arrow,
.hero-nav-right.initial-show .hero-nav-arrow {
    transform: translateX(2px);
}

.hero-nav.expanded .hero-nav-card,
.hero-nav.initial-show .hero-nav-card {
    opacity: 1;
    max-width: 240px;
}

.hero-nav.expanded:hover .hero-nav-cta {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(255, 170, 40, 0.55);
}

/* Subtle hover in collapsed state — just nudge the arrow, no expansion */
.hero-nav:not(.expanded):not(.initial-show):hover {
    background: rgba(10, 10, 16, 0.88);
    border-color: rgba(255, 215, 0, 0.55);
}
.hero-nav-left:not(.expanded):not(.initial-show):hover .hero-nav-arrow {
    transform: translateX(-3px);
}
.hero-nav-right:not(.expanded):not(.initial-show):hover .hero-nav-arrow {
    transform: translateX(3px);
}

@keyframes hero-nav-pulse {
    0%, 100% {
        box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45),
                    0 0 0 1px rgba(255, 215, 0, 0.05) inset,
                    0 0 0 0 rgba(255, 215, 0, 0.35);
    }
    50% {
        box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45),
                    0 0 0 1px rgba(255, 215, 0, 0.05) inset,
                    0 0 0 10px rgba(255, 215, 0, 0);
    }
}

@media (max-width: 640px) {
    .hero-nav {
        max-width: 42px;
        padding: 8px 10px;
    }
    .hero-nav-left  { left: 10px; }
    .hero-nav-right { right: 10px; }
    .hero-nav-arrow { font-size: 1.4rem; width: 22px; }
    .hero-nav.expanded,
    .hero-nav.initial-show {
        /* Each card takes at most ~half viewport minus the side offset + gap
           so the two initial-show cards never touch each other on mobile */
        max-width: min(240px, calc(50vw - 22px));
        padding: 12px 14px;
    }
    .hero-nav-title { font-size: 1rem; }
    .hero-nav-eyebrow { font-size: 0.62rem; }
    .hero-nav-desc { font-size: 0.72rem; max-width: none; }
    .hero-nav-cta { font-size: 0.72rem; padding: 6px 10px; }
    .hero-nav.expanded .hero-nav-card,
    .hero-nav.initial-show .hero-nav-card { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-nav { animation: none; transition: max-width 0s, padding 0s, opacity 0s; }
    .hero-nav-card { transition: opacity 0s; }
}

.hero {
    text-align: center;
    padding: var(--space-2xl) 0;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 3.5rem);
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
    text-shadow: 0 0 40px rgba(255, 215, 0, 0.2);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--color-primary);
    margin-bottom: var(--space-xl);
}

/* --- Brainrots page --- */

/* Hero container — aura + image + mutation badge, driven by --mut-color */
.brainrot-hero {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto var(--space-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-dark);
    border-radius: var(--border-radius);
    overflow: visible;
    --mut-color: #FFFFFF;
    transition: box-shadow 260ms ease;
}

.brainrot-hero-aura {
    position: absolute;
    inset: -8%;
    border-radius: var(--border-radius);
    background: radial-gradient(ellipse at center, var(--mut-color) 0%, transparent 90%);
    opacity: 0;
    /* filter:blur removed — gradient transparent stop pushed to 90%
       gives the same soft aura without GPU blur cost. */
    pointer-events: none;
    transition: opacity 260ms ease;
    z-index: 0;
}

.brainrot-hero:not([data-mutation="NORMAL"]) .brainrot-hero-aura { opacity: 0.55; }

.brainrot-detail-img {
    position: relative;
    z-index: 1;
    width: 120px;
    height: 120px;
    object-fit: contain;
    padding: 10px;
    transition: filter 260ms ease, transform 260ms ease;
}

.brainrot-hero:not([data-mutation="NORMAL"]) .brainrot-detail-img {
    filter:
        drop-shadow(0 0 14px var(--mut-color))
        drop-shadow(0 0 28px var(--mut-color));
    transform: scale(1.03);
}

/* Mutation-specific tuning (color overlays for more impact) */
.brainrot-hero[data-mutation="GOLD"] .brainrot-detail-img {
    filter:
        drop-shadow(0 0 14px #FFDB25)
        drop-shadow(0 0 30px rgba(255, 219, 37, 0.8))
        saturate(1.15);
}
.brainrot-hero[data-mutation="DIAMOND"] .brainrot-detail-img {
    filter:
        drop-shadow(0 0 14px #2AE3FF)
        drop-shadow(0 0 30px rgba(42, 227, 255, 0.75))
        brightness(1.05);
}
.brainrot-hero[data-mutation="VOID"] .brainrot-detail-img {
    filter:
        drop-shadow(0 0 14px #A527FF)
        drop-shadow(0 0 30px rgba(165, 39, 255, 0.85));
}
.brainrot-hero[data-mutation="CANDY"] .brainrot-detail-img {
    filter:
        drop-shadow(0 0 14px #E88BFF)
        drop-shadow(0 0 28px rgba(232, 139, 255, 0.7))
        saturate(1.1);
}

/* Mutation badge that appears in a corner of the hero once selected */
.brainrot-hero-mut-badge {
    position: absolute;
    z-index: 2;
    right: -10px;
    top: -10px;
    width: 52px;
    height: 52px;
    object-fit: contain;
    padding: 4px;
    background: rgba(10, 10, 16, 0.85);
    border: 2px solid var(--mut-color);
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55), 0 0 16px var(--mut-color);
    animation: brainrot-mut-badge-pop 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes brainrot-mut-badge-pop {
    0%   { opacity: 0; transform: scale(0.6) rotate(-15deg); }
    60%  { opacity: 1; transform: scale(1.15) rotate(5deg); }
    100% { opacity: 1; transform: scale(1) rotate(0); }
}

/* Mutation chips — image on top, label + value below */
.brainrot-mutations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
    gap: 6px;
    margin-top: var(--space-sm);
}

.brainrot-mutation-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 7px 6px 6px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
    border: 1.5px solid var(--mut-color, rgba(255, 255, 255, 0.12));
    cursor: pointer;
    transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
    font-family: inherit;
    color: inherit;
}

.brainrot-mutation-chip:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), 0 0 14px color-mix(in srgb, var(--mut-color) 35%, transparent);
}

.brainrot-mutation-chip.active {
    position: relative;
    background: color-mix(in srgb, var(--mut-color) 22%, rgba(0, 0, 0, 0.5));
    box-shadow:
        0 0 0 2px var(--mut-color) inset,
        0 0 0 2px rgba(76, 175, 80, 0.85) inset,
        0 6px 20px color-mix(in srgb, var(--mut-color) 40%, transparent);
    transform: translateY(-2px);
    border-color: #4CAF50;
}

/* Crisp green check overlay so the active chip is unambiguous — important
   for NORMAL where the mutation color is white and the default active glow
   blends into the dark background. */
.brainrot-mutation-chip.active::after {
    content: '\2713';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 50%;
    background: #4CAF50;
    color: #000;
    font-size: 0.7rem;
    font-weight: 900;
    box-shadow: 0 0 6px rgba(76, 175, 80, 0.6);
}

.brainrot-mutation-chip-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
    transition: transform 220ms ease;
}

.brainrot-mutation-chip:hover .brainrot-mutation-chip-img,
.brainrot-mutation-chip.active .brainrot-mutation-chip-img {
    transform: scale(1.1) rotate(-4deg);
}

.brainrot-mutation-chip-name {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.1;
}

.brainrot-mutation-chip-value {
    font-size: 0.66rem;
    color: var(--color-text-secondary);
    font-weight: 600;
    line-height: 1.1;
}

/* --- Bosses page --- */
.boss-card {
    display: flex;
    gap: 0;
    background: linear-gradient(135deg, rgba(26, 26, 36, 0.88), rgba(18, 18, 26, 0.92));
    border: 1px solid rgba(255, 215, 0, 0.14);
    border-radius: var(--border-radius);
    padding: 0;
    overflow: hidden;
    transition: transform 220ms ease, border-color var(--transition-fast), box-shadow var(--transition-fast);
    /* Defer painting for off-screen boss cards — Bosses page renders
       30+ at once and each is heavy (portrait, level chip, sub-cards). */
    content-visibility: auto;
    contain-intrinsic-size: auto 200px;
}

.boss-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 215, 0, 0.45);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 215, 0, 0.08) inset;
}

.boss-card-event {
    border-color: rgba(156, 39, 176, 0.35);
}
.boss-card-event:hover {
    border-color: rgba(186, 85, 211, 0.75);
    box-shadow: 0 12px 32px rgba(156, 39, 176, 0.3), 0 0 0 1px rgba(186, 85, 211, 0.12) inset;
}

/* Boss portrait — hero image panel on the left */
.boss-portrait {
    position: relative;
    flex-shrink: 0;
    width: 170px;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse at center, rgba(255, 215, 0, 0.12), transparent 65%),
        linear-gradient(160deg, #14141c 0%, #0b0b12 100%);
    border-right: 1px solid rgba(255, 215, 0, 0.14);
}

.boss-card-event .boss-portrait {
    background:
        radial-gradient(ellipse at center, rgba(186, 85, 211, 0.22), transparent 65%),
        linear-gradient(160deg, #1a1222 0%, #100a18 100%);
    border-right-color: rgba(186, 85, 211, 0.28);
}

.boss-portrait-glow {
    position: absolute;
    inset: -30%;
    background: radial-gradient(ellipse at 50% 50%, rgba(255, 215, 0, 0.14), transparent 85%);
    /* filter:blur removed — wider gradient stop replaces it. */
    animation: boss-portrait-pulse 4.5s ease-in-out infinite;
    pointer-events: none;
}
.boss-card-event .boss-portrait-glow {
    background: radial-gradient(ellipse at 50% 50%, rgba(186, 85, 211, 0.22), transparent 85%);
}

.boss-portrait img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: contain;
    padding: 10px;
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 18px rgba(255, 215, 0, 0.2));
    transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.boss-card:hover .boss-portrait img {
    transform: scale(1.06) rotate(-1deg);
}
.boss-card-event .boss-portrait img {
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 20px rgba(186, 85, 211, 0.3));
}

/* Fallback when the boss image is missing (e.g., ALIEN) */
.boss-portrait-missing::after {
    content: '?';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 5rem;
    color: rgba(255, 215, 0, 0.35);
    z-index: 1;
}

.boss-level-chip {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 4px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #FFE98A, #FFD700 50%, #FF9A40);
    color: #1a1a24;
    font-family: var(--font-primary);
    font-weight: 900;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(255, 170, 40, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.25) inset;
}
.boss-card-event .boss-level-chip {
    background: linear-gradient(135deg, #D68CFF, #9C27B0 60%, #5E1A80);
    color: #fff;
    box-shadow: 0 4px 12px rgba(156, 39, 176, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.boss-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
}

.boss-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: 0;
    cursor: pointer;
}

@keyframes boss-portrait-pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50%      { opacity: 1;   transform: scale(1.08); }
}

.boss-card-header h3 {
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    font-weight: 700;
}

.boss-stats {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
    margin-bottom: var(--space-md);
}

.boss-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.boss-stat-value {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-primary);
}

.boss-stat-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

/* Boss speed badge — shown inline before boss name on desktop */
.boss-speed-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 36px;
    padding: 2px 10px;
    margin-right: 8px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: var(--font-primary);
    background: rgba(255, 215, 0, 0.1);
    color: var(--color-primary);
    border: 1px solid rgba(255, 215, 0, 0.2);
    vertical-align: middle;
}

.boss-speed-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
}

/* Mobile-only speed line below boss name */
.boss-speed-mobile {
    display: none;
    font-size: 0.75rem;
    color: var(--color-primary);
    margin-top: 4px;
    font-weight: 600;
}

/* Boss 2-column grid */
.boss-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

/* Boss drop grid — always visible */
.boss-drop-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.boss-drop-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100px;
    padding: var(--space-sm);
    background: var(--color-bg-dark);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: transform var(--transition-fast), background var(--transition-fast);
}

.boss-drop-item:hover {
    transform: translateY(-3px);
    background: var(--color-bg-card-hover);
}

.boss-drop-item img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 4px;
}

.boss-drop-name {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-text-primary);
    text-align: center;
    line-height: 1.2;
    word-break: break-word;
}

.boss-drop-item .drop-row-label {
    font-size: 0.6rem;
}

/* --- Income Calculator (new layout) --- */
.inc-layout {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.inc-results-section {
    text-align: center;
}

.inc-results-sub {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.inc-section {
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius);
    padding: var(--space-lg);
}

/* Rebirth chips */
.inc-rebirth-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    justify-content: center;
}

.inc-rebirth-chip {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.inc-rebirth-chip:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.inc-rebirth-chip.active {
    background: rgba(255, 215, 0, 0.15);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* Form */
.inc-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.inc-form-row {
    display: flex;
    gap: var(--space-sm);
}

.inc-form-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.inc-form-field-wide {
    flex: 1;
}

.inc-form-field label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 600;
}

.inc-form-field input,
.inc-form-field select {
    padding: 8px 12px;
    background: var(--color-bg-input);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    color: var(--color-text-primary);
    font-size: 0.85rem;
    font-family: inherit;
    outline: none;
    width: 100%;
}

.inc-form-field input:focus,
.inc-form-field select:focus {
    border-color: var(--color-primary);
}

.inc-add-btn {
    width: 100%;
    padding: 10px;
    border-radius: var(--border-radius-sm);
    background: var(--color-primary);
    color: var(--color-bg-darkest);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: background var(--transition-fast);
}

.inc-add-btn:hover {
    background: var(--color-primary-light);
}

/* Entry list */
.inc-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) var(--space-md);
    background: var(--color-bg-dark);
    border-radius: var(--border-radius-sm);
    margin-bottom: var(--space-xs);
    font-size: 0.85rem;
}

.inc-remove-btn {
    color: #F44336;
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0 4px;
    line-height: 1;
}

/* Breakdown */
.inc-breakdown {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.inc-breakdown-row {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm);
    background: var(--color-bg-dark);
    border-radius: var(--border-radius-sm);
}

.inc-breakdown-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}

.inc-breakdown-info {
    flex: 1;
    min-width: 0;
}

.inc-breakdown-name {
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inc-breakdown-meta {
    font-size: 0.7rem;
    color: var(--color-text-muted);
}

.inc-breakdown-cash {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--color-primary);
    white-space: nowrap;
}

/* Custom brainrot picker */
.inc-brainrot-picker {
    position: relative;
}

.inc-picker-selected {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 8px 12px;
    background: var(--color-bg-input);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    min-height: 42px;
    transition: border-color var(--transition-fast);
}

.inc-brainrot-picker.open .inc-picker-selected {
    border-color: var(--color-primary);
    border-radius: var(--border-radius-sm) var(--border-radius-sm) 0 0;
}

.inc-picker-sel-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}

.inc-picker-sel-name {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inc-picker-placeholder {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    flex: 1;
}

.inc-picker-arrow {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.inc-brainrot-picker.open .inc-picker-arrow {
    transform: rotate(180deg);
}

.inc-picker-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg-card);
    border: 1px solid var(--color-primary);
    border-top: none;
    border-radius: 0 0 var(--border-radius-sm) var(--border-radius-sm);
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.inc-brainrot-picker.open .inc-picker-dropdown {
    display: block;
}

.inc-picker-search {
    width: 100%;
    padding: 8px 12px;
    background: var(--color-bg-input);
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--color-text-primary);
    font-size: 0.85rem;
    font-family: inherit;
    outline: none;
}

.inc-picker-list {
    max-height: 250px;
    overflow-y: auto;
}

.inc-picker-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 8px 12px;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.inc-picker-item:hover,
.inc-picker-item-active {
    background: rgba(255, 215, 0, 0.08);
}

.inc-picker-item img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}

.inc-picker-item-info {
    flex: 1;
    min-width: 0;
}

.inc-picker-item-name {
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inc-picker-item-cash {
    font-size: 0.7rem;
    color: var(--color-text-muted);
}

.inc-picker-special {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    background: rgba(255, 215, 0, 0.12);
    color: var(--color-primary);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

/* Modal-based brainrot picker button (replaces the old inline dropdown) */
.inc-brainrot-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(10, 10, 16, 0.85);
    border: 1px solid rgba(255, 215, 0, 0.22);
    color: var(--color-text-primary);
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.inc-brainrot-btn:hover {
    border-color: rgba(255, 215, 0, 0.55);
    background: rgba(15, 15, 22, 0.92);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 215, 0, 0.08) inset;
    transform: translateY(-1px);
}
.inc-brainrot-btn:active { transform: translateY(0); }

.inc-brainrot-btn-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    display: none;
    flex-shrink: 0;
    border-radius: 8px;
    background: rgba(255, 215, 0, 0.06);
    padding: 3px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}
.inc-brainrot-btn.has-selection .inc-brainrot-btn-img { display: block; }

.inc-brainrot-btn-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.inc-brainrot-btn-name {
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.inc-brainrot-btn-cash {
    font-size: 0.78rem;
    color: var(--color-primary);
    font-weight: 600;
}
.inc-brainrot-btn-arrow {
    color: var(--color-primary);
    font-size: 1.4rem;
    line-height: 1;
    opacity: 0.6;
    transition: transform 180ms ease, opacity 180ms ease;
}
.inc-brainrot-btn:hover .inc-brainrot-btn-arrow {
    opacity: 1;
    transform: translateX(3px);
}

/* Modal: search + grid of brainrot cards */
.inc-modal-search {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(10, 10, 16, 0.6);
    border: 1px solid rgba(255, 215, 0, 0.22);
    color: var(--color-text-primary);
    font-size: 0.92rem;
    font-family: inherit;
    outline: none;
    margin-bottom: var(--space-sm);
    transition: border-color 180ms ease, background 180ms ease;
}
.inc-modal-search:focus {
    border-color: rgba(255, 215, 0, 0.6);
    background: rgba(10, 10, 16, 0.85);
}

.inc-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
    gap: 8px;
}

.inc-modal-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 6px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    text-align: center;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
    font-family: inherit;
    color: inherit;
    min-height: 0;
}
.inc-modal-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 215, 0, 0.45);
    background: rgba(255, 215, 0, 0.06);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 215, 0, 0.1) inset;
}
.inc-modal-card.active {
    border-color: rgba(255, 215, 0, 0.7);
    background: rgba(255, 215, 0, 0.12);
    box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.25) inset, 0 6px 18px rgba(255, 215, 0, 0.18);
}
.inc-modal-card img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.45));
}
.inc-modal-card-name {
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.inc-modal-card-cash {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-primary);
}
.inc-modal-card-special {
    position: absolute;
    top: 4px;
    right: 4px;
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #FFD700, #FF9A40);
    color: #1a1a24;
    letter-spacing: 0.02em;
}

/* --- Old Calculator pages (keep for any remaining usage) --- */
.calc-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
}

.calc-panel {
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius);
    padding: var(--space-lg);
}

.calc-panel h2 {
    font-size: 1.1rem;
    margin-bottom: var(--space-md);
    color: var(--color-primary);
    font-family: var(--font-primary);
    font-weight: 700;
}

.calc-input-group {
    margin-bottom: var(--space-md);
}

.calc-input-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xs);
}

.calc-input-group input,
.calc-input-group select {
    width: 100%;
    padding: 10px 14px;
    background: var(--color-bg-input);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    color: var(--color-text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
}

.calc-input-group input:focus,
.calc-input-group select:focus {
    border-color: var(--color-primary);
}

.calc-result {
    text-align: center;
    padding: var(--space-lg);
    background: rgba(10, 10, 16, 0.85);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: var(--border-radius);
    box-shadow:
        0 6px 22px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 215, 0, 0.06) inset;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.calc-result-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    background: linear-gradient(135deg, #FFE98A 0%, #FFD700 45%, #FFB347 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.28));
    line-height: 1.1;
}

.calc-result-label {
    color: var(--color-text-primary);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-top: var(--space-xs);
    opacity: 0.85;
}

/* --- Season Pass --- */
.sp-tiers {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    max-width: 800px;
    margin: 0 auto;
}

.sp-tier {
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.sp-tier-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) var(--space-lg);
    background: rgba(255, 215, 0, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.sp-tier-level {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--color-primary);
}

.sp-tier-xp {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.sp-tier-rewards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: rgba(255, 255, 255, 0.04);
}

.sp-reward {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-md);
    background: var(--color-bg-card);
    text-align: center;
}

.sp-reward-paid {
    background: rgba(255, 215, 0, 0.03);
}

.sp-reward-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
    font-weight: 600;
}

.sp-reward-paid .sp-reward-label {
    color: var(--color-primary);
}

.sp-reward-img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 6px;
}

.sp-reward-icon {
    font-size: 2rem;
    line-height: 1;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sp-reward-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-primary);
    line-height: 1.3;
}

/* Quests */
.sp-quests {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.sp-quest {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius-sm);
}

.sp-quest-name {
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.sp-quest-target {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 2px;
}

.sp-quest-xp {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--color-primary);
    white-space: nowrap;
}

/* --- Events page --- */

/* Active Events — compact chips */
.event-active-grid-compact {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
}

.event-active-chip {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 8px 16px;
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid;
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-primary);
    transition: transform var(--transition-fast), background var(--transition-fast);
}

.event-active-chip:hover {
    transform: translateY(-2px);
    background: var(--color-bg-card-hover);
}

.event-active-chip-icon {
    font-size: 1.2rem;
}

.event-active-chip-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}

.event-active-multiplier {
    display: inline-block;
    margin-top: var(--space-xs);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(255, 215, 0, 0.12);
    color: var(--color-primary);
}

/* Special Collection Events Grid */
.event-special-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
}

.event-special-card {
    width: 260px;
    flex-shrink: 0;
}

.event-special-card {
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.event-special-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.event-special-preview {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-special-preview img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.event-special-info {
    padding: var(--space-md);
}

.event-special-info h3 {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.05rem;
}

.event-special-info p {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    margin-top: 4px;
}

.event-special-reward {
    display: inline-block;
    margin-top: var(--space-sm);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-primary);
}

/* Event Chains */
.event-chain-card {
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid;
    border-radius: var(--border-radius);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
    text-align: center;
}

.event-chain-header h3 {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: var(--space-md);
}

.event-chain-flow {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
    justify-content: center;
}

.event-chain-req {
    font-weight: 700;
    font-size: 0.95rem;
}

.event-chain-plus {
    color: var(--color-text-muted);
    font-size: 1.2rem;
    font-weight: 700;
}

.event-chain-arrow {
    color: var(--color-primary);
    font-size: 1.3rem;
    font-weight: 700;
}

.event-chain-reward {
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-primary);
    padding: 4px 12px;
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: var(--border-radius-sm);
}

/* Event Modal — collection items */
.event-modal-collection {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    justify-content: center;
}

.event-brainrot-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 90px;
    padding: var(--space-sm);
    background: var(--color-bg-dark);
    border-radius: var(--border-radius-sm);
    transition: transform var(--transition-fast), background var(--transition-fast);
}

.event-brainrot-item:hover {
    transform: translateY(-3px);
    background: var(--color-bg-card-hover);
}

.event-brainrot-item img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.event-brainrot-item span {
    font-size: 0.65rem;
    font-weight: 600;
    text-align: center;
    color: var(--color-text-secondary);
    line-height: 1.2;
    word-break: break-word;
}

/* Event Modal — reward */
.event-modal-reward {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-xl);
    padding: var(--space-md) var(--space-lg);
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-left: 3px solid;
    border-radius: var(--border-radius);
}

/* --- Spin Wheel Visual --- */
.sw-wheel-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-xl);
}

.sw-wheel-svg {
    width: 280px;
    height: 280px;
    filter: drop-shadow(0 4px 20px rgba(255, 215, 0, 0.15));
}

/* --- Spin Wheel --- */
.sw-prizes {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.sw-prize-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius);
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.sw-prize-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 215, 0, 0.2);
}

.sw-prize-img-wrap {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-dark);
    border-radius: var(--border-radius-sm);
}

.sw-prize-img-wrap img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.sw-prize-info {
    flex: 1;
    min-width: 0;
}

.sw-prize-name {
    font-weight: 700;
    font-size: 0.9rem;
}

.sw-prize-desc {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 2px;
}

/* --- About Page --- */
.about-layout {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.about-hero {
    position: relative;
    text-align: center;
    padding: var(--space-xl) var(--space-lg);
    border-radius: 20px;
    background: linear-gradient(160deg, rgba(22, 22, 30, 0.92), rgba(16, 16, 22, 0.92));
    border: 1px solid rgba(255, 215, 0, 0.28);
    box-shadow:
        0 20px 50px -10px rgba(0, 0, 0, 0.5),
        0 0 60px -10px rgba(255, 215, 0, 0.14),
        0 0 0 1px rgba(255, 215, 0, 0.05) inset;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 140%;
    height: 80%;
    background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.18), transparent 85%);
    /* filter:blur removed — wider gradient stop is enough. */
    pointer-events: none;
}

.about-hero > * { position: relative; z-index: 1; }

.about-hero-logos {
    display: inline-flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.about-hero-logo {
    height: 72px;
    width: auto;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 16px rgba(255, 215, 0, 0.2));
}
.about-hero-logo-game { height: 88px; }

.about-hero-x {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--color-primary);
    opacity: 0.6;
}

.about-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 2.8rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 var(--space-sm);
    background: linear-gradient(135deg, #FFE98A 0%, #FFD700 40%, #FFB347 70%, #FF8EC7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 4px 14px rgba(255, 170, 40, 0.25));
}

.about-hero-sub {
    color: var(--color-text-primary);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto var(--space-lg);
}
.about-hero-sub strong { color: var(--color-primary); }

.about-hero-actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.about-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: var(--color-text-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}
.about-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 215, 0, 0.7);
    background: rgba(255, 215, 0, 0.08);
}
.about-btn-primary {
    background: linear-gradient(135deg, #FFE98A, #FFD700 50%, #FFB347);
    color: #1a1a24;
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 22px rgba(255, 170, 40, 0.38);
}
.about-btn-primary:hover {
    background: linear-gradient(135deg, #FFF4B0, #FFDE33 50%, #FFC064);
    color: #1a1a24;
    box-shadow: 0 12px 30px rgba(255, 170, 40, 0.55);
}

/* About cards (wiki / studio / community) */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-md);
}

.about-card {
    padding: var(--space-lg);
    border-radius: 14px;
    background: rgba(10, 10, 16, 0.82);
    border: 1px solid rgba(255, 215, 0, 0.18);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 215, 0, 0.04) inset;
    transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.about-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 215, 0, 0.42);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 215, 0, 0.08) inset;
}

.about-card-icon {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: var(--space-sm);
    filter: drop-shadow(0 3px 10px rgba(255, 215, 0, 0.25));
}

.about-card h3 {
    font-family: var(--font-display);
    color: var(--color-primary);
    font-size: 1.05rem;
    margin: 0 0 6px;
    letter-spacing: 0.01em;
}

.about-card p {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 0;
}

.about-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

/* Social tiles */
.about-socials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-sm);
    width: 100%;
}

.about-social {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: var(--space-lg) var(--space-md);
    border-radius: 14px;
    background: rgba(10, 10, 16, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--color-text-primary);
    text-decoration: none;
    transition: transform 200ms ease, background 200ms ease, border-color 200ms ease, box-shadow 200ms ease, color 200ms ease;
    overflow: hidden;
}

.about-social:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
}

.about-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    font-size: 1.5rem;
    line-height: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 4px;
    transition: background 220ms ease, border-color 220ms ease, color 220ms ease;
    color: #fff;
}

.about-social-name {
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

.about-social-handle {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Per-brand treatments */
.about-social-roblox:hover { border-color: rgba(255, 70, 70, 0.6); background: rgba(255, 70, 70, 0.1); }
.about-social-roblox:hover .about-social-icon { background: #ff4b4b; border-color: #ff4b4b; }

.about-social-group:hover { border-color: rgba(88, 101, 242, 0.6); background: rgba(88, 101, 242, 0.1); }
.about-social-group:hover .about-social-icon { background: #5865F2; border-color: #5865F2; }

.about-social-discord:hover { border-color: rgba(88, 101, 242, 0.7); background: rgba(88, 101, 242, 0.1); }
.about-social-discord:hover .about-social-icon { background: #5865F2; border-color: #5865F2; }
.about-social-discord .about-social-icon { color: #fff; }

.about-social-instagram:hover { border-color: rgba(220, 39, 67, 0.7); background: rgba(220, 39, 67, 0.08); }
.about-social-instagram:hover .about-social-icon {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: transparent;
    color: #fff;
}

.about-social-twitter:hover { border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.04); }
.about-social-twitter:hover .about-social-icon { background: #000; border-color: rgba(255, 255, 255, 0.3); color: #fff; }

@media (max-width: 640px) {
    .about-hero { padding: var(--space-lg) var(--space-md); }
    .about-hero-logo { height: 56px; }
    .about-hero-logo-game { height: 68px; }
    .about-hero-logos { gap: var(--space-sm); }
}

/* --- Playtime Rewards --- */
.pt-timeline {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.pt-tier {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 3px solid;
    border-radius: var(--border-radius);
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.pt-tier:hover {
    transform: translateY(-2px);
}

.pt-tier-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
    text-align: center;
    flex-shrink: 0;
}

.pt-tier-num {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--color-primary);
    line-height: 1;
}

.pt-tier-time span:last-child {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    margin-top: 2px;
}

.pt-tier-line {
    width: 1px;
    height: 36px;
    background: rgba(255, 215, 0, 0.15);
    flex-shrink: 0;
}

.pt-tier-reward {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex: 1;
}

.pt-tier-reward img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
    flex-shrink: 0;
}

.pt-tier-reward-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.pt-tier-reward-hint {
    font-size: 0.65rem;
    color: var(--color-text-muted);
    font-style: italic;
}
