/* political.day — burgundy-cream parliamentary chamber, dark-mode, hero-dominant */

:root {
    --burgundy: #2A0818;
    --near-black: #1A1018;
    --cream: #F0E0C8;
    --chamber-red: #8A2030;
    --hud-amber: #D8A830;
    --mesh-rose: #C06878;
    --mesh-teal: #408878;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    background: var(--burgundy);
    color: var(--cream);
    font-family: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-weight: 400;
    line-height: 1.75;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    background: linear-gradient(180deg, var(--burgundy) 0%, var(--near-black) 100%);
    background-attachment: fixed;
    position: relative;
}

/* ===== Gradient mesh layer ===== */
.mesh-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.mesh {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.18;
    mix-blend-mode: screen;
    transition: opacity 1.2s ease;
}

.mesh-rose {
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle at center, var(--mesh-rose) 0%, transparent 60%);
    top: -10%;
    left: -10%;
    animation: meshDrift 22s ease-in-out infinite;
}

.mesh-teal {
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle at center, var(--mesh-teal) 0%, transparent 60%);
    bottom: -20%;
    right: -15%;
    animation: meshDrift 26s ease-in-out infinite reverse;
}

.mesh-rose-2 {
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle at center, var(--mesh-rose) 0%, transparent 65%);
    top: 35%;
    right: -10%;
    animation: meshPulse 20s ease-in-out infinite;
    opacity: 0.14;
}

.mesh-teal-2 {
    width: 55vw;
    height: 55vw;
    background: radial-gradient(circle at center, var(--mesh-teal) 0%, transparent 65%);
    top: 60%;
    left: -10%;
    animation: meshPulse 24s ease-in-out infinite reverse;
    opacity: 0.14;
}

.mesh-bg.accelerated .mesh {
    animation-duration: 9s;
    opacity: 0.28;
}

@keyframes meshDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(8vw, -4vh) scale(1.08); }
    66%      { transform: translate(-6vw, 6vh) scale(0.95); }
}

@keyframes meshPulse {
    0%, 100% { transform: scale(1); opacity: 0.14; }
    50%      { transform: scale(1.12); opacity: 0.22; }
}

/* ===== Chamber main ===== */
.chamber {
    position: relative;
    z-index: 1;
}

.hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(40px, 8vh, 120px) clamp(20px, 6vw, 80px);
    overflow: hidden;
}

/* ===== Entrance hero ===== */
.hero-entrance {
    flex-direction: column;
    text-align: center;
    background: radial-gradient(ellipse at center, rgba(138, 32, 48, 0.08) 0%, transparent 70%);
}

.entrance-content {
    max-width: 680px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(8px);
    animation: fadeUp 0.8s ease 0.2s forwards;
}

.hud-tag {
    color: var(--hud-amber);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 24px;
    opacity: 0.85;
}

.domain-mark {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: clamp(28px, 6vw, 72px);
    letter-spacing: -0.01em;
    color: var(--cream);
    margin-bottom: 28px;
    text-shadow: 0 0 30px rgba(138, 32, 48, 0.3);
}

.entrance-sub {
    font-size: clamp(14px, 1.4vw, 18px);
    color: var(--cream);
    opacity: 0.82;
    margin-bottom: 14px;
    letter-spacing: 0.02em;
}

.entrance-meta {
    font-size: clamp(11px, 1vw, 13px);
    color: var(--mesh-rose);
    opacity: 0.7;
    letter-spacing: 0.05em;
}

/* ===== HUD elements ===== */
.hud {
    position: absolute;
    pointer-events: none;
}

.hud-top-left {
    top: 32px;
    left: 32px;
    width: 220px;
    height: 80px;
    opacity: 0;
    animation: hudIn 1.2s ease 0.4s forwards;
}

.hud-top-right {
    top: 32px;
    right: 32px;
    width: 220px;
    height: 80px;
    opacity: 0;
    animation: hudIn 1.2s ease 0.55s forwards;
}

