/* 1upWorld – öffentliche Seite. Look wie die 1upMechanics-Videos:
   dunkle Blaupausen-Bühne, schwarze Label-Kästen, weiße + gelbe 5x7-Pixelschrift, cyan Pfeile. */

@font-face { font-family: 'OneUp'; src: url('/fonts/1up-5x7.otf?v=2') format('opentype'); font-display: block; }
@font-face { font-family: 'Pixelify'; src: url('/fonts/pixelify-sans-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Pixelify'; src: url('/fonts/pixelify-sans-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Pixelify'; src: url('/fonts/pixelify-sans-latin-ext-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: dark;
  --deep: #10162a;
  --deeper: #0a0e1c;
  --line: #26304e;
  --line-2: #3a4a7a;
  --ink: #0c0a10;
  --ink-2: #161420;
  --white: #fbf4e4;
  --muted: #b3bbd0;
  --dim: #7884a3;
  --yellow: #f8c83c;
  --yellow-d: #a87a10;
  --cyan: #7fe0ff;
  --cyan-d: #2b7fa8;
  --red: #ec4a3c;
  --green: #84dc8e;
  --silver: #d3dbec;
  --copper: #ec8a4c;
  --font-px: 'OneUp', 'Pixelify', ui-monospace, monospace;
  --font-body: 'Pixelify', ui-rounded, system-ui, sans-serif;
  --gutter: 16px;
  --fab-right: 16px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--deeper); }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--deep);
  color: var(--white);
  font: 400 16px/1.45 var(--font-body);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
html[data-switcher="1"] { --fab-right: 82px; }
html.in-frame { --fab-right: 16px; }

a { color: var(--cyan); }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
[hidden] { display: none !important; }

/* Pixelschrift: immer in ganzen Pixeln (16 / 24 / 32 / 40 px = 2 / 3 / 4 / 5 px pro Bildpunkt) */
.px {
  font-family: var(--font-px);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: unset;
  font-smooth: never;
  font-synthesis: none;
}

/* ── Hintergrund ── */
#bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  z-index: 0;
  display: block;
  background: var(--deep);
}
.scan {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, .18) 0 1px, transparent 1px 4px);
}
.page {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 var(--gutter) calc(112px + var(--safe-b));
}

/* ── Kopfzeile ── */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0 10px;
}
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--white); }
.logo-badge {
  position: relative;
  font-size: 16px;
  line-height: 1;
  color: var(--yellow);
  background: var(--ink);
  padding: 7px 8px 5px;
  box-shadow: 0 -2px var(--line-2), 0 2px var(--line-2), -2px 0 var(--line-2), 2px 0 var(--line-2), 4px 4px 0 0 rgba(0, 0, 0, .55);
}
.logo-arrow {
  position: absolute;
  left: 50%;
  top: -9px;
  width: 10px;
  height: 6px;
  margin-left: -5px;
  background: var(--cyan);
  clip-path: polygon(40% 0, 60% 0, 60% 33%, 80% 33%, 80% 66%, 100% 66%, 100% 100%, 0 100%, 0 66%, 20% 66%, 20% 33%, 40% 33%);
  animation: bob 1.6s steps(2) infinite;
}
.logo-word { font-size: 16px; line-height: 1; text-shadow: 2px 2px 0 #000; }
.top-right { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--ink);
  border: 0;
  box-shadow: 0 -2px var(--line-2), 0 2px var(--line-2), -2px 0 var(--line-2), 2px 0 var(--line-2);
}
.snd-icon {
  width: 18px;
  height: 14px;
  background: var(--dim);
  clip-path: polygon(0 30%, 30% 30%, 60% 0, 60% 100%, 30% 70%, 0 70%);
}
.icon-btn[aria-pressed="true"] .snd-icon {
  background: var(--yellow);
  clip-path: polygon(0 30%, 30% 30%, 60% 0, 60% 100%, 30% 70%, 0 70%, 0 30%, 72% 30%, 72% 70%, 84% 70%, 84% 14%, 100% 14%, 100% 86%, 84% 86%, 84% 70%, 72% 70%, 72% 30%, 0 30%);
}

