/* Mission Paris: one dark cinematic theme, one ember accent, 4px corners throughout. */
:root {
  --bg: #0d0b0c; --bg2: #161213; --surface: #1d1819; --line: #3a3132; --text: #f2ece8; --muted: #b5aaa5;
  --accent: #ff5a36; --accent-ink: #1c0702; --ok: #62d69b; --warn: #f0bd5f;
  --display: "Big Shoulders Display", Impact, "Arial Narrow", sans-serif;
  --body: Geist, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --nav: 52px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav) + 8px); background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--body); overflow-x: hidden; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 900; line-height: 1; text-transform: uppercase; letter-spacing: .005em; text-wrap: balance; }
h2 { font-size: clamp(2.3rem, 7.5vw, 4.6rem); }
h3 { font-size: 1.6rem; font-weight: 700; }
p { margin: 0; }
a { color: var(--accent); }
img { display: block; max-width: 100%; }
.skip { position: absolute; left: -999px; z-index: 900; }
.skip:focus { left: 8px; top: 8px; background: var(--surface); padding: 8px 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.muted { color: var(--muted); }
.grain { position: fixed; inset: 0; z-index: 700; pointer-events: none; opacity: .07; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Navigation */
.nav { position: fixed; inset: 0 0 auto 0; height: var(--nav); z-index: 600; display: flex; align-items: center; gap: 18px; padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right)); background: rgb(13 11 12 / .82); backdrop-filter: blur(12px); border-bottom: 1px solid rgb(255 255 255 / .08); }
.brand { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 1.25rem; color: var(--text); text-decoration: none; white-space: nowrap; }
.navlinks { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin-left: auto; }
.navlinks::-webkit-scrollbar { display: none; }
.navlinks a { color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 500; padding: 10px; white-space: nowrap; transition: color .2s; }
.navlinks a:hover, .navlinks a.on { color: var(--text); }
.pill { font-family: var(--mono); font-size: .72rem; background: var(--accent); color: var(--accent-ink); padding: 1px 5px; border-radius: 4px; }
@media (max-width: 620px) { .brand { display: none; } .navlinks { margin-left: 0; } }

