/* Magic Storyland landing — design tokens */
:root {
    --bg-deep: #15103A;
    --bg-mid: #3D1D6E;
    --gradient-bg: linear-gradient(160deg, #15103A 0%, #3D1D6E 100%);
    --gradient-bg-radial: radial-gradient(ellipse at top, #3D1D6E 0%, #15103A 70%);
    --gradient-card: linear-gradient(145deg, rgba(61, 29, 110, 0.55) 0%, rgba(21, 16, 58, 0.75) 100%);
    --gradient-accent: linear-gradient(135deg, #FFB546 0%, #FF7E55 100%);

    --accent: #FFB546;
    --accent-strong: #FF9F1C;
    --accent-soft: #C77DFF;
    --accent-soft-strong: #A87FE6;

    --text-primary: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.72);
    --text-dim: rgba(255, 255, 255, 0.55);
    --border-glass: rgba(255, 255, 255, 0.10);
    --border-glass-strong: rgba(255, 255, 255, 0.18);

    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --shadow-card: 0 12px 40px rgba(0, 0, 0, 0.35);
    --shadow-cta: 0 10px 32px rgba(255, 181, 70, 0.40);
    --shadow-glow: 0 0 60px rgba(199, 125, 255, 0.25);

    --container: 1200px;
    --nav-height: 76px;

    --ease: cubic-bezier(0.4, 0.0, 0.2, 1);
}

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

html {
    background: var(--bg-deep);
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--gradient-bg) fixed;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(2px 2px at 18% 22%, rgba(255, 255, 255, 0.55), transparent 60%),
        radial-gradient(1.5px 1.5px at 73% 38%, rgba(255, 255, 255, 0.45), transparent 60%),
        radial-gradient(1px 1px at 42% 78%, rgba(255, 255, 255, 0.35), transparent 60%),
        radial-gradient(2px 2px at 85% 12%, rgba(199, 125, 255, 0.55), transparent 60%),
        radial-gradient(1.5px 1.5px at 12% 88%, rgba(255, 181, 70, 0.45), transparent 60%);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.7;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    position: relative;
    padding: 96px 0;
    z-index: 1;
}

.section--narrow { padding: 64px 0; }

.section__eyebrow {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.section__title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section__subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 640px;
}

.section__header {
    margin-bottom: 56px;
    text-align: center;
}

.section__header .section__subtitle { margin: 0 auto; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 1rem;
    border: 0;
    background: transparent;
    color: inherit;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
    text-align: center;
    white-space: nowrap;
}

.btn--primary {
    background: var(--gradient-accent);
    color: #1A0B2E;
    box-shadow: var(--shadow-cta);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 38px rgba(255, 181, 70, 0.55);
}

.btn--secondary {
    border: 2px solid var(--border-glass-strong);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

.btn--secondary:hover {
    border-color: var(--accent-soft);
    background: rgba(199, 125, 255, 0.12);
}

.btn--lg { padding: 18px 36px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* Play badge */
.play-badge {
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s var(--ease), filter 0.2s var(--ease);
}
.play-badge img { height: 56px; width: auto; }
.play-badge:hover { transform: translateY(-2px); filter: drop-shadow(0 8px 20px rgba(255, 181, 70, 0.35)); }
.play-badge--sm img { height: 44px; }
.play-badge--lg img { height: 56px; }
.play-badge--xl img { height: 92px; }
.play-badge--xl:hover { filter: drop-shadow(0 14px 32px rgba(255, 181, 70, 0.45)); }
@media (max-width: 640px) {
    .play-badge--xl img { height: 72px; }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: background 0.2s var(--ease), backdrop-filter 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.navbar.is-scrolled {
    background: rgba(21, 16, 58, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 var(--border-glass);
}

.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.navbar__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}

.navbar__brand img { height: 40px; width: 40px; border-radius: 10px; border: 2px solid #ffb546; }

.navbar__links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.navbar__links a {
    display: inline-block;
    padding: 10px 16px;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: 10px;
    transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.navbar__links a:hover,
.navbar__links a.is-active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.navbar__links a.is-disabled,
.navbar__links a.is-disabled:hover {
    color: var(--text-dim);
    background: transparent;
    cursor: not-allowed;
    pointer-events: none;
}

/* Dropdown */
.navbar__dropdown { position: relative; }

/* Invisible bridge covering the gap between toggle and submenu so the hover
   intent doesn't break when the cursor crosses the 8px visual gap. */
.navbar__dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 12px;
}

.navbar__dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-muted);
    background: transparent;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.navbar__dropdown-toggle:hover,
.navbar__dropdown-toggle.is-active,
.navbar__dropdown.is-open .navbar__dropdown-toggle {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.navbar__dropdown-caret {
    font-size: 0.75rem;
    transition: transform 0.2s var(--ease);
}
.navbar__dropdown.is-open .navbar__dropdown-caret { transform: rotate(180deg); }

.navbar__submenu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 200px;
    list-style: none;
    background: rgba(21, 16, 58, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass-strong);
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
    z-index: 110;
}

.navbar__dropdown:hover .navbar__submenu,
.navbar__dropdown.is-open .navbar__submenu,
.navbar__dropdown:focus-within .navbar__submenu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.navbar__submenu a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.navbar__submenu a:hover,
.navbar__submenu a.is-active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

.navbar__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar__mobile-toggle {
    display: none;
    background: transparent;
    border: 0;
    color: var(--text-primary);
    font-size: 1.5rem;
    padding: 8px;
    border-radius: 8px;
}

/* Lang switcher */
.lang-switch {
    display: inline-flex;
    border: 1px solid var(--border-glass-strong);
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
}

.lang-switch a {
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.lang-switch a.is-active {
    background: var(--accent);
    color: #1A0B2E;
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    padding: calc(var(--nav-height) + 64px) 0 96px;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
}

.hero__media {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(21, 16, 58, 0.55) 0%, rgba(21, 16, 58, 0.92) 100%);
}

.hero__video, .hero__poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__poster { display: none; }
.hero__video--mobile { display: none; }

.hero__content { position: relative; text-align: center; max-width: 820px; margin: 0 auto; }

.hero__eyebrow {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(199, 125, 255, 0.18);
    border: 1px solid rgba(199, 125, 255, 0.35);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-soft);
    margin-bottom: 24px;
}

.hero__title {
    font-size: clamp(2.25rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.025em;
    margin-bottom: 24px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.hero__subtitle {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 auto 36px;
}

.hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

.hero__scroll-hint {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 56px;
    padding: 8px 4px;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: color 0.2s var(--ease);
}

.hero__scroll-hint i {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1.5px solid var(--border-glass-strong);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--accent);
    animation: heroScrollBob 2.4s ease-in-out infinite;
}

.hero__scroll-hint:hover {
    color: var(--text-primary);
}

@keyframes heroScrollBob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(6px); }
}

@media (prefers-reduced-motion: reduce) {
    .hero__scroll-hint i { animation: none; }
}

/* Generic card */
.card {
    background: var(--gradient-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 28px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-card);
    transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 181, 70, 0.5);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 181, 70, 0.2);
}

