/* politics.bar — anti-design, dark-neon, candle-atmospheric */
/* Typography: Roboto Slab (Google Fonts) per DESIGN.md */

:root {
    --bar-dark: #0A0A18;
    --neon-pink: #FF3878;
    --neon-blue: #3878FF;
    --candle-amber: #F0B040;
    --text-warm: #E8E0D0;
    --blob-lavender: #6858A0;
    --blob-teal: #38A088;
}

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

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    background: var(--bar-dark);
    color: var(--text-warm);
    font-family: "Roboto Slab", Georgia, serif;
    font-weight: 400;
    line-height: 1.8;
    min-height: 100vh;
    position: relative;
}

/* ---------------- Ambient background layer ---------------- */
.ambient-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50% 45% 55% 50% / 50% 55% 45% 50%;
    filter: blur(40px);
    opacity: 0;
    animation: blob-fade-in 1800ms ease 600ms forwards, blob-morph 15s ease-in-out infinite;
    will-change: transform, border-radius;
}

.blob-lavender { background: var(--blob-lavender); }
.blob-teal { background: var(--blob-teal); }

.blob-1 {
    width: 380px;
    height: 380px;
    top: 8vh;
    left: -60px;
    --target-opacity: 0.18;
    animation-delay: 0ms, 0ms;
}
.blob-2 {
    width: 320px;
    height: 320px;
    top: 60vh;
    right: -80px;
    --target-opacity: 0.15;
    animation-delay: 200ms, 2s;
}
.blob-3 {
    width: 260px;
    height: 260px;
    top: 130vh;
    left: 8vw;
    --target-opacity: 0.13;
    animation-delay: 400ms, 4s;
}
.blob-4 {
    width: 300px;
    height: 300px;
    top: 200vh;
    right: 12vw;
    --target-opacity: 0.16;
    animation-delay: 600ms, 6s;
}

@keyframes blob-fade-in {
    to { opacity: var(--target-opacity, 0.15); }
}

@keyframes blob-morph {
    0%   { border-radius: 50% 45% 55% 50% / 50% 55% 45% 50%; transform: translate3d(0, 0, 0) rotate(0deg); }
    25%  { border-radius: 42% 58% 48% 52% / 56% 44% 60% 40%; transform: translate3d(20px, -15px, 0) rotate(7deg); }
    50%  { border-radius: 60% 40% 55% 45% / 40% 55% 45% 60%; transform: translate3d(-10px, 25px, 0) rotate(-5deg); }
    75%  { border-radius: 45% 55% 42% 58% / 60% 42% 58% 40%; transform: translate3d(15px, 10px, 0) rotate(4deg); }
    100% { border-radius: 50% 45% 55% 50% / 50% 55% 45% 50%; transform: translate3d(0, 0, 0) rotate(0deg); }
}

.candle-pool {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    animation: candle-bloom 1400ms ease forwards, candle-flutter 6s ease-in-out infinite;
    mix-blend-mode: screen;
}

.candle-1 {
    width: 150px;
    height: 150px;
    top: 14vh;
    left: 28vw;
    background: radial-gradient(circle, rgba(240,176,64,0.22) 0%, rgba(240,176,64,0) 70%);
    --target-opacity: 0.95;
    animation-delay: 200ms, 0s;
}
.candle-2 {
    width: 110px;
    height: 110px;
    top: 70vh;
    right: 22vw;
    background: radial-gradient(circle, rgba(240,176,64,0.20) 0%, rgba(240,176,64,0) 70%);
    --target-opacity: 0.85;
    animation-delay: 400ms, 1.5s;
}
.candle-3 {
    width: 130px;
    height: 130px;
    top: 150vh;
    left: 18vw;
    background: radial-gradient(circle, rgba(240,176,64,0.18) 0%, rgba(240,176,64,0) 70%);
    --target-opacity: 0.9;
    animation-delay: 600ms, 3s;
}
.candle-4 {
    width: 95px;
    height: 95px;
    top: 230vh;
    right: 30vw;
    background: radial-gradient(circle, rgba(240,176,64,0.20) 0%, rgba(240,176,64,0) 70%);
    --target-opacity: 0.85;
    animation-delay: 800ms, 4.5s;
}

