/* ═══════════════════════════════════════════════════════════════════════
   Kiki & Ahti — NYNÄ palette
   Alice Blue · Thistle · Pearl Aqua · Dusk Blue · Deep Navy
   ═══════════════════════════════════════════════════════════════════════ */

:root {
    --alice-blue: #DAE8FB;
    --thistle: #F2D2FF;
    --background: #08080E;
    --foreground: var(--alice-blue);
    --accent: var(--thistle);
    --accent-secondary: var(--alice-blue);
    --accent-soft: rgba(242, 210, 255, 0.16);
    --rose: var(--thistle);
    --muted: #15151e;
    --card-bg: rgba(12, 12, 18, 0.74);
    --card-bg-solid: rgba(18, 18, 27, 0.9);
    --text-dim: rgba(218, 232, 251, 0.78);
    --text-muted: rgba(218, 232, 251, 0.48);
    --border: rgba(218, 232, 251, 0.12);
    --border-hover: rgba(242, 210, 255, 0.34);
    --surface: rgba(218, 232, 251, 0.07);
    --surface-hover: rgba(242, 210, 255, 0.12);
    --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.48);
    --shadow-lift: 0 32px 64px rgba(0, 0, 0, 0.58);
    --glow-aqua: rgba(218, 232, 251, 0.24);
    --glow-thistle: rgba(242, 210, 255, 0.2);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 28px;
    --r-pill: 999px;
    --serif: 'Playfair Display', serif;
    --sans: 'Outfit', sans-serif;
    --max-w: 52rem;
    --section-gap: 7rem;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: 2rem;
}

body {
    font-family: var(--sans);
    color: var(--foreground);
    background:
        radial-gradient(ellipse 80% 55% at 15% 10%, rgba(218, 232, 251, 0.12), transparent 50%),
        radial-gradient(ellipse 70% 50% at 85% 20%, rgba(242, 210, 255, 0.1), transparent 45%),
        radial-gradient(ellipse 60% 45% at 50% 100%, rgba(242, 210, 255, 0.18), transparent 55%),
        linear-gradient(180deg, #08080E 0%, #0d0d14 45%, #08080E 100%);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    position: relative;
    line-height: 1.6;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

::selection {
    background: var(--alice-blue);
    color: var(--background);
}

html {
    scrollbar-width: thin;
    scrollbar-color: rgba(242, 210, 255, 0.32) rgba(8, 8, 14, 0.78);
}

html::-webkit-scrollbar,
body::-webkit-scrollbar { width: 8px; }

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
    background: rgba(8, 8, 14, 0.72);
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(242, 210, 255, 0.12), rgba(242, 210, 255, 0.36), rgba(218, 232, 251, 0.2));
    border: 2px solid rgba(8, 8, 14, 0.72);
    border-radius: 999px;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; }

body.answer-locked {
    overflow: hidden;
}

body.answer-locked > :not(.wife-gate) {
    filter: blur(10px);
    pointer-events: none;
    user-select: none;
}

.wife-gate {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background:
        radial-gradient(ellipse 55% 45% at 50% 20%, rgba(242, 210, 255, 0.18), transparent 68%),
        rgba(8, 8, 14, 0.86);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: opacity 0.5s var(--ease-smooth), transform 0.5s var(--ease-smooth);
}

.wife-gate.accepted {
    opacity: 0;
    transform: scale(1.02);
    pointer-events: none;
}

.wife-gate-card {
    width: min(100%, 27rem);
    position: relative;
    overflow: hidden;
    padding: 2.25rem;
    text-align: center;
    background:
        linear-gradient(160deg, rgba(218, 232, 251, 0.12), rgba(242, 210, 255, 0.08)),
        rgba(12, 12, 18, 0.86);
    border: 1px solid rgba(242, 210, 255, 0.24);
    border-radius: 24px;
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.58), 0 0 50px rgba(242, 210, 255, 0.1);
}

.wife-gate-card::before {
    content: '';
    position: absolute;
    inset: -40% auto auto -20%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(242, 210, 255, 0.18), transparent 68%);
    pointer-events: none;
}

.wife-gate-kicker {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--thistle);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.wife-gate h2 {
    margin-bottom: 1.25rem;
    color: var(--alice-blue);
    font-size: 2rem;
    line-height: 1.1;
}

.wife-gate form {
    display: grid;
    gap: 0.8rem;
}

.wife-gate label {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.wife-gate input {
    width: 100%;
    border: 1px solid rgba(218, 232, 251, 0.18);
    border-radius: 999px;
    background: rgba(8, 8, 14, 0.7);
    color: var(--alice-blue);
    padding: 0.9rem 1.1rem;
    text-align: center;
    font: inherit;
    outline: none;
    transition: border-color 0.25s var(--ease-smooth), box-shadow 0.25s var(--ease-smooth);
}

.wife-gate input:focus {
    border-color: rgba(242, 210, 255, 0.58);
    box-shadow: 0 0 0 4px rgba(242, 210, 255, 0.12);
}

.wife-gate input::placeholder {
    color: rgba(218, 232, 251, 0.32);
}

.wife-gate-error {
    color: var(--thistle);
    font-size: 0.8rem;
    line-height: 1.55;
}

.wife-gate button {
    justify-self: center;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
    border: 0;
    border-radius: 999px;
    background: var(--thistle);
    color: var(--background);
    padding: 0.75rem 1.35rem;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 14px 34px rgba(242, 210, 255, 0.18);
    transition: transform 0.25s var(--ease-spring), box-shadow 0.25s var(--ease-smooth);
}

.wife-gate button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 46px rgba(242, 210, 255, 0.26);
}

.shake {
    animation: input-shake 0.42s ease;
}

/* ═══ Background ═════════════════════════════════════════════════════ */
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    background-image:
        linear-gradient(to right, rgba(218, 232, 251, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(218, 232, 251, 0.05) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, black 0%, transparent 65%);
    opacity: 0.5;
}