.card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 181, 70, 0.25), rgba(199, 125, 255, 0.25));
    font-size: 1.4rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.card__title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.card__body { color: var(--text-muted); font-size: 0.98rem; }

/* Galleries */
.grid {
    display: grid;
    gap: 24px;
}

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

@media (max-width: 1024px) {
    .grid--4 { grid-template-columns: repeat(3, 1fr); }
    .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-card);
    transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 181, 70, 0.5);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 181, 70, 0.2);
}

.stat-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 181, 70, 0.25), rgba(199, 125, 255, 0.25));
    font-size: 1.4rem;
    color: var(--accent);
    margin-bottom: 16px;
}

.stat-card__number {
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--accent), #c77dff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.stat-card__label {
    color: var(--text-muted);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
}

.gallery-card {
    text-align: center;
    padding: 24px 18px;
}
.gallery-card__image {
    width: 96px;
    height: 96px;
    margin: 0 auto 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 6px;
}
.gallery-card__image img { width: 100%; height: 100%; object-fit: contain; }
.gallery-card__name { font-size: 1.05rem; font-weight: 800; margin-bottom: 6px; }
.gallery-card__desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; }

/* Subheaders inside characters page */
.subhead {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 32px;
}
.subhead h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.01em; }
.subhead::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-glass-strong), transparent);
}

/* Two-col layout */
.two-col {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
}
@media (max-width: 900px) {
    .two-col { grid-template-columns: 1fr; gap: 40px; }
}

.mockup {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    border-radius: 36px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), var(--shadow-glow);
    border: 1px solid var(--border-glass-strong);
}

/* FAQ */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }

