/* ROS2026 — Home page (root index.html)
   Hero + Event News + Intro section.
   Builds on static_kit.css design tokens.
   Aim: grand · bold · smooth */

/* ============== RESET / BODY ============== */
/* Scroll-snap on Home page — .home-scroller is the scroll container, pinned to
   the viewport via position: fixed inset: 0. Body is locked (no scroll). This
   bypasses static_kit's body settings cleanly. */
html,
body {
    height: 100% !important;
}

body[data-page="home"] {
    background: #050509;
    margin: 0;
    overflow: hidden !important;
}

.home-scroller {
    position: fixed;
    inset: 0;
    z-index: 1;
    /* below navbar (which is z-index 30) */
    overflow-y: scroll;
    overflow-x: hidden;
    /* Use proximity so native snap is a soft backstop;
     JS in home.js does the smooth-tween snap with a custom easing curve */
    scroll-snap-type: y proximity;
    /* Smooth-scroll-behavior anyway as fallback for anchor clicks */
    scroll-behavior: smooth;
    /* Hide native scrollbar so the fixed navbar doesn't cover/overlap it.
     Scroll is still possible via wheel / touch / keyboard. */
    scrollbar-width: none;
    /* Firefox */
}

.home-scroller::-webkit-scrollbar {
    display: none;
}

/* Chrome / Safari / Edge */
/* While JS is mid-tween, fully disable native snap so it doesn't fight the animation */
.home-scroller.is-snapping {
    scroll-snap-type: none;
    scroll-behavior: auto;
}

/* Snap targets — each major section snaps to viewport top.
   No scroll-snap-stop: always — let smooth tween pass through. */
.home-scroller > .hero,
.home-scroller > .intro,
.home-scroller > .entry,
.home-scroller > .reward {
    scroll-snap-align: start;
}

/* Footer snaps its bottom edge to viewport bottom */
.home-scroller > .site-footer {
    scroll-snap-align: end;
}

/* Disable snap when reduced motion is preferred */
@media (prefers-reduced-motion: reduce) {
    .home-scroller {
        scroll-snap-type: none;
        scroll-behavior: auto;
    }
}

/* ============== NAVBAR ============== */
.site-nav {
    margin-top: 55px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 10px 36px;
    background: rgb(0 0 0 / 74%);
    transition: background 250ms ease, padding 250ms ease, backdrop-filter 250ms ease;
}

.site-nav.scrolled {
    background: rgba(7, 7, 12, 0.85);
    padding: 12px 36px;
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border-bottom: 1px solid var(--line-soft);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.site-nav .brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.site-nav .brand-mark img {
    height: 38px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.site-nav .nav-links {
    display: flex;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-nav .nav-links a,
.site-nav .nav-links .nav-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: color 200ms ease, background 200ms ease, text-shadow 200ms ease;
}

.site-nav .nav-links a:hover,
.site-nav .nav-links .nav-item:hover {
    color: var(--gold-300);
    text-shadow: 0 0 12px rgba(255, 184, 28, 0.55);
}

.site-nav .nav-links a.active {
    color: var(--gold-300);
    text-shadow: 0 0 12px rgba(255, 184, 28, 0.55);
}

.site-nav .nav-links .chev {
    width: 12px;
    height: 12px;
    opacity: 0.65;
}

.site-nav .nav-spacer {
    flex: 1;
}

.site-nav .tournament-tag {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-300);
    background: rgb(255 184 28 / 71%);
    border: 1px solid var(--line-gold);
    text-shadow: 0 0 10px rgba(255, 184, 28, 0.40);
    cursor: pointer;
    user-select: none;
    transition: background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.site-nav .tournament-tag:hover {
    background: rgba(255, 184, 28, 0.18);
    border-color: var(--gold-300);
    box-shadow: 0 0 0 1px var(--gold-300), 0 0 20px rgba(255, 184, 28, 0.45);
}

.site-nav .tournament-tag .chev {
    width: 12px;
    height: 12px;
    transition: transform 200ms ease;
}

.site-nav .tournament-tag.open .chev {
    transform: rotate(180deg);
}

.site-nav .home-region-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 260px;
    background: var(--bg-elevated);
    border: 1px solid var(--line-gold);
    border-radius: 12px;
    padding: 6px;
    display: none;
    z-index: 60;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.65), 0 0 30px rgba(255, 184, 28, 0.18);
    animation: menuIn 220ms cubic-bezier(0.16, 1, 0.30, 1);
}

@keyframes menuIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.site-nav .tournament-tag.open .home-region-menu {
    display: block;
}

.site-nav .home-region-menu .opt {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--fg-primary);
    transition: background 150ms ease;
}

.site-nav .home-region-menu .opt:hover {
    background: rgba(255, 184, 28, 0.10);
}

.site-nav .home-region-menu .opt.disabled {
    color: var(--fg-muted);
    cursor: not-allowed;
}

.site-nav .home-region-menu .opt.disabled:hover {
    background: rgba(255, 255, 255, 0.04);
}

.site-nav .home-region-menu .opt .badge {
    font-family: var(--font-display);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 3px 7px;
    border-radius: 4px;
    background: var(--line-default);
    color: var(--fg-muted);
}

.site-nav .home-region-menu .opt.on .badge {
    background: var(--gold-500);
    color: var(--fg-on-gold);
}

/* Language toggle (TH / EN) — reuse .lang-toggle from static_kit.css, but tighten in navbar */
.site-nav .home-lang-toggle {
    flex-shrink: 0;
}

