/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   EvoRealm UO â€” Dark Fantasy Theme
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€ Reset & Variables â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Palette */
    --bg:          #0d0d1a;
    --bg-alt:      #12122a;
    --bg-card:     #1a1a3a;
    --bg-card-alt: #1e1e40;
    --surface:     #24244a;
    --border:      #2e2e5e;
    --border-glow: #4a3aff33;

    --text:        #e0dff0;
    --text-dim:    #9594b0;
    --text-bright: #ffffff;

    --accent:      #7c5cff;
    --accent-glow: #7c5cff55;
    --accent-light:#a98dff;
    --gold:        #ffd700;
    --gold-dim:    #b8960044;

    --success:     #34d399;
    --danger:      #f87171;
    --info:        #60a5fa;

    /* Spacing */
    --gap:         1.5rem;
    --gap-lg:      3rem;
    --radius:      12px;
    --radius-sm:   8px;
    --radius-pill: 9999px;

    /* Transitions */
    --ease: cubic-bezier(.25,.8,.25,1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    -webkit-font-smoothing: antialiased;
    background: var(--bg);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: transparent;
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    width: min(120vw, 120vh);
    height: min(120vw, 120vh);
    transform: translate(-50%, -50%);
    background: url('images/main-bg.jpg') no-repeat center center var(--bg);
    background-size: contain;
    animation: mainBgPulse 10s ease-in-out infinite,
               mainBgSway 35s ease-in-out infinite;
    opacity: 0.12;
    z-index: -1;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 72%);
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 72%);
}

@keyframes mainBgPulse {
    0%, 100% { opacity: 0.10; filter: brightness(0.8)  blur(2px) saturate(1.0) hue-rotate(0deg); }
    25%      { opacity: 0.14; filter: brightness(1.0)  blur(1px) saturate(1.2) hue-rotate(4deg); }
    50%      { opacity: 0.18; filter: brightness(1.3)  blur(0px) saturate(1.3) hue-rotate(8deg); }
    75%      { opacity: 0.13; filter: brightness(1.05) blur(1px) saturate(1.15) hue-rotate(-3deg); }
}

@keyframes mainBgSway {
    0%   { transform: translate(-50%, -50%) rotate(0deg)   scale(1); }
    20%  { transform: translate(-50%, -50%) rotate(8deg)   scale(1.04); }
    40%  { transform: translate(-50%, -50%) rotate(-5deg)  scale(1.02); }
    60%  { transform: translate(-50%, -50%) rotate(12deg)  scale(1.06); }
    80%  { transform: translate(-50%, -50%) rotate(-8deg)  scale(1.03); }
    100% { transform: translate(-50%, -50%) rotate(0deg)   scale(1); }
}

a {
    color: var(--accent-light);
    text-decoration: none;
    transition: color .2s var(--ease);
}
a:hover { color: var(--gold); }

img { max-width: 100%; display: block; }