.bg-spotlight {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 45% at 50% -5%, rgba(218, 232, 251, 0.07) 0%, transparent 50%),
        radial-gradient(ellipse 35% 30% at 90% 75%, rgba(218, 232, 251, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 30% 25% at 10% 60%, rgba(242, 210, 255, 0.12) 0%, transparent 50%);
}

.bg-spotlight-sakura {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(ellipse 40% 30% at 20% 90%, rgba(242, 210, 255, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 35% 25% at 80% 15%, rgba(218, 232, 251, 0.05) 0%, transparent 50%);
}

.cursor-spotlight {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: radial-gradient(
        circle 320px at var(--mx, 50%) var(--my, 50%),
        rgba(218, 232, 251, 0.06) 0%,
        transparent 70%
    );
    transition: opacity 0.4s ease;
}

#sakura-canvas {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    width: 100%;
    height: 100%;
}

body.konami-mode .bg-spotlight-sakura {
    animation: sakura-glow 2s ease-in-out infinite alternate;
}

body.gold-flash::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    background: radial-gradient(circle, rgba(218, 232, 251, 0.3), transparent 70%);
    animation: gold-flash-anim 1.2s ease-out forwards;
}

@keyframes sakura-glow {
    0%   { opacity: 0.6; }
    100% { opacity: 1; }
}

@keyframes gold-flash-anim {
    0%   { opacity: 0; }
    30%  { opacity: 1; }
    100% { opacity: 0; }
}

.ambient-shape {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    filter: blur(100px);
}
.ambient-1 {
    width: 400px; height: 400px;
    top: -12%; left: -10%;
    background: radial-gradient(circle, rgba(218, 232, 251, 0.08), transparent 70%);
    opacity: 0.5;
}
.ambient-2 {
    width: 360px; height: 360px;
    bottom: 8%; right: -8%;
    background: radial-gradient(circle, rgba(242, 210, 255, 0.06), transparent 70%);
    opacity: 0.4;
}
.ambient-3 { display: none; }

/* ═══ Menu (ahti bubble style) ═══════════════════════════════════════ */
.menu-wrap {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
}

.menu-toggle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--card-bg-solid);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: background 0.35s var(--ease-smooth), border-color 0.35s var(--ease-smooth), transform 0.35s var(--ease-smooth);
}
.menu-toggle:hover {
    background: var(--surface-hover);
    border-color: var(--border-hover);
    transform: scale(1.04);
}
.menu-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}
.menu-line {
    width: 24px;
    height: 2px;
    background: var(--foreground);
    border-radius: 2px;
    display: block;
    transition: transform 0.3s, opacity 0.3s;
}
.menu-line.short { width: 14px; }
.menu-toggle.open .menu-line:first-child {
    transform: translateY(4px) rotate(45deg);
}
.menu-toggle.open .menu-line.short {
    width: 24px;
    transform: translateY(-4px) rotate(-45deg);
}

.menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(8, 8, 14, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s var(--ease-smooth);
}
.menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

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

.menu-nav a {
    display: inline-block;
    text-decoration: none;
    padding: 0.85rem 2.5rem;
    border-radius: var(--r-pill);
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-dim);
    font-size: clamp(1.25rem, 3.5vw, 1.65rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    transition: background 0.35s var(--ease-smooth), color 0.35s var(--ease-smooth), border-color 0.35s var(--ease-smooth), transform 0.35s var(--ease-smooth);
}
.menu-nav a:hover {
    background: var(--foreground);
    color: var(--background);
    border-color: var(--foreground);
    transform: translateY(-2px);
}

/* ═══ Layout ═════════════════════════════════════════════════════════ */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.75rem 6rem;
    position: relative;
    z-index: 6;
}

.section-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-family: var(--sans);
}

.section-title {
    font-family: var(--serif);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 400;
    color: var(--foreground);
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.section-desc {
    font-size: 0.95rem;
    color: var(--text-dim);
    font-weight: 300;
    max-width: 32rem;
    line-height: 1.7;
    margin-bottom: 3rem;
}

.section-desc.centered {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* ═══ Reveal ═════════════════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.85s var(--ease-smooth), transform 0.85s var(--ease-smooth);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.hero-screen .reveal:nth-child(1) { transition-delay: 0.04s; }
.hero-screen .reveal:nth-child(2) { transition-delay: 0.12s; }
.hero-screen .reveal:nth-child(3) { transition-delay: 0.2s; }
.hero-screen .reveal:nth-child(4) { transition-delay: 0.28s; }
.hero-screen .reveal:nth-child(5) { transition-delay: 0.36s; }
.hero-screen .reveal:nth-child(6) { transition-delay: 0.44s; }

/* ═══ Hero (fullscreen vibe) ═════════════════════════════════════════ */
.hero-screen {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 1.5rem 4rem;
    position: relative;
    isolation: isolate;
}

.hero-screen::before {
    content: '';
    position: absolute;
    width: min(55vw, 520px);
    aspect-ratio: 1;
    top: 50%;
    left: 50%;
    z-index: -1;
    border: 1px solid rgba(218, 232, 251, 0.06);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.hero-screen::after {
    display: none;
}

.hero-eyebrow {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    color: var(--alice-blue);
    margin-bottom: 1.75rem;
}

.hero-title {
    font-family: var(--serif);
    font-size: clamp(2.75rem, 10vw, 5.5rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--foreground);
    margin-bottom: 1.5rem;
}

.hero-date {
    font-family: var(--serif);
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero-sub {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: var(--text-dim);
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.pill-badge {
    display: inline-block;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.3rem 0.75rem;
    border-radius: var(--r-pill);
    border: 1px solid rgba(218, 232, 251, 0.28);
}

.hero-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 26rem;
    line-height: 1.8;
    font-weight: 300;
}

.header-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 2.5rem;
}
.hd-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(218, 232, 251, 0.2), transparent);
}
.hd-diamond {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border: none;
    transform: rotate(45deg);
    cursor: pointer;
    transition: transform 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
}
.hd-diamond:hover,
.hd-diamond:focus-visible {
    transform: rotate(45deg) scale(1.2);
    box-shadow: 0 0 10px var(--glow-aqua);
    outline: none;
}

.hero-title { cursor: default; }
.pill-badge { cursor: default; user-select: none; }
#counter-days { cursor: pointer; }

.scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--text-muted);
    opacity: 0.6;
}

