/* ============================================================
   Pandora Ultima Online — single stylesheet
   Dark fantasy / gilded gold / cinematic
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
    /* palette */
    --bg-0:        #07060a;
    --bg-1:        #0b0a0e;
    --bg-2:        #14121b;
    --bg-3:        #1d1a26;
    --line:        rgba(212, 175, 55, 0.18);
    --line-strong: rgba(212, 175, 55, 0.40);
    --ink:         #e8e2cf;
    --ink-dim:     #a89e84;
    --ink-faint:   #6b6450;
    --gold-1:      #fff2b8;
    --gold-2:      #f5d472;
    --gold-3:      #d4af37;
    --gold-4:      #a87213;
    --ember:       #ff8c3c;
    --ok:          #79c879;
    --err:         #d36a6a;

    /* type */
    --f-display: 'Cinzel Decorative', 'Cinzel', serif;
    --f-head:    'Cinzel', serif;
    --f-body:    'Inter', system-ui, -apple-system, sans-serif;
    --f-quote:   'Crimson Text', Georgia, serif;
    --f-mono:    ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    /* spacing & rhythm */
    --maxw: 1240px;
    --pad-x: clamp(1rem, 4vw, 2.5rem);
    --radius: 4px;

    /* effects */
    --gold-grad: linear-gradient(180deg, var(--gold-1) 0%, var(--gold-2) 22%, var(--gold-3) 50%, var(--gold-4) 78%, var(--gold-2) 100%);
    --gold-glow: 0 0 24px rgba(212, 175, 55, 0.25);
    --shadow-card: 0 16px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(212, 175, 55, 0.08);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg-0);
    color: var(--ink);
    font-family: var(--f-body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { padding-left: 1.2em; margin: .6em 0; }
code {
    font-family: var(--f-mono);
    font-size: 0.92em;
    color: var(--gold-2);
    background: rgba(212, 175, 55, 0.06);
    padding: 1px 6px;
    border: 1px solid var(--line);
    border-radius: 3px;
}
::selection { background: var(--gold-3); color: #000; }

/* Visually-hidden text for screen readers + SEO crawlers.
   Not display:none (which crawlers / a11y treat as nonexistent) and
   not opacity:0 (which Google flags as deceptive). This pattern is
   the WCAG-recommended "visually hidden but readable" technique. */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ---------- Background ---------- */
.bg {
    position: fixed; inset: 0; z-index: -1;
    pointer-events: none;
    overflow: hidden;
}
.bg-image {
    position: absolute; inset: -6%;
    background: url('images/wallpaper.jpg') center / cover no-repeat;
    filter: saturate(0.65) contrast(1.05) brightness(0.42);
    transform: translateZ(0);
    will-change: transform;
}
.bg-image::after {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(168, 114, 19, 0.18) 0%, transparent 55%),
        linear-gradient(180deg, rgba(7, 6, 10, 0.55) 0%, rgba(7, 6, 10, 0.85) 60%, var(--bg-0) 100%);
}
.bg-vignette {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.85) 100%);
}
.bg-grain {
    position: absolute; inset: 0;
    opacity: 0.05; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='120' height='120' filter='url(%23n)' opacity='0.7'/></svg>");
}
.bg-embers {
    position: absolute; inset: 0;
    overflow: hidden;
}
.bg-embers span {
    position: absolute;
    bottom: -40px;
    width: 3px; height: 3px;
    border-radius: 50%;
    background: var(--ember);
    box-shadow: 0 0 8px var(--ember), 0 0 16px rgba(255, 140, 60, 0.5);
    opacity: 0;
    animation: ember-rise 18s linear infinite;
}
.bg-embers span:nth-child(1)  { left: 4%;  animation-delay:  0s;   animation-duration: 22s; }
.bg-embers span:nth-child(2)  { left: 12%; animation-delay:  3s;   animation-duration: 19s; }
.bg-embers span:nth-child(3)  { left: 20%; animation-delay:  7s;   animation-duration: 24s; }
.bg-embers span:nth-child(4)  { left: 28%; animation-delay:  1s;   animation-duration: 17s; }
.bg-embers span:nth-child(5)  { left: 36%; animation-delay:  9s;   animation-duration: 21s; }
.bg-embers span:nth-child(6)  { left: 44%; animation-delay:  4s;   animation-duration: 23s; }
.bg-embers span:nth-child(7)  { left: 52%; animation-delay: 12s;   animation-duration: 18s; }
.bg-embers span:nth-child(8)  { left: 60%; animation-delay:  2s;   animation-duration: 25s; }
.bg-embers span:nth-child(9)  { left: 68%; animation-delay:  8s;   animation-duration: 20s; }
.bg-embers span:nth-child(10) { left: 76%; animation-delay: 11s;   animation-duration: 22s; }
.bg-embers span:nth-child(11) { left: 84%; animation-delay:  5s;   animation-duration: 19s; }
.bg-embers span:nth-child(12) { left: 92%; animation-delay: 13s;   animation-duration: 24s; }
.bg-embers span:nth-child(13) { left: 16%; animation-delay: 14s;   animation-duration: 26s; }
.bg-embers span:nth-child(14) { left: 56%; animation-delay: 15s;   animation-duration: 28s; }
.bg-embers span:nth-child(15) { left: 80%; animation-delay: 16s;   animation-duration: 21s; }