.faq-item {
    background: var(--gradient-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color 0.2s var(--ease);
}
.faq-item[open] { border-color: rgba(255, 181, 70, 0.4); }

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 22px 24px;
    font-weight: 700;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--accent);
    transition: transform 0.2s var(--ease);
}
.faq-item[open] summary::after { content: '−'; }
.faq-item__body { padding: 0 24px 22px; color: var(--text-muted); }

/* Contact form */
.form-wrap { max-width: 680px; margin: 0 auto; }
.form-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 40px;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-card);
}
@media (max-width: 640px) { .form-card { padding: 28px 22px; } }

.form-group { margin-bottom: 22px; }
.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
}
.form-control {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid var(--border-glass-strong);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form-control:focus {
    outline: none;
    border-color: var(--accent-soft);
    background: rgba(255, 255, 255, 0.10);
    box-shadow: 0 0 0 4px rgba(199, 125, 255, 0.15);
}
.form-control::placeholder { color: var(--text-dim); }
textarea.form-control { min-height: 160px; resize: vertical; }

.form-message { margin-top: 18px; padding: 14px 16px; border-radius: var(--radius-sm); font-weight: 600; display: none; }
.form-message.is-success { background: rgba(74, 222, 128, 0.12); border: 1px solid rgba(74, 222, 128, 0.4); color: #B6F3CB; display: block; }
.form-message.is-error { background: rgba(248, 113, 113, 0.12); border: 1px solid rgba(248, 113, 113, 0.4); color: #FFC7C7; display: block; }

.form-meta { text-align: center; color: var(--text-dim); margin-top: 18px; font-size: 0.9rem; }

/* Sticky mobile CTA */
.sticky-cta {
    display: none;
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 90;
    background: rgba(21, 16, 58, 0.92);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass-strong);
    border-radius: 999px;
    padding: 8px clamp(8px, 2vw, 12px) 8px clamp(12px, 3.5vw, 18px);
    align-items: center;
    justify-content: space-between;
    gap: clamp(6px, 1.8vw, 12px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
    min-width: 0;
}
.sticky-cta__label {
    font-weight: 700;
    font-size: clamp(0.78rem, 3.8vw, 1.1rem);
    white-space: nowrap;
    min-width: 0;
    overflow: hidden;
    text-overflow: clip;
    flex: 0 1 auto;
}
.sticky-cta__btn {
    padding: 9px clamp(12px, 3.4vw, 22px);
    font-size: clamp(0.78rem, 3.2vw, 1rem);
    border-radius: 999px;
    background: var(--gradient-accent);
    color: #1A0B2E;
    font-weight: 800;
    white-space: nowrap;
    flex: 0 0 auto;
}
.sticky-cta__btn i { font-size: 0.9em; margin-right: 4px; }

/* Footer */
.footer {
    position: relative;
    padding: 80px 0 32px;
    border-top: 1px solid var(--border-glass);
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35));
    z-index: 1;
}
.footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

.footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-weight: 900; font-size: 1.15rem; }
.footer__brand img { height: 44px; width: 44px; border-radius: 10px; border: 2px solid #ffb546; }
.footer__tagline { color: var(--text-muted); margin-bottom: 20px; max-width: 320px; }
.footer__column h4 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 18px; }
.footer__column ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer__column a { color: var(--text-muted); transition: color 0.2s var(--ease); }
.footer__column a:hover { color: var(--text-primary); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 28px; border-top: 1px solid var(--border-glass); color: var(--text-dim); font-size: 0.88rem; }
@media (max-width: 560px) { .footer__bottom { flex-direction: column; text-align: center; } }

/* Fade in animation */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.fade-in.is-visible { opacity: 1; transform: translateY(0); }