.hud-bottom {
    position: absolute;
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%);
    width: min(600px, 80vw);
    height: 30px;
    opacity: 0;
    animation: hudIn 1.2s ease 0.7s forwards;
}

.hud-arc, .hud-arc-r {
    stroke: var(--hud-amber);
    stroke-width: 1;
    stroke-dasharray: 220;
    stroke-dashoffset: 220;
    animation: drawArc 1s ease 0.6s forwards;
}

.hud-line {
    stroke: var(--hud-amber);
    stroke-width: 1;
    opacity: 0.6;
}

.hud-tick, .hud-tick-b {
    stroke: var(--hud-amber);
    stroke-width: 1;
    opacity: 0.7;
}

.hud-dot {
    fill: var(--hud-amber);
    opacity: 0.9;
}

.hud-label, .hud-readout {
    fill: var(--hud-amber);
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hud-label-right, .hud-readout-right {
    text-anchor: end;
}

@keyframes drawArc {
    to { stroke-dashoffset: 0; }
}

@keyframes hudIn {
    to { opacity: 1; }
}

/* ===== Scroll cue ===== */
.scroll-cue {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: fadeUp 0.8s ease 1.4s forwards;
}

.scroll-cue-line {
    width: 1px;
    height: 32px;
    background: linear-gradient(to bottom, transparent, var(--hud-amber));
    animation: scrollPulse 1.8s ease-in-out infinite;
}

.scroll-cue-label {
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--hud-amber);
    text-transform: uppercase;
    opacity: 0.7;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50%      { opacity: 1; transform: scaleY(1.2); }
}

/* ===== Declaration heroes ===== */
.declaration {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: clamp(20px, 4vw, 80px);
    border-top: 1px solid rgba(216, 168, 48, 0.08);
}

.declaration-alt {
    background: radial-gradient(ellipse at 30% 50%, rgba(64, 136, 120, 0.06) 0%, transparent 65%);
}