code {
    background: var(--surface);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: .85em;
    color: var(--accent-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* â”€â”€ Typography â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
h1, h2, h3, h4 {
    font-family: 'Cinzel', serif;
    color: var(--text-bright);
    line-height: 1.2;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    text-align: center;
    margin-bottom: .5rem;
    background: linear-gradient(135deg, var(--accent-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-dim);
    max-width: 640px;
    margin: 0 auto var(--gap-lg);
    font-size: 1.05rem;
}

.subsection-title {
    font-size: 1.3rem;
    margin: var(--gap-lg) 0 var(--gap);
    padding-left: .5rem;
    border-left: 3px solid var(--accent);
}

.accent { color: var(--gold); -webkit-text-fill-color: var(--gold); }

.small-note {
    font-size: .82rem;
    color: var(--text-dim);
    margin-top: .5rem;
}

/* â”€â”€ Buttons â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 2rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    border: none;
    transition: all .3s var(--ease);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #6033ff);
    color: #fff;
    box-shadow: 0 4px 24px var(--accent-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--accent-glow);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
}
.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent-light);
}

.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }

/* â”€â”€ Navbar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: rgba(13, 13, 26, .85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: all .3s var(--ease);
}

.navbar.scrolled {
    padding: .6rem 2rem;
    border-bottom-color: var(--border);
    box-shadow: 0 2px 24px rgba(0,0,0,.4);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
}

.logo-icon { font-size: 1.6rem; }
.logo-text {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text-bright);
}
.logo-accent { color: var(--gold); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-dim);
    font-size: .9rem;
    font-weight: 500;
    transition: color .2s;
}
.nav-links a:hover { color: var(--text-bright); }

.nav-cta {
    background: linear-gradient(135deg, var(--accent), #6033ff);
    color: #fff !important;
    padding: .5rem 1.2rem;
    border-radius: var(--radius-pill);
}
.nav-cta:hover { opacity: .9; color: #fff !important; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all .3s;
}

/* â”€â”€ Hero â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 1.5rem 3rem;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 20%, #1a1050 0%, var(--bg) 70%);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='g' width='60' height='60' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='30' cy='30' r='.6' fill='%237c5cff' opacity='.15'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='60' height='60' fill='url(%23g)'/%3E%3C/svg%3E");
    opacity: .5;
    pointer-events: none;
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-pre {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: clamp(.9rem, 2vw, 1.1rem);
    font-weight: 400;
    color: var(--text-dim);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: .5rem;
}

.hero-name {
    display: block;
    font-size: clamp(2.8rem, 8vw, 5rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-light), var(--gold), var(--accent-light));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% center; }
    50%      { background-position: 200% center; }
}

.hero-tagline {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    color: var(--text-dim);
    margin: 1.5rem 0 2rem;
    line-height: 1.8;
}

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

.hero-stats {
    display: flex;
    gap: .75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

.stat-pill {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: .4rem 1rem;
    border-radius: var(--radius-pill);
    font-size: .85rem;
    color: var(--text-dim);
}
.stat-pill strong { color: var(--accent-light); }

.hero-scroll-hint {
    position: absolute;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .3rem;
    color: var(--text-dim);
    font-size: .75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: bob 2s ease-in-out infinite;
    opacity: .5;
}
@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(8px); }
}

/* â”€â”€ Sections â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.section {
    padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-dark {
    background: var(--bg-alt);
}

/* â”€â”€ Feature Grid â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--gap);
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all .3s var(--ease);
}
.feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(124,92,255,.12);
}

.feature-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: .5rem;
}

.feature-card p {
    color: var(--text-dim);
    font-size: .92rem;
}

/* â”€â”€ Tabs â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.tabs {
    display: flex;
    gap: .5rem;
    justify-content: center;
    margin-bottom: var(--gap);
    flex-wrap: wrap;
}

.tab {
    padding: .6rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--text-dim);
    cursor: pointer;
    font-family: 'Cinzel', serif;
    font-size: .9rem;
    transition: all .2s var(--ease);
}
.tab:hover { border-color: var(--accent); color: var(--text); }
.tab.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp .3s var(--ease); }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* â”€â”€ Info Components â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.info-row {
    display: flex;
    gap: var(--gap-lg);
    align-items: flex-start;
    flex-wrap: wrap;
}

.info-text {
    flex: 1;
    min-width: 280px;
}
.info-text h3 { margin-bottom: .5rem; }
.info-text p  { color: var(--text-dim); margin-bottom: 1rem; }

.info-list {
    list-style: none;
    padding: 0;
}
.info-list li {
    padding: .35rem 0;
    padding-left: 1.2rem;
    position: relative;
    color: var(--text-dim);
    font-size: .92rem;
}
.info-list li::before {
    content: '\203A';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}
.info-list.compact li { padding: .3rem 0 .3rem 1.2rem; font-size: .85rem; }

.info-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    min-width: 260px;
}
.info-box.wide { max-width: 600px; margin: var(--gap-lg) auto 0; }

.info-box-title {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    color: var(--accent-light);
    margin-bottom: 1rem;
    font-size: .95rem;
}

.info-row-pair {
    display: flex;
    justify-content: space-between;
    padding: .4rem 0;
    border-bottom: 1px solid var(--border);
    font-size: .88rem;
}
.info-row-pair:last-child { border-bottom: none; }
.info-row-pair span:first-child { color: var(--text-dim); }
.info-row-pair span:last-child  { color: var(--text-bright); font-weight: 500; }

/* â”€â”€ Subsystem Grid (Level System) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.subsystem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--gap);
    margin-top: var(--gap-lg);
}

.subsystem-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}
.subsystem-card h4 { margin-bottom: .75rem; font-size: 1.05rem; }
.subsystem-card p  { color: var(--text-dim); font-size: .9rem; margin-bottom: .75rem; }

/* Title Ladder */
.title-ladder {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.title-rung {
    display: flex;
    justify-content: space-between;
    padding: .35rem .75rem;
    border-radius: var(--radius-sm);
    background: var(--surface);
    font-size: .85rem;
    color: var(--rung-color, var(--text));
    font-weight: 600;
}
.title-rung span { font-weight: 400; color: var(--text-dim); font-size: .8rem; }

/* Talent Trees */
.talent-trees {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .5rem;
    margin: .75rem 0;
}
.talent-tree {
    text-align: center;
    background: var(--surface);
    border-radius: var(--radius-sm);
    padding: .6rem .3rem;
    font-size: .8rem;
    color: var(--text-dim);
    line-height: 1.4;
}
.talent-icon { font-size: 1.3rem; display: block; margin-bottom: .2rem; }

/* Perk Tiers */
.perk-tiers {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin: .75rem 0;
}
.perk-badge {
    padding: .25rem .7rem;
    border-radius: var(--radius-pill);
    font-size: .78rem;
    font-weight: 600;
    color: var(--badge-color, var(--text));
    border: 1px solid var(--badge-color, var(--border));
    background: color-mix(in srgb, var(--badge-color, var(--border)) 10%, transparent);
}

/* â”€â”€ Evo Section â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.evo-how {
    margin-bottom: var(--gap-lg);
    overflow-x: auto;
}

.evo-stage-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    flex-wrap: nowrap;
    min-width: 600px;
    padding: 1rem;
}

.evo-stage-node {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.2rem;
    text-align: center;
    min-width: 100px;
    transition: all .3s var(--ease);
}
.evo-stage-node.final {
    border-color: var(--gold);
    box-shadow: 0 0 20px var(--gold-dim);
}

.evo-stage-num {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--accent-light);
    margin-bottom: .2rem;
}
.evo-stage-node.final .evo-stage-num { color: var(--gold); }

.evo-stage-label {
    font-weight: 600;
    font-size: .85rem;
    color: var(--text-bright);
}
.evo-stage-desc {
    font-size: .75rem;
    color: var(--text-dim);
    margin-top: .15rem;
}

.evo-arrow {
    color: var(--accent);
    font-size: 1.4rem;
    font-weight: 700;
}

.evo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: .75rem;
}

.evo-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    text-align: center;
    transition: all .3s var(--ease);
    font-size: .88rem;
}
.evo-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.evo-emoji { font-size: 1.6rem; display: block; margin-bottom: .3rem; }
.evo-card strong { display: block; color: var(--text-bright); margin-bottom: .15rem; }
.evo-card small  { color: var(--text-dim); font-size: .78rem; }

.evo-extra-info { margin-top: var(--gap-lg); }

/* â”€â”€ Warden Zones â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.zone-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--gap);
    margin-bottom: var(--gap-lg);
}

.zone-card {
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--border);
    transition: all .3s var(--ease);
}
.zone-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,.3);
}

.zone-verdant { background: linear-gradient(135deg, #0d2e1a, var(--bg-card)); border-color: #2d5a3a; }
.zone-ember   { background: linear-gradient(135deg, #2e1a0d, var(--bg-card)); border-color: #5a3a2d; }
.zone-frost   { background: linear-gradient(135deg, #0d1a2e, var(--bg-card)); border-color: #2d3a5a; }
.zone-umbral  { background: linear-gradient(135deg, #1a0d2e, var(--bg-card)); border-color: #3a2d5a; }

.zone-header {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .5rem;
}
.zone-icon { font-size: 1.6rem; }
.zone-card h3 { font-size: 1.1rem; }
.zone-card > p { color: var(--text-dim); font-size: .88rem; margin-bottom: .75rem; }

.zone-creatures {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}
.zone-creatures span {
    background: var(--surface);
    padding: .2rem .6rem;
    border-radius: var(--radius-pill);
    font-size: .78rem;
    color: var(--text);
}
.zone-card .small-note { margin-top: .6rem; margin-bottom: 0; font-size: .8rem; }
.mechanic-card h4:not(:first-child) { margin-top: 1.25rem; }

/* Warden Mechanics */
.warden-mechanics {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--gap-lg);
    margin-top: var(--gap);
}

.mechanic-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}
.mechanic-card h4 { margin-bottom: .5rem; }
.mechanic-card p  { color: var(--text-dim); font-size: .9rem; margin-bottom: .75rem; }

.orb-tiers {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: .75rem 0;
}
.orb {
    display: flex;
    justify-content: space-between;
    padding: .35rem .75rem;
    border-radius: var(--radius-sm);
    background: var(--surface);
    font-size: .85rem;
    color: var(--orb-color, var(--text));
    font-weight: 600;
}
.orb span { font-weight: 400; }

.spec-list {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: .5rem;
}
.spec-badge {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: .3rem .7rem;
    border-radius: var(--radius-pill);
    font-size: .82rem;
}

/* â”€â”€ Game Modes â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.game-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--gap);
}

.game-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all .3s var(--ease);
}
.game-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.game-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: .2rem .7rem;
    border-radius: var(--radius-pill);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.game-br .game-badge     { background: var(--danger); color: #fff; }
.game-td .game-badge     { background: var(--success); color: #000; }
.game-poker .game-badge  { background: var(--info); color: #000; }
.game-arena .game-badge  { background: var(--accent); color: #fff; }
.game-streak .game-badge { background: var(--gold); color: #000; }
.game-quests .game-badge { background: #f59e0b; color: #000; }

.game-card h3 {
    font-size: 1.3rem;
    margin-bottom: .5rem;
}
.game-card > p {
    color: var(--text-dim);
    font-size: .92rem;
    margin-bottom: 1.2rem;
}

.game-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.game-detail {
    display: flex;
    justify-content: space-between;
    padding: .35rem 0;
    border-bottom: 1px solid var(--border);
    font-size: .85rem;
}
.game-detail:last-child { border-bottom: none; }
.game-detail span:first-child { color: var(--text-dim); }
.game-detail span:last-child  { color: var(--text-bright); font-weight: 500; }

.game-phases {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: .3rem;
    font-size: .78rem;
    color: var(--text-dim);
    flex-wrap: wrap;
}
.game-phases span {
    background: var(--surface);
    padding: .2rem .5rem;
    border-radius: var(--radius-sm);
}

/* â”€â”€ Getting Started Steps â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--gap);
    margin-bottom: var(--gap-lg);
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    position: relative;
}

.step-num {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--accent);
    opacity: .3;
    position: absolute;
    top: .75rem;
    right: 1rem;
}

.step-card h3 {
    font-size: 1.05rem;
    margin-bottom: .5rem;
    padding-right: 2rem;
}
.step-card p {
    color: var(--text-dim);
    font-size: .9rem;
}

.config-block {
    background: var(--surface);
    border-radius: var(--radius-sm);
    padding: .75rem;
    margin: .75rem 0;
}
.config-row {
    display: flex;
    justify-content: space-between;
    padding: .3rem 0;
    font-size: .85rem;
}
.config-row span:first-child { color: var(--text-dim); }
.config-row .highlight {
    color: var(--gold);
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.cta-box {
    text-align: center;
    background: linear-gradient(135deg, var(--bg-card), var(--surface));
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    box-shadow: 0 0 40px var(--accent-glow);
}
.cta-box h3 {
    font-size: 1.5rem;
    margin-bottom: .5rem;
}
.cta-box p {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

/* â”€â”€ Footer â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.footer {
    background: #08081a;
    border-top: 1px solid var(--border);
    padding-top: 3rem;
}

.footer-inner {
    display: flex;
    gap: var(--gap-lg);
    flex-wrap: wrap;
}

.footer-brand {
    flex: 2;
    min-width: 240px;
}
.footer-brand p {
    color: var(--text-dim);
    font-size: .88rem;
    margin-top: .75rem;
    max-width: 320px;
}

.footer-links {
    flex: 1;
    min-width: 140px;
}
.footer-links h4 {
    font-size: .95rem;
    margin-bottom: .75rem;
    color: var(--text-bright);
}
.footer-links ul {
    list-style: none;
    padding: 0;
}
.footer-links li {
    margin-bottom: .4rem;
}
.footer-links a {
    color: var(--text-dim);
    font-size: .88rem;
}
.footer-links a:hover { color: var(--accent-light); }

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
    border-top: 1px solid var(--border);
    font-size: .78rem;
    color: var(--text-dim);
}

/* â”€â”€ Mobile Responsive â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        flex-direction: column;
        background: var(--bg-alt);
        padding: 5rem 2rem 2rem;
        gap: 1.2rem;
        transition: right .3s var(--ease);
        box-shadow: -4px 0 32px rgba(0,0,0,.5);
    }

    .nav-links.open { right: 0; }

    .nav-links a { font-size: 1rem; }

    .hero-name { font-size: clamp(2.2rem, 10vw, 3.5rem); }

    .info-row { flex-direction: column; }

    .talent-trees { grid-template-columns: repeat(2, 1fr); }

    .evo-stage-flow { justify-content: flex-start; }

    .subsystem-grid,
    .game-showcase,
    .steps-grid,
    .zone-grid,
    .warden-mechanics {
        grid-template-columns: 1fr;
    }

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

    .footer-inner { flex-direction: column; gap: var(--gap); }
}

@media (max-width: 480px) {
    .hero-stats { flex-direction: column; align-items: center; }
    .hero-actions { flex-direction: column; align-items: center; }
    .tabs { flex-direction: column; align-items: center; }
    .evo-grid { grid-template-columns: repeat(2, 1fr); }
}


/* â€” Warden System: Extended Styles â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€” */
.warden-intro-box {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius);
    padding: 1.5rem 2rem;
    margin-bottom: var(--gap-lg);
}
.warden-intro-box h3 { margin-bottom: .75rem; }
.warden-intro-box ol { counter-reset: step; padding-left: 0; }
.warden-intro-box ol li { counter-increment: step; list-style: none; padding-left: 2rem; position: relative; margin-bottom: .6rem; }
.warden-intro-box ol li::before {
    content: counter(step);
    position: absolute; left: 0; top: .15rem;
    width: 1.4rem; height: 1.4rem;
    display: flex; align-items: center; justify-content: center;
    font-size: .75rem; font-weight: 700;
    background: var(--accent); color: var(--bg); border-radius: 50%;
}

.warden-archetype-table {
    margin: var(--gap-lg) auto;
    max-width: 720px;
    text-align: center;
}
.warden-archetype-table h4 { margin-bottom: .75rem; font-size: 1.05rem; }

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
}
.data-table th,
.data-table td {
    padding: .5rem .75rem;
    border: 1px solid rgba(255,255,255,.1);
}
.data-table thead th {
    background: rgba(255,255,255,.06);
    font-weight: 600;
    text-transform: uppercase;
    font-size: .78rem;
    letter-spacing: .04em;
}
.data-table tbody td { color: var(--text-dim); }
.data-table tbody td:first-child { color: var(--text); text-align: left; }