@keyframes candle-bloom {
    to { opacity: var(--target-opacity, 0.9); }
}

@keyframes candle-flutter {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50%      { transform: scale(1.08); filter: brightness(1.18); }
    72%      { transform: scale(0.96); filter: brightness(0.92); }
}

.neon-stripe {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    opacity: 0.55;
}
.stripe-top {
    top: 6vh;
    background: linear-gradient(90deg, transparent 0%, var(--neon-pink) 22%, var(--neon-blue) 78%, transparent 100%);
    box-shadow: 0 0 16px var(--neon-pink);
}
.stripe-bottom {
    bottom: 8vh;
    background: linear-gradient(90deg, transparent 0%, var(--neon-blue) 30%, var(--neon-pink) 70%, transparent 100%);
    box-shadow: 0 0 16px var(--neon-blue);
}

/* ---------------- Bar sign (hero) ---------------- */
.bar-sign {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px 60px;
    text-align: center;
}

.sign-frame {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
}

.sign-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--candle-amber);
    margin-bottom: 36px;
    opacity: 0;
    animation: tag-fade 900ms ease 200ms forwards;
}

@keyframes tag-fade {
    to { opacity: 0.8; }
}

.sign-title {
    font-family: "Roboto Slab", Georgia, serif;
    font-weight: 700;
    font-size: clamp(48px, 9vw, 132px);
    line-height: 0.95;
    letter-spacing: -0.02em;
    color: var(--text-warm);
    margin-bottom: 28px;
    position: relative;
    text-shadow: 0 0 0 transparent;
    animation: neon-build 600ms ease 300ms forwards, neon-flicker 100ms ease 1200ms 1;
    will-change: text-shadow, opacity;
}

@keyframes neon-build {
    0% {
        text-shadow: 0 0 0 transparent;
    }
    100% {
        text-shadow:
            0 0 8px rgba(255, 56, 120, 0.85),
            0 0 18px rgba(255, 56, 120, 0.55),
            0 0 36px rgba(56, 120, 255, 0.35),
            0 0 60px rgba(255, 56, 120, 0.25);
    }
}

@keyframes neon-flicker {
    0%   { opacity: 1; }
    35%  { opacity: 0.7; }
    65%  { opacity: 1; }
    80%  { opacity: 0.78; }
    100% { opacity: 1; }
}

.sign-title.flicker {
    animation: neon-flicker 240ms ease 1;
}

.sign-sub {
    font-family: "Roboto Slab", Georgia, serif;
    font-weight: 300;
    font-style: italic;
    font-size: clamp(15px, 1.4vw, 19px);
    color: var(--text-warm);
    opacity: 0;
    animation: sub-fade 1000ms ease 1100ms forwards;
    margin-bottom: 48px;
}

@keyframes sub-fade {
    to { opacity: 0.78; }
}

.sign-flicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--neon-pink);
    text-shadow: 0 0 6px var(--neon-pink), 0 0 14px rgba(255,56,120,0.6);
    opacity: 0;
    animation: sub-fade 800ms ease 1500ms forwards;
}

.flicker-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--neon-pink);
    box-shadow: 0 0 8px var(--neon-pink), 0 0 16px var(--neon-pink);
    animation: dot-pulse 1.4s ease-in-out infinite;
}

@keyframes dot-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.45); opacity: 0.6; }
}

.candle-cluster {
    position: absolute;
    bottom: 12vh;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: flex-end;
    gap: 26px;
    pointer-events: none;
}

.flame {
    width: 28px;
    height: 46px;
    transform-origin: 50% 100%;
    filter: drop-shadow(0 0 10px rgba(240, 176, 64, 0.6));
    animation: flame-dance 2.4s ease-in-out infinite;
}
.flame-small {
    width: 22px;
    height: 36px;
    animation-duration: 2.8s;
    animation-delay: 0.3s;
}
.flame-tiny {
    width: 18px;
    height: 30px;
    animation-duration: 3.1s;
    animation-delay: 0.6s;
}