/* Mobile nav */
@media (max-width: 960px) {
    .navbar__links {
        position: fixed;
        top: var(--nav-height);
        right: 0;
        left: 0;
        background: rgba(21, 16, 58, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: stretch;
        padding: 24px 0;
        gap: 4px;
        border-bottom: 1px solid var(--border-glass);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
        max-height: calc(100vh - var(--nav-height));
        overflow-y: auto;
    }
    .navbar__links.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .navbar__links a,
    .navbar__dropdown-toggle {
        display: flex;
        width: 100%;
        padding: 14px 24px;
        font-size: 1.05rem;
        justify-content: space-between;
    }
    .navbar__mobile-toggle { display: inline-flex; }
    .navbar__actions .btn { display: none; }
    .navbar__actions .play-badge { display: none; }

    .navbar__dropdown { width: 100%; }
    .navbar__dropdown::after { content: none; }
    .navbar__submenu {
        position: static;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        background: transparent;
        border: 0;
        box-shadow: none;
        backdrop-filter: none;
        padding: 0 0 8px;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s var(--ease);
    }
    .navbar__dropdown.is-open .navbar__submenu { max-height: 320px; }
    .navbar__submenu a { padding: 12px 40px; font-size: 1rem; }
    /* Disable hover-open on mobile to avoid jumpy open on tap */
    .navbar__dropdown:hover .navbar__submenu,
    .navbar__dropdown:focus-within .navbar__submenu {
        max-height: 0;
    }
    .navbar__dropdown.is-open:hover .navbar__submenu,
    .navbar__dropdown.is-open:focus-within .navbar__submenu {
        max-height: 320px;
    }
}

@media (max-width: 720px) {
    .sticky-cta { display: flex; }
    .section { padding: 72px 0; }
    .hero { padding-top: calc(var(--nav-height) + 32px); }
    body { padding-bottom: 80px; }
}

/* Hero video fallback rules */
@media (prefers-reduced-motion: reduce) {
    .hero__video { display: none; }
    .hero__poster { display: block; }
}

@media (max-width: 720px) {
    .hero__video--desktop { display: none; }
    .hero__video--mobile { display: block; }
}

/* Tagged "saver" mode applied via JS */
body.saver .hero__video { display: none; }
body.saver .hero__poster { display: block; }

/* ---------- Public stories: list + detail ---------- */

.story-grid {
    align-items: stretch;
    gap: 24px;
}

@media (max-width: 640px) {
    .story-grid.grid--3 { grid-template-columns: 1fr; }
}

.story-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 12px 12px 16px;
    background: var(--gradient-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: inherit;
    text-decoration: none;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}

.story-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: radial-gradient(circle at 30% 0%, rgba(255, 181, 70, 0.22), transparent 55%);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.28s var(--ease);
    pointer-events: none;
}

.story-card:hover,
.story-card:focus-visible {
    transform: translateY(-6px);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45), 0 0 60px rgba(255, 181, 70, 0.18);
    border-color: var(--border-glass-strong);
    outline: none;
}

.story-card:hover::before,
.story-card:focus-visible::before {
    opacity: 1;
}

.story-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.3);
}

.story-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--ease);
}

.story-card:hover .story-card__media img,
.story-card:focus-visible .story-card__media img {
    transform: scale(1.06);
}

.story-card__media::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 50%;
    background: linear-gradient(180deg, transparent 0%, rgba(21, 16, 58, 0.6) 100%);
    pointer-events: none;
}

.story-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--gradient-card);
    color: var(--accent-soft);
    font-size: 2.4em;
}

.story-card__play {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: #1A0B2E;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1em;
    box-shadow: var(--shadow-cta);
    transform: translateY(8px) scale(0.9);
    opacity: 0;
    transition: transform 0.28s var(--ease), opacity 0.28s var(--ease);
    z-index: 1;
}

.story-card:hover .story-card__play,
.story-card:focus-visible .story-card__play {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.story-card__play i {
    margin-left: 2px; /* optical center of the play icon */
}

.story-card__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 4px 0;
    flex: 1;
}

