/* =========================================
   HLW Wave 2 Landing Page — Styles
   ========================================= */

/* ----- Base ----- */
html { scroll-behavior: smooth; }
body { background-color: #0a0a12; }
::selection { background: rgba(212,168,70,0.3); color: #fff; }

/* ----- Scrollbar ----- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a0a12; }
::-webkit-scrollbar-thumb { background: rgba(212,168,70,0.2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(212,168,70,0.4); }

/* ----- Sticky Nav ----- */
#main-nav {
    background: transparent;
    transition: background 0.3s, backdrop-filter 0.3s, box-shadow 0.3s;
}
#main-nav.scrolled {
    background: rgba(10,10,18,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(212,168,70,0.05);
}
.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: #d4a846;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.nav-link.active { color: #d4a846; }
.nav-link.active::after { transform: scaleX(1); }

/* ----- Mouse Glow ----- */
.mouse-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212,168,70,0.04) 0%, rgba(45,27,105,0.02) 40%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    will-change: left, top;
}

/* ----- Hero Section ----- */
#hero {
    background:
        radial-gradient(ellipse 80% 50% at 50% 45%, rgba(45,27,105,0.3) 0%, transparent 60%),
        radial-gradient(ellipse 40% 30% at 50% 40%, rgba(212,168,70,0.03) 0%, transparent 50%),
        linear-gradient(180deg, #0a0a12 0%, #0c0c16 50%, #0a0a12 100%);
}

.hero-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(212,168,70,0.04);
}
.hero-ring-1 { width: 300px; height: 300px; animation: ring-pulse 6s ease-in-out infinite; }
.hero-ring-2 { width: 500px; height: 500px; animation: ring-pulse 6s ease-in-out 1s infinite; }
.hero-ring-3 { width: 750px; height: 750px; animation: ring-pulse 6s ease-in-out 2s infinite; }

@keyframes ring-pulse {
    0%, 100% { opacity: 0.3; border-color: rgba(212,168,70,0.03); }
    50% { opacity: 1; border-color: rgba(212,168,70,0.06); }
}

.hero-glow {
    background: radial-gradient(circle, rgba(212,168,70,0.04) 0%, rgba(45,27,105,0.02) 40%, transparent 70%);
    animation: glow-pulse 5s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(0.95); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
}

/* Timeline current-stage radio-pulse — fades in AND out at both endpoints
   so the loop has no visible snap-back (vs Tailwind's animate-ping which
   resets from opacity 0 to opacity 1 instantly between cycles). */
@keyframes timeline-ping {
    0%   { transform: scale(1);   opacity: 0;   }
    20%  { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(2);   opacity: 0;   }
}
.animate-timeline-ping {
    animation: timeline-ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Hero responsive */
@media (min-width: 1280px) and (min-height: 700px) {
    .hero-logo { width: 400px !important; }
}
@media (min-width: 1536px) and (min-height: 1000px) {
    .hero-logo { width: 460px !important; }
}

/* ----- Button Shimmer ----- */
.btn-shimmer { position: relative; overflow: hidden; }
.btn-shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    animation: shimmer-sweep 3s ease-in-out 2s infinite;
}
@keyframes shimmer-sweep {
    0% { left: -100%; }
    40% { left: 150%; }
    100% { left: 150%; }
}

/* ----- Particles ----- */
.particle {
    position: absolute;
    border-radius: 50%;
    background: #d4a846;
    pointer-events: none;
    animation: float-particle linear infinite;
}
@keyframes float-particle {
    0% { transform: translateY(0) translateX(0); opacity: var(--particle-opacity, 0.2); }
    25% { transform: translateY(-25vh) translateX(10px); }
    50% { transform: translateY(-50vh) translateX(-10px); opacity: calc(var(--particle-opacity, 0.2) * 1.5); }
    75% { transform: translateY(-75vh) translateX(15px); }
    100% { transform: translateY(-100vh) translateX(0); opacity: 0; }
}

/* ----- Parallax ----- */
.parallax-layer { will-change: transform; }