.ig {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  font-size: 16px;
  line-height: 1;
  color: var(--white);
  text-decoration: none;
  background: var(--ink);
  box-shadow: 0 -2px var(--line-2), 0 2px var(--line-2), -2px 0 var(--line-2), 2px 0 var(--line-2);
}
.ig:hover { color: var(--yellow); }
.ig .ig-short { display: none; }
@media (max-width: 479px) {
  .ig .ig-long { display: none; }
  .ig .ig-short { display: inline; }
}
.ig-icon {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  position: relative;
  flex: none;
}
.ig-icon::after { content: ''; position: absolute; inset: 2px; border: 2px solid currentColor; }

.announce {
  margin: 4px 0 8px;
  padding: 10px 12px 8px;
  font-size: 16px;
  line-height: 1.4;
  color: var(--yellow);
  background: var(--ink);
  box-shadow: 0 -2px var(--yellow-d), 0 2px var(--yellow-d), -2px 0 var(--yellow-d), 2px 0 var(--yellow-d);
}
.announce::before { content: '▶ '; color: var(--white); }

.channels { display: flex; gap: 8px; margin: 4px 0 10px; overflow-x: auto; scrollbar-width: none; padding: 3px; }
.channels button {
  flex: none;
  border: 0;
  padding: 9px 12px 7px;
  font-size: 16px;
  line-height: 1;
  color: var(--muted);
  background: var(--ink);
  box-shadow: 0 -2px var(--line), 0 2px var(--line), -2px 0 var(--line), 2px 0 var(--line);
}
.channels button[aria-current="true"] { color: var(--ink); background: var(--cyan); box-shadow: none; }

/* ── Kopf der Abstimmung ── */
.hero { padding: 10px 0 14px; }
.hud { margin: 0 0 10px; font-size: 16px; line-height: 1; color: var(--white); }
.hud #hud-text, .hud-play { color: var(--yellow); }
.hud-play { animation: blink 1.2s steps(1) infinite; }
.hero h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.3;
  color: var(--white);
  text-shadow: 3px 3px 0 #000;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--yellow); }
.sub { margin: 10px 0 0; color: var(--muted); font-size: 16px; max-width: 34em; }
.sub .tri { color: var(--cyan); }
/* 1UPs für heute: drei Pfeile, verbrauchte werden dunkel */
.lives { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 12px 0 0; font-size: 16px; line-height: 1; color: var(--white); }
.lives-label { padding-top: 2px; }
.pips { display: inline-flex; gap: 6px; }
.pip {
  width: 18px;
  height: 15px;
  background: var(--cyan);
  clip-path: polygon(33.3% 0, 66.6% 0, 66.6% 20%, 83.3% 20%, 83.3% 40%, 100% 40%, 100% 60%, 66.6% 60%, 66.6% 100%, 33.3% 100%, 33.3% 60%, 0 60%, 0 40%, 16.6% 40%, 16.6% 20%, 33.3% 20%);
}
.pip.used { background: var(--line-2); }
.lives-wait { padding-top: 2px; color: var(--yellow); }
.lives-wait:empty { display: none; }
.lives.out .lives-label { color: var(--dim); }
.lives.shake { animation: shake .36s steps(4); }

/* Label-Überschrift wie in den Videos: schwarzer Kasten, Pixelschrift */
.label-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 8px 10px 6px;
  font-size: 16px;
  line-height: 1;
  color: var(--white);
  background: var(--ink);
}
/* ── Reiter ── */
.tabs { display: flex; align-items: center; gap: 8px; margin: 4px 0 14px; padding: 2px; }
.tab {
  border: 0;
  padding: 9px 12px 7px;
  font-size: 16px;
  line-height: 1;
  color: var(--dim);
  background: var(--ink);
  box-shadow: 0 -2px var(--line), 0 2px var(--line), -2px 0 var(--line), 2px 0 var(--line);
}
.tab[aria-selected="true"] { color: var(--ink); background: var(--yellow); box-shadow: 0 -2px var(--yellow), 0 2px var(--yellow), -2px 0 var(--yellow), 2px 0 var(--yellow), 4px 4px 0 2px rgba(0, 0, 0, .5); }
.tab-spacer { flex: 1; }
.count-chip { font-size: 16px; line-height: 1; color: var(--dim); white-space: nowrap; }
.tab-note { margin: -4px 0 14px; color: var(--muted); font-size: 14px; }
.meta .new-tag { font-size: 16px; line-height: 1; color: var(--yellow); }
.form-fine { margin: 0; color: var(--dim); font-size: 13px; text-align: center; }
@media (max-width: 479px) {
  .count-chip { display: none; }
}