@keyframes ember-rise {
    0%   { transform: translateY(0)        translateX(0);    opacity: 0; }
    10%  { opacity: 0.8; }
    50%  { transform: translateY(-50vh)    translateX(20px); opacity: 0.7; }
    90%  { opacity: 0.2; }
    100% { transform: translateY(-110vh)   translateX(-30px); opacity: 0; }
}

/* ---------- Topbar ---------- */
.topbar {
    position: sticky; top: 0; z-index: 100;
    display: flex; align-items: center; gap: 1.5rem;
    padding: 0.9rem var(--pad-x);
    background: linear-gradient(180deg, rgba(7, 6, 10, 0.92) 0%, rgba(7, 6, 10, 0.78) 100%);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--line);
}

.brand {
    display: flex; align-items: center; gap: 0.85rem;
    flex-shrink: 0;
    transition: filter .3s ease;
}
.brand:hover { filter: drop-shadow(0 0 14px rgba(245, 212, 114, 0.5)); }

.brand-mark svg {
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.45));
    transition: transform .4s cubic-bezier(.34,1.56,.64,1);
}
.brand:hover .brand-mark svg { transform: rotate(-3deg) scale(1.05); }

.brand-text {
    display: flex; flex-direction: column;
    line-height: 1;
}
.brand-eyebrow {
    font-family: var(--f-head);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold-3);
    opacity: 0.85;
    margin-bottom: 4px;
}
.brand-word {
    font-family: var(--f-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: var(--gold-grad);
    background-size: 100% 200%;
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: gold-shimmer 8s ease-in-out infinite;
}
.brand-word.small { font-size: 18px; }

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

.nav {
    display: flex; align-items: center; gap: 0.4rem;
    margin-left: auto;
    flex-wrap: wrap;
}
.nav-link {
    position: relative;
    font-family: var(--f-head);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--ink-dim);
    padding: 0.7rem 0.9rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    transition: color .22s ease, border-color .22s ease, background .22s ease, text-shadow .22s ease;
}
.nav-link:hover { color: var(--gold-2); }
.nav-link::after {
    content: '';
    position: absolute;
    left: 50%; bottom: 4px;
    width: 0; height: 1px;
    background: var(--gold-grad);
    transition: width .25s ease, left .25s ease;
}
.nav-link:hover::after,
.nav-link.is-active::after {
    width: 70%; left: 15%;
}
.nav-link.is-active {
    color: var(--gold-2);
    text-shadow: 0 0 12px rgba(212, 175, 55, 0.45);
}
.nav-sep {
    width: 1px; height: 18px;
    background: var(--line);
    margin: 0 0.4rem;
}
.nav-ext .ext-arrow { font-size: 0.85em; opacity: 0.7; }