.section-subtitle-sm {
    text-align: center;
    color: var(--text-dim);
    font-size: .95rem;
    margin-bottom: var(--gap);
}

.evo-stage-details { margin: var(--gap) 0 var(--gap-lg); }

.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: .75rem;
    margin: .75rem 0 .25rem;
}
.spec-detail {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    padding: .6rem .75rem;
    background: rgba(255,255,255,.04);
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,.08);
}
.spec-detail small { color: var(--text-dim); font-size: .8rem; }

.trait-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: .6rem;
    margin: 1rem 0 .5rem;
}
.trait-item {
    padding: .45rem .7rem;
    border-radius: var(--radius);
    font-size: .85rem;
    border-left: 3px solid;
    background: rgba(255,255,255,.03);
}
.trait-item small { display: block; color: var(--text-dim); font-size: .78rem; margin-top: .15rem; }

.trait-common   { border-color: #888; }
.trait-uncommon { border-color: #5a9; }
.trait-rare     { border-color: #58f; }
.trait-epic     { border-color: #a5f; }
.trait-mythic   { border-color: #fc0; }

.trait-common strong   { color: #aaa; }
.trait-uncommon strong { color: #5a9; }
.trait-rare strong     { color: #58f; }
.trait-epic strong     { color: #a5f; }
.trait-mythic strong   { color: #fc0; }

@media (max-width: 768px) {
    .warden-intro-box { padding: 1rem 1.25rem; }
    .data-table { font-size: .78rem; }
    .data-table th, .data-table td { padding: .35rem .5rem; }
    .spec-grid { grid-template-columns: 1fr; }
    .trait-grid { grid-template-columns: 1fr; }
}


/* â”€â”€ Scroll Animations â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
[data-aos] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
}
[data-aos].visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═════════════════════════════════════════════════════════════════
   Visual Polish v2 — Quick Wins
   (Appended 2026-04; layered on top of existing theme)
   ═════════════════════════════════════════════════════════════════ */

/* Scroll progress bar */
#scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--gold), var(--accent-light));
    z-index: 2000;
    box-shadow: 0 0 10px var(--accent-glow);
    transition: width .1s linear;
    pointer-events: none;
}

/* Feature card — animated gradient border + cursor-follow glow */
.feature-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(
        from var(--card-angle, 0deg),
        transparent 0deg,
        var(--accent) 60deg,
        var(--gold) 120deg,
        transparent 180deg,
        transparent 360deg
    );
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity .4s var(--ease);
    pointer-events: none;
    z-index: 1;
}
.feature-card:hover::before { opacity: 1; animation: card-spin 4s linear infinite; }
@keyframes card-spin { to { --card-angle: 360deg; } }
@property --card-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: var(--mouse-y, 50%);
    left: var(--mouse-x, 50%);
    width: 300px;
    height: 300px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    opacity: 0;
    transition: opacity .3s var(--ease);
    pointer-events: none;
    z-index: 0;
}
.feature-card:hover::after { opacity: .35; }
.feature-card > * { position: relative; z-index: 2; }

.feature-icon {
    filter: drop-shadow(0 0 12px var(--accent-glow));
    transition: transform .4s var(--ease), filter .4s var(--ease);
}
.feature-card:hover .feature-icon {
    transform: scale(1.15) rotate(-5deg);
    filter: drop-shadow(0 0 20px var(--gold-dim));
}

/* CTA button polish — shimmer sweep */
.btn-primary {
    position: relative;
    overflow: hidden;
}
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0; left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.25), transparent);
    transform: skewX(-20deg);
    transition: left .6s var(--ease);
    pointer-events: none;
}
.btn-primary:hover::after { left: 125%; }

/* Stat pill count-up styling */
.stat-pill strong {
    display: inline-block;
    min-width: 1.2em;
    font-variant-numeric: tabular-nums;
    color: var(--gold);
    font-weight: 700;
}

/* Nav link active underline slide */
.nav-links li > a:not(.nav-cta) {
    position: relative;
    padding-bottom: 2px;
}
.nav-links li > a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    left: 0; bottom: -4px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--gold));
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .3s var(--ease);
    border-radius: 2px;
}
.nav-links li > a:not(.nav-cta):hover::after,
.nav-links li > a.active:not(.nav-cta)::after {
    transform: scaleX(1);
}

/* Section-title underline accent */
.section-title {
    position: relative;
    padding-bottom: .75rem;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--gold), var(--accent), transparent);
    border-radius: 2px;
}