/* ============== SOON POPUP ============== */
/* ============== HERO ============== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: -4%;
    z-index: -2;
    background: #050509 url('../images/bg-hero.png') center/cover no-repeat;
    transition: transform 600ms cubic-bezier(0.16, 1, 0.30, 1);
    will-change: transform, opacity, filter;
    /* slow gentle fade-in from dark+blur, ride for ~3.6s */
    animation: heroBgFade 3600ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes heroBgFade {
    0% {
        opacity: 0;
        filter: blur(14px) brightness(0.35) saturate(0.6);
        transform: scale(1.10);
    }

    60% {
        opacity: 0.7;
        filter: blur(4px) brightness(0.75) saturate(0.85);
    }

    100% {
        opacity: 1;
        filter: blur(0) brightness(1) saturate(1);
        transform: scale(1.00);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 55% at 50% 40%, rgba(255, 184, 28, 0.10) 0%, transparent 60%),
        linear-gradient(180deg, rgba(7, 7, 12, 0.55) 0%, rgba(7, 7, 12, 0) 30%, rgba(7, 7, 12, 0) 60%, rgba(7, 7, 12, 0.85) 100%);
}

.hero-scan {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0, rgba(255, 255, 255, 0.018) 1px, transparent 1px, transparent 3px);
    mix-blend-mode: overlay;
}

/* ==== GOD RAYS — slanted volumetric light beams ==== */
.hero-godrays {
    position: absolute;
    inset: -20%;
    z-index: -1;
    pointer-events: none;
    background:
        repeating-linear-gradient(105deg,
            transparent 0,
            transparent 80px,
            rgba(255, 212, 80, 0.045) 80px,
            rgba(255, 212, 80, 0.085) 120px,
            transparent 200px,
            transparent 340px);
    mix-blend-mode: screen;
    opacity: 0.55;
    filter: blur(2px);
    animation: rayDrift 18s linear infinite, rayFlicker 7s ease-in-out infinite;
    transform-origin: center;
}

@keyframes rayDrift {
    0% {
        transform: translateX(-4%) translateY(-2%);
    }

    50% {
        transform: translateX(4%) translateY(2%);
    }

    100% {
        transform: translateX(-4%) translateY(-2%);
    }
}

@keyframes rayFlicker {

    0%,
    100% {
        opacity: 0.45;
    }

    40% {
        opacity: 0.70;
    }

    60% {
        opacity: 0.55;
    }
}

/* ==== PULSE GLOW — diffuse expanding aura after logo appears ==== */
.hero-pulse {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
    z-index: -1;
    pointer-events: none;
    /* No border at all — pure soft radial glow */
    background: radial-gradient(circle,
            rgba(255, 212, 80, 0.55) 0%,
            rgba(255, 184, 28, 0.40) 18%,
            rgba(255, 138, 28, 0.22) 40%,
            rgba(255, 138, 28, 0.08) 65%,
            transparent 85%);
    filter: blur(28px);
    mix-blend-mode: screen;
    animation: heroPulse 3600ms cubic-bezier(0.22, 1, 0.36, 1) 1800ms 1 both;
}

@keyframes heroPulse {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.4);
        filter: blur(40px);
    }

    25% {
        opacity: 0.85;
        filter: blur(28px);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(4.2);
        filter: blur(60px);
    }
}

/* ==== VIGNETTE BREATHING ==== */
.hero-vignette {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(ellipse 60% 80% at 50% 50%, transparent 40%, rgba(7, 7, 12, 0.55) 100%);
    animation: vignetteBreath 6s ease-in-out infinite;
}

@keyframes vignetteBreath {

    0%,
    100% {
        opacity: 0.85;
    }

    50% {
        opacity: 1.00;
    }
}