.nav-toggle {
    display: none;
    width: 40px; height: 40px;
    flex-direction: column; justify-content: center; align-items: center;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.nav-toggle span {
    display: block; width: 18px; height: 1.5px;
    background: var(--gold-3);
    transition: transform .25s ease, opacity .25s ease;
}

/* ---------- Layout ---------- */
.section {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 6rem var(--pad-x) 5rem;
    scroll-margin-top: 80px;
    position: relative;
}
.section + .section { padding-top: 4rem; }
.section-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3.5rem;
}
.kicker {
    display: inline-block;
    font-family: var(--f-head);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--gold-3);
    padding: 6px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    margin-bottom: 1.2rem;
    background: rgba(212, 175, 55, 0.04);
}
.section-head h2 {
    font-family: var(--f-display);
    font-size: clamp(2rem, 4.4vw, 3.4rem);
    font-weight: 700;
    letter-spacing: 1.5px;
    line-height: 1.1;
    margin: 0 0 1rem;
    color: var(--ink);
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.18);
}
.section-head h2 .accent {
    background: var(--gold-grad);
    background-size: 100% 200%;
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: gold-shimmer 6s ease-in-out infinite;
}
.lead {
    font-family: var(--f-quote);
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--ink-dim);
    margin: 0;
}

.subhead {
    font-family: var(--f-display);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold-3);
    margin: 4rem 0 1.5rem;
    text-align: center;
    position: relative;
}
.subhead::before, .subhead::after {
    content: '';
    display: inline-block;
    vertical-align: middle;
    width: 60px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-3), transparent);
    margin: 0 1.2rem;
}

/* ---------- HERO ---------- */
.section-home {
    padding-top: 4rem;
    padding-bottom: 4rem;
    text-align: center;
}
.hero {
    max-width: 1180px;
    margin: 0 auto;
}
.hero-eyebrow {
    font-family: var(--f-head);
    font-size: 12px;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--gold-3);
    margin-bottom: 1.5rem;
    opacity: 0.85;
    animation: hero-fade .9s .1s both ease-out;
}
.hero-title {
    font-family: var(--f-display);
    font-size: clamp(4rem, 14vw, 11rem);
    font-weight: 700;
    letter-spacing: clamp(2px, 1vw, 10px);
    line-height: 0.95;
    margin: 0 0 1rem;
    text-transform: uppercase;
    animation: hero-fade 1s .25s both ease-out;
}
.word-pandora {
    background: var(--gold-grad);
    background-size: 100% 280%;
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter:
        drop-shadow(0 0 30px rgba(212, 175, 55, 0.45))
        drop-shadow(0 0 80px rgba(212, 175, 55, 0.25));
    animation: gold-shimmer 9s ease-in-out infinite;
}
.hero-sub {
    font-family: var(--f-quote);
    font-size: clamp(1.05rem, 1.6vw, 1.4rem);
    line-height: 1.6;
    color: var(--ink-dim);
    max-width: 640px;
    margin: 0 auto 2.5rem;
    animation: hero-fade 1s .5s both ease-out;
}
.hero-cta {
    display: flex; justify-content: center; gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
    animation: hero-fade 1s .7s both ease-out;
}

@keyframes hero-fade {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Online status pill ---------- */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 1.2rem;
    background: rgba(11, 10, 14, 0.75);
    border: 1px solid rgba(121, 200, 121, 0.35);
    border-radius: 999px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.5),
        0 0 24px rgba(121, 200, 121, 0.18);
    margin: 0 auto 1rem;
    animation: hero-fade 1s .85s both ease-out;
}

.status-dot {
    position: relative;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #43d97e;
    box-shadow:
        0 0 8px rgba(67, 217, 126, 0.95),
        0 0 18px rgba(67, 217, 126, 0.6),
        inset 0 0 4px rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}
.status-dot::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: rgba(67, 217, 126, 0.5);
    animation: status-pulse 2.2s ease-out infinite;
}
.status-dot::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: rgba(67, 217, 126, 0.25);
    animation: status-pulse 2.2s ease-out infinite;
    animation-delay: 0.6s;
}

@keyframes status-pulse {
    0%   { transform: scale(0.6); opacity: 0.9; }
    100% { transform: scale(1.8); opacity: 0; }
}

.status-text {
    font-family: var(--f-head);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #79c879;
    text-shadow: 0 0 12px rgba(121, 200, 121, 0.45);
}

.status-meta {
    font-family: var(--f-body);
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--ink-dim);
    padding-left: 0.7rem;
    border-left: 1px solid rgba(121, 200, 121, 0.20);
}

@media (max-width: 540px) {
    .status-pill { flex-direction: column; gap: 0.4rem; padding: 0.7rem 1.4rem; }
    .status-meta { border-left: 0; padding-left: 0; }
}

