/* ============ Imposter: Partygame-Look ============ */
:root {
  --bg: #140826;
  --bg2: #1f0d3d;
  --card: #2a1455;
  --card2: #341a68;
  --ink: #0a0316;
  --text: #fff6e9;
  --muted: #bfaee0;
  --pink: #ff3d7f;
  --yellow: #ffd23f;
  --cyan: #3ddcff;
  --green: #7cff6b;
  --purple: #b26bff;
  --orange: #ff8a3d;
  --radius: 22px;
  --shadow: 6px 6px 0 var(--ink);
  --font-display: "Bungee", "Rubik", system-ui, sans-serif;
  --font: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Animierter Hintergrund */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background:
    radial-gradient(circle at 50% 120%, #3a1170 0%, transparent 60%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 2px, transparent 2px 22px),
    var(--bg); }
.bg span { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(90px); opacity: .35; animation: float 22s ease-in-out infinite alternate; }
.bg span:nth-child(1) { background: var(--pink); top: -25vmax; left: -15vmax; }
.bg span:nth-child(2) { background: var(--cyan); bottom: -30vmax; right: -20vmax; animation-delay: -7s; opacity: .25; }
.bg span:nth-child(3) { background: var(--purple); top: 30%; left: 40%; width: 40vmax; height: 40vmax; animation-delay: -14s; opacity: .3; }
@keyframes float { to { transform: translate(8vmax, 6vmax) scale(1.15); } }

/* Kopfzeile */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; flex-wrap: wrap; }
.brand { font-family: var(--font-display); font-size: 28px; letter-spacing: 2px; color: var(--yellow);
  transform: rotate(-3deg); text-shadow: 3px 3px 0 var(--pink), 6px 6px 0 var(--ink); }
.top nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.top nav a { color: var(--text); text-decoration: none; font-weight: 800; padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,.07); border: 2px solid transparent; transition: .15s; }
.top nav a:hover { border-color: var(--yellow); color: var(--yellow); }
.who { color: var(--muted); font-weight: 600; padding: 0 6px; }

.toast { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 50; max-width: calc(100% - 32px);
  background: var(--pink); color: #fff; font-weight: 800; padding: 12px 22px; border-radius: 16px;
  border: 3px solid var(--ink); box-shadow: var(--shadow); animation: drop .4s cubic-bezier(.2,1.6,.4,1); }
@keyframes drop { from { transform: translate(-50%, -80px); } }

/* Layout */
main.center { min-height: calc(100vh - 80px); display: grid; place-items: center; padding: 16px; }
main.page { max-width: 1100px; margin: 0 auto; padding: 8px 16px 40px; display: grid; gap: 18px; }
.loading { font-family: var(--font-display); font-size: 28px; color: var(--yellow); animation: pulse 1s infinite alternate; }

.card { background: linear-gradient(160deg, var(--card2), var(--card)); border: 3px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px; }
.card.narrow { width: min(440px, 100%); display: grid; gap: 12px; text-align: center; animation: pop .5s cubic-bezier(.2,1.5,.4,1); }
.card h1 { font-family: var(--font-display); font-size: clamp(26px, 6vw, 36px); margin: 0 0 4px; color: var(--yellow);
  text-shadow: 3px 3px 0 var(--ink); line-height: 1.1; }
h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(20px, 4vw, 28px); margin: 0 0 14px; letter-spacing: .5px; }
h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 2px; color: var(--muted); margin: 16px 0 8px; font-weight: 900; }
.muted { color: var(--muted); }
label { font-weight: 600; color: var(--muted); font-size: 14px; text-align: left; display: flex; flex-direction: column; gap: 6px; }
label:has(input[type=checkbox]) { flex-direction: row; align-items: center; }
.or { color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: 3px; font-size: 12px; }
.row { display: flex; gap: 10px; }
.row input { flex: 1; min-width: 0; }

/* Eingaben */
input, select { font: inherit; font-weight: 600; color: var(--ink); background: var(--text); border: 3px solid var(--ink);
  border-radius: 14px; padding: 12px 14px; outline: none; transition: .15s; width: 100%; }
input:focus, select:focus { box-shadow: 0 0 0 4px var(--cyan); }
input:disabled, select:disabled { opacity: .7; }
input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--pink); }
input.code { font-family: var(--font-display); font-size: 24px; letter-spacing: 8px; text-transform: uppercase; text-align: center; }

button { font: inherit; font-weight: 900; cursor: pointer; color: var(--ink); background: var(--cyan); border: 3px solid var(--ink);
  border-radius: 14px; padding: 12px 20px; box-shadow: 4px 4px 0 var(--ink); transition: transform .08s, box-shadow .08s, filter .15s; }