/* ==== EMBERS — gold particles drifting upward ==== */
.hero-embers {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.hero-embers .ember {
    position: absolute;
    bottom: -10px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: radial-gradient(circle, #FFE8A0 0%, rgba(255, 184, 28, 0.85) 40%, transparent 70%);
    box-shadow: 0 0 8px rgba(255, 184, 28, 0.85), 0 0 18px rgba(255, 184, 28, 0.45);
    filter: blur(0.5px);
    animation: emberRise linear infinite;
    opacity: 0;
}

@keyframes emberRise {
    0% {
        transform: translate(0, 0) scale(0.8);
        opacity: 0;
    }

    10% {
        opacity: 0.95;
    }

    60% {
        opacity: 0.95;
    }

    100% {
        transform: translate(var(--dx, 20px), -110vh) scale(1.2);
        opacity: 0;
    }
}

.hero-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px 24px 0;
    position: relative;
}

/* Hero logo wrapper handles the entrance (transform + filter)
   then the inner <img> runs continuous float + breath without conflict.
   Single ease from start to rest — no pauses, no overshoot. */
.hero-logo-wrap {
    display: inline-block;
    will-change: transform, filter, opacity;
    animation: heroLogoIn 2000ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes heroLogoIn {
    0% {
        opacity: 0;
        transform: scale(1.18) translateY(26px);
        filter: blur(20px) brightness(0.55);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0) brightness(1);
    }
}

.hero-logo {
    max-width: min(740px, 70vw);
    height: auto;
    will-change: transform, filter;
    filter: drop-shadow(0 12px 36px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 50px rgba(255, 184, 28, 0.35));
    animation:
        heroLogoBreath 6s ease-in-out infinite,
        heroLogoFloat 7s ease-in-out infinite;
}

/* Continuous breathing glow — only filter changes, very smooth */
@keyframes heroLogoBreath {

    0%,
    100% {
        filter: drop-shadow(0 12px 36px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 40px rgba(255, 184, 28, 0.30));
    }

    50% {
        filter: drop-shadow(0 12px 36px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 90px rgba(255, 184, 28, 0.60)) drop-shadow(0 0 26px rgba(255, 138, 28, 0.35));
    }
}

/* Idle float — only transform changes, gentle vertical sway */
@keyframes heroLogoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* ============== HERO SIDE BUTTONS (right column) ============== */
.hero-sidebar {
    position: fixed;
    top: 50%;
    right: 32px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 999;
    pointer-events: auto;
}

/* Enter LAST and SLOWER — after logo (2s) and pulse (1.8s start + 3.6s = 5.4s)
   start ~3.6s, stagger gentle */
.hero-sidebar .hero-action {
    opacity: 0;
    transform: translateX(70px);
    animation: sidebarItemIn 1400ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-sidebar .hero-action:nth-child(1) {
    animation-delay: 3600ms;
}

.hero-sidebar .hero-action:nth-child(2) {
    animation-delay: 3900ms;
}

.hero-sidebar .hero-action:nth-child(3) {
    animation-delay: 4200ms;
}

/* On non-home pages, show sidebar immediately without animation */
body[data-page="01-landing"],
body[data-page="02-roid"],
body[data-page="03-team-code"],
body[data-page="04-leader-form"],
body[data-page="05-member-form"],
body[data-page="06-confirm-modal"],
body[data-page="07-success-modal"],
body[data-page="08-dashboard-captain"],
body[data-page="09-dashboard-member"],
body[data-page="10-noteam-popup"],
body[data-page="11-claim-testid"],
body[data-page="tournament"] {
    --hero-sidebar-show: 1;
}

/* Home page: keep the animation and default opacity (0 → 1 via animation) */
body[data-page="home"] .hero-sidebar .hero-action {
    opacity: 0;
    transform: translateX(70px);
}

/* Other pages: show immediately without animation */
body[data-page]:not([data-page="home"]) .hero-sidebar .hero-action {
    opacity: 1;
    transform: translateX(0);
    animation: none;
}

@keyframes sidebarItemIn {
    0% {
        opacity: 0;
        transform: translateX(70px);
        filter: blur(10px) brightness(0.5);
    }

    60% {
        opacity: 0.95;
        filter: blur(2px) brightness(1.1);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0) brightness(1);
    }
}

.hero-action {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 122px;
    height: 122px;
    padding: 0 20px 0 26px;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-100);
    text-decoration: none;
    cursor: pointer;
    /* Frame 175 as the button frame background, plus a subtle gold tint behind */
    background:
        url('../images/Frame175.png') center/100% 100% no-repeat;
    border: none;
    border-radius: 0;
    /*
    box-shadow:
        0 14px 28px rgba(0, 0, 0, 0.55),
        0 0 24px rgba(255, 184, 28, 0.15);
        */
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.45));
    overflow: visible;
    transition: transform 280ms cubic-bezier(0.16, 1, 0.30, 1), filter 260ms ease, color 220ms ease;
    text-align: center;
}
/*

.hero-action::before {
     gold sheen sweep — confined inside the visible bounds 
    content: '';
    position: absolute;
    inset: 6px;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.22) 50%, transparent 70%);
    transform: translateX(-130%);
    transition: transform 800ms ease;
    pointer-events: none;
    mix-blend-mode: screen;
    border-radius: 8px;
}

.hero-action:hover::before {
    transform: translateX(130%);
}

.hero-action:hover {
    transform: translateX(-6px) scale(1.03);
    color: #FFF7D5;
    filter:
        drop-shadow(0 10px 22px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 22px rgba(255, 184, 28, 0.65)) brightness(1.15);
}
*/

.hero-action svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}

.hero-action .label {
    white-space: nowrap;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7), 0 0 10px rgba(255, 184, 28, 0.4);
    white-space: break-spaces;
}

.hero-action.is-primary {
    /* TOURNAMENT REGISTER — emphasize with stronger glow */
    color: #FFF8D0;
    filter:
        drop-shadow(0 8px 20px rgba(255, 184, 28, 0.40)) drop-shadow(0 0 18px rgba(255, 184, 28, 0.55)) brightness(1.10);
}

.hero-action.is-primary::after {
    /* Soft pulsing aura — diffuse glow, no hard border */
    content: '';
    position: absolute;
    inset: -18px;
    pointer-events: none;
    z-index: -1;
    background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(255, 212, 80, 0.45) 0%, rgba(255, 184, 28, 0.15) 45%, transparent 75%);
    filter: blur(10px);
    opacity: 0;
    animation: ctaPulse 2.6s ease-out infinite;
    animation-delay: 4500ms;
}

@keyframes ctaPulse {
    0% {
        opacity: 0;
        transform: scale(0.85);
    }

    40% {
        opacity: 0.9;
    }

    100% {
        opacity: 0;
        transform: scale(1.25);
    }
}

.hero-action.is-primary:hover {
    color: #FFFCE0;
    filter:
        drop-shadow(0 12px 26px rgba(255, 184, 28, 0.70)) drop-shadow(0 0 30px rgba(255, 184, 28, 0.75)) brightness(1.25);
}

/* ============== EVENT NEWS ============== */
.event-news {
    position: relative;
    padding: 20px 64px 64px;
    z-index: 4;
}

.event-news-title-wrap {
    text-align: center;
    margin-bottom: 22px;
    filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.55)) drop-shadow(0 0 22px rgba(255, 184, 28, 0.55));
}

.event-news-title {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 0.08em;
    position: relative;
    display: inline-block;
    background: linear-gradient(90deg, #FFB81C 0%, #FFF1C2 25%, #FFD23F 50%, #FFF1C2 75%, #FFB81C 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: titleShimmer 5s linear infinite;
}

@keyframes titleShimmer {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

.event-news-title::before,
.event-news-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
    box-shadow: 0 0 8px rgba(255, 184, 28, 0.55);
}

.event-news-title::before {
    right: calc(100% + 24px);
}

.event-news-title::after {
    left: calc(100% + 24px);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr) auto;
    gap: 16px;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
}

