/* ==========================================================================
   Adamových 50 — „filmový archiv“: teplá tma, zlato, papír, zrno filmu
   ========================================================================== */

@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/fraunces-latin-ext-standard-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/fraunces-latin-standard-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url(../fonts/fraunces-latin-ext-standard-italic.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url(../fonts/fraunces-latin-standard-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/inter-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/inter-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #14110e;
  --ink-2: #1d1915;
  --ink-3: #2a241e;
  --line: rgba(243, 234, 216, .12);
  --paper: #f3ead8;
  --paper-dim: rgba(243, 234, 216, .68);
  --paper-mute: rgba(243, 234, 216, .45);
  --gold: #e3a94b;
  --gold-2: #f6cf7d;
  --coral: #e5674b;
  --teal: #5fb3a4;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 30px 60px -30px rgba(0,0,0,.7), 0 0 0 1px var(--line);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100dvh; background: var(--ink); color: var(--paper);
  font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(227,169,75,.16), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(229,103,75,.10), transparent 60%);
  background-attachment: fixed;
}
img, video, canvas { max-width: 100%; display: block; }
a { color: var(--gold-2); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* zrno filmu */
.grain { position: fixed; inset: -50%; pointer-events: none; z-index: 100; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)} 60%{transform:translate(-2%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }
@media (prefers-reduced-motion: reduce) { .grain { animation: none; } * { scroll-behavior: auto !important; } }

/* typografie */
.display { font-family: var(--serif); font-weight: 380; font-size: clamp(2.4rem, 6.2vw, 5rem); line-height: 1.02;
  letter-spacing: -.02em; margin: 0 0 .4em; font-variation-settings: "opsz" 144, "SOFT" 50; }
.display em { font-style: italic; color: var(--gold-2); font-weight: 340; }
.h2 { font-family: var(--serif); font-weight: 450; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.01em; margin: 0 0 .8em; line-height: 1.15; }
.h3 { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; margin: 0 0 .5em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--paper-dim); max-width: 38em; margin: 0 0 1.6em; }
.eyebrow { text-transform: uppercase; letter-spacing: .28em; font-size: .75rem; color: var(--gold); margin: 0 0 1rem; font-weight: 600; }
.muted { color: var(--paper-mute); }
.hint { color: var(--paper-mute); font-size: .9rem; }
code { background: var(--ink-3); padding: .1em .45em; border-radius: 6px; font-size: .85em; }
kbd { display: inline-block; min-width: 1.8em; padding: .1em .45em; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; font: 600 .75rem var(--sans); text-align: center; background: rgba(255,255,255,.04); }

/* tlačítka */
.btn { --bg: var(--ink-3); display: inline-flex; align-items: center; justify-content: center; gap: .5em; border: 0; border-radius: 999px;
  padding: .8em 1.4em; background: var(--bg); color: var(--paper); font-weight: 600; text-decoration: none; letter-spacing: .01em;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn--gold { --bg: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, #c98a2e); color: #2a1c06; box-shadow: 0 10px 30px -10px rgba(227,169,75,.6); }
.btn--ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--paper-mute); }
.btn--lg { padding: 1em 1.9em; font-size: 1.05rem; }
.btn--sm { padding: .5em 1em; font-size: .85rem; }
.btn--danger { color: #ffb4a4; }
.link-muted { color: var(--paper-mute); font-size: .9rem; }

/* topbar */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .8rem clamp(1rem, 4vw, 2.5rem); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px);
  background: rgba(20,17,14,.72); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--paper); }
.brand__mark { font: italic 500 1.15rem/1 var(--serif); color: var(--ink); background: var(--gold); border-radius: 9px; padding: .35rem .45rem; }
.brand__name { font-family: var(--serif); font-size: 1.1rem; }
.topbar__me { display: flex; align-items: center; gap: .9rem; color: var(--paper-dim); font-size: .95rem; }
@media (max-width: 560px) { .brand__name { display: none; } }

