/* SCHLUCKAUF – Mobile First. Basis ist das Handy, ab 768px wird es nur großzügiger. */
:root {
  --ink: #17120e;
  --paper: #fff6e0;
  --paper-2: #ffe9b8;
  --beer: #ffb800;
  --beer-dark: #e88a00;
  --foam: #fffdf5;
  --pink: #ff4f8b;
  --teal: #11c5b0;
  --blue: #3d7bff;
  --red: #ff4438;
  --lime: #b6e12b;
  --bg: var(--beer);
  --line: 3px solid var(--ink);
  --shadow: 4px 4px 0 var(--ink);
  --radius: 16px;
  --display: 'Bowlby One', 'Arial Black', Impact, sans-serif;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: 16px;
}

* { box-sizing: border-box; margin: 0; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  font-weight: 800;
  color: var(--ink);
  background-color: var(--bg);
  background-image: radial-gradient(rgba(23, 18, 14, .13) 1.5px, transparent 1.6px);
  background-size: 16px 16px;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  transition: background-color .4s;
}
body.dark { --bg: #17120e; color: var(--paper); background-image: radial-gradient(rgba(255, 184, 0, .13) 1.5px, transparent 1.6px); }
#app { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; overflow-x: clip; }
[hidden] { display: none !important; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }

/* ---------- HUD ---------- */
#hud {
  display: flex; align-items: center; gap: 8px;
  padding: calc(8px + env(safe-area-inset-top)) calc(var(--gutter) + env(safe-area-inset-right)) 8px calc(var(--gutter) + env(safe-area-inset-left));
  font-size: 14px;
}
.pill {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--paper); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 99px;
  padding: 4px 10px; white-space: nowrap; font-weight: 900;
}
#hud .spacer { flex: 1; }
#hud .clock { font-family: var(--display); font-size: 20px; min-width: 44px; text-align: center; background: var(--ink); color: var(--beer); }
#hud .clock.urgent { background: var(--red); color: #fff; animation: pulse .5s infinite alternate; }
#hud .icon { width: 36px; height: 36px; padding: 0; justify-content: center; }
#timerbar { height: 8px; background: rgba(23, 18, 14, .22); }
#timerbar i { display: block; height: 100%; background: var(--ink); transform-origin: left; }
body.dark #timerbar { background: rgba(255, 255, 255, .15); }
body.dark #timerbar i { background: var(--beer); }

/* ---------- Grundlayout ---------- */
#screen {
  flex: 1; width: 100%; max-width: 560px; margin: 0 auto;
  padding: 8px calc(var(--gutter) + env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) calc(var(--gutter) + env(safe-area-inset-left));
  display: flex; flex-direction: column; gap: 14px;
}
.enter { animation: pop-in .35s cubic-bezier(.2, 1.4, .4, 1); }
.center { align-items: center; justify-content: center; text-align: center; }
.grow { flex: 1; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; gap: 10px; align-items: center; }
.row > .btn, .row > .field { flex: 1; min-width: 0; }

h1, h2, h3, .display { font-family: var(--display); font-weight: 400; line-height: 1.05; letter-spacing: .01em; }
h1 { font-size: clamp(34px, 11vw, 56px); }
h2 { font-size: clamp(26px, 8vw, 40px); }
h3 { font-size: 20px; }
p { line-height: 1.35; }
.muted { opacity: .72; font-weight: 700; font-size: 14px; }