.news-card {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 14px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(11, 11, 18, 0.78);
    border: 1px solid var(--line-default);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    cursor: pointer;
    text-decoration: none;
    transition: transform 250ms cubic-bezier(0.16, 1, 0.30, 1), border-color 200ms ease, box-shadow 250ms ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    animation: newsCardIn 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.news-card:nth-child(1) {
    animation-delay: 2400ms;
}

.news-card:nth-child(2) {
    animation-delay: 2600ms;
}

.news-card:nth-child(3) {
    animation-delay: 2800ms;
}

.news-grid .news-more {
    animation: newsCardIn 900ms cubic-bezier(0.22, 1, 0.36, 1) 3000ms both;
}

@keyframes newsCardIn {
    from {
        opacity: 0;
        transform: translateY(24px);
        filter: blur(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.news-card::after {
    /* edge glow */
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255, 184, 28, 0);
    transition: box-shadow 250ms ease;
}

.news-card:hover {
    transform: translateY(-3px);
    border-color: var(--line-gold);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.55), 0 0 24px rgba(255, 184, 28, 0.25);
}

.news-card:hover::after {
    box-shadow: inset 0 0 0 1px rgba(255, 184, 28, 0.40);
}

.news-thumb {
    width: 96px;
    height: 96px;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(135deg, #2A1A28, #1A0A18);
    border: 1px solid var(--line-soft);
    position: relative;
}

/*
.news-thumb::before {
    content: 'DEV TALK';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--gold-300);
    background: linear-gradient(180deg, rgba(255, 184, 28, 0.10), rgba(0, 0, 0, 0.50));
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}
*/

.news-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.news-date {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.10em;
    color: var(--gold-500);
}

.news-title {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--fg-primary);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
}

.news-sub {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--fg-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 80px;
    height: 80px;
    padding: 0 14px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 184, 28, 0.16), rgba(255, 184, 28, 0.04));
    border: 1px solid var(--line-gold);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-300);
    text-decoration: none;
    cursor: pointer;
    transition: all 200ms cubic-bezier(0.16, 1, 0.30, 1);
    align-self: center;
}

.news-more:hover {
    transform: translateY(-2px) scale(1.02);
    border-color: var(--gold-300);
    color: #FFF;
    box-shadow: 0 12px 28px rgba(255, 184, 28, 0.30);
}

.news-more svg {
    width: 12px;
    height: 12px;
}

/* ============== INTRO SECTION 2 — FULL SCREEN / FULL BLEED ============== */
.intro {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0;
    /* no horizontal padding — inner has it */
    background: #050509;
    overflow: hidden;
}

/* ---- BG art (uses bg 1.png) ---- */
.intro-bg {
    position: absolute;
    inset: 0;
    z-index: -5;
    background: url('../images/bg%201.png') center/cover no-repeat;
    opacity: 0.55;
    filter: blur(3px) brightness(0.7) saturate(0.85);
    transform: scale(1.06);
    animation: introBgDrift 28s ease-in-out infinite alternate;
}

@keyframes introBgDrift {
    0% {
        transform: scale(1.06) translate(-1.5%, -1%);
    }

    100% {
        transform: scale(1.10) translate(1.5%, 1%);
    }
}

/* ---- Aurora gradient blobs that breathe ---- */
.intro-aurora {
    position: absolute;
    inset: -10%;
    z-index: -4;
    pointer-events: none;
    background:
        radial-gradient(ellipse 50% 60% at 20% 50%, rgba(255, 184, 28, 0.22) 0%, transparent 60%),
        radial-gradient(ellipse 50% 55% at 80% 45%, rgba(255, 138, 28, 0.18) 0%, transparent 65%),
        radial-gradient(ellipse 40% 50% at 50% 80%, rgba(158, 27, 44, 0.20) 0%, transparent 70%);
    filter: blur(40px);
    mix-blend-mode: screen;
    animation: introAurora 14s ease-in-out infinite alternate;
}

@keyframes introAurora {
    0% {
        transform: translate(-2%, -1%) scale(1);
        opacity: 0.8;
    }

    50% {
        transform: translate(2%, 1%) scale(1.08);
        opacity: 1;
    }

    100% {
        transform: translate(0, 2%) scale(1.04);
        opacity: 0.9;
    }
}

/* ---- Diagonal light rays drifting across ---- */
.intro-rays {
    position: absolute;
    inset: -10%;
    z-index: -3;
    pointer-events: none;
    background: repeating-linear-gradient(115deg,
            transparent 0,
            transparent 120px,
            rgba(255, 212, 80, 0.05) 120px,
            rgba(255, 212, 80, 0.10) 180px,
            transparent 260px,
            transparent 440px);
    mix-blend-mode: screen;
    opacity: 0.55;
    filter: blur(3px);
    animation: introRayDrift 22s linear infinite;
}

@keyframes introRayDrift {
    0% {
        transform: translateX(-6%) translateY(-2%);
    }

    100% {
        transform: translateX(6%) translateY(2%);
    }
}

/* ---- Rune circles (decorative behind character) ---- */
.intro-rune {
    position: absolute;
    right: -30%;
    top: 50%;
    transform: translateY(-50%);
    /*  width: min(78vh, 720px); */
    width: 100%;
    aspect-ratio: 1/1;
    z-index: -2;
    pointer-events: none;
    opacity: 0.6;
    filter: drop-shadow(0 0 30px rgba(255, 184, 28, 0.30));
    animation: runeSpin 60s linear infinite;
}

.intro-rune svg {
    width: 100%;
    height: 100%;
}

.intro-rune svg circle:nth-child(1) {
    transform-origin: 300px 300px;
    animation: spinCW 80s linear infinite;
}

.intro-rune svg circle:nth-child(2) {
    transform-origin: 300px 300px;
    animation: spinCCW 60s linear infinite;
}

.intro-rune svg circle:nth-child(3) {
    transform-origin: 300px 300px;
    animation: spinCW 100s linear infinite;
}

.intro-rune svg circle:nth-child(4) {
    transform-origin: 300px 300px;
    animation: spinCCW 45s linear infinite;
}