/* ----- Section Divider ----- */
.section-divider {
    position: relative;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -1.3rem auto;
    z-index: 5;
    max-width: 72rem;
    padding: 0 1.5rem;
}
.section-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%, rgba(212,168,70,0.05) 15%, rgba(212,168,70,0.25) 40%,
        rgba(212,168,70,0.4) 50%, rgba(212,168,70,0.25) 60%, rgba(212,168,70,0.05) 85%, transparent 100%);
    transform: translateY(-50%);
}
.section-divider::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    width: 10px;
    height: 10px;
    background: rgba(212,168,70,0.3);
    border: 1px solid rgba(212,168,70,0.5);
    transform: translate(-50%, -50%) rotate(45deg);
    box-shadow: 0 0 12px rgba(212,168,70,0.2), 0 0 30px rgba(212,168,70,0.08);
    animation: diamond-glow 4s ease-in-out infinite;
}
@keyframes diamond-glow {
    0%, 100% { opacity: 0.5; box-shadow: 0 0 8px rgba(212,168,70,0.15), 0 0 20px rgba(212,168,70,0.05); }
    50% { opacity: 1; box-shadow: 0 0 15px rgba(212,168,70,0.3), 0 0 40px rgba(212,168,70,0.1); }
}

/* ----- Kingdom Card Backgrounds (subtle landscape behind text) ----- */
.kingdom-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.10;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}
.kingdom-card:hover .kingdom-card-bg {
    opacity: 0.18;
}

/* ----- Scroll Reveal ----- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* ----- Timeline ----- */
.timeline-bar { position: relative; }

/* ----- Platform Chips ----- */
.platform-chip {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    white-space: nowrap;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border: 1px solid rgba(107,114,128,0.3);
    border-radius: 9999px;
    background: transparent;
    color: rgba(156,163,175,0.7);
    font-size: 0.75rem;
    font-family: inherit;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
}
.platform-chip:hover { border-color: rgba(212,168,70,0.4); color: rgba(212,168,70,0.8); }
.platform-chip.active {
    border-color: rgba(212,168,70,0.6);
    background: rgba(212,168,70,0.08);
    color: #d4a846;
    box-shadow: 0 0 12px rgba(212,168,70,0.1);
}

/* ----- Form ----- */
#email-input.shake { animation: input-shake 0.4s ease; border-color: #f87171; }
@keyframes input-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}
#email-input:focus {
    box-shadow: 0 0 0 1px rgba(212,168,70,0.5), 0 0 20px rgba(212,168,70,0.1);
}
#email-input:-webkit-autofill,
#email-input:-webkit-autofill:hover,
#email-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px rgba(26,26,46,1) inset;
    -webkit-text-fill-color: #fff;
    caret-color: #fff;
    transition: background-color 5000s ease-in-out 0s;
}

/* Golden flash */
.golden-flash {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, rgba(212,168,70,0.3) 0%, transparent 70%);
    pointer-events: none;
    z-index: 100;
    animation: golden-flash-anim 0.8s ease forwards;
}
@keyframes golden-flash-anim {
    0% { opacity: 0; }
    20% { opacity: 1; }
    100% { opacity: 0; }
}

/* Success particles */
.success-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #d4a846;
    pointer-events: none;
    animation: burst-particle 1s ease forwards;
}
@keyframes burst-particle {
    0% { opacity: 1; transform: translate(0,0) scale(1); }
    100% { opacity: 0; transform: translate(var(--burst-x, 50px), var(--burst-y, -50px)) scale(0); }
}