button:hover:not(:disabled) { filter: brightness(1.08); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
button:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
button:disabled { opacity: .55; cursor: default; }
button.primary { background: var(--yellow); }
button.big { font-family: var(--font-display); font-weight: 400; font-size: 22px; padding: 16px 28px; margin-top: 16px; width: 100%; letter-spacing: 1px; }
button.tiny { padding: 4px 10px; font-size: 13px; border-width: 2px; box-shadow: 2px 2px 0 var(--ink); border-radius: 10px; }
button.tiny.toggle { background: rgba(255,255,255,.12); color: var(--muted); border-color: rgba(10,3,22,.6); min-width: 34px; }
button.tiny.toggle.on { background: var(--green); color: var(--ink); border-color: var(--ink); }
.tag.me { background: var(--yellow); }
button.ghost { background: transparent; color: var(--text); border-color: rgba(255,255,255,.3); box-shadow: none; }

/* Raum */
main.room { padding: 0 16px 24px; max-width: 1400px; margin: 0 auto; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px;
  background: rgba(10,3,22,.45); border-radius: 18px; padding: 10px 14px; border: 2px solid rgba(255,255,255,.08); }
.label { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: var(--muted); font-weight: 900; }
.roomcode { font-family: var(--font-display); font-size: 26px; letter-spacing: 4px; color: var(--yellow); margin: 0 6px; vertical-align: middle; }
.phase { font-weight: 600; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.phase b { color: var(--text); }
.timer { font-family: var(--font-display); font-size: 22px; color: var(--ink); background: var(--green); padding: 4px 14px;
  border-radius: 999px; border: 3px solid var(--ink); min-width: 70px; text-align: center; transition: background .3s; }
.timer.urgent { background: var(--pink); color: #fff; animation: pulse .5s infinite alternate; }
@keyframes pulse { to { transform: scale(1.08); } }

.grid { display: grid; grid-template-columns: 290px minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.players ul, .board, .plain, .answers { list-style: none; padding: 0; margin: 0; }
.players li { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; margin-bottom: 6px;
  background: rgba(10,3,22,.3); border: 2px solid transparent; transition: .2s; }
.players li.done { border-color: var(--green); }
.players li.done::after { content: "✓"; color: var(--green); font-weight: 900; }
.players li.turn { border-color: var(--yellow); background: rgba(255,210,63,.12); animation: glow 1s infinite alternate; }
@keyframes glow { to { box-shadow: 0 0 18px rgba(255,210,63,.5); } }
.pname { font-weight: 800; flex: 1 1 auto; min-width: 44px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score { font-family: var(--font-display); color: var(--yellow); margin-left: auto; }
.tag { font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; padding: 3px 7px; border-radius: 8px;
  background: var(--purple); color: var(--ink); }
.tag.warn { background: var(--orange); }

.avatar { --c: var(--pink); flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c); color: var(--ink); font-family: var(--font-display); font-size: 16px; border: 3px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink); }

/* Bühne */
.stage { min-height: 460px; position: relative; overflow: hidden; text-align: center; padding-top: 58px; }
.stage.enter > * { animation: rise .5s cubic-bezier(.2,1.4,.4,1) both; }
.stage.enter > *:nth-child(2) { animation-delay: .06s; }
.stage.enter > *:nth-child(3) { animation-delay: .12s; }
.stage.enter > *:nth-child(4) { animation-delay: .18s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px) scale(.96); } }
@keyframes pop { from { opacity: 0; transform: scale(.7) rotate(-3deg); } }

.phase-banner { position: absolute; top: 14px; left: -8px; font-family: var(--font-display); font-size: 15px; letter-spacing: 2px;
  padding: 6px 22px 6px 26px; background: var(--pink); color: #fff; border: 3px solid var(--ink); border-radius: 0 14px 14px 0;
  box-shadow: 4px 4px 0 var(--ink); transform: rotate(-2deg); text-transform: uppercase; }
.p-Lobby { background: var(--purple); color: var(--ink); }
.p-Answer { background: var(--cyan); color: var(--ink); }
.p-Discussion { background: var(--orange); color: var(--ink); }
.p-Vote, .p-Runoff { background: var(--pink); }
.p-Result, .p-MatchEnd { background: var(--yellow); color: var(--ink); }

.secret { margin: 6px auto 18px; max-width: 560px; padding: 28px 22px; border-radius: 24px; border: 4px solid var(--ink);
  background: linear-gradient(135deg, var(--yellow), var(--orange)); color: var(--ink); box-shadow: 8px 8px 0 var(--ink);
  transform: rotate(-1deg); animation: flip .7s cubic-bezier(.2,1.3,.4,1) both; }
@keyframes flip { from { transform: perspective(800px) rotateY(90deg); opacity: 0; } }
.secret .label { color: rgba(10,3,22,.65); }
.prompt { font-size: clamp(22px, 4.2vw, 34px); font-weight: 900; line-height: 1.2; margin-top: 6px; word-break: break-word; }
.role { display: inline-block; font-family: var(--font-display); font-size: 14px; letter-spacing: 1px; padding: 6px 14px;
  border-radius: 999px; border: 3px solid var(--ink); margin-bottom: 14px; }
.role.imp { background: var(--pink); color: #fff; animation: shake .6s .5s both; }
.role.crew { background: var(--green); }
.role.unknown { background: rgba(10,3,22,.15); border-style: dashed; font-family: var(--font); font-weight: 800; }
@keyframes shake { 20%, 60% { transform: rotate(-6deg) scale(1.1); } 40%, 80% { transform: rotate(6deg) scale(1.1); } }
.mini { color: var(--muted); margin: 14px 0; } .mini b { color: var(--yellow); }

.crewq { margin: 0 auto 18px; max-width: 600px; background: rgba(61,220,255,.12); border: 3px dashed var(--cyan); border-radius: 18px; padding: 14px; }
.crewq .prompt { font-size: clamp(18px, 3vw, 24px); color: var(--cyan); }

.answers { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; text-align: left; margin-bottom: 14px; }
.answers li { display: flex; align-items: center; gap: 10px; background: var(--text); color: var(--ink); border: 3px solid var(--ink);
  border-radius: 16px; padding: 10px 12px; box-shadow: 4px 4px 0 var(--ink); animation: deal .45s cubic-bezier(.2,1.5,.4,1) both; flex-wrap: wrap; }
.answers li:nth-child(odd) { transform: rotate(-1deg); } .answers li:nth-child(even) { transform: rotate(1deg); }
@keyframes deal { from { opacity: 0; transform: translateY(-30px) rotate(-12deg) scale(.6); } }
.answers .pname { flex: 0 1 auto; font-size: 13px; color: #5a4a7a; }
.answers .ans { flex-basis: 100%; font-size: 20px; font-weight: 900; word-break: break-word; }

.votes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 10px 0 20px; }
button.vote { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 10px; background: var(--card2);
  color: var(--text); font-size: 17px; }
button.vote .avatar { width: 56px; height: 56px; font-size: 24px; }
button.vote:hover:not(:disabled) { background: var(--pink); }

.result { padding: 10px 0 6px; }
.verdict { font-family: var(--font-display); font-size: clamp(44px, 10vw, 84px); line-height: 1; letter-spacing: 2px;
  animation: slam .7s cubic-bezier(.2,1.8,.4,1) both; margin-bottom: 10px; text-shadow: 5px 5px 0 var(--ink); }
.result.win .verdict { color: var(--green); }
.result.lose .verdict { color: var(--pink); transform: rotate(-3deg); }
@keyframes slam { from { transform: scale(3) rotate(10deg); opacity: 0; } }
.result h2 { font-family: var(--font); font-weight: 600; font-size: 20px; } .result h2 b { color: var(--yellow); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.pair > div { background: rgba(10,3,22,.35); border-radius: 18px; padding: 14px; border: 3px solid var(--cyan); }
.pair > div:last-child { border-color: var(--pink); }
.pair .prompt { font-size: clamp(16px, 2.6vw, 22px); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; text-align: left; }
.plain li { display: flex; gap: 8px; padding: 6px 0; border-bottom: 1px dashed rgba(255,255,255,.12); }
.board li { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 900; padding: 12px 16px; margin-bottom: 8px;
  background: rgba(10,3,22,.35); border-radius: 16px; animation: rise .5s both; }
.board li.winner { background: var(--yellow); color: var(--ink); font-size: 26px; transform: scale(1.03); }
.board li.winner .score { color: var(--ink); }
.rank { font-family: var(--font-display); width: 36px; }

.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 3px; animation: fall linear both; }
@keyframes fall { to { top: 110%; transform: rotate(720deg) translateX(40px); } }

/* Lobby */
.settings { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; text-align: left; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip { flex-direction: row; align-items: center; gap: 8px; background: rgba(10,3,22,.35); border: 2px solid rgba(255,255,255,.12);
  padding: 8px 12px; border-radius: 999px; color: var(--text); cursor: pointer; transition: .15s; }
.chip:has(input:checked) { background: var(--cyan); color: var(--ink); border-color: var(--ink); }
.chip input { width: 18px; height: 18px; }
.chip small { opacity: .7; font-weight: 800; }

/* Chat */
.chat { display: flex; flex-direction: column; gap: 10px; }
.chatlog { height: 380px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding-right: 4px; }
.msg { background: rgba(10,3,22,.3); padding: 8px 12px; border-radius: 14px 14px 14px 4px; word-break: break-word; animation: rise .25s both; }
.msg b { color: var(--yellow); margin-right: 4px; }

/* Admin & Verlauf */
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; padding: 8px; }
td { padding: 10px 8px; border-top: 1px solid rgba(255,255,255,.08); vertical-align: middle; }
tr.revoked { opacity: .45; }
.newtoken { margin-top: 14px; padding: 14px; background: var(--green); color: var(--ink); border: 3px solid var(--ink); border-radius: 16px;
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.newtoken code { background: #fff; padding: 6px 10px; border-radius: 8px; font-size: 14px; word-break: break-all; }
.hgame { border-top: 1px solid rgba(255,255,255,.1); padding: 12px 0; }
.hhead { cursor: pointer; } .hhead:hover b { color: var(--yellow); }
.hround { margin: 10px 0 0 14px; padding: 10px 14px; background: rgba(10,3,22,.3); border-radius: 14px; }

/* Handy */
@media (max-width: 1100px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .stage { grid-column: 1 / -1; order: -1; }
}
@media (max-width: 680px) {
  .grid { grid-template-columns: 1fr; }
  .stage { min-height: 0; padding: 54px 16px 20px; }
  .chatlog { height: 220px; }
  .pair, .cols { grid-template-columns: 1fr; }
  .brand { font-size: 22px; }
  .row { flex-direction: column; }
  .votes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  button.vote .avatar { width: 44px; height: 44px; font-size: 20px; }
  .answers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .answers .ans { font-size: 17px; }
  .answers .avatar { width: 28px; height: 28px; font-size: 13px; }
  .secret { padding: 22px 16px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ================= v0.2.0 ================= */
:root { --ease: cubic-bezier(.22, 1, .36, 1); --spring: cubic-bezier(.34, 1.56, .64, 1); }

/* Ansichten weich einblenden */
.view-enter > main { animation: viewIn .45s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(12px); } }

/* Avatare als Bilder */
img.avatar { width: 40px; height: 40px; padding: 0; background: var(--card); border-radius: 50%; border: 3px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink); display: block; transition: transform .25s var(--spring); }
.players li:hover img.avatar { transform: rotate(-8deg) scale(1.08); }
.players li { cursor: pointer; transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease); }
.players li:hover { background: rgba(255,255,255,.07); transform: translateX(3px); }
.answers img.avatar { width: 32px; height: 32px; }
button.vote img.avatar { width: 64px; height: 64px; }
.board img.avatar { width: 40px; height: 40px; }
.board .pname { flex: 1; }
.board li.winner img.avatar { width: 52px; height: 52px; animation: crown 1.2s var(--spring) .4s both; }
@keyframes crown { from { transform: scale(.3) rotate(-30deg); } }

/* Animationen nur, wenn wirklich etwas neu ist (kein Neu-Abspielen bei jedem Update) */
.answers li { animation: none; }
.stage.enter .answers li, .answers li.new { animation: deal .55s var(--spring) both; }
.msg { animation: none; }
.msg.new { animation: msgIn .35s var(--spring) both; }
@keyframes msgIn { from { opacity: 0; transform: translateX(-14px) scale(.96); } }
.board li { animation: none; }
.stage.enter .board li { animation: rise .6s var(--spring) both; }
.secret { animation: none; }
.stage.enter .secret { animation: flip .8s var(--spring) both; }
.role.imp { animation: none; }
.stage.enter .role.imp { animation: shake .7s .6s both; }
.verdict { animation: none; }
.stage.enter .verdict { animation: slam .8s var(--spring) .9s both; }
.stage.enter .result h2 { animation: rise .5s var(--ease) 1.4s both; }
.stage.enter .pair, .stage.enter .cols { animation: rise .6s var(--ease) 1.6s both; }
.confetti i { animation-name: fall; animation-timing-function: cubic-bezier(.3,.6,.5,1); }
.stage:not(.enter) .confetti { display: none; }
.stage.enter > * { animation-timing-function: var(--spring); }
.votes button.vote { transition: transform .2s var(--spring), background .2s var(--ease), box-shadow .2s var(--ease); }
.stage.enter .votes button.vote { animation: rise .45s var(--spring) both; }
button.vote.picked { background: var(--pink); transform: translate(-2px, -2px) scale(1.04); box-shadow: 6px 6px 0 var(--ink); }
button.vote.picked::after { content: "Deine Stimme"; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; font-weight: 900; color: #fff; }
button { transition: transform .12s var(--spring), box-shadow .12s var(--ease), filter .2s var(--ease), background .2s var(--ease); }

/* Punkte springen, wenn sie steigen */
.players li.bump .score { animation: bump .8s var(--spring); display: inline-block; }
@keyframes bump { 30% { transform: scale(1.9) rotate(-8deg); color: var(--green); } }

/* Großer Phasen-Wechsel quer über den Bildschirm */
.flash { position: fixed; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 40; }
.flash span { font-family: var(--font-display); font-size: clamp(42px, 11vw, 120px); color: var(--yellow); letter-spacing: 3px;
  text-shadow: 5px 5px 0 var(--pink), 10px 10px 0 var(--ink); white-space: nowrap; animation: sweep 1.25s var(--ease) both; }
.flash::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 34vh; transform: translateY(-50%) skewY(-4deg);
  background: linear-gradient(90deg, transparent, rgba(255,61,127,.35), transparent); animation: band 1.25s var(--ease) both; }
@keyframes sweep { 0% { transform: translateX(-60vw) skewX(-12deg); opacity: 0; } 25% { transform: translateX(0) skewX(-6deg); opacity: 1; }
  70% { transform: translateX(0) scale(1.04); opacity: 1; } 100% { transform: translateX(60vw) skewX(-12deg); opacity: 0; } }
@keyframes band { 0%, 100% { opacity: 0; } 30%, 70% { opacity: 1; } }

/* Zeitleiste unter der Raumleiste */
.bar { position: relative; overflow: hidden; }
.timebar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.06); }
.timebar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--cyan), var(--green));
  transition: width .25s linear, background .3s; border-radius: 0 4px 4px 0; }