/* ── Ideen-Karten ── */
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.card {
  --bc: var(--line-2);
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 68px;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 12px 10px;
  background: rgba(12, 10, 16, .94);
  box-shadow: 0 -2px var(--bc), 0 2px var(--bc), -2px 0 var(--bc), 2px 0 var(--bc), 5px 5px 0 1px rgba(0, 0, 0, .45);
}
.card.enter { animation: pop-in .36s steps(4) both; animation-delay: calc(var(--i, 0) * 45ms); }
.card.lead {
  --bc: var(--yellow);
  isolation: isolate; /* Partikel liegen über dem Rand, aber unter Text und Button */
  box-shadow: 0 -2px var(--bc), 0 2px var(--bc), -2px 0 var(--bc), 2px 0 var(--bc), 5px 5px 0 1px rgba(0, 0, 0, .45), 0 0 18px rgba(248, 200, 60, .16);
}
/* Goldener Partikel-Rahmen (js/leadglow.js), 12 px über die Karte hinaus */
.lead-glow {
  position: absolute;
  left: -12px;
  top: -12px;
  width: calc(100% + 24px);
  height: calc(100% + 24px);
  z-index: -1;
  pointer-events: none;
}
.rank { font-size: 16px; line-height: 1; color: var(--dim); text-align: center; }
.card[data-rank="1"] .rank { color: var(--yellow); font-size: 24px; }
.card[data-rank="2"] .rank { color: var(--silver); }
.card[data-rank="3"] .rank { color: var(--copper); }
.card.no-rank { grid-template-columns: minmax(0, 1fr) 68px; padding-left: 14px; }
.card.no-rank .rank { display: none; }