.scroll-hint.reveal {
    transform: translateX(-50%) translateY(20px);
}

.scroll-hint.reveal.active {
    transform: translateX(-50%) translateY(0);
}

.scroll-hint::after {
    content: '';
    display: block;
    width: 1px;
    height: 32px;
    margin: 0.75rem auto 0;
    background: linear-gradient(to bottom, rgba(218, 232, 251, 0.25), transparent);
    animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
    0%, 100% { transform: scaleY(0.4); opacity: 0.3; transform-origin: top; }
    50% { transform: scaleY(1); opacity: 0.7; transform-origin: top; }
}

@keyframes pulse-soft {
    0%, 100% { opacity: 0.4; }
    50%      { opacity: 0.7; }
}

/* ═══ Countdown ══════════════════════════════════════════════════════ */
.counter-section {
    margin-bottom: var(--section-gap);
    text-align: center;
    position: relative;
}

.counter-section::before,
.timeline-section::before,
.footer::before {
    content: '';
    display: block;
    width: min(240px, 50vw);
    height: 1px;
    margin: 0 auto 4rem;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.counter-heading {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--alice-blue);
    margin-bottom: 1.25rem;
}

.counter-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.75rem 2.25rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-soft);
    transition: border-color 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth);
}

.counter-grid:hover {
    border-color: rgba(218, 232, 251, 0.22);
    box-shadow: var(--shadow-lift);
}

.counter-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 2rem;
}

.counter-number {
    font-family: var(--sans);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    line-height: 1;
    color: var(--foreground);
    font-variant-numeric: tabular-nums;
    min-width: 56px;
    letter-spacing: -0.02em;
}

.counter-label {
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.counter-divider {
    width: 1px;
    height: 48px;
    background: linear-gradient(180deg, transparent, var(--border), transparent);
}

.counter-since {
    margin-top: 1.25rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* ═══ Timeline (Journey style) ═════════════════════════════════════════ */
.timeline-section {
    margin-bottom: var(--section-gap);
    position: relative;
}

.timeline-header {
    text-align: center;
    margin-bottom: 4rem;
}

.timeline-container {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4.5rem;
}

.timeline-container::before {
    display: none;
}

.node {
    position: relative;
    width: min(100%, 31rem);
    margin-bottom: 0;
    z-index: 2;
}
.node.left  { margin-right: auto; }
.node.right { margin-left: auto; }
.node.active.left  { animation: node-slide-left 1.05s var(--ease-smooth) both; }
.node.active.right { animation: node-slide-right 1.05s var(--ease-smooth) both; }

.node::before {
    content: '';
    position: absolute;
    top: 2.2rem;
    width: 9px;
    height: 9px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(242, 210, 255, 0.08), 0 0 18px rgba(242, 210, 255, 0.28);
    z-index: 3;
}
.node.left::before  { right: -1.45rem; }
.node.right::before { left: -1.45rem; }

.node::after {
    content: '';
    position: absolute;
    top: calc(2.2rem + 4px);
    width: 1.45rem;
    height: 1px;
    background: linear-gradient(90deg, rgba(242, 210, 255, 0.22), transparent);
}
.node.left::after  { right: -1.45rem; transform: rotate(180deg); }
.node.right::after { left: -1.45rem; }

.content-box {
    position: relative;
    overflow: hidden;
    background: var(--card-bg);
    backdrop-filter: blur(20px) saturate(120%);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
    border: 1px solid var(--border);
    padding: 1.75rem 2rem;
    border-radius: var(--r-md);
    box-shadow: var(--shadow-soft);
    transition: transform 0.4s var(--ease-smooth), border-color 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth);
}
.content-box::before {
    display: none;
}
.content-box:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lift);
}
.content-box:hover::before {
    display: none;
}

.node-date {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 0.6rem 0.9rem;
    margin-bottom: 1.25rem;
    min-width: 70px;
}
.node-date .month {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
}
.node-date .day {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.05;
    color: var(--foreground);
    font-family: var(--sans);
}
.node-date .year {
    font-size: 0.6rem;
    color: var(--text-muted);
}

.huge-text {
    font-family: var(--serif);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
    margin-bottom: 0.75rem;
    line-height: 1.2;
    color: var(--foreground);
}

.content-box p {
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--text-dim);
    font-weight: 300;
}

.time-stamp { opacity: 0.45; font-size: 0.85em; }

.heart-icon {
    display: block;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--accent);
    opacity: 0.7;
}

.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-dim);
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 0.4rem 0.9rem;
    border-radius: var(--r-pill);
}

.image-placeholder {
    position: relative;
    overflow: hidden;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-style: dashed;
    border-color: rgba(218, 232, 251, 0.14);
    background:
        radial-gradient(circle at 25% 20%, rgba(242, 210, 255, 0.12), transparent 42%),
        rgba(218, 232, 251, 0.04);
    isolation: isolate;
}

.memory-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 0.8s var(--ease-smooth), transform 1.2s var(--ease-smooth);
}

.image-placeholder.has-memory {
    border-style: solid;
}

.image-placeholder.has-memory .memory-photo {
    opacity: 1;
    transform: scale(1);
}

.image-placeholder.has-memory:hover .memory-photo {
    transform: scale(1.035);
}

.image-placeholder.has-memory::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg, transparent 52%, rgba(8, 8, 14, 0.82) 100%);
    pointer-events: none;
}

