:root {
  color-scheme: dark;
  --ink: #f7f1e7;
  --muted: #b5c4b7;
  --paper: #10271c;
  --cream: #17382a;
  --line: #315b47;
  --pine: #0b1e15;
  --red: #da5d6b;
  --gold: #e3be69;
  --shadow: 0 14px 34px rgba(0, 0, 0, .22);
}
* { box-sizing: border-box; }
* { scrollbar-width: none; -ms-overflow-style: none; }
*::-webkit-scrollbar { width: 0; height: 0; display: none; }
[hidden] { display: none !important; }
html { min-height: 100%; scroll-behavior: smooth; background: #08110e; color-scheme: dark; }
html.dialog-open, body.dialog-open { overflow: hidden; overscroll-behavior: none; }
body { position: relative; min-height: 100vh; margin: 0; overflow-x: hidden; background: radial-gradient(circle at 50% -10%, #286044 0, var(--paper) 46%, #08110e 100%); color: var(--ink); font-family: "DM Sans", system-ui, sans-serif; font-size: 16px; line-height: 1.35; }
body::before, body::after { position: fixed; z-index: -1; inset: 0; pointer-events: none; content: ""; }
body::before { opacity: .25; background: radial-gradient(circle at 50% -12%, rgba(54,126,87,.72), transparent 48%), radial-gradient(circle at 8% 74%, rgba(227,190,105,.13), transparent 28%); }
body::after { opacity: .16; background: radial-gradient(circle at 82% 12%, rgba(208,91,103,.38), transparent 23%), radial-gradient(circle at 16% 88%, rgba(215,180,103,.16), transparent 25%); animation: winter-glow 15s ease-in-out infinite alternate; }
body > * { position: relative; z-index: 1; }
#snowCanvas { position: fixed; z-index: 0 !important; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .78; }
button, input, dialog { font: inherit; color-scheme: dark; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.topbar, .page { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: -.01em; }
.brand strong { color: var(--red); }
.brand-mark { display: block; width: 32px; height: 32px; border: 0; border-radius: 9px; box-shadow: 0 5px 14px rgba(0,0,0,.22); }
.view-nav { display: flex; gap: 16px; }
.view-nav-button { padding: 7px 0; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font-size: 12px; font-weight: 800; transition: color .2s ease, border-color .2s ease; }
.view-nav-button:hover, .view-nav-button.is-active { border-bottom-color: var(--red); color: var(--ink); }
.jump-button:hover, .reset-button:hover { color: var(--red); }

.intro { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding: 52px 0 35px; }
.eyebrow, .section-label { display: block; margin: 0 0 10px; color: var(--red); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.category-title { white-space: nowrap; }
.category-title--animaky, .category-name--animaky { font-family: "DynaPuff", "Caveat", cursive; font-weight: 600; letter-spacing: -.055em; }
.category-drop-letter { display: inline-block; transform: translateY(.16em) rotate(-7deg); transform-origin: 50% 0; }
.category-title--ceskoslovenske, .category-name--ceskoslovenske { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 700; letter-spacing: -.04em; }
.category-title--americke, .category-name--americke { font-family: "Bebas Neue", "Arial Narrow", sans-serif; font-weight: 400; letter-spacing: .035em; }
.category-title--europske, .category-name--europske { font-family: "Playfair Display", Georgia, serif; font-style: italic; font-weight: 700; letter-spacing: -.04em; }
.category-title--kultove, .category-name--kultove { font-family: "Space Mono", "Courier New", monospace; font-weight: 700; letter-spacing: -.06em; }
h1, h2 { margin: 0; font-family: "Playfair Display", Georgia, serif; letter-spacing: -.045em; line-height: .98; }
h1 { max-width: 760px; font-size: clamp(38px, 5.5vw, 60px); }
h1 em { color: var(--red); font-style: normal; }
h2 { font-size: clamp(26px, 4vw, 38px); }
h3 { margin: 0; font-size: 21px; letter-spacing: -.025em; }
.intro-note { margin: 0 0 5px; color: var(--muted); font-size: 14px; line-height: 1.55; text-align: right; }

.hero-stats { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 12px; margin: 0 0 24px; }
.hero-stat { min-height: 128px; padding: 18px 18px 20px; overflow: visible; border: 1px solid rgba(61,102,85,.7); border-radius: 12px; background: linear-gradient(135deg, rgba(23,56,42,.97), rgba(13,31,22,.88)); box-shadow: 0 12px 28px rgba(0,0,0,.16); animation: rise-in .5s both; }
.hero-stat:nth-child(2) { animation-delay: .05s; }
.hero-stat:nth-child(3) { animation-delay: .1s; }
.hero-stat-leader { border-color: rgba(208,91,103,.6); background: linear-gradient(135deg, rgba(80,31,42,.7), rgba(20,40,33,.92)); }
.hero-stat-kicker { display: block; margin-bottom: 11px; color: var(--gold); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.hero-stat strong { display: block; overflow: visible; color: var(--ink); font-family: "Playfair Display", Georgia, serif; font-size: clamp(20px, 2.6vw, 29px); letter-spacing: -.035em; line-height: 1.12; overflow-wrap: anywhere; }
.hero-stat small { display: block; margin-top: 10px; color: var(--muted); font-size: 11px; line-height: 1.35; }

.category-switcher { border-bottom: 1px solid var(--line); }
.category-tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; }
.category-tab { position: relative; padding: 20px 17px 16px; border: 0; border-bottom: 3px solid transparent; border-radius: 12px 12px 0 0; background: transparent; color: var(--muted); text-align: left; transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease; }
.category-tab strong { display: flex; align-items: center; justify-content: space-between; color: inherit; font-size: clamp(19px, 1.7vw, 24px); line-height: 1; white-space: nowrap; }
.category-name { display: inline-flex; flex: 0 0 auto; align-items: center; min-width: 0; white-space: nowrap; }
.category-name--kultove { font-size: .92em; }
.category-name--europske { font-size: .96em; }
.category-tab small { display: block; margin-top: 8px; color: inherit; font-size: 10px; letter-spacing: .02em; }
.category-tab:hover { color: var(--ink); transform: translateY(-2px); }
.category-tab.is-active { border-bottom-color: var(--red); color: var(--ink); background: linear-gradient(180deg, rgba(35,77,55,.72), rgba(16,39,28,.08)); }
.category-tab--animaky.is-active { border-bottom-color: var(--gold); }
.category-tab--ceskoslovenske.is-active { border-bottom-color: var(--red); }
.category-tab--americke.is-active { border-bottom-color: #5da2d0; }
.category-tab--europske.is-active { border-bottom-color: #8fc78d; }
.category-tab--kultove.is-active { border-bottom-color: var(--gold); }
.category-tab.is-voted { color: #a8c7b1; }
.category-tab.is-voted.is-active { border-bottom-color: #397457; }
.category-check { color: #8dc49b; font-size: 15px; line-height: 1; }

.preview-section, .builder-section { padding: 42px 0 68px; }
.builder-section { padding-top: 12px; padding-bottom: 76px; }
.section-topline { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-topline .section-label { margin-bottom: 7px; }
.vote-total { color: var(--muted); font-size: 12px; }
.suggestion-panel { margin: 0 0 80px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.suggestion-panel summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; list-style: none; cursor: pointer; font-family: "Playfair Display", Georgia, serif; font-size: clamp(18px, 2.4vw, 25px); font-weight: 700; }
.suggestion-panel summary::-webkit-details-marker { display: none; }
.suggestion-panel summary > span { flex: none; color: var(--gold); font-family: "DM Sans", system-ui, sans-serif; font-size: 12px; font-weight: 700; }
.suggestion-panel[open] summary > span { color: var(--muted); }
.suggestion-form { max-width: 780px; padding: 4px 0 26px; }
.suggestion-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.suggestion-fields label { display: grid; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
.suggestion-fields input, .suggestion-fields select { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; outline: 0; background: #0c1b16; color: var(--ink); font: inherit; font-size: 13px; color-scheme: dark; }
.suggestion-fields input:focus, .suggestion-fields select:focus { border-color: var(--gold); }
.suggestion-fields input::placeholder { color: #8da495; }
.suggestion-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 16px; }
.suggestion-bottom p { margin: 0; color: #b9d5bd; font-size: 12px; }
.suggestion-trap { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.preview-grid { display: grid; grid-template-columns: 1fr; gap: 58px; }
.preview-card--animaky, .preview-card--ceskoslovenske, .preview-card--americke, .preview-card--europske, .preview-card--kultove { grid-column: 1 / -1; }
.preview-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 0 10px; min-width: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; animation: rise-in .48s both; }
.preview-card:nth-child(2) { animation-delay: .04s; }
.preview-card:nth-child(3) { animation-delay: .08s; }
.preview-card:nth-child(4) { animation-delay: .12s; }
.preview-card-head { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 77px; margin-bottom: 17px; padding-bottom: 15px; border-bottom: 1px solid rgba(183,213,185,.22); }
.preview-card-head > div { min-width: 0; }
.preview-card h3 { font-size: clamp(28px, 3vw, 38px); line-height: 1.1; }
.preview-card h3.category-title--kultove { font-size: clamp(21px, 1.75vw, 27px); letter-spacing: -.09em; }
.category-votes { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }
.jump-button, .reset-button { flex: none; padding: 8px 12px; border: 1px solid rgba(227,190,105,.44); border-radius: 999px; background: rgba(227,190,105,.06); color: var(--gold); font-size: 12px; font-weight: 700; transition: background .2s ease, color .2s ease, transform .2s ease; }
.jump-button:hover { background: var(--gold); color: #14271b; transform: translateX(2px); }
.top-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; min-height: 0; }
.top-three-row { position: relative; display: block; aspect-ratio: 2 / 3; overflow: visible; width: 100%; height: auto; padding: 0; border: 1px solid rgba(240,235,218,.15); border-radius: 9px; background: #0b1713; color: var(--ink); text-align: left; transition: border-color .2s ease, transform .25s ease, box-shadow .25s ease; }
.top-three-row:hover { border-color: rgba(227,190,105,.64); box-shadow: 0 14px 28px rgba(0,0,0,.3); transform: translateY(-4px); }
.top-three-row:hover .top-three-title strong { color: var(--red); }
.place { color: transparent; font-family: "Playfair Display", Georgia, serif; font-size: clamp(42px, 4.4vw, 56px); font-weight: 800; line-height: 1.2; padding: .05em; background: linear-gradient(155deg, #fff8dc 12%, #e8c16d 52%, #ae713d 95%); background-clip: text; -webkit-background-clip: text; filter: drop-shadow(0 2px 4px rgba(0,0,0,.9)) drop-shadow(0 0 10px rgba(0,0,0,.55)); }
.top-three-row img { display: block; width: 100%; height: 100%; border-radius: 8px; object-fit: cover; background: #0b1713; transition: filter .2s ease; }
.top-three-row:hover img { filter: saturate(1.08); }
.top-three-title { position: absolute; z-index: 1; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 5px; min-width: 0; padding: 22px 8px 10px; border-radius: 0 0 8px 8px; background: linear-gradient(to top, rgba(5,15,11,.95) 0%, rgba(5,15,11,.78) 54%, rgba(5,15,11,0) 100%); backdrop-filter: blur(2px); }
.top-three-copy { min-width: 0; }
.top-three-title strong { display: block; overflow: visible; font-family: "Playfair Display", Georgia, serif; font-size: 15px; line-height: 1.08; white-space: normal; }
.top-three-title small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.preview-card .top-three-title strong { font-size: clamp(14px, 1.2vw, 18px); }
.preview-card .top-three-title small { margin-top: 6px; font-size: 11px; }
.top-three--more { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; }
.top-three--more img { filter: saturate(.68) brightness(.78); }
.top-three--more .top-three-row:hover img { filter: saturate(1) brightness(1); }
.top-three--more .top-three-title { padding: 19px 7px 7px; }
.top-three--more .top-three-title strong { font-size: clamp(10px, .9vw, 13px); line-height: 1.05; }
.top-three--more .top-three-title small { margin-top: 3px; font-size: 9px; }
.top-three--more .place { font-size: clamp(29px, 3vw, 38px); }
.top-three--more .top-three-score { font-size: 10px; }
.top-three-row .place { position: static; z-index: 2; align-self: end; }
.top-three-row .top-three-score { position: absolute; z-index: 2; top: 9px; right: 9px; color: #fff; font-size: 11px; text-shadow: 0 1px 7px rgba(0,0,0,.8); }

.builder-topline { margin-top: 24px; }
.rules-note { display: flex; align-items: center; gap: 9px; margin: 0 0 13px; color: var(--muted); font-size: 11px; }
.rules-note span { color: var(--gold); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.rules-note strong { color: var(--ink); font-weight: 700; }
.tier-legend { margin: 0 0 15px; padding: 12px 14px; border: 1px solid rgba(60,91,76,.72); border-radius: 10px; background: rgba(20,40,33,.62); }
.tier-legend-title { display: block; margin-bottom: 9px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.tier-legend-items { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; }
.tier-legend-item { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--muted); font-size: 11px; line-height: 1.25; }
.tier-legend-item b { display: grid; flex: 0 0 24px; place-items: center; width: 24px; height: 24px; border-radius: 5px; color: #fff; font-family: "Playfair Display", serif; font-size: 15px; }
.tier-legend-s b { background: var(--red); }
.tier-legend-a b { background: var(--gold); color: #142821; }
.tier-legend-b b { background: #397457; }
.tier-legend-c b { background: #7d9b87; color: #142821; }
.tier-legend-d b { background: #8c7771; }
.builder-workspace { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr); align-items: start; gap: 22px; }
.tier-panel { min-width: 0; position: sticky; top: 20px; }
.library-panel { min-width: 0; }
.board { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--cream); box-shadow: var(--shadow); }
.tier-row { display: grid; grid-template-columns: 68px 1fr; min-height: 90px; border-bottom: 1px solid #29443a; }
.tier-row:last-child { border-bottom: 0; }
.tier-label { display: grid; place-items: center; color: #fff; }
.tier-label b { font-family: "Playfair Display", serif; font-size: 35px; line-height: 1; }
.tier-s .tier-label { background: var(--red); }
.tier-a .tier-label { background: var(--gold); }
.tier-b .tier-label { background: #397457; }
.tier-c .tier-label { background: #7d9b87; }
.tier-d .tier-label { background: #8c7771; }
.tier-dropzone { display: flex; align-items: center; align-content: center; flex-wrap: wrap; gap: 10px; min-height: 90px; padding: 11px 14px; background: rgba(10,23,19,.45); transition: background .2s, box-shadow .2s; }
.tier-dropzone.is-over { background: #233d32; box-shadow: inset 0 0 0 3px rgba(208,91,103,.25); }
.tier-dropzone:empty::after { color: #71847a; font-size: 11px; line-height: 1.25; }
.tier-dropzone[data-tier="S"]:empty::after { content: "Bez toho sa Vianoce nerátajú"; }
.tier-dropzone[data-tier="A"]:empty::after { content: "Vianočná istota"; }
.tier-dropzone[data-tier="B"]:empty::after { content: "Dobré, ale nie povinná jazda"; }
.tier-dropzone[data-tier="C"]:empty::after { content: "Keď nič lepšie nie je"; }
.tier-dropzone[data-tier="D"]:empty::after { content: "Nechcem to už vidieť"; }
.film-card { position: relative; width: 106px; padding: 0; overflow: hidden; border: 1px solid #345247; border-radius: 5px; background: #1a3028; box-shadow: 0 5px 12px rgba(0,0,0,.2); text-align: left; transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s ease, outline .16s; }
.film-card:hover { transform: translateY(-3px); box-shadow: 0 10px 18px rgba(0,0,0,.3); }
.film-card.is-selected { outline: 3px solid var(--gold); outline-offset: 2px; }
.film-card-main { position: relative; display: block; overflow: hidden; width: 100%; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; }
.film-card img { display: block; aspect-ratio: 2 / 3; width: 100%; height: auto; object-fit: cover; background: #0b1713; }
.card-meta { position: absolute; z-index: 1; right: 0; bottom: 0; left: 0; display: block; padding: 7px 6px 8px; background: linear-gradient(to top, rgba(5,15,11,.88) 0%, rgba(5,15,11,.62) 56%, rgba(5,15,11,0) 100%); backdrop-filter: blur(4px); }
.film-card strong { display: block; overflow: visible; color: var(--ink); font-family: "Playfair Display", Georgia, serif; font-size: 13px; line-height: 1.08; overflow-wrap: anywhere; }
.film-card small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; }
.film-info-button { position: absolute; top: 5px; right: 5px; display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 1px solid rgba(247,241,231,.66); border-radius: 50%; background: rgba(8,17,14,.72); color: #fff; font-family: Georgia, serif; font-size: 12px; font-weight: 700; line-height: 1; opacity: .88; transition: background .2s ease, color .2s ease, transform .2s ease; }
.film-info-button:hover, .film-info-button:focus-visible { background: var(--gold); color: #142821; transform: scale(1.08); }
.film-library .film-card { width: 106px; }
.tier-dropzone .film-card { width: 88px; }
.tier-dropzone .film-card img { height: 102px; }

.library-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 12px; }
.search-box { display: flex; align-items: center; gap: 8px; width: 190px; padding: 8px 0; border-bottom: 1px solid var(--muted); color: var(--muted); }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; }
.film-library { display: flex; flex-wrap: wrap; gap: 13px; padding-bottom: 25px; }
.library-panel .film-library { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.library-panel .film-card { width: 100%; }
.empty-library { margin: 0; padding: 15px 0 25px; color: var(--muted); }
.submit-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.submit-row span.is-active { color: var(--red); font-weight: 700; }
.primary-button { border: 0; border-radius: 7px; padding: 12px 17px; background: var(--red); color: #fff; font-size: 12px; font-weight: 800; box-shadow: 0 7px 18px rgba(208,91,103,.15); transition: background .2s ease, transform .2s ease, box-shadow .2s ease; }
.primary-button:hover { background: #e06a75; box-shadow: 0 10px 24px rgba(208,91,103,.27); transform: translateY(-2px); }
.primary-button:disabled { cursor: not-allowed; opacity: .48; }

.save-result { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 13px 15px; border: 1px solid #397457; border-radius: 9px; background: #18382d; color: #e3f1e6; }
.save-result[hidden] { display: none; }
.save-result-mark { display: grid; flex: 0 0 24px; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #397457; color: #fff; font-weight: 800; }
.save-result div { min-width: 0; flex: 1; }
.save-result strong, .save-result span { display: block; }
.save-result strong { font-size: 13px; }
.save-result div span { margin-top: 2px; color: #a8c7b1; font-size: 11px; }
.save-result-action { border: 0; background: transparent; color: #397457; font-size: 11px; font-weight: 800; white-space: nowrap; }
.save-result-action:hover { color: var(--red); }

.trivia-toast { position: fixed; z-index: 18; right: 24px; bottom: 24px; width: min(360px, calc(100% - 48px)); padding: 18px 20px 17px; border: 1px solid rgba(215,180,103,.52); border-radius: 13px; background: linear-gradient(145deg, rgba(20,40,33,.98), rgba(10,23,19,.98)); box-shadow: 0 18px 55px rgba(0,0,0,.42); opacity: 0; transform: translateY(12px) scale(.98); pointer-events: none; transition: opacity .24s ease, transform .24s ease; }
.trivia-toast.is-visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.trivia-close { position: absolute; top: 8px; right: 12px; border: 0; background: none; color: var(--muted); font-size: 22px; line-height: 1; }
.trivia-kicker { display: block; margin-bottom: 8px; color: var(--gold); font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.trivia-toast strong { display: block; padding-right: 20px; color: var(--ink); font-family: "Playfair Display", Georgia, serif; font-size: 20px; line-height: 1.05; }
.trivia-toast p { margin: 9px 0 11px; color: #d6e0d7; font-size: 13px; line-height: 1.45; }
.trivia-toast a { color: #b9d5bd; font-size: 11px; font-weight: 800; }
.trivia-toast a:hover, .trivia-close:hover { color: var(--red); }

.tour-layer { position: fixed; z-index: 28; inset: 0; pointer-events: none; opacity: 0; transition: opacity .22s ease; }
.tour-layer.is-visible { opacity: 1; }
.tour-hole { position: fixed; border: 1px solid rgba(227,190,105,.88); border-radius: 12px; box-shadow: 0 0 0 9999px rgba(3,10,7,.7), 0 0 0 5px rgba(227,190,105,.16); transition: top .24s ease, left .24s ease, width .24s ease, height .24s ease; }
.tour-card { position: fixed; right: 24px; bottom: 24px; width: min(390px, calc(100% - 48px)); padding: 19px 20px 17px; border: 1px solid rgba(227,190,105,.58); border-radius: 13px; background: linear-gradient(145deg, rgba(23,56,42,.99), rgba(10,30,21,.99)); box-shadow: 0 20px 60px rgba(0,0,0,.48); pointer-events: auto; }
.tour-progress { display: block; margin-bottom: 8px; color: var(--gold); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.tour-card strong { display: block; color: var(--ink); font-family: "Playfair Display", Georgia, serif; font-size: 23px; line-height: 1.05; }
.tour-card p { margin: 9px 0 16px; color: #d6e3d8; font-size: 13px; line-height: 1.45; }
.tour-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tour-skip { padding: 8px 0; border: 0; background: transparent; color: var(--muted); font-size: 11px; font-weight: 800; }
.tour-skip:hover { color: var(--ink); }
.tour-next { margin-left: auto; }

.name-dialog { position: fixed; top: 50%; left: 50%; width: min(390px, calc(100% - 30px)); max-height: calc(100dvh - 28px); margin: 0; overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: 0; color: var(--ink); background: var(--cream); box-shadow: 0 24px 90px rgba(0,0,0,.65); transform: translate(-50%, -50%); }
.name-dialog::backdrop { background: rgba(3,10,7,.72); backdrop-filter: blur(4px); }
.name-dialog form { position: relative; padding: 34px; }
.name-dialog h2 { margin-bottom: 19px; font-size: 34px; }
.dialog-close { position: absolute; top: 14px; right: 17px; border: 0; background: none; color: var(--muted); font-size: 25px; line-height: 1; }
.name-dialog input { width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 6px; outline: 0; color: var(--ink); background: #0c1b16; }
.name-dialog input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(178,61,76,.1); }
.dialog-submit { width: 100%; margin-top: 12px; }
.dialog-status { min-height: 17px; margin: 9px 0 0; color: var(--red); font-size: 11px; }
.film-dialog { position: fixed; top: 50%; left: 50%; width: min(620px, calc(100% - 30px)); max-height: calc(100dvh - 28px); margin: 0; overflow: auto; padding: 0; border: 1px solid var(--line); border-radius: 15px; color: var(--ink); background: var(--cream); box-shadow: 0 24px 90px rgba(0,0,0,.65); transform: translate(-50%, -50%); }
.film-dialog::backdrop { background: rgba(3,10,7,.74); backdrop-filter: blur(5px); }
.film-dialog-shell { position: relative; padding: 27px; }
.film-detail { display: grid; grid-template-columns: 132px 1fr; gap: 22px; align-items: center; }
.film-detail-poster { overflow: hidden; border-radius: 7px; box-shadow: 0 12px 24px rgba(0,0,0,.3); }
.film-detail-poster img { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; background: #0b1713; }
.film-detail-copy h2 { margin-bottom: 12px; font-size: clamp(27px, 5vw, 41px); }
.film-detail-copy p { margin: 0; color: #d9e0d9; font-size: 14px; line-height: 1.6; }
.celebration { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; overflow: hidden; background: rgba(3,10,7,.5); opacity: 0; pointer-events: none; transition: opacity .28s ease; }
.celebration::before, .celebration::after { content: "✦"; position: absolute; color: var(--gold); font-size: 24px; opacity: 0; }
.celebration.is-visible::before { animation: float-star 1.1s ease-out both; }
.celebration.is-visible::after { animation: float-star 1.1s .18s ease-out both; color: var(--red); }
.celebration.is-visible { opacity: 1; }
.celebration-card { display: grid; justify-items: center; gap: 7px; min-width: 190px; padding: 24px 30px; border: 1px solid #397457; border-radius: 16px; background: #18382d; box-shadow: 0 22px 70px rgba(0,0,0,.42); transform: translateY(10px) scale(.94); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.celebration.is-visible .celebration-card { transform: translateY(0) scale(1); }
.celebration-star { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid rgba(215,180,103,.55); border-radius: 50%; color: var(--gold); font-size: 29px; animation: sparkle 1s ease-in-out infinite alternate; }
.celebration-card strong { font-family: "Playfair Display", Georgia, serif; font-size: 25px; }
.celebration-card > small { color: #b9d5bd; font-size: 11px; }
.celebration-card > span:last-child { color: #b9d5bd; font-size: 12px; }
@keyframes sparkle { from { transform: rotate(-8deg) scale(.9); } to { transform: rotate(8deg) scale(1.1); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float-star { 0% { opacity: 0; transform: translate(0, 20px) scale(.6); } 35% { opacity: .8; } 100% { opacity: 0; transform: translate(72px, -90px) scale(1.3); } }
@keyframes winter-glow { from { opacity: .12; transform: scale(1); } to { opacity: .24; transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; } }
@media (max-width: 850px) {
  .preview-grid { grid-template-columns: 1fr; gap: 42px; }
  .preview-card:nth-child(1), .preview-card:nth-child(2), .preview-card:nth-child(3), .preview-card:nth-child(4), .preview-card:nth-child(5) { grid-column: 1 / -1; }
  .preview-card h3 { font-size: clamp(23px, 3vw, 32px); }
  .preview-card h3.category-title--kultove { font-size: clamp(17px, 2.25vw, 22px); }
  .top-three--more { gap: 10px; padding-inline: 0; }
  .builder-workspace { grid-template-columns: 1fr; }
  .tier-panel { position: static; }
}

@media (max-width: 600px) {
  .suggestion-panel { margin-bottom: 55px; }
  .suggestion-panel summary { align-items: start; flex-direction: column; gap: 5px; }
  .suggestion-fields { grid-template-columns: 1fr; }
  .suggestion-bottom { align-items: stretch; flex-direction: column; gap: 12px; }
  .topbar, .page { width: min(100% - 28px, 520px); }
  .topbar { padding: 17px 0; }
  .view-nav { gap: 12px; }
  .view-nav-button { font-size: 11px; }
  .intro { align-items: start; flex-direction: column; gap: 18px; padding: 42px 0 30px; }
  h1 { font-size: clamp(38px, 12vw, 58px); }
  .intro-note { text-align: left; }
  .hero-stats { grid-template-columns: 1fr; gap: 8px; }
  .hero-stat { min-height: auto; padding: 15px 16px; }
  .category-tabs { display: flex; overflow-x: auto; margin-right: -14px; padding-right: 14px; }
  .category-tab { min-width: 166px; padding: 18px 14px 15px; }
  .category-tab strong { font-size: 19px; }
  .preview-card h3 { font-size: 26px; }
  .preview-card h3.category-title--kultove { font-size: 21px; }
  .tier-legend-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .builder-workspace { display: flex; flex-direction: column; gap: 18px; align-items: stretch; }
  .tier-panel { order: 2; position: static; width: 100%; }
  .library-panel { order: 1; position: static; width: 100%; max-height: none; overflow: visible; padding-left: 0; border-left: 0; }
  .library-panel .film-library { display: flex; flex-wrap: nowrap; gap: 10px; overflow-x: auto; padding: 0 2px 8px; scroll-snap-type: x proximity; }
  .library-panel .film-card { flex: 0 0 94px; width: 94px; scroll-snap-align: start; }
  .library-panel .film-card img { height: auto; aspect-ratio: 2 / 3; }
  .library-panel .film-card strong { font-size: 10px; line-height: 1.06; }
  .film-card-main { position: relative; overflow: hidden; }
  .film-card img { height: auto; aspect-ratio: 2 / 3; }
  .card-meta { padding: 6px 6px 7px; background: linear-gradient(to top, rgba(5,15,11,.88) 0%, rgba(5,15,11,.62) 56%, rgba(5,15,11,0) 100%); backdrop-filter: blur(4px); }
  .film-card strong { font-size: 11px; line-height: 1.06; }
  .film-card small { margin-top: 4px; font-size: 8px; }
  .library-bar { display: flex; margin-top: 0; }
  .library-bar h3 { margin-bottom: 8px; font-size: 16px; }
  .search-box { width: 100%; }
  .tier-dropzone { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); align-items: start; gap: 8px; padding: 8px; }
  .tier-dropzone .film-card { width: 100%; min-width: 0; }
  .tier-dropzone .film-card img { height: auto; aspect-ratio: 2 / 3; }
  .tier-dropzone .card-meta { padding: 3px; }
  .tier-dropzone .film-card strong { display: -webkit-box; overflow: hidden; font-size: 10px; line-height: 1.04; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .tier-dropzone .film-card small { margin-top: 3px; font-size: 8px; }
  .tier-dropzone .film-info-button { top: 3px; right: 3px; width: 16px; height: 16px; font-size: 10px; }
  .tier-dropzone .film-card img { height: auto; aspect-ratio: 2 / 3; }
  .tier-dropzone .card-meta { padding: 5px 4px 4px; }
  .tier-dropzone .film-card strong { font-size: 10px; }
  .tier-dropzone .film-card small { font-size: 7px; }
  .top-three { flex: none; }
  .top-three-row, .top-three--more .top-three-row { height: auto; aspect-ratio: 2 / 3; min-height: 0; }
  .top-three-row img { width: 100%; height: 100%; border-radius: 7px; }
  .top-three-title { padding: 18px 7px 8px; background: linear-gradient(to top, rgba(5,15,11,.94) 0%, rgba(5,15,11,.7) 55%, rgba(5,15,11,0) 100%); backdrop-filter: blur(2px); }
  .top-three-title strong { overflow: visible; font-size: 14px; line-height: 1.06; white-space: normal; }
  .top-three-title small { margin-top: 4px; font-size: 9px; }
  .top-three-row .place { font-size: 38px; }
  .top-three--more .place { font-size: 29px; }
  .top-three-row .top-three-score { position: absolute; z-index: 2; top: 9px; right: 9px; color: #fff; text-shadow: 0 1px 7px rgba(0,0,0,.8); }
  .preview-section, .builder-section { padding: 42px 0; }
  .preview-grid { grid-template-columns: 1fr; gap: 38px; }
  .preview-card { grid-template-columns: 1fr; padding: 0; }
  .preview-card-head { min-height: 62px; margin-bottom: 12px; padding-bottom: 12px; }
  .preview-card .top-three-title strong { font-size: clamp(12px, 3.5vw, 15px); }
  .preview-card .top-three-title small { font-size: 10px; }
  .top-three--more { gap: 10px; margin-top: 8px; padding-inline: 0; }
  .top-three--more .top-three-title strong { font-size: 11px; }
  .top-three--more .top-three-title small { font-size: 9px; }
  .section-topline { align-items: start; }
  .builder-section { padding-bottom: 72px; }
  .tour-card { right: 14px; bottom: 14px; width: calc(100% - 28px); padding: 17px 17px 15px; }
  .tour-card strong { font-size: 21px; }
  .trivia-toast { right: 14px; bottom: 14px; width: calc(100% - 28px); padding: 16px 17px 15px; }
  .trivia-toast strong { font-size: 19px; }
  .tier-row { grid-template-columns: 52px 1fr; min-height: 86px; }
  .tier-dropzone { min-height: 86px; padding: 10px 9px; gap: 7px; }
  .tier-label b { font-size: 30px; }
  .film-card { width: 69px; }
  .film-card img { height: auto; aspect-ratio: 2 / 3; }
  .tier-dropzone .film-card { width: 100%; }
  .tier-dropzone .film-card img { height: auto; aspect-ratio: 2 / 3; }
  .film-library { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 8px; }
  .film-library .film-card { width: 100%; }
  .library-bar { margin-top: 0; }
  .library-panel .search-box { width: 100%; }
  .film-detail { grid-template-columns: 96px 1fr; gap: 15px; }
  .film-detail-copy p { font-size: 13px; line-height: 1.5; }
  .submit-row { align-items: stretch; flex-direction: column; }
  .submit-row .primary-button { width: 100%; }
}

