/* ==========================================================================
   BWI Awards – Stylesheet
   ========================================================================== */

@font-face {
  font-family: 'Instrument Serif';
  src: url('/fonts/instrument-serif-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('/fonts/instrument-serif-latin-400-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('/fonts/manrope-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --emoji: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;

  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 24px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --page: min(1120px, 100% - 2.5rem);
  --narrow: min(820px, 100% - 2.5rem);
}

[data-theme='dark'] {
  color-scheme: dark;
  --bg: #0b0a09;
  --bg-2: #100e0c;
  --surface: #151310;
  --surface-2: #1c1915;
  --surface-3: #25211c;
  --line: rgba(255, 238, 214, 0.08);
  --line-2: rgba(255, 238, 214, 0.15);
  --text: #f4ede3;
  --text-2: #c9bfb2;
  --muted: #8f8579;
  --gold: #d8b26a;
  --gold-2: #f0d39a;
  --gold-3: #f0d39a;
  --gold-ink: #1a1408;
  --gold-soft: rgba(216, 178, 106, 0.1);
  --gold-line: rgba(216, 178, 106, 0.45);
  --danger: #ef7b6c;
  --danger-soft: rgba(239, 123, 108, 0.12);
  --ok: #8fcf9a;
  --ok-soft: rgba(143, 207, 154, 0.12);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 18px 40px -24px rgba(0, 0, 0, 0.8);
  --spot: rgba(216, 178, 106, 0.13);
  --spot-2: rgba(216, 178, 106, 0.1);
  --grain-opacity: 0.05;
}

[data-theme='light'] {
  color-scheme: light;
  --bg: #f5efe5;
  --bg-2: #efe7da;
  --surface: #fffcf6;
  --surface-2: #faf4ea;
  --surface-3: #f1e8da;
  --line: rgba(40, 28, 12, 0.1);
  --line-2: rgba(40, 28, 12, 0.18);
  --text: #1b1611;
  --text-2: #3f362c;
  --muted: #74695c;
  --gold: #8c6420;
  --gold-2: #6f4d12;
  --gold-3: #6f4d12;
  --gold-ink: #fffaf0;
  --gold-soft: rgba(140, 100, 32, 0.08);
  --gold-line: rgba(140, 100, 32, 0.45);
  --danger: #b4402f;
  --danger-soft: rgba(180, 64, 47, 0.08);
  --ok: #2f7a3e;
  --ok-soft: rgba(47, 122, 62, 0.09);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 16px 34px -26px rgba(60, 40, 10, 0.45);
  --spot: rgba(196, 150, 64, 0.16);
  --spot-2: rgba(140, 100, 32, 0.08);
  --grain-opacity: 0.035;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

/* Spotlight + Filmkorn */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(60rem 34rem at 50% -12rem, var(--spot), transparent 70%),
    radial-gradient(40rem 30rem at 110% 110%, var(--spot-2), transparent 70%);
}
body::after {
  content: '';
  position: fixed;
  inset: -50%;
  pointer-events: none;
  z-index: 100;
  opacity: var(--grain-opacity);
  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='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
}

::selection {
  background: var(--gold);
  color: var(--gold-ink);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

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

[hidden] {
  display: none !important;
}

/* ------------------------------------------------------------------ Header */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background-color 0.3s, backdrop-filter 0.3s;
}
.topbar.is-scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.topbar__inner {
  width: var(--page);
  margin: 0 auto;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  margin-right: auto;
  min-width: 0;
}
.brand__mark {
  width: 34px;
  height: 34px;
  flex: none;
  color: var(--gold);
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand__name {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: 0.01em;
}
.brand__sub {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.25rem;
  white-space: nowrap;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  color: var(--text-2);
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s;
  flex: none;
}
.icon-btn:hover {
  border-color: var(--line-2);
  color: var(--text);
}
.icon-btn:active {
  transform: scale(0.95);
}
.icon-btn svg {
  width: 18px;
  height: 18px;
}
[data-theme='dark'] .icon-sun,
[data-theme='light'] .icon-moon {
  display: none;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  height: 40px;
  padding: 0 0.35rem 0 0.35rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.875rem;
  font-weight: 600;
}
.user-chip__name {
  padding-right: 0.5rem;
}
.user-chip .icon-btn {
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
}
.user-chip .icon-btn svg {
  width: 16px;
  height: 16px;
}

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  object-fit: cover;
  background: var(--surface-3);
  display: inline-grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  flex: none;
  overflow: hidden;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 40px;
  padding: 0 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--gold-line);
  color: var(--gold);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background 0.2s;
}
.nav-link:hover {
  background: var(--gold-soft);
}
.nav-link svg {
  width: 16px;
  height: 16px;
}

/* ----------------------------------------------------------------- Buttons */

.btn {
  --h: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  height: var(--h);
  padding: 0 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s, box-shadow 0.2s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.btn:active:not(:disabled) {
  transform: translateY(1px) scale(0.99);
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.btn--gold {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: var(--gold-ink);
  box-shadow: 0 10px 30px -14px var(--gold);
}
[data-theme='light'] .btn--gold {
  background: linear-gradient(180deg, #a0762c, var(--gold));
}
.btn--gold:hover:not(:disabled) {
  box-shadow: 0 14px 36px -12px var(--gold);
}
.btn--discord {
  --h: 56px;
  padding: 0 1.8rem;
  font-size: 1rem;
}
.btn--ghost {
  background: var(--surface);
  border-color: var(--line-2);
  color: var(--text);
}
.btn--ghost:hover:not(:disabled) {
  border-color: var(--gold-line);
}
.btn--danger {
  background: var(--danger-soft);
  border-color: color-mix(in srgb, var(--danger) 40%, transparent);
  color: var(--danger);
}
.btn--danger:hover:not(:disabled) {
  background: color-mix(in srgb, var(--danger) 18%, transparent);
}
.btn--sm {
  --h: 36px;
  padding: 0 0.9rem;
  font-size: 0.8rem;
}

/* ------------------------------------------------------------- Typo & misc */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.eyebrow--center::after {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 0.98;
  margin: 0;
}
.display em {
  font-style: italic;
  color: var(--gold);
}

.lead {
  color: var(--text-2);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  max-width: 34rem;
}

.muted {
  color: var(--muted);
}

.view {
  animation: viewIn 0.6s var(--ease) both;
}
@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------------------------ Loader */

.loader {
  min-height: 70vh;
  display: grid;
  place-items: center;
}
.loader__ring {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--line-2);
  border-top-color: var(--gold);
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ------------------------------------------------------------------- Login */

.hero {
  width: var(--page);
  margin: 0 auto;
  min-height: calc(100dvh - 68px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 3rem;
  padding: 2rem 0 4rem;
}
.hero__title {
  font-size: clamp(3.4rem, 2rem + 6vw, 7.4rem);
  margin: 1.4rem 0 1.4rem;
}
.hero__title .line {
  display: block;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2.2rem;
}
.hero__note {
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 17rem;
  line-height: 1.45;
}

.alert {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 0.95rem 1.1rem;
  border-radius: var(--radius);
  background: var(--danger-soft);
  border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent);
  color: var(--text);
  font-size: 0.92rem;
  margin-top: 1.8rem;
  max-width: 34rem;
}
.alert svg {
  width: 20px;
  height: 20px;
  color: var(--danger);
  flex: none;
  margin-top: 1px;
}
.alert strong {
  display: block;
}
.alert--info {
  background: var(--gold-soft);
  border-color: var(--gold-line);
}
.alert--info svg {
  color: var(--gold);
}

/* Trophäen-Karte */
.ticket {
  position: relative;
  border-radius: 28px;
  padding: 2.2rem;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--gold) 9%, var(--surface)), var(--surface) 45%),
    var(--surface);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
  overflow: hidden;
  isolation: isolate;
}
.ticket::before {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 20px;
  border: 1px dashed var(--gold-line);
  opacity: 0.5;
  pointer-events: none;
}
.ticket__statue {
  width: 92px;
  height: 92px;
  color: var(--gold);
  margin-bottom: 1.4rem;
}
.ticket__label {
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.ticket__date {
  font-family: var(--serif);
  font-size: 2.2rem;
  line-height: 1.05;
  margin: 0.3rem 0 1.6rem;
}
.ticket__divider {
  height: 1px;
  background: var(--line-2);
  margin: 1.4rem -2.2rem;
  position: relative;
}
.ticket__divider::before,
.ticket__divider::after {
  content: '';
  position: absolute;
  top: -11px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line-2);
}
.ticket__divider::before {
  left: -11px;
}
.ticket__divider::after {
  right: -11px;
}
.ticket__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.ticket__stat b {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
}
.ticket__stat span {
  font-size: 0.75rem;
  color: var(--muted);
}

.mini-count {
  display: flex;
  gap: 0.4rem;
  align-items: baseline;
  font-variant-numeric: tabular-nums;
}
.mini-count .unit {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 3.2rem;
}
.mini-count .num {
  font-family: var(--serif);
  font-size: 2.4rem;
  line-height: 1;
}
.mini-count .lbl {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.3rem;
}
.mini-count .sep {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--gold);
  opacity: 0.6;
  line-height: 1;
}