/* ---------- Buttons ---------- */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.95rem 1.6rem;
    font-family: var(--f-head);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    cursor: pointer;
    overflow: hidden;
    transition: transform .2s ease, border-color .25s ease, color .25s ease, box-shadow .35s ease;
}
.btn-large {
    padding: 1.2rem 2.4rem;
    font-size: 13px;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-label, .btn-arrow { position: relative; z-index: 2; }

.btn-primary {
    color: #1a1206;
    background: var(--gold-grad);
    background-size: 100% 220%;
    background-position: 0% 0%;
    border-color: var(--gold-3);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.30), inset 0 0 0 1px rgba(255, 242, 184, 0.40);
    animation: gold-shimmer 6s ease-in-out infinite;
}
.btn-primary:hover {
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.55), inset 0 0 0 1px rgba(255, 242, 184, 0.65);
}
.btn-primary .btn-glow {
    position: absolute; inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform .8s ease;
}
.btn-primary:hover .btn-glow { transform: translateX(100%); }

.btn-ghost {
    color: var(--gold-2);
    background: rgba(212, 175, 55, 0.04);
}
.btn-ghost:hover {
    color: var(--gold-1);
    border-color: var(--gold-3);
    background: rgba(212, 175, 55, 0.10);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.25);
}

/* ---------- Cards / grids ---------- */
.grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
    position: relative;
    background: linear-gradient(180deg, rgba(20, 18, 27, 0.85) 0%, rgba(11, 10, 14, 0.90) 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.8rem 1.6rem;
    box-shadow: var(--shadow-card);
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-3), transparent);
    opacity: 0.5;
}
.card:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(212, 175, 55, 0.18), 0 0 60px rgba(212, 175, 55, 0.08);
}

.card h3, .card h4 {
    font-family: var(--f-head);
    color: var(--gold-2);
    margin: 0 0 0.7rem;
    letter-spacing: 1.5px;
}
.card h3 { font-size: 1.15rem; text-transform: uppercase; }
.card h4 { font-size: 1rem; text-transform: uppercase; letter-spacing: 1.2px; }
.card .card-sub { margin-top: 1.4rem; color: var(--gold-3); font-size: 0.9rem; }
.card p { margin: 0 0 0.9rem; color: var(--ink); }
.card p:last-child { margin-bottom: 0; }
.card .warn { color: var(--ember); font-size: 0.92rem; }
.card .bullets, .card .specs, .card .ranks {
    margin: 0.6rem 0;
    padding-left: 1.2rem;
    color: var(--ink-dim);
}
.card .bullets li, .card .specs li, .card .ranks li {
    margin-bottom: 0.3rem;
}
.card .ranks li strong, .card .bullets li strong { color: var(--gold-2); }

/* ---------- Steps (Play) ---------- */
.steps {
    list-style: none;
    margin: 0; padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    counter-reset: steps;
}
.step {
    position: relative;
    background: linear-gradient(180deg, rgba(20, 18, 27, 0.85) 0%, rgba(11, 10, 14, 0.90) 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2.4rem 1.6rem 1.8rem;
    box-shadow: var(--shadow-card);
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.step:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(212, 175, 55, 0.20), 0 0 80px rgba(212, 175, 55, 0.10);
}
.step-num {
    position: absolute;
    top: -22px; left: 50%;
    transform: translateX(-50%);
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--f-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--bg-0);
    background: var(--gold-grad);
    background-size: 100% 220%;
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--gold-3), 0 8px 30px rgba(212, 175, 55, 0.4), inset 0 0 0 1px rgba(255, 242, 184, 0.50);
    animation: gold-shimmer 6s ease-in-out infinite;
}
.step h3 {
    font-family: var(--f-head);
    color: var(--gold-2);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0.5rem 0 1rem;
}
.step p { margin-bottom: 0.8rem; color: var(--ink); }
.step p.warn { color: var(--ember); font-size: 0.9rem; }
.step-meta { font-size: 0.85rem; color: var(--ink-faint); }
.step-meta a { color: var(--gold-3); text-decoration: underline; text-underline-offset: 3px; }
.step-meta a:hover { color: var(--gold-1); }
.step .btn { display: inline-flex; margin: 0.4rem 0 1rem; }