@keyframes spinCW {
    from {
        transform: rotate(0);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes spinCCW {
    from {
        transform: rotate(0);
    }

    to {
        transform: rotate(-360deg);
    }
}

@keyframes runeSpin {
    from {
        filter: drop-shadow(0 0 20px rgba(255, 184, 28, 0.25));
    }

    50% {
        filter: drop-shadow(0 0 50px rgba(255, 184, 28, 0.55));
    }

    to {
        filter: drop-shadow(0 0 20px rgba(255, 184, 28, 0.25));
    }
}

/* ---- Floating particles inside intro ---- */
.intro-particles {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.intro-particles .iparticle {
    position: absolute;
    bottom: -8px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: radial-gradient(circle, #FFE8A0 0%, rgba(255, 184, 28, 0.85) 40%, transparent 75%);
    box-shadow: 0 0 8px rgba(255, 184, 28, 0.85), 0 0 16px rgba(255, 184, 28, 0.45);
    filter: blur(0.4px);
    animation: iparticleRise linear infinite;
    opacity: 0;
}

@keyframes iparticleRise {
    0% {
        transform: translate(0, 0) scale(0.7);
        opacity: 0;
    }

    15% {
        opacity: 0.95;
    }

    70% {
        opacity: 0.85;
    }

    100% {
        transform: translate(var(--dx, 30px), -110vh) scale(1.3);
        opacity: 0;
    }
}

/* ---- Vignette around section for cinematic feel ---- */
.intro-vignette {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 80% at 50% 50%, transparent 50%, rgba(7, 7, 12, 0.55) 100%),
        linear-gradient(180deg, rgba(7, 7, 12, 0.45) 0%, transparent 25%, transparent 75%, rgba(7, 7, 12, 0.65) 100%);
}

/* ---- Inner content — full-bleed on wide displays ---- */
.intro-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 0 0 6vw;
    /* breathing room scales with viewport */
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(40px, 6vw, 120px);
    align-items: center;
}

.intro-left {
    display: flex;
    flex-direction: column;
    gap: 22px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1100ms ease, transform 1100ms cubic-bezier(0.22, 1, 0.36, 1);
    text-align: center;
    margin: auto;
    display: flow;
    line-height: 8;
    z-index: 1;
}

.intro-left.in {
    opacity: 1;
    transform: translateY(0);
}

.intro-logo {
    max-width: 600px;
    height: auto;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 40px rgba(255, 184, 28, 0.30));
    animation: introLogoBreath 5s ease-in-out infinite;
}

@keyframes introLogoBreath {

    0%,
    100% {
        filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 30px rgba(255, 184, 28, 0.25));
    }

    50% {
        filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 70px rgba(255, 184, 28, 0.55));
    }
}

.intro-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.15;
    letter-spacing: -0.005em;
    position: relative;
    white-space: pre-line;
    background: linear-gradient(180deg, #FFF6D0 0%, #FFD23F 45%, #FFB81C 80%, #C98A00 100%);
    background-size: 100% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.7)) drop-shadow(0 0 30px rgba(255, 184, 28, 0.55));
    animation: introTitleShine 7s ease-in-out infinite;
}

@keyframes introTitleShine {

    0%,
    100% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 0% 100%;
    }
}

/* Animated gold divider — gradient line that fades in and pulses */
.intro-divider {
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--gold-500) 40%, #FFF1C2 50%, var(--gold-500) 60%, transparent 100%);
    background-size: 200% 100%;
    box-shadow: 0 0 12px rgba(255, 184, 28, 0.65);
    position: relative;
    animation: introDividerShimmer 4s ease-in-out infinite;
    margin: 20px auto;
    display: block;
}

.intro-divider::before,
.intro-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold-300);
    box-shadow: 0 0 10px rgba(255, 212, 80, 0.85);
}

.intro-divider::before {
    left: 0;
}

.intro-divider::after {
    left: 200px;
}

@keyframes introDividerShimmer {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 200% 50%;
    }
}

.intro-desc {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.75;
    color: var(--fg-secondary);
    max-width: 540px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.intro-cta {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 48px;
    padding: 0 32px;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-100);
    background:
        linear-gradient(180deg, rgba(255, 184, 28, 0.20) 0%, rgba(255, 184, 28, 0.04) 100%),
        rgba(11, 11, 18, 0.85);
    border: 1.5px solid var(--gold-500);
    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(255, 184, 28, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.10);
    transition: all 250ms cubic-bezier(0.16, 1, 0.30, 1);
}

.intro-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.30) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 700ms ease;
}

.intro-cta:hover::before {
    transform: translateX(120%);
}

.intro-cta:hover {
    color: #FFF;
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(255, 184, 28, 0.55), 0 0 32px rgba(255, 184, 28, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.20);
}

.intro-cta svg {
    width: 14px;
    height: 14px;
}

.intro-right {
    position: relative;
    opacity: 0;
    transform: translateX(60px) scale(0.94);
    transition: opacity 1400ms ease, transform 1400ms cubic-bezier(0.22, 1, 0.36, 1);
}

.intro-right.in {
    opacity: 1;
    transform: translateX(0) scale(2);
    left: -50%;
}

/* Character glow halo — soft pulsing aura behind characters */
.intro-art-glow {
    position: absolute;
    inset: -15% -10%;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 55% 60% at 50% 55%, rgba(255, 184, 28, 0.30) 0%, transparent 60%),
        radial-gradient(ellipse 40% 45% at 40% 45%, rgba(255, 138, 28, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse 35% 40% at 60% 60%, rgba(158, 27, 44, 0.28) 0%, transparent 65%);
    filter: blur(30px);
    mix-blend-mode: screen;
    animation: introHaloBreath 6s ease-in-out infinite;
}

@keyframes introHaloBreath {

    0%,
    100% {
        opacity: 0.55;
        transform: scale(0.96);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

.intro-art {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    display: block;
    filter:
        drop-shadow(0 24px 70px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 60px rgba(255, 184, 28, 0.30));
    animation: introArtFloat 8s ease-in-out infinite;
    will-change: transform;
}

@keyframes introArtFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-14px);
    }
}