/* ------------------------------------------------------------------ Ballot */

.ballot-head {
  width: var(--narrow);
  margin: 0 auto;
  padding: 3.5rem 0 1.5rem;
}
.ballot-head__title {
  font-size: clamp(3rem, 2rem + 4.5vw, 5.6rem);
  margin: 1.1rem 0 1rem;
}
.ballot-head__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.6rem;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 32px;
  padding: 0 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.8rem;
  color: var(--text-2);
  font-weight: 600;
}
.pill svg {
  width: 14px;
  height: 14px;
  color: var(--gold);
}
.pill--live::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 var(--ok);
  animation: pulse 2s infinite;
}
.pill--closed::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--danger);
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent);
  }
  70% {
    box-shadow: 0 0 0 8px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

.ballot {
  width: var(--narrow);
  margin: 0 auto;
  padding-bottom: 9rem;
}

.part {
  margin: 3.5rem 0 0.5rem;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-2);
}
.part__num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  font-size: 1.4rem;
}
.part__title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.4rem);
  font-weight: 400;
  margin: 0;
  line-height: 1.1;
}
.part__hint {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: right;
}

.cat {
  padding: 2.4rem 0 2.6rem;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 90px;
}
.cat__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 1.1rem;
  margin-bottom: 1.3rem;
}
.cat__num {
  font-family: var(--serif);
  font-size: 3.2rem;
  line-height: 0.8;
  color: var(--gold);
  min-width: 2.6ch;
  font-variant-numeric: lining-nums;
}
.cat__title {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 1.4rem + 1.3vw, 2.4rem);
  line-height: 1.05;
  margin: 0;
  font-weight: 400;
}
.cat__status {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  padding-bottom: 0.3rem;
}
.cat__status svg {
  width: 14px;
  height: 14px;
}
.cat.is-done .cat__status {
  color: var(--gold);
}
.cat.is-missing {
  animation: shake 0.5s var(--ease);
}
.cat.is-missing .cat__status {
  color: var(--danger);
}
@keyframes shake {
  20%,
  60% {
    transform: translateX(-6px);
  }
  40%,
  80% {
    transform: translateX(6px);
  }
}

.tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px dashed var(--line-2);
  color: var(--muted);
  border-radius: 6px;
  padding: 0.15rem 0.45rem;
  vertical-align: middle;
  margin-left: 0.5rem;
  font-family: var(--sans);
}

.options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.95rem;
  min-height: 72px;
  padding: 0.85rem 1rem 0.85rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
  .opt:hover {
    border-color: var(--line-2);
    background: var(--surface-2);
  }
}
.opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.opt__emoji {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--emoji);
  font-size: 1.5rem;
  background: var(--surface-3);
  flex: none;
  transition: transform 0.3s var(--ease), background 0.2s;
}
.opt__label {
  flex: 1;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.3;
  min-width: 0;
  overflow-wrap: anywhere;
}
.opt__check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--line-2);
  flex: none;
  display: grid;
  place-items: center;
  transition: background 0.2s, border-color 0.2s;
}
.opt__check svg {
  width: 12px;
  height: 12px;
  color: var(--gold-ink);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.2s, transform 0.25s var(--ease);
}
.opt:has(input:checked) {
  border-color: var(--gold-line);
  background: var(--gold-soft);
  box-shadow: 0 0 0 1px var(--gold-line) inset;
}
.opt:has(input:checked) .opt__emoji {
  transform: scale(1.06) rotate(-4deg);
  background: color-mix(in srgb, var(--gold) 18%, var(--surface-3));
}
.opt:has(input:checked) .opt__check {
  background: var(--gold);
  border-color: var(--gold);
}
.opt:has(input:checked) .opt__check svg {
  opacity: 1;
  transform: none;
}
.opt:has(input:focus-visible) {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
/* Fallback ohne :has() */
.opt.is-checked {
  border-color: var(--gold-line);
  background: var(--gold-soft);
}
.opt.is-checked .opt__check {
  background: var(--gold);
  border-color: var(--gold);
}
.opt.is-checked .opt__check svg {
  opacity: 1;
  transform: none;
}

/* Clip-Optionen */
.options--clips {
  gap: 1rem;
}
.clip {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.clip.is-checked {
  border-color: var(--gold-line);
  box-shadow: 0 0 0 1px var(--gold-line) inset;
}
.clip__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
.clip__media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.clip__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #000;
}
.clip__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: transform 0.6s var(--ease), opacity 0.3s;
}
.clip__poster::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 40%);
}
.clip__poster:hover img {
  transform: scale(1.04);
  opacity: 1;
}
.clip__play {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  margin: -29px 0 0 -29px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(10, 9, 8, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  transition: transform 0.3s var(--ease), background 0.2s;
}
.clip__poster:hover .clip__play {
  transform: scale(1.08);
  background: rgba(10, 9, 8, 0.8);
}
.clip__play svg {
  width: 20px;
  height: 20px;
  margin-left: 3px;
}
.clip__badge {
  position: absolute;
  z-index: 1;
  left: 0.75rem;
  top: 0.65rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}
.clip .opt {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  min-height: 60px;
  background: transparent;
  box-shadow: none !important;
}
.clip .opt:hover {
  background: var(--surface-2);
}
.clip .opt:has(input:checked) {
  background: var(--gold-soft);
}
.clip .opt__label small {
  display: block;
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--muted);
}