/* Stat pill hover lift */
.stat-pill {
    transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.stat-pill:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 6px 20px rgba(124,92,255,.25);
}

/* Scroll-reveal default state (IntersectionObserver toggles .visible) */
[data-aos] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
    will-change: opacity, transform;
}
[data-aos].visible {
    opacity: 1;
    transform: translateY(0);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    [data-aos] { opacity: 1; transform: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ELITE POLISH LAYER — adds parallax hero, live data strip, zone ambience,
   timeline reveal, back-to-top ring, canvas rune aura.
   Append-only; safe to truncate from this banner down to roll back.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Hero parallax image layers ─────────────────────────────────────────── */
.hero { position: relative; isolation: isolate; }
.hero-content { position: relative; z-index: 3; }
.hero-particles { z-index: 2; }

.hero-bg-layer {
    position: absolute;
    inset: -6%;
    background-image: url('images/forum-bg.jpg');
    background-size: 97% auto;
    background-position: 100% 50%;
    background-repeat: no-repeat;
    pointer-events: none;
    will-change: transform;
    transition: transform .6s cubic-bezier(.2,.8,.2,1);
    z-index: 0;
}
.hero-bg-far {
    opacity: .45;
    filter: saturate(1.1) contrast(1.05) brightness(.9);
    transform: translate3d(calc(var(--px,0) * -8px), calc(var(--py,0) * -6px + var(--sy,0) * .2px), 0) scale(1.04);
}
.hero-bg-mid {
    opacity: 0;
    display: none;
}

.hero-rune-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: .55;
}

/* Readability scrim — darker center-to-edges gradient so the hero title
   sits cleanly over any underlying imagery. */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(ellipse at center, rgba(13,13,26,.55) 0%, rgba(13,13,26,.75) 55%, rgba(13,13,26,.92) 100%),
        linear-gradient(to bottom, rgba(13,13,26,.2) 0%, transparent 30%, transparent 70%, rgba(13,13,26,.6) 100%);
}