.placeholder-img {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    color: var(--text-muted);
}
.placeholder-img i { color: var(--text-muted); opacity: 0.5; }
.placeholder-img span {
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.image-placeholder.has-memory .placeholder-img {
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
}

.memory-caption {
    position: absolute;
    right: 1.25rem;
    bottom: 1rem;
    left: 1.25rem;
    z-index: 3;
    color: var(--alice-blue);
    font-family: var(--serif);
    font-size: 0.9rem;
    font-style: italic;
    text-align: center;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.6s var(--ease-smooth), transform 0.6s var(--ease-smooth);
}

.image-placeholder.has-memory .memory-caption {
    opacity: 1;
    transform: translateY(0);
}

/* ═══ Birthday ═══════════════════════════════════════════════════════ */
.footer { padding-top: 2rem; }
.footer { position: relative; }

.birthday-card {
    position: relative;
    overflow: hidden;
    text-align: center;
    background: var(--card-bg);
    border: 1px solid rgba(218, 232, 251, 0.15);
    border-radius: var(--r-lg);
    padding: 3.5rem 2rem;
    margin-bottom: 3.5rem;
    box-shadow: var(--shadow-soft);
}
.birthday-card::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(218, 232, 251, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.bday-icon {
    margin-bottom: 1.25rem;
    color: var(--accent);
    opacity: 0.85;
}

.happy-bday {
    font-family: var(--serif);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 0.75rem;
}

.date-bottom {
    display: block;
    font-family: var(--serif);
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--alice-blue);
    margin-bottom: 1.25rem;
}

.love-message {
    font-size: 1rem;
    font-style: italic;
    color: var(--text-dim);
    max-width: 26rem;
    margin: 0 auto;
    line-height: 1.85;
    font-weight: 300;
}

/* ═══ Video ══════════════════════════════════════════════════════════ */
.video-section {
    width: 100%;
    padding-bottom: 2rem;
}

.video-title {
    text-align: center;
    margin-bottom: 2rem;
}
.video-title .section-title { margin-bottom: 0; }

.video-container {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    aspect-ratio: 16 / 9;
    transition: border-color 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth);
}

.video-container:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lift);
}

#main-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.video-thumbnail-overlay {
    position: absolute;
    inset: 0;
    z-index: 8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.5s ease;
}
.video-container.playing .video-thumbnail-overlay {
    opacity: 0;
    pointer-events: none;
}

.thumb-backdrop {
    position: absolute;
    inset: 0;
    background-color: var(--card-bg);
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}
.video-thumbnail-overlay:hover .thumb-backdrop.has-image {
    transform: scale(1.04);
}
.thumb-backdrop.thumb-fallback {
    background-image:
        radial-gradient(ellipse 80% 60% at 50% 30%, rgba(218, 232, 251, 0.15), transparent),
        linear-gradient(160deg, #15151e, var(--background));
}

.thumb-gradient {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(8, 8, 14, 0.2) 0%, rgba(8, 8, 14, 0.92) 100%);
}

.thumb-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}

.thumb-eyebrow {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--accent);
}

.thumb-title {
    font-family: var(--serif);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: var(--foreground);
}

.thumb-play-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 1px solid rgba(218, 232, 251, 0.18);
    background: rgba(8, 8, 14, 0.55);
    backdrop-filter: blur(12px);
    color: var(--foreground);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s var(--ease-smooth), border-color 0.35s var(--ease-smooth), background 0.35s var(--ease-smooth);
    margin-top: 0.25rem;
}
.thumb-play-btn i { margin-left: 3px; }
.thumb-play-btn:hover {
    transform: scale(1.06);
    border-color: rgba(218, 232, 251, 0.45);
    background: rgba(8, 8, 14, 0.72);
}

.thumb-text {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
}

/* Video controls — Spotify-ish dark bar */
.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(8, 8, 14, 0.95));
    padding: 1.5rem 1rem 0.85rem;
    opacity: 0;
    transition: opacity 0.35s var(--ease-smooth);
    z-index: 10;
}
.video-container:hover .video-controls,
.video-container.playing .video-controls,
.video-container:focus-within .video-controls { opacity: 1; }

.video-progress {
    --progress: 0%;
    position: relative;
    width: 100%;
    height: 18px;
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 0.55rem;
    touch-action: none;
    outline: none;
}

.video-progress::before {
    content: '';
    position: absolute;
    inset: 7px 0;
    border-radius: var(--r-pill);
    background:
        linear-gradient(90deg, var(--thistle) 0 var(--progress), rgba(218, 232, 251, 0.2) var(--progress) 100%);
    box-shadow: 0 0 0 1px rgba(218, 232, 251, 0.06);
}

.video-progress:focus-visible::before,
.video-progress.is-seeking::before {
    box-shadow: 0 0 0 3px rgba(242, 210, 255, 0.2);
}

.progress-filled {
    position: absolute;
    inset: 7px auto 7px 0;
    width: 0%;
    border-radius: var(--r-pill);
    pointer-events: none;
}

.progress-thumb {
    position: absolute;
    top: 50%;
    left: var(--progress);
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--alice-blue);
    border: 3px solid var(--thistle);
    box-shadow: 0 0 14px rgba(242, 210, 255, 0.55);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.22s var(--ease-spring);
    pointer-events: none;
}

.video-progress:hover .progress-thumb,
.video-progress:focus-visible .progress-thumb,
.video-progress.is-seeking .progress-thumb {
    transform: translate(-50%, -50%) scale(1);
}