@keyframes flame-dance {
    0%, 100% { transform: scaleY(1) skewX(0deg); }
    25%      { transform: scaleY(1.08) skewX(2deg); }
    50%      { transform: scaleY(0.94) skewX(-3deg); }
    75%      { transform: scaleY(1.05) skewX(1deg); }
}

.scroll-cue {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--text-warm);
    opacity: 0;
    animation: sub-fade 800ms ease 1800ms forwards;
}
.cue-arrow {
    font-size: 18px;
    animation: cue-bob 2s ease-in-out infinite;
    color: var(--candle-amber);
}
@keyframes cue-bob {
    0%, 100% { transform: translateY(0); opacity: 0.7; }
    50%      { transform: translateY(6px); opacity: 1; }
}

/* ---------------- Counter (centered scroll) ---------------- */
.counter {
    position: relative;
    z-index: 2;
    max-width: 640px;
    margin: 0 auto;
    padding: 60px 24px 80px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.round {
    position: relative;
    padding: 36px 28px;
    border: 1px solid rgba(232, 224, 208, 0.08);
    border-radius: 6px;
    background: rgba(10, 10, 24, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: transform 600ms ease, border-color 320ms ease, box-shadow 320ms ease;
    opacity: 0;
    transform: translateY(24px);
    will-change: opacity, transform, box-shadow;
}

.round.is-visible {
    opacity: 1;
    transform: translateY(0);
    animation: breathe 7s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { transform: translateY(0) scale(1); }
    50%      { transform: translateY(-2px) scale(1.005); }
}

/* anti-design: each round enters slightly differently */
.round[data-round="01"] { transition-duration: 700ms; }
.round[data-round="02"] { transition-duration: 380ms; }
.round[data-round="03"] { transition-duration: 0ms; } /* snap */
.round[data-round="04"] { transition-duration: 900ms; }
.round[data-round="05"] { transition-duration: 520ms; }
.round[data-round="06"] { transition-duration: 1100ms; }

.round.tilt-left.is-visible  { transform: translateY(0) rotate(-0.7deg); }
.round.tilt-right.is-visible { transform: translateY(0) rotate(0.6deg); }

.round.tilt-left.is-visible:hover,
.round.tilt-right.is-visible:hover { transform: translateY(0) rotate(0deg) scale(1.01); }

.round:hover {
    border-color: rgba(255, 56, 120, 0.55);
    box-shadow:
        0 0 0 1px rgba(255, 56, 120, 0.35),
        0 0 24px rgba(255, 56, 120, 0.25),
        0 0 60px rgba(56, 120, 255, 0.12);
}

.round:nth-child(even):hover {
    border-color: rgba(56, 120, 255, 0.55);
    box-shadow:
        0 0 0 1px rgba(56, 120, 255, 0.35),
        0 0 24px rgba(56, 120, 255, 0.25),
        0 0 60px rgba(255, 56, 120, 0.12);
}

.round-marker {
    font-family: "Roboto Slab", Georgia, serif;
    font-weight: 900;
    font-size: clamp(24px, 2.5vw, 40px);
    color: var(--candle-amber);
    line-height: 1;
    margin-bottom: 14px;
    text-shadow: 0 0 10px rgba(240, 176, 64, 0.4);
    transition: text-shadow 320ms ease, color 320ms ease;
}

.round:hover .round-marker {
    color: var(--neon-pink);
    text-shadow: 0 0 14px rgba(255, 56, 120, 0.7), 0 0 28px rgba(255, 56, 120, 0.35);
}
.round:nth-child(even):hover .round-marker {
    color: var(--neon-blue);
    text-shadow: 0 0 14px rgba(56, 120, 255, 0.7), 0 0 28px rgba(56, 120, 255, 0.35);
}

.round-title {
    font-family: "Roboto Slab", Georgia, serif;
    font-weight: 700;
    font-size: clamp(28px, 3.5vw, 56px);
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--text-warm);
    margin-bottom: 18px;
}

/* anti-design: deliberate uneven margins on alternating titles */
.round[data-round="02"] .round-title { margin-left: -6px; }
.round[data-round="04"] .round-title { margin-right: -8px; }
.round[data-round="06"] .round-title { margin-left: 4px; line-height: 1.05; }

.round-body p {
    font-family: "Roboto Slab", Georgia, serif;
    font-weight: 400;
    font-size: clamp(15px, 1vw, 17px);
    line-height: 1.8;
    color: var(--text-warm);
    opacity: 0.86;
}

/* anti-design: subtle line-height mismatch on one round */
.round[data-round="03"] .round-body p { line-height: 1.65; }
.round[data-round="05"] .round-body p { line-height: 1.92; }

.round-aside {
    display: inline-block;
    margin-top: 22px;
    font-family: "Roboto Slab", Georgia, serif;
    font-weight: 300;
    font-style: italic;
    font-size: 13px;
    color: var(--text-warm);
    opacity: 0.5;
    border-left: 2px solid var(--candle-amber);
    padding-left: 10px;
}

/* ---------------- Interludes (candle-lit pauses) ---------------- */
.interlude {
    position: relative;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.candle-bloom {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(240, 176, 64, 0.22) 0%, rgba(240, 176, 64, 0) 60%);
    animation: bloom-pulse 7s ease-in-out infinite;
    pointer-events: none;
}
.candle-bloom-pink {
    background: radial-gradient(ellipse at center, rgba(255, 56, 120, 0.18) 0%, rgba(255, 56, 120, 0) 60%);
}
.candle-bloom-blue {
    background: radial-gradient(ellipse at center, rgba(56, 120, 255, 0.18) 0%, rgba(56, 120, 255, 0) 60%);
}

@keyframes bloom-pulse {
    0%, 100% { transform: scale(1); opacity: 0.85; }
    50%      { transform: scale(1.12); opacity: 1; }
}

.interlude-line {
    position: relative;
    z-index: 1;
    font-family: "Roboto Slab", Georgia, serif;
    font-weight: 300;
    font-style: italic;
    font-size: 13px;
    letter-spacing: 0.24em;
    color: var(--text-warm);
    opacity: 0.5;
    text-transform: lowercase;
}

/* ---------------- Last call (footer) ---------------- */
.last-call {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 100px 24px 80px;
    overflow: hidden;
}

.last-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.18;
    pointer-events: none;
    animation: blob-morph 12s ease-in-out infinite, last-dim 14s ease-in-out infinite;
}
.last-blob-a {
    width: 280px;
    height: 280px;
    top: -40px;
    left: 12vw;
    background: var(--blob-lavender);
}
.last-blob-b {
    width: 240px;
    height: 240px;
    bottom: -60px;
    right: 10vw;
    background: var(--blob-teal);
    animation-delay: 0s, 6s;
}