.timebar i.urgent { background: linear-gradient(90deg, var(--pink), var(--orange)); }

/* Erklärungen in der Lobby */
small.help { display: block; font-size: 12.5px; line-height: 1.4; color: var(--muted); opacity: .85; font-weight: 400; margin-top: 2px; }
label.check, label.check:has(input[type=checkbox]) { flex-direction: column; align-items: flex-start; justify-content: center; }
label.check > span { display: flex; align-items: center; gap: 8px; color: var(--text); }
.muted.small { font-size: 13px; }
.waiting .dots i { font-style: normal; animation: dot 1.2s infinite; display: inline-block; }
.waiting .dots i:nth-child(2) { animation-delay: .2s; } .waiting .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }

/* Kopfzeile */
.top nav a.on { border-color: var(--yellow); color: var(--yellow); }
.top nav a.icon { font-size: 18px; padding: 6px 10px; }
.me-link { display: flex !important; align-items: center; gap: 8px; padding: 4px 14px 4px 4px !important; }
.me-link img.avatar { width: 32px; height: 32px; border-width: 2px; box-shadow: none; }
.ghostlink { background: transparent !important; color: var(--muted) !important; }
.foot { text-align: center; color: var(--muted); opacity: .5; font-size: 12px; padding: 20px 0 28px; letter-spacing: 1px; }