/* Hero */
.hero { position: relative; min-height: 100dvh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; background: #241a18; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(13 11 12 / .86) 0%, rgb(13 11 12 / .35) 62%, rgb(13 11 12 / .15) 100%), linear-gradient(0deg, var(--bg) 2%, rgb(13 11 12 / 0) 46%); }
.hero-body { padding: calc(var(--nav) + 24px) max(16px, env(safe-area-inset-right)) 40px max(16px, env(safe-area-inset-left)); width: 100%; max-width: 1180px; margin-inline: auto; }
.hero-date { font-family: var(--mono); color: var(--accent); font-size: .95rem; margin-bottom: 12px; }
.hero h1 { font-size: clamp(3.3rem, 12.5vw, 8rem); line-height: .92; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { margin-top: 16px; max-width: 46ch; color: #e8e0db; font-size: 1.08rem; }
.countdown { display: grid; grid-template-columns: repeat(4, auto) 1fr; align-items: end; gap: 6px 20px; margin-block: 24px; justify-content: start; }
.countdown div { display: grid; }
.countdown b { font-family: var(--display); font-weight: 900; font-size: clamp(2.1rem, 7vw, 3.4rem); line-height: 1; font-variant-numeric: tabular-nums; }
.countdown span { font-size: .78rem; color: var(--muted); }
.countdown p { color: var(--muted); font-size: .85rem; padding-bottom: 2px; }
@media (max-width: 480px) { .countdown { gap: 6px 14px; } .countdown p { grid-column: 1 / -1; } }
.cta { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 26px; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-family: var(--body); font-size: 1rem; text-decoration: none; border: 0; border-radius: 4px; cursor: pointer; white-space: nowrap; touch-action: manipulation; transition: transform .18s var(--ease), background-color .18s; }
.cta:hover { background: #ff7654; transform: translateY(-2px); }
.cta:active { transform: scale(.98); }
.cta.full { width: 100%; margin-top: 14px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.stats > div { background: var(--bg); padding: 24px 16px; display: grid; gap: 2px; align-content: start; }
.stats b { font-family: var(--display); font-weight: 900; font-size: clamp(2.6rem, 8vw, 4.4rem); line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); font-size: .9rem; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Must plays: sticky chapters */
.band { max-width: 1180px; margin-inline: auto; padding: 72px 16px 32px; }
.band p { color: var(--muted); margin-top: 10px; font-size: 1.1rem; }
.chapter { position: sticky; top: var(--nav); height: calc(100dvh - var(--nav)); min-height: 560px; margin-bottom: 55dvh; overflow: hidden; display: flex; align-items: flex-end; isolation: isolate; background: var(--bg2); border-top: 1px solid rgb(255 255 255 / .12); box-shadow: 0 -24px 60px rgb(0 0 0 / .6); }
.chapter img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.chapter::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(13 11 12 / .97) 6%, rgb(13 11 12 / .72) 48%, rgb(13 11 12 / .08) 84%), linear-gradient(90deg, rgb(13 11 12 / .55), rgb(13 11 12 / 0) 70%); }
.chapter-body { width: 100%; max-width: 1180px; margin-inline: auto; padding: 24px 16px 32px; display: grid; gap: 10px; }
.chapter h3 { font-size: clamp(3rem, 11vw, 7rem); font-weight: 900; line-height: .92; }
.chapter .when { font-family: var(--mono); color: var(--accent); font-size: .95rem; }
.chapter .hook { font-size: clamp(1.1rem, 3vw, 1.45rem); font-weight: 500; max-width: 34ch; }
.chapter .story { color: #dcd3ce; max-width: 62ch; }
@media (max-height: 720px), (max-width: 480px) { .chapter .story { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; } }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.ghost { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; background: rgb(255 255 255 / .08); color: var(--text); border: 1px solid rgb(255 255 255 / .28); border-radius: 4px; font: inherit; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; white-space: nowrap; touch-action: manipulation; transition: background-color .18s, transform .18s var(--ease); }
.ghost:hover { background: rgb(255 255 255 / .18); }
.ghost:active { transform: scale(.98); }
.ghost[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chapter:last-child { margin-bottom: 0; }

/* Sections */
.band-section { max-width: 1180px; margin-inline: auto; padding: 80px 16px 24px; }
.band-section.slim { padding-bottom: 20px; }
.section-lead { color: var(--muted); max-width: 60ch; margin-top: 12px; font-size: 1.08rem; }
.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* Gallery */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-block: 24px; }
.chips button { min-height: 40px; padding: 6px 14px; border-radius: 4px; background: transparent; border: 1px solid var(--line); color: var(--muted); font: inherit; font-size: .92rem; font-weight: 500; cursor: pointer; transition: background-color .18s, color .18s, border-color .18s; touch-action: manipulation; }
.chips button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(12, 1fr); grid-auto-flow: dense; }
.tile { position: relative; grid-column: span 4; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; background: var(--surface); border: 0; padding: 0; color: var(--text); text-align: left; font: inherit; cursor: pointer; isolation: isolate; transition: transform .35s var(--ease), opacity .3s; }
.tile.wide { grid-column: span 8; aspect-ratio: auto; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease), filter .4s; filter: saturate(.92); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(13 11 12 / .96) 8%, rgb(13 11 12 / .25) 62%, rgb(13 11 12 / .05)); }
.tile:hover img, .tile:focus-visible img { transform: scale(1.06); filter: saturate(1.1); }
.tile-body { position: absolute; inset: auto 0 0 0; padding: 14px; display: grid; gap: 4px; }
.tile h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 900; }
.tile .meta { font-family: var(--mono); font-size: .8rem; color: var(--accent); }
.tile .hook { font-size: .92rem; color: #e0d8d3; }
.tile .state { font-size: .8rem; font-weight: 600; }
.state.open { color: var(--ok); }
.state.closed { color: var(--warn); }
.state.blocked { color: var(--muted); }
.tile.dim img { filter: grayscale(.8) brightness(.7); }
.votes { font-family: var(--mono); font-size: .78rem; color: var(--text); }
@media (max-width: 860px) { .tile, .tile.wide { grid-column: span 6; aspect-ratio: 3 / 4; } }
@media (max-width: 520px) { .tile, .tile.wide { grid-column: span 12; aspect-ratio: 16 / 13; } }

/* Dialog */
dialog { border: 0; padding: 0; background: var(--bg2); color: var(--text); width: min(760px, calc(100vw - 16px)); max-height: calc(100dvh - 16px); border-radius: 4px; overflow: auto; overscroll-behavior: contain; }
dialog::backdrop { background: rgb(0 0 0 / .78); backdrop-filter: blur(3px); }
dialog[open] { animation: pop .35s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.dlg-hero { position: relative; aspect-ratio: 16 / 9; background: var(--surface); }
.dlg-hero img { width: 100%; height: 100%; object-fit: cover; }
.dlg-hero iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.close { position: absolute; top: 8px; right: 8px; z-index: 3; min-width: 44px; min-height: 44px; background: rgb(13 11 12 / .78); color: var(--text); border: 1px solid rgb(255 255 255 / .3); border-radius: 4px; font: inherit; font-weight: 600; font-size: .9rem; padding-inline: 10px; cursor: pointer; }
.dlg-body { padding: 18px 16px 22px; display: grid; gap: 12px; }
.dlg-body h2 { font-size: clamp(2.2rem, 7vw, 3.4rem); }
.vendor { color: var(--accent); font-family: var(--mono); font-size: .85rem; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.thumbs button { padding: 0; border: 0; background: var(--surface); aspect-ratio: 3 / 2; overflow: hidden; border-radius: 4px; cursor: pointer; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--ease); }
.thumbs button:hover img { transform: scale(1.06); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; font-size: .95rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; min-width: 0; }
.fear { display: inline-flex; gap: 3px; vertical-align: -1px; }
.fear i { width: 13px; height: 13px; border-radius: 2px; background: var(--line); }
.fear i.on { background: var(--accent); }
.fear i.half { background: linear-gradient(90deg, var(--accent) 50%, var(--line) 50%); }
.warnbox { font-size: .92rem; color: var(--muted); border-left: 3px solid var(--line); padding-left: 10px; }

/* Plan */
.daynav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-block: 28px 24px; }
.daynav button { display: grid; gap: 0; padding: 12px 8px; min-height: 68px; border: 1px solid var(--line); border-radius: 4px; background: transparent; color: var(--muted); cursor: pointer; font: inherit; transition: background-color .2s, color .2s, border-color .2s; touch-action: manipulation; text-align: left; }
.daynav b { font-family: var(--display); font-size: clamp(1.25rem, 4vw, 1.9rem); font-weight: 900; text-transform: uppercase; line-height: 1.05; }
.daynav span { font-family: var(--mono); font-size: .78rem; }
.daynav button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.dayhead { font-size: 1.2rem; font-weight: 500; margin-bottom: 8px; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 62px; top: 10px; bottom: 10px; width: 2px; background: var(--line); transform-origin: top; animation: draw 1s var(--ease) both; }
@keyframes draw { from { transform: scaleY(0); } }
.timeline li { display: grid; grid-template-columns: 50px 1fr; gap: 26px; padding-block: 9px; animation: slip .55s var(--ease) both; animation-delay: calc(var(--i) * 45ms); }
@keyframes slip { from { opacity: 0; transform: translateX(-10px); } }
.timeline time { font-family: var(--mono); font-size: .92rem; color: var(--muted); text-align: right; padding-top: 2px; font-variant-numeric: tabular-nums; }
.timeline .label { font-weight: 600; }
.timeline .note { color: var(--muted); font-size: .92rem; }
.timeline .route { font-size: .9rem; display: inline-block; padding-block: 4px; }
.roomstep { display: grid; grid-template-columns: 1fr; width: 100%; min-height: 136px; position: relative; overflow: hidden; border-radius: 4px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; text-align: left; padding: 0; cursor: pointer; isolation: isolate; }
.roomstep img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--ease); }
.roomstep::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(13 11 12 / .94) 34%, rgb(13 11 12 / .35)); }
.roomstep:hover img { transform: scale(1.05); }
.roomstep > div { padding: 12px 14px; display: grid; gap: 2px; align-content: end; max-width: 68ch; }
.roomstep h3 { font-size: 1.9rem; font-weight: 900; }
.roomstep .note { color: #d9d0cb; }
li.isroom time { color: var(--text); font-weight: 600; }
.tag { display: inline-block; font-family: var(--body); font-size: .72rem; font-weight: 600; padding: 1px 7px; border-radius: 4px; text-transform: none; letter-spacing: 0; vertical-align: 3px; white-space: nowrap; }
.tag.must { background: var(--accent); color: var(--accent-ink); }
.tag.hard { border: 1px solid var(--warn); color: var(--warn); }
.tag.predicted { border: 1px solid var(--warn); color: var(--warn); }
.tag.spare, .tag.out { border: 1px solid var(--line); color: var(--muted); }
.notice { border-left: 3px solid var(--warn); padding: 2px 0 2px 12px; color: var(--muted); margin-top: 12px; max-width: 70ch; }
.notice b { color: var(--text); }
@media (max-width: 520px) { .timeline::before { left: 44px; } .timeline li { grid-template-columns: 36px 1fr; gap: 18px; } .timeline time { font-size: .8rem; } }

/* Paris strip */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: min(82vw, 440px); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 16px 18px; scrollbar-color: var(--line) transparent; }
@media (min-width: 1212px) { .strip { padding-inline: calc((100vw - 1148px) / 2); } }
.place { scroll-snap-align: center; display: grid; gap: 10px; align-content: start; }
.place .pic { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; background: var(--surface); }
.place img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.place:hover img { transform: scale(1.05); }
.place .when { font-family: var(--mono); font-size: .8rem; color: var(--accent); }
.place h3 { font-size: 2rem; font-weight: 900; }
.place p { color: var(--muted); font-size: .95rem; }

