:root {
  --night: #11152a;
  --night2: #1b2140;
  --paper: #fff8e7;
  --ink: #111;
  --yellow: #ffd23f;
  --orange: #ff6b1a;
  --green: #3ccf7a;
  --red: #ff4d4d;
  --blue: #5ab8ff;
  --muted: #b9bdd6;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--night); color: #fff;
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background-image: radial-gradient(circle at 20% 0%, #2a3266 0, transparent 50%), radial-gradient(#ffffff10 1px, transparent 1px);
  background-size: auto, 18px 18px;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.comic { font-family: "Arial Black", "Helvetica Neue", Impact, sans-serif; font-weight: 900; text-transform: uppercase; letter-spacing: .01em; }
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.05; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.screen { display: none; padding-bottom: 120px; }
.screen.on { display: block; animation: pop .35s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  font: inherit; font-family: "Arial Black", Impact, sans-serif; font-weight: 900; text-transform: uppercase;
  background: var(--yellow); color: var(--ink); border: 3px solid var(--ink); border-radius: 10px;
  padding: 12px 22px; box-shadow: 4px 4px 0 var(--ink); transition: transform .08s, box-shadow .08s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn:disabled { opacity: .45; cursor: default; transform: none; box-shadow: 4px 4px 0 var(--ink); }
.btn.orange { background: var(--orange); color: #fff; }
.btn.ghost { background: var(--paper); }
.panel { background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 6px 6px 0 #000; }

/* Start */
.hero { position: relative; min-height: 100vh; display: grid; align-items: end; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--night) 8%, #11152acc 35%, transparent 70%); }
.hero .wrap { position: relative; z-index: 1; padding-bottom: 8vh; }
.hero h1 { font-size: clamp(2.6rem, 9vw, 6rem); color: var(--yellow); text-shadow: 4px 4px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000; transform: rotate(-2deg); }
.hero p { font-size: 1.2rem; max-width: 34em; text-shadow: 0 2px 6px #000; }
.tagline { display: inline-block; background: var(--orange); border: 3px solid #000; padding: 4px 12px; transform: rotate(-2deg); margin-bottom: 14px; }

/* Läden */
.shops { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
@media (max-width: 820px) { .shops { grid-template-columns: 1fr; } }
.shop { cursor: pointer; overflow: hidden; padding: 0; text-align: left; font: inherit; }
.shop img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; border-bottom: 3px solid var(--ink); }
.shop div { padding: 14px 16px; }
.shop:hover { transform: rotate(-1deg) scale(1.02); }
.shop { transition: transform .15s; }

/* Crew-Auswahl */
.bar { position: sticky; top: 0; z-index: 5; background: #11152af2; backdrop-filter: blur(6px); border-bottom: 2px solid #000; padding: 12px 0; }
.bar .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; }
@media (max-width: 760px) { .bar .wrap { grid-template-columns: 1fr; gap: 10px; } }
.slots { display: flex; gap: 8px; }
.slot { width: 56px; height: 56px; border-radius: 10px; border: 3px dashed #ffffff55; overflow: hidden; background: var(--night2); cursor: pointer; }
.slot.filled { border: 3px solid var(--yellow); }
.slot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.money { font-size: 1.4rem; }
.money small { display: block; font-size: .75rem; color: var(--muted); font-family: system-ui; text-transform: none; font-weight: 600; }
.teamstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px 12px; font-size: .78rem; }
.meter { height: 8px; background: #ffffff22; border-radius: 4px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--yellow); transition: width .3s; }
.syn { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; min-height: 0; }
.syn span { background: var(--green); color: #000; font-size: .75rem; font-weight: 800; padding: 2px 8px; border-radius: 99px; border: 2px solid #000; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; margin-top: 22px; }
.card { position: relative; cursor: pointer; overflow: hidden; padding: 0; text-align: left; font: inherit; transition: transform .15s; }
.card:hover { transform: translateY(-3px) rotate(-.5deg); }
.card.picked { outline: 5px solid var(--yellow); outline-offset: 2px; transform: rotate(1deg); }
.card.off { opacity: .45; }
.card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; border-bottom: 3px solid var(--ink); background: #ccc; }
.card .price { position: absolute; top: 10px; right: 10px; background: var(--yellow); border: 3px solid #000; border-radius: 99px; padding: 2px 10px; font-family: "Arial Black", Impact, sans-serif; }
.card .check { position: absolute; top: 10px; left: 10px; width: 36px; height: 36px; display: none; place-items: center; background: var(--green); border: 3px solid #000; border-radius: 50%; font-weight: 900; }
.card.picked .check { display: grid; }
.card .body { padding: 12px 14px 14px; }
.card .role { font-size: .8rem; color: #555; font-weight: 700; text-transform: uppercase; }
.card .name { font-size: 1.05rem; font-weight: 900; margin: 2px 0 8px; }
.card .quote { font-style: italic; font-size: .88rem; color: #444; margin-top: 8px; }
.card .perk { font-size: .8rem; background: var(--orange); color: #fff; display: inline-block; padding: 1px 8px; border-radius: 6px; margin-top: 6px; font-weight: 700; }
.mini { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 12px; font-size: .74rem; font-weight: 700; color: #333; }
.mini .meter { background: #0001; height: 7px; }
.mini .meter i { background: var(--orange); }

.go { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; padding: 14px 16px; background: linear-gradient(transparent, var(--night) 40%); display: flex; justify-content: center; gap: 12px; }

/* Nacht */
.stage { position: relative; min-height: 100vh; overflow: hidden; }
.stage > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.55) saturate(1.1); }
.stage .wrap { position: relative; z-index: 1; padding-top: 18px; }
.hud { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.hud .clock { font-size: 2rem; color: var(--yellow); text-shadow: 3px 3px 0 #000; }
.hud .dmg { font-size: 1.3rem; background: #000a; padding: 6px 14px; border-radius: 10px; border: 2px solid #000; }
.event { max-width: 640px; margin: 7vh auto 0; padding: 22px; transform: rotate(-1deg); }
.event .ic { font-size: 3rem; line-height: 1; }
.event h3 { font-size: 1.6rem; }
.react { display: grid; grid-template-columns: 90px 1fr; gap: 14px; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 3px dashed #0003; }
.react img { width: 90px; height: 90px; object-fit: cover; object-position: top; border: 3px solid #000; border-radius: 12px; }
.bubble { background: #fff; border: 3px solid #000; border-radius: 14px; padding: 10px 14px; font-weight: 600; position: relative; }
.stamp { display: inline-block; margin-top: 14px; padding: 6px 16px; border: 4px solid; border-radius: 8px; font-size: 1.3rem; transform: rotate(-4deg); animation: stamp .3s ease-out; }
@keyframes stamp { from { transform: scale(2.4) rotate(-12deg); opacity: 0; } to { transform: rotate(-4deg); opacity: 1; } }
.stamp.gehalten { color: #12813e; border-color: #12813e; }
.stamp.knapp { color: #b26a00; border-color: #b26a00; }
.stamp.schaden { color: #c81e1e; border-color: #c81e1e; }
.lineup { position: fixed; bottom: 86px; left: 0; right: 0; z-index: 2; display: flex; justify-content: center; gap: 10px; }
.lineup img { width: 64px; height: 64px; object-fit: cover; object-position: top; border: 3px solid #000; border-radius: 50%; background: #333; transition: transform .2s; }
.lineup img.star { transform: translateY(-14px) scale(1.2); border-color: var(--yellow); }
.shake { animation: shake .4s; }
@keyframes shake { 0%,100% { transform: translateX(0) rotate(-1deg); } 25% { transform: translateX(-10px) rotate(-3deg); } 75% { transform: translateX(10px) rotate(1deg); } }

/* Ergebnis */
.result { max-width: 760px; margin: 40px auto 0; padding: 26px; }
.stars { font-size: 2.2rem; letter-spacing: 4px; color: var(--orange); }
.result h2 { font-size: clamp(2rem, 6vw, 3.2rem); }
.big { font-size: 2.4rem; }
.log { list-style: none; padding: 0; margin: 18px 0; }
.log li { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; padding: 8px 0; border-bottom: 2px dashed #0002; align-items: center; }
.log .ic { font-size: 1.5rem; }
.tag { font-weight: 900; font-size: .8rem; text-transform: uppercase; }
.tag.gehalten { color: #12813e; } .tag.knapp { color: #b26a00; } .tag.schaden { color: #c81e1e; }
.crewrow { display: flex; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
.crewrow img { width: 70px; height: 70px; object-fit: cover; object-position: top; border: 3px solid #000; border-radius: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.muted { color: var(--muted); }
.ink-muted { color: #555; }
footer { text-align: center; color: var(--muted); font-size: .85rem; padding: 20px; }
footer a { color: var(--muted); }

/* ---------- FKTV Live-Reportage ---------- */
.tv-bg { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; filter: blur(28px) brightness(.45) saturate(1.3); }
.nosignal::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, #0008 0 2px, #fff1 2px 4px); animation: noise .25s steps(2) infinite; }
@keyframes noise { 50% { transform: translateY(2px); } }
  position: absolute; left: 50%; top: 4%; height: 76%; aspect-ratio: 9 / 16; transform: translateX(-50%);
  border: 5px solid #111; border-radius: 22px; overflow: hidden; background: #111; box-shadow: 0 10px 40px #000a;
}
@keyframes blink { 50% { opacity: 0; } }
.tv-stamp.on { animation: stamp2 .35s ease-out forwards; }
@keyframes stamp2 { to { opacity: 1; transform: rotate(-8deg) scale(1); } }
.tv-stamp.gehalten { color: #12813e; } .tv-stamp.knapp { color: #b26a00; } .tv-stamp.schaden { color: #c81e1e; }
.kicker.red { background: var(--red); }
@keyframes tick { to { transform: translateX(-100%); } }
.votes { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.vote { font-size: 1.3rem; background: var(--paper); border: 3px solid #000; border-radius: 10px; cursor: pointer; padding: 2px 10px; box-shadow: 3px 3px 0 #000; }
.small { font-size: .85rem; }
.small-btn { padding: 6px 12px; }

/* Korrekturen Sendung */
[hidden] { display: none !important; }

/* Teilen auf X */
.xbox { display: grid; gap: 8px; margin: 22px 0 6px; }
.xbtn {
  display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; cursor: pointer;
  background: #000; color: #fff; text-decoration: none; border: 3px solid #000; border-radius: 14px;
  padding: 18px 24px; font: 900 1.5rem/1 "Arial Black", Impact, sans-serif; text-transform: uppercase;
  box-shadow: 6px 6px 0 var(--orange); transition: transform .08s, box-shadow .08s;
}
.xbtn svg { width: 30px; height: 30px; }
.xbtn:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--orange); }
.xbtn:active { transform: translate(4px, 4px); box-shadow: 2px 2px 0 var(--orange); }

/* Eigener Laden */
.upload-card { display: grid; grid-template-rows: auto 1fr; border-style: dashed !important; }
.upload-ic { aspect-ratio: 16/9; display: grid; place-items: center; font-size: 4rem; background: repeating-linear-gradient(45deg, #f1eadb 0 14px, #e6dcc6 14px 28px); border-bottom: 3px solid var(--ink); }
.upload { margin-top: 24px; padding: 22px; }
.up-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 760px) { .up-grid { grid-template-columns: 1fr; } }
.up-drop { position: relative; display: grid; place-items: center; aspect-ratio: 16/9; border: 3px dashed var(--ink); border-radius: 12px; cursor: pointer; overflow: hidden; background: #f1eadb; font-weight: 800; }
.up-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.up-drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.upload input[type=text], .upload #up-name { width: 100%; font: inherit; padding: 10px 12px; border: 3px solid var(--ink); border-radius: 10px; margin: 6px 0 12px; }
.up-check { display: flex; gap: 8px; align-items: flex-start; font-size: .9rem; margin-bottom: 14px; }
.up-check input { margin-top: 4px; }
.invite { display: grid; grid-template-columns: 180px 1fr auto; gap: 16px; align-items: center; padding: 14px; margin-bottom: 22px; }
.invite img { width: 100%; border-radius: 8px; border: 3px solid var(--ink); }
@media (max-width: 760px) { .invite { grid-template-columns: 1fr; } }

/* Entscheidung pro Welle */
.bigbtn { width: 100%; font-size: 1.35rem; padding: 18px; }
.pulse { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.025); box-shadow: 6px 6px 0 var(--ink); } }
.howto { font-size: 1rem; }
.decide .dq { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
.decide .dq b { font-family: "Arial Black", Impact, sans-serif; text-transform: uppercase; font-size: 1.3rem; }
.decide .dq span { color: #444; font-weight: 700; }
.countdown { height: 12px; background: #0002; border-radius: 6px; overflow: hidden; margin: 10px 0 12px; border: 2px solid var(--ink); }
.countdown i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--red), var(--orange), var(--yellow)); }
.picks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 640px) { .picks { grid-template-columns: repeat(2, 1fr); } }
.pick { display: grid; gap: 3px; justify-items: center; text-align: center; cursor: pointer; font: inherit; background: #fff; border: 3px solid var(--ink); border-radius: 12px; padding: 10px 6px; box-shadow: 4px 4px 0 var(--ink); transition: transform .08s; }
.pick:hover { transform: translateY(-3px); background: var(--yellow); }
.pick:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.pick img { width: 64px; height: 64px; object-fit: cover; object-position: top; border-radius: 50%; border: 3px solid var(--ink); }
.pick .pname { font-weight: 900; font-size: .9rem; line-height: 1.1; }
.pick .pstats { font-weight: 800; font-size: .95rem; }
.pick .puse { font-size: .75rem; color: #555; }
.pick.tired { opacity: .55; filter: grayscale(.8); }
.waiting { display: flex; align-items: center; gap: 12px; font-size: 1.15rem; }
.waiting img { width: 54px; height: 54px; object-fit: cover; object-position: top; border-radius: 50%; border: 3px solid var(--ink); }
.resultline { font-family: "Arial Black", Impact, sans-serif; text-transform: uppercase; font-size: 1.3rem; }
.resultline.gehalten { color: #12813e; } .resultline.knapp { color: #b26a00; } .resultline.schaden { color: #c81e1e; }
.tv-panel .votes { margin-left: 0; }
.nosignal.alarm::after { content: ""; position: absolute; inset: 0; border: 6px solid var(--red); animation: blink .6s steps(1) infinite; }
.nosignal.alarm div b { color: var(--red); }
.pick { color: var(--ink); }

/* ---------- Spielablauf-Überarbeitung ---------- */
/* Laden-Karten: Rekord · Crew-Karten: Spezialtricks */
.rec { margin-top: 6px; font-weight: 800; font-size: .85rem; }
.recstars { color: var(--orange); letter-spacing: 1px; }
.tricks { font-size: .78rem; font-weight: 700; color: #444; margin-top: 6px; }
.tricks span { font-size: .95rem; }
.go #random-crew { padding-left: 14px; padding-right: 14px; }
@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
  .card img { aspect-ratio: 4 / 3; object-position: top; }
  .shop img { aspect-ratio: 2 / 1; }
  .shops { gap: 14px; }
  .card .body { padding: 8px 9px 10px; }
  .card .name { font-size: .88rem; margin-bottom: 4px; line-height: 1.15; }
  .card .role { font-size: .66rem; }
  .card .quote { display: none; }
  .card .price { top: 6px; right: 6px; font-size: .8rem; padding: 0 8px; }
  .card .check { top: 6px; left: 6px; width: 30px; height: 30px; }
  .card .perk { font-size: .68rem; padding: 1px 6px; }
  .mini { grid-template-columns: 1fr; gap: 1px; font-size: .64rem; }
  .mini .meter { height: 5px; }
  .tricks { font-size: .68rem; }
  .bar { padding: 8px 0; }
  .bar .wrap { grid-template-columns: auto 1fr; gap: 6px 12px; }
  .bar .wrap > div:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .slot { width: 46px; height: 46px; }
  .slots { gap: 6px; }
  .money { font-size: 1.15rem; text-align: right; }
  .teamstats { font-size: .66rem; gap: 2px 8px; }
  .go { gap: 8px; padding: 12px 10px; }
  .go .btn { padding: 12px 14px; }
}

/* Sendung: Bildschirm passt über das feste Panel unten */
#s-sendung { padding-bottom: 250px; }

/* Treffer-Effekte */
.tv.hit { animation: tvshake .45s; }
.tv.hit::after, .tv.gold::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 4; animation: flash .7s ease-out forwards; }
.tv.hit::after { background: radial-gradient(circle, #ff4d4d00 30%, #ff4d4daa); }
.tv.gold::after { background: radial-gradient(circle, #ffd23f00 30%, #ffd23fbb); }
@keyframes flash { from { opacity: 1; } to { opacity: 0; } }
@keyframes tvshake { 0%,100% { transform: none; } 20% { transform: translate(-8px, 3px) rotate(-.6deg); } 40% { transform: translate(7px, -3px) rotate(.5deg); } 60% { transform: translate(-5px, 2px); } 80% { transform: translate(3px, -1px); } }
.tv.boss { box-shadow: 6px 6px 0 #000, 0 0 0 4px var(--red); animation: bosspulse 1.4s ease-in-out infinite; }
.tv.boss.hit { animation: tvshake .45s; }
@keyframes bosspulse { 50% { box-shadow: 6px 6px 0 #000, 0 0 0 8px #ff4d4d88; } }
.cracks { position: absolute; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.cracks svg { position: absolute; width: 22cqw; aspect-ratio: 1; opacity: 0; transform: scale(.4) rotate(var(--r)); transition: opacity .15s, transform .25s cubic-bezier(.3, 1.6, .5, 1); filter: drop-shadow(0 0 1.5px #000) drop-shadow(0 0 1px #000); }
.cracks .k1 { left: 2%; top: 14%; --r: 0deg; }
.cracks .k2 { right: 0; top: 34%; --r: 40deg; }
.cracks .k3 { left: 30%; top: 4%; --r: -25deg; width: 17cqw; }
.cracks.c1 .k1, .cracks.c2 .k1, .cracks.c2 .k2, .cracks.c3 svg { opacity: .9; transform: scale(1) rotate(var(--r)); }
.tv-stamp.stars { letter-spacing: 3px; }

/* Ohne Clip: Comic-Karte im Handy */
.nosignal .bigic { font-size: clamp(2rem, 7cqw, 4rem); line-height: 1; }
.nosignal .vs { display: flex; align-items: center; justify-content: center; gap: 6px; }
.nosignal .vs img { width: clamp(44px, 9cqw, 90px); aspect-ratio: 1; object-fit: cover; object-position: top; border-radius: 50%; border: 3px solid var(--yellow); }
.nosignal .vs i { font-style: normal; font-size: clamp(1.4rem, 4cqw, 2.4rem); animation: stamp .35s ease-out; }
.nosignal .small { font-size: clamp(.5rem, 1.1cqw, .7rem); color: #ccc; }

/* Festes Panel unten: Entscheidung, Ergebnis, Weiter */
#s-sendung .tv-panel {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 20; width: min(100%, 1088px);
  margin: 0; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); display: grid; gap: 8px;
  border-radius: 16px 16px 0 0; border-bottom: 0; box-shadow: 0 -4px 0 #000, 0 -12px 30px #0008; animation: sheet .25s ease-out;
}
@keyframes sheet { from { transform: translate(-50%, 30px); opacity: .4; } to { transform: translateX(-50%); opacity: 1; } }
.howto { display: grid; gap: 10px; }
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; font-size: .95rem; }
@media (max-width: 640px) { .rules { grid-template-columns: 1fr; font-size: .86rem; gap: 2px; } }
.bigbtn { font-size: 1.2rem; padding: 14px; }
.decide { display: grid; gap: 8px; }
.decide .dq { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: center; }
.decide .dq .dic { font-size: 1.5rem; line-height: 1; }
.decide .dq b { font-size: 1.15rem; }
.decide .dneed { font-size: .9rem; }
.decide .dneed em { font-style: normal; background: var(--yellow); border: 2px solid var(--ink); border-radius: 99px; padding: 0 8px; margin-left: 4px; color: var(--ink); white-space: nowrap; }
.dstreak { background: var(--orange); color: #fff; font-weight: 900; border-radius: 99px; padding: 0 10px; border: 2px solid var(--ink); font-size: .85rem; }
.decide.boss .dq b { color: #c81e1e; }
.countdown { position: relative; margin: 0; height: 16px; }
.countdown span { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 900 .75rem/1 "Arial Black", Impact, sans-serif; }
.countdown.hurry { animation: hurry .3s ease-in-out infinite alternate; border-color: var(--red); }
@keyframes hurry { to { transform: scale(1.02); } }
.coach { background: #fff; border: 2px dashed var(--orange); border-radius: 10px; padding: 6px 10px; font-weight: 700; font-size: .92rem; }
.picks { grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (max-width: 640px) { .picks { grid-template-columns: repeat(4, 1fr); gap: 6px; } }
.pick { position: relative; padding: 8px 4px 6px; gap: 2px; }
.pick img { width: 56px; height: 56px; }
.pick .pname { font-size: .9rem; }
.pick .pstats { display: flex; gap: 6px; font-size: .95rem; }
.pick .puse { color: var(--orange); letter-spacing: 2px; font-size: .7rem; }
.pick.tired .puse { color: #555; letter-spacing: 0; }
.pick.known { border-color: #c99a00; background: #fff6cf; }
.pick .pstar { position: absolute; top: 2px; right: 4px; z-index: 1; font-size: 1.1rem; animation: blink 1.2s steps(1) 3; }
.pick kbd { position: absolute; top: 4px; left: 6px; font: 700 .65rem/1 system-ui; color: #999; }
@media (max-width: 640px) {
  .pick img { width: 44px; height: 44px; border-width: 2px; }
  .pick .pname { font-size: .78rem; }
  .pick .pstats { font-size: .8rem; gap: 3px; }
  .pick kbd { display: none; }
  .decide .dq b { font-size: 1rem; }
  .decide .dneed { font-size: .8rem; }
}
@media (hover: none) { .pick kbd { display: none; } }
.resultline { font-size: 1.15rem; }
.rstreak { font-size: .85rem; color: var(--orange); white-space: nowrap; }
.tip, .newtrick { font-weight: 700; font-size: .9rem; border-radius: 10px; padding: 6px 10px; }
.tip { background: #fff; border: 2px dashed #b26a00; }
.newtrick { background: var(--yellow); border: 2px solid var(--ink); animation: pop .3s ease-out; }
.tv-panel .row { display: flex; gap: 10px; align-items: center; }
.tv-panel .row .bigbtn { flex: 1; }
.tv-panel .votes { flex: none; }
.vote { font-size: 1.1rem; padding: 2px 8px; }
@media (max-width: 640px) { .tv-panel .votes .small { display: none; } }
.bigbtn.auto { position: relative; overflow: hidden; animation: none; }
.bigbtn.auto i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #0002; }
.bigbtn.auto span { position: relative; }
.waiting { font-size: 1.05rem; }

@media (max-width: 700px) {
  #s-sendung .tv-panel { padding: 10px 10px calc(10px + env(safe-area-inset-bottom)); }
}

/* Ergebnis: Ziele & Rekord */
.goals { display: grid; gap: 4px; margin: 14px 0 4px; padding: 12px 14px; background: #fff; border: 3px solid var(--ink); border-radius: 12px; font-weight: 600; }
.newrec { color: var(--orange); font-size: 1.4rem; animation: stamp .4s ease-out; transform: rotate(-2deg); }

/* Desktop: Knöpfe quer (Bild links), damit das Panel flach bleibt */
@media (min-width: 641px) {
  .pick { grid-template-columns: 56px 1fr; grid-template-rows: auto auto auto; justify-items: start; text-align: left; column-gap: 10px; row-gap: 0; padding: 8px 10px; align-items: center; }
  .pick img { grid-row: 1 / 4; }
  .pick kbd { left: auto; right: 8px; top: auto; bottom: 6px; }
  .pick .pstar { right: 6px; }
}
@media (max-width: 640px) { .coach { font-size: .8rem; padding: 4px 8px; } }
.tricks .q { display: inline-grid; place-items: center; width: 1.25em; height: 1.25em; border-radius: 50%; background: #0001; border: 1.5px dashed #0005; font-size: .75em; font-weight: 900; color: #666; vertical-align: middle; }
@media (max-width: 640px) { .crewrow img { width: 58px; height: 58px; } .result { padding: 18px; margin-top: 16px; } }

/* FKTV-Reporter */
.legal { position: absolute; right: 16px; bottom: 10px; z-index: 2; font-size: .8rem; margin: 0; }
.legal a, footer a { color: var(--muted); }
#s-start { position: relative; }

/* ---------- Action: Wellen-Ansage, Duell, Training ---------- */
.wavein { position: absolute; inset: 0; z-index: 6; display: none; place-content: center; justify-items: center; gap: 4px; text-align: center; pointer-events: none; color: #fff;
  background: repeating-linear-gradient(-45deg, #c81e1ef0 0 22px, #000f 22px 44px); }
.wavein.on { display: grid; animation: wavein 1.5s ease-out forwards; }
.wavein small { font-size: clamp(1rem, 5cqw, 2.4rem); color: var(--yellow); -webkit-text-stroke: 1px #000; text-shadow: 3px 3px 0 #000; animation: slamin .35s cubic-bezier(.2, 1.6, .4, 1) both; }
.wavein .wic { font-size: clamp(3rem, 16cqw, 8rem); line-height: 1; filter: drop-shadow(4px 4px 0 #000); animation: slamin .4s .08s cubic-bezier(.2, 1.6, .4, 1) both; }
.wavein b { font-size: clamp(1.2rem, 6cqw, 3rem); max-width: 90%; line-height: 1.05; text-transform: uppercase; text-shadow: 3px 3px 0 #000, -1px -1px 0 #000; animation: slamin .4s .16s cubic-bezier(.2, 1.6, .4, 1) both; }
.wavein.boss { background: repeating-linear-gradient(-45deg, #5a0000ee 0 22px, #000e 22px 44px); }
.wavein.boss .wic { animation: slamin .4s .08s cubic-bezier(.2, 1.6, .4, 1) both, bossgrow 1.4s .5s ease-in-out; }
@keyframes wavein { 0% { opacity: 0; } 6% { opacity: 1; } 80% { opacity: 1; transform: none; } 100% { opacity: 0; transform: scale(1.15); } }
@keyframes slamin { from { transform: scale(3.2) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes bossgrow { 50% { transform: scale(1.25); } }
.tv.alarm { animation: tvshake .45s; }
.tv.boss.alarm { animation: tvshake .45s, bosspulse 1.4s ease-in-out infinite; }

.vsfx { position: absolute; inset: 0; z-index: 6; display: none; grid-template-columns: 1fr auto 1fr; grid-template-rows: 1fr auto; align-items: center; justify-items: center; pointer-events: none;
  background: linear-gradient(100deg, #ffd23fee 0 48%, #000 48% 52%, #c81e1eee 52%); padding: 6% 4%; }
.vsfx.on { display: grid; animation: vsfx 1.25s ease-in forwards; }
.vsfx img { width: clamp(80px, 30cqw, 220px); aspect-ratio: 1; object-fit: cover; object-position: top; border-radius: 50%; border: 5px solid #000; box-shadow: 6px 6px 0 #000; animation: fromleft .3s cubic-bezier(.2, 1.4, .4, 1) both; }
.vsfx .vsr { font-size: clamp(3rem, 18cqw, 9rem); filter: drop-shadow(4px 4px 0 #000); animation: fromright .3s cubic-bezier(.2, 1.4, .4, 1) both; }
.vsfx .vsx { font-size: clamp(1.6rem, 9cqw, 4.5rem); color: #fff; -webkit-text-stroke: 2px #000; text-shadow: 4px 4px 0 #000; animation: slamin .3s .2s cubic-bezier(.2, 1.6, .4, 1) both; }
.vsfx b { grid-column: 1 / -1; font-size: clamp(1.1rem, 6cqw, 2.8rem); color: #fff; text-transform: uppercase; text-shadow: 3px 3px 0 #000, -1px -1px 0 #000; background: #000; padding: 4px 16px; transform: rotate(-3deg); animation: slamin .3s .3s both; }
@keyframes vsfx { 0%, 75% { opacity: 1; } 100% { opacity: 0; } }
@keyframes fromleft { from { transform: translateX(-120%) rotate(-20deg); } to { transform: none; } }
@keyframes fromright { from { transform: translateX(120%) rotate(20deg); } to { transform: none; } }

.picks .pick { animation: flyin .38s calc(.45s + var(--i, 0) * .08s) cubic-bezier(.2, 1.5, .4, 1) backwards; }
@keyframes flyin { from { transform: translateY(80px) scale(.6) rotate(-6deg); opacity: 0; } }
.pick.chosen { animation: chosen .4s ease-out forwards; background: var(--yellow); z-index: 2; }
.pick.gone { animation: gone .3s ease-in forwards; }
@keyframes chosen { 40% { transform: scale(1.18) rotate(-3deg); } 100% { transform: scale(1.08) translateY(-30px); opacity: .9; } }
@keyframes gone { to { transform: translateY(40px) scale(.85); opacity: 0; } }

.countdown.wait i { width: 100%; opacity: .45; }
#s-sendung.hurry::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 19; box-shadow: inset 0 0 90px 20px #ff1e1e99; animation: hurrypulse .35s ease-in-out infinite alternate; }
@keyframes hurrypulse { from { opacity: .4; } to { opacity: 1; } }

.trainbar { font: 900 .8rem/1 "Arial Black", Impact, sans-serif; background: #1d6b2a; color: #fff; border: 2px solid var(--ink); border-radius: 8px; padding: 5px 8px; }
.coach.train { display: flex; gap: 10px; align-items: center; justify-content: space-between; border: 3px solid var(--ink); background: #fffbe6; font-size: 1rem; box-shadow: 3px 3px 0 var(--ink); }
.coach.pop { animation: pop .3s ease-out; }
.btn.mini { padding: 6px 12px; font-size: .9rem; flex: none; }
.spot { position: relative; z-index: 3; outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 8px; animation: spot .8s ease-in-out infinite alternate; }
@keyframes spot { to { outline-color: var(--yellow); box-shadow: 0 0 0 6px #ff8a0055; } }
.pick.hint { background: var(--yellow); animation: hint .7s ease-in-out infinite alternate; z-index: 2; }
@keyframes hint { to { transform: translateY(-6px) scale(1.06); box-shadow: 6px 10px 0 var(--ink); } }
.pick .finger { position: absolute; bottom: -18px; left: 50%; font-size: 2rem; transform: translateX(-50%); animation: finger .6s ease-in-out infinite alternate; pointer-events: none; }
@keyframes finger { to { transform: translate(-50%, -10px); } }
@media (max-width: 640px) { .coach { font-size: .8rem; padding: 4px 8px; } }
.howto .row { display: flex; gap: 10px; }
.howto .row .bigbtn { flex: 1; }
@media (prefers-reduced-motion: reduce) { .wavein.on, .vsfx.on { animation-duration: .01s; } .picks .pick, .pick.hint, .pick .finger, .spot { animation: none; } }
.levelup { color: #fff; background: #1d6b2a; border: 3px solid var(--ink); border-radius: 10px; padding: 6px 12px; font-size: 1.25rem; box-shadow: 3px 3px 0 var(--ink); animation: stamp .45s ease-out; transform: rotate(-1.5deg); justify-self: start; }

/* ---------- FKTV im Querformat: Video bildfüllend, Text darunter, Chat daneben ---------- */
#s-sendung { padding-bottom: 250px; }
.tv-wrap { container-type: inline-size; display: grid; grid-template-columns: minmax(0, 1fr) 240px; grid-template-areas: "tv chat" "news chat"; gap: 10px 12px; padding-top: 14px; max-width: calc((100svh - 340px) * 16 / 9 + 252px); min-width: min(100%, 720px); }
.tv { grid-area: tv; position: relative; aspect-ratio: 16 / 9; width: 100%; background: #000 center / cover; border: 3px solid #000; border-radius: 14px; overflow: hidden; box-shadow: 6px 6px 0 #000; container-type: inline-size; }
.tv-bg { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; filter: blur(28px) brightness(.45) saturate(1.3); }
.screen16 { position: absolute; inset: 0; }
.screen16 video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tv.portrait .screen16 video { object-fit: contain; }   /* ältere Hochformat-Clips: mittig, Rand unscharf */
.tv:not(.portrait) .tv-bg { display: none; }

/* Einblendungen im Bild: klein und am Rand */
.rec { position: absolute; top: 3%; left: 2%; z-index: 3; display: flex; gap: 6px; align-items: center; font-size: clamp(.55rem, 1.5cqw, .85rem); font-weight: 700; text-shadow: 0 1px 3px #000; }
.rec .live { background: var(--red); padding: 1px 6px; border-radius: 4px; animation: blink 1.4s steps(1) infinite; }
.rec .eye { background: #0008; padding: 1px 6px; border-radius: 4px; }
.bug { position: absolute; bottom: 3%; left: 2%; z-index: 3; background: #fff; color: #000; padding: 2px 8px; border-radius: 6px; font-size: clamp(.6rem, 1.6cqw, 1rem); border: 2px solid #000; opacity: .92; }
.bug .dot { color: var(--red); animation: blink 1s steps(1) infinite; }
.dmgbox { position: absolute; top: 3%; right: 2%; z-index: 3; background: #000a; padding: 4px 10px; border-radius: 8px; text-align: right; border: 2px solid #000; }
.dmgbox small { display: block; font-size: clamp(.5rem, 1.2cqw, .7rem); color: var(--muted); }
.dmgbox b { font-size: clamp(.85rem, 2.6cqw, 1.5rem); color: var(--yellow); transition: color .3s; }
.dmgbox.up b { color: var(--red); transform: scale(1.15); display: inline-block; transition: transform .15s; }
.tv-streak { display: block; margin-top: 3px; font-size: clamp(.55rem, 1.3cqw, .8rem); color: #fff; background: var(--orange); border-radius: 6px; padding: 1px 6px; animation: pop .3s ease-out; }
.tv-sound { position: absolute; bottom: 3%; right: 2%; z-index: 7; line-height: 1.2; font-size: clamp(.8rem, 2cqw, 1.1rem); background: #000b; color: #fff; border: 2px solid #000; border-radius: 8px; padding: 2px 8px; cursor: pointer; }
.tv-unmute { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 5; background: var(--yellow); color: #000; border: 3px solid #000; border-radius: 999px; padding: 8px 16px; font: 900 .9rem/1 "Arial Black", Impact, sans-serif; box-shadow: 3px 3px 0 #000; cursor: pointer; white-space: nowrap; }
/* Stempel knallt rein und verschwindet wieder, damit das Video frei bleibt */
.tv-stamp { position: absolute; right: 4%; top: 18%; z-index: 4; font-family: "Arial Black", Impact, sans-serif; text-transform: uppercase; font-size: clamp(.9rem, 3.4cqw, 2.2rem); padding: 4px 14px; border: 4px solid; border-radius: 10px; background: #fff; opacity: 0; transform: rotate(-8deg) scale(2); pointer-events: none; }
.tv-stamp.on { animation: stamp2 .35s ease-out forwards, stampout .4s 1.9s ease-in forwards; }
.tv-stamp.stars.on { animation: stamp2 .35s ease-out forwards; }
@keyframes stampout { from { opacity: 1; transform: rotate(-8deg) scale(1); } to { opacity: 0; transform: rotate(-8deg) scale(.7) translateY(-20px); } }

/* Ohne Clip: Comic-Karte über dem Ladenbild */
.nosignal { position: absolute; inset: 0; background: center / cover; display: grid; place-items: center; }
.nosignal::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, #0008 0 2px, #fff1 2px 4px); animation: noise .25s steps(2) infinite; }
.nosignal div { position: relative; background: #000c; padding: 10px 18px; border-radius: 10px; text-align: center; max-width: 70%; display: grid; gap: 4px; font-size: clamp(.6rem, 1.6cqw, .95rem); }
.nosignal b { color: var(--yellow); font-size: clamp(.9rem, 3cqw, 1.6rem); }

/* Nachricht unter dem Bild */
.news { grid-area: news; display: grid; gap: 0; border: 3px solid #000; border-radius: 10px; overflow: hidden; box-shadow: 4px 4px 0 #000; }
.lower { background: #fff; color: #000; border-left: 10px solid var(--orange); padding: 7px 12px 8px; min-height: 4.6em; }
.lower > div:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.kicker { background: var(--orange); color: #fff; font-weight: 900; font-size: .78rem; padding: 1px 8px; border-radius: 3px; letter-spacing: .05em; }
.kicker.red { background: var(--red); }
.prog { font-size: .78rem; color: #555; font-weight: 700; }
.loc { margin-left: auto; font-size: .78rem; font-weight: 700; color: #333; }
.loc .comic { color: var(--orange); }
.headline { font-size: clamp(1rem, 2.6cqw, 1.7rem); line-height: 1.05; margin-top: 3px; }
.sub { font-size: clamp(.82rem, 1.6cqw, 1rem); margin-top: 2px; }
.reporter { display: none; margin-top: 6px; padding: 5px 10px 5px 34px; position: relative; background: #11152a; color: #fff; border-radius: 8px; font-style: italic; font-weight: 600; font-size: clamp(.78rem, 1.5cqw, .95rem); line-height: 1.3; }
.reporter::before { content: "🎙️"; position: absolute; left: 9px; top: 4px; font-style: normal; }
.reporter.on { display: block; animation: pop .3s ease-out; }
.ticker { height: 26px; background: var(--yellow); color: #000; overflow: hidden; display: flex; align-items: center; font-weight: 800; font-size: .85rem; border-top: 3px solid #000; }
.ticker span { white-space: nowrap; padding-left: 100%; animation: tick 28s linear infinite; }

/* Zuschauer-Chat neben dem Bild */
.tv-chat { grid-area: chat; display: flex; flex-direction: column; justify-content: flex-end; gap: 5px; font-size: .82rem; background: #0b0e1d; border: 3px solid #000; border-radius: 10px; padding: 8px; overflow: hidden; max-height: 100%; }
.tv-chat::before { content: "💬 Live-Chat"; font-weight: 800; color: var(--muted); font-size: .75rem; margin-bottom: auto; }
.tv-chat div { background: #ffffff12; padding: 3px 8px; border-radius: 8px; width: fit-content; max-width: 100%; animation: pop .25s ease-out; }
.tv-chat b { color: var(--yellow); }

/* Handy hochkant: Bild oben in voller Breite, darunter Nachricht und eine Chat-Zeile */
@media (max-width: 760px) {
  .tv-wrap { grid-template-columns: 1fr; grid-template-areas: "tv" "news" "chat"; gap: 8px; padding: 8px 8px 0; min-width: 0; max-width: none; }
  .tv { border-radius: 10px; box-shadow: 4px 4px 0 #000; }
  .tv-chat { flex-direction: row; flex-wrap: nowrap; gap: 6px; padding: 5px 6px; font-size: .72rem; overflow: hidden; }
  .tv-chat::before { display: none; }
  .tv-chat div { flex: none; white-space: nowrap; }
  .lower { min-height: 0; padding: 6px 10px 7px; }
  .reporter { font-size: .78rem; }
}
/* Handy quer: Bild füllt den Schirm, die Auswahl legt sich unten darüber */
@media (orientation: landscape) and (max-height: 520px) {
  #s-sendung { padding-bottom: 0; }
  .tv-wrap { display: block; padding: 0; max-width: none; min-width: 0; }
  .tv { height: 100svh; width: auto; max-width: 100%; margin: 0 auto; border-radius: 0; border: 0; box-shadow: none; }
  .news, .tv-chat { display: none; }
  #s-sendung .tv-panel { background: #fffbe6ee; max-height: 58svh; overflow: auto; }
}

/* Credits auf der Startseite */
.credits { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 14px; }
.credits .tagline { margin-bottom: 0; }
.credit { display: inline-flex; align-items: center; gap: 6px; background: #000; color: #fff; text-decoration: none; border: 3px solid #000; border-radius: 999px; padding: 4px 12px 4px 10px; font-weight: 800; font-size: .9rem; box-shadow: 3px 3px 0 var(--orange); transition: transform .08s; }
.credit svg { width: 16px; height: 16px; }
.credit:hover { transform: translate(-1px, -1px); background: #222; }

/* Teilen: dezent unter den Aktionen, mit Vorschau des Ergebnisbilds */
.xbtn { width: auto; display: inline-flex; gap: 8px; padding: 9px 16px; font: 800 1rem/1 system-ui, sans-serif; text-transform: none; border-radius: 10px; box-shadow: 3px 3px 0 var(--orange); }
.xbtn svg { width: 18px; height: 18px; }
.xbtn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--orange); }
.xbox { margin: 14px 0 4px; }
.sharerow { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 2px dashed #0002; }
.sharebtns { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; flex: 1; min-width: 220px; }
.sharebtns .small { flex-basis: 100%; }
.cardprev { width: 180px; aspect-ratio: 16 / 9; object-fit: cover; border: 3px solid var(--ink); border-radius: 8px; box-shadow: 3px 3px 0 var(--ink); }
@media (max-width: 480px) { .cardprev { width: 100%; } }
.xbtn.go { background: #1d9bf0; border-color: #000; animation: pop .3s ease-out; }

/* Ergebnisbild groß */
.cardprev-btn { position: relative; padding: 0; border: 0; background: none; cursor: zoom-in; line-height: 0; }
.cardprev-btn span { position: absolute; right: 6px; bottom: 6px; background: #000c; color: #fff; border-radius: 6px; padding: 3px 5px; font-size: .8rem; line-height: 1; }
.cardprev-btn:hover .cardprev { transform: scale(1.03); }
.cardprev { transition: transform .15s; }
dialog.cardbox { border: 0; padding: 0; background: none; max-width: min(1200px, 94vw); width: 100%; overflow: visible; }
dialog.cardbox::backdrop { background: #000c; backdrop-filter: blur(4px); }
dialog.cardbox img { display: block; width: 100%; height: auto; max-height: 78vh; object-fit: contain; border: 4px solid #000; border-radius: 12px; box-shadow: 0 20px 60px #000a; background: #11152a; }
.cardbox-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 14px; }
.cardbox-row .btn { text-decoration: none; }
.cardbox-x { position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%; border: 3px solid #000; background: var(--yellow); font-weight: 900; font-size: 1.1rem; cursor: pointer; box-shadow: 3px 3px 0 #000; }
@media (max-width: 640px) { .cardbox-x { top: -44px; right: 0; } }