.card {
  background: var(--paper); color: var(--ink);
  border: var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 14px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 10px 18px;
  background: var(--paper); color: var(--ink);
  border: var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-family: var(--display); font-size: 19px; line-height: 1.1; text-align: center;
  transition: transform .07s, box-shadow .07s;
  user-select: none; -webkit-user-select: none;
}
.btn:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn:disabled { opacity: .55; box-shadow: none; cursor: default; }
.btn.primary { background: var(--ink); color: var(--beer); box-shadow: 4px 4px 0 rgba(23, 18, 14, .35); }
.btn.go { background: var(--lime); }
.btn.hot { background: var(--pink); }
.btn.small { min-height: 44px; font-size: 15px; padding: 6px 12px; }
.btn.wide { width: 100%; }
body.dark .btn { box-shadow: 4px 4px 0 var(--beer); }
body.dark .btn.primary { background: var(--beer); color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.field {
  width: 100%; min-height: 54px; padding: 10px 14px;
  background: #fff; color: var(--ink);
  border: var(--line); border-radius: var(--radius);
  font-size: 18px; /* mind. 16px, sonst zoomt iOS beim Tippen rein */
  font-weight: 800; outline: none;
}
.field:focus { box-shadow: 0 0 0 3px var(--pink); }
textarea.field { min-height: 92px; resize: none; }
.label { font-size: 14px; font-weight: 900; margin-bottom: 4px; display: block; }

/* ---------- Spieler ---------- */
.avatar {
  display: inline-grid; place-items: center; flex: none;
  width: 40px; height: 40px; font-size: 22px;
  background: var(--c, var(--beer));
  border: 2.5px solid var(--ink); border-radius: 50%;
}
.avatar.offline { filter: grayscale(1); opacity: .55; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--paper); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 99px;
  padding: 2px 10px 2px 2px; font-size: 14px; font-weight: 900; max-width: 100%;
}
.chip .avatar { width: 28px; height: 28px; font-size: 15px; border-width: 2px; }
.chip .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip.ok { background: var(--lime); }
.chip.off { opacity: .55; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Startseite ---------- */
.logo { text-align: center; padding: 14px 0 4px; position: relative; }
.logo .word {
  font-family: var(--display); font-size: clamp(28px, 10.4vw, 72px); line-height: 1;
  color: var(--foam); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill;
  text-shadow: 4px 4px 0 var(--ink);
  display: inline-block; animation: hiccup 3.2s infinite;
}
.logo .sub { margin-top: 10px; font-size: 17px; font-weight: 900; }
.logo .bubble {
  display: inline-block; font-family: var(--display); font-size: 15px;
  background: var(--pink); border: var(--line); border-radius: 99px;
  padding: 3px 12px; transform: rotate(-6deg); margin-bottom: 6px;
}
.feature-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; font-size: 13px; }
.feature-row .pill { font-weight: 800; }
.footnote { text-align: center; font-size: 13px; font-weight: 700; opacity: .8; padding-top: 4px; }

/* ---------- Lobby ---------- */
.room-code { font-family: var(--display); font-size: clamp(44px, 15vw, 68px); letter-spacing: .08em; text-align: center; line-height: 1; }
.link-box { font-size: 13px; word-break: break-all; text-align: center; opacity: .75; cursor: pointer; user-select: all; -webkit-user-select: all; }
.player-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.player-tile {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  background: var(--paper-2); border: 2px solid var(--ink); border-radius: 12px; padding: 6px 8px;
}
.player-tile .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 900; }
.player-tile.empty { background: transparent; border-style: dashed; opacity: .4; justify-content: center; min-height: 56px; }
.badge { font-size: 11px; font-weight: 900; }