/* ============== SECTION 3 · MEMBER ENTRY — FULL BLEED ============== */
.entry {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0;
    /* full-bleed — slab spans 100vw */
    background: #050509;
    overflow: hidden;
}

.entry-bg {
    position: absolute;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    background: url('../images/bg%201.png') center/cover no-repeat;
    opacity: 0.18;
    filter: blur(4px) brightness(0.5);
}

.entry-aurora {
    position: absolute;
    inset: -10%;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(ellipse 60% 50% at 50% 30%, rgba(255, 184, 28, 0.18) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 50% 90%, rgba(158, 27, 44, 0.22) 0%, transparent 70%);
    filter: blur(30px);
    mix-blend-mode: screen;
    animation: entryAurora 16s ease-in-out infinite alternate;
}

@keyframes entryAurora {
    0% {
        transform: translate(-1.5%, -1%);
        opacity: 0.85;
    }

    100% {
        transform: translate(1.5%, 1%);
        opacity: 1;
    }
}

.entry-inner {
    position: relative;
    z-index: 2;
    max-width: 100%;
    margin: 0;
    width: 100%;
}

/* Grid — 3 cards touch each other (no gap), as one continuous slab — full-bleed */
.entry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    width: 100vw;
    max-width: 100%;
    border-radius: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 1100ms ease 150ms;
}

.entry-grid.in {
    opacity: 1;
}

/* CARD — each tile of the continuous slab. Hover only — click disabled on card itself */
.entry-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    aspect-ratio: 3 / 4;
    min-height: clamp(440px, 60vh, 720px);
    border-radius: 0;
    overflow: hidden;
    background: #0B0B12;
    cursor: default;
}

/* Sizer img — hidden on PC, used only on mobile */
.entry-card-sizer {
    display: none;
}

/* Two stacked image layers — base + hover (cross-fade by opacity only, no scale) */
.entry-card-img-base,
.entry-card-img-hover {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    transition: opacity 700ms ease;
    will-change: opacity;
}

.entry-card-img-base {
    opacity: 1;
}

.entry-card-img-hover {
    opacity: 0;
}

.entry-card:hover .entry-card-img-base {
    opacity: 0;
}

.entry-card:hover .entry-card-img-hover {
    opacity: 1;
}

/* Darkening overlay so text stays readable (no opacity change on hover so nothing flickers) */
.entry-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg,
            rgba(7, 7, 12, 0) 0%,
            rgba(7, 7, 12, 0) 38%,
            rgba(7, 7, 12, 0.65) 70%,
            rgba(7, 7, 12, 0.92) 100%);
}

/* Decorative corners (gold ornaments) — only on outer edges of the slab */
.entry-card-corner {
    position: absolute;
    width: 22px;
    height: 22px;
    z-index: 4;
    pointer-events: none;
    border: 1.5px solid var(--gold-500);
    opacity: 0.65;
    display: none;
}

.entry-card-corner.tl {
    top: 12px;
    left: 12px;
    border-right: none;
    border-bottom: none;
}

.entry-card-corner.tr {
    top: 12px;
    right: 12px;
    border-left: none;
    border-bottom: none;
}

.entry-card-corner.bl {
    bottom: 12px;
    left: 12px;
    border-right: none;
    border-top: none;
}

.entry-card-corner.br {
    bottom: 12px;
    right: 12px;
    border-left: none;
    border-top: none;
}

/* Show only the outer corners of the slab */
.entry-card:first-child .entry-card-corner.tl,
.entry-card:first-child .entry-card-corner.bl,
.entry-card:last-child .entry-card-corner.tr,
.entry-card:last-child .entry-card-corner.br {
    display: block;
}

/* Body content (sits on top of image+overlay) */
.entry-card-body {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 28px 24px 28px;
    text-align: center;
}

.entry-card-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 24px;
    line-height: 1.2;
    color: #FFFFFF;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8), 0 0 18px rgba(255, 184, 28, 0.35);
    transition: text-shadow 500ms ease, color 500ms ease;
}

.entry-card:hover .entry-card-title {
    color: #FFF6D0;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 184, 28, 0.85);
}

.entry-card-meta {
    font-family: var(--font-body);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.78);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
    margin-bottom: 4px;
}

/* Button on the card — the ONLY clickable element */
.entry-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
    width: 168px;
    height: 48px;
    padding: 0 18px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #FFFFC0;
    text-decoration: none;
    background: url('../images/Btn-Button.png') center/100% 100% no-repeat;
    border: none;
/*    text-shadow: 0 1px 0 rgba(255, 235, 150, 0.55);*/
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 10px rgba(255, 184, 28, 0.20));
    transition: filter 500ms ease, color 500ms ease;
    cursor: pointer;
    position: relative;
    z-index: 5;
}

.entry-card:hover .entry-card-btn {
    color: #FFFFC0;
    filter:
        drop-shadow(0 6px 14px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 22px rgba(255, 184, 28, 0.65)) brightness(1.08);
}

/* ============== SECTION 4 · REWARD ============== */
.reward {
    position: relative;
    min-height: 100vh;
    padding: 90px 32px 80px;
    background: #050509;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.reward-bg {
    position: absolute;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    background: url('../images/bg%201.png') center/cover no-repeat;
    opacity: 0.16;
    filter: blur(4px) brightness(0.5);
}

.reward-aurora {
    position: absolute;
    inset: -10%;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(ellipse 60% 40% at 50% 20%, rgba(255, 184, 28, 0.16) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 50% 80%, rgba(158, 27, 44, 0.18) 0%, transparent 70%);
    filter: blur(35px);
    mix-blend-mode: screen;
}