/* ---------- landing ---------- */
.page-landing { display: grid; place-items: center; overflow: hidden; }
.landing { position: relative; text-align: center; padding: 3rem 1.5rem; max-width: 760px; }
.landing__fifty { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -54%); z-index: -1;
  font: italic 300 clamp(18rem, 55vw, 34rem)/1 var(--serif); color: transparent; -webkit-text-stroke: 1px rgba(227,169,75,.22);
  animation: breathe 8s ease-in-out infinite; user-select: none; }
@keyframes breathe { 50% { transform: translate(-50%, -54%) scale(1.04); -webkit-text-stroke-color: rgba(227,169,75,.35); } }
.landing .lead { margin-inline: auto; }
.code-form { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }
.code-form input { width: min(320px, 100%); }
.alert { color: #ffb4a4; }
@media (max-width: 560px) { .hide-sm { display: none; } }

/* ---------- formuláře ---------- */
.input, .code-form input { width: 100%; background: rgba(0,0,0,.25); border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--paper); padding: .9em 1em; font: inherit; transition: border-color .2s, background .2s; }
.input:focus, .code-form input:focus { outline: none; border-color: var(--gold); background: rgba(0,0,0,.35); }
.input::placeholder { color: var(--paper-mute); }
textarea.input { resize: vertical; min-height: 9em; line-height: 1.65; }
.input--title { font-family: var(--serif); font-size: 1.25rem; margin-bottom: .75rem; }
.check { display: inline-flex; align-items: center; gap: .55em; color: var(--paper-dim); font-size: .92rem; cursor: pointer; }
.check input { accent-color: var(--gold); width: 1.1em; height: 1.1em; }

/* ---------- guest ---------- */
.guest { width: min(1080px, 100%); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem) 4rem; }
.hero { padding: clamp(3rem, 9vw, 6.5rem) 0 clamp(2rem, 6vw, 4rem); position: relative; }
.hero__years { display: flex; align-items: center; gap: 1rem; font: italic 400 1.1rem var(--serif); color: var(--gold); margin-bottom: 1.4rem; }
.hero__years i { flex: 0 0 min(260px, 40vw); height: 1px; background: linear-gradient(90deg, var(--gold), transparent 50%, var(--gold)); position: relative; }
.hero__years i::after { content: ""; position: absolute; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-2);
  box-shadow: 0 0 12px var(--gold); animation: travel 5s var(--ease) infinite; }
@keyframes travel { from { left: 0 } to { left: calc(100% - 7px) } }
.hero__title { max-width: 14ch; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; align-items: center; margin-bottom: 2rem; }
.countdown { display: flex; gap: .9rem; }
.countdown div { text-align: center; }
.countdown b { display: block; font: 400 2.2rem/1 var(--serif); font-variant-numeric: tabular-nums; }
.countdown small { color: var(--paper-mute); font-size: .7rem; text-transform: uppercase; letter-spacing: .15em; }
.stats { display: flex; flex-wrap: wrap; gap: .5rem; }
.stat { padding: .45em .9em; border-radius: 999px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--line); font-size: .88rem; color: var(--paper-dim); }
.stat b { color: var(--paper); font-weight: 650; }
.meter { display: flex; align-items: center; gap: .6rem; font-size: .88rem; color: var(--paper-dim); }
.meter span { width: 120px; height: 6px; border-radius: 3px; background: var(--ink-3); overflow: hidden; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--coral), var(--gold)); border-radius: inherit; }

.card { background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015)); border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow); padding: clamp(1.25rem, 4vw, 2.5rem); margin-bottom: 3rem; }
.composer { scroll-margin-top: 5rem; }
.composer.is-editing { box-shadow: 0 0 0 2px var(--gold), var(--shadow); }
.composer__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.closed-note { padding: 1rem 1.2rem; border-radius: var(--radius-sm); background: rgba(227,169,75,.12); color: var(--gold-2); margin-bottom: 1rem; }
.step { border: 0; padding: 0; margin: 0 0 2.2rem; min-width: 0; }
.step legend { display: flex; align-items: center; gap: .7rem; font-weight: 650; margin-bottom: .9rem; padding: 0; font-size: 1.02rem; }
.step__n { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; font: italic 500 .95rem var(--serif);
  background: rgba(227,169,75,.14); color: var(--gold-2); box-shadow: inset 0 0 0 1px rgba(227,169,75,.35); }