.controls-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.controls-left, .controls-right {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.player-btn {
    background: none;
    border: none;
    color: var(--foreground);
    cursor: pointer;
    font-size: 0.95rem;
    transition: color 0.2s, transform 0.15s;
}
.player-btn:hover { color: var(--thistle); transform: scale(1.1); }

.time-display {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    min-width: 92px;
}

@media (hover: none), (pointer: coarse) {
    .video-controls {
        opacity: 1;
    }

    .progress-thumb {
        transform: translate(-50%, -50%) scale(0.85);
    }
}

.volume-container { display: flex; align-items: center; gap: 0.5rem; }
.volume-slider {
    width: 0;
    overflow: hidden;
    transition: width 0.25s;
    accent-color: var(--foreground);
    height: 3px;
}
.volume-container:hover .volume-slider { width: 64px; }

.res-container { position: relative; }
.res-btn {
    font-size: 0.65rem;
    font-weight: 700;
    border: 1px solid var(--border);
    padding: 3px 8px;
    border-radius: 5px;
    color: var(--text-dim);
}
.res-menu {
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    background: var(--card-bg-solid);
    border: 1px solid var(--border-hover);
    border-radius: var(--r-md);
    padding: 0.35rem 0;
    display: none;
    min-width: 90px;
    backdrop-filter: blur(20px);
}
.res-container:hover .res-menu,
.res-container:focus-within .res-menu { display: block; }
.res-option {
    padding: 0.5rem 1rem;
    font-size: 0.74rem;
    cursor: pointer;
    color: var(--text-dim);
}
.res-option:hover { background: var(--surface-hover); color: var(--foreground); }
.res-option.active { color: var(--foreground); font-weight: 700; }

/* ═══ Bottom bar (ahti footer vibe) ══════════════════════════════════ */
.site-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 56px;
    background: rgba(8, 8, 14, 0.88);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 0 1.5rem;
}

.site-bar-inner {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

.site-bar-inner i {
    color: var(--accent);
    font-size: 0.65rem;
    opacity: 0.8;
}

.site-bar-inner strong {
    color: var(--text-dim);
    font-weight: 500;
}

body { padding-bottom: 56px; }

/* ═══ Easter egg toast ═══════════════════════════════════════════════ */
.egg-toast {
    position: fixed;
    bottom: 4.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    z-index: 10002;
    padding: 0.75rem 1.35rem;
    background: var(--card-bg-solid);
    border: 1px solid rgba(242, 210, 255, 0.25);
    border-radius: var(--r-pill);
    color: var(--foreground);
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    box-shadow: var(--shadow-soft), 0 0 24px var(--glow-thistle);
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    max-width: min(90vw, 22rem);
    text-align: center;
}
.egg-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ═══ Birthday gift modal (quiz → code) ════════════════════════════════ */
.gift-modal {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.gift-modal.visible {
    opacity: 1;
    pointer-events: auto;
}
.gift-modal:not(.visible) { display: none; }
.gift-modal.visible { display: flex; }

.gift-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 8, 14, 0.94);
    backdrop-filter: blur(10px);
}

.gift-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 380px;
    background: linear-gradient(165deg, #15151e 0%, var(--background) 45%, #191923 100%);
    border: 1px solid rgba(218, 232, 251, 0.35);
    border-radius: var(--r-lg);
    padding: 2.25rem 1.5rem 1.5rem;
    text-align: center;
    box-shadow:
        var(--shadow-lift),
        0 0 0 1px rgba(242, 210, 255, 0.06) inset,
        0 0 48px var(--glow-aqua);
    transform: scale(0.96) translateY(8px);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
}
.gift-modal.visible .gift-card {
    transform: scale(1) translateY(0);
}

.gift-confetti {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.35;
    background-image:
        radial-gradient(circle, var(--thistle) 1px, transparent 1px),
        radial-gradient(circle, var(--alice-blue) 1px, transparent 1px),
        radial-gradient(circle, var(--alice-blue) 1px, transparent 1px);
    background-size: 48px 48px, 64px 64px, 80px 80px;
    background-position: 0 0, 20px 30px, 40px 10px;
}

.gift-ribbon {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.35rem 1rem;
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--background);
    background: linear-gradient(90deg, var(--thistle), var(--alice-blue), var(--alice-blue));
    border-radius: var(--r-pill);
}
.gift-ribbon-won {
    background: linear-gradient(90deg, var(--alice-blue), var(--alice-blue), var(--alice-blue));
}

.gift-close {
    position: absolute;
    top: 0.6rem;
    right: 0.75rem;
    z-index: 3;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.2rem;
}
.gift-close:hover { color: var(--foreground); }

.gift-icon-wrap { margin-bottom: 0.5rem; }
.gift-icon {
    font-size: 1.75rem;
    color: var(--accent);
    filter: drop-shadow(0 0 12px var(--glow-aqua));
}

.gift-eyebrow {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--thistle);
    margin-bottom: 0.25rem;
}

.gift-title {
    font-family: var(--serif);
    font-size: 1.35rem;
    margin-bottom: 0.65rem;
    color: var(--foreground);
}

.gift-lead {
    font-size: 0.82rem;
    color: var(--text-dim);
    line-height: 1.55;
    margin-bottom: 1rem;
}

.gift-phrase {
    font-family: var(--serif);
    font-size: 1.2rem;
    color: var(--foreground);
    margin-bottom: 1.1rem;
    padding: 0.85rem 1rem;
    background: var(--surface);
    border-radius: var(--r-sm);
    border: 1px solid rgba(218, 232, 251, 0.22);
}
.gift-blank {
    color: var(--alice-blue);
    letter-spacing: 0.08em;
}

.gift-input-label {
    display: block;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    text-align: left;
}

.gift-input {
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    font-family: var(--sans);
    font-size: 0.9rem;
    color: var(--foreground);
    background: rgba(8, 8, 14, 0.5);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.gift-input:focus {
    border-color: rgba(218, 232, 251, 0.5);
    box-shadow: 0 0 0 3px rgba(218, 232, 251, 0.14);
}
.gift-input.shake {
    animation: input-shake 0.45s ease;
    border-color: rgba(242, 210, 255, 0.55);
}

@keyframes input-shake {
    0%, 100% { transform: translateX(0); }
    25%      { transform: translateX(-6px); }
    75%      { transform: translateX(6px); }
}

.gift-error {
    font-size: 0.78rem;
    color: var(--thistle);
    margin-bottom: 0.65rem;
}

.gift-submit-btn,
.gift-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: var(--r-pill);
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.gift-submit-btn {
    background: linear-gradient(135deg, var(--alice-blue), var(--thistle));
    color: var(--background);
}
.gift-submit-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 0 28px var(--glow-aqua);
}