.connect {
    margin: 1rem 0;
    padding: 0.9rem 1rem;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    background: rgba(212, 175, 55, 0.03);
    text-align: center;
}
.connect code {
    display: block;
    font-size: 1rem;
    color: var(--gold-1);
    background: transparent;
    border: 0;
    padding: 0;
    margin-bottom: 4px;
}
.connect-port {
    font-size: 0.8rem;
    color: var(--ink-faint);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ---------- Laws ---------- */
.law h3 {
    display: flex; align-items: center;
    font-family: var(--f-display);
    font-size: 1.1rem;
    color: var(--gold-2);
    margin: 0 0 0.8rem;
}
.law-num {
    display: inline-flex;
    align-items: center; justify-content: center;
    min-width: 36px; height: 36px;
    margin-right: 0.8rem;
    font-family: var(--f-display);
    font-size: 0.85rem;
    color: var(--gold-2);
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.05);
}

/* ---------- Vote ---------- */
.vote-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    max-width: 1080px;
    margin: 0 auto;
}
.vote-tile {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.6rem 1.4rem;
    background: linear-gradient(180deg, rgba(20, 18, 27, 0.85) 0%, rgba(11, 10, 14, 0.90) 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    min-height: 130px;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
    position: relative;
    overflow: hidden;
}
.vote-tile::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 0% 100%, rgba(212, 175, 55, 0.10) 0%, transparent 60%);
    opacity: 0;
    transition: opacity .3s ease;
}
.vote-tile:hover {
    transform: translateY(-3px);
    border-color: var(--gold-3);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 60px rgba(212, 175, 55, 0.15);
}
.vote-tile:hover::before { opacity: 1; }
.vote-name {
    font-family: var(--f-head);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ink);
    position: relative; z-index: 2;
}
.vote-go {
    font-family: var(--f-head);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gold-3);
    margin-top: 1rem;
    position: relative; z-index: 2;
    transition: color .25s ease, letter-spacing .25s ease;
}
.vote-tile:hover .vote-go { color: var(--gold-1); letter-spacing: 4px; }

/* ---------- FAQ accordion ---------- */
.faq {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.faq-item {
    background: linear-gradient(180deg, rgba(20, 18, 27, 0.85) 0%, rgba(11, 10, 14, 0.90) 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .25s ease, box-shadow .25s ease;
}
.faq-item:hover { border-color: var(--line-strong); }
.faq-item[open] {
    border-color: var(--line-strong);
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.10), 0 16px 40px rgba(0, 0, 0, 0.5);
}
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 1.1rem 1.4rem;
    font-family: var(--f-head);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--gold-2);
    position: relative;
    padding-right: 3rem;
    transition: color .2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--gold-1); }
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 1.4rem;
    top: 50%;
    transform: translateY(-50%);
    width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    color: var(--gold-3);
    font-size: 1.1rem;
    line-height: 1;
    transition: transform .25s ease, color .25s ease, border-color .25s ease;
}
.faq-item[open] summary::after {
    content: '\2212';
    transform: translateY(-50%) rotate(180deg);
    color: var(--gold-1);
    border-color: var(--gold-3);
}
.faq-item p {
    margin: 0;
    padding: 0 1.4rem 1.3rem;
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.65;
}
.faq-item p a { color: var(--gold-3); text-decoration: underline; text-underline-offset: 3px; }
.faq-item p a:hover { color: var(--gold-1); }

/* ---------- Donate form ---------- */
.donate-form {
    max-width: 760px;
    margin: 3rem auto 1rem;
    padding: 2rem 1.8rem;
    background: linear-gradient(180deg, rgba(20, 18, 27, 0.85) 0%, rgba(11, 10, 14, 0.90) 100%);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    position: relative;
}
.donate-form::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-3), transparent);
}
.donate-step {
    border: 0;
    margin: 0 0 1.6rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--line);
}
.donate-step:last-of-type { border-bottom: 0; margin-bottom: 0; }
.donate-step legend {
    display: flex; align-items: center;
    font-family: var(--f-head);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold-2);
    margin-bottom: 0.8rem;
    padding: 0;
}
.donate-step-num {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 26px; height: 26px;
    margin-right: 0.8rem;
    font-family: var(--f-display);
    font-size: 0.85rem;
    color: var(--bg-0);
    background: var(--gold-grad);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}