@keyframes last-dim {
    0%, 100% { opacity: 0.18; }
    50%      { opacity: 0.08; }
}

.last-candle {
    width: 80px;
    height: 80px;
    margin: 0 auto 28px;
    background: radial-gradient(circle, rgba(240, 176, 64, 0.7) 0%, rgba(240, 176, 64, 0) 70%);
    border-radius: 50%;
    animation: candle-flutter 5s ease-in-out infinite, last-dim 14s ease-in-out infinite;
}

.last-line {
    font-family: "Roboto Slab", Georgia, serif;
    font-weight: 700;
    font-size: clamp(22px, 2.4vw, 34px);
    color: var(--text-warm);
    letter-spacing: -0.01em;
    margin-bottom: 14px;
    text-shadow: 0 0 8px rgba(255, 56, 120, 0.45), 0 0 18px rgba(56, 120, 255, 0.25);
}

.last-fineprint {
    font-family: "Roboto Slab", Georgia, serif;
    font-weight: 300;
    font-style: italic;
    font-size: 13px;
    color: var(--text-warm);
    opacity: 0.55;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ---------------- Responsive tuning ---------------- */
@media (max-width: 720px) {
    .bar-sign { padding: 60px 18px 100px; }
    .candle-cluster { bottom: 16vh; gap: 18px; }
    .counter { padding: 40px 18px 60px; gap: 36px; }
    .round { padding: 28px 22px; }
    .blob-1, .blob-2, .blob-3, .blob-4 { filter: blur(30px); }
}