.gift-step-reward .gift-code-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}

.gift-code {
    display: block;
    font-family: ui-monospace, Consolas, monospace;
    font-size: clamp(0.85rem, 3vw, 1rem);
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--foreground);
    background: rgba(8, 8, 14, 0.55);
    border: 1px dashed rgba(218, 232, 251, 0.4);
    border-radius: var(--r-sm);
    padding: 0.9rem 0.65rem;
    word-break: break-all;
    user-select: all;
}

.gift-copy-btn {
    background: var(--foreground);
    color: var(--background);
}
.gift-copy-btn:hover {
    box-shadow: 0 0 20px var(--glow-aqua);
}
.gift-copy-btn.copied {
    background: #22c55e;
    color: var(--foreground);
}

.gift-hint {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-style: italic;
}

.gift-step[hidden] { display: none; }

#easter-bar-heart .fa-heart { cursor: pointer; }

/* ═══ Minecraft characters ═══════════════════════════════════════════ */
.mc-scene {
    position: fixed;
    inset: 0;
    z-index: 7;
    pointer-events: none;
    overflow: hidden;
    transition: opacity 0.7s var(--ease-smooth);
}

.mc-scene.is-finale-hidden {
    opacity: 0;
}

.mc-scene::before {
    content: '';
    position: fixed;
    left: 50%;
    bottom: 56px;
    width: min(680px, 70vw);
    height: 100px;
    z-index: 0;
    transform: translateX(-50%) perspective(520px) rotateX(64deg);
    transform-origin: 50% 100%;
    border: 1px solid rgba(218, 232, 251, 0.1);
    border-radius: 50%;
    background:
        radial-gradient(ellipse at center, rgba(242, 210, 255, 0.12), rgba(218, 232, 251, 0.08) 42%, transparent 72%);
    box-shadow: 0 16px 50px rgba(8, 8, 14, 0.5);
    opacity: 0.5;
}

.mc-scene::after {
    content: '';
    position: fixed;
    left: 50%;
    bottom: 66px;
    width: min(460px, 48vw);
    height: 22px;
    z-index: 0;
    transform: translateX(-50%);
    background: radial-gradient(ellipse, rgba(242, 210, 255, 0.25), transparent 72%);
    filter: blur(10px);
    opacity: 0;
    transition: opacity 0.8s var(--ease-smooth);
}

.mc-scene.is-kissing::after {
    opacity: 1;
}

.mc-container {
    position: fixed;
    bottom: 75px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: left 0.18s var(--ease-smooth), right 0.18s var(--ease-smooth), transform 0.5s var(--ease-smooth);
}
.mc-left  { left: -126px; }
.mc-right { right: -126px; }

.mc-name {
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-dim);
    margin-bottom: 4px;
    padding: 4px 10px;
    background: rgba(8, 8, 14, 0.65);
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    backdrop-filter: blur(8px);
}
.mc-left .mc-name  { color: var(--alice-blue); }
.mc-right .mc-name { color: var(--thistle); }

.mc-viewport {
    position: relative;
    width: 108px;
    height: 162px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.mc-canvas {
    width: 108px !important;
    height: 162px !important;
    display: block;
    filter:
        drop-shadow(0 0 14px var(--glow-thistle))
        drop-shadow(0 10px 22px rgba(8, 8, 14, 0.75));
    transition: transform 0.65s var(--ease-smooth), filter 0.65s var(--ease-smooth);
}

.mc-scene.is-kissing .mc-left .mc-canvas {
    animation: mc-left-hug-kiss 2.6s ease-in-out infinite;
}
.mc-scene.is-kissing .mc-right .mc-canvas {
    animation: mc-right-hug-kiss 2.6s ease-in-out infinite;
}

.ground-platform {
    width: 104px;
    height: 12px;
    margin-top: -7px;
    background:
        linear-gradient(180deg, rgba(218, 232, 251, 0.2), rgba(218, 232, 251, 0.04)),
        repeating-linear-gradient(90deg, rgba(218, 232, 251, 0.08) 0 1px, transparent 1px 13px);
    border-top: 1px solid rgba(218, 232, 251, 0.25);
    border-radius: 999px;
    position: relative;
    box-shadow: 0 10px 24px rgba(8, 8, 14, 0.4);
}
.ground-platform::after {
    content: '';
    position: absolute;
    top: -9px;
    left: 50%;
    transform: translateX(-50%);
    width: 86px;
    height: 16px;
    background: radial-gradient(ellipse, rgba(218, 232, 251, 0.28), transparent 72%);
    filter: blur(5px);
}

.mc-meet {
    position: fixed;
    bottom: 256px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    z-index: 8;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.7s var(--ease-smooth);
}

.mc-heart-main {
    --p: 4px;
    position: relative;
    display: block;
    width: calc(var(--p) * 7);
    height: calc(var(--p) * 6);
    color: var(--thistle);
    font-size: 0;
    image-rendering: pixelated;
    filter:
        drop-shadow(0 0 10px rgba(242, 210, 255, 0.7))
        drop-shadow(0 0 22px rgba(218, 232, 251, 0.45));
    animation: mc-heart-float 2.2s ease-in-out infinite;
}

.mc-heart-main::before,
.mc-kiss-spark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: var(--p);
    height: var(--p);
    background: transparent;
    color: inherit;
    box-shadow:
        calc(var(--p) * 1) 0 currentColor,
        calc(var(--p) * 2) 0 currentColor,
        calc(var(--p) * 4) 0 currentColor,
        calc(var(--p) * 5) 0 currentColor,
        0 calc(var(--p) * 1) currentColor,
        calc(var(--p) * 1) calc(var(--p) * 1) currentColor,
        calc(var(--p) * 2) calc(var(--p) * 1) currentColor,
        calc(var(--p) * 3) calc(var(--p) * 1) var(--alice-blue),
        calc(var(--p) * 4) calc(var(--p) * 1) currentColor,
        calc(var(--p) * 5) calc(var(--p) * 1) currentColor,
        calc(var(--p) * 6) calc(var(--p) * 1) currentColor,
        0 calc(var(--p) * 2) var(--thistle),
        calc(var(--p) * 1) calc(var(--p) * 2) currentColor,
        calc(var(--p) * 2) calc(var(--p) * 2) currentColor,
        calc(var(--p) * 3) calc(var(--p) * 2) currentColor,
        calc(var(--p) * 4) calc(var(--p) * 2) currentColor,
        calc(var(--p) * 5) calc(var(--p) * 2) currentColor,
        calc(var(--p) * 6) calc(var(--p) * 2) var(--thistle),
        calc(var(--p) * 1) calc(var(--p) * 3) var(--thistle),
        calc(var(--p) * 2) calc(var(--p) * 3) currentColor,
        calc(var(--p) * 3) calc(var(--p) * 3) currentColor,
        calc(var(--p) * 4) calc(var(--p) * 3) currentColor,
        calc(var(--p) * 5) calc(var(--p) * 3) var(--thistle),
        calc(var(--p) * 2) calc(var(--p) * 4) var(--thistle),
        calc(var(--p) * 3) calc(var(--p) * 4) currentColor,
        calc(var(--p) * 4) calc(var(--p) * 4) var(--thistle),
        calc(var(--p) * 3) calc(var(--p) * 5) var(--thistle);
}