/* ---------- Intro ---------- */
.game-emoji { font-size: clamp(48px, 15vw, 96px); line-height: 1; text-align: center; animation: bob 1.6s infinite ease-in-out; }
.round-tag { font-family: var(--display); text-align: center; font-size: 17px; }
.skill-tag { display: block; width: fit-content; margin: 6px auto 0; background: var(--ink); color: var(--paper); border-radius: 99px; padding: 3px 12px; font-size: 13px; font-weight: 800; }
.rules { list-style: none; padding: 0; counter-reset: r; display: flex; flex-direction: column; gap: 10px; }
.rules li { counter-increment: r; display: flex; gap: 10px; align-items: flex-start; font-size: 16px; line-height: 1.3; }
.rules li::before {
  content: counter(r); flex: none; display: grid; place-items: center;
  width: 28px; height: 28px; background: var(--ink); color: var(--paper);
  border-radius: 50%; font-family: var(--display); font-size: 14px;
}
.team { border-radius: 12px; border: var(--line); padding: 8px; background: var(--c); }
.team h3 { color: #fff; -webkit-text-stroke: 1px var(--ink); paint-order: stroke fill; margin-bottom: 6px; }
.teams { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sticky-bottom { position: sticky; bottom: calc(10px + env(safe-area-inset-bottom)); margin-top: auto; z-index: 3; }

/* ---------- Countdown ---------- */
.count-big { font-family: var(--display); font-size: clamp(120px, 45vw, 240px); line-height: 1; animation: slam .8s ease-out; color: var(--foam); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 7px 7px 0 var(--ink); }

/* ---------- Reveal ---------- */
.reveal-list { display: flex; flex-direction: column; gap: 8px; }
.reveal-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--paper); color: var(--ink);
  border: var(--line); border-radius: 14px; padding: 8px 10px;
  animation: slide-in .4s cubic-bezier(.2, 1.3, .4, 1);
}
.reveal-row.winner {
  background: #5fe86a; border-color: #0d3d14;
  box-shadow: 0 0 16px 4px rgba(95, 232, 106, .85);
  animation: slide-in .4s cubic-bezier(.2, 1.3, .4, 1), glow-green 1s .4s infinite alternate ease-in-out;
}
.reveal-row .rank { font-family: var(--display); font-size: 18px; flex: none; min-width: 22px; text-align: center; }
.reveal-row .info { flex: 1; min-width: 0; }
.reveal-row .name { font-weight: 900; overflow-wrap: anywhere; }
.reveal-row .value { font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.reveal-row .quote { font-size: 14px; font-style: italic; overflow-wrap: anywhere; }
.reveal-row .thumb { width: 56px; height: 56px; flex: none; border: 2px solid var(--ink); border-radius: 8px; background: #fff; object-fit: cover; }
.plus { font-family: var(--display); font-size: 18px; flex: none; }
.drum { font-family: var(--display); font-size: clamp(22px, 7vw, 38px); text-align: center; color: var(--beer); animation: shake-x .12s infinite; padding: 8px 0; }
.loser-box {
  background: var(--red); color: #fff; text-align: center;
  border: 3px solid var(--foam); border-radius: 20px; padding: 16px;
  box-shadow: 0 0 24px 8px rgba(255, 68, 56, .9);
  animation: slam .5s ease-out, glow-red .8s .5s infinite alternate ease-in-out;
}
.loser-box h2 { color: #fff; }
.loser-box .names { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 10px 0 4px; }
.loser-box .who { display: flex; flex-direction: column; align-items: center; gap: 2px; font-weight: 900; max-width: 120px; overflow-wrap: anywhere; }
.loser-box .avatar { width: 64px; height: 64px; font-size: 36px; }
.loser-box .loser-note { font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.flash { position: fixed; inset: 0; background: #fff; pointer-events: none; z-index: 40; animation: flash .5s forwards; }

/* ---------- Glücksrad ---------- */
.wheel-wrap { position: relative; width: min(84vw, 46dvh, 440px); aspect-ratio: 1; margin: 6px auto; flex: none; }
.wheel-wrap svg.wheel { width: 100%; height: 100%; display: block; will-change: transform; filter: drop-shadow(5px 5px 0 #000); }
.wheel-pointer {
  position: absolute; left: 50%; top: -14px; width: 36px; height: 44px; margin-left: -18px; z-index: 2;
  transform-origin: 50% 8px; filter: drop-shadow(2px 2px 0 #000);
}
.wheel-pointer.tick { animation: flick .1s; }
.wheel-result { font-family: var(--display); font-size: clamp(30px, 10vw, 46px); text-align: center; color: var(--beer); animation: slam .4s; }

/* ---------- Trinken ---------- */
.mug { position: relative; width: min(46vw, 28dvh, 200px); aspect-ratio: .78; margin: 0 auto; flex: none; }
.mug .glass {
  position: absolute; inset: 0 22% 0 0; overflow: hidden;
  border: 5px solid var(--foam); border-radius: 12px 12px 22px 22px;
  background: rgba(255, 255, 255, .08);
}
.mug .handle {
  position: absolute; right: 0; top: 22%; height: 50%; width: 30%;
  border: 8px solid var(--foam); border-left: 0; border-radius: 0 28px 28px 0;
}
.mug .beer {
  position: absolute; inset: 0; background: linear-gradient(#ffc62c, var(--beer-dark));
  transform-origin: bottom; animation: drain var(--drain, 8s) linear forwards;
}
.mug .foamtop { position: absolute; left: -4%; right: -4%; top: -9px; height: 24px; background: var(--foam); border-radius: 12px; }
.mug .fizz { position: absolute; bottom: 4px; width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .75); animation: fizz 1.6s infinite ease-in; }
.sips-big { font-family: var(--display); font-size: clamp(80px, 30vw, 150px); line-height: .95; color: var(--beer); text-align: center; animation: slam .5s; }
.sips-word { font-family: var(--display); font-size: clamp(22px, 7vw, 32px); text-align: center; color: var(--foam); }
.glasses { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; font-size: 30px; }
.glasses span { animation: pop-in .4s both; }
.drink-names { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.wobble { animation: wobble 1s infinite ease-in-out; }

/* ---------- Scoreboard ---------- */
.score-list { display: flex; flex-direction: column; gap: 8px; }
.score-row {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 10px;
  background: var(--paper); color: var(--ink);
  border: var(--line); border-radius: 14px; padding: 7px 10px; min-height: 58px;
  animation: slide-in .4s both;
}
.score-row.me { outline: 3px solid var(--pink); outline-offset: 1px; }
.score-row .bar { position: absolute; inset: 0 auto 0 0; background: var(--beer); opacity: .55; transform-origin: left; animation: grow-x .8s both; z-index: 0; }
.score-row > *:not(.bar) { position: relative; z-index: 1; }
.score-row .pos { font-family: var(--display); font-size: 20px; min-width: 26px; text-align: center; }
.score-row .info { flex: 1; min-width: 0; }
.score-row .name { font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score-row .small { font-size: 12px; font-weight: 700; }
.score-row .pts { font-family: var(--display); font-size: 24px; }
.score-row .gain { font-family: var(--display); font-size: 14px; background: var(--lime); border: 2px solid var(--ink); border-radius: 99px; padding: 1px 7px; }

/* ---------- Finale ---------- */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 6px; }
.podium .step { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; animation: rise .7s both; }
.podium .block {
  width: 100%; display: grid; place-items: center;
  border: var(--line); border-radius: 12px 12px 0 0;
  font-family: var(--display); font-size: 26px;
}
.podium .p1 .block { height: 120px; background: var(--beer); }
.podium .p2 .block { height: 86px; background: #e6e2d8; }
.podium .p3 .block { height: 62px; background: #e4a671; }
.podium .avatar { width: 54px; height: 54px; font-size: 30px; }
.podium .p1 .avatar { width: 70px; height: 70px; font-size: 40px; }
.podium .name { font-weight: 900; font-size: 14px; text-align: center; overflow-wrap: anywhere; line-height: 1.1; }
.podium .pts { font-size: 12px; font-weight: 800; }
.crown { font-size: 30px; line-height: 1; animation: bob 1.4s infinite ease-in-out; }
.revenge-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 8px 0; border-bottom: 2px dashed rgba(23, 18, 14, .25); animation: slide-in .5s both; }
.revenge-row:last-child { border-bottom: 0; }
.revenge-row .sipline { letter-spacing: 1px; font-size: 18px; }
.award { display: flex; gap: 10px; align-items: center; padding: 5px 0; }
.award .big { font-size: 30px; }

/* ---------- Minigames: gemeinsam ---------- */
.game-head { text-align: center; }
.game-head h2 { font-size: clamp(22px, 7vw, 30px); }
.prompt { font-family: var(--display); font-size: clamp(20px, 6.2vw, 28px); line-height: 1.15; text-align: center; overflow-wrap: anywhere; }
.status { text-align: center; font-weight: 900; }
.feed { display: flex; flex-direction: column; gap: 5px; font-size: 15px; }
.feed .line { display: flex; gap: 6px; align-items: baseline; overflow-wrap: anywhere; animation: pop-in .2s; }
.feed .line b { font-weight: 900; flex: none; }
.send-row { display: flex; gap: 8px; }
.send-row .field { flex: 1; min-width: 0; }
.send-row .btn { flex: none; min-height: 54px; padding: 8px 14px; }
.bars { display: flex; flex-direction: column; gap: 5px; }
.bar-line { display: grid; grid-template-columns: 30px 1fr 42px; align-items: center; gap: 6px; }
.bar-line .avatar { width: 28px; height: 28px; font-size: 15px; border-width: 2px; }
.bar-line .track { height: 14px; background: rgba(23, 18, 14, .16); border-radius: 7px; overflow: hidden; }
.bar-line .fill { height: 100%; background: var(--ink); width: 0; transition: width .4s; border-radius: 7px; }
.bar-line .num { font-family: var(--display); font-size: 14px; text-align: right; }

/* Tipp-Tornado */
.tap-btn {
  width: min(78vw, 46dvh, 380px); aspect-ratio: 1; margin: 0 auto; border-radius: 50%;
  background: var(--pink); border: 5px solid var(--ink); box-shadow: 0 10px 0 var(--ink);
  font-family: var(--display); font-size: clamp(64px, 20vw, 110px); line-height: 1;
  touch-action: none; user-select: none; -webkit-user-select: none; flex: none; color: var(--foam);
  -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill;
}
.tap-btn.hit { transform: translateY(8px); box-shadow: 0 2px 0 var(--ink); }
.tap-btn:disabled { background: #bbb; }

/* Schüttel-Schorle */
.shake-zone {
  flex: 1; min-height: 44dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: rgba(255, 255, 255, .28); border: 4px dashed var(--ink); border-radius: 22px;
  touch-action: none; user-select: none; -webkit-user-select: none; text-align: center; padding: 10px;
}
.shaker { font-size: clamp(90px, 30vw, 150px); line-height: 1; }
.shaker.go { animation: shake-hard .18s; }
.count-num { font-family: var(--display); font-size: clamp(56px, 18vw, 90px); line-height: 1; }

/* Wortjäger */
.tiles { display: flex; justify-content: center; gap: clamp(2px, 1vw, 6px); }
.tile {
  flex: 1 1 0; min-width: 0; max-width: 46px; aspect-ratio: .85;
  display: grid; place-items: center;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 8px;
  font-family: var(--display); font-size: clamp(13px, 5vw, 26px);
  animation: pop-in .3s both;
}
.tile.blank { background: rgba(255, 255, 255, .35); }
.hint-card { background: var(--beer); animation: slam .35s; }

/* Team-Umschreiben */
.role-banner { color: #fff; background: var(--c); border: var(--line); border-radius: 14px; padding: 8px 12px; text-align: center; font-family: var(--display); font-size: 17px; -webkit-text-stroke: 1px var(--ink); paint-order: stroke fill; }
.secret { font-family: var(--display); font-size: clamp(30px, 10vw, 44px); text-align: center; overflow-wrap: anywhere; }

/* Malen */
.paint { width: 100%; max-width: min(100%, 56dvh); margin: 0 auto; aspect-ratio: 1; background: #fff; border: var(--line); border-radius: 12px; touch-action: none; display: block; }
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; max-width: min(100%, 56dvh); margin: 0 auto; }
.tool { min-height: 52px; padding: 4px; font-size: 15px; font-family: var(--body); font-weight: 900; box-shadow: 2px 2px 0 var(--ink); border-radius: 12px; }
.tool.on { background: var(--beer); }

/* Abstimmen */
.vote-card { text-align: left; font-family: var(--body); font-weight: 800; font-size: 17px; min-height: 58px; justify-content: flex-start; overflow-wrap: anywhere; }
.vote-card.mine { opacity: .6; }
.vote-card.chosen { outline: 5px solid var(--lime); outline-offset: -2px; }

/* Stadt, Land, Schluck */
.big-letter {
  width: 76px; height: 76px; margin: 0 auto; display: grid; place-items: center;
  background: var(--ink); color: var(--beer); border-radius: 18px; font-family: var(--display); font-size: 46px; transform: rotate(-4deg);
  animation: slam .5s;
}
.check-who { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 4px 0; }
.check-who h2 { font-size: clamp(20px, 6.4vw, 30px); overflow-wrap: anywhere; }
.check-head { text-align: center; }
.check-word { font-family: var(--display); font-size: clamp(20px, 6vw, 28px); line-height: 1.1; overflow-wrap: anywhere; }
.verdicts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.verdict { min-height: 54px; padding: 6px; font-family: var(--body); font-weight: 900; font-size: 16px; }
.verdict.yes { background: #5fe86a; }
.verdict.no { background: #ff8a80; }
.verdict:disabled { opacity: .75; }
.check-result { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.check-result.valid { background: #c9f7cd; }
.check-result.invalid { background: #f7c9c4; }
.check-result.invalid .check-word { text-decoration: line-through; }
.check-mark { font-size: 26px; flex: none; }

/* Zapfmeister */
.tap-glass { position: relative; width: min(60vw, 40dvh, 280px); aspect-ratio: .68; margin: 0 auto; border: 5px solid var(--ink); border-top-width: 2px; border-radius: 6px 6px 22px 22px; background: rgba(255, 255, 255, .55); overflow: hidden; flex: none; }
.tap-glass .liquid { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(#ffc62c, var(--beer-dark)); }
.tap-glass .head { position: absolute; left: 0; right: 0; top: -10px; height: 16px; background: var(--foam); }
.tap-glass .target { position: absolute; left: 0; right: 0; height: 0; border-top: 4px dashed var(--ink); z-index: 2; }
.tap-glass .target::after { content: 'BIS HIER'; position: absolute; right: 4px; top: 2px; font-size: 10px; font-weight: 900; }
.hold-btn { min-height: 92px; font-size: 26px; background: var(--beer); touch-action: none; }
.hold-btn.down { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); background: var(--lime); }

/* Blindflug */
.clock-big { font-family: var(--display); font-size: clamp(64px, 22vw, 110px); text-align: center; line-height: 1; font-variant-numeric: tabular-nums; }
.clock-big.hidden-time { animation: pulse .8s infinite alternate; }
.blind-btn { min-height: 120px; font-size: 34px; }

/* Wer wohl */
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.pick { justify-content: flex-start; font-family: var(--body); font-weight: 900; font-size: 15px; padding: 6px 8px; min-height: 58px; text-align: left; overflow: hidden; }
.pick .avatar { width: 34px; height: 34px; font-size: 18px; }
.pick .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.pick.chosen { background: var(--lime); }
.pick .tally { font-family: var(--display); font-size: 18px; margin-left: auto; }

/* Der Spion */
.spy-card { text-align: center; }
.spy-card .secret { font-size: clamp(24px, 8vw, 38px); }
.spy-card.is-spy { background: var(--ink); color: var(--beer); }
.spy-card.is-spy .muted { color: var(--paper); opacity: .85; }

/* Stille Post */
.post-item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; width: 100%;
  background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 12px; padding: 8px; text-align: left;
}
.post-item.chosen { outline: 5px solid var(--lime); outline-offset: -2px; }
.post-item.mine { background: var(--paper-2); cursor: default; }
.post-img { display: block; width: 100%; max-width: 260px; aspect-ratio: 1; margin: 0 auto; border: 2px solid var(--ink); border-radius: 8px; background: #fff; }
.post-text { font-size: 17px; font-weight: 800; overflow-wrap: anywhere; }

/* Nüchtern-Test */
.trace-canvas {
  display: block; width: 100%; max-width: min(100%, 58dvh); margin: 0 auto; aspect-ratio: 360 / 460;
  background: var(--paper); border: var(--line); border-radius: 14px; touch-action: none;
  animation: sway 3.4s infinite ease-in-out;
}

/* Reaktions-Roulette */
.react-zone {
  flex: 1; min-height: 60dvh; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  border: 4px solid var(--ink); border-radius: 22px; color: var(--ink); touch-action: none;
  font-size: 17px; font-weight: 900; user-select: none; -webkit-user-select: none;
}
.react-zone .display { font-size: clamp(38px, 13vw, 72px); line-height: 1.05; }
.react-zone.wait { background: var(--red); }
.react-zone.go { background: var(--lime); }
.react-zone.pause { background: var(--paper); }

/* Schätzmeister & Einig oder einsam */
.answer-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.answer-row .avatar { width: 32px; height: 32px; font-size: 17px; }
.answer-row .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 900; }
.answer-row .value { font-family: var(--display); white-space: nowrap; }
.answer-row .gain { font-family: var(--display); font-size: 14px; background: var(--lime); border: 2px solid var(--ink); border-radius: 99px; padding: 1px 7px; }
.card.lonely { background: #f7c9c4; }

/* ---------- Toasts & Konfetti ---------- */
#toasts { position: fixed; left: 16px; right: 16px; top: calc(60px + env(safe-area-inset-top)); z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; }
.toast { background: var(--ink); color: var(--paper); border-radius: 12px; padding: 8px 14px; font-size: 15px; font-weight: 800; max-width: 480px; text-align: center; animation: pop-in .25s; }
#offline { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: var(--red); color: #fff; text-align: center; font-weight: 900; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); }
#idle {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 75;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px;
  background: var(--ink); color: var(--paper); text-align: center; font-weight: 900;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
}
.confetti { position: fixed; top: -20px; width: 10px; height: 16px; z-index: 50; pointer-events: none; animation: fall linear forwards; }

/* ---------- Animationen ---------- */
@keyframes glow-green { from { box-shadow: 0 0 8px 1px rgba(95, 232, 106, .55); } to { box-shadow: 0 0 26px 8px rgba(95, 232, 106, 1); } }
@keyframes glow-red { from { box-shadow: 0 0 12px 3px rgba(255, 68, 56, .6); } to { box-shadow: 0 0 38px 14px rgba(255, 68, 56, 1); } }
@keyframes sway { 0%, 100% { transform: translateX(-3px); } 50% { transform: translateX(3px); } }
@keyframes pop-in { from { transform: scale(.85); opacity: 0; } }
@keyframes slide-in { from { transform: translateX(-30px); opacity: 0; } }
@keyframes slam { 0% { transform: scale(2.4); opacity: 0; } 70% { transform: scale(.94); opacity: 1; } 100% { transform: scale(1); } }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-3deg); } }
@keyframes hiccup { 0%, 86%, 100% { transform: none; } 89% { transform: translateY(-8px) scale(1.04, .94); } 92% { transform: translateY(2px) scale(.98, 1.03); } }
@keyframes pulse { to { opacity: .6; transform: scale(1.04); } }
@keyframes shake-x { 0% { transform: translateX(-3px) rotate(-1deg); } 100% { transform: translateX(3px) rotate(1deg); } }
@keyframes shake-hard { 0% { transform: rotate(-14deg) translateY(4px); } 50% { transform: rotate(14deg) translateY(-6px); } 100% { transform: none; } }
@keyframes flash { to { opacity: 0; } }
@keyframes flick { 50% { transform: rotate(-22deg); } }
@keyframes drain { to { transform: scaleY(.06); } }
@keyframes fizz { to { transform: translateY(-120px); opacity: 0; } }
@keyframes wobble { 25% { transform: rotate(-4deg); } 75% { transform: rotate(4deg); } }
@keyframes grow-x { from { transform: scaleX(0); } }
@keyframes rise { from { transform: translateY(60px); opacity: 0; } }
@keyframes fall { to { transform: translateY(110dvh) rotate(720deg); } }

@media (prefers-reduced-motion: reduce) {
  .logo .word, .game-emoji, .crown, .wobble, .drum, .clock-big.hidden-time, .reveal-row.winner, .loser-box { animation: none; }
}

/* ---------- Größere Bildschirme ---------- */
@media (min-width: 768px) {
  :root { --gutter: 28px; }
  #screen { max-width: 720px; padding-top: 18px; gap: 18px; }
  #hud { font-size: 16px; max-width: 900px; width: 100%; margin: 0 auto; }
  .player-grid, .pick-grid { grid-template-columns: repeat(3, 1fr); }
  .rules li { font-size: 18px; }
  .card { padding: 20px; }
  .sticky-bottom { position: static; }
}

/* Ganz kleine Handys */
@media (max-width: 350px) {
  :root { --gutter: 10px; }
  .btn { font-size: 17px; padding: 8px 10px; }
}
