/* ================================================================ Spieler / Handy */
html, body { height: 100%; }
body.play { overflow: hidden; font-size: 16px; }
#app { position: fixed; inset: 0; display: flex; flex-direction: column; height: 100dvh; max-width: 640px; margin: 0 auto; }

/* Kopfzeile */
.phead { display: flex; align-items: center; gap: 10px; padding: 10px 14px; padding-top: max(10px, env(safe-area-inset-top)); background: rgba(20, 6, 50, 0.45); border-bottom: 2px solid rgba(255, 255, 255, 0.1); }
.phead .nm { font-family: var(--font-head); font-weight: 600; font-size: 18px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phead .score { font-family: var(--font-head); font-weight: 700; font-size: 18px; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 99px; padding: 2px 12px; box-shadow: var(--shadow-sm); }
.phead .score.bump { animation: jelly 0.7s ease; }
.phead .streak { font-weight: 900; }
.phead .code { font-size: 12px; opacity: 0.6; font-weight: 800; letter-spacing: 0.1em; }

#main { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 16px; display: flex; flex-direction: column; gap: 14px; -webkit-overflow-scrolling: touch; }
#main > .view { display: flex; flex-direction: column; gap: 14px; flex: 1; animation: viewIn 0.4s var(--ease-out) both; min-height: 0; }
@keyframes viewIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
/* „safe“: passt der Inhalt nicht aufs Handy, beginnt er oben (scrollbar) statt oben abgeschnitten zu werden */
.center-v { justify-content: center; justify-content: safe center; align-items: center; text-align: center; }

/* ------------------------------------------------ Beitreten */
.join { gap: 16px; padding-bottom: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 13px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.8; }
.input {
  width: 100%;
  padding: 14px 16px;
  border: var(--outline);
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 22px;
  box-shadow: var(--shadow-sm);
  outline: none;
  transition: box-shadow 0.2s, transform 0.2s;
}
.input:focus { box-shadow: 0 0 0 4px rgba(255, 79, 139, 0.5), var(--shadow-sm); }
.input.code { text-transform: uppercase; letter-spacing: 0.4em; text-align: center; font-size: 32px; font-weight: 700; }
.input.shake { animation: shake 0.45s; }
.avpick { display: flex; gap: 14px; align-items: center; }
.avpick .avatar { cursor: pointer; }
.avpick .avside { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.avpick .avbtns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.avpick .avbtns .btn { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 2px 6px; font-size: 14px; line-height: 1.1; white-space: nowrap; }
.avpick .avbtns .btn i { font-style: normal; font-size: 20px; }
.emogrid { container-type: inline-size; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; background: rgba(20, 6, 50, 0.4); border-radius: 16px; padding: 8px; }
/* Höhe aus der Rasterbreite statt aspect-ratio (Firefox löst das Seitenverhältnis bei Knöpfen im Raster anders auf) */
.emogrid button { height: calc((100cqw - 42px) / 8); min-width: 0; overflow: hidden; line-height: 1; border: 2px solid transparent; background: rgba(255, 255, 255, 0.08); border-radius: 12px; font-size: 22px; padding: 0; display: grid; place-items: center; transition: transform 0.15s var(--ease-back); }
.emogrid button.on { border-color: #fff; background: rgba(255, 255, 255, 0.25); transform: scale(1.1); }
.join .go { margin-top: 4px; font-size: 22px; padding: 16px; }

/* ------------------------------------------------ Lobby */
.lobbyv .bigav { position: relative; }
.lobbyv .bigav .edit { position: absolute; right: -4px; bottom: 4px; width: 40px; height: 40px; border-radius: 50%; border: var(--outline); background: var(--gold); display: grid; place-items: center; font-size: 18px; box-shadow: var(--shadow-sm); }
.lobbyv h1 { font-size: 34px; }
/* Name & Look ändern */
.lookbox { max-height: calc(100dvh - 28px); overflow-y: auto; }
.lookhead { display: flex; align-items: center; gap: 12px; width: 100%; }
.lookhead .avatar { flex: none; }
.lookhead .input { flex: 1; min-width: 0; font-size: 20px; padding: 10px 14px; }
.lookbtns .btn, .lookfoot .btn { padding-left: 0.6em; padding-right: 0.6em; white-space: nowrap; font-size: 16px; }
.lobbyv .wait { opacity: 0.85; font-weight: 700; font-size: 18px; line-height: 1.4; }
.lobbyv .vipbox { padding: 16px; display: flex; flex-direction: column; gap: 12px; align-items: center; width: 100%; }
.lobbyv .vipbox p { margin: 0; font-weight: 800; }
.bigav .avatar { animation: float 3s ease-in-out infinite; }

/* ------------------------------------------------ Rundenintro */
.introv { background: var(--rc); margin: -16px; padding: 24px 20px; border-radius: 0; background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.08) 0 22px, transparent 22px 44px); }
.introv .ic { font-size: 84px; animation: introIcon 0.8s var(--ease-back) both; filter: drop-shadow(0 5px 0 rgba(0, 0, 0, 0.25)); }
.introv h1 { font-size: 40px; -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 0 3px 0 var(--ink); }
.introv .num { font-family: var(--font-head); letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.9; }
.introv .rules { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.introv .rule { padding: 12px 14px; display: flex; gap: 10px; align-items: center; text-align: left; font-weight: 800; animation: slideUp 0.5s var(--ease-back) both; }
.introv .rule b { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--rc); color: #fff; border: 2px solid var(--ink); font-family: var(--font-head); }
@keyframes introIcon { from { transform: scale(0) rotate(-180deg); } to { transform: none; } }

/* ------------------------------------------------ Frage allgemein */
.qtop { display: flex; align-items: center; gap: 10px; }
.qtop .qn { font-family: var(--font-head); font-size: 15px; opacity: 0.85; white-space: nowrap; }
.qtop .timer-bar { flex: 1; }
/* „Ich passe“ / „Fertig“: klein neben dem Timer, zweiter Tipp bestätigt */
.qpass { flex: none; padding: 4px 11px; border-radius: 999px; border: 2px solid var(--ink); background: rgba(255, 255, 255, 0.9); color: var(--ink); font-family: var(--font-head); font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.qpass.arm { background: var(--pink); color: #fff; animation: jelly 0.5s ease; }
.qpass.on { opacity: 0.75; cursor: default; }
.view.passed :is(input, textarea, select, button:not(.qpass), .guessrow) { pointer-events: none; opacity: 0.45; }
.qtxt { padding: 14px 16px; font-family: var(--font-head); font-weight: 600; font-size: 20px; line-height: 1.25; text-align: center; overflow-wrap: anywhere; }
.qtxt.big { font-size: 24px; }
.qtxt .blank { display: inline-block; min-width: 3em; border-bottom: 3px solid var(--pink); }
.catchip { align-self: center; }
.readyv .count { font-family: var(--font-head); font-size: 22px; letter-spacing: 0.15em; text-transform: uppercase; }
.readyv .spin { font-size: 64px; animation: jelly 1s ease infinite; }

/* Antwortbuttons */
.abtns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; flex: 1; min-height: 240px; }
.abtns.col1 { grid-template-columns: 1fr; }
.abtn {
  --oc: var(--opt-0);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 10px;
  border: var(--outline);
  border-radius: 20px;
  background: var(--oc);
  box-shadow: var(--shadow);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.15;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
  transition: transform 0.12s var(--ease-back), box-shadow 0.12s, opacity 0.3s, filter 0.3s;
  overflow-wrap: anywhere;
  touch-action: manipulation;
  animation: popIn 0.35s var(--ease-back) both;
}
.abtn .shape { font-size: 30px; }
.abtn:active { transform: translateY(4px) scale(0.98); box-shadow: 0 2px 0 rgba(12, 3, 36, 0.45); }
.abtn:nth-child(1) { --oc: var(--opt-0); }
.abtn:nth-child(2) { --oc: var(--opt-1); animation-delay: 0.05s; }
.abtn:nth-child(3) { --oc: var(--opt-2); animation-delay: 0.1s; }
.abtn:nth-child(4) { --oc: var(--opt-3); animation-delay: 0.15s; }
.abtns.row .abtn { flex-direction: row; justify-content: flex-start; text-align: left; padding: 12px 16px; }
.abtns.row .abtn .shape { font-size: 24px; }
.abtn img.flagimg { width: 100%; max-height: 90px; object-fit: contain; border-radius: 6px; border: 2px solid var(--ink); background: #fff; }
.abtns.chosen .abtn { opacity: 0.35; filter: saturate(0.3); transform: scale(0.96); }
.abtns.chosen .abtn.sel { opacity: 1; filter: none; transform: scale(1.02); box-shadow: 0 0 0 4px #fff, var(--shadow); }

.tfbtns { display: grid; grid-template-rows: 1fr 1fr; gap: 14px; flex: 1; min-height: 260px; }
.tfbtns .abtn { font-size: 34px; }
.tfbtns .abtn.t { --oc: var(--green); }
.tfbtns .abtn.f { --oc: var(--red); }

/* Warten */
.waitv .lock { font-size: 72px; animation: pop 0.5s var(--ease-back) both; }
.waitv h2 { font-size: 28px; }
.waitv .echo { padding: 10px 16px; font-family: var(--font-head); font-size: 20px; max-width: 100%; overflow-wrap: anywhere; }
.waitv .funny { opacity: 0.8; font-weight: 700; font-style: italic; min-height: 2.6em; }
.progressdots { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; max-width: 280px; }
.progressdots i { width: 14px; height: 14px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); transition: background 0.3s, transform 0.3s var(--ease-back); }
.progressdots i.on { background: var(--green); transform: scale(1.15); }

/* Ergebnis */
.resultv { border-radius: 24px; margin: -4px; padding: 20px 16px; }
.resultv.good { background: radial-gradient(circle at 50% 30%, rgba(34, 197, 94, 0.55), transparent 70%); }
.resultv.bad { background: radial-gradient(circle at 50% 30%, rgba(239, 68, 68, 0.45), transparent 70%); }
.resultv .big { font-size: 90px; line-height: 1; animation: stamp 0.5s var(--ease-back) both; }
.resultv h2 { font-size: 30px; line-height: 1.15; }
.resultv .pts { font-family: var(--font-head); font-weight: 700; font-size: 52px; color: #fff; -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 0 4px 0 var(--ink); }
.resultv .pts.neg { color: #ffb4b4; }
.resultv .bonus { font-weight: 900; background: var(--orange); border: 2px solid var(--ink); border-radius: 99px; padding: 2px 12px; animation: pop 0.5s 0.5s var(--ease-back) both; }
.resultv .answer { padding: 10px 14px; font-weight: 800; }
.resultv .answer b { font-family: var(--font-head); font-size: 20px; display: block; margin-top: 2px; }
.resultv .fact { font-size: 14px; opacity: 0.85; line-height: 1.4; }
.resultv .rank { font-family: var(--font-head); font-size: 18px; opacity: 0.9; }

/* Reaktionen */
.reactbar { padding: 2px 0; padding-bottom: max(4px, env(safe-area-inset-bottom)); background: rgba(20, 6, 50, 0.45); border-top: 2px solid rgba(255, 255, 255, 0.1); }
/* zum Durchwischen: angeschnittene Knöpfe an den Rändern zeigen, dass es weitergeht */
.reactbar .rscroll { display: flex; gap: 4px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding: 0 10px; padding: 6px 10px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent, #000 10px, #000 calc(100% - 28px), transparent); }
.reactbar .rscroll::-webkit-scrollbar { display: none; }
.reactbar button { flex: none; width: 44px; height: 44px; scroll-snap-align: start; border-radius: 12px; border: 2px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.08); font-size: 24px; padding: 0; transition: transform 0.12s var(--ease-back); touch-action: manipulation; }
.reactbar button:active { transform: scale(1.3); }

/* Schätzen: Tastenfeld */
.numdisp { padding: 14px 16px; text-align: center; font-family: var(--font-head); font-weight: 700; font-size: 40px; min-height: 76px; display: flex; align-items: center; justify-content: center; gap: 8px; overflow: hidden; }
.numdisp .ph { opacity: 0.3; }
.numdisp .unit { font-size: 18px; opacity: 0.7; font-weight: 600; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.keypad button { height: 58px; border-radius: 16px; border: var(--outline); background: var(--paper); color: var(--ink); font-family: var(--font-head); font-weight: 700; font-size: 26px; box-shadow: var(--shadow-sm); touch-action: manipulation; }
.keypad button:active { transform: translateY(3px); box-shadow: none; }
.keypad button.fn { background: #e9dfff; font-size: 20px; }

/* Sortieren */
.sortpick { display: flex; flex-direction: column; gap: 10px; }
.sortpick .lbl { font-size: 13px; font-weight: 900; opacity: 0.75; text-transform: uppercase; letter-spacing: 0.1em; text-align: center; }
.sortbtn { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: var(--outline); border-radius: 18px; background: var(--paper); color: var(--ink); font-family: var(--font-head); font-weight: 600; font-size: 19px; text-align: left; box-shadow: var(--shadow-sm); transition: transform 0.15s var(--ease-back), background 0.2s; touch-action: manipulation; animation: popIn 0.35s var(--ease-back) both; }
.sortbtn .n { width: 34px; height: 34px; flex: none; border-radius: 50%; border: 2px dashed rgba(36, 18, 74, 0.35); display: grid; place-items: center; font-size: 18px; }
.sortbtn.picked { background: #e9dfff; }
.sortbtn.picked .n { background: var(--rc, var(--purple)); color: #fff; border: 2px solid var(--ink); animation: pop 0.3s var(--ease-back); }
.sortactions { display: flex; gap: 10px; }
.sortactions .btn { flex: 1; }

/* Karte */
.mapv .mapbox { flex: 1; min-height: 300px; }
.mapv .maphint { text-align: center; font-weight: 800; opacity: 0.85; font-size: 14px; }

/* Freitext */
.emojiq { padding: 18px; text-align: center; font-size: 56px; line-height: 1.2; letter-spacing: 0.06em; }
.freehint { text-align: center; font-weight: 800; font-size: 14px; line-height: 1.3; padding: 8px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.14); }
.guessrow { display: flex; gap: 8px; }
.guessrow .input { flex: 1; font-size: 20px; }
.guessrow .btn { padding: 0 18px; }
.feedback { min-height: 30px; text-align: center; font-family: var(--font-head); font-size: 20px; font-weight: 600; }
.feedback.wrong { color: #ffb4b4; animation: shake 0.4s; }
.feedback.close { color: var(--gold); animation: jelly 0.6s; }
.feedback.slow { color: #cfd8e6; }
.tries { text-align: center; font-size: 13px; opacity: 0.65; }
/* Buchstaben-Tipp (Maske vom Server) */
.phint { padding: 8px 12px 10px; text-align: center; animation: popIn 0.4s var(--ease-back) both; }
.phint small { display: block; font-weight: 900; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.65; margin-bottom: 6px; }
.phint .phm { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; }
.phint .phw { display: inline-flex; gap: 3px; }
.phint .phw i, .phint .phw b { width: 17px; height: 26px; display: grid; place-items: center; font-family: var(--font-head); font-size: 19px; font-style: normal; text-transform: uppercase; }
.phint .phw i { border-bottom: 3px solid currentColor; opacity: 0.4; }
.phint .phw b { background: var(--gold); color: var(--ink); border-radius: 4px 4px 0 0; border-bottom: 3px solid var(--ink); }
.phint .phw b.p { background: none; border-bottom: 0; width: auto; }
.phint .phwords { font-family: var(--font-head); font-size: 17px; opacity: 0.85; }
.pclues { display: flex; flex-direction: column; gap: 8px; }
.pclue { padding: 10px 12px; font-weight: 800; font-size: 15px; line-height: 1.35; display: flex; gap: 10px; align-items: flex-start; animation: popIn 0.4s var(--ease-back) both; }
.pclue .cn { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--rc); color: #fff; border: 2px solid var(--ink); display: grid; place-items: center; font-family: var(--font-head); font-size: 14px; }
.pclue.next { background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.55); border: 2px dashed rgba(255, 255, 255, 0.3); box-shadow: none; animation: none; }
.pclue.next .cn { background: transparent; border-color: rgba(255, 255, 255, 0.35); }
.ptsnow { text-align: center; font-family: var(--font-head); font-size: 15px; opacity: 0.85; }

/* Lügenbaron */
.bluffv textarea.input { resize: none; min-height: 90px; font-size: 20px; }
.charcount { text-align: right; font-size: 12px; opacity: 0.6; margin-top: -8px; }
.voteopts { display: flex; flex-direction: column; gap: 10px; }
.voteopts .abtn { --oc: var(--paper); color: var(--ink); text-shadow: none; font-size: 19px; min-height: 60px; }
.voteopts .abtn:nth-child(n) { --oc: var(--paper); }

/* Finale */

/* Podium */
.podv .place { font-size: 100px; line-height: 1; animation: stamp 0.6s var(--ease-back) both; }
.podv h1 { font-size: 34px; }
.podv .aw { padding: 12px 16px; display: flex; gap: 12px; align-items: center; text-align: left; width: 100%; animation: slideUp 0.5s var(--ease-back) both; }
.podv .aw .ai { font-size: 40px; }
.podv .aw b { font-family: var(--font-head); font-size: 20px; display: block; }

/* Zeichnen, Kamera, Paletten: css/avatar.css (Handy und PC-Show teilen sie) */

/* PC: etwas großzügiger */
@media (min-width: 700px) {
  #app { border-left: 2px solid rgba(255, 255, 255, 0.08); border-right: 2px solid rgba(255, 255, 255, 0.08); }
}

.resultv.suspense .eyes { animation: eyesLook 1.6s ease-in-out infinite; }
@keyframes eyesLook { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-14px) rotate(-6deg); } 75% { transform: translateX(14px) rotate(6deg); } }
.lobbyv .vipbox .btn { font-size: 20px; padding: 14px 22px; }
.resultv .minimap { width: 100%; height: min(190px, 21dvh); flex: none; }
.resultv:has(.minimap) .big { font-size: 64px; }
.resultv .minimap .pin .head { width: 26px; height: 26px; left: -13px; top: -31px; }
.resultv .minimap .pin.target .star { font-size: 26px; }

.tvhint { padding: 12px 16px; font-size: 14px; line-height: 1.5; width: 100%; }
.tvhint a { color: #7c3aed; font-weight: 900; word-break: break-all; }
.tvhint .btn { margin-top: 8px; font-size: 15px; padding: 8px 16px; }

/* ================================================================ Gaming-Runden (Handy) */
/* Zitat-Alarm */
.prpg { position: relative; margin-top: 12px; padding: 18px 16px 12px; background: linear-gradient(180deg, #24207a, #120f45); border: 3px solid #fff; outline: 3px solid var(--ink); border-radius: 12px; color: #fff; box-shadow: var(--shadow); }
.prpg .nm { position: absolute; left: 12px; top: -13px; background: #120f45; border: 2px solid #fff; border-radius: 8px; padding: 0 8px; font-family: var(--font-head); font-size: 13px; color: #ffd23f; }
.prpg .tx { font-family: var(--font-head); font-size: 21px; line-height: 1.25; font-weight: 600; overflow-wrap: anywhere; }
.prpg .de { margin-top: 6px; font-size: 14px; color: #cfd4ff; font-weight: 700; }

/* Erfolg freigeschaltet */
.pach { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; background: linear-gradient(180deg, #2b2b2b, #151515); border: 2px solid #0a0a0a; border-radius: 999px; box-shadow: var(--shadow), 0 0 20px rgba(25, 197, 99, 0.35); animation: popIn 0.5s var(--ease-back) both; }
.pach .ic { width: 52px; height: 52px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 26px; background: radial-gradient(circle, #1a1a1a 55%, #19c563 57% 68%, #0f7a3d 70%); }
.pach .tx { display: flex; flex-direction: column; min-width: 0; }
.pach small { font-size: 11px; opacity: 0.8; font-weight: 800; }
.pach b { font-family: var(--font-head); font-size: 19px; line-height: 1.1; overflow-wrap: anywhere; }
.pachdesc { font-size: 17px; }

/* Zeitreise */
.tlp { display: flex; gap: 12px; align-items: center; }
.tlp img { width: 76px; max-height: 110px; object-fit: cover; border: 3px solid var(--ink); border-radius: 8px; box-shadow: var(--shadow-sm); flex: none; background: #111; }
.tlp b { display: block; font-family: var(--font-head); font-size: 21px; line-height: 1.1; overflow-wrap: anywhere; }
.tlp span { display: inline-block; margin-top: 4px; font-size: 13px; font-weight: 800; background: rgba(255, 255, 255, 0.14); border-radius: 6px; padding: 1px 8px; }
.yeardisp { text-align: center; padding: 8px; font-family: var(--font-pixel, var(--font-head)); font-size: 44px; font-weight: 700; letter-spacing: 0.04em; }
.yearrange { width: 100%; height: 40px; accent-color: var(--pink); touch-action: pan-y; }
.decades, .yearbtns { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.yearbtns { grid-template-columns: repeat(4, 1fr); }
.decades button, .yearbtns button { border: 2px solid var(--ink); background: var(--paper); color: var(--ink); border-radius: 10px; padding: 9px 0; font-family: var(--font-head); font-weight: 700; font-size: 16px; box-shadow: var(--shadow-sm); touch-action: manipulation; }
.decades button { background: var(--paper-2); font-size: 14px; }
.decades button:active, .yearbtns button:active { transform: translateY(2px); box-shadow: none; }

/* Combo-Meister */
.combov .cph-stage { height: 170px; display: grid; place-items: center; }
.combov .cph-stage .gbtn { --gs: 150px; border-width: 5px; animation: comboPopP 0.25s var(--ease-back) both; }
.combov .cmsg { font-family: var(--font-head); font-size: 34px; font-weight: 700; }
@keyframes comboPopP { from { transform: scale(0.3); opacity: 0; } to { transform: none; opacity: 1; } }
.combov .cdots { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.combov .cdots i { width: 14px; height: 14px; border-radius: 3px; background: rgba(255, 255, 255, 0.2); border: 2px solid rgba(255, 255, 255, 0.35); }
.combov .cdots i.on { background: var(--gold); transform: scale(1.3); }
.combov .cdots i.past { background: rgba(255, 255, 255, 0.6); }
.cslotsp { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.cslotsp .slot { width: 40px; height: 40px; border-radius: 10px; border: 2px dashed rgba(255, 255, 255, 0.45); display: grid; place-items: center; }
.cslotsp .slot.filled { border-style: solid; border-color: transparent; }
.cslotsp .slot .gbtn { --gs: 38px; border-width: 2px; animation: comboPopP 0.2s var(--ease-back) both; }
.gamepad { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 10px; background: linear-gradient(180deg, #2c2650, #16122e); border: 3px solid var(--ink); border-radius: 60px; box-shadow: var(--shadow), inset 0 3px 0 rgba(255, 255, 255, 0.12); touch-action: none; user-select: none; -webkit-user-select: none; }
.dpadgrid, .facegrid { display: grid; grid-template-columns: repeat(3, clamp(40px, 12.6vw, 60px)); grid-template-rows: repeat(3, clamp(40px, 12.6vw, 60px)); }
.gamepad .gp { padding: 0; border: 0; background: none; display: grid; place-items: center; touch-action: none; }
.gamepad .gp .gbtn { --gs: clamp(38px, 12vw, 58px); pointer-events: none; }
.gamepad .gp.hit .gbtn { animation: gpHit 0.18s ease; }
@keyframes gpHit { 50% { transform: scale(0.86) translateY(3px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.45); } }
.dpadgrid .gp-up, .facegrid .gp-Y { grid-column: 2; grid-row: 1; }
.dpadgrid .gp-left, .facegrid .gp-X { grid-column: 1; grid-row: 2; }
.dpadgrid .gp-right, .facegrid .gp-B { grid-column: 3; grid-row: 2; }
.dpadgrid .gp-down, .facegrid .gp-A { grid-column: 2; grid-row: 3; }

.echoseq { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; margin: 4px 0; }
.echoseq .gbtn { --gs: 30px; border-width: 2px; }
.comboans { display: flex; flex-direction: column; gap: 4px; align-items: center; }

/* Clip-Runden */
.pclip { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.pclip .ic { font-size: 40px; }
.pclip b { display: block; font-family: var(--font-head); font-size: 17px; margin-bottom: 6px; }
.pclip .btn { font-size: 14px; padding: 7px 14px; }
.pclipbox { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border: var(--outline); border-radius: 14px; background: #000; flex: none; }
.pclipbox .ytslot { position: absolute; inset: 0; pointer-events: none; }
.pclipbox iframe { position: absolute; left: -16%; top: -16%; width: 132%; height: 132%; border: 0; pointer-events: none; }
.pclipbox .pcover { position: absolute; inset: 0; display: grid; place-items: center; background: #140a33; font-family: var(--font-head); font-size: 20px; }

/* Abspann & Duell */
.pcredits { background: #050305; border: 3px solid var(--ink); border-radius: 12px; padding: 10px 14px; display: flex; flex-direction: column; gap: 6px; min-height: 120px; text-align: center; box-shadow: var(--shadow); }
.pcl { display: flex; flex-direction: column; animation: slideUp 0.6s var(--ease-out) both; }
.pcl span { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: #e8c872; font-weight: 800; }
.pcl b { font-family: var(--font-head); font-size: 19px; color: #fff; font-weight: 600; }
.duelv .abtns { position: relative; }
.duelv .abtn { font-size: 21px; }
.pvs { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--ink); border: 3px solid var(--ink); font-family: var(--font-head); font-weight: 700; font-size: 20px; box-shadow: var(--shadow-sm); pointer-events: none; }

/* Clip am Handy: fester Player, der über dem Platzhalter im aktuellen Bildschirm liegt (Ton läuft auch unsichtbar weiter) */
.clipdock { position: fixed; left: 0; top: 0; width: 320px; height: 180px; z-index: 20; pointer-events: none; overflow: hidden; opacity: 0; transition: opacity 0.3s; background: #000; border-radius: 14px; }
.clipdock.show { opacity: 1; }
.clipdock .ytslot { position: absolute; inset: 0; }
.clipdock iframe { position: absolute; left: -16%; top: -16%; width: 132%; height: 132%; border: 0; pointer-events: none; }
.pclipbox.clipanchor.audio { aspect-ratio: auto; height: 48px; }
/* Video läuft am Handy: Kopf und Knöpfe kompakter, damit alles ohne Scrollen passt (Safari lässt nur ~660 px) */
.view.cliphere { gap: 10px; }
.view.cliphere .pclip { padding: 6px 10px; justify-content: center; }
.view.cliphere .pclip .ic, .view.cliphere .pclip .pcb > b { display: none; }
.view.cliphere .pclip .btn { padding: 5px 12px; }
.view.cliphere .abtns { min-height: 0; gap: 7px; }
.view.cliphere .abtns.row .abtn { padding: 6px 14px; font-size: 18px; }
.view.cliphere .pclipbox.clipanchor:not(.audio), .view.cliphere .pvid { width: min(100%, 25dvh * 16 / 9); align-self: center; }
.view.cliphere .qtxt { padding: 8px 12px; font-size: 18px; }
.pclipbox.clipanchor.hidden { display: none; }
.waitv .herewrap, .waitv > .herebtn { align-self: center; }
/* Pause-Overlay am Handy (solange der Host pausiert) */
#ppause { position: fixed; inset: 0; z-index: 900; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; background: rgba(20, 6, 50, 0.72); backdrop-filter: blur(5px); color: #fff; text-align: center; animation: fadeIn 0.3s both; }
#ppause b { font-size: 4rem; line-height: 1; }
#ppause span { font-weight: 800; font-size: 1.2rem; }
#ppause small { opacity: 0.8; }


/* ------------------------------------------------ Startseite: zwei Wege, Quizzly auf der Trennlinie, Laufband mit den Shows */
body.landing #app { max-width: none; }
body.landing #main { padding: 0; gap: 0; scroll-behavior: smooth; }
#main > .view.landing { gap: 0; flex: none; }
.landing a.btn { text-decoration: none; }

.lsplit { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: max(560px, calc(100dvh - 64px)); }
.llogo { position: absolute; z-index: 3; top: max(18px, env(safe-area-inset-top)); left: clamp(24px, 6vw, 100px); font-family: var(--font-head); font-weight: 700; font-size: 34px; line-height: 1; color: #fff; text-decoration: none; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 0 3px 0 var(--ink); }
.llogo span { display: inline-block; animation: megaBob 3s ease-in-out infinite; animation-delay: calc(var(--i) * -0.18s); }
.llogo span:nth-child(even) { color: var(--gold); }
@keyframes megaBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-0.06em); } }
.landing .ltop { position: absolute; z-index: 3; top: max(22px, env(safe-area-inset-top)); right: clamp(16px, 3vw, 40px); display: flex; gap: 22px; }
.landing .ltop a { color: #fff; text-decoration: none; font-weight: 800; opacity: 0.85; }
.landing .ltop a:hover { opacity: 1; }

.lside { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 96px clamp(24px, 6vw, 100px) 64px; }
.lside .lkick { font-family: var(--font-head); font-weight: 600; font-size: 15px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.9; }
.lside h2 { margin: 8px 0 14px; font-size: clamp(42px, 4.8vw, 76px); font-weight: 700; line-height: 0.95; letter-spacing: -0.01em; text-shadow: 0 4px 0 rgba(36, 18, 74, 0.45); }
.lside p { margin: 0 0 24px; max-width: 30ch; font-size: 18px; font-weight: 700; opacity: 0.94; }
.lside .go { font-size: 1.4rem; padding: 0.6em 1.5em; }

/* Links: mitspielen – pink, schräg angeschnitten */
.lplay { z-index: 1; padding-right: clamp(80px, 10vw, 170px); background: radial-gradient(circle at 20% 20%, #ff7aa8, var(--pink) 42%, #c81e63); clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%); }
.lplay::after { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Ctext x='10' y='46' font-size='38' font-family='Arial Black,Arial' font-weight='900' fill='%23ffffff' fill-opacity='.09' transform='rotate(-14 24 34)'%3E%3F%3C/text%3E%3C/svg%3E"); }
.lslots { position: relative; z-index: 1; display: flex; gap: 10px; }
.lslot { width: clamp(60px, 5.6vw, 80px); aspect-ratio: 4 / 5; padding: 0; border: var(--outline); border-radius: 16px; background: var(--paper); color: var(--ink); text-align: center; font-family: var(--font-head); font-weight: 700; font-size: clamp(36px, 3.6vw, 52px); text-transform: uppercase; box-shadow: 0 6px 0 #8f0f42; caret-color: var(--pink); transition: transform 0.12s; }
.lslot::placeholder { color: rgba(36, 18, 74, 0.16); }
.lslot:focus { outline: none; background: #fff; box-shadow: 0 6px 0 #8f0f42, 0 0 0 4px var(--gold); transform: translateY(-3px); }
.lslots.shake { animation: shake 0.45s; }
.lplay .go { position: relative; z-index: 1; margin-top: 22px; --c: var(--ink); box-shadow: 0 5px 0 #0c0420; }
.lslots.full + .go { --c: var(--green); animation: lgoPulse 1.4s ease-in-out infinite; }
@keyframes lgoPulse { 50% { transform: scale(1.04); } }
.lplay .lhint { position: relative; z-index: 1; margin-top: 14px; font-size: 15px; font-weight: 700; opacity: 0.88; }

/* Rechts: Show zeigen – lila, Quizzly sitzt auf der Kante */
.lhost { margin-left: -12%; padding-left: calc(12% + clamp(80px, 8vw, 140px)); background: radial-gradient(circle at 80% 30%, #4b23a8, #2a0f6b 55%, #12052b); }
.lfacts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.lfacts span { padding: 6px 13px; border-radius: 999px; background: rgba(255, 255, 255, 0.09); border: 1px solid rgba(255, 255, 255, 0.2); font-size: 14px; font-weight: 800; }
.lqz { position: absolute; z-index: 2; left: 14.5%; top: 50%; width: clamp(120px, 11vw, 180px); transform: translate(-50%, -50%) rotate(-6deg); filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.45)); }
.lqz-say { position: absolute; z-index: 1; top: -30px; left: 50%; transform: translateX(-50%) rotate(6deg); padding: 3px 13px; background: var(--paper); color: var(--ink); border: var(--outline); border-radius: 999px; font-family: var(--font-head); font-weight: 700; font-size: 17px; white-space: nowrap; }
.ltv { position: absolute; right: clamp(20px, 4vw, 70px); bottom: 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; width: clamp(140px, 14vw, 210px); aspect-ratio: 16 / 10; background: #0c0420; border: 6px solid #3d1d8c; border-radius: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); transform: rotate(4deg); }
.ltv::after { content: ''; position: absolute; bottom: -18px; left: 36%; right: 36%; height: 12px; background: #3d1d8c; border-radius: 0 0 6px 6px; }
.ltv small { font-size: 11px; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.7; }
.ltv b { font-family: var(--font-head); font-size: clamp(28px, 2.8vw, 42px); letter-spacing: 0.12em; color: var(--gold); line-height: 1.1; }

/* Laufband mit allen Shows */
.lticker { overflow: hidden; background: var(--gold); color: var(--ink); border-block: 4px solid var(--ink); }
.lticker[hidden] { display: none; }
.lticker-track { display: flex; width: max-content; gap: 36px; padding: 12px 0; animation: bandRun 60s linear infinite; }
.lticker:hover .lticker-track { animation-play-state: paused; }
@keyframes bandRun { to { transform: translateX(-50%); } }
.lt-item { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; white-space: nowrap; }
.lt-item i { display: grid; place-items: center; width: 36px; height: 36px; font-style: normal; font-size: 19px; border: 2px solid var(--ink); border-radius: 10px; }
.lt-item b { font-weight: 400; line-height: 1; }

.lw { box-sizing: border-box; width: min(1360px, 100%); margin: 0 auto; padding: 56px clamp(16px, 3vw, 40px) 24px; display: flex; flex-direction: column; gap: 22px; }
.lw h2 { font-size: clamp(30px, 3.4vw, 46px); text-shadow: 0 4px 0 var(--ink); }
.lw-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.lw-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 24px; background: rgba(255, 255, 255, 0.08); border: 2px solid rgba(255, 255, 255, 0.16); border-radius: 26px; }
.lw-card i { font-style: normal; font-size: 36px; }
.lw-card b { font-family: var(--font-head); font-weight: 600; font-size: 1.5rem; }
.lw-card span { font-weight: 700; opacity: 0.9; }
.lfooter { text-align: center; padding: 16px 16px max(32px, env(safe-area-inset-bottom)); font-size: 14px; opacity: 0.7; }
.lfooter a { color: inherit; }

@media (prefers-reduced-motion: reduce) {
  .lticker-track, .llogo span, .lslots.full + .go { animation: none; }
}
/* Schmal: übereinander, die Kante läuft quer, Quizzly sitzt rechts darauf */
@media (max-width: 800px) {
  .lsplit { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .llogo { font-size: 30px; left: 20px; }
  .landing .ltop a:first-child { display: none; }
  .lside { padding: 84px 20px 64px; }
  .lside h2 { font-size: clamp(38px, 11vw, 52px); }
  .lside p { font-size: 16px; margin-bottom: 18px; }
  .lplay { padding-right: 20px; clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%); }
  .lhost { margin: -36px 0 0; padding: 76px 20px 44px; }
  .lqz { left: auto; right: 16px; top: -48px; width: 100px; transform: rotate(6deg); }
  .lqz-say { font-size: 15px; }
  .ltv, .lplay .lhint { display: none; }
  .lslots { width: 100%; max-width: 360px; }
  .lslot { flex: 1; min-width: 0; width: 0; }
  .lt-item { font-size: 19px; }
}
@media (max-height: 700px) and (max-width: 800px) {
  .lside { padding-top: 72px; padding-bottom: 52px; }
  .lside p { display: none; }
  .lside h2 { margin-bottom: 16px; }
}

/* Zweiter Schritt am Handy: Name und Avatar als Dialog über der Startseite */
.jsheet { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(14, 4, 38, 0.6); backdrop-filter: blur(6px); animation: fadeIn 0.25s both; }
.join.jpanel { box-sizing: border-box; width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 22px; background: linear-gradient(180deg, var(--bg2), var(--bg1)); border: 3px solid var(--ink); border-radius: 28px; box-shadow: 0 10px 0 rgba(12, 3, 36, 0.5); display: flex; flex-direction: column; animation: viewIn 0.35s var(--ease-out) both; }
.jsheet.instant, .jsheet.instant .jpanel { animation: none; }
.jroom { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: rgba(255, 255, 255, 0.1); border-radius: 18px; }
.jroom i { font-style: normal; font-size: 34px; }
.jroom b { display: block; font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; letter-spacing: 0.04em; }
.jroom span { font-size: 14px; opacity: 0.85; }
.jroom-back { margin-left: auto; padding: 6px 2px; background: none; border: 0; color: #fff; opacity: 0.8; font-size: 14px; font-weight: 800; text-decoration: underline; white-space: nowrap; }
@media (max-width: 640px) {
  .jsheet { padding: 0; }
  .join.jpanel { width: 100%; height: 100dvh; max-height: none; border: 0; border-radius: 0; box-shadow: none; padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); }
}

/* Lobby: was heute läuft (Show + Spielplan) */
.lobbyv .progcard { width: 100%; display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; text-align: center; }
.lobbyv .progcard[hidden] { display: none; }
.progcard small { font-size: 11px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.progcard b { font-family: var(--font-head); font-weight: 600; font-size: 20px; line-height: 1.2; }
.progcard span { font-size: 14px; font-weight: 700; color: var(--ink-soft); }

/* Abstimmung über die Show: Antippen = Stimme. Bis zu 4 Shows teilen sich die Höhe, nichts muss scrollen. */
#main > .view.votev { gap: 10px; }
.vvhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.vvhead[hidden] { display: none; }
.vvbadge { padding: 2px 10px; border-radius: 99px; border: 2px solid var(--ink); background: var(--purple); font-size: 11px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.vvtime { padding: 3px 12px; border-radius: 99px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); font-family: var(--font-head); font-size: 17px; white-space: nowrap; }
.votev h1 { margin: 0; font-size: 28px; line-height: 1.1; }
.vvsub { margin: -4px 0 0; font-size: 14px; font-weight: 700; opacity: 0.75; }
.vvopts { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.vvopt { position: relative; flex: 1 1 0; min-height: 72px; max-height: 150px; display: flex; align-items: center; gap: 12px; padding: 10px 14px; overflow: hidden; border: 3px solid var(--ink); border-radius: 20px; color: #fff; font: inherit; text-align: left; box-shadow: var(--shadow); transition: transform 0.15s var(--ease-back), filter 0.2s; }
.vvopt:active { transform: scale(0.98); }
.vvopt.on { outline: 4px solid var(--gold); outline-offset: 2px; }
.vvopts:has(.vvopt.on) .vvopt:not(.on) { filter: saturate(0.7) brightness(0.9); }
.vvic { flex: none; font-size: 40px; line-height: 1; }
.vvtx { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vvname { font-size: calc(var(--fs, 1) * 22px); line-height: 1.1; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.3); overflow-wrap: anywhere; }
.vvtag { font-size: 12.5px; font-weight: 700; line-height: 1.3; opacity: 0.9; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vvopts[style*="--n:4"] .vvtag { -webkit-line-clamp: 1; }
.vvcnt { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; font-weight: 900; opacity: 0.95; }
.vvmine { padding: 1px 8px; border-radius: 99px; border: 2px solid var(--ink); background: var(--gold); color: var(--ink); font-style: normal; font-size: 11px; }
.vvfoot { margin: 0; font-size: 12.5px; font-weight: 700; text-align: center; opacity: 0.6; }

/* Abstimmung über viele Shows: zwei Spalten, nur Symbol, Name und Stimmen */
.vvopts.grid { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(0, 1fr); gap: 8px; }
.vvopts.grid .vvopt { min-height: 0; max-height: none; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; padding: 8px 10px; border-radius: 16px; }
.vvopts.grid .vvic { font-size: 26px; }
.vvopts.grid .vvtag { display: none; }
.vvopts.grid .vvname { font-size: calc(var(--fs, 1) * 16px); }
.vvopts.grid .vvcnt { font-size: 11px; }
.vvopts.grid .vvopt.on { outline-width: 3px; }
.vvopts.grid .vvcnt { gap: 4px; }
.vvopts.grid .vvmine { position: absolute; top: 6px; right: 6px; font-size: 10px; padding: 0 6px; }

/* Lobby mit Wunschsongs: Avatar und Texte kompakter, Wunschsong-Karte direkt unter „Du bist drin!“ */
.lobbyv.haswish { gap: 10px; }
.lobbyv.haswish h1 { font-size: 26px; }
.lobbyv.haswish .bigav .edit { width: 32px; height: 32px; font-size: 14px; right: -8px; bottom: -2px; }
.lobbyv.haswish .wait { font-size: 15px; }
.lobbyv.haswish .lobbytip { display: none; }
.lobbyv.haswish .wishslot { width: 100%; }

/* Wunschsong-Runde */
#main > .view.wishv { gap: 12px; }
.wishv h1 { margin: 0; font-size: 28px; line-height: 1.1; }
.wishbadge { background: var(--pink); }
.wishv .wdone { margin-top: auto; }
.wishv .wdone:disabled { filter: none; opacity: 0.75; }

/* ------------------------------------------------ Handy-Rahmen: Kopf · Aufgabe · Eingabe · Aktion
   Die Hauptaktion (Abschicken, Spiel starten) bleibt immer erreichbar: reicht die Höhe nicht, klebt sie unten am
   Bildschirm und der Rest scrollt darunter durch. Gemessen wird die sichtbare Höhe im Browser – auf einem iPhone
   mit Adressleiste bleiben oft nur 550–670 px. Bei wenig Höhe wird zuerst Luft kleiner, dann Deko, dann Bausteine;
   Schrift und Tippflächen haben eine Untergrenze (Knöpfe ≥ 42 px, Text ≥ 15 px). */
#main .view #send, .lobbyv .vipbox { position: sticky; bottom: 0; z-index: 6; }
#main .view #send:not(:disabled), .lobbyv .vipbox { filter: drop-shadow(0 -6px 12px rgba(12, 3, 36, 0.45)); }
.votehead { font-family: var(--font-head); font-size: 1.2rem; }
/* Bildrunden: das Bild nimmt den Platz, den Frage und Antworten übrig lassen – die Antworten bleiben ganz sichtbar */
.qframe { flex: 1 1 0; min-height: 150px; max-height: 40dvh; }
.qframe.sm { min-height: 130px; max-height: 30dvh; }
/* Ziffernblöcke nehmen, was übrig ist: Tasten zwischen 40 und 56 px hoch – reicht die Höhe nicht, werden sie
   flacher, statt dass die unterste Reihe unter dem Absenden-Knopf verschwindet */
#main .view .keypad { flex: 0 1 auto; min-height: 190px; grid-template-rows: repeat(4, minmax(40px, 56px)); }
#main .view .keypad button { height: auto; }
body.play .pkeyp, body.play .clslot { flex: 0 1 auto; min-height: 0; }
body.play .clslot { display: flex; flex-direction: column; }
.voteopts.two { display: grid; grid-template-columns: 1fr 1fr; }
.voteopts.two .abtn { font-size: 17px; padding: 10px 8px; }

@media (max-height: 760px) {
  #main { padding: 12px 14px; gap: 10px; }
  #main > .view { gap: 10px; }
  .numdisp { min-height: 60px; padding: 8px 14px; font-size: 34px; }
  .keypad { gap: 8px; }
  .keypad button { font-size: 23px; }
  .voteopts { gap: 8px; }
  .voteopts .abtn { min-height: 48px; font-size: 17px; padding: 8px 12px; }
  .votehead { font-size: 1.05rem; }
  .qtxt { padding: 11px 14px; font-size: 18px; }
  /* Lobby: Avatar und Überschrift kleiner, Tipp-Zeile weg – „Los geht's“ des VIP bleibt sichtbar */
  .lobbyv { gap: 10px; }
  .lobbyv:not(.haswish) .bigav .avatar { --size: 96px !important; }
  .lobbyv .bigav .edit { width: 34px; height: 34px; font-size: 15px; }
  .lobbyv h1 { font-size: 28px; }
  .lobbyv .lobbytip { display: none; }
  .lobbyv .vipbox { padding: 12px 14px; gap: 10px; }
  /* Rundenintro: Regeln dichter, Symbol kleiner */
  .introv { margin: -12px -14px; padding: 16px; }
  .introv .ic { font-size: 60px; }
  .introv h1 { font-size: 32px; }
  .introv .rules { gap: 8px; }
  .introv .rule { padding: 9px 12px; font-size: 15px; line-height: 1.3; }
  /* Ergebnis: Symbol und Punkte etwas kleiner, Antwort und Platz bleiben ohne Scrollen sichtbar */
  .resultv { padding: 14px 14px; }
  .resultv .big { font-size: 68px; }
  .resultv h2 { font-size: 26px; }
  .resultv .pts { font-size: 44px; }
  .resultv:has(.minimap) .big { font-size: 52px; }
  /* Zeitreise: Jahresanzeige und Tasten dichter */
  .yeardisp { font-size: 36px; padding: 4px; }
  .decades button, .yearbtns button { padding: 7px 0; }
}
@media (max-height: 640px) {
  .abtn { font-size: 16px; }
  .qtxt { font-size: 17px; }
  .emojiq { font-size: 44px; }
  .introv .ic { font-size: 48px; }
  .lobbyv:not(.haswish) .bigav .avatar { --size: 80px !important; }
}