.story-card__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.story-card__meta {
    margin-top: auto;
    font-size: 0.78rem;
    color: var(--text-dim);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.story-card__meta i {
    color: var(--accent-soft);
}

@media (max-width: 720px) {
    .story-card__play {
        opacity: 1;
        transform: translateY(0) scale(1);
        width: 42px;
        height: 42px;
    }
}

.pagination {
    margin-top: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.pagination__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    text-decoration: none;
    border: 1px solid var(--border-glass);
    transition: background 0.2s var(--ease);
}

.pagination__link:hover {
    background: rgba(199, 125, 255, 0.18);
}

.pagination__info {
    color: var(--text-muted);
    font-size: 0.95em;
}

/* Public story detail: a single self-contained viewport-tall card,
   with normal navbar/footer above & below. */
.public-story {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    min-height: 480px;
    width: 100%;
    max-width: 960px;
    margin: 0 auto 24px;
    padding: calc(var(--nav-height) + 16px) clamp(12px, 3vw, 24px) 16px;
    box-sizing: border-box;
    gap: 14px;
}

.public-story__header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.public-story__back {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95em;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    border-radius: 999px;
    transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.15s var(--ease);
}

.public-story__back:hover {
    color: var(--accent);
    background: rgba(199, 125, 255, 0.18);
    border-color: var(--border-glass-strong);
    transform: scale(1.05);
}

.public-story__back:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.public-story__title {
    font-size: clamp(1.2rem, 2.4vw, 1.75rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
    color: var(--text-primary);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-story__actions {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.public-story__icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    border-radius: 999px;
    color: var(--text-muted);
    cursor: pointer;
    font: inherit;
    font-size: 0.95em;
    line-height: 1;
    transition: color 0.15s var(--ease), background 0.15s var(--ease), border-color 0.15s var(--ease), transform 0.15s var(--ease);
}

.public-story__icon-btn:hover {
    color: var(--accent);
    background: rgba(199, 125, 255, 0.18);
    border-color: var(--border-glass-strong);
    transform: scale(1.05);
}

.public-story__icon-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.public-story__text-letter {
    font-weight: 800;
    font-size: 0.85em;
}

.public-story__text-letter--big {
    font-size: 1.05em;
}

.public-story__text-sign {
    font-size: 0.55em;
}

.public-story__share.is-copied {
    color: #1A0B2E;
    background: var(--accent);
    border-color: transparent;
}

.public-story__share-feedback {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(26, 11, 46, 0.96);
    color: var(--text-primary);
    border: 1px solid var(--border-glass-strong);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    font-size: 0.78rem;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.public-story__share.is-copied .public-story__share-feedback {
    opacity: 1;
    transform: translateY(0);
}

.public-story__scroll {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(21, 16, 58, 0.85);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    scrollbar-width: thin;
    scrollbar-color: var(--accent-soft) transparent;
}

.public-story__scroll::-webkit-scrollbar {
    width: 8px;
}

.public-story__scroll::-webkit-scrollbar-thumb {
    background: rgba(199, 125, 255, 0.45);
    border-radius: 4px;
}

.public-story__scroll::before,
.public-story__scroll::after {
    content: '';
    position: sticky;
    left: 0;
    right: 0;
    display: block;
    height: clamp(32px, 5vw, 56px);
    pointer-events: none;
    z-index: 2;
}

.public-story__scroll::before {
    top: 0;
    margin-bottom: calc(-1 * clamp(32px, 5vw, 56px));
    background: linear-gradient(to bottom, rgba(21, 16, 58, 0.95), rgba(21, 16, 58, 0));
}

.public-story__scroll::after {
    bottom: 0;
    margin-top: calc(-1 * clamp(32px, 5vw, 56px));
    background: linear-gradient(to top, rgba(21, 16, 58, 0.95), rgba(21, 16, 58, 0));
}

/* Spotify-style custom audio player */
.story-player {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: clamp(12px, 2vw, 24px);
    padding: 14px clamp(14px, 2vw, 20px);
    background: linear-gradient(180deg, rgba(61, 29, 110, 0.55) 0%, rgba(21, 16, 58, 0.92) 100%);
    border: 1px solid var(--border-glass-strong);
    border-radius: var(--radius-md);
    box-shadow: 0 -10px 32px rgba(0, 0, 0, 0.4);
}

.story-player--empty {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 18px;
}

.story-player__audio {
    display: none;
}

/* Left: cover */
.story-player__cover {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.25);
    flex: 0 0 auto;
}

.story-player__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.story-player__cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-soft);
    font-size: 1.4em;
    background: var(--gradient-card);
}

/* Center: controls + progress */
.story-player__controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.story-player__buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.story-player__btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 8px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s var(--ease), transform 0.15s var(--ease), background 0.15s var(--ease);
}

.story-player__btn:hover {
    color: var(--text-primary);
    transform: scale(1.08);
}

.story-player__btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.story-player__btn--play {
    background: var(--text-primary);
    color: #1A0B2E;
    width: 44px;
    height: 44px;
    font-size: 1.05rem;
}

.story-player__btn--play:hover {
    background: var(--accent);
    color: #1A0B2E;
    transform: scale(1.06);
}

.story-player__progress {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.story-player__time {
    color: var(--text-dim);
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
    flex: 0 0 auto;
    min-width: 36px;
    text-align: center;
}

.story-player__bar {
    flex: 1;
    position: relative;
    padding: 8px 0;
    cursor: pointer;
    min-width: 0;
}

.story-player__bar:focus-visible {
    outline: none;
}

.story-player__bar:focus-visible .story-player__bar-track {
    box-shadow: 0 0 0 2px var(--accent);
}

.story-player__bar-track {
    position: relative;
    height: 4px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    overflow: visible;
    transition: height 0.15s var(--ease);
}

.story-player__bar:hover .story-player__bar-track,
.story-player__bar.is-scrubbing .story-player__bar-track {
    height: 6px;
}

.story-player__bar-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    background: var(--text-primary);
    border-radius: 999px;
    transition: background 0.15s var(--ease);
}

