/* ============================================================================
   Labocine — SCIENCE NEW WAVE FESTIVAL XIX (/festival). TEMPORARY.
   Announces the event and its lineup until the events feature replaces it;
   removal list in src/config/festival.js. Everything is scoped under `.fv`.

   Layers: html/body paint the ground, the fixed WebGL canvas (.fv-gl) draws the
   codon wheel above it, and every section sits above the canvas. Sections are
   transparent where the wheel needs to show through.
   ============================================================================ */

html.fv-page, body.fv-page { background: #07070a; }
body.fv-page footer { color: #8b8b96; text-align: center; background: #07070a; }
html.fv-page.fv-lock, html.fv-page.fv-lock body { overflow: hidden; }

.fv {
    --fv-bg: #07070a;
    --fv-panel: #0f0f13;
    --fv-line: rgba(255, 255, 255, 0.09);
    --fv-line-2: rgba(255, 255, 255, 0.18);
    --fv-text: #f3f3f5;
    --fv-muted: #b9b9c4;
    --fv-muted-2: #8b8b96;
    --fv-green: #34e08a;
    --fv-green-2: #6cf0ad;
    --fv-green-ink: #05231a;
    --fv-pad: clamp(18px, 4vw, 56px);
    --fv-maxw: 1380px;
    --lane-h: 12px;

    position: relative;
    color: var(--fv-text);
    font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}
.fv *, .fv *::before, .fv *::after { box-sizing: border-box; }
/* Resets sit in :where() so they carry a single class's weight: component
   rules below then win on source order. A plain `.fv p { margin: 0 }` would
   outrank `.fv-sheet__syn { margin-top }` and quietly flatten every margin. */
.fv :where(a) { color: inherit; }
.fv :where(h1, h2, h3, p) { margin: 0; }
/* the site stylesheet colours headings dark; everything here is on black */
.fv :where(h1, h2, h3, h4, dd) { color: inherit; }
.fv img { max-width: 100%; }
.fv button { font-family: inherit; }

.fv-sr {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.fv > section, .fv-bar { position: relative; z-index: 2; }
.fv > section { max-width: var(--fv-maxw); margin: 0 auto; padding-inline: var(--fv-pad); }

.fv-eyebrow {
    font-size: 0.7rem; letter-spacing: 0.34em; text-transform: uppercase;
    color: var(--fv-green-2); font-weight: 700;
}
.fv-title { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 900; letter-spacing: -0.025em; line-height: 1; margin-top: 10px; }

/* ------------------------------------------------------------ WebGL layer */
.fv-gl {
    position: fixed; top: 0; left: 0;
    z-index: 1; pointer-events: none; display: block;
    opacity: 0; transition: opacity 0.9s ease;
}
html.fv-gl-on .fv-gl { opacity: 1; }

/* ---------------------------------------------------------------- buttons */
.fv-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    height: 52px; padding: 0 28px; border-radius: 999px;
    font-size: 1rem; font-weight: 800; text-decoration: none; white-space: nowrap;
    border: 1px solid var(--fv-line-2); color: var(--fv-text); background: rgba(255, 255, 255, 0.04);
    transition: transform 0.22s cubic-bezier(0.34, 1.4, 0.64, 1), background 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}
.fv-btn:hover { transform: translateY(-2px); }
.fv-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.fv-btn--pass { background: var(--fv-green); border-color: var(--fv-green); color: var(--fv-green-ink); }
.fv-btn--pass:hover { background: #4ff0a0; border-color: #4ff0a0; box-shadow: 0 16px 38px -14px rgba(52, 224, 138, 0.75); }
.fv-btn--ghost { margin-top: 22px; }
.fv-btn--ghost:hover { border-color: var(--fv-green); color: var(--fv-green); }
.fv-btn--sm { height: 40px; padding: 0 18px; font-size: 0.88rem; }

/* =================================================================== HERO */
.fv-hero {
    min-height: 100vh; min-height: 100svh;
    display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: center; gap: clamp(20px, 3vw, 48px);
    padding-top: 84px; padding-bottom: 60px;
}
.fv-hero__bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.fv-hero__aura {
    position: absolute; inset: -20%;
    background:
        radial-gradient(34% 40% at 72% 42%, rgba(52, 224, 138, 0.13), transparent 70%),
        radial-gradient(30% 36% at 18% 70%, rgba(53, 203, 232, 0.07), transparent 70%),
        radial-gradient(40% 50% at 90% 90%, rgba(245, 181, 68, 0.05), transparent 72%);
    filter: blur(24px);
    animation: fv-aura 30s ease-in-out infinite alternate;
}
@keyframes fv-aura { from { transform: translate3d(-1.5%, -1%, 0) scale(1); } to { transform: translate3d(1.5%, 1.5%, 0) scale(1.07); } }
.fv-grain {
    position: absolute; inset: 0; opacity: 0.05; mix-blend-mode: overlay;
    background-image: repeating-conic-gradient(rgba(255, 255, 255, 0.6) 0% 0.0001%, transparent 0.0002% 0.0004%);
    background-size: 7px 7px;
}

.fv-hero__copy { position: relative; z-index: 3; }
.fv-hero__title {
    margin: 22px 0 18px; font-weight: 900; line-height: 0.9; letter-spacing: -0.035em;
    font-size: clamp(2.9rem, 6.4vw, 5.9rem); color: #fff;
    text-shadow: 0 10px 50px rgba(0, 0, 0, 0.6);
}
.fv-hero__title > span { display: block; }
.fv-hero__title .fv-dc { color: var(--fv-green); }
.fv-hero__when { color: var(--fv-muted); font-size: clamp(0.98rem, 1.4vw, 1.12rem); }

.fv-count { display: flex; gap: clamp(14px, 2vw, 26px); margin-top: 28px; }
.fv-count__u b {
    display: block; font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 900; line-height: 1;
    font-variant-numeric: tabular-nums; letter-spacing: -0.02em; min-width: 1.3em;
}
.fv-count__u i { display: block; font-style: normal; font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--fv-muted-2); margin-top: 7px; }
.fv-count__u--s b { color: var(--fv-green); }
.fv-count__note { margin-top: 14px; font-size: 0.78rem; color: var(--fv-muted-2); letter-spacing: 0.04em; }
.fv-live { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; font-weight: 800; color: var(--fv-green); letter-spacing: 0.04em; }
.fv-live i { width: 9px; height: 9px; border-radius: 50%; background: var(--fv-green); box-shadow: 0 0 0 0 rgba(52, 224, 138, 0.7); animation: fv-pulse 1.8s ease-out infinite; }
@keyframes fv-pulse { to { box-shadow: 0 0 0 12px rgba(52, 224, 138, 0); } }
.fv-wrapped { margin-top: 26px; font-size: 1.1rem; color: var(--fv-muted); }

.fv-hero__ctas { margin-top: 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.fv-hero__alt { font-size: 0.9rem; color: var(--fv-muted); }
.fv-hero__alt a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.35); text-underline-offset: 3px; }
.fv-hero__alt a:hover { text-decoration-color: var(--fv-green); }
.fv-hero__fine { font-size: 0.76rem; color: var(--fv-muted-2); }
.fv-in { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 900; color: var(--fv-green); letter-spacing: -0.01em; }
.fv-in--sm { font-size: 1.05rem; margin-top: 18px; }
.fv-cal {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 6px;
    font-size: 0.84rem; font-weight: 700; color: var(--fv-muted); text-decoration: none;
    border-bottom: 1px solid transparent; transition: color 0.2s ease, border-color 0.2s ease;
}
.fv-cal svg { width: 16px; height: 16px; }
.fv-cal:hover { color: #fff; border-color: var(--fv-line-2); }

/* the stage: an empty, square box the fixed WebGL wheel is drawn over */
.fv-stage {
    position: relative; z-index: 3; justify-self: center;
    width: min(100%, 76vh, 700px); aspect-ratio: 1 / 1;
    cursor: grab; touch-action: pan-y; outline: none; border-radius: 50%;
    -webkit-user-select: none; user-select: none;
}
.fv-stage:focus-visible { box-shadow: 0 0 0 2px var(--fv-green); outline: 2px solid transparent; outline-offset: 3px; }
.fv-stage.is-dragging { cursor: grabbing; }
.fv-stage.is-hot { cursor: pointer; }
@supports not (aspect-ratio: 1 / 1) { .fv-stage { height: min(76vh, 640px); } }

/* static emblem for when the wheel can't run: every still in a ring */
.fv-stage__fallback {
    position: absolute; inset: 4%; border-radius: 50%;
    background-size: cover; background-position: center;
    -webkit-mask: radial-gradient(circle, transparent 0 33%, #000 33.5% 100%);
    mask: radial-gradient(circle, transparent 0 33%, #000 33.5% 100%);
    opacity: 0.8; transition: opacity 0.3s ease;
}
.fv-stage__fallback::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%;
    background: radial-gradient(circle, rgba(7, 7, 10, 0) 55%, rgba(7, 7, 10, 0.7) 100%);
}
html.fv-gl-on .fv-stage__fallback { opacity: 0; }

.fv-read {
    position: absolute; right: -2%; bottom: 7%;
    min-width: 200px; max-width: 250px; padding: 12px 14px; border-radius: 12px;
    background: rgba(10, 10, 14, 0.82); border: 1px solid rgba(52, 224, 138, 0.4);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    opacity: 0; transform: translateY(8px); transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
}
.fv-read.is-on { opacity: 1; transform: none; }
.fv-stage.is-unpacking .fv-read, .fv-stage.is-unpacking .fv-stage__hint { opacity: 0; transition: opacity 0.3s ease; }
.fv-read__n { display: block; font-size: 0.62rem; letter-spacing: 0.24em; color: var(--fv-green-2); font-weight: 800; text-transform: uppercase; }
.fv-read__t { display: block; font-size: 1rem; font-weight: 800; margin: 4px 0 3px; line-height: 1.15; }
.fv-read__m { display: block; font-size: 0.76rem; color: var(--fv-muted); }

.fv-stage__hint {
    position: absolute; left: 0; right: 0; bottom: -44px;
    display: flex; justify-content: center; align-items: center; gap: 16px;
    font-size: 0.76rem; color: var(--fv-muted-2);
}
html:not(.fv-gl-on) .fv-stage__drag { display: none; }
.fv-spin {
    display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
    padding: 7px 14px; border-radius: 999px; font-size: 0.78rem; font-weight: 700;
    color: var(--fv-green); background: rgba(52, 224, 138, 0.08); border: 1px solid rgba(52, 224, 138, 0.45);
    transition: background 0.2s ease, transform 0.2s ease;
}
.fv-spin svg { width: 14px; height: 14px; }
.fv-pause {
    display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
    padding: 7px 12px; border-radius: 999px; font-size: 0.76rem; font-weight: 700;
    color: var(--fv-muted); background: transparent; border: 1px solid var(--fv-line-2);
    transition: color 0.2s ease, border-color 0.2s ease;
}
.fv-pause svg { width: 12px; height: 12px; }
.fv-pause:hover { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.fv-pause:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.fv-pause[aria-pressed="true"] { color: var(--fv-green); border-color: rgba(52, 224, 138, 0.55); }
.fv-spin:hover { background: rgba(52, 224, 138, 0.16); transform: translateY(-1px); }
.fv-spin:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.fv-hero__cue {
    position: absolute; left: 50%; bottom: 18px; width: 26px; height: 40px; margin-left: -13px;
    border: 1.5px solid var(--fv-line-2); border-radius: 14px;
}
.fv-hero__cue::before {
    content: ""; position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px;
    border-radius: 2px; background: var(--fv-green); animation: fv-cue 1.9s ease-in-out infinite;
}
@keyframes fv-cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ============================================================= EIGHT DAYS */
.fv .fv-days {
    display: grid; grid-template-columns: minmax(300px, 470px) minmax(0, 1fr);
    align-items: center; gap: clamp(22px, 3vw, 48px);
    padding-top: 38px; padding-bottom: 38px; margin-top: 30px;
    border-top: 1px solid var(--fv-line); border-bottom: 1px solid var(--fv-line);
}
.fv-days__t { margin-top: 10px; font-size: clamp(1.45rem, 2.4vw, 1.95rem); font-weight: 900; letter-spacing: -0.02em; line-height: 1.06; }
.fv-days__t span { color: var(--fv-green); }

.fv-gel { position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fv-gel__lane { display: grid; grid-template-columns: 58px minmax(0, 1fr); align-items: center; gap: 10px; height: var(--lane-h); }
.fv-gel__day { font-size: 0.6rem; letter-spacing: 0.14em; font-weight: 800; color: #a0aba6; text-align: right; white-space: nowrap; }
.fv-gel__day em { font-style: normal; color: var(--fv-green); }
.fv-gel__track {
    position: relative; height: var(--lane-h); overflow: hidden; border-radius: 2px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.fv-gel__track::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: #0b3d27; mix-blend-mode: color; opacity: 0.4;
}
.fv-gel__strip {
    --strip-w: calc(var(--lane-h) * var(--strip-ratio));
    height: 100%; width: calc(var(--strip-w) * 2);
    background-image: var(--strip);
    background-repeat: repeat-x;
    background-size: var(--strip-w) 100%;
    background-position: calc(var(--strip-w) / var(--strip-cells) * var(--offset) * -1) 0;
    animation: fv-drift linear infinite;
    animation-duration: calc(52s + var(--lane) * 7s);
    animation-delay: calc(var(--lane) * -4s);
    will-change: transform;
}
@keyframes fv-drift { to { transform: translateX(calc(var(--lane-h) * var(--strip-ratio) * -1)); } }
.fv-gel__lane.is-opening .fv-gel__day, .fv-gel__lane.is-today .fv-gel__day { color: var(--fv-green); }
.fv-gel__lane.is-opening .fv-gel__track, .fv-gel__lane.is-today .fv-gel__track { box-shadow: 0 0 0 1px var(--fv-green), 0 0 18px -2px rgba(52, 224, 138, 0.6); }
.fv-gel__lane.is-opening .fv-gel__track::after, .fv-gel__lane.is-today .fv-gel__track::after { opacity: 0; }

/* ================================================================ THE 64 */
.fv .fv-lineup { padding-top: clamp(64px, 8vw, 110px); padding-bottom: 20px; }
.fv-lineup__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; flex-wrap: wrap; }
.fv-quote { margin-top: 10px; font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 1.12rem; color: var(--fv-muted); }
.fv-quote span { font-family: "Roboto", "Helvetica Neue", Arial, sans-serif; font-style: normal; font-size: 0.74rem; color: var(--fv-muted-2); margin-left: 4px; }
.fv-stats { display: flex; gap: clamp(18px, 3vw, 40px); margin: 0; }
.fv-stats div { display: flex; flex-direction: column-reverse; }
.fv-stats dt { font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--fv-muted-2); margin-top: 6px; }
.fv-stats dd { margin: 0; font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 900; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

.fv-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 30px; }
.fv-filters__sep { width: 1px; height: 20px; background: var(--fv-line-2); margin: 0 4px; }
.fv-chip {
    height: 34px; padding: 0 14px; border-radius: 999px; cursor: pointer;
    font-size: 0.8rem; font-weight: 700; color: var(--fv-muted);
    background: transparent; border: 1px solid var(--fv-line-2);
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.fv-chip:hover { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.fv-chip.is-on { color: var(--fv-green); border-color: rgba(52, 224, 138, 0.65); background: rgba(52, 224, 138, 0.1); }
.fv-chip:focus-visible { outline: 2px solid var(--fv-green); outline-offset: 2px; }
.fv-search {
    margin-left: auto; display: flex; align-items: center; gap: 8px;
    height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--fv-line-2);
    color: var(--fv-muted-2); min-width: 260px; transition: border-color 0.2s ease;
}
.fv-search:focus-within { border-color: var(--fv-green); outline: 2px solid transparent; outline-offset: 2px; }
.fv-search svg { width: 15px; height: 15px; flex: none; }
.fv-search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: #fff; font-family: inherit; font-size: 0.84rem; }
.fv-search input::placeholder { color: var(--fv-muted-2); }
.fv-count-line { margin: 14px 0 20px; font-size: 0.78rem; color: var(--fv-muted-2); }

.fv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 20px 18px; perspective: 1400px; }
.fv-card { position: relative; transition: opacity 0.35s ease; }
.fv-card.is-out { display: none; }
.fv-card__hit {
    position: relative; display: block; text-decoration: none; height: 100%;
    border-radius: 12px; overflow: hidden; background: var(--fv-panel); border: 1px solid var(--fv-line);
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.16, 0.8, 0.26, 1), box-shadow 0.4s ease, border-color 0.3s ease;
}
.fv-card__hit:focus-visible { outline: 2px solid var(--fv-green); outline-offset: 3px; }
.fv-card__img { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #050507; }
.fv-card__img img {
    display: block; width: 100%; height: 100%; object-fit: cover;
    filter: grayscale(0.85) brightness(0.8) contrast(1.05);
    transition: filter 0.5s ease, transform 0.7s cubic-bezier(0.16, 0.8, 0.26, 1);
}
.fv-card__glare {
    position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
    background: radial-gradient(320px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.2), transparent 60%);
}
.fv-card__n {
    position: absolute; left: 10px; top: 9px; font-size: 0.66rem; font-weight: 800;
    letter-spacing: 0.16em; color: #fff; text-shadow: 0 1px 8px #000;
}
.fv-card__body { display: block; padding: 12px 14px 15px; }
.fv-card__t { font-size: 1rem; font-weight: 800; line-height: 1.18; color: #fff; }
.fv-card__by { display: block; margin-top: 5px; font-size: 0.8rem; color: var(--fv-muted); }
.fv-card__meta { display: block; margin-top: 6px; font-size: 0.7rem; color: var(--fv-muted-2); letter-spacing: 0.02em; }

.fv-card__hit:hover, .fv-card.is-focus .fv-card__hit { border-color: rgba(52, 224, 138, 0.55); box-shadow: 0 28px 60px -28px #000, 0 0 0 1px rgba(52, 224, 138, 0.2); }
.fv-card__hit:hover .fv-card__img img, .fv-card.is-focus .fv-card__img img { filter: none; transform: scale(1.05); }
.fv-card__hit:hover .fv-card__glare { opacity: 1; }
@media (hover: none) { .fv-card__img img { filter: grayscale(0.4) brightness(0.9); } }

/* while the wheel's tiles are flying in, the real cards wait underneath */
.fv-card.is-waiting .fv-card__hit { opacity: 0; }
.fv-card.is-landed .fv-card__hit { animation: fv-land 0.5s ease both; }
@keyframes fv-land { from { opacity: 0; } to { opacity: 1; } }

.fv-empty { margin: 30px 0; color: var(--fv-muted); }
.fv-empty button { background: none; border: 0; color: var(--fv-green); font-weight: 800; cursor: pointer; text-decoration: underline; }

/* ================================================================ AWARDS */
.fv .fv-awards { padding-top: clamp(70px, 8vw, 110px); }
.fv-awards__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px 40px; flex-wrap: wrap; }
.fv-awards__note { max-width: 440px; font-size: 0.92rem; line-height: 1.6; color: var(--fv-muted); }
.fv-awards__note b { color: #fff; }
.fv-awards__note a { color: var(--fv-green); font-weight: 700; text-decoration: none; white-space: nowrap; }
.fv-awards__note a:hover { text-decoration: underline; }
.fv-awards__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.fv-award {
    position: relative; padding: 26px 24px 28px; border-radius: 16px; border: 1px solid var(--fv-line);
    background: radial-gradient(120% 90% at 0 0, rgba(52, 224, 138, 0.1), transparent 60%), var(--fv-panel);
    overflow: hidden; transition: border-color 0.3s ease, transform 0.4s cubic-bezier(0.16, 0.8, 0.26, 1);
}
.fv-award:hover { border-color: rgba(52, 224, 138, 0.4); transform: translateY(-3px); }
.fv-award__mark { display: block; font-size: 1.5rem; color: var(--fv-green); margin-bottom: 18px; }
.fv-award h3 { font-size: 1.12rem; font-weight: 800; }
.fv-award p { margin-top: 10px; font-size: 0.9rem; line-height: 1.6; color: var(--fv-muted); }

/* ================================================================== PASS */
.fv .fv-pass {
    display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center; gap: clamp(30px, 5vw, 80px);
    padding-top: clamp(80px, 9vw, 130px); padding-bottom: clamp(40px, 5vw, 70px);
}
.fv-pass::before {
    content: ""; position: absolute; left: 0; top: 10%; width: 60%; height: 90%; z-index: -1; pointer-events: none;
    background: radial-gradient(closest-side, rgba(52, 224, 138, 0.1), transparent);
}
.fv-pass__card-wrap { perspective: 1100px; display: flex; justify-content: center; }
.fv-passcard {
    --rx: 6deg; --ry: -14deg; --fx: 30%;
    position: relative; width: min(420px, 100%); aspect-ratio: 1.586 / 1;
    border-radius: 20px; overflow: hidden; padding: 22px 24px;
    display: flex; flex-direction: column; justify-content: space-between;
    background: linear-gradient(125deg, #0c1a14 0%, #123527 36%, #0b1612 62%, #17271f 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 30px 44px 80px -30px #000, inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transform: rotateX(var(--rx)) rotateY(var(--ry));
    transition: transform 0.6s cubic-bezier(0.16, 0.8, 0.26, 1);
}
.fv-passcard.is-live-tilt { transition: transform 0.08s linear; }
.fv-passcard__foil {
    position: absolute; inset: -40%; pointer-events: none; mix-blend-mode: screen; opacity: 0.9;
    background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.2) 42%, rgba(120, 255, 200, 0.3) 48%, rgba(160, 120, 255, 0.24) 54%, rgba(255, 200, 120, 0.16) 58%, transparent 68%);
    background-size: 200% 200%; background-position: var(--fx) 50%;
    transition: background-position 0.6s ease;
}
.fv-passcard.is-live-tilt .fv-passcard__foil { transition: none; }
.fv-passcard__lines { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 7px); }
.fv-passcard__top { position: relative; display: flex; justify-content: space-between; align-items: flex-start; }
.fv-passcard__kind { font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 800; color: var(--fv-green-2); }
.fv-passcard__xix {
    font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 900; line-height: 0.8; letter-spacing: -0.04em;
    color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.35);
}
.fv-passcard__name { position: relative; font-size: clamp(1.25rem, 2.3vw, 1.65rem); font-weight: 900; line-height: 1.02; letter-spacing: -0.015em; }
.fv-passcard__foot { position: relative; display: flex; justify-content: space-between; align-items: flex-end; font-size: 0.7rem; line-height: 1.55; color: #b9d9c9; letter-spacing: 0.06em; text-transform: uppercase; }
.fv-passcard__online { font-weight: 800; color: #fff; letter-spacing: 0.16em; border: 1px solid rgba(255, 255, 255, 0.35); padding: 5px 9px; border-radius: 6px; }
@media (hover: none) { .fv-passcard__foil { animation: fv-foil 5s ease-in-out infinite alternate; } }
@keyframes fv-foil { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

.fv-pass__lede { margin-top: 14px; max-width: 520px; font-size: 1.02rem; line-height: 1.6; color: var(--fv-muted); }
.fv-plans { display: grid; grid-template-columns: 1.1fr 1fr; gap: 14px; margin-top: 26px; }
.fv-plan {
    display: flex; flex-direction: column; gap: 12px; padding: 20px 20px 18px; border-radius: 16px;
    text-decoration: none; border: 1px solid var(--fv-line-2); background: rgba(255, 255, 255, 0.02);
    transition: transform 0.3s cubic-bezier(0.16, 0.8, 0.26, 1), border-color 0.3s ease, background 0.3s ease;
}
.fv-plan:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.4); }
.fv-plan:focus-visible { outline: 2px solid var(--fv-green); outline-offset: 3px; }
.fv-plan--primary { border-color: var(--fv-green); background: rgba(52, 224, 138, 0.07); }
.fv-plan--primary:hover { border-color: #4ff0a0; background: rgba(52, 224, 138, 0.11); }
.fv-plan__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.fv-plan__head b { font-size: 1.05rem; }
.fv-plan__head span { color: var(--fv-muted-2); font-size: 0.85rem; }
.fv-plan__head strong { font-size: 1.8rem; font-weight: 900; color: #fff; letter-spacing: -0.02em; }
.fv-plan__lines { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.fv-plan__lines span { position: relative; padding-left: 20px; font-size: 0.86rem; color: var(--fv-muted); line-height: 1.4; }
.fv-plan__lines span::before { content: ""; position: absolute; left: 2px; top: 0.42em; width: 9px; height: 5px; border-left: 2px solid var(--fv-green); border-bottom: 2px solid var(--fv-green); transform: rotate(-45deg); }
.fv-plan__btn {
    display: flex; align-items: center; justify-content: center; height: 44px; border-radius: 999px;
    font-size: 0.9rem; font-weight: 800; border: 1px solid rgba(255, 255, 255, 0.28); color: #fff;
}
.fv-plan--primary .fv-plan__btn { background: var(--fv-green); border-color: var(--fv-green); color: var(--fv-green-ink); }
.fv-steps { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 0.84rem; color: var(--fv-muted); }
.fv-steps b { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-right: 6px; border-radius: 50%; font-size: 0.7rem; background: rgba(52, 224, 138, 0.14); color: var(--fv-green); }
.fv-pass__fine { margin-top: 14px; font-size: 0.76rem; color: var(--fv-muted-2); }
.fv-pass__fine a { color: var(--fv-muted); }

/* ================================================================ LEGACY */
.fv .fv-legacy {
    display: flex; align-items: flex-end; gap: 24px clamp(24px, 4vw, 60px); flex-wrap: wrap;
    padding-top: 50px; padding-bottom: clamp(90px, 10vw, 140px);
    border-top: 1px solid var(--fv-line); margin-top: 40px;
}
.fv-legacy__t { margin-top: 8px; font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 900; letter-spacing: -0.02em; }
.fv-legacy__s { margin-top: 6px; font-size: 0.84rem; color: var(--fv-muted-2); }
.fv-legacy__bars { flex: 1; min-width: 300px; list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-end; gap: 4px; }
.fv-legacy__bars li { flex: 1; display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.fv-legacy__bar { display: block; height: var(--h); border-radius: 2px; background: rgba(255, 255, 255, 0.13); transition: background 0.25s ease; }
.fv-legacy__bars li:hover .fv-legacy__bar { background: rgba(255, 255, 255, 0.3); }
.fv-legacy__r { font-size: 0.56rem; text-align: center; color: var(--fv-muted-2); letter-spacing: 0.02em; }
.fv-legacy__bars li.is-now .fv-legacy__bar { background: var(--fv-green); box-shadow: 0 0 18px var(--fv-green); }
.fv-legacy__bars li.is-now .fv-legacy__r { color: var(--fv-green); font-weight: 800; }

/* ============================================================ STICKY BAR */
.fv-bar {
    position: fixed; z-index: 300; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    display: flex; align-items: center; gap: 18px; padding: 8px 8px 8px 22px; border-radius: 999px;
    background: rgba(9, 9, 13, 0.86); border: 1px solid rgba(52, 224, 138, 0.35);
    -webkit-backdrop-filter: blur(14px) saturate(130%); backdrop-filter: blur(14px) saturate(130%);
    box-shadow: 0 24px 60px -24px #000;
    transform: translate(-50%, 160%); opacity: 0;
    transition: transform 0.5s cubic-bezier(0.16, 0.8, 0.26, 1), opacity 0.4s ease;
    max-width: calc(100vw - 24px);
}
.fv-bar.is-on { transform: translate(-50%, 0); opacity: 1; }
.fv-bar__t { font-size: 0.86rem; font-weight: 800; white-space: nowrap; }
.fv-bar__when { margin-left: 8px; font-weight: 600; color: var(--fv-muted-2); font-variant-numeric: tabular-nums; }

/* =========================================================== FILM SHEET */
.fv-sheet { position: fixed; inset: 0; z-index: 360; display: flex; align-items: center; justify-content: center; padding: 20px; }
.fv-sheet[hidden] { display: none !important; }
.fv-sheet__backdrop { position: absolute; inset: 0; background: rgba(4, 4, 7, 0.82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transition: opacity 0.35s ease; }
.fv-sheet.is-in .fv-sheet__backdrop { opacity: 1; }
.fv-sheet__panel {
    position: relative; width: min(1060px, 100%); max-height: calc(100vh - 40px);
    display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    border-radius: 20px; overflow: hidden; background: #0d0d11; border: 1px solid var(--fv-line-2);
    box-shadow: 0 50px 120px -40px #000;
    opacity: 0; transform: translateY(18px) scale(0.98);
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.16, 0.8, 0.26, 1);
}
.fv-sheet.is-in .fv-sheet__panel { opacity: 1; transform: none; }
.fv-sheet__media { position: relative; background: #000; min-height: 300px; }
.fv-sheet__media img, .fv-sheet__media canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.fv-sheet__media canvas { pointer-events: none; }
.fv-sheet__body { padding: 30px 30px 24px; overflow-y: auto; display: flex; flex-direction: column; }
.fv-sheet__t { margin-top: 10px; font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 900; line-height: 1.05; letter-spacing: -0.02em; }
.fv-sheet__meta { margin-top: 10px; font-size: 0.86rem; color: var(--fv-muted); line-height: 1.5; }
.fv-sheet__syn { margin-top: 16px; font-size: 0.95rem; line-height: 1.65; color: #d7d7dc; }
.fv-sheet__note { margin-top: 14px; font-size: 0.8rem; color: #f5b544; }
.fv-sheet__when { margin-top: 22px; margin-bottom: 10px; font-size: 0.8rem; color: var(--fv-muted-2); }
.fv-sheet__body .fv-btn { align-self: flex-start; }
.fv-sheet__nav { margin-top: auto; padding-top: 22px; display: flex; align-items: center; gap: 12px; font-size: 0.78rem; color: var(--fv-muted-2); font-variant-numeric: tabular-nums; }
.fv-sheet__nav button {
    width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 1rem;
    background: transparent; color: #fff; border: 1px solid var(--fv-line-2); transition: border-color 0.2s ease;
}
.fv-sheet__nav button:hover { border-color: var(--fv-green); }
.fv-sheet__x {
    position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
    cursor: pointer; font-size: 1.4rem; line-height: 1; color: #fff;
    background: rgba(8, 8, 12, 0.7); border: 1px solid var(--fv-line-2);
}
.fv-sheet__x:focus-visible, .fv-sheet__nav button:focus-visible { outline: 2px solid var(--fv-green); outline-offset: 2px; }

/* ================================================================ REVEAL */
.fv-reveal [data-fv-anim] {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.9s cubic-bezier(0.16, 0.8, 0.26, 1);
}
.fv-reveal [data-fv-anim]:nth-child(2) { transition-delay: 0.1s; }
.fv-reveal [data-fv-anim]:nth-child(3) { transition-delay: 0.2s; }
.fv-reveal.is-in [data-fv-anim] { opacity: 1; transform: none; }

/* ============================================================ RESPONSIVE */
@media (max-width: 1024px) {
    .fv-hero { grid-template-columns: 1fr; padding-top: 96px; }
    .fv-stage { width: min(100%, 560px); margin-top: 10px; margin-bottom: 50px; }
    .fv-read { right: 0; }
    .fv .fv-pass { grid-template-columns: 1fr; }
    .fv-awards__grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .fv .fv-days { grid-template-columns: 1fr; }
    .fv-gel__lane { grid-template-columns: 46px minmax(0, 1fr); }
    .fv-plans { grid-template-columns: 1fr; }
    .fv-search { margin-left: 0; min-width: 0; flex: 1 1 100%; }
    .fv-read { left: 50%; right: auto; bottom: -4%; min-width: 0; width: min(82%, 300px); transform: translate(-50%, 8px); }
    .fv-read.is-on { transform: translate(-50%, 0); }
    .fv-stage__hint { bottom: -64px; }
    .fv-stage { margin-bottom: 76px; }
    .fv-sheet { padding: 0; align-items: flex-end; }
    .fv-sheet__panel { grid-template-columns: 1fr; max-height: 92vh; border-radius: 20px 20px 0 0; }
    .fv-sheet__media { min-height: 0; aspect-ratio: 16 / 9; }
    .fv-bar { gap: 10px; padding-left: 16px; }
    .fv-bar__when { display: none; }
}
@media (max-width: 540px) {
    .fv-grid { grid-template-columns: 1fr 1fr; gap: 14px 10px; }
    .fv-card__body { padding: 10px 10px 12px; }
    .fv-card__t { font-size: 0.88rem; }
    .fv-card__by { font-size: 0.72rem; }
    .fv-card__meta { font-size: 0.64rem; }
    .fv-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
    .fv-filters::-webkit-scrollbar { display: none; }
    .fv-filters .fv-chip { flex: none; }
    .fv-search { flex: 0 0 240px; }
    .fv-bar__t { font-size: 0.8rem; }
    .fv-bar__long { display: none; }
    .fv-bar { padding-left: 16px; gap: 10px; }
    .fv-count { gap: 14px; }
}

/* ========================================================= PAUSED MOTION
   WCAG 2.2.2: anything that moves for more than five seconds can be paused. */
.fv.is-still .fv-gel__strip, .fv.is-still .fv-hero__aura, .fv.is-still .fv-hero__cue::before,
.fv.is-still .fv-live i, .fv.is-still .fv-passcard__foil { animation-play-state: paused; }

/* ======================================================= REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
    .fv-pause { display: none; }
    .fv-hero__aura, .fv-gel__strip, .fv-hero__cue::before, .fv-live i, .fv-passcard__foil { animation: none !important; }
    .fv-reveal [data-fv-anim] { opacity: 1; transform: none; transition: none; }
    .fv-card__hit, .fv-card__img img, .fv-passcard, .fv-award, .fv-plan, .fv-btn, .fv-sheet__panel, .fv-bar { transition: none; }
    .fv-card__hit:hover .fv-card__img img { transform: none; }
}