/* ── Shard status pill ──────────────────────────────────────────────────── */
.shard-status {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem .85rem .35rem .7rem;
    border-radius: var(--radius-pill);
    background: color-mix(in srgb, var(--bg-card) 72%, transparent);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: .78rem;
    font-family: 'Cinzel', serif;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 1.25rem;
    transition: all .4s var(--ease);
}
.shard-status .shard-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #888;
    box-shadow: 0 0 0 0 rgba(136,136,136,.6);
    animation: shard-pulse 2.2s ease-out infinite;
}
.shard-status[data-status="online"] {
    color: var(--success, #22c55e);
    border-color: color-mix(in srgb, var(--success, #22c55e) 50%, var(--border));
}
.shard-status[data-status="online"] .shard-dot { background: var(--success, #22c55e); }
.shard-status[data-status="offline"] {
    color: var(--danger, #ef4444);
    border-color: color-mix(in srgb, var(--danger, #ef4444) 50%, var(--border));
}
.shard-status[data-status="offline"] .shard-dot { background: var(--danger, #ef4444); animation: none; }
.shard-status[data-status="checking"] { color: var(--text-dim); }

@keyframes shard-pulse {
    0%   { box-shadow: 0 0 0 0   color-mix(in srgb, currentColor 55%, transparent); }
    70%  { box-shadow: 0 0 0 10px transparent; }
    100% { box-shadow: 0 0 0 0   transparent; }
}

/* ── Live stats strip ───────────────────────────────────────────────────── */
.live-stats {
    display: inline-flex;
    align-items: center;
    gap: 1.1rem;
    margin-top: 1.5rem;
    padding: .7rem 1.3rem;
    border-radius: var(--radius-pill);
    background: color-mix(in srgb, var(--bg-card) 60%, transparent);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0,0,0,.25);
}
.live-stat { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.live-stat-num {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-bright);
    font-variant-numeric: tabular-nums;
    letter-spacing: .02em;
    transition: color .3s var(--ease);
}
.live-stat-num.pulse { color: var(--accent-light); animation: num-pop .5s var(--ease); }
.live-stat-label {
    font-size: .7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-top: .15rem;
}
.live-stat-sep {
    width: 1px;
    height: 28px;
    background: linear-gradient(to bottom, transparent, var(--border), transparent);
}
@keyframes num-pop {
    0%   { transform: translateY(0); }
    40%  { transform: translateY(-3px); }
    100% { transform: translateY(0); }
}

/* ── Evo stage timeline reveal ──────────────────────────────────────────── */
.evo-stage-flow { position: relative; }
.evo-stage-flow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: linear-gradient(to right,
        transparent,
        color-mix(in srgb, var(--accent) 55%, transparent) 15%,
        color-mix(in srgb, var(--accent) 55%, transparent) 85%,
        color-mix(in srgb, var(--gold) 70%, transparent) 100%);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 1.6s cubic-bezier(.2,.8,.2,1);
    z-index: 0;
}
.evo-stage-flow.revealed::before { transform: scaleX(1); }
.evo-stage-node {
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(14px) scale(.92);
    transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.evo-stage-flow.revealed .evo-stage-node { opacity: 1; transform: translateY(0) scale(1); }
.evo-stage-flow.revealed .evo-stage-node:nth-child(1) { transition-delay: .05s; }
.evo-stage-flow.revealed .evo-stage-node:nth-child(3) { transition-delay: .20s; }
.evo-stage-flow.revealed .evo-stage-node:nth-child(5) { transition-delay: .35s; }
.evo-stage-flow.revealed .evo-stage-node:nth-child(7) { transition-delay: .50s; }
.evo-stage-flow.revealed .evo-stage-node:nth-child(9) { transition-delay: .65s; }
.evo-stage-flow .evo-arrow {
    opacity: 0;
    transition: opacity .4s var(--ease);
}
.evo-stage-flow.revealed .evo-arrow { opacity: 1; transition-delay: .7s; }

/* ── Zone ambient particle overlays ─────────────────────────────────────── */
.zone-card { position: relative; overflow: hidden; }
.zone-card::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity .6s var(--ease);
    background-repeat: repeat;
    background-size: 180px 180px;
    mix-blend-mode: screen;
}
.zone-card:hover::after { opacity: 1; }

.zone-verdant::after {
    background-image:
        radial-gradient(circle at 20% 30%, rgba(120,220,130,.55) 0 1.5px, transparent 2px),
        radial-gradient(circle at 75% 60%, rgba(120,220,130,.35) 0 1px, transparent 1.5px),
        radial-gradient(circle at 50% 85%, rgba(180,255,190,.4) 0 1px, transparent 1.5px);
    animation: drift-leaf 14s linear infinite;
}
.zone-ember::after {
    background-image:
        radial-gradient(circle at 30% 70%, rgba(255,160,80,.6) 0 1.5px, transparent 2.5px),
        radial-gradient(circle at 70% 40%, rgba(255,120,60,.5) 0 1px, transparent 2px),
        radial-gradient(circle at 50% 20%, rgba(255,210,120,.4) 0 1px, transparent 1.5px);
    animation: drift-ember 9s linear infinite;
}
.zone-frost::after {
    background-image:
        radial-gradient(circle at 25% 20%, rgba(200,230,255,.7) 0 1.5px, transparent 2.5px),
        radial-gradient(circle at 70% 55%, rgba(180,220,255,.5) 0 1px, transparent 2px),
        radial-gradient(circle at 45% 85%, rgba(220,240,255,.6) 0 1px, transparent 1.5px);
    animation: drift-snow 16s linear infinite;
}
.zone-umbral::after {
    background-image:
        radial-gradient(circle at 30% 40%, rgba(180,130,255,.5) 0 1.5px, transparent 2.5px),
        radial-gradient(circle at 70% 75%, rgba(140,90,220,.4) 0 1px, transparent 2px);
    animation: drift-wisp 12s linear infinite;
}
@keyframes drift-leaf  { from { background-position: 0 0, 0 0, 0 0; } to { background-position: 180px 180px, -180px 180px, 90px 180px; } }
@keyframes drift-ember { from { background-position: 0 0, 0 0, 0 0; } to { background-position: 0 -180px, 0 -180px, 0 -180px; } }
@keyframes drift-snow  { from { background-position: 0 0, 0 0, 0 0; } to { background-position: 30px 180px, -40px 180px, 20px 180px; } }
@keyframes drift-wisp  { from { background-position: 0 0, 0 0; } to { background-position: 180px -90px, -180px 90px; } }

/* ── Back-to-top ring button ────────────────────────────────────────────── */
#back-to-top {
    position: fixed;
    right: clamp(1rem, 2.5vw, 2rem);
    bottom: clamp(1rem, 2.5vw, 2rem);
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: color-mix(in srgb, var(--bg-card) 85%, transparent);
    color: var(--accent-light);
    cursor: pointer;
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px) scale(.85);
    transition: opacity .35s var(--ease), transform .35s var(--ease), color .25s var(--ease);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,.4), 0 0 0 1px var(--border);
    z-index: 90;
}
#back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
#back-to-top:hover { color: var(--gold); }
#back-to-top .btt-ring { position: absolute; inset: 0; }
#back-to-top .btt-ring-track { stroke: var(--border); }
#back-to-top .btt-ring-progress {
    stroke: var(--accent);
    transition: stroke-dashoffset .15s linear, stroke .25s var(--ease);
}
#back-to-top:hover .btt-ring-progress { stroke: var(--gold); }
#back-to-top .btt-arrow { position: relative; z-index: 1; }

/* ── Image fade-in on load ──────────────────────────────────────────────── */
img[loading="lazy"], .media-fade {
    opacity: 0;
    transition: opacity .6s var(--ease);
}
img[loading="lazy"].loaded, .media-fade.loaded { opacity: 1; }

/* ── Reduced motion guards ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .hero-bg-layer,
    .hero-rune-canvas,
    .zone-card::after,
    .shard-status .shard-dot,
    .evo-stage-flow::before,
    .evo-stage-node,
    .live-stat-num.pulse,
    #back-to-top {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
    .evo-stage-flow.revealed .evo-stage-node { opacity: 1; }
    .evo-stage-flow.revealed::before { transform: scaleX(1); }
}

/* ── Mobile polish ──────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .live-stats { gap: .7rem; padding: .55rem 1rem; }
    .live-stat-num { font-size: 1rem; }
    .live-stat-label { font-size: .62rem; }
    .shard-status { font-size: .7rem; padding: .3rem .7rem .3rem .6rem; }
    #back-to-top { width: 46px; height: 46px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   BETA / ROADMAP LAYER — temporary; remove this banner → end-of-file block
   on public launch. Everything below is scoped to #dev-banner and #roadmap
   so deletion is a clean cut.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Dev banner (top strip) ─────────────────────────────────────────────── */
#dev-banner {
    position: fixed;
    top: 3px;           /* sit just under the #scroll-progress bar */
    left: 0;
    right: 0;
    z-index: 1500;
    background: linear-gradient(90deg,
        color-mix(in srgb, var(--gold) 14%, var(--bg-alt)),
        color-mix(in srgb, var(--accent) 14%, var(--bg-alt)));
    border-bottom: 1px solid color-mix(in srgb, var(--gold) 40%, var(--border));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 16px rgba(0,0,0,.35);
    transition: transform .35s var(--ease), opacity .35s var(--ease);
}
#dev-banner.dismissed {
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
}
.dev-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .55rem 1rem;
    font-size: .82rem;
    color: var(--text);
}
.dev-banner-icon {
    font-size: 1rem;
    filter: drop-shadow(0 0 6px var(--gold-dim));
    flex-shrink: 0;
}
.dev-banner-text { flex: 1; line-height: 1.4; }
.dev-banner-text strong { color: var(--gold); font-weight: 700; }
.dev-banner-text a {
    color: var(--accent-light);
    font-weight: 600;
    white-space: nowrap;
    margin-left: .25rem;
}
.dev-banner-text a:hover { color: var(--gold); }
.dev-banner-close {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    padding: .15rem .4rem;
    border-radius: 4px;
    transition: color .2s var(--ease), background .2s var(--ease);
    flex-shrink: 0;
}
.dev-banner-close:hover { color: var(--text-bright); background: rgba(255,255,255,.08); }

/* Push fixed navbar down while banner is visible. JS toggles body class. */
body.has-dev-banner .navbar { top: 40px; }
body.has-dev-banner { padding-top: 40px; }

@media (max-width: 640px) {
    .dev-banner-inner { font-size: .72rem; padding: .5rem .75rem; gap: .5rem; }
    body.has-dev-banner .navbar { top: 58px; }
    body.has-dev-banner { padding-top: 58px; }
}

/* ── Roadmap section ────────────────────────────────────────────────────── */
.roadmap {
    position: relative;
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 880px;
    counter-reset: phase;
}
.roadmap::before {
    /* Vertical spine */
    content: '';
    position: absolute;
    top: .5rem;
    bottom: .5rem;
    left: 22px;
    width: 2px;
    background: linear-gradient(to bottom,
        color-mix(in srgb, var(--accent) 60%, transparent),
        color-mix(in srgb, var(--accent) 30%, transparent) 60%,
        color-mix(in srgb, var(--border) 80%, transparent));
    border-radius: 2px;
}

.roadmap-phase {
    position: relative;
    padding-left: 60px;
    margin-bottom: 1.5rem;
    counter-increment: phase;
}
.roadmap-phase:last-child { margin-bottom: 0; }

.roadmap-marker {
    position: absolute;
    left: 8px;
    top: .9rem;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--bg-alt);
    border: 2px solid var(--border);
    z-index: 1;
    transition: all .3s var(--ease);
}
.roadmap-marker::before {
    content: counter(phase);
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: .78rem;
    color: var(--text-dim);
}
.roadmap-dot {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    pointer-events: none;
}