/* Profil */
.card.profile { max-width: 760px; width: 100%; margin: 0 auto; display: grid; gap: 14px; }
.profile-head { display: flex; align-items: center; gap: 18px; }
.profile-head img.avatar { width: 96px; height: 96px; border-width: 4px; box-shadow: 5px 5px 0 var(--ink); animation: pop .5s var(--spring); }
.big-nick { font-family: var(--font-display); font-size: 26px; color: var(--yellow); }
.av-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 10px; }
button.av-pick { padding: 4px; background: transparent; border: 3px solid transparent; box-shadow: none; border-radius: 50%; }
button.av-pick img.avatar { width: 100%; height: auto; aspect-ratio: 1; }
button.av-pick:hover { transform: scale(1.1) rotate(-4deg); }
button.av-pick.on { border-color: var(--yellow); background: rgba(255,210,63,.15); transform: scale(1.08); }
textarea { font: inherit; font-weight: 600; color: var(--ink); background: var(--text); border: 3px solid var(--ink); border-radius: 14px;
  padding: 12px 14px; outline: none; width: 100%; resize: vertical; }
textarea:focus { box-shadow: 0 0 0 4px var(--cyan); }
.row.end { justify-content: flex-end; }
.welcome { background: rgba(124,255,107,.14); border: 3px dashed var(--green); border-radius: 16px; padding: 12px 16px; }

/* Profil-Popup im Raum */
.overlay { position: fixed; inset: 0; z-index: 30; background: rgba(10,3,22,.6); display: grid; place-items: center; padding: 16px;
  backdrop-filter: blur(4px); }