/* Success state */
#signup-success { animation: fade-up 0.5s ease forwards; }
@keyframes fade-up {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ----- Hero Cards ----- */
.hero-card-inner {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.hero-card.revealed .hero-card-inner {
    cursor: pointer;
}
.hero-card.revealed .hero-card-inner:hover {
    border-color: rgba(212,168,70,0.6);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(212,168,70,0.15), 0 0 15px rgba(212,168,70,0.05);
}
.hero-card.revealed .hero-card-inner::after {
    content: 'Click to view details';
    display: block;
    margin-top: 0.6rem;
    font-size: 0.7rem;
    color: rgba(255,255,255,0);
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
}
.hero-card.revealed .hero-card-inner:hover::after {
    color: rgba(255,255,255,0.95);
    background: rgba(212,168,70,0.25);
    backdrop-filter: blur(4px);
}
.hero-card-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(300px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(212,168,70,0.06), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.hero-card-inner:hover::before { opacity: 1; }

/* Non-Ironclad hero cards: lore not yet revealed, so cards are non-clickable */
.hero-card.revealed:not([data-hero="ironclad"]) .hero-card-inner {
    cursor: default;
}
.hero-card.revealed:not([data-hero="ironclad"]) .hero-card-inner:hover {
    border-color: rgba(212,168,70,0.2);
    transform: none;
    box-shadow: none;
}
.hero-card.revealed:not([data-hero="ironclad"]) .hero-card-inner::after {
    content: none;
}
.hero-card.revealed:not([data-hero="ironclad"]) .hero-card-inner:hover::before {
    opacity: 0;
}

/* P2E Callout */
.p2e-icon {
    animation: p2e-pulse 4s ease-in-out infinite;
}
@keyframes p2e-pulse {
    0%, 100% {
        box-shadow: 0 10px 30px -10px rgba(212,168,70,0.15);
    }
    50% {
        box-shadow: 0 10px 40px -5px rgba(212,168,70,0.3);
    }
}

/* Semi-reveal background dimming (cards with "Art Reveal Soon" badge) */
.hero-card-splash:has(.semi-reveal-label) {
    position: relative;
    box-shadow: inset 0 0 0 100vh rgba(10,10,18,0.35);
    transition: box-shadow 0.3s ease;
}
.hero-card-splash:has(.semi-reveal-label):hover {
    box-shadow: inset 0 0 0 100vh rgba(10,10,18,0.15);
}

/* Semi-reveal "Art Reveal Soon" badge */
.semi-reveal-label {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 0.55rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 9999px;
    background: rgba(212,168,70,0.15);
    color: rgba(212,168,70,0.95);
    border: 1px solid rgba(212,168,70,0.35);
    backdrop-filter: blur(4px);
    z-index: 2;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

/* Splash art hero cards */
.hero-card-splash {
    background-size: cover;
    background-position: center top;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
}
.hero-card-splash-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem 1rem 1rem;
    background: linear-gradient(to top, rgba(10,10,18,0.95) 0%, rgba(10,10,18,0.7) 50%, transparent 100%);
}

/* Mystery cards */
.hero-card-mystery {
    background-image: url('../assets/heroes/hero-mystery.jpg');
    background-size: cover;
    background-position: center top;
    border: 1px solid rgba(75,85,99,0.15);
    border-radius: 0.75rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    min-height: 320px;
    position: relative;
    overflow: hidden;
}
.hero-card-mystery .mystery-content {
    padding: 1rem;
    width: 100%;
    background: linear-gradient(to top, rgba(10,10,18,0.9) 0%, transparent 100%);
}
/* Ensure all hero cards in a row stretch to same height */
.hero-grid-row .hero-card { display: flex; }
.hero-grid-row .hero-card > * { width: 100%; }
.hero-card-inner { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.mystery-mark {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    font-weight: 700;
    color: rgba(75,85,99,0.3);
    animation: mystery-pulse 3s ease-in-out infinite;
}
@keyframes mystery-pulse {
    0%, 100% { opacity: 0.3; text-shadow: 0 0 0 transparent; }
    50% { opacity: 0.6; text-shadow: 0 0 20px rgba(212,168,70,0.1); }
}

/* ----- Loadout Grid ----- */
.loadout-cell {
    aspect-ratio: 1;
    border-radius: 0.375rem;
    border: 1px solid rgba(75,85,99,0.2);
    background: rgba(26,26,46,0.6);
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    /* Center the gear icon inside the cell with 5px breathing room */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}
.loadout-cell.filled { border-color: rgba(212,168,70,0.3); }
.loadout-cell.filled::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 0.25rem;
    opacity: 0.7;
}
.loadout-cell.tier-1::after { background: linear-gradient(135deg, rgba(200,200,200,0.3), rgba(200,200,200,0.1)); }
.loadout-cell.tier-2::after { background: linear-gradient(135deg, rgba(50,200,100,0.3), rgba(50,200,100,0.1)); }
.loadout-cell.tier-3::after { background: linear-gradient(135deg, rgba(60,160,255,0.3), rgba(60,160,255,0.1)); }
.loadout-cell.tier-4::after { background: linear-gradient(135deg, rgba(160,80,255,0.3), rgba(160,80,255,0.1)); }
.loadout-cell.tier-5::after { background: linear-gradient(135deg, rgba(255,150,30,0.3), rgba(255,150,30,0.1)); }

.loadout-cell.tier-1 { border-color: rgba(200,200,200,0.3); }
.loadout-cell.tier-2 { border-color: rgba(50,200,100,0.3); }
.loadout-cell.tier-3 { border-color: rgba(60,160,255,0.3); }
.loadout-cell.tier-4 { border-color: rgba(160,80,255,0.3); }
.loadout-cell.tier-5 { border-color: rgba(255,150,30,0.4); box-shadow: 0 0 10px rgba(255,150,30,0.1); }

/* Gear icon sits on top of the tier-color frame; fades in with the cell.
   Cell has 5px padding for a guaranteed gap; icon is sized at 92% of the
   inner padded area so the cell background stays visible at the original
   proportions. */
.loadout-icon {
    position: relative;
    z-index: 1;
    width: 92%;
    height: 92%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}
.loadout-cell.filled .loadout-icon { opacity: 1; }

/* ----- Feature Pillars ----- */
.feature-pillar { position: relative; overflow: hidden; }
.feature-pillar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(200px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(212,168,70,0.04), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.feature-pillar:hover::before { opacity: 1; }

/* ----- Lore Cards ----- */
.lore-card {
    position: relative;
    overflow: hidden;
}
.lore-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(212,168,70,0.3), transparent);
}

/* ----- Loading Dots ----- */
.loading-dots {
    font-size: 0.7rem;
    color: rgba(156,163,175,0.6);
}
.loading-dots::after {
    content: '';
    animation: loading-dots 1.2s steps(4, end) infinite;
}
@keyframes loading-dots {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
}
/* When loading-dots is inside a button, inherit the button's color and size */
button .loading-dots {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
}

/* ----- Hero Modal: Image (banner on mobile, sidebar on desktop) ----- */
.hero-modal-image {
    flex-shrink: 0;
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    background-color: rgba(10,10,18,0.6);
    position: relative;
}
/* Bottom fade for mobile banner so the image bleeds into the content */
.hero-modal-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(26,26,46,1), transparent);
    pointer-events: none;
}
@media (min-width: 640px) {
    .hero-modal-image {
        height: 220px;
    }
}
/* Desktop: image becomes a left sidebar at full modal height */
@media (min-width: 1024px) {
    .hero-modal-image {
        width: 320px;
        height: auto;
        align-self: stretch;
        border-right: 1px solid rgba(212,168,70,0.18);
        background-position: center 22%;
    }
    /* Right-edge fade instead of bottom fade on desktop */
    .hero-modal-image::after {
        top: 0;
        right: 0;
        bottom: 0;
        left: auto;
        width: 80px;
        height: auto;
        background: linear-gradient(to left, rgba(26,26,46,1), transparent);
    }
}