/* Trip */
.pass { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: 4px; overflow: hidden; }
.leg { background: var(--surface); padding: 18px 16px; display: grid; gap: 6px; }
.leg .when { font-family: var(--mono); font-size: .85rem; color: var(--accent); }
.leg .route { display: flex; align-items: center; gap: 14px; font-family: var(--display); font-weight: 900; font-size: clamp(2.8rem, 7vw, 4rem); line-height: 1; }
.leg .line { flex: 1; height: 2px; position: relative; background: var(--line); overflow: hidden; }
.leg .line::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease) .2s; }
.reveal.in .leg .line::after { transform: scaleX(1); }
.leg .times { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 1rem; }
.leg small { color: var(--muted); }
.passfoot { grid-column: 1 / -1; background: var(--surface); padding: 14px 16px; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; }
.passfoot b { font-family: var(--display); font-size: 1.9rem; font-weight: 900; }
.passfoot small { display: block; color: var(--muted); max-width: 60ch; }
@media (max-width: 680px) { .pass { grid-template-columns: 1fr; } }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 44px; }
@media (max-width: 800px) { .two { grid-template-columns: 1fr; } }
.hotel { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hotel .p { font-family: var(--mono); white-space: nowrap; }
.hotel small { grid-column: 1 / -1; color: var(--muted); }
.fine { color: var(--muted); font-size: .9rem; margin-top: 10px; }
.costs { width: 100%; border-collapse: collapse; }
.costs td { padding: 9px 0; vertical-align: top; }
.costs td:last-child { text-align: right; font-family: var(--mono); white-space: nowrap; padding-left: 12px; }
.costs small { display: block; color: var(--muted); }
.costs tfoot td { border-top: 1px solid var(--text); font-weight: 600; }
.costs tfoot tr:last-child td { color: var(--accent); font-size: 1.2rem; }
.rides, .maparea { margin-top: 44px; }
.rides ul { margin: 12px 0 0; padding-left: 20px; max-width: 74ch; }
.rides li { margin-bottom: 6px; color: var(--muted); }
.rides b { color: var(--text); font-weight: 600; }
#map { height: min(62dvh, 520px); border-radius: 4px; margin-top: 12px; background: var(--surface); }
.leaflet-container { font-family: var(--body); }
.placelist { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.placelist a { display: block; padding-block: 8px; }

/* Tasks */
.taskhead { display: grid; grid-template-columns: minmax(0, 320px) 1fr; gap: 24px; align-items: end; margin-top: 26px; }
@media (max-width: 640px) { .taskhead { grid-template-columns: 1fr; } }
.namefield { display: grid; gap: 4px; }
label { font-weight: 600; font-size: .92rem; }
input[type="text"], input[type="password"] { width: 100%; min-height: 46px; padding: 8px 10px; font: inherit; color: var(--text); background: var(--surface); border: 1px solid #6e6361; border-radius: 4px; }
.meter-num { font-family: var(--display); font-weight: 900; font-size: 1.7rem; }
.meter-bar { height: 8px; overflow: hidden; border-radius: 4px; background: var(--surface); }
.meter-bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 4px; transition: width .7s var(--ease); }
.saved { min-height: 1.5em; font-size: .85rem; color: var(--ok); margin-top: 6px; }
.saved.err { color: var(--accent); }
.group { color: var(--accent); margin-block: 20px 8px; font-size: 1.7rem; }
.task { position: relative; display: grid; grid-template-columns: 32px 1fr; gap: 10px; padding: 14px 12px; background: var(--surface); border-radius: 4px; margin-bottom: 8px; overflow: hidden; }
.task input[type="checkbox"] { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--ok); cursor: pointer; }
.task label { cursor: pointer; font-size: 1.02rem; }
.task .text { color: var(--muted); font-size: .92rem; }
.task .who { color: var(--ok); font-size: .88rem; font-weight: 600; }
.task a { display: inline-block; padding-block: 4px; font-weight: 500; }
.task .noteline { grid-column: 2; display: grid; gap: 3px; }
.task .noteline label { font-size: .82rem; color: var(--muted); font-weight: 500; }
.task.done { outline: 1px solid var(--ok); }
.stamp { position: absolute; top: 10px; right: 10px; font-family: var(--display); font-weight: 900; font-size: 1.15rem; text-transform: uppercase; color: var(--ok); border: 3px solid var(--ok); padding: 0 8px; border-radius: 4px; transform: rotate(-8deg); pointer-events: none; opacity: .9; }
.task.just .stamp { animation: stamp .4s var(--ease); }
@keyframes stamp { from { transform: rotate(-8deg) scale(2.2); opacity: 0; } }
#fx { position: fixed; inset: 0; pointer-events: none; z-index: 800; overflow: hidden; }
#fx i { position: absolute; width: 6px; height: 14px; animation: fall 1.4s cubic-bezier(.2, .6, .4, 1) forwards; }
@keyframes fall { to { transform: translate(var(--x), 100vh) rotate(var(--r)); opacity: .2; } }

/* Footer */
.foot { max-width: 1180px; margin: 60px auto 0; padding: 20px 16px 40px; color: var(--muted); font-size: .85rem; display: grid; gap: 10px; border-top: 1px solid var(--line); }
.credits a { color: var(--muted); }
.linkbtn { background: none; border: 0; padding: 8px 0; color: var(--accent); font: inherit; text-decoration: underline; cursor: pointer; }

/* Login */
.loginpage { min-height: 100dvh; display: grid; place-items: center; padding: 16px; background: radial-gradient(circle at 50% 30%, #3a1810, var(--bg) 62%); }
.login { width: 100%; max-width: 380px; display: grid; gap: 8px; }
.login h1 { font-size: clamp(3.4rem, 15vw, 5rem); line-height: .92; }
.login form { display: grid; gap: 6px; margin-top: 14px; }
.error { color: var(--accent); font-size: .92rem; font-weight: 600; animation: nudge .3s; }
@keyframes nudge { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

@media (prefers-reduced-motion: no-preference) {
  .hero-img { animation: drift 26s ease-in-out infinite alternate; }
  @keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
  .flicker { animation: flicker 2.6s linear both; }
  @keyframes flicker { 0%, 7% { opacity: 0; } 8% { opacity: .9; } 10% { opacity: .1; } 14% { opacity: 1; } 16% { opacity: .35; } 20%, 56% { opacity: 1; } 57% { opacity: .55; } 59%, 100% { opacity: 1; } }
  .hero-sub, .hero-date, .countdown, .hero .cta { animation: up .9s var(--ease) both .9s; }
  @keyframes up { from { opacity: 0; transform: translateY(16px); } }
  @supports (animation-timeline: view()) {
    .chapter img.bg { animation: zoomout linear both; animation-timeline: view(); animation-range: entry 0% cover 60%; }
    @keyframes zoomout { from { transform: scale(1.28); } to { transform: scale(1); } }
    .chapter-body > * { animation: bodyin linear both; animation-timeline: view(); animation-range: entry 35% entry 90%; }
    @keyframes bodyin { from { opacity: 0; transform: translateY(44px); } to { opacity: 1; transform: none; } }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media (prefers-reduced-transparency: reduce) { .nav { background: var(--bg); backdrop-filter: none; } }