.overlay.pop { animation: fadeIn .25s var(--ease) both; }
.overlay.pop .popup { animation: pop .45s var(--spring) both; }
@keyframes fadeIn { from { opacity: 0; } }
.popup { width: min(380px, 100%); text-align: center; position: relative; }
.popup .close { position: absolute; top: 10px; right: 10px; }
.pp-avatar img.avatar { width: 120px; height: 120px; margin: 0 auto 10px; border-width: 4px; box-shadow: 5px 5px 0 var(--ink); }
.pp-real { color: var(--muted); font-weight: 600; margin-top: -8px; }
.pp-bio { background: rgba(10,3,22,.35); border-radius: 14px; padding: 12px; text-align: left; word-break: break-word; }
.pp-meta { color: var(--muted); }

/* Admin: Fragepool */
.row.upload { flex-wrap: wrap; align-items: center; }
.row.upload input[type=file] { flex: 1; min-width: 200px; background: rgba(255,255,255,.9); }
.importres { margin-top: 12px; padding: 12px 14px; background: rgba(124,255,107,.14); border-radius: 14px; border: 2px solid var(--green); }
.errs { color: var(--orange); font-size: 13px; }
details { margin: 14px 0; } summary { cursor: pointer; font-weight: 800; color: var(--cyan); }
pre { background: rgba(10,3,22,.5); padding: 12px; border-radius: 12px; overflow-x: auto; font-size: 13px; }

@media (max-width: 680px) {
  .me-link span { display: none; }
  .profile-head img.avatar { width: 72px; height: 72px; }
  img.avatar { width: 34px; height: 34px; }
}

/* v0.3.0: "Was ist neu" */
.foot a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.foot:hover { opacity: .85; }
.popup.news { width: min(520px, 100%); text-align: left; max-height: min(80vh, 720px); display: flex; flex-direction: column; }
.popup.news h2 { margin: 0 0 6px; }
.news-list { overflow-y: auto; margin: 8px -4px 14px; padding: 0 4px; }
.news-ver { margin: 14px 0; }
.news-ver ul { margin: 8px 0 0; padding-left: 20px; }
.news-ver li { margin: 6px 0; line-height: 1.45; }
.overlay.pop .news-ver { animation: rise .5s var(--spring) both; }
.overlay.pop .news-ver:nth-child(2) { animation-delay: .08s; }
.overlay.pop .news-ver:nth-child(3) { animation-delay: .16s; }

/* v0.4.0: Einladungslink */
.newtoken small.help { color: var(--ink); opacity: .75; }
.newtoken .row { gap: 8px; }
.newtoken button.ghost { color: var(--ink); border-color: var(--ink); }