.body { min-width: 0; cursor: pointer; }
.title {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
  color: var(--white);
  overflow-wrap: anywhere;
}
.desc {
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 1.35;
  color: var(--yellow);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.card.open .desc { -webkit-line-clamp: unset; display: block; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px; font-size: 13px; color: var(--dim); }
.meta .by { color: var(--muted); }
.bar { height: 6px; margin-top: 8px; background: var(--line); overflow: hidden; }
.bar i {
  display: block;
  height: 100%;
  width: 0;
  background: repeating-linear-gradient(90deg, var(--cyan) 0 6px, transparent 6px 8px);
  transition: width .4s steps(6);
}
.card.lead .bar i { background: repeating-linear-gradient(90deg, var(--yellow) 0 6px, transparent 6px 8px); }

/* Abstimm-Knopf */
.vote {
  position: relative;
  width: 68px;
  height: 68px;
  border: 0;
  padding: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  color: var(--white);
  background: var(--ink-2);
  box-shadow: 0 -3px var(--cyan-d), 0 3px var(--cyan-d), -3px 0 var(--cyan-d), 3px 0 var(--cyan-d), 0 7px 0 0 #05060c;
  transform: translateY(0);
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}
/* Pfeil wie in den Videos: Spitze + Schaft, aus Pixeln */
.vote .arrow {
  width: 18px;
  height: 15px;
  background: var(--cyan);
  clip-path: polygon(33.3% 0, 66.6% 0, 66.6% 20%, 83.3% 20%, 83.3% 40%, 100% 40%, 100% 60%, 66.6% 60%, 66.6% 100%, 33.3% 100%, 33.3% 60%, 0 60%, 0 40%, 16.6% 40%, 16.6% 20%, 33.3% 20%);
}
.vote[aria-pressed="true"] .arrow { background: var(--ink); }
.vote:not(:disabled):hover .arrow { animation: bob .5s steps(2) infinite; }
.tri {
  display: inline-block;
  width: 12px;
  height: 10px;
  margin: 0 2px;
  vertical-align: -1px;
  background: var(--cyan);
  clip-path: polygon(33.3% 0, 66.6% 0, 66.6% 20%, 83.3% 20%, 83.3% 40%, 100% 40%, 100% 60%, 66.6% 60%, 66.6% 100%, 33.3% 100%, 33.3% 60%, 0 60%, 0 40%, 16.6% 40%, 16.6% 20%, 33.3% 20%);
}
.vote .count { font: 16px/1 var(--font-px); -webkit-font-smoothing: none; }
.vote:hover { background: #1d1a2a; }
.vote:active { transform: translateY(4px); box-shadow: 0 -3px var(--cyan-d), 0 3px var(--cyan-d), -3px 0 var(--cyan-d), 3px 0 var(--cyan-d), 0 3px 0 0 #05060c; }
.vote[aria-pressed="true"] {
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 0 -3px var(--yellow-d), 0 3px var(--yellow-d), -3px 0 var(--yellow-d), 3px 0 var(--yellow-d), 0 7px 0 0 #3d2c05;
}
.vote:disabled { cursor: default; opacity: .55; }
.vote.bump { animation: bump .3s steps(3); }

.watch {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  font: 16px/1.2 var(--font-px);
  -webkit-font-smoothing: none;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  background: var(--green);
  box-shadow: 0 7px 0 0 #1f4d26;
}
.watch.none { color: var(--dim); background: var(--ink-2); box-shadow: none; }

/* ── UP NEXT: In Progress oben, Uploaded darunter (leicht grün) ── */
.stage-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px 3px;
  font-size: 16px;
  line-height: 1;
  color: var(--ink);
  background: var(--yellow);
}
.in-progress .stage-tag::before { content: ''; width: 6px; height: 6px; margin-top: -2px; background: var(--ink); animation: blink 1.2s steps(1) infinite; }
.card.uploaded { --bc: #3d8a4a; background: rgba(24, 58, 34, .94); }
.uploaded .stage-tag { background: var(--green); }
.uploaded .desc { color: #bfe8b8; }
.final {
  display: grid;
  place-content: center;
  gap: 4px;
  width: 68px;
  height: 68px;
  text-align: center;
  color: var(--muted);
  background: var(--ink-2);
  box-shadow: 0 -2px var(--line), 0 2px var(--line), -2px 0 var(--line), 2px 0 var(--line);
}
.final b { font-size: 20px; line-height: 1; font-weight: normal; color: var(--white); }
.final span { font-size: 13px; line-height: 1; }
.uploaded .final { background: rgba(10, 30, 16, .6); box-shadow: 0 -2px #2d6a38, 0 2px #2d6a38, -2px 0 #2d6a38, 2px 0 #2d6a38; }

/* +1UP-Effekt */
.plus1 {
  position: absolute;
  left: 50%;
  top: -6px;
  font: 16px/1 var(--font-px);
  -webkit-font-smoothing: none;
  color: var(--yellow);
  text-shadow: 2px 2px 0 #000;
  white-space: nowrap;
  pointer-events: none;
  transform: translate(-50%, 0);
  animation: float-up .9s steps(9) forwards;
  z-index: 3;
}
.ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
  border: 3px solid var(--yellow);
  border-radius: 50%;
  pointer-events: none;
  animation: ring .5s steps(5) forwards;
  z-index: 2;
}
.spark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 9px;
  margin: -4px 0 0 -1px;
  background: var(--yellow);
  pointer-events: none;
  transform: rotate(var(--a)) translateY(-30px);
  animation: spark .5s steps(5) forwards;
  z-index: 2;
}
.rankup {
  position: absolute;
  right: 84px;
  top: -14px;
  padding: 5px 6px 3px;
  font: 16px/1 var(--font-px);
  -webkit-font-smoothing: none;
  color: var(--ink);
  background: var(--green);
  animation: rankup 1.4s steps(7) forwards;
  pointer-events: none;
}

.empty {
  padding: 22px 16px;
  text-align: center;
  background: rgba(12, 10, 16, .9);
  box-shadow: 0 -2px var(--line), 0 2px var(--line), -2px 0 var(--line), 2px 0 var(--line);
}
.empty .px { font-size: 16px; color: var(--yellow); margin: 0 0 6px; }
.empty p { margin: 0; color: var(--muted); }

.more {
  display: block;
  margin: 18px auto 0;
  border: 0;
  padding: 11px 14px 9px;
  font-size: 16px;
  line-height: 1;
  color: var(--white);
  background: var(--ink);
  box-shadow: 0 -2px var(--line-2), 0 2px var(--line-2), -2px 0 var(--line-2), 2px 0 var(--line-2);
}

/* ── Seitenleiste / Erklärung ── */
.side { margin-top: 34px; display: grid; gap: 22px; }
.panel {
  padding: 16px;
  background: rgba(12, 10, 16, .92);
  box-shadow: 0 -2px var(--line), 0 2px var(--line), -2px 0 var(--line), 2px 0 var(--line), 5px 5px 0 1px rgba(0, 0, 0, .45);
}
.panel .label-head { margin-left: -6px; }
#side-form-slot:empty { display: none; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.steps b { flex: none; width: 30px; height: 30px; display: grid; place-items: center; font-size: 16px; color: var(--ink); background: var(--yellow); }
.steps strong { color: var(--white); font-weight: 600; }

.foot { margin-top: 36px; padding: 18px 0 8px; color: var(--dim); font-size: 14px; text-align: center; }
.foot .px { font-size: 16px; color: var(--muted); margin: 0 0 8px; }
.foot nav { display: flex; justify-content: center; gap: 18px; }
.foot a { color: var(--muted); }
.fine { margin: 8px 0 0; }

/* ── Einreich-Knopf (Handy) ── */
.fab {
  position: fixed;
  z-index: 20;
  left: 16px;
  right: var(--fab-right);
  bottom: calc(14px + var(--safe-b));
  height: 58px;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
  line-height: 1;
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 0 -3px var(--ink), 0 3px var(--ink), -3px 0 var(--ink), 3px 0 var(--ink), 0 9px 0 0 rgba(0, 0, 0, .6);
  animation: fab-in .4s steps(4) .25s both;
}
.fab:active { transform: translateY(4px); box-shadow: 0 -3px var(--ink), 0 3px var(--ink), -3px 0 var(--ink), 3px 0 var(--ink), 0 5px 0 0 rgba(0, 0, 0, .6); }
.fab-plus { font-size: 24px; }

/* ── Formular (Fenster auf dem Handy, Seitenleiste am Desktop) ── */
.sheet {
  border: 0;
  padding: 0;
  margin: auto auto 0;
  width: 100%;
  max-width: 640px;
  max-height: 92dvh;
  color: var(--white);
  background: var(--ink);
  box-shadow: 0 -3px var(--yellow);
  overflow: auto;
  overscroll-behavior: contain;
}
.sheet[open] { animation: sheet-up .3s steps(5); }
.sheet::backdrop { background: rgba(4, 6, 14, .78); }
.sheet-inner { padding: 20px 18px calc(22px + var(--safe-b)); }
.form-wrap { position: relative; }
.sheet-close {
  position: absolute;
  right: -4px;
  top: -6px;
  width: 40px;
  height: 40px;
  border: 0;
  font: 24px/1 var(--font-px);
  color: var(--muted);
  background: transparent;
}
#side-form-slot .sheet-close { display: none; }
.form-wrap .label-head { padding-left: 0; background: transparent; color: var(--yellow); }
.plus { color: var(--white); }
.idea-form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field-label { font-size: 16px; line-height: 1.2; color: var(--white); }
.field-label i { font-style: normal; color: var(--dim); }
.field small { color: var(--dim); font-size: 13px; }
.field input, .field textarea {
  width: 100%;
  border: 0;
  padding: 12px;
  font-size: 16px; /* 16px: kein Auto-Zoom auf dem iPhone */
  color: var(--white);
  background: #1a1826;
  box-shadow: inset 0 0 0 2px var(--line-2);
  border-radius: 0;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: #6b7591; }
.field input:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--cyan); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin: 0; padding: 10px 12px; color: var(--white); background: #4a1414; box-shadow: inset 0 0 0 2px var(--red); }

.similar { padding: 10px 12px; background: #141a30; box-shadow: inset 0 0 0 2px var(--cyan-d); }
.similar-head { margin: 0 0 8px; font-size: 16px; line-height: 1; color: var(--cyan); }
.similar ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.similar li { display: flex; align-items: center; gap: 10px; }
.similar li span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.mini-vote {
  flex: none;
  border: 0;
  padding: 7px 8px 5px;
  font: 16px/1 var(--font-px);
  -webkit-font-smoothing: none;
  color: var(--ink);
  background: var(--cyan);
}
.mini-vote[aria-pressed="true"] { background: var(--yellow); }
.mini-vote:disabled { background: var(--line-2); color: var(--muted); }

.btn {
  height: 54px;
  border: 0;
  padding: 0 18px;
  font-size: 16px;
  line-height: 1;
  box-shadow: 0 7px 0 0 rgba(0, 0, 0, .6);
}
.btn:active { transform: translateY(4px); box-shadow: 0 3px 0 0 rgba(0, 0, 0, .6); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-yellow { color: var(--ink); background: var(--yellow); }
.btn-ghost { color: var(--white); background: var(--ink-2); box-shadow: 0 -2px var(--line-2), 0 2px var(--line-2), -2px 0 var(--line-2), 2px 0 var(--line-2); }

.done-state { position: relative; text-align: center; padding: 20px 0 6px; }
.done-title { font-size: 24px; color: var(--yellow); margin: 18px 0 8px; text-shadow: 3px 3px 0 #000; }
.done-text { color: var(--muted); margin: 0 0 18px; }
.burst { position: relative; height: 40px; }
.closed-state { color: var(--muted); }

/* ── Meldung oben ── */
.toast {
  position: fixed;
  z-index: 60;
  left: 50%;
  top: calc(12px + env(safe-area-inset-top, 0px));
  max-width: min(92vw, 460px);
  padding: 10px 12px 8px;
  background: var(--ink);
  box-shadow: 0 -2px var(--line-2), 0 2px var(--line-2), -2px 0 var(--line-2), 2px 0 var(--line-2), 5px 5px 0 1px rgba(0, 0, 0, .5);
  transform: translateX(-50%);
  animation: toast-in .25s steps(3);
}
.toast p { margin: 0; font-size: 16px; line-height: 1.4; }
.toast-1 { color: var(--white); }
.toast-2 { color: var(--yellow); }
.toast-2:empty { display: none; }

/* ── Rechtstexte / 404 ── */
.doc { padding: 10px 0 30px; }
.doc h1 { font-size: 24px; line-height: 1.3; margin: 8px 0 16px; text-shadow: 3px 3px 0 #000; }
.doc .panel { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--muted); }
.back { display: inline-block; margin-top: 18px; font-size: 16px; color: var(--cyan); text-decoration: none; }
.gameover { text-align: center; padding: 60px 0; }
.gameover h1 { font-size: 40px; color: var(--yellow); margin: 0 0 10px; text-shadow: 4px 4px 0 #000; }
.gameover p { color: var(--muted); }

/* ── Test-Umschalter Handy/Desktop ── */
.vs {
  position: fixed;
  z-index: 50;
  right: 12px;
  bottom: calc(14px + var(--safe-b));
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 6px 6px 6px;
  background: var(--ink);
  box-shadow: 0 -2px var(--cyan-d), 0 2px var(--cyan-d), -2px 0 var(--cyan-d), 2px 0 var(--cyan-d), 4px 4px 0 1px rgba(0, 0, 0, .5);
}
.vs-label { font-size: 16px; line-height: 1; color: var(--cyan); padding-top: 2px; }
.vs-btn {
  width: 44px;
  height: 40px;
  border: 0;
  display: grid;
  place-items: center;
  color: var(--dim);
  background: var(--ink-2);
}
.vs-btn[aria-pressed="true"] { color: var(--ink); background: var(--cyan); }
.vs-phone { width: 14px; height: 22px; border: 3px solid currentColor; border-bottom-width: 5px; }
.vs-desk { position: relative; width: 24px; height: 16px; border: 3px solid currentColor; margin-bottom: 6px; }
.vs-desk::after { content: ''; position: absolute; left: 5px; right: 5px; bottom: -9px; height: 3px; background: currentColor; }
.vs-stage {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  grid-template-rows: auto 1fr;
  justify-items: center;
  align-items: start;
  background: rgba(6, 9, 18, .9);
  overflow: hidden;
}
.vs-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; padding: 14px 110px 12px 16px; }
.vs-title { font-size: 16px; color: var(--yellow); margin-right: 8px; }
.vs-sizes { display: flex; gap: 8px; flex-wrap: wrap; }
.vs-chip { border: 0; padding: 8px 10px 6px; font-size: 16px; line-height: 1; color: var(--muted); background: var(--ink); box-shadow: inset 0 0 0 2px var(--line-2); }
.vs-chip[aria-pressed="true"] { color: var(--ink); background: var(--yellow); box-shadow: none; }
.vs-fit { display: flex; justify-content: center; }
.vs-device {
  padding: 14px;
  background: #05060a;
  transform-origin: top center;
  box-shadow: 0 -4px #2a3456, 0 4px #2a3456, -4px 0 #2a3456, 4px 0 #2a3456, 10px 10px 0 2px rgba(0, 0, 0, .6);
}
.vs-device iframe { display: block; border: 0; background: var(--deep); }
body.vs-on { overflow: hidden; }
body.vs-on .fab { display: none; }

/* ── Animationen (in Schritten, wie 8-Bit) ── */
@keyframes blink { 50% { opacity: 0; } }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@keyframes bob { 50% { transform: translateY(-2px); } }
@keyframes pop-in { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes bump { 0% { transform: translateY(0) scale(1); } 40% { transform: translateY(2px) scale(1.12); } 100% { transform: none; } }
@keyframes float-up { from { opacity: 1; transform: translate(-50%, 0); } 70% { opacity: 1; } to { opacity: 0; transform: translate(-50%, -54px); } }
@keyframes ring { from { opacity: 1; transform: scale(.4); } to { opacity: 0; transform: scale(1.5); } }
@keyframes spark { from { opacity: 1; transform: rotate(var(--a)) translateY(-30px); } to { opacity: 0; transform: rotate(var(--a)) translateY(-58px); } }
@keyframes rankup { 0% { opacity: 0; transform: translateY(6px); } 15% { opacity: 1; transform: none; } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-12px); } }
@keyframes fab-in { from { transform: translateY(90px); } to { transform: none; } }
@keyframes sheet-up { from { transform: translateY(40%); } to { transform: none; } }
@keyframes toast-in { from { transform: translate(-50%, -20px); opacity: 0; } to { transform: translateX(-50%); opacity: 1; } }

/* ── Größere Bildschirme ── */
@media (min-width: 640px) {
  :root { --gutter: 28px; }
  .hero h1 { font-size: 32px; }
  .card { grid-template-columns: 44px minmax(0, 1fr) 76px; padding: 14px 14px 14px 12px; gap: 14px; }
  .card.no-rank { grid-template-columns: minmax(0, 1fr) 76px; }
  .vote, .watch, .final { width: 76px; height: 72px; }
  .sheet { margin: auto; max-width: 520px; box-shadow: 0 -3px var(--yellow), 0 3px var(--yellow), -3px 0 var(--yellow), 3px 0 var(--yellow); }
}

@media (min-width: 960px) {
  :root { --gutter: 32px; }
  .page { max-width: 1180px; padding-bottom: 40px; }
  .top { padding: 24px 0 14px; }
  .logo-badge, .logo-word { font-size: 24px; }
  .logo-badge { padding: 9px 10px 6px; }
  .logo-arrow { top: -11px; }
  .layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 44px; align-items: start; }
  .hero { padding: 20px 0 22px; }
  .hero h1 { font-size: 40px; line-height: 1.25; text-shadow: 5px 5px 0 #000; }
  .sub { font-size: 18px; }
  .side { position: sticky; top: 24px; margin-top: 64px; }
  .fab { display: none; }
  .foot { text-align: left; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; border-top: 2px solid var(--line); margin-top: 48px; }
  .foot .px { margin: 0; }
  .fine { margin: 0 0 0 auto; }
  .gameover h1 { font-size: 64px; }
}

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