/* ----- Hero Modal: Content Area (right side on desktop) ----- */
.hero-modal-content-area {
    flex: 1 1 auto;
    padding: 1.5rem;
    min-width: 0;
}
@media (min-width: 640px) {
    .hero-modal-content-area {
        padding: 2rem;
    }
}
@media (min-width: 1024px) {
    .hero-modal-content-area {
        overflow-y: auto;
        padding: 2rem 2.25rem;
    }
}

/* ----- Hero Modal ----- */
#hero-modal {
    display: none;
}
#hero-modal.active {
    display: flex;
    animation: modal-fade-in 0.3s ease forwards;
}
#hero-modal.closing {
    display: flex;
    animation: modal-fade-out 0.3s ease forwards;
}
@keyframes modal-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes modal-fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}
#hero-modal .bg-hlw-card {
    transition: transform 0.3s ease;
}
#hero-modal.active .bg-hlw-card {
    animation: modal-slide-in 0.3s ease forwards;
}
#hero-modal.closing .bg-hlw-card {
    animation: modal-slide-out 0.3s ease forwards;
}
@keyframes modal-slide-in {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes modal-slide-out {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(20px); opacity: 0; }
}

/* ----- Hero Modal: Section Layout ----- */
.hero-modal-section {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(212,168,70,0.08);
}
.hero-modal-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.hero-modal-section-title {
    font-family: 'Cinzel', 'Times New Roman', serif;
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(212,168,70,0.75);
    margin-bottom: 0.75rem;
}