/* Sticky Abgabe-Leiste */
.submitbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 0.9rem 0 calc(0.9rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-top: 1px solid var(--line);
  animation: barIn 0.5s var(--ease) both;
}
@keyframes barIn {
  from {
    transform: translateY(100%);
  }
}
.submitbar__inner {
  width: var(--narrow);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.progress {
  flex: 1;
  min-width: 0;
}
.progress__text {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.45rem;
  gap: 0.5rem;
}
.progress__text b {
  color: var(--text);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.progress__track {
  height: 4px;
  border-radius: 99px;
  background: var(--line-2);
  overflow: hidden;
}
.progress__fill {
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  transition: width 0.5s var(--ease);
}
.submitbar__actions {
  display: flex;
  gap: 0.6rem;
}

/* ------------------------------------------------------- Done / Countdown */

.stage {
  width: var(--page);
  margin: 0 auto;
  padding: 4rem 0 5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stage__title {
  font-size: clamp(2.8rem, 1.8rem + 4.5vw, 5.4rem);
  margin: 1.3rem 0 1rem;
  max-width: 16ch;
}
.stage .lead {
  margin: 0 auto;
}

.countdown {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(0.4rem, 0.2rem + 1.4vw, 1.6rem);
  margin: 3.4rem 0 1rem;
}
.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.countdown__num {
  font-family: var(--serif);
  font-size: clamp(3.6rem, 1.6rem + 10vw, 10rem);
  line-height: 0.85;
  display: flex;
  color: var(--text);
}
.countdown__num .d {
  display: inline-block;
  width: 0.56em;
  text-align: center;
}
.countdown__lbl {
  margin-top: 1rem;
  font-size: clamp(0.6rem, 0.55rem + 0.25vw, 0.75rem);
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.countdown__sep {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 1.2rem + 6vw, 6.5rem);
  line-height: 0.95;
  color: var(--gold);
  opacity: 0.55;
}
.countdown__caption {
  font-size: 0.95rem;
  color: var(--text-2);
}
.countdown__caption b {
  color: var(--gold);
  font-weight: 700;
}
.countdown.is-zero .countdown__num {
  color: var(--gold);
}

.stage__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.8rem;
}

.summary {
  width: var(--narrow);
  margin: 2.5rem auto 0;
  text-align: left;
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}
.summary__row {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  align-items: center;
  gap: 0.9rem;
  padding: 0.95rem 1.3rem;
  border-bottom: 1px solid var(--line);
}
.summary__row:last-child {
  border-bottom: 0;
}
.summary__num {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 1.35rem;
  line-height: 1;
}
.summary__cat {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}
.summary__pick {
  font-weight: 700;
  font-size: 0.95rem;
}
.summary__emoji {
  font-family: var(--emoji);
  font-size: 1.4rem;
}


/* ------------------------------------------------------------ Toast/Modal */

.toasts {
  position: fixed;
  z-index: 90;
  left: 50%;
  top: 80px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: min(420px, 100% - 2rem);
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
  font-size: 0.9rem;
  font-weight: 600;
  animation: toastIn 0.35s var(--ease) both;
  pointer-events: auto;
}
.toast svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--gold);
}
.toast--error svg {
  color: var(--danger);
}
.toast.is-leaving {
  animation: toastOut 0.3s var(--ease) both;
}
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
}
@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
}