.donate-step input[type="text"] {
    width: 100%;
    padding: 0.85rem 1rem;
    font-family: var(--f-body);
    font-size: 1rem;
    color: var(--ink);
    background: rgba(7, 6, 10, 0.6);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.donate-step input[type="text"]:focus {
    outline: 0;
    border-color: var(--gold-3);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}
.hint { font-size: 0.86rem; color: var(--ink-faint); margin-top: 0.7rem; }
.hint a { color: var(--gold-3); text-decoration: underline; text-underline-offset: 3px; }

.donate-slider { padding: 0.5rem 0; }
.donate-slider input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--gold-3) 0%, var(--gold-3) var(--p, 10%), rgba(212, 175, 55, 0.15) var(--p, 10%), rgba(212, 175, 55, 0.15) 100%);
    border-radius: 999px;
    outline: 0;
    margin: 1rem 0 1.4rem;
}
.donate-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--gold-grad);
    border: 1px solid var(--gold-1);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.20), 0 0 18px rgba(212, 175, 55, 0.55);
    cursor: grab;
    transition: transform .15s ease, box-shadow .15s ease;
}
.donate-slider input[type="range"]::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.15); }
.donate-slider input[type="range"]::-moz-range-thumb {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--gold-2);
    border: 1px solid var(--gold-1);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.20), 0 0 18px rgba(212, 175, 55, 0.55);
    cursor: grab;
}

.donate-readout {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(7, 6, 10, 0.5);
    text-align: center;
}
.donate-pay, .donate-bucks {
    display: flex; flex-direction: column;
    align-items: center;
    line-height: 1.2;
}
.donate-pay-symbol, .donate-pay-currency, .donate-bucks-label {
    font-family: var(--f-head);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ink-faint);
}
.donate-pay-amt, .donate-bucks-amt {
    font-family: var(--f-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold-2);
    text-shadow: 0 0 18px rgba(212, 175, 55, 0.35);
    margin: 4px 0;
}
.donate-arrow {
    font-size: 1.6rem;
    color: var(--gold-3);
    opacity: 0.7;
}
.donate-bucks-bonus {
    margin-top: 6px;
    font-family: var(--f-head);
    font-size: 11px;
    letter-spacing: 1.5px;
    color: var(--ok);
}
.donate-after {
    margin-top: 1.6rem;
    padding: 1rem 1.2rem;
    text-align: center;
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 0.92rem;
    color: var(--ink-dim);
}
.donate-after p { margin: 0; line-height: 1.55; }
.donate-after a { color: var(--gold-3); text-decoration: underline; text-underline-offset: 3px; }
.donate-after a:hover { color: var(--gold-1); }

.donate-credit {
    text-align: center;
    font-size: 0.78rem;
    color: var(--ink-faint);
    margin-top: 1.2rem;
}
.donate-credit a { color: var(--ink-dim); }
.donate-credit a:hover { color: var(--gold-3); }

/* ---------- Pay buttons (PayPal + Bitcoin side-by-side) ---------- */
.donate-pay-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}
.donate-pay-buttons .btn { width: 100%; justify-content: center; }

/* Orange Bitcoin button — same shape as PayPal, BTC palette */
.btn-bitcoin {
    color: #2a1500;
    background: linear-gradient(180deg, #ffc36a 0%, #f7a93a 22%, #f7931a 50%, #c46b09 78%, #ffae3e 100%);
    background-size: 100% 220%;
    background-position: 0% 0%;
    border-color: #f7931a;
    box-shadow: 0 8px 30px rgba(247, 147, 26, 0.30), inset 0 0 0 1px rgba(255, 195, 106, 0.45);
    animation: btc-shimmer 6s ease-in-out infinite;
}
.btn-bitcoin:hover {
    box-shadow: 0 12px 40px rgba(247, 147, 26, 0.55), inset 0 0 0 1px rgba(255, 195, 106, 0.70);
}
.btn-bitcoin .btn-glow {
    position: absolute; inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform .8s ease;
}
.btn-bitcoin:hover .btn-glow { transform: translateX(100%); }
.btn-bitcoin .btc-symbol {
    display: inline-block;
    margin-right: 0.4rem;
    font-size: 1.15em;
    font-weight: 900;
}

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

/* ---------- "We also accept" chips ---------- */
.donate-also {
    margin-top: 1.4rem;
    padding-top: 1.2rem;
    border-top: 1px dashed var(--line);
}
.donate-also-label {
    display: block;
    font-family: var(--f-head);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--ink-faint);
    text-align: center;
    margin-bottom: 0.7rem;
}
.donate-also-methods {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}
.pay-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--f-body);
    font-size: 0.86rem;
    color: var(--ink-dim);
    padding: 6px 12px;
    background: rgba(11, 10, 14, 0.55);
    border: 1px solid var(--line);
    border-radius: 999px;
}
.pay-chip strong {
    font-family: var(--f-head);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold-3);
}