.story-player__bar:hover .story-player__bar-fill,
.story-player__bar.is-scrubbing .story-player__bar-fill {
    background: var(--accent);
}

.story-player__bar-handle {
    position: absolute;
    top: 50%;
    left: 0;
    width: 12px;
    height: 12px;
    background: var(--text-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s var(--ease);
}

.story-player__bar:hover .story-player__bar-handle,
.story-player__bar.is-scrubbing .story-player__bar-handle {
    opacity: 1;
}

/* Right: narrator picker (custom dropdown with avatars) */
.narrator-picker {
    position: relative;
    display: inline-flex;
}

.narrator-picker__trigger {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--border-glass-strong);
    padding: 0;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: border-color 0.15s var(--ease), transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.narrator-picker__trigger:hover,
.narrator-picker[data-open="true"] .narrator-picker__trigger {
    border-color: var(--accent);
    transform: scale(1.05);
    box-shadow: 0 0 0 4px rgba(255, 181, 70, 0.18);
}

.narrator-picker__trigger:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.narrator-picker__trigger-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.narrator-picker__list {
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    margin: 0;
    padding: 6px;
    list-style: none;
    min-width: 200px;
    background: rgba(26, 11, 46, 0.98);
    border: 1px solid var(--border-glass-strong);
    border-radius: var(--radius-md);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(12px);
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: min(360px, 60vh);
    overflow-y: auto;
}

.narrator-picker__list[hidden] {
    display: none;
}

.narrator-picker__option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 12px 8px 8px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font: inherit;
    font-size: 0.92em;
    text-align: left;
    cursor: pointer;
    transition: background 0.12s var(--ease);
}

.narrator-picker__option:hover {
    background: rgba(199, 125, 255, 0.18);
}

.narrator-picker__option.is-active {
    background: rgba(255, 181, 70, 0.18);
    color: var(--accent);
}

.narrator-picker__option:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.narrator-picker__option-photo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    flex: 0 0 auto;
    background: rgba(0, 0, 0, 0.3);
}

.narrator-picker__option-photo--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-soft);
}

.narrator-picker__option-name {
    font-weight: 600;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 720px) {
    .story-player {
        gap: 10px;
        padding: 10px 12px;
    }
    .story-player__cover {
        width: 52px;
        height: 52px;
    }
    .narrator-picker__trigger {
        width: 44px;
        height: 44px;
    }
    body:has(.public-story) .sticky-cta {
        display: none;
    }
}

.narrator-tab {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px 8px 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    border-radius: 999px;
    color: var(--text-primary);
    cursor: pointer;
    font: inherit;
    transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.15s var(--ease);
}

.narrator-tab:hover {
    background: rgba(199, 125, 255, 0.18);
    border-color: var(--border-glass-strong);
}

.narrator-tab.is-active {
    background: var(--gradient-accent);
    color: #1A0B2E;
    border-color: transparent;
    box-shadow: var(--shadow-cta);
}

.narrator-tab.is-active .narrator-tab__name {
    color: #1A0B2E;
}

.narrator-tab__photo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(0, 0, 0, 0.2);
}

.narrator-tab__name {
    font-weight: 600;
    font-size: 0.95em;
}

.public-story__player audio {
    width: 100%;
    height: 40px;
    border-radius: var(--radius-sm);
    display: block;
}

.public-story__text {
    color: var(--text-primary);
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    line-height: 1.85;
    font-family: 'Nunito', system-ui, sans-serif;
    padding: clamp(20px, 3vw, 36px) clamp(16px, 3vw, 28px);
}

.karaoke-text {
    display: none;
    word-break: break-word;
    white-space: pre-wrap;
}

.karaoke-text.is-active {
    display: block;
}

.karaoke-text--plain {
    color: var(--text-primary);
}

.word-span {
    display: inline;
    color: var(--text-primary);
    border-radius: 3px;
    transition: color 0.08s linear, text-shadow 0.08s linear;
}

.word-past {
    color: var(--text-dim);
}

.word-active {
    color: var(--accent);
    text-shadow: 0 0 14px rgba(255, 181, 70, 0.55);
    font-weight: 700;
}

.public-story__no-audio {
    text-align: center;
    color: var(--text-muted);
    margin: 0;
    font-style: italic;
}