.mc-scene.is-kissing .mc-meet {
    opacity: 1 !important;
    transform: translateX(-50%) translateY(0);
}

.mc-scene.is-kissing .mc-meet::after {
    content: '';
    position: absolute;
    top: 48px;
    left: 50%;
    width: 9px;
    height: 9px;
    transform: translateX(-50%) rotate(45deg);
    background: var(--thistle);
    box-shadow:
        0 0 0 2px rgba(242, 210, 255, 0.16),
        0 0 18px rgba(242, 210, 255, 0.65);
    animation: mc-kiss-contact 1.35s ease-in-out infinite;
}

.mc-scene.is-kissing .mc-heart-main {
    --p: 3px;
    animation: mc-heart-kiss 1.1s ease-in-out infinite;
}

.mc-scene.is-kissing .mc-left .mc-name,
.mc-scene.is-kissing .mc-right .mc-name {
    color: var(--alice-blue);
    border-color: rgba(218, 232, 251, 0.35);
    opacity: 0.28;
}

.mc-kiss-spark {
    --p: 2px;
    position: absolute;
    width: calc(var(--p) * 7);
    height: calc(var(--p) * 6);
    font-size: 0;
    color: var(--thistle);
    opacity: 0;
    pointer-events: none;
    image-rendering: pixelated;
    filter: drop-shadow(0 0 8px var(--glow-thistle));
}
.mc-scene.is-kissing .mc-kiss-spark {
    animation: mc-spark-rise 1.4s ease-out infinite;
}
.mc-kiss-spark:nth-child(2) { left: -28px; animation-delay: 0s; }
.mc-kiss-spark:nth-child(3) { left: 8px;  animation-delay: 0.35s; }
.mc-kiss-spark:nth-child(4) { right: -24px; animation-delay: 0.7s; }

@keyframes mc-heart-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50%      { transform: translateY(-8px) scale(1.06); }
}

@keyframes mc-heart-kiss {
    0%, 100% { transform: scale(1); }
    42%      { transform: scale(1.16) translateY(-2px); }
    66%      { transform: scale(1.04); }
}

@keyframes mc-left-hug-kiss {
    0%, 100% { transform: translateX(4px) translateY(1px) scale(1.008); }
    42% { transform: translateX(8px) translateY(0) scale(1.012); }
    64% { transform: translateX(6px) translateY(1px) scale(1.01); }
}

@keyframes mc-right-hug-kiss {
    0%, 100% { transform: translateX(-4px) translateY(1px) scale(1.008); }
    42% { transform: translateX(-8px) translateY(0) scale(1.012); }
    64% { transform: translateX(-6px) translateY(1px) scale(1.01); }
}

@keyframes mc-kiss-contact {
    0%, 100% { opacity: 0.35; transform: translateX(-50%) rotate(45deg) scale(0.75); }
    42% { opacity: 1; transform: translateX(-50%) rotate(45deg) scale(1.15); }
    64% { opacity: 0.7; transform: translateX(-50%) rotate(45deg) scale(0.92); }
}

@keyframes mc-spark-rise {
    0%   { opacity: 0; transform: translateY(8px) scale(0.6); }
    25%  { opacity: 1; }
    100% { opacity: 0; transform: translateY(-36px) scale(1); }
}

@keyframes mc-surface-glow {
    0% { opacity: 0.45; }
    100% { opacity: 0.55; }
}

.birthday-finale {
    position: relative;
    width: 100vw;
    min-height: 72vh;
    margin-left: calc(50% - 50vw);
    margin-top: 5rem;
    padding: 7rem max(1.5rem, calc((100vw - 52rem) / 2)) 8rem;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-top: 1px solid rgba(218, 232, 251, 0.12);
    border-bottom: 1px solid rgba(242, 210, 255, 0.12);
    background:
        radial-gradient(ellipse 55% 45% at 20% 25%, rgba(218, 232, 251, 0.12), transparent 70%),
        radial-gradient(ellipse 55% 45% at 80% 75%, rgba(242, 210, 255, 0.14), transparent 70%),
        linear-gradient(180deg, rgba(8, 8, 14, 0.3), rgba(242, 210, 255, 0.045), rgba(8, 8, 14, 0.3));
}