.roadmap-phase.is-complete .roadmap-marker {
    border-color: var(--success);
    background: color-mix(in srgb, var(--success) 20%, var(--bg-alt));
}
.roadmap-phase.is-complete .roadmap-marker::before { color: var(--success); }

.roadmap-phase.is-current .roadmap-marker {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 18%, var(--bg-alt));
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent);
}
.roadmap-phase.is-current .roadmap-marker::before { color: var(--accent-light); }
.roadmap-phase.is-current .roadmap-dot {
    border: 2px solid var(--accent);
    opacity: .6;
    animation: roadmap-pulse 2.4s ease-out infinite;
}
@keyframes roadmap-pulse {
    0%   { transform: scale(.9); opacity: .7; }
    70%  { transform: scale(1.6); opacity: 0; }
    100% { transform: scale(1.6); opacity: 0; }
}

.roadmap-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.roadmap-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(124,92,255,.12);
}
.roadmap-phase.is-current .roadmap-card {
    border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
    box-shadow: 0 4px 20px color-mix(in srgb, var(--accent) 18%, transparent);
}

.roadmap-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
    margin-bottom: .4rem;
    flex-wrap: wrap;
}
.roadmap-status {
    font-family: 'Cinzel', serif;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    padding: .2rem .6rem;
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--text-dim);
    border: 1px solid var(--border);
}
.roadmap-phase.is-complete .roadmap-status {
    color: var(--success);
    border-color: color-mix(in srgb, var(--success) 50%, var(--border));
    background: color-mix(in srgb, var(--success) 12%, var(--surface));
}
.roadmap-phase.is-current .roadmap-status {
    color: var(--accent-light);
    border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
    background: color-mix(in srgb, var(--accent) 14%, var(--surface));
}
.roadmap-when {
    font-size: .82rem;
    color: var(--text-dim);
    font-variant-numeric: tabular-nums;
}
.roadmap-card h3 {
    font-size: 1.15rem;
    margin-bottom: .35rem;
}
.roadmap-card > p {
    color: var(--text-dim);
    font-size: .92rem;
    margin-bottom: .75rem;
}

.roadmap-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: .25rem .75rem;
}
.roadmap-list li {
    position: relative;
    padding-left: 1.1rem;
    font-size: .85rem;
    color: var(--text-dim);
    line-height: 1.5;
}
.roadmap-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
    font-size: .85rem;
}
.roadmap-phase.is-complete .roadmap-list li::before { color: var(--success); }

@media (max-width: 640px) {
    .roadmap::before { left: 14px; }
    .roadmap-phase { padding-left: 44px; }
    .roadmap-marker { left: 0; width: 28px; height: 28px; }
    .roadmap-card { padding: 1rem 1.1rem; }
    .roadmap-list { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .roadmap-phase.is-current .roadmap-dot { animation: none; }
    #dev-banner { transition: none; }
}