.reward-inner {
    position: relative;
    z-index: 2;
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Header */
.reward-header {
    text-align: center;
}

.reward-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1;
    background: linear-gradient(180deg, #FFF6D0 0%, #FFD23F 50%, #FFB81C 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.65)) drop-shadow(0 0 30px rgba(255, 184, 28, 0.55));
}

.reward-subtitle {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(18px, 2.4vw, 26px);
    margin-top: 8px;
    color: var(--gold-300);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

.reward-divider {
    width: 280px;
    height: 2px;
    margin: 14px auto 0;
    background: linear-gradient(90deg, transparent 0%, var(--gold-500) 50%, transparent 100%);
    box-shadow: 0 0 10px rgba(255, 184, 28, 0.45);
    position: relative;
}

.reward-divider::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: var(--gold-300);
    box-shadow: 0 0 10px rgba(255, 212, 80, 0.8);
}

/* Tabs */
.reward-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 4px;
}

.reward-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    height: 44px;
    padding: 0 22px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.04em;
    color: var(--gold-300);
    background:
        linear-gradient(180deg, rgba(255, 184, 28, 0.10) 0%, rgba(255, 184, 28, 0.02) 100%),
        rgba(11, 11, 18, 0.78);
    border: 1px solid rgba(255, 184, 28, 0.40);
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: color 250ms ease, background 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.reward-tab:hover {
    color: #FFF6D0;
    border-color: var(--gold-300);
    background: linear-gradient(180deg, rgba(255, 184, 28, 0.18) 0%, rgba(255, 184, 28, 0.06) 100%), rgba(11, 11, 18, 0.85);
    box-shadow: 0 0 22px rgba(255, 184, 28, 0.30);
}

.reward-tab.active {
    color: var(--fg-on-gold);
    background: linear-gradient(180deg, #FFD23F 0%, #FFB81C 100%);
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: 0 8px 22px rgba(255, 184, 28, 0.50), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Tab panels */
.reward-panels {
    position: relative;
    min-height: 320px;
}

.reward-panel {
    display: none;
    animation: rewardPanelFade 420ms ease both;
}

.reward-panel.active {
    display: block;
}

@keyframes rewardPanelFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Item card (reward) — used in tabs 1/2/3 */
.reward-card-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    max-width: 900px;
    margin: 0 auto;
}

.reward-card {
/*    background: url('../images/items/cardreward.png') center/100% 100% no-repeat;*/
    flex: 0 0 200px;
    min-height: 200px;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    position: relative;
    transition: filter 350ms ease;
}

.reward-card:hover {
    filter: drop-shadow(0 0 18px rgba(255, 184, 28, 0.45)) brightness(1.06);
}

.reward-card-grid > img {
    max-width: 220px;
    width: auto;
    height: auto;
}

.reward-card-grid--rank > img {
    flex: 0 1 calc(50% - 7px);
    max-width: 200px;
    height: auto;
}

.reward-card-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 12px;
    color: var(--gold-100);
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    white-space: pre-line;
    min-height: 30px;
}

.reward-card-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
}

.reward-card-qty {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 13px;
    color: var(--gold-300);
}

.reward-card-qty::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background: radial-gradient(circle, #FFD23F 30%, #FFB81C 70%);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(255, 184, 28, 0.7);
}

/* Champion rank cards (tab 3) */
.reward-rank-card {
    background: linear-gradient(180deg, rgba(255, 184, 28, 0.20), rgba(255, 184, 28, 0.05)), rgba(11, 11, 18, 0.7);
    border: 1px solid var(--line-gold);
    border-radius: 10px;
}

.reward-rank-card .reward-card-name {
    color: #FFF6D0;
    font-size: 13px;
}

/* === Event tab === */
.reward-event {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

.reward-event-head {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 18px;
    align-items: center;
    width: 100%;
    max-width: 880px;
}

.reward-event-head > img{
    max-width: 100%;
}
.reward-event-avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9E1B2C, #FF7A1A);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--gold-500);
    box-shadow: 0 0 30px rgba(255, 184, 28, 0.45), inset 0 0 30px rgba(0, 0, 0, 0.5);
    font-family: var(--font-display);
    font-weight: 700;
    color: #FFD23F;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
    position: relative;
    overflow: hidden;
}

.reward-event-avatar::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    pointer-events: none;
}

.reward-event-avatar .label {
    font-size: 16px;
    letter-spacing: 0.06em;
}

.reward-event-dates {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: rgba(11, 11, 18, 0.55);
    border: 1px solid var(--line-soft);
    border-radius: 10px;
    overflow: hidden;
}

.reward-event-date-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 14px;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line-soft);
}

.reward-event-date-row:last-child {
    border-bottom: none;
}

.reward-event-date {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 13px;
    color: var(--gold-300);
    white-space: nowrap;
}

.reward-event-desc {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--fg-secondary);
}

.reward-event-section-title {
    text-align: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    color: var(--fg-primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7), 0 0 12px rgba(255, 184, 28, 0.4);
    position: relative;
    padding: 8px 0;
}

.reward-event-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    max-width: 960px;
    width: 100%;
}

.reward-event-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 10px;
    padding: 12px 16px;
    background: rgba(11, 11, 18, 0.55);
    border: 1px solid var(--line-soft);
    border-radius: 10px;
    max-width: 760px;
    width: 100%;
}

.reward-event-list-row {
    display: grid;
    grid-template-columns: 32px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 6px 4px;
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--fg-primary);
}

.reward-event-list-row img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.reward-event-list-row .qty {
    font-family: var(--font-mono);
    color: var(--gold-300);
    font-weight: 700;
    font-size: 12px;
}

/* ============== RESPONSIVE ============== */
@media (max-width: 1100px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-grid .news-more {
        grid-column: 1 / -1;
        width: 100%;
        min-height: 48px;
    }

    .hero-sidebar {
        right: 20px;
    }

    .hero-action {
        width: 100px;
        height: 100px;
        font-size: 11px;
    }

    .entry-grid {
        gap: 16px;
    }

    .entry-card {
        min-height: 400px;
    }

    .entry-card-title {
        font-size: 20px;
    }

    .entry-card-meta {
        font-size: 12px;
    }

    .entry-card-btn {
        min-width: 124px;
        font-size: 12px;
    }
}