.optional { font-weight: 400; font-size: .8rem; color: var(--paper-mute); }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: .55em 1.05em; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); color: var(--paper-dim);
  transition: all .18s var(--ease); cursor: pointer; user-select: none; }
.chip input:checked + span { background: var(--paper); color: var(--ink); box-shadow: none; font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.chips--tags .chip input:checked + span { background: var(--gold); }

/* výběr roku */
.year { position: relative; padding-top: .2rem; }
.year__out { font: 300 clamp(3rem, 9vw, 4.6rem)/1 var(--serif); font-variant-numeric: tabular-nums; letter-spacing: -.03em; color: var(--paper); transition: opacity .2s; }
.year__era { margin-left: .8rem; color: var(--gold); font: italic 400 1.05rem var(--serif); }
.year.is-unknown .year__out, .year.is-unknown .year__era { opacity: .25; }
.year input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; margin: .4rem 0 0; }
.year input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--coral), var(--gold), var(--teal)); }
.year input[type=range]::-moz-range-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--coral), var(--gold), var(--teal)); }
.year input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -12px; border-radius: 50%; background: var(--paper);
  box-shadow: 0 0 0 6px rgba(227,169,75,.25), 0 4px 12px rgba(0,0,0,.5); cursor: grab; }
.year input[type=range]::-moz-range-thumb { width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 6px rgba(227,169,75,.25); }
.year__ticks { position: relative; height: 1.4rem; margin: -.3rem 14px .8rem; font-size: .72rem; color: var(--paper-mute); }
.year__ticks span { position: absolute; left: var(--p); transform: translateX(-50%); }

.textarea-wrap { position: relative; }
.prompt { display: flex; align-items: center; gap: .8rem; margin-top: .6rem; min-height: 2rem; flex-wrap: wrap; }
.prompt__btn { border: 0; background: rgba(95,179,164,.14); color: #9fe0d3; border-radius: 999px; padding: .4em .9em; font-size: .85rem; }
.prompt__text { color: var(--paper-dim); font: italic 400 .98rem var(--serif); animation: fadeUp .4s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } }

/* nahrávání souborů */
.drop { display: flex; flex-direction: column; align-items: center; gap: .3rem; text-align: center; padding: 2rem 1rem; border-radius: var(--radius);
  border: 1.5px dashed rgba(243,234,216,.22); background: rgba(0,0,0,.18); cursor: pointer; transition: all .2s var(--ease); }
.drop:hover, .drop.is-over { border-color: var(--gold); background: rgba(227,169,75,.07); }
.drop__icon { font-size: 2rem; }
.drop small { color: var(--paper-mute); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .7rem; margin-top: 1rem; }
.thumbs:empty { display: none; }
.thumb { position: relative; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--ink-3); animation: pop .3s var(--ease); }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); font-size: 1rem; line-height: 1; }
.thumb.is-removed { opacity: .3; }
.thumb.is-removed button { background: var(--gold); color: var(--ink); }
.thumb__badge { position: absolute; left: 6px; bottom: 6px; font-size: .7rem; padding: .15em .5em; border-radius: 6px; background: rgba(0,0,0,.6); }
@keyframes pop { from { transform: scale(.85); opacity: 0; } }

/* nahrávání hlasu */
.rec { display: flex; align-items: center; gap: 1rem; padding: 1rem; border-radius: var(--radius); background: rgba(0,0,0,.18); box-shadow: inset 0 0 0 1px var(--line); }
.rec__btn { flex: 0 0 auto; width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--coral); display: grid; place-items: center;
  box-shadow: 0 0 0 6px rgba(229,103,75,.18); transition: all .2s var(--ease); }
.rec__btn span { width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: all .2s var(--ease); }
.rec.is-recording .rec__btn { animation: pulse 1.4s infinite; }
.rec.is-recording .rec__btn span { border-radius: 4px; }
@keyframes pulse { 50% { box-shadow: 0 0 0 14px rgba(229,103,75,.08); } }
.rec__body { flex: 1; min-width: 0; }
.rec__status { color: var(--paper-dim); font-size: .92rem; font-variant-numeric: tabular-nums; }
.rec__wave { width: 100%; height: 40px; margin-top: .3rem; }
.rec audio { width: 100%; margin-top: .4rem; height: 40px; }