/* ---------- Bitcoin modal ---------- */
.btc-modal {
    position: fixed; inset: 0;
    z-index: 200;
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity .22s ease;
}
.btc-modal[hidden] { display: none !important; }
.btc-modal.is-open { opacity: 1; }
.btc-backdrop {
    position: absolute; inset: 0;
    background: rgba(7, 6, 10, 0.82);
    backdrop-filter: blur(8px) saturate(140%);
    -webkit-backdrop-filter: blur(8px) saturate(140%);
}
.btc-dialog {
    position: relative;
    width: 100%;
    max-width: 460px;
    max-height: 92vh;
    overflow-y: auto;
    background: linear-gradient(180deg, rgba(28, 22, 14, 0.97) 0%, rgba(11, 10, 14, 0.98) 100%);
    border: 1px solid rgba(247, 147, 26, 0.45);
    border-radius: 8px;
    padding: 1.8rem 1.6rem 1.4rem;
    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.85),
        0 0 0 1px rgba(247, 147, 26, 0.15),
        0 0 80px rgba(247, 147, 26, 0.20);
    transform: translateY(20px) scale(.97);
    transition: transform .28s cubic-bezier(.34, 1.56, .64, 1);
}
.btc-modal.is-open .btc-dialog { transform: translateY(0) scale(1); }

.btc-dialog::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #f7931a, transparent);
}

.btc-close {
    position: absolute;
    top: 8px; right: 12px;
    width: 32px; height: 32px;
    font-size: 1.6rem;
    color: var(--ink-dim);
    transition: color .2s ease, transform .2s ease;
}
.btc-close:hover { color: #f7931a; transform: scale(1.1); }

.btc-head {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1.4rem;
}
.btc-icon svg { filter: drop-shadow(0 0 14px rgba(247, 147, 26, 0.6)); }
.btc-eyebrow {
    font-family: var(--f-head);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #f7a93a;
    margin-bottom: 2px;
}
.btc-head h3 {
    font-family: var(--f-display);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--ink);
    margin: 0;
    text-transform: uppercase;
}

.btc-amounts {
    background: rgba(7, 6, 10, 0.55);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 0.9rem 1rem;
    margin-bottom: 1.2rem;
}
.btc-amount-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.4rem 0;
}
.btc-amount-row-btc {
    border-top: 1px solid var(--line);
    margin-top: 0.4rem;
}
.btc-amount-label {
    font-family: var(--f-head);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ink-faint);
}
.btc-amount-usd {
    font-family: var(--f-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold-2);
}
.btc-amount-btc {
    font-family: var(--f-mono);
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffae3e;
    text-shadow: 0 0 14px rgba(247, 147, 26, 0.30);
}
.btc-amount-unit {
    font-size: 0.7em;
    color: var(--ink-faint);
    margin-left: 4px;
    letter-spacing: 1px;
}
.btc-rate {
    font-size: 0.78rem;
    color: var(--ink-faint);
    text-align: right;
    margin-top: 0.5rem;
    font-family: var(--f-body);
}
.btc-rate-source { opacity: 0.6; margin-left: 4px; }

.btc-qr-wrap {
    text-align: center;
    margin-bottom: 1.2rem;
}
.btc-qr {
    width: 220px;
    height: 220px;
    margin: 0 auto;
    padding: 8px;
    background: #fff;
    border: 1px solid rgba(247, 147, 26, 0.30);
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(247, 147, 26, 0.20);
    image-rendering: pixelated;
}
.btc-qr-hint {
    font-family: var(--f-head);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-top: 0.7rem;
}