@media (max-width: 900px) {
    .site-nav {
        padding: 14px 16px;
        gap: 12px;
        flex-wrap: wrap;
    }

    .site-nav .nav-links {
        display: none;
/*
        order: 3;
        flex: 1 1 100%;
        justify-content: center;
        flex-wrap: wrap;
*/
    }

    .site-nav .tournament-tag {
        font-size: 10px;
        padding: 6px 10px;
    }

    .hero-sidebar {
        right: 12px;
        gap: 10px;
    }

    .hero-action {
        width: 80px;
        height: 80px;
        font-size: 10px;
    }

    /* Hide DOWNLOAD CLIENT on responsive (per spec) */
    .hero-action[data-action="download-client"] {
        display: none;
    }

    .hero-center {
        padding: 120px 24px 0;
    }

    .hero-logo {
        max-width: min(560px, 86vw);
    }

    .event-news {
        padding: 16px 16px 48px;
    }

    .event-news-title {
        font-size: 22px;
    }

    .event-news-title::before,
    .event-news-title::after {
        width: 40px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .intro {
        padding: 80px 0;
        min-height: 100vh;
                align-items: end;
    }

    .intro-inner {
        padding: 0 5vw;
    }

    .intro-left {
        align-items: center;
    }

    .intro-logo {
        max-width: 240px;
    }

    .intro-title {
        font-size: 26px;
    }

    .intro-divider {
        margin: 0 auto;
        width: 160px;
    }

    .intro-divider::after {
        left: 160px;
    }

    .intro-cta {
        align-self: center;
    }

    .intro-desc {
        font-size: 14px;
    }

    .intro-rune {
        right: -30%;
        opacity: 0.35;
    }

    /* Section 4 responsive */
    .reward {
        padding: 70px 16px 60px;
        min-height: auto;
    }

    .reward-tab {
        min-width: 0;
        padding: 0 14px;
        font-size: 11px;
        height: 38px;
        flex: 1 1 calc(50% - 8px);
    }

    .reward-event-head {
               grid-template-columns: 1fr 1fr;
        text-align: center;
        display: grid;
    }

    .reward-event-avatar {
        margin: 0 auto;
        width: 120px;
        height: 120px;
    }

    .reward-event-date-row {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .reward-event-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .reward-event-list {
        grid-template-columns: 1fr;
    }

    /* Section 3 responsive — stack vertically as a single column slab */
    .entry {
        padding: 0 0 0 0;
        min-height: auto;
    }

    .entry-grid {
        width: 100%;
    }

    .entry-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Mobile — let image drive the card height naturally */
    .entry-card {
        aspect-ratio: unset;
        min-height: unset;
    }

    .entry-card-sizer {
        display: block;
        width: 100%;
        height: auto;
        visibility: hidden;
        pointer-events: none;
        flex-shrink: 0;
    }

    .entry-card + .entry-card {
        border-left: none;
        border-top: 1px solid rgba(255, 184, 28, 0.30);
        box-shadow: 0 -1px 0 0 rgba(255, 184, 28, 0.05);
    }

    /* Re-map outer corners when stacked: first card shows top, last card shows bottom */
    .entry-card-corner.tr,
    .entry-card-corner.bl {
        display: none !important;
    }

    .entry-card:first-child .entry-card-corner.tr {
        display: block !important;
    }

    .entry-card:last-child .entry-card-corner.bl {
        display: block !important;
    }

    .entry-card-title {
        font-size: 22px;
    }
}

/* ============ MOBILE HERO + INTRO (≤768px) ============ */
@media (max-width: 768px) {
    /* Switch to portrait hero background */
    .hero-bg {
        background-image: url('../images/bg-hero-mb.png');
        background-position: top center;
    }

    /* Section 2 — mobile bg + hide character */
    .intro{
            align-items: end;
    }
    .intro-bg {
        background: url('../images/bg-about-mb.png') top/100% no-repeat;
        opacity: 1;
        filter: none;
    }

    .intro-right {
        display: none;
    }

    .intro-inner {
        grid-template-columns: 1fr;
        max-width: 760px;
        margin: 0 auto;
        padding: 0 6vw;
        text-align: center;
    }

    /* Logo sits at the bottom of the hero (just above news strip) */
    .hero-center {
        align-items: flex-end;
        padding: 80px 24px 20px;
    }

    /* Show only 1 news card — hide 2nd and 3rd */
    .news-card:nth-child(2),
    .news-card:nth-child(3) {
        display: none;
    }

    /* 1 card + "more" button side by side */
    .news-grid {
        grid-template-columns: 1fr auto;
        align-items: center;
    }

    .news-grid .news-more {
        grid-column: unset;
        width: 64px;
        height: 64px;
        min-height: unset;
    }   
    
    .entry-card {
            height: 80vh;
        padding-bottom: 50px;
    }
}

@media (max-width: 560px) {
    .site-nav {
        padding: 12px 12px;
    }

    .site-nav .brand-mark img {
        height: 32px;
    }

    .site-nav .nav-links {
        gap: 0;
    }

    .site-nav .nav-links a,
    .site-nav .nav-links .nav-item {
        padding: 6px 8px;
        font-size: 11px;
    }

    .hero-sidebar {
        right: 8px;
        gap: 8px;
        top:40%;
    }

    .hero-action {
        width: 80px;
        height: 80px;
        font-size: 10px;
        letter-spacing: 0.14em;
        padding: 0 10px;
    }

    .hero-action svg {
        width: 12px;
        height: 12px;
    }
    
    
    .reward-event-head{
        display: block;
    }
    .reward-card{
        min-height: auto;
    }
    
    .reward-event-grid{
         grid-template-columns: repeat(3, 1fr);
    }
}
