:root {
  --grass: #7ec850;
  --grass-dark: #5aa832;
  --sky1: #8fd3ff;
  --sky2: #c9f0ff;
  --sun: #ffd23f;
  --ringo: #3a6b3a;
  --ringo-bubble: #e8f3e0;
  --ringo-ink: #24451f;
  --fact: #ff5aa0;
  --fact2: #ffe14d;
  --ink: #2b2b3a;
  --card: #fffdf7;
  --shadow: 0 8px 0 rgba(0, 0, 0, 0.12), 0 14px 26px rgba(40, 40, 60, 0.18);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: "Fredoka", system-ui, sans-serif;
  color: var(--ink);
  min-height: 100vh;
  background: linear-gradient(180deg, var(--sky1) 0%, var(--sky2) 42%, #d9f6b8 60%, var(--grass) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* ---- sky decorations ---- */
.sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.sun { position: absolute; top: 24px; right: 40px; font-size: 64px; filter: drop-shadow(0 0 18px #ffe98a); animation: bob 5s ease-in-out infinite; }
.cloud { position: absolute; width: 150px; height: 46px; background: #fff; border-radius: 50px; opacity: 0.85; filter: blur(0.3px); }
.cloud::before, .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.cloud::before { width: 66px; height: 66px; top: -26px; left: 22px; }
.cloud::after { width: 46px; height: 46px; top: -16px; left: 82px; }
.c1 { top: 70px; left: -160px; animation: drift 46s linear infinite; }
.c2 { top: 150px; left: -160px; transform: scale(0.7); animation: drift 63s linear infinite; }
.c3 { top: 40px; left: -160px; transform: scale(0.9); animation: drift 78s linear infinite; }
@keyframes drift { to { left: 115vw; } }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* ---- hero ---- */
.hero { position: relative; z-index: 1; text-align: center; padding: 30px 16px 8px; }
.bus { font-size: 68px; animation: jiggle 3s ease-in-out infinite; }
@keyframes jiggle { 0%,100% { transform: translateX(-6px) rotate(-2deg); } 50% { transform: translateX(6px) rotate(2deg); } }
.hero h1 {
  font-family: "Baloo 2", cursive; font-weight: 800; font-size: clamp(46px, 9vw, 86px);
  margin: 0; line-height: 0.95; letter-spacing: 1px;
  text-shadow: 0 3px 0 #fff, 0 6px 0 rgba(0,0,0,0.12);
}
.hero h1 .hey { color: #ff5aa0; }
.hero h1 .ringo { color: #2f7bd6; }
.hero h1 .spark { font-size: 0.5em; vertical-align: super; }
.jingle { font-family: "Caveat", cursive; font-size: clamp(20px, 3.4vw, 28px); color: #2c5a8f; margin: 6px 0 10px; }
.sub { font-size: clamp(15px, 2.2vw, 18px); color: #34503a; margin: 0 auto; max-width: 620px; font-weight: 500; }

/* ---- chat stage ---- */
.stage { position: relative; z-index: 1; max-width: 760px; margin: 8px auto 0; padding: 10px 14px 30px; }
.chat { display: flex; flex-direction: column; gap: 18px; margin-bottom: 16px; min-height: 120px; }

.row { display: flex; gap: 10px; align-items: flex-end; animation: pop 0.35s cubic-bezier(0.2, 1.4, 0.5, 1); }
.row.user { flex-direction: row-reverse; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(0.96); } }

.avatar {
  flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  font-size: 28px; background: #fff; box-shadow: var(--shadow); border: 3px solid #fff;
}
.avatar.ringo { background: #dfeada; }
.avatar.fact { background: linear-gradient(135deg, var(--fact) 0%, #ff8ac0 100%); }
.avatar.user { background: #cfe9ff; }

.bubble {
  position: relative; max-width: 78%; padding: 14px 18px; border-radius: 22px;
  box-shadow: var(--shadow); font-size: 16px; line-height: 1.5; font-weight: 500;
}
.bubble .who { font-family: "Baloo 2", cursive; font-weight: 800; font-size: 13px; letter-spacing: 0.4px; text-transform: uppercase; opacity: 0.8; margin-bottom: 3px; display: block; }

.bubble.ringo { background: var(--ringo-bubble); color: var(--ringo-ink); border-bottom-left-radius: 6px; border: 2px solid #bcd8ab; }
.bubble.ringo .who { color: var(--ringo); }

.bubble.fact {
  background: linear-gradient(180deg, #fffef4 0%, #fff7dd 100%);
  border: 3px dashed var(--fact); border-bottom-left-radius: 6px; color: #6a2340;
}
.bubble.fact .who { color: var(--fact); }
.bubble.fact strong { color: #d6156e; }

.bubble.user { background: linear-gradient(135deg, #4aa3ff 0%, #2f7bd6 100%); color: #fff; border-bottom-right-radius: 6px; }

.stamp {
  display: inline-block; margin-top: 10px; font-family: "Baloo 2", cursive; font-weight: 800;
  font-size: 12.5px; letter-spacing: 0.5px; color: #b3123f; border: 2.5px solid #e0356e;
  padding: 3px 10px; border-radius: 8px; transform: rotate(-3deg); background: #fff0f5;
  box-shadow: 0 2px 0 rgba(224, 53, 110, 0.3);
}
.stamp::before { content: "📌 AKTE · "; }

/* typing dots */
.typing { display: inline-flex; gap: 5px; padding: 4px 2px; }
.typing i { width: 9px; height: 9px; background: currentColor; border-radius: 50%; opacity: 0.5; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: 0.2s; }
.typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-6px); opacity: 1; } }

/* ---- chips ---- */
.chips { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; margin-bottom: 14px; }
.chip {
  font-family: "Fredoka", sans-serif; font-weight: 500; font-size: 14px; cursor: pointer;
  background: #fff; color: #2c5a8f; border: 2.5px solid #ffd23f; border-radius: 999px;
  padding: 8px 14px; box-shadow: 0 4px 0 rgba(0,0,0,0.1); transition: transform 0.12s, box-shadow 0.12s;
}
.chip:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(0,0,0,0.12); }
.chip:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0,0,0,0.12); }

/* ---- composer ---- */
.composer { display: flex; gap: 10px; position: sticky; bottom: 12px; }
.composer input {
  flex: 1; font-family: "Fredoka", sans-serif; font-size: 16px; padding: 15px 20px;
  border-radius: 999px; border: 3px solid #fff; box-shadow: var(--shadow); outline: none; background: #fff;
}
.composer input:focus { border-color: #ffd23f; }
.composer button {
  font-family: "Baloo 2", cursive; font-weight: 800; font-size: 16px; cursor: pointer; color: #fff;
  background: linear-gradient(135deg, #ff5aa0 0%, #ff8ac0 100%); border: none; border-radius: 999px;
  padding: 0 22px; box-shadow: 0 5px 0 #d6156e; transition: transform 0.1s, box-shadow 0.1s; white-space: nowrap;
}
.composer button:hover { transform: translateY(-1px); }
.composer button:active { transform: translateY(3px); box-shadow: 0 2px 0 #d6156e; }
.composer button:disabled { opacity: 0.55; cursor: default; box-shadow: 0 5px 0 #d6156e; transform: none; }

/* ---- footer ---- */
.foot { position: relative; z-index: 1; text-align: center; padding: 8px 20px 30px; }
.foot p { max-width: 660px; margin: 0 auto; font-size: 12.5px; line-height: 1.5; color: #2f4a30; opacity: 0.85; }

@media (max-width: 560px) {
  .bubble { max-width: 82%; font-size: 15px; }
  .avatar { width: 42px; height: 42px; font-size: 22px; }
}

/* ═══════════════════════════════════════════════════════════════
   TABS + PANELS
   ═══════════════════════════════════════════════════════════════ */
.tabs {
  position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center; margin: 6px auto 4px; padding: 0 12px; max-width: 820px;
}
.tab {
  font-family: "Baloo 2", cursive; font-weight: 800; font-size: 15px; cursor: pointer;
  color: #2c5a8f; background: #fff; border: 3px solid #fff; border-radius: 999px;
  padding: 9px 18px; box-shadow: 0 5px 0 rgba(0,0,0,0.12); transition: transform 0.12s, box-shadow 0.12s, background 0.12s, color 0.12s;
}
.tab .tab-emoji { font-size: 17px; }
.tab:hover { transform: translateY(-2px); box-shadow: 0 7px 0 rgba(0,0,0,0.14); }
.tab.is-active { background: linear-gradient(135deg, #ff5aa0 0%, #ff8ac0 100%); color: #fff; border-color: #fff; box-shadow: 0 5px 0 #d6156e; }

.panel { display: none; position: relative; z-index: 1; animation: panelIn 0.35s ease; }
.panel.is-active { display: block; }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } }
.panel .sub { text-align: center; padding-top: 6px; }

/* ═══════════════════════════════════════════════════════════════
   RINGO: DAS SPIEL  (dark arcade)
   ═══════════════════════════════════════════════════════════════ */
.game-shell { max-width: 920px; margin: 8px auto 24px; padding: 0 12px; }
.game-hud {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: stretch;
  background: #0b1030; border-radius: 16px 16px 0 0; padding: 12px 14px; border: 3px solid #1a2a66; border-bottom: none;
}
.hud-block { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 62px; }
.hud-label { font-family: "Fredoka", sans-serif; font-size: 10px; letter-spacing: 0.5px; text-transform: uppercase; color: #7fa0ff; }
.hud-val { font-family: "Press Start 2P", monospace; font-size: 15px; color: #ffe14d; line-height: 1.2; }
.hud-fuel { min-width: 130px; justify-content: center; }
.fuelbar { width: 120px; height: 12px; background: #05081c; border: 2px solid #29408a; border-radius: 8px; overflow: hidden; }
.fuelbar i { display: block; height: 100%; width: 100%; background: #7ec850; border-radius: 6px; transition: width 0.2s linear, background 0.3s; }

.game-frame {
  position: relative; background: #e9edf1; border: 3px solid #1a2a66; border-radius: 0 0 16px 16px;
  overflow: hidden; box-shadow: 0 10px 30px rgba(10,10,40,0.25); line-height: 0;
}
#game { display: block; width: 100%; height: auto; touch-action: none; }
.game-banner {
  position: absolute; left: 50%; top: 12px; transform: translateX(-50%) translateY(-14px);
  z-index: 4; background: rgba(10,14,40,0.92); color: #fff; border: 2px solid #ffd23f;
  font-family: "Fredoka", sans-serif; font-size: 13px; font-weight: 500; padding: 8px 14px; border-radius: 999px;
  white-space: nowrap; max-width: 92%; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; transition: opacity 0.25s, transform 0.25s; box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}
.game-banner.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.game-banner b { color: #ffe14d; }

.game-overlay {
  position: absolute; inset: 0; z-index: 5; display: none; flex-direction: column; align-items: center; justify-content: flex-start;
  text-align: center; padding: 18px; gap: 7px; color: #eaf0ff; overflow-y: auto;
  background: radial-gradient(circle at 50% 30%, rgba(30,40,90,0.86), rgba(4,6,20,0.96));
  backdrop-filter: blur(2px);
}
.game-overlay.is-active { display: flex; }
/* vertikal zentriert, wenn Platz da ist — sonst scrollbar (auto-Margins kollabieren beim Überlauf) */
.g-hero { width: min(86%, 380px); border-radius: 10px; margin: auto auto 2px; border: 2px solid rgba(255,255,255,0.15); box-shadow: 0 8px 24px rgba(0,0,0,0.55); }
.g-title { font-family: "Press Start 2P", monospace; font-size: clamp(18px, 5vw, 26px); color: #ffd23f; margin: 0; text-shadow: 0 3px 0 #b3123f, 0 0 18px rgba(255,210,63,0.5); line-height: 1.35; }
.g-title span { color: #ff8ac0; display: block; font-size: 0.62em; margin-top: 6px; }
.g-tag { font-size: 15px; margin: 4px 0 2px; color: #cfe0ff; }
.g-tag strong { color: #fff; }
.g-rules { list-style: none; margin: 4px 0; padding: 0; text-align: left; font-size: 12.5px; line-height: 1.7; color: #b9c8f0; max-width: 340px; }
.g-rules b { color: #ffe14d; }
.g-btn {
  font-family: "Press Start 2P", monospace; font-size: 15px; cursor: pointer; color: #06210a;
  background: linear-gradient(180deg, #9bff7a, #5fd23f); border: none; border-radius: 12px; padding: 15px 24px; margin-top: 6px;
  box-shadow: 0 6px 0 #2f8016; transition: transform 0.1s, box-shadow 0.1s;
}
.g-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #2f8016; }
.g-btn:active { transform: translateY(3px); box-shadow: 0 3px 0 #2f8016; }
.g-note { font-size: 11px; color: #7f8fc0; margin: 6px 0 auto; }
.g-scoreline { display: flex; gap: 14px; align-items: baseline; font-family: "Fredoka", sans-serif; font-size: 15px; color: #cfe0ff; }
.g-scoreline b { font-family: "Press Start 2P", monospace; font-size: 17px; color: #ffe14d; }
.g-new { font-family: "Baloo 2", cursive; font-weight: 800; color: #9bff7a; font-size: 17px; margin: 2px; }

/* Startscreen-Buttons */
.g-controls { font-size: 12.5px; color: #b9c8f0; max-width: 380px; margin: 2px 0; line-height: 1.6; }
.g-controls b { color: #ffe14d; }
.g-btnrow { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.g-btn-sec { color: #eaf2ff; background: linear-gradient(180deg, #5aa0ff, #2f6fd6); box-shadow: 0 6px 0 #1c458f; font-size: 13px; padding: 12px 18px; }
.g-btn-sec:hover { box-shadow: 0 8px 0 #1c458f; }
.g-btn-sec:active { box-shadow: 0 3px 0 #1c458f; }

/* Anleitung / Figuren-Durchklicker */
.game-guide {
  position: absolute; inset: 0; z-index: 6; display: none; flex-direction: column; align-items: center; justify-content: flex-start;
  text-align: center; padding: 16px; gap: 8px; color: #eaf0ff; overflow-y: auto;
  background: radial-gradient(circle at 50% 28%, rgba(30,40,90,0.92), rgba(4,6,20,0.98)); backdrop-filter: blur(2px);
}
.game-guide.is-active { display: flex; }
.guide-head { font-family: "Press Start 2P", monospace; font-size: 13px; color: #ffd23f; margin-top: auto; text-shadow: 0 2px 0 #b3123f; }
.guide-card { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.guide-imgwrap { height: 168px; display: flex; align-items: center; justify-content: center; }
#guide-img { max-height: 168px; max-width: 260px; filter: drop-shadow(0 8px 14px rgba(0,0,0,0.55)); }
.guide-name { font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 22px; color: #ffe14d; margin: 2px 0; }
.guide-desc { font-size: 14px; line-height: 1.55; max-width: 380px; color: #dfe8ff; margin: 0; }
.guide-dots { display: flex; gap: 7px; }
.guide-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.28); transition: background 0.2s; }
.guide-dots i.on { background: #ffd23f; }
.guide-nav { display: flex; gap: 10px; }
#guide-play { margin-bottom: auto; }

.dpad { display: none; margin: 14px auto 0; width: 190px; }
.dpad-mid { display: flex; justify-content: space-between; margin: 8px 0; }
.dbtn {
  font-size: 22px; width: 60px; height: 54px; border-radius: 14px; border: none; cursor: pointer;
  background: #14204a; color: #9bb4ff; box-shadow: 0 4px 0 #0a1230; touch-action: none; user-select: none;
}
.dbtn.up, .dbtn.down { display: block; margin: 0 auto; }
.dbtn:active { transform: translateY(2px); box-shadow: 0 2px 0 #0a1230; background: #1d2f66; }
@media (max-width: 560px), (pointer: coarse) { .dpad { display: block; } }

/* ══ Mobile: Querformat erzwingen, Spiel groß, D-Pad überm Canvas ══ */
#rotate-hint { display: none; }
.rot-icon { font-size: 66px; animation: rotwiggle 1.7s ease-in-out infinite; }
.rot-text { font-family: "Press Start 2P", monospace; font-size: clamp(13px, 4.5vw, 18px); color: #ffd23f; line-height: 1.5; text-shadow: 0 2px 0 #b3123f; }
.rot-sub { font-size: 15px; color: #cfe0ff; }
@keyframes rotwiggle { 0%, 100% { transform: rotate(-16deg); } 50% { transform: rotate(74deg); } }

@media (pointer: coarse) and (orientation: portrait) {
  #panel-game.is-active .game-shell { display: none; }
  #panel-game.is-active .sub { display: none; }
  #panel-game.is-active #rotate-hint {
    display: flex; position: fixed; inset: 0; z-index: 300;
    flex-direction: column; align-items: center; justify-content: center; gap: 18px;
    text-align: center; padding: 30px;
    background: radial-gradient(circle at 50% 38%, #16337a, #05081c);
  }
}
@media (pointer: coarse) and (orientation: landscape) {
  #panel-game.is-active .game-shell { max-width: none; margin: 0; padding: 2px 0 0; }
  #panel-game.is-active .sub { display: none; }
  #panel-game.is-active .game-hud { transform: scale(0.82); transform-origin: top center; margin: 0 auto 2px; }
  #panel-game.is-active #game { height: 84vh; width: auto; max-width: 100vw; margin: 0 auto; }
  #panel-game.is-active .dpad { display: block; position: fixed; left: 10px; bottom: 10px; width: auto; margin: 0; z-index: 60; opacity: 0.9; }
  #panel-game.is-active .dpad .dbtn { width: 66px; height: 60px; font-size: 26px; }
}

/* ═══════════════════════════════════════════════════════════════
   DU BIST RINGO!  (satirical LABO report form)
   ═══════════════════════════════════════════════════════════════ */
.melden-shell { max-width: 680px; margin: 10px auto 30px; padding: 20px; background: var(--card); border-radius: 22px; box-shadow: var(--shadow); border: 3px solid #fff; }
.form-head { display: flex; align-items: center; gap: 14px; border-bottom: 3px dashed #d9cdb0; padding-bottom: 14px; margin-bottom: 8px; }
.form-head .crest { font-size: 40px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)); }
.form-head h2 { font-family: "Baloo 2", cursive; font-weight: 800; margin: 0; font-size: 22px; color: #b3123f; }
.form-head p { margin: 2px 0 0; font-size: 13px; color: #5a6a52; }
.stamp-official { margin-left: auto; font-family: "Baloo 2", cursive; font-weight: 800; font-size: 12px; letter-spacing: 1px; color: #2f7bd6; border: 3px solid #2f7bd6; border-radius: 8px; padding: 6px 10px; transform: rotate(6deg); opacity: 0.85; text-align: center; }

.form-steps { list-style: none; counter-reset: none; margin: 0; padding: 0; }
.form-steps > li { margin: 18px 0; }
.form-steps h3 { font-family: "Baloo 2", cursive; font-weight: 700; font-size: 17px; color: #2b3a2b; margin: 0 0 8px; display: flex; align-items: center; gap: 9px; }
.step-no { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, #ff5aa0, #ff8ac0); color: #fff; font-size: 14px; box-shadow: 0 3px 0 #d6156e; }
.hint { font-size: 13px; color: #6a7a62; margin: 0 0 8px; }
.hint-inline { font-size: 12px; font-weight: 500; color: #8a6; }

.sight-map {
  position: relative; height: 360px; border-radius: 16px; cursor: crosshair; border: 4px solid #fff;
  box-shadow: var(--shadow); overflow: hidden; background: #aad3df; z-index: 0;
}
.sight-map .leaflet-container { font-family: "Fredoka", sans-serif; background: #aad3df; }
.sight-map .leaflet-container a { color: #2f7bd6; }
.map-fallback { display: grid; place-items: center; height: 100%; text-align: center; padding: 20px; color: #5a6a52; font-size: 15px; }

/* 🚌 pin marker (emoji divIcon) */
.bus-pin { background: none; border: none; font-size: 30px; text-align: center; line-height: 1; filter: drop-shadow(0 4px 3px rgba(0,0,0,0.4)); cursor: grab; }
.bus-pin:active { cursor: grabbing; }

/* Zuständigkeits-Labels auf der Karte */
.juris-label { background: none; border: none; white-space: nowrap; font-family: "Baloo 2", cursive; font-weight: 800; text-align: center; text-shadow: 0 1px 2px rgba(255,255,255,0.9), 0 0 4px rgba(255,255,255,0.9); pointer-events: none; }
.juris-label.ok { color: #2f7d16; font-size: 15px; letter-spacing: 1px; }
.juris-label.no { color: #b0281c; font-size: 12px; opacity: 0.85; }

.oor { color: #b0281c; font-weight: 700; }
.geo-load { color: #8a9a82; font-weight: 500; }

/* „Da bist du doch gar nicht zuständig?" — Dialog */
.juris-modal { position: fixed; inset: 0; z-index: 4000; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(20,20,40,0.5); backdrop-filter: blur(2px); }
.juris-modal.show { display: flex; animation: panelIn 0.2s ease; }
.jm-card { background: var(--card); border: 4px solid #fff; border-radius: 22px; box-shadow: var(--shadow); max-width: 380px; width: 100%; text-align: center; padding: 26px 22px; }
.jm-emoji { font-size: 52px; line-height: 1; margin-bottom: 6px; }
.jm-text { font-family: "Baloo 2", cursive; font-weight: 800; font-size: 20px; color: #b3123f; margin: 6px 0 18px; line-height: 1.3; }
.jm-btns { display: flex; flex-direction: column; gap: 10px; }
.jm-btns button { font-family: "Baloo 2", cursive; font-weight: 800; font-size: 16px; cursor: pointer; border: none; border-radius: 14px; padding: 13px 16px; transition: transform 0.1s, box-shadow 0.1s; }
.jm-no { color: #46503f; background: #fff; border: 2.5px solid #cbd6c0 !important; box-shadow: 0 4px 0 rgba(0,0,0,0.1); }
.jm-no:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0,0,0,0.1); }
.jm-yes { color: #fff; background: linear-gradient(135deg, #ff5aa0, #ff8ac0); box-shadow: 0 5px 0 #d6156e; }
.jm-yes:hover { transform: translateY(-1px); }
.jm-yes:active { transform: translateY(3px); box-shadow: 0 2px 0 #d6156e; }

.coord-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.coord-pill { font-family: "Fredoka", sans-serif; font-size: 13.5px; background: #fff0f5; border: 2px solid #ffd0e2; color: #6a2340; padding: 6px 12px; border-radius: 999px; }
.coord-pill b { color: #b3123f; }
.mini-btn { font-family: "Fredoka", sans-serif; font-size: 12.5px; cursor: pointer; background: #fff; border: 2px solid #cbd6c0; color: #5a6a52; border-radius: 999px; padding: 5px 12px; }
.mini-btn:hover { border-color: #ff8ac0; color: #b3123f; }

#m-desc { width: 100%; font-family: "Fredoka", sans-serif; font-size: 15px; padding: 12px 14px; border-radius: 14px; border: 3px solid #fff; box-shadow: var(--shadow); outline: none; resize: vertical; }
#m-desc:focus { border-color: #ffd23f; }

.crime-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.crime { display: flex; align-items: center; gap: 9px; background: #fff; border: 2.5px solid #ffe1ec; border-radius: 12px; padding: 9px 11px; cursor: pointer; font-size: 13.5px; color: #46503f; transition: border-color 0.12s, background 0.12s; }
.crime:hover { border-color: #ff8ac0; }
.crime input { position: absolute; opacity: 0; width: 0; height: 0; }
.crime .cx { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; border: 2.5px solid #cbd6c0; color: transparent; font-size: 14px; flex: 0 0 auto; transition: all 0.12s; }
.crime input:checked + .cx { background: #ff5aa0; border-color: #ff5aa0; color: #fff; }
.crime:has(input:checked) { border-color: #ff5aa0; background: #fff0f5; }
.crime .cl { line-height: 1.25; }

.reporter-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
#m-name { flex: 1; min-width: 200px; font-family: "Fredoka", sans-serif; font-size: 15px; padding: 12px 16px; border-radius: 999px; border: 3px solid #fff; box-shadow: var(--shadow); outline: none; }
#m-name:focus { border-color: #ffd23f; }
.anon { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: #5a6a52; cursor: pointer; }
.anon input { width: 18px; height: 18px; accent-color: #ff5aa0; }

.send-btn {
  display: block; width: 100%; margin-top: 20px; font-family: "Baloo 2", cursive; font-weight: 800; font-size: 18px;
  cursor: pointer; color: #fff; background: linear-gradient(135deg, #2f7bd6, #4aa3ff); border: none; border-radius: 16px; padding: 16px;
  box-shadow: 0 6px 0 #1c5aa8; transition: transform 0.1s, box-shadow 0.1s, background 0.2s;
}
.send-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #1c5aa8; }
.send-btn:active { transform: translateY(3px); box-shadow: 0 3px 0 #1c5aa8; }
.send-btn.warn { background: linear-gradient(135deg, #ff8a3c, #ff5a5a); box-shadow: 0 6px 0 #c23; }
.send-btn.done { background: linear-gradient(135deg, #5fd23f, #9bff7a); box-shadow: 0 6px 0 #2f8016; color: #06210a; }
.form-foot { font-size: 12px; color: #6a7a62; margin: 12px 2px 0; line-height: 1.5; text-align: center; }

.receipt { margin-top: 18px; background: #fffdf3; border: 3px dashed #2f7bd6; border-radius: 16px; padding: 18px; }
.receipt.pop { animation: pop 0.4s cubic-bezier(0.2, 1.4, 0.5, 1); }
.rc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.rc-badge { font-family: "Baloo 2", cursive; font-weight: 800; font-size: 12px; letter-spacing: 1px; color: #fff; background: #2f7bd6; padding: 4px 10px; border-radius: 6px; }
.rc-nr { font-family: "Press Start 2P", monospace; font-size: 11px; color: #b3123f; }
.rc-title { font-family: "Baloo 2", cursive; font-weight: 800; font-size: 18px; margin: 4px 0 10px; color: #2b3a2b; }
.rc-grid { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0 0 10px; font-size: 14px; }
.rc-grid dt { font-weight: 700; color: #2f7bd6; }
.rc-grid dd { margin: 0; color: #46503f; }
.rc-crimes { margin: 0 0 12px; padding-left: 20px; font-size: 13.5px; color: #6a2340; }
.rc-crimes li { margin: 2px 0; }
.rc-fact { background: linear-gradient(180deg, #fffef4, #fff7dd); border: 3px dashed var(--fact); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; line-height: 1.55; color: #6a2340; }
.rc-fact b { color: #d6156e; }
.rc-note { font-size: 12.5px; color: #5a6a52; margin: 10px 0 12px; }

.shake { animation: shakeX 0.4s; }
@keyframes shakeX { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-8px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(6px); } }

@media (max-width: 560px) {
  .crime-grid { grid-template-columns: 1fr; }
  .stamp-official { display: none; }
  .hud-block { min-width: 52px; }
  .hud-val { font-size: 12px; }
}

/* ═══════════════════════════════════════════════════════════════
   RINGO. DAS QUIZ  (Wer-wird-Millionär)
   ═══════════════════════════════════════════════════════════════ */
.quiz-shell { max-width: 900px; margin: 8px auto 26px; padding: 0 12px; }
.quiz-stage { display: flex; gap: 14px; align-items: stretch; }
.quiz-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }

.jokers { display: flex; gap: 10px; justify-content: center; }
.joker {
  font-family: "Baloo 2", cursive; font-weight: 800; font-size: 14px; cursor: pointer; color: #ffe14d;
  background: radial-gradient(circle at 50% 30%, #14245e, #0a1436); border: 2.5px solid #3f6bff; border-radius: 999px;
  padding: 8px 16px; box-shadow: 0 4px 0 rgba(0,0,0,0.35), inset 0 0 12px rgba(63,107,255,0.4); transition: transform 0.12s, filter 0.12s;
}
.joker:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.2); }
.joker.used, .joker:disabled { opacity: 0.4; cursor: default; position: relative; }
.joker.used::after { content: "✕"; position: absolute; inset: 0; display: grid; place-items: center; color: #ff5a7a; font-size: 22px; }

.q-area {
  position: relative; background: radial-gradient(ellipse at 50% 0%, #16235e 0%, #0a1130 60%, #060a1c 100%);
  border: 3px solid #24397e; border-radius: 18px; padding: 22px 18px; min-height: 300px; overflow: hidden;
  box-shadow: 0 12px 34px rgba(6,10,28,0.5), inset 0 0 60px rgba(0,0,0,0.5);
}
.q-question {
  font-family: "Fredoka", sans-serif; font-weight: 500; font-size: clamp(16px, 2.6vw, 20px); color: #eaf0ff; text-align: center;
  background: linear-gradient(180deg, rgba(20,32,74,0.9), rgba(10,18,48,0.9)); border: 2px solid #3f6bff; border-radius: 14px;
  padding: 16px 18px; margin-bottom: 16px; min-height: 64px; display: flex; flex-direction: column; justify-content: center;
  box-shadow: inset 0 0 20px rgba(63,107,255,0.25);
}
.q-prize { display: block; font-family: "Press Start 2P", monospace; font-size: 11px; color: #ffd23f; margin-bottom: 8px; }

.q-answers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.answer {
  display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer;
  font-family: "Fredoka", sans-serif; font-size: 15px; color: #eaf0ff;
  background: linear-gradient(180deg, #16244f, #0b1636); border: 2px solid #3f6bff; padding: 12px 16px;
  clip-path: polygon(4% 0, 96% 0, 100% 50%, 96% 100%, 4% 100%, 0 50%); transition: background 0.15s, color 0.15s, transform 0.1s;
}
.answer:hover:not(.removed) { background: linear-gradient(180deg, #22367a, #14245e); }
.answer .letter { font-family: "Baloo 2", cursive; font-weight: 800; color: #ffd23f; min-width: 18px; }
.answer.selected { background: linear-gradient(180deg, #ffb027, #ff8a00); color: #201200; border-color: #ffd23f; animation: q-blink 0.5s steps(2) infinite; }
.answer.selected .letter { color: #201200; }
.answer.correct { background: linear-gradient(180deg, #37d15a, #1f9b3f) !important; color: #04210d !important; border-color: #9bff7a; animation: none; }
.answer.correct .letter { color: #04210d; }
.answer.wrong { background: linear-gradient(180deg, #ff5a5a, #c1242e) !important; color: #fff !important; border-color: #ff9a9a; animation: none; }
.answer.removed { opacity: 0.18; pointer-events: none; }
.answer.removed .atext, .answer.removed .letter { visibility: hidden; }
@keyframes q-blink { 50% { filter: brightness(0.78); } }

.q-walk {
  align-self: center; font-family: "Baloo 2", cursive; font-weight: 800; font-size: 14px; cursor: pointer; color: #06210a;
  background: linear-gradient(135deg, #9bff7a, #5fd23f); border: none; border-radius: 999px; padding: 9px 20px; box-shadow: 0 4px 0 #2f8016;
}
.q-walk:hover { transform: translateY(-1px); }
.q-walk:active { transform: translateY(2px); box-shadow: 0 2px 0 #2f8016; }

/* overlay (start / end) */
.quiz-overlay {
  position: absolute; inset: 0; z-index: 5; display: none; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 8px; padding: 24px; color: #eaf0ff;
  background: radial-gradient(circle at 50% 30%, rgba(22,35,94,0.94), rgba(4,6,20,0.98)); backdrop-filter: blur(2px);
}
.quiz-overlay.is-active { display: flex; }
.quiz-title { font-family: "Press Start 2P", monospace; font-size: clamp(17px, 4.5vw, 24px); color: #ffd23f; margin: 0; line-height: 1.4; text-shadow: 0 3px 0 #b3123f, 0 0 18px rgba(255,210,63,0.5); }
.quiz-title span { display: block; color: #ff8ac0; font-size: 0.7em; margin-top: 6px; }
.quiz-title.win { color: #9bff7a; text-shadow: 0 0 20px rgba(155,255,122,0.6); }
.quiz-title.lose { color: #ff8a9a; }
.quiz-tag { font-size: 15px; color: #cfe0ff; max-width: 440px; margin: 4px 0; }
.quiz-tag b { color: #ffd23f; }
.quiz-rules { list-style: none; margin: 4px 0; padding: 0; text-align: left; font-size: 13px; line-height: 1.8; color: #b9c8f0; }
.quiz-rules b { color: #ffe14d; }
.q-btn {
  font-family: "Press Start 2P", monospace; font-size: 14px; cursor: pointer; color: #201200;
  background: linear-gradient(180deg, #ffd23f, #ffb027); border: none; border-radius: 12px; padding: 14px 22px; margin-top: 8px;
  box-shadow: 0 6px 0 #b3123f; transition: transform 0.1s, box-shadow 0.1s;
}
.q-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #b3123f; }
.q-btn:active { transform: translateY(3px); box-shadow: 0 3px 0 #b3123f; }
.q-note { font-size: 11px; color: #7f8fc0; margin: 6px 0 0; }

/* audience + phone joker popups */
.audience-panel, .phone-bubble {
  position: absolute; left: 50%; top: 14px; transform: translateX(-50%); z-index: 6; width: min(340px, 92%);
  background: rgba(6,10,28,0.96); border: 2px solid #ffd23f; border-radius: 14px; padding: 12px 14px; box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.ap-title { font-family: "Baloo 2", cursive; font-weight: 800; font-size: 13px; color: #ffd23f; text-align: center; margin-bottom: 8px; }
.audience-panel[hidden], .phone-bubble[hidden] { display: none; }
.ap-row { display: grid; grid-template-columns: 18px 1fr 40px; align-items: end; gap: 8px; height: 76px; margin-bottom: 2px; }
.ap-l { color: #ffd23f; font-weight: 800; align-self: center; }
.ap-bar { height: 72px; display: flex; align-items: flex-end; background: rgba(63,107,255,0.12); border-radius: 4px; }
.ap-bar i { display: block; width: 100%; background: linear-gradient(180deg, #5ac8ff, #2f7bd6); border-radius: 4px 4px 0 0; min-height: 3px; }
.ap-p { color: #cfe0ff; font-size: 12px; align-self: center; text-align: right; }
.phone-bubble .ph-h { font-family: "Baloo 2", cursive; font-weight: 800; font-size: 13px; color: #ffd23f; margin-bottom: 6px; }
.phone-bubble .ph-b { font-size: 14px; color: #eaf0ff; line-height: 1.4; }
.phone-bubble .ph-b b { color: #ffe14d; }
.phone-bubble.note { border-color: #ff5aa0; }
.phone-bubble.note .ph-b b { color: #ff8ac0; }

/* money ladder */
.ladder { width: 190px; flex-shrink: 0; }
.ladder ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column-reverse; gap: 3px; background: radial-gradient(ellipse at 50% 100%, #16235e, #060a1c); border: 2px solid #24397e; border-radius: 14px; padding: 8px; }
.rung { display: flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 8px; font-family: "Fredoka", sans-serif; color: #9db0e6; font-size: 13px; }
.rung .rn { font-size: 11px; color: #5f74b0; min-width: 18px; }
.rung .rv { margin-left: auto; font-weight: 600; }
.rung.safe { color: #cfe0ff; }
.rung.safe .rv { color: #fff; text-shadow: 0 0 6px rgba(255,255,255,0.4); }
.rung.done { color: #6f86c6; }
.rung.current { background: linear-gradient(90deg, #ffb027, #ff8a00); color: #201200; box-shadow: 0 0 14px rgba(255,176,39,0.6); }
.rung.current .rn, .rung.current .rv { color: #201200; }

@media (max-width: 640px) {
  .quiz-stage { flex-direction: column; }
  .ladder { width: 100%; }
  .ladder ol { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .rung { font-size: 11px; padding: 4px 7px; }
  .rung .rn { display: none; }
  .q-answers { grid-template-columns: 1fr; }
}