.modal {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  max-width: min(460px, 100% - 2rem);
  width: 100%;
}
.modal::backdrop {
  background: rgba(5, 4, 3, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal[open] {
  animation: modalIn 0.3s var(--ease) both;
}
@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
}
.modal__card {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-l);
  padding: 1.8rem;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
}
.modal__title {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  margin: 0 0 0.6rem;
  line-height: 1.1;
}
.modal__text {
  color: var(--text-2);
  margin: 0 0 1.2rem;
  font-size: 0.95rem;
}
.modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.field label,
.field__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.input {
  height: 46px;
  padding: 0 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  color: var(--text);
  width: 100%;
  min-width: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input:focus {
  outline: none;
  border-color: var(--gold-line);
  box-shadow: 0 0 0 3px var(--gold-soft);
}
select.input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 16px;
}
input[type='datetime-local'].input {
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------- Responsive */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    min-height: 0;
    padding-top: 2.5rem;
  }
}

@media (max-width: 640px) {
  :root {
    --page: calc(100% - 2rem);
    --narrow: calc(100% - 2rem);
  }
  .topbar__inner {
    height: 60px;
  }
  .brand__sub {
    display: none;
  }
  .user-chip__name {
    display: none;
  }
  .nav-link span {
    display: none;
  }
  .nav-link {
    width: 40px;
    padding: 0;
    justify-content: center;
  }
  .options {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  .opt {
    min-height: 64px;
  }
  .cat {
    padding: 2rem 0 2.2rem;
  }
  .cat__head {
    grid-template-columns: auto 1fr;
    gap: 0.4rem 0.9rem;
  }
  .cat__num {
    font-size: 2.4rem;
  }
  .cat__status {
    grid-column: 2;
    padding: 0;
  }
  .part {
    flex-wrap: wrap;
  }
  .part__hint {
    margin-left: 0;
    width: 100%;
    text-align: left;
  }
  .submitbar__inner {
    gap: 0.8rem;
  }
  .submitbar .btn {
    padding: 0 1.1rem;
  }
  .submitbar .btn .long {
    display: none;
  }
  .ticket {
    padding: 1.6rem;
  }
  .ticket__divider {
    margin: 1.2rem -1.6rem;
  }
  .countdown__sep {
    display: none;
  }
  .countdown {
    gap: 0.9rem;
    margin-top: 2.6rem;
  }
  .countdown__num {
    font-size: clamp(3rem, 15vw, 5rem);
  }
  .summary__row {
    padding: 0.85rem 1rem;
    grid-template-columns: 2rem 1fr auto;
  }
  .btn--discord {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.submitbar .short {
  display: none;
}
@media (max-width: 640px) {
  .submitbar .short {
    display: inline;
  }
}
.stage__note {
  font-size: 0.85rem;
  margin-top: 1.2rem;
}

/* ------------------------------------------------------- Wizard (Schritte) */

.wizard {
  width: var(--narrow);
  margin: 0 auto;
  padding: 2rem 0 9rem;
  min-height: calc(100dvh - 68px);
  display: flex;
  flex-direction: column;
}
.wizard__stage {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.step-in--fwd {
  animation: stepFwd 0.45s var(--ease) both;
}
.step-in--back {
  animation: stepBack 0.45s var(--ease) both;
}
@keyframes stepFwd {
  from {
    opacity: 0;
    transform: translateX(28px);
  }
}
@keyframes stepBack {
  from {
    opacity: 0;
    transform: translateX(-28px);
  }
}

.steps {
  display: flex;
  gap: 6px;
  margin-bottom: 2.4rem;
}
.steps__dot {
  flex: 1;
  height: 4px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: var(--line-2);
  cursor: pointer;
  position: relative;
  transition: background 0.3s, transform 0.2s;
}
.steps__dot::before {
  /* größere Trefferfläche */
  content: '';
  position: absolute;
  inset: -10px 0;
}
.steps__dot:disabled {
  cursor: default;
  opacity: 0.6;
}
.steps__dot.is-done {
  background: color-mix(in srgb, var(--gold) 55%, transparent);
}
.steps__dot.is-current {
  background: var(--gold);
  box-shadow: 0 0 12px -2px var(--gold);
}
.steps__dot--end {
  flex: 0 0 18px;
}
.steps__dot:not(:disabled):hover {
  transform: scaleY(1.6);
}

/* Begrüßung */
.intro {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 0 2rem;
}
.intro__title {
  font-size: clamp(3.4rem, 2rem + 6vw, 7rem);
  margin: 1.3rem 0 1.2rem;
}
.intro .lead {
  margin: 0 auto;
}
.intro .alert {
  text-align: left;
  margin-left: auto;
  margin-right: auto;
}
.intro__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.8rem;
}
.intro__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.6rem;
}

/* Kategorie-Seite */
.wizard .cat {
  padding: 0;
  border: 0;
}
.cat__kicker {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.6rem;
}
.cat__kicker span:first-child {
  color: var(--gold);
}
.wizard .cat__head {
  grid-template-columns: auto 1fr;
  align-items: end;
  margin-bottom: 0.6rem;
}
.wizard .cat__num {
  min-width: 0;
  margin-right: 0.2em;
  font-size: clamp(3.6rem, 2.6rem + 4vw, 6rem);
}
.wizard .cat__title {
  font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4.4rem);
  line-height: 0.98;
  outline: none;
}
.cat__hint {
  color: var(--muted);
  margin: 0 0 2rem;
  font-size: 0.95rem;
}
.wizard .opt {
  min-height: 84px;
}
.wizard .opt__emoji {
  width: 54px;
  height: 54px;
  font-size: 1.75rem;
}
.wizard .opt__label {
  font-size: 1.05rem;
}
.wizard .clip .opt {
  min-height: 64px;
}

/* Übersicht */
.review__title {
  font-size: clamp(3rem, 2rem + 4.5vw, 5.4rem);
  margin: 1.1rem 0 0.9rem;
  outline: none;
}
.summary--review {
  width: 100%;
  margin-top: 2rem;
}
.summary__row--btn {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  cursor: pointer;
  transition: background 0.2s;
  color: inherit;
}
.summary__row--btn:hover {
  background: var(--surface-2);
}
.summary__row--btn > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.summary__row--btn .summary__emoji svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
}
.summary__missing {
  color: var(--danger);
}

@media (max-width: 640px) {
  .wizard {
    padding-top: 1.3rem;
  }
  .steps {
    gap: 4px;
    margin-bottom: 1.8rem;
  }
  .wizard .opt {
    min-height: 70px;
  }
  .wizard .opt__emoji {
    width: 46px;
    height: 46px;
    font-size: 1.5rem;
  }
  .cat__kicker {
    margin-bottom: 1.1rem;
  }
  .cat__hint {
    margin-bottom: 1.4rem;
  }
  .intro__actions .btn {
    width: 100%;
  }
  .submitbar .btn--ghost {
    padding: 0 0.9rem;
  }
}

.nowrap {
  white-space: nowrap;
}
@media (max-width: 640px) {
  .progress__pos {
    display: none;
  }
  .intro__actions {
    width: 100%;
  }
}