.decl-content {
    max-width: 680px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.decl-content.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.decl-eyebrow {
    color: var(--hud-amber);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 22px;
    opacity: 0.85;
}

.decl-text {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: clamp(24px, 3vw, 44px);
    line-height: 1.45;
    color: var(--cream);
    letter-spacing: -0.005em;
    margin-bottom: 28px;
    transition: text-shadow 0.4s ease, color 0.4s ease;
}

.decl-text:hover {
    text-shadow: 0 0 20px rgba(138, 32, 48, 0.55), 0 0 4px rgba(216, 168, 48, 0.25);
    color: #F4E6D0;
}

.decl-attribution {
    font-size: 12px;
    color: var(--mesh-rose);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.75;
}

/* ===== HUD side panels ===== */
.hud-side {
    width: 200px;
    flex-shrink: 0;
    padding: 24px 20px;
    border: 1px solid rgba(216, 168, 48, 0.25);
    background: rgba(26, 16, 24, 0.4);
    backdrop-filter: blur(2px);
    opacity: 0;
    transform: translateX(-12px);
    transition: opacity 0.7s ease 0.15s, transform 0.7s ease 0.15s, border-color 0.4s ease;
}

.hud-side-right {
    transform: translateX(12px);
    order: 2;
}

.declaration-alt .decl-content {
    order: 1;
}

.is-visible .hud-side,
.hud-side.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.declaration:hover .hud-side {
    border-color: rgba(216, 168, 48, 0.55);
}

.hud-side-label {
    color: var(--hud-amber);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(216, 168, 48, 0.3);
    padding-bottom: 10px;
}

.hud-side-key {
    color: var(--mesh-rose);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-top: 14px;
    margin-bottom: 4px;
    opacity: 0.8;
}

.hud-side-value {
    color: var(--cream);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.hud-gauge {
    width: 80px;
    height: 80px;
    margin: 14px auto 6px;
    display: block;
}

.hud-gauge-track {
    stroke: rgba(216, 168, 48, 0.18);
    stroke-width: 2;
}

.hud-gauge-fill {
    stroke: var(--hud-amber);
    stroke-width: 2;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: center;
    stroke-dasharray: 188.4;
    stroke-dashoffset: 188.4;
    transition: stroke-dashoffset 1.2s ease;
    filter: drop-shadow(0 0 4px rgba(216, 168, 48, 0.45));
}

.hud-gauge-label {
    fill: var(--cream);
    font-family: 'Space Mono', monospace;
    font-size: 14px;
    font-weight: 700;
    text-anchor: middle;
    letter-spacing: 0.05em;
}

/* ===== Vigil ===== */
.vigil {
    flex-direction: column;
    text-align: center;
    background:
        radial-gradient(ellipse at center bottom, rgba(216, 168, 48, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at center, rgba(192, 104, 120, 0.08) 0%, transparent 70%);
    border-top: 1px solid rgba(216, 168, 48, 0.14);
}

.vigil-content {
    max-width: 680px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.vigil-content.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hud-tag-vigil {
    color: var(--hud-amber);
}

.vigil-text {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: clamp(22px, 2.6vw, 38px);
    color: var(--cream);
    line-height: 1.5;
    margin-bottom: 28px;
    letter-spacing: -0.005em;
}

.vigil-mark {
    font-size: 12px;
    color: var(--mesh-rose);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.8;
}

.candle {
    position: relative;
    width: 60px;
    height: 100px;
    margin: 0 auto 32px;
}

.candle-stem {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 16px;
    height: 56px;
    background: linear-gradient(180deg, #F0E0C8 0%, #C8A878 100%);
    border-radius: 3px;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.3) inset;
}

.candle-flame {
    position: absolute;
    left: 50%;
    bottom: 50px;
    transform: translateX(-50%);
    width: 12px;
    height: 22px;
    background: radial-gradient(circle at 50% 70%, #FFE4A0 0%, var(--hud-amber) 50%, var(--chamber-red) 100%);
    border-radius: 50% 50% 30% 30%;
    box-shadow: 0 0 20px rgba(216, 168, 48, 0.7), 0 0 40px rgba(192, 104, 120, 0.4);
    animation: flameFlicker 1.6s ease-in-out infinite;
}

.candle-glow {
    position: absolute;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(216, 168, 48, 0.25) 0%, transparent 60%);
    border-radius: 50%;
    animation: candleGlow 3s ease-in-out infinite;
}

@keyframes flameFlicker {
    0%, 100% { transform: translateX(-50%) scaleY(1) scaleX(1); opacity: 1; }
    25%      { transform: translateX(-52%) scaleY(1.08) scaleX(0.95); opacity: 0.95; }
    50%      { transform: translateX(-50%) scaleY(0.96) scaleX(1.04); opacity: 1; }
    75%      { transform: translateX(-49%) scaleY(1.05) scaleX(0.97); opacity: 0.97; }
}

@keyframes candleGlow {
    0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
    50%      { opacity: 1;   transform: translateX(-50%) scale(1.1); }
}

.hud-vigil {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    width: min(600px, 80vw);
    height: 60px;
}

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

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hud-top-left, .hud-top-right {
        width: 140px;
        height: 50px;
    }

    .hud-top-left { top: 16px; left: 16px; }
    .hud-top-right { top: 16px; right: 16px; }

    .declaration {
        flex-direction: column;
        gap: 32px;
        padding: clamp(40px, 8vh, 80px) 24px;
    }

    .declaration-alt .decl-content,
    .declaration-alt .hud-side-right {
        order: initial;
    }

    .hud-side, .hud-side-right {
        width: 100%;
        max-width: 320px;
        transform: translateY(12px);
    }

    .is-visible .hud-side,
    .hud-side.is-visible {
        transform: translateY(0);
    }

    .hud-bottom {
        bottom: 80px;
        width: 90vw;
    }

    .scroll-cue {
        bottom: 20px;
    }
}