.wish { display: flex; align-items: center; gap: .9rem; margin-top: 1.2rem; padding: 1rem 1.1rem; border-radius: var(--radius); cursor: pointer;
  background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px var(--line); transition: all .2s; }
.wish input { accent-color: var(--gold); width: 1.3em; height: 1.3em; }
.wish__ui { display: flex; flex-direction: column; }
.wish__ui small { color: var(--paper-mute); }
.wish:has(input:checked) { background: rgba(227,169,75,.1); box-shadow: inset 0 0 0 1px rgba(227,169,75,.5); }

.submit { display: flex; flex-direction: column; align-items: flex-start; gap: .8rem; }
.progress { width: 100%; height: 6px; border-radius: 3px; background: var(--ink-3); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transition: width .2s; }
.error { color: #ffb4a4; margin: 0; min-height: 1.2em; }

/* karty vzpomínek */
.mine, .wall { margin-bottom: 3rem; }
.count { font: 500 .9rem var(--sans); color: var(--paper-mute); vertical-align: middle; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.2rem; }
.empty { color: var(--paper-mute); font-style: italic; }
.mem { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--ink-2); box-shadow: var(--shadow); display: flex; flex-direction: column;
  animation: pop .35s var(--ease); }
.mem__media { position: relative; aspect-ratio: 4/3; background: var(--ink-3); display: grid; grid-template-columns: repeat(var(--cols, 1), 1fr); gap: 2px; }
.mem__media img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.mem__media .more { position: absolute; right: 10px; bottom: 10px; padding: .2em .6em; border-radius: 6px; background: rgba(0,0,0,.65); font-size: .8rem; }
.mem__quote { aspect-ratio: 4/3; overflow: hidden; display: grid; place-items: center; padding: 1.5rem; font: italic 400 1.3rem/1.35 var(--serif); color: var(--gold-2); text-align: center;
  background: radial-gradient(circle at 30% 20%, rgba(227,169,75,.15), transparent 60%), var(--ink-3); }
.mem__body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.mem__meta { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .78rem; color: var(--paper-mute); }
.mem__year { font: italic 500 .95rem var(--serif); color: var(--gold); }
.mem__tag { padding: .1em .55em; border-radius: 999px; background: rgba(255,255,255,.06); }
.mem__title { font: 500 1.15rem/1.25 var(--serif); margin: 0; }
.mem__text { color: var(--paper-dim); font-size: .93rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.mem__by { margin-top: auto; padding-top: .5rem; font: italic 400 .92rem var(--serif); color: var(--paper-dim); }
.mem__actions { display: flex; gap: .4rem; padding: 0 1.1rem 1.1rem; }
.mem audio { width: 100%; height: 36px; margin-top: .3rem; }
.mem--wish::before { content: "🥂 přání"; position: absolute; top: 10px; left: 10px; z-index: 1; padding: .2em .7em; border-radius: 999px; background: var(--gold); color: var(--ink); font-size: .75rem; font-weight: 700; }
.mem--hidden { opacity: .45; }

.masonry { columns: 3 280px; column-gap: 1.2rem; }
.masonry .mem { break-inside: avoid; margin-bottom: 1.2rem; }

.teaser { text-align: center; padding: 3rem 1rem; color: var(--paper-dim); }
.teaser__envelope { font-size: 3rem; animation: wobble 3s ease-in-out infinite; }
@keyframes wobble { 50% { transform: rotate(-8deg) translateY(-4px); } }
.foot { border-top: 1px solid var(--line); padding-top: 1.5rem; color: var(--paper-mute); font-size: .85rem; max-width: 60em; }

.toast { position: fixed; left: 50%; bottom: max(1.5rem, env(safe-area-inset-bottom)); transform: translate(-50%, 150%); z-index: 200; padding: .9em 1.4em;
  border-radius: 999px; background: var(--paper); color: var(--ink); font-weight: 600; box-shadow: 0 20px 40px rgba(0,0,0,.5); transition: transform .4s var(--ease), opacity .3s, visibility .4s; max-width: 90vw; opacity: 0; visibility: hidden; }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

.lightbox { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
.lightbox::backdrop { background: rgba(10,8,6,.92); }
.lightbox img { max-width: 96vw; max-height: 92vh; border-radius: 8px; }
.lightbox__close { position: fixed; top: 1rem; right: 1rem; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); font-size: 1.6rem; }

/* konfety */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 150; }