/* ----- Hero Modal: Quick Stats Pills ----- */
.hero-modal-stats {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.hero-modal-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 6px;
    font-size: 0.75rem;
}
.hero-modal-stat-pill .label {
    color: rgba(255,255,255,0.45);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.hero-modal-stat-pill .value {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

/* ----- Hero Modal: Passive Card ----- */
.hero-modal-passive {
    background: linear-gradient(180deg, rgba(212,168,70,0.07), rgba(212,168,70,0.02));
    border: 1px solid rgba(212,168,70,0.18);
    border-radius: 8px;
    padding: 0.85rem 1rem;
}
.hero-modal-passive-name {
    display: block;
    font-family: 'Cinzel', 'Times New Roman', serif;
    font-size: 0.9rem;
    color: rgba(232,196,120,0.95);
    margin-bottom: 0.35rem;
    letter-spacing: 0.04em;
}
.hero-modal-passive-desc {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.55;
}

/* ----- Hero Modal: Ability Cards ----- */
.hero-modal-ability {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.hero-modal-ability:last-child {
    margin-bottom: 0;
}
.hero-modal-ability-ultimate {
    background: linear-gradient(180deg, rgba(212,168,70,0.09), rgba(212,168,70,0.02));
    border-color: rgba(212,168,70,0.28);
}
.hero-modal-ability-name {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-family: 'Cinzel', 'Times New Roman', serif;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 0.4rem;
    letter-spacing: 0.03em;
}
.hero-modal-ability-ultimate .hero-modal-ability-name {
    color: rgba(232,196,120,0.95);
}
.hero-modal-ult-badge {
    display: inline-block;
    font-size: 0.55rem;
    letter-spacing: 0.18em;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background: rgba(212,168,70,0.22);
    color: rgba(255,215,150,0.95);
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}
.hero-modal-ability-desc {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.55;
}

/* ----- Hero Modal: Lore Block ----- */
.hero-modal-lore {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.7;
}
.hero-modal-lore p + p {
    margin-top: 0.85rem;
}

/* ----- Hero Modal: Tagline ----- */
.hero-modal-tagline {
    text-align: center;
    font-family: 'Cinzel', 'Times New Roman', serif;
    font-style: italic;
    font-size: 0.9rem;
    color: rgba(212,168,70,0.7);
    padding-top: 0.25rem;
    letter-spacing: 0.02em;
}

/* ----- Reward stream cards (Section 8: refer-a-friend) ----- */
.reward-card {
    position: relative;
    background: linear-gradient(180deg, rgba(212,168,70,0.06) 0%, rgba(26,26,46,0.45) 100%);
    border: 1px solid rgba(212,168,70,0.15);
    border-radius: 16px;
    padding: 32px 24px 28px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
}
.reward-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(212,168,70,0.08), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.reward-card:hover {
    border-color: rgba(212,168,70,0.4);
    box-shadow: 0 12px 32px rgba(212,168,70,0.12);
    transform: translateY(-3px);
}
.reward-card:hover::before { opacity: 1; }
.reward-card-num {
    position: absolute;
    top: 14px;
    right: 18px;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 13px;
    color: rgba(212,168,70,0.35);
    letter-spacing: 0.12em;
    transition: color 0.3s ease;
}
.reward-card:hover .reward-card-num {
    color: rgba(240,208,120,0.65);
}
.reward-card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 40%, rgba(212,168,70,0.22) 0%, rgba(212,168,70,0.04) 100%);
    border: 1px solid rgba(212,168,70,0.32);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
@media (min-width: 640px) {
    .reward-card-icon {
        width: 64px;
        height: 64px;
    }
}
.reward-card:hover .reward-card-icon {
    background: radial-gradient(circle at 50% 40%, rgba(212,168,70,0.32) 0%, rgba(212,168,70,0.08) 100%);
    border-color: rgba(212,168,70,0.55);
    box-shadow: 0 0 20px rgba(212,168,70,0.22);
}
.reward-card-title {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: #f0d078;
    letter-spacing: 0.05em;
    font-size: 16px;
    line-height: 1.25;
    margin-bottom: 10px;
}
@media (min-width: 640px) {
    .reward-card-title { font-size: 17px; }
}
.reward-card-desc {
    font-size: 13px;
    color: rgba(156,163,175,0.85);
    line-height: 1.55;
    max-width: 22ch;
    margin: 0 auto;
}

/* ----- reCAPTCHA Badge (hidden) ----- */
.grecaptcha-badge { visibility: hidden !important; }

/* ----- Reduced Motion ----- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal, .reveal-left { opacity: 1; transform: none; }
    .particle, .mouse-glow { display: none !important; }
    .hero-glow { animation: none; opacity: 0.7; }
    .hero-ring { animation: none; opacity: 0.5; }
    .section-divider::after { animation: none; }
    .mystery-mark { animation: none; opacity: 0.4; }
}