/* v0.5.0: Einladen */
#inv-name { flex: 1; min-width: 180px; }
ul.invites { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
ul.invites li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: rgba(0,0,0,.18); border-radius: 14px; }
ul.invites li .pname { flex: 1; font-weight: 800; }
ul.invites img.avatar { width: 34px; height: 34px; }
.tag.on { background: var(--green); color: var(--ink); }
.tag.off { background: var(--pink, #ff4d8d); }
main.page > .card + .card { margin-top: 18px; }

/* v0.6.0: Seite füllt genau den Bildschirm, Fußzeile ohne Scrollen sichtbar */
#app { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
#app > .view { flex: 1; display: flex; flex-direction: column; }
#app > .view > main { width: 100%; }
main.center { min-height: 0; flex: 1; }
.foot { padding: 12px 0 16px; }
.foot a { margin: 0 2px; }
.card-foot { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 18px; padding-top: 14px;
  border-top: 2px dashed rgba(255,255,255,.12); font-size: 14px; font-weight: 700; }
.card-foot a { color: var(--muted); text-decoration: none; }
.card-foot a:hover { color: var(--yellow); }

/* Fehler melden */
.popup.bug { width: min(480px, 100%); text-align: left; }
.popup.bug textarea { width: 100%; margin-top: 10px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
button.chip { padding: 7px 12px; font-size: 14px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--text); border: 2px solid transparent; box-shadow: none; }
button.chip.on { border-color: var(--yellow); color: var(--yellow); }
.bug-thanks { font-size: 54px; text-align: center; }
.popup.bug h2 { margin: 0 0 4px; }
ul.bugs { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; }
.bugitem { background: rgba(0,0,0,.2); border-radius: 14px; padding: 12px 14px; }
.bugitem.done { opacity: .55; }
.bughead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bughead .grow { flex: 1; }
.bugmsg { margin: 8px 0 4px; white-space: pre-wrap; line-height: 1.45; }
.bugitem details summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.bugitem ul.plain { font-size: 12.5px; color: var(--muted); word-break: break-word; }

/* Handy: kompakte Kopfzeile in einer Zeile, Karte enger */
@media (max-width: 680px) {
  .top { padding: 10px 12px 4px; gap: 6px; flex-wrap: wrap; }
  .brand { font-size: 20px; text-shadow: 2px 2px 0 var(--pink), 4px 4px 0 var(--ink); flex-shrink: 0; }
  .top nav { width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 4px; justify-content: flex-start; padding-bottom: 2px; }
  .top nav::-webkit-scrollbar { display: none; }
  .top nav a { padding: 6px 10px; font-size: 13px; white-space: nowrap; flex-shrink: 0; }
  .top nav .me-link span { display: none; }
  .top nav .me-link img.avatar { width: 22px; height: 22px; }
  main.center { padding: 8px 12px; }
  main.center .card.narrow { padding: 20px 18px; }
  main.center .card.narrow h1 { font-size: 26px; margin-bottom: 6px; }
  .card-foot { margin-top: 12px; padding-top: 10px; gap: 14px; }
}

/* v0.7.0: Wartung */
.maint { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px;
  background: rgba(10,3,22,.82); backdrop-filter: blur(6px); animation: fadein .3s ease both; }
.maint-card { max-width: 420px; text-align: center; background: var(--card, #2a1450); border: 3px solid var(--ink); border-radius: 24px;
  padding: 28px 24px; box-shadow: var(--shadow); animation: pop .45s var(--spring) both; }
.maint-card h2 { font-family: var(--font-display); color: var(--yellow); margin: 8px 0; }
.maint-card p { color: var(--muted); line-height: 1.5; margin: 0; }
.maint-gear { font-size: 56px; display: inline-block; animation: wobble 1.6s ease-in-out infinite; }
@keyframes wobble { 50% { transform: rotate(-18deg) scale(1.08); } }
.maint-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.maint-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); animation: dot 1.2s infinite; }
.maint-dots i:nth-child(2) { animation-delay: .2s; } .maint-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes fadein { from { opacity: 0; } }

/* ============ v0.7.0 ============ */
/* Anmelden und Konto einrichten */
.authform { display: flex; flex-direction: column; gap: 12px; text-align: left; margin: 10px 0 6px; }
.authform label { display: flex; flex-direction: column; gap: 6px; font-weight: 800; }
.authform input { width: 100%; }
.authform button[type=submit] { margin-top: 4px; }
.codebox { margin-top: 18px; text-align: left; }
.codebox summary { cursor: pointer; font-weight: 800; color: var(--cyan); }
.codebox .row { margin-top: 6px; }
.setup-head { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.setup-head img.avatar { width: 72px; height: 72px; }
.setup-head h1 { margin: 4px 0 0; }
.pwrules { list-style: none; padding: 10px 14px; margin: -4px 0 0; border-radius: 14px; background: rgba(10,3,22,.35);
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 12px; font-size: 13.5px; color: var(--muted); }
.pwrules li.ok { color: var(--green); font-weight: 800; }
small.help.warn { color: var(--orange); opacity: 1; font-weight: 700; }

/* Timer: kleines „s“ in normaler Schrift (nicht mit 5 verwechseln) */
.timer .unit { font-family: var(--font); font-size: .7em; font-weight: 800; text-transform: none; margin-left: 2px; }
.timer.free { background: var(--cyan); }

/* Erklärrunde */
.spotlight { display: flex; align-items: center; gap: 16px; text-align: left; margin: 8px auto 14px; max-width: 560px; padding: 16px 20px;
  background: var(--yellow); color: var(--ink); border: 4px solid var(--ink); border-radius: 22px; box-shadow: var(--shadow); animation: pop .45s var(--spring) both; }
.spotlight img.avatar { width: 64px; height: 64px; flex: none; }
.spotlight .label { color: rgba(10,3,22,.65); }
.spotlight .big-nick { font-family: var(--font-display); font-size: 22px; color: var(--ink); }
.spotlight .prompt { font-size: 22px; font-weight: 900; margin-top: 4px; }
.answers li.hl { outline: 4px solid var(--yellow); outline-offset: 2px; }

/* Abstimmen direkt auf der Antwortkarte */
.votes.cards { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
button.card-vote { align-items: stretch; text-align: left; background: var(--text); color: var(--ink); padding: 12px 14px; gap: 6px; }
button.card-vote .vwho { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: #5a4a7a; }
button.card-vote .vwho img.avatar { width: 34px; height: 34px; }
button.card-vote .ans { font-size: 20px; font-weight: 900; word-break: break-word; }
button.card-vote .ans.none { font-size: 14px; font-weight: 600; color: #8a7aa8; font-style: italic; }
button.card-vote:hover:not(:disabled) { background: var(--yellow); }
button.card-vote.picked { background: var(--pink); color: #fff; }
button.card-vote.picked .vwho, button.card-vote.picked .ans.none { color: #fff; }
button.card-vote.picked::after { align-self: center; }
button.card-vote:disabled { opacity: .9; cursor: default; }
@media (max-width: 640px) { .votes.cards { grid-template-columns: 1fr; } button.card-vote .ans { font-size: 18px; } }

/* Endstand mit Gleichstand */
.winners { font-size: 18px; margin: -4px 0 14px; }
.winners b { color: var(--yellow); }

/* Kein Wort für den Imposter */
.secret.noword .prompt { letter-spacing: 6px; }

/* Pikante Kategorien */
.chip.spicy { border-color: rgba(255,61,127,.6); }
.chip.spicy:has(input:checked) { background: var(--pink); color: #fff; }

/* Admin */
.adminroom { padding: 10px 0; border-top: 2px dashed rgba(255,255,255,.1); }
.adminroom:first-of-type { border-top: 0; }
td.actions { white-space: nowrap; }
td.actions .tiny { margin: 2px; }
.popup.wide { width: min(560px, 100%); text-align: left; max-height: 90vh; overflow: auto; }
.av-grid.small { grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; margin: 8px 0 14px; }
iframe.snap { width: 100%; height: 520px; border: 3px solid var(--ink); border-radius: 14px; background: var(--bg); margin: 10px 0; }
pre.snapjson { max-height: 320px; overflow: auto; font-size: 12px; background: rgba(10,3,22,.5); padding: 10px; border-radius: 10px; }
.hchat { margin-top: 8px; }
.hchat .chatlog { max-height: 260px; }
.msg.blocked { opacity: .55; }
.check.inline { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; margin-left: 10px; }
#badwords { width: 100%; font-family: ui-monospace, monospace; font-size: 14px; }
.settings .field { font-weight: 600; color: var(--muted); font-size: 14px; display: flex; flex-direction: column; gap: 6px; }
.row-inline { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.row-inline input[type=number] { flex: 1; min-width: 0; }
.row-inline .check.inline { margin-left: 0; white-space: nowrap; color: var(--text); }
.row-inline label.check.inline { flex-direction: row; align-items: center; }
a[data-action=to-login] { color: var(--cyan); font-weight: 700; }
.news-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.news-name { margin: 0; font-family: var(--font-display); font-size: 20px; letter-spacing: .5px; color: var(--yellow); line-height: 1.15; }

/* ================= Spieleabend: Hub ================= */
a.brand { text-decoration: none; display: inline-flex; flex-direction: column; line-height: 1; }
.brand-sub { font-family: var(--font); font-weight: 900; font-size: 13px; letter-spacing: 3px; color: var(--cyan);
  text-shadow: 2px 2px 0 var(--ink); text-transform: uppercase; margin-top: 4px; transform: rotate(1deg); }
.brand-sub.zk-sub { color: var(--orange); }
.hub { max-width: 920px; margin: 10px auto 30px; padding: 0 16px; display: flex; flex-direction: column; gap: 18px; }
.hub-hello { display: flex; align-items: center; gap: 16px; }
.hub-hello img.avatar { width: 72px; height: 72px; }
.hub-hello h1 { margin: 0; }
.hub-hello p { margin: 4px 0 0; }
.hub-back { display: flex; gap: 12px; align-items: center; justify-content: space-between; background: rgba(255,210,63,.15);
  border: 2px dashed var(--yellow); border-radius: 16px; padding: 10px 14px; font-weight: 800; }
.hub-games { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.game-tile { all: unset; cursor: pointer; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 8px;
  padding: 26px 24px 22px; min-height: 230px; border-radius: var(--radius); border: 4px solid var(--ink); box-shadow: var(--shadow);
  color: var(--ink); transition: transform .25s var(--spring), box-shadow .25s var(--ease); }
.game-tile:hover, .game-tile:focus-visible { transform: translate(-3px, -4px) rotate(-1deg); box-shadow: 10px 12px 0 var(--ink); }
.game-tile:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.gt-imposter { background: linear-gradient(135deg, var(--pink), #ff7aa8 60%, var(--yellow)); }
.gt-zeitklang { background: linear-gradient(135deg, var(--cyan), #6be4ff 45%, var(--orange)); }
.gt-icon { font-size: 54px; line-height: 1; height: 62px; display: flex; align-items: center; }
.gt-name { font-family: var(--font-display); font-size: 34px; letter-spacing: 1px; text-shadow: 2px 2px 0 rgba(255,255,255,.5); }
.gt-desc { font-weight: 700; font-size: 16px; max-width: 30ch; }
.gt-meta { margin-top: auto; font-weight: 900; font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; opacity: .75; }
.hub-join { max-width: 460px; width: 100%; margin: 0 auto; }
.card-foot.center { justify-content: center; gap: 20px; display: flex; }

/* Schallplatte (Logo, Kachel, Abspielknopf) */
.disc { display: inline-block; width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--ink);
  background: radial-gradient(circle, var(--orange) 0 18%, var(--ink) 19% 22%, #1d1d2b 23% 100%),
    repeating-radial-gradient(circle, transparent 0 3px, rgba(255,255,255,.06) 3px 4px);
  background-blend-mode: normal; box-shadow: 3px 3px 0 var(--ink); position: relative; }
.disc::after { content: ""; position: absolute; inset: 8%; border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 4px, rgba(255,255,255,.07) 4px 5px); }
.disc::before { content: ""; position: absolute; left: 50%; top: 50%; width: 22%; height: 22%; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--orange); border: 2px solid var(--ink); z-index: 1; }
.game-tile:hover .disc, body.zk-playing .zk-disc .disc { animation: spin 2.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ================= Zeitklang ================= */
.zk-home .zk-logo { display: flex; align-items: center; justify-content: center; gap: 14px; }
.zk-home .zk-logo h1 { margin: 0; color: var(--orange); text-shadow: 3px 3px 0 var(--ink); }
.zk-home .zk-logo .disc { animation: spin 4s linear infinite; }
.card-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.zk .phase-banner.zk-banner { background: var(--orange); }
.zk-notice { background: rgba(255,138,61,.18); border: 2px dashed var(--orange); padding: 10px 14px; border-radius: 14px; font-weight: 700; }
.zk-hint { font-weight: 800; font-size: 18px; margin: 8px 0 4px; }

.zk-player { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 4px 0 8px; }
.zk-disc { all: unset; cursor: pointer; position: relative; width: 120px; height: 120px; display: grid; place-items: center; }
.zk-disc .disc { width: 120px; height: 120px; }
.zk-icon { position: absolute; z-index: 2; width: 0; height: 0; border-left: 22px solid #fff; border-top: 14px solid transparent;
  border-bottom: 14px solid transparent; margin-left: 6px; filter: drop-shadow(2px 2px 0 var(--ink)); transition: opacity .2s; }
body.zk-playing .zk-icon { opacity: 0; }
.zk-eq { display: flex; gap: 4px; height: 22px; align-items: flex-end; }
.zk-eq i { width: 6px; height: 4px; background: var(--orange); border: 1px solid var(--ink); border-radius: 2px; }
body.zk-playing .zk-eq i { animation: eq .8s ease-in-out infinite alternate; }
.zk-eq i:nth-child(2) { animation-delay: -.3s !important; } .zk-eq i:nth-child(3) { animation-delay: -.55s !important; }
.zk-eq i:nth-child(4) { animation-delay: -.15s !important; } .zk-eq i:nth-child(5) { animation-delay: -.65s !important; }
@keyframes eq { from { height: 4px; } to { height: 22px; } }
body.zk-playing .zk-player small { visibility: hidden; }

.zk-timeline { display: flex; align-items: center; gap: 0; overflow-x: auto; padding: 14px 6px 18px; margin: 6px -6px;
  scroll-snap-type: x proximity; scrollbar-width: thin; }
.zk-card { flex: 0 0 112px; min-height: 150px; border: 3px solid var(--ink); border-radius: 16px; box-shadow: 4px 4px 0 var(--ink);
  padding: 8px; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--ink); background: var(--yellow);
  scroll-snap-align: center; position: relative; text-align: center; }
.zk-cover { width: 56px; height: 56px; border-radius: 10px; border: 2px solid var(--ink); object-fit: cover; margin-bottom: 2px; }
.zk-year { font-family: var(--font-display); font-size: 26px; line-height: 1.05; }
.zk-t { font-weight: 900; font-size: 12px; line-height: 1.15; max-height: 2.4em; overflow: hidden; }
.zk-a { font-weight: 600; font-size: 11px; opacity: .8; line-height: 1.15; max-height: 2.4em; overflow: hidden; }
.zk-card.new { animation: cardIn .7s var(--spring) both; outline: 4px solid var(--green); outline-offset: 2px; }
@keyframes cardIn { from { transform: translateY(-40px) rotate(-12deg) scale(.6); opacity: 0; } }
.zk-card.mystery { background: repeating-linear-gradient(45deg, #fff6e9 0 10px, #ffe3c4 10px 20px); flex-basis: 90px; min-height: 120px;
  justify-content: center; animation: wobble 1.4s ease-in-out infinite; }
@keyframes wobble { 50% { transform: rotate(3deg) translateY(-3px); } }
/* Farbe je Jahrzehnt */
.d1950 { background: #ffb3c7; } .d1960 { background: #ffd23f; } .d1970 { background: #ff9f5a; } .d1980 { background: #ff6bd6; }
.d1990 { background: #7cff6b; } .d2000 { background: #3ddcff; } .d2010 { background: #b9a2ff; } .d2020 { background: #6bffea; }

.zk-gap { all: unset; flex: 0 0 auto; min-width: 26px; min-height: 120px; display: grid; place-items: center; cursor: default; }
button.zk-gap { cursor: pointer; min-width: 42px; }
button.zk-gap span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 22px;
  border: 3px dashed var(--muted); color: var(--muted); transition: .2s var(--spring); }
button.zk-gap:hover span { border-color: var(--yellow); color: var(--yellow); transform: scale(1.2); }
button.zk-gap.on { padding: 0 6px; }
.zk-gap.static { min-width: 14px; }
.zk-gap.wrong span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--pink);
  border: 3px solid var(--ink); font-weight: 900; color: #fff; margin: 0 6px; }
.zk-guess { display: flex; gap: 10px; max-width: 560px; margin: 4px auto 12px; }
.zk-guess input { flex: 1; min-width: 0; }
.row.center { justify-content: center; align-items: center; flex-wrap: wrap; }

.zk-reveal { display: flex; align-items: center; gap: 18px; justify-content: center; text-align: left; margin: 0 auto 10px;
  padding: 16px 22px; border: 4px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink);
  max-width: 520px; animation: flipIn .7s var(--spring) both; }
@keyframes flipIn { from { transform: rotateY(90deg) scale(.8); opacity: 0; } }
.zk-reveal img { width: 110px; height: 110px; border-radius: 14px; border: 3px solid var(--ink); object-fit: cover; }
.zk-bigyear { font-family: var(--font-display); font-size: 54px; line-height: 1; }
.zk-bigtitle { font-weight: 900; font-size: 22px; }
.zk-bigartist { font-weight: 700; font-size: 17px; opacity: .85; }
.zk-verdict { font-size: 19px; font-weight: 900; margin: 6px 0 0; }
.zk-verdict.ok { color: var(--green); } .zk-verdict.bad { color: var(--pink); } .zk-verdict.none { color: var(--muted); }
.zk-star { color: var(--yellow); font-weight: 900; }
.zk-res { font-weight: 900; font-size: 18px; } .zk-res.ok { color: var(--green); } .zk-res.bad { color: var(--pink); } .zk-res.none { color: var(--muted); }
.zk .players li { position: relative; overflow: hidden; }
.zk .players .score small { font-size: 12px; opacity: .6; }
.zk-progress { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--orange); transition: width .6s var(--ease); }
.zk-board .zk-years { display: flex; gap: 3px; flex-wrap: wrap; flex: 2; justify-content: flex-end; }
.zk-board .zk-years i { font-style: normal; font-size: 11px; font-weight: 900; color: var(--ink); padding: 2px 5px; border-radius: 6px; border: 2px solid var(--ink); }
.zk-board .score small { font-size: 13px; color: var(--yellow); }
.board li.winner .score small { color: var(--ink); }

/* Admin: Songs */
.zk-hits { list-style: none; padding: 0; margin: 10px 0; display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow-y: auto; }
.zk-hits li { display: flex; align-items: center; gap: 10px; background: rgba(10,3,22,.35); padding: 8px; border-radius: 12px; }
.zk-hits img { width: 48px; height: 48px; border-radius: 8px; }
.zk-hits li > div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.zk-hits audio { height: 32px; max-width: 200px; }
.zk-songs input.yr { width: 80px; }
.zk-songs tr.off { opacity: .45; }
.zk-songs audio { height: 30px; width: 180px; vertical-align: middle; }
.nowrap { white-space: nowrap; }

@media (max-width: 700px) {
  .zk-card { flex-basis: 92px; min-height: 130px; }
  .zk-year { font-size: 21px; }
  .zk-reveal { flex-direction: column; text-align: center; }
  .zk-guess { flex-direction: column; }
  .gt-name { font-size: 28px; }
  .game-tile { min-height: 190px; }
}
.zk-timeline > :first-child { margin-left: auto; }
.zk-timeline > :last-child { margin-right: auto; }
.zk .players li.me { border: 2px solid var(--yellow); }
.zk .players li .pname { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