/* ---------- admin ---------- */
.admin { width: min(1280px, 100%); margin: 0 auto; padding: 2rem clamp(1rem, 3vw, 2rem) 4rem; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.kpi { padding: 1.2rem 1.3rem; border-radius: var(--radius); background: var(--ink-2); box-shadow: var(--shadow); }
.kpi b { display: block; font: 300 2.4rem/1 var(--serif); }
.kpi span { color: var(--paper-mute); font-size: .85rem; }
.import { display: grid; grid-template-columns: 1fr auto; gap: .8rem; align-items: end; margin-bottom: 1.5rem; }
@media (max-width: 640px) { .import { grid-template-columns: 1fr; } }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-weight: 600; color: var(--paper-mute); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; padding: .6rem; border-bottom: 1px solid var(--line); }
.table td { padding: .7rem .6rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr.is-silent td:first-child::after { content: " · zatím nic"; color: var(--coral); font-size: .8rem; }
.table .row-actions > div { display: flex; gap: .3rem; justify-content: flex-end; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.qr-dialog { border: 0; border-radius: var(--radius); background: var(--ink-2); color: var(--paper); padding: 1.6rem; width: min(440px, 94vw); box-shadow: var(--shadow); }
.qr-dialog::backdrop { background: rgba(0,0,0,.7); }
.qr-dialog svg { width: 220px; height: 220px; margin: 0 auto 1rem; background: #fff; border-radius: 12px; padding: 10px; display: block; }
.row { display: flex; gap: .5rem; margin-top: .8rem; flex-wrap: wrap; }

/* ==========================================================================
   KINO
   ========================================================================== */
.page-kino { overflow: hidden; background: #000; }
.page-kino .grain { opacity: .09; }
.kino { position: fixed; inset: 0; outline: none; cursor: default; }
.kino.hide-cursor { cursor: none; }
.kino__stage { position: absolute; inset: 0; overflow: hidden; background: #050403; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; display: grid; }
.slide.is-on { opacity: 1; }

/* úvodní obrazovka */
.kino__start { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; text-align: center; padding: 2rem;
  background: radial-gradient(1000px 600px at 50% 40%, rgba(227,169,75,.18), transparent 60%), #0b0907; transition: opacity .8s; }
.kino__start.is-gone { opacity: 0; pointer-events: none; }
.kino__start .lead { margin-inline: auto; }
.kino__start .check { margin-top: 1.4rem; display: flex; justify-content: center; }
.keys { margin-top: 2rem; color: var(--paper-mute); font-size: .85rem; line-height: 2.2; }

/* HUD */
.kino__hud { position: absolute; left: 0; right: 0; bottom: 0; z-index: 20; padding: 2.5rem 1.5rem 1rem; background: linear-gradient(transparent, rgba(0,0,0,.75));
  transition: opacity .5s; }
.kino.hud-off .kino__hud { opacity: 0; }
.kino__progress { height: 3px; background: rgba(255,255,255,.15); border-radius: 2px; overflow: hidden; margin-bottom: .7rem; position: relative; }
.kino__progress i { position: absolute; inset: 0 auto 0 0; background: var(--gold); width: 0; }
.kino__progress b { position: absolute; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,.5); }
.kino__controls { display: flex; align-items: center; gap: .4rem; }
.kino__controls button { background: rgba(255,255,255,.08); border: 0; width: 40px; height: 40px; border-radius: 50%; font-size: 1rem; }
.kino__controls button:hover { background: rgba(255,255,255,.18); }
.kino__controls .spacer { flex: 1; }
.kino__chapter { margin-left: .8rem; font: italic 400 1rem var(--serif); color: var(--paper-dim); }

/* typy slidů */
.s-title { place-items: center; text-align: center; background: radial-gradient(900px 500px at 50% 50%, rgba(227,169,75,.14), transparent 70%); }
.s-title__count { font: 200 clamp(6rem, 22vw, 18rem)/.9 var(--serif); font-variant-numeric: tabular-nums; letter-spacing: -.04em;
  background: linear-gradient(180deg, var(--paper), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.s-title__name { font: italic 300 clamp(2rem, 6vw, 5rem)/1 var(--serif); color: var(--gold-2); opacity: 0; transform: translateY(20px); transition: all 1.4s var(--ease) .2s; }
.s-title__sub { color: var(--paper-dim); font-size: clamp(1rem, 1.8vw, 1.4rem); margin-top: 1.5rem; opacity: 0; transition: opacity 1.2s 1s; }
.s-title.is-done .s-title__name, .s-title.is-done .s-title__sub { opacity: 1; transform: none; }

.s-chapter { place-items: center; text-align: center; background: #070605; }
.s-chapter__num { font: italic 200 clamp(5rem, 20vw, 16rem)/1 var(--serif); color: transparent; -webkit-text-stroke: 1.5px var(--gold); letter-spacing: -.03em;
  animation: chapterIn 2.5s var(--ease) both; }
.s-chapter__label { font: 400 clamp(1.4rem, 3vw, 2.4rem) var(--serif); margin-top: .5rem; animation: fadeUp 1.2s .6s both; }
.s-chapter__meta { color: var(--paper-mute); margin-top: .8rem; letter-spacing: .2em; text-transform: uppercase; font-size: .8rem; animation: fadeUp 1.2s 1s both; }
@keyframes chapterIn { from { opacity: 0; letter-spacing: .2em; filter: blur(10px); } }

.s-photo { grid-template-columns: 1fr; }
.s-photo__bg { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(40px) brightness(.45) saturate(1.2); transform: scale(1.1); }
.s-photo__frame { position: absolute; inset: 0; display: grid; place-items: center; }
.s-photo__img { max-width: 100%; max-height: 100%; object-fit: contain; animation: kenburns var(--dur, 6s) linear both; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.s-photo__img.cover { width: 100%; height: 100%; object-fit: cover; }
.s-photo__img.layer { position: absolute; opacity: 0; transition: opacity 1s; }
.s-photo__img.layer.is-on { opacity: 1; }
@keyframes kenburns { from { transform: scale(var(--s0, 1.0)) translate(var(--x0, 0), var(--y0, 0)); } to { transform: scale(var(--s1, 1.12)) translate(var(--x1, 0), var(--y1, 0)); } }

.caption { position: absolute; left: clamp(1.5rem, 5vw, 5rem); bottom: clamp(5rem, 11vh, 8rem); right: clamp(1.5rem, 5vw, 5rem); max-width: 52rem; z-index: 2;
  text-shadow: 0 2px 20px rgba(0,0,0,.8); }
.caption__year { font: italic 400 clamp(1rem, 1.8vw, 1.5rem) var(--serif); color: var(--gold-2); margin-bottom: .3rem; }
.caption__title { font: 400 clamp(1.8rem, 4vw, 3.4rem)/1.05 var(--serif); margin: 0 0 .6rem; letter-spacing: -.01em; }
.caption__text { font-size: clamp(1rem, 1.7vw, 1.4rem); line-height: 1.5; color: rgba(243,234,216,.9); margin: 0 0 .8rem; max-width: 46rem; }
.caption__by { font: italic 400 clamp(1.1rem, 2vw, 1.7rem) var(--serif); color: var(--paper); }
.caption__by::before { content: "— "; color: var(--gold); }
.caption > * { animation: fadeUp 1s var(--ease) both; }
.caption > *:nth-child(2) { animation-delay: .25s; } .caption > *:nth-child(3) { animation-delay: .5s; } .caption > *:nth-child(4) { animation-delay: .8s; }
.s-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.78)); pointer-events: none; }

.s-split { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); background: #0b0907; }
.s-split .s-photo__frame { position: relative; }
.s-split__text { padding: clamp(2rem, 6vw, 6rem); display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 2; }
.s-split .caption { position: static; max-width: none; text-shadow: none; }
.s-split::after { display: none; }
@media (max-aspect-ratio: 1/1) { .s-split { grid-template-columns: 1fr; grid-template-rows: 1fr auto; } }

.s-text { place-items: center; padding: clamp(2rem, 8vw, 10rem); background: radial-gradient(1000px 600px at 20% 20%, rgba(229,103,75,.12), transparent 60%),
  radial-gradient(900px 600px at 90% 90%, rgba(227,169,75,.12), transparent 60%), #0b0907; }
.s-text__inner { max-width: 60rem; }
.s-text__mark { font: italic 300 10rem/0.5 var(--serif); color: var(--gold); opacity: .5; display: block; height: 4rem; }
.s-text__body { font: 300 clamp(1.4rem, 2.9vw, 2.7rem)/1.38 var(--serif); letter-spacing: -.005em; white-space: pre-line; }
.s-text__body.is-long { font-size: clamp(1.1rem, 2vw, 1.8rem); }
.s-text__body .w { opacity: 0; transition: opacity .5s; }
.s-text__body .w.is-on { opacity: 1; }
.s-text .caption { position: static; margin-top: 2rem; text-shadow: none; }

.s-video { place-items: center; background: #000; }
.s-video video { max-width: 100%; max-height: 100%; }
.s-audio__viz { position: absolute; right: clamp(2rem, 6vw, 6rem); top: clamp(2rem, 6vw, 5rem); display: flex; gap: 5px; align-items: center; height: 60px; z-index: 3; }
.s-audio__viz i { width: 6px; border-radius: 3px; background: var(--gold); height: 20%; transition: height .08s; }
.s-audio__label { position: absolute; right: clamp(2rem, 6vw, 6rem); top: calc(clamp(2rem, 6vw, 5rem) + 70px); font-size: .85rem; color: var(--gold-2); letter-spacing: .15em; text-transform: uppercase; z-index: 3; }

.guess-hidden .caption__by { filter: blur(14px); opacity: .6; }
.guess-badge { position: absolute; top: 2rem; left: 50%; transform: translateX(-50%); z-index: 5; padding: .6em 1.4em; border-radius: 999px; background: var(--gold); color: var(--ink);
  font-weight: 700; animation: pop .4s var(--ease); box-shadow: 0 10px 30px rgba(0,0,0,.5); }

.s-finale { place-items: center; text-align: center; overflow: hidden; background: #070605; }
.s-finale__mosaic { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--cols, 10), 1fr); grid-auto-rows: 1fr; opacity: .7; }
.s-finale__mosaic span { background-size: cover; background-position: center; opacity: 0; animation: tileIn .8s var(--ease) forwards; }
@keyframes tileIn { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
.s-finale__inner { position: relative; z-index: 2; padding: 2rem; }
.s-finale__title { font: italic 300 clamp(3rem, 10vw, 9rem)/1 var(--serif); color: var(--gold-2); text-shadow: 0 10px 50px rgba(0,0,0,.8); }
.s-finale__sub { font-size: clamp(1rem, 2vw, 1.6rem); color: var(--paper); margin-top: 1rem; text-shadow: 0 2px 20px #000; }
.s-finale::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(circle at 50% 50%, rgba(7,6,5,.72), rgba(7,6,5,.35) 80%); }

.kino__overview { position: absolute; inset: 0; z-index: 40; background: rgba(8,7,6,.96); overflow-y: auto; padding: 2rem clamp(1rem, 4vw, 3rem); }
.kino__overview-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.kino__overview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .8rem; }
.ov { position: relative; aspect-ratio: 16/10; border-radius: 10px; overflow: hidden; background: var(--ink-3) center/cover; border: 0; text-align: left; padding: 0; }
.ov span { position: absolute; inset: auto 0 0 0; padding: .6rem .7rem; font-size: .8rem; background: linear-gradient(transparent, rgba(0,0,0,.85)); }
.ov span b { display: block; font: 500 .95rem var(--serif); }
.ov.is-current { outline: 3px solid var(--gold); }
.ov--chapter { display: grid; place-items: center; background: #0b0907; font: italic 300 2rem var(--serif); color: var(--gold); box-shadow: inset 0 0 0 1px var(--line); }