.btc-address {
    margin-bottom: 1.2rem;
}
.btc-address-label {
    display: block;
    font-family: var(--f-head);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 0.5rem;
}
.btc-address-row {
    display: flex;
    gap: 0.5rem;
}
.btc-address-row input {
    flex: 1;
    min-width: 0;
    padding: 0.7rem 0.8rem;
    font-family: var(--f-mono);
    font-size: 0.78rem;
    color: var(--ink);
    background: rgba(7, 6, 10, 0.7);
    border: 1px solid var(--line);
    border-radius: 4px;
    text-overflow: ellipsis;
}
.btc-address-row input:focus {
    outline: 0;
    border-color: #f7931a;
    box-shadow: 0 0 0 3px rgba(247, 147, 26, 0.18);
}
.btc-copy {
    flex-shrink: 0;
    padding: 0.7rem 1rem;
    font-family: var(--f-head);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #2a1500;
    background: linear-gradient(180deg, #ffc36a, #f7931a);
    border: 1px solid #f7931a;
    border-radius: 4px;
    cursor: pointer;
    transition: filter .2s ease, transform .15s ease;
}
.btc-copy:hover { filter: brightness(1.1); }
.btc-copy:active { transform: scale(0.97); }
.btc-copy.is-done {
    background: linear-gradient(180deg, #94e0a4, #43d97e);
    border-color: #43d97e;
    color: #062a14;
}

.btc-claim {
    font-size: 0.86rem;
    color: var(--ink-dim);
    line-height: 1.55;
    padding: 0.9rem 1rem;
    background: rgba(247, 147, 26, 0.06);
    border: 1px solid rgba(247, 147, 26, 0.22);
    border-radius: 4px;
}
.btc-claim strong { color: #f7a93a; }

@media (max-width: 540px) {
    .btc-dialog { padding: 1.4rem 1rem 1rem; }
    .btc-qr { width: 180px; height: 180px; }
}

/* ---------- Footer ---------- */
.footer {
    border-top: 1px solid var(--line);
    background: rgba(7, 6, 10, 0.92);
    margin-top: 4rem;
    padding: 2rem var(--pad-x);
}
.footer-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
}
.footer-brand {
    display: flex; flex-direction: column;
    line-height: 1;
}
.footer-links {
    display: flex; gap: 1.4rem;
    margin-left: auto;
}
.footer-links a {
    font-family: var(--f-head);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--ink-dim);
}
.footer-links a:hover { color: var(--gold-2); }
.footer-copy {
    width: 100%;
    text-align: center;
    font-family: var(--f-head);
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ink-faint);
    border-top: 1px solid var(--line);
    padding-top: 1.2rem;
    margin-top: 0.6rem;
}

/* ---------- Audio toggle ---------- */
.audio-toggle {
    position: fixed;
    bottom: 1.4rem; right: 1.4rem;
    z-index: 90;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    color: var(--gold-3);
    background: rgba(11, 10, 14, 0.85);
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.audio-toggle:hover {
    color: var(--gold-1);
    border-color: var(--gold-3);
    transform: scale(1.05);
    box-shadow: 0 0 22px rgba(212, 175, 55, 0.35);
}
.audio-toggle .audio-icon-on  { display: inline; }
.audio-toggle .audio-icon-off { display: none; }
.audio-toggle.is-muted .audio-icon-on  { display: none; }
.audio-toggle.is-muted .audio-icon-off { display: inline; }

/* ---------- Mobile ---------- */
@media (max-width: 880px) {
    .topbar { gap: 0.6rem; padding: 0.7rem var(--pad-x); }
    .brand-eyebrow { font-size: 8px; letter-spacing: 3px; }
    .brand-word { font-size: 18px; }
    .nav-toggle { display: inline-flex; margin-left: auto; }
    .nav {
        position: absolute;
        top: 100%; left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: rgba(7, 6, 10, 0.98);
        border-bottom: 1px solid var(--line-strong);
        padding: 0.6rem var(--pad-x) 1.2rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height .35s ease;
    }
    .nav.is-open { max-height: 600px; }
    .nav-link {
        text-align: left;
        padding: 0.85rem 0.4rem;
        border-bottom: 1px solid var(--line);
    }
    .nav-link:last-child { border-bottom: 0; }
    .nav-link::after { display: none; }
    .nav-sep { display: none; }

    .donate-readout { grid-template-columns: 1fr; }
    .donate-arrow { transform: rotate(90deg); }

    .subhead::before, .subhead::after { display: none; }
    .footer-links { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    .bg-embers { display: none; }
}