.birthday-finale::before,
.birthday-finale::after {
    content: '';
    position: absolute;
    inset: 9% 6%;
    z-index: -1;
    border: 1px solid rgba(218, 232, 251, 0.08);
    border-radius: 50%;
    animation: finale-orbit 18s linear infinite;
}

.birthday-finale::after {
    inset: 17% 13%;
    border-color: rgba(242, 210, 255, 0.1);
    animation-direction: reverse;
    animation-duration: 24s;
}

.finale-kicker {
    color: var(--thistle);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    margin-bottom: 1.5rem;
    animation: finale-soft-pulse 3.5s ease-in-out infinite;
}

.finale-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--sans);
    font-size: 5.5rem;
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--alice-blue);
    text-shadow:
        0 0 28px rgba(218, 232, 251, 0.18),
        0 18px 60px rgba(0, 0, 0, 0.55);
}

.finale-title span {
    animation: finale-title-float 5.5s ease-in-out infinite;
}

.finale-title strong {
    display: block;
    margin-top: 0.22em;
    color: var(--thistle);
    font-family: var(--serif);
    font-size: 1.2em;
    font-style: italic;
    font-weight: 600;
    letter-spacing: 0;
    text-shadow:
        0 0 34px rgba(242, 210, 255, 0.28),
        0 18px 60px rgba(0, 0, 0, 0.55);
    animation: finale-name-float 5.5s ease-in-out infinite;
}

.finale-message {
    max-width: 34rem;
    margin-top: 2rem;
    color: var(--text-dim);
    font-family: var(--serif);
    font-size: 1.15rem;
    font-style: italic;
    line-height: 1.8;
}

.finale-hearts {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    margin-top: 2rem;
    color: var(--thistle);
}

.finale-hearts i {
    filter: drop-shadow(0 0 12px rgba(242, 210, 255, 0.45));
    animation: finale-heart 1.8s ease-in-out infinite;
}

.finale-hearts i:nth-child(1) {
    color: var(--alice-blue);
    animation-delay: -0.3s;
}

.finale-hearts i:nth-child(2) {
    font-size: 1.35rem;
}

.finale-hearts i:nth-child(3) {
    color: var(--alice-blue);
    animation-delay: 0.3s;
}

.finale-sparkles span {
    position: absolute;
    width: 18px;
    height: 18px;
    color: var(--alice-blue);
    animation: finale-sparkle 2.8s ease-in-out infinite;
}

.finale-sparkles span::before,
.finale-sparkles span::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    background: currentColor;
    transform: translate(-50%, -50%);
    border-radius: 999px;
}

.finale-sparkles span::before {
    width: 2px;
    height: 100%;
}

.finale-sparkles span::after {
    width: 100%;
    height: 2px;
}

.finale-sparkles span:nth-child(1) { top: 20%; left: 13%; }
.finale-sparkles span:nth-child(2) { top: 28%; right: 14%; color: var(--thistle); animation-delay: -0.8s; }
.finale-sparkles span:nth-child(3) { bottom: 21%; left: 20%; color: var(--thistle); animation-delay: -1.4s; }
.finale-sparkles span:nth-child(4) { bottom: 18%; right: 20%; animation-delay: -2s; }

@keyframes finale-orbit {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.025); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes finale-title-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

@keyframes finale-name-float {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(7px) rotate(1deg); }
}

@keyframes finale-soft-pulse {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; }
}

@keyframes finale-heart {
    0%, 100% { transform: translateY(0) scale(0.9); }
    45% { transform: translateY(-7px) scale(1.15); }
}

@keyframes finale-sparkle {
    0%, 100% { opacity: 0.2; transform: scale(0.55) rotate(0deg); }
    50% { opacity: 1; transform: scale(1) rotate(90deg); }
}

.site-footer {
    text-align: center;
    padding: 2.5rem 0 0.5rem;
    font-size: 0.68rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.7;
}

.site-footer i {
    color: var(--accent);
    font-size: 0.6rem;
    opacity: 0.8;
}

/* ═══ Responsive ═════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .node { width: 100%; }
    .node::before, .node::after { display: none; }
    .timeline-container::before { display: none; }
    .counter-grid { padding: 1.5rem 1rem; }
    .counter-divider {
        height: 1px;
        width: 40px;
    }
    .ambient-shape { display: none; }
    .mc-scene { display: none; }
    .hero-screen { padding-top: 5rem; }
    .menu-nav a { font-size: 1.35rem; padding: 0.85rem 2rem; }
    .birthday-finale {
        min-height: 64vh;
        padding-top: 5.5rem;
        padding-bottom: 6.5rem;
    }
    .finale-title { font-size: 3rem; }
    .finale-message { font-size: 1rem; max-width: 19rem; }
    .finale-sparkles span:nth-child(1) { left: 7%; }
    .finale-sparkles span:nth-child(2) { right: 7%; }
    .controls-left, .controls-right { gap: 0.6rem; }
    .volume-container { display: none; }
    .time-display { min-width: 82px; font-size: 0.66rem; }
}

@media (min-width: 769px) {
    .container { padding-left: 2rem; padding-right: 2rem; }
}

@media (min-width: 900px) {
    .mc-viewport { width: 118px; height: 177px; }
    .mc-canvas { width: 118px !important; height: 177px !important; }
    .mc-container { bottom: 78px; }
    .ground-platform { width: 112px; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        transform: none;
    }
}

@keyframes node-slide-left {
    0% { transform: translateX(-12px); opacity: 0.8; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes node-slide-right {
    0% { transform: translateX(12px); opacity: 0.8; }
    100% { transform: translateX(0); opacity: 1; }
}
