/* ================================================================ Modus „IT & Technik“: dunkle IDE auf einer Platine
   Gilt für Host (body.host) und Handy (body.play), sobald body[data-mode="tech"] gesetzt ist.
   Weiter unten: die Bausteine der Nerd-Runden (Terminal, Editor, Tastatur, DIP-Schalter, Farbmischer, Kultbildschirme) –
   die gelten unabhängig vom Modus, damit sie auch auf dem Handy und am PC gleich aussehen. */

body[data-mode="tech"] {
  --ink: #0b1220;
  --ink-soft: #334155;
  --bg1: #050a12;
  --bg2: #0b1626;
  --paper: #eef3f8;
  --paper-2: #dbe5f0;
  --pink: #f472b6;
  --blue: #3b82f6;
  --yellow: #facc15;
  --green: #22c55e;
  --orange: #fb923c;
  --teal: #2dd4bf;
  --purple: #a78bfa;
  --red: #ef4444;
  --gold: #fbbf24;
  --cyan: #22d3ee;
  --term: #4ade80;
  --opt-0: #e5484d;
  --opt-1: #3b82f6;
  --opt-2: #e8a10c;
  --opt-3: #1fa855;
  --radius: 12px;
  --shadow: 0 6px 0 rgba(0, 0, 0, 0.55);
  --shadow-sm: 0 3px 0 rgba(0, 0, 0, 0.55);
  --font-head: 'JetBrains Mono', ui-monospace, 'Consolas', monospace;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Consolas', monospace;
  --font-crt: 'VT323', 'JetBrains Mono', monospace;
  --glow-g: 0 0 12px rgba(74, 222, 128, 0.55);
}

/* ------------------------------------------------------------ Hintergrund: Platine mit Leiterbahnen */
body[data-mode="tech"] .bg {
  background:
    radial-gradient(ellipse 60% 45% at 12% 0%, rgba(34, 197, 94, 0.14), transparent 70%),
    radial-gradient(ellipse 55% 50% at 100% 100%, rgba(59, 130, 246, 0.16), transparent 70%),
    linear-gradient(170deg, #0b1626 0%, #060c16 55%, #04080f 100%);
}
body[data-mode="tech"] .bg::before {
  inset: -20%;
  opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cg fill='none' stroke='%2322c55e' stroke-opacity='.16' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M0 40h60l20 20h60l20-20h80'/%3E%3Cpath d='M0 120h30l20 20v40l20 20h60'/%3E%3Cpath d='M120 0v30l20 20v30'/%3E%3Cpath d='M240 150h-50l-20 20v70'/%3E%3Cpath d='M200 0v20l-20 20'/%3E%3Cpath d='M60 240v-20l20-20h40'/%3E%3Cpath d='M160 100h40l20 20h20'/%3E%3C/g%3E%3Cg fill='%2322d3ee' fill-opacity='.18'%3E%3Ccircle cx='60' cy='40' r='4'/%3E%3Ccircle cx='160' cy='40' r='4'/%3E%3Ccircle cx='140' cy='80' r='4'/%3E%3Ccircle cx='130' cy='200' r='4'/%3E%3Ccircle cx='170' cy='240' r='4'/%3E%3Ccircle cx='180' cy='40' r='3'/%3E%3Ccircle cx='160' cy='100' r='4'/%3E%3Ccircle cx='240' cy='120' r='3'/%3E%3C/g%3E%3Cg fill='%23ffffff' fill-opacity='.05'%3E%3Crect x='86' y='96' width='34' height='22' rx='2'/%3E%3Crect x='20' y='170' width='12' height='26' rx='2'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 240px 240px;
  animation: bgdrift 120s linear infinite;
}
/* Datenpuls, der langsam über den Bildschirm läuft */
body[data-mode="tech"] .bg::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 30vh;
  top: -30vh;
  background: linear-gradient(180deg, transparent, rgba(74, 222, 128, 0.05) 70%, rgba(74, 222, 128, 0.12) 98%, transparent);
  animation: techScan 9s linear infinite;
  pointer-events: none;
}
@keyframes techScan { to { transform: translateY(160vh); } }
body[data-mode="tech"] .bg .blob { filter: blur(60px); opacity: 0.35; }
body[data-mode="tech"] .bg .blob.b1 { background: #16a34a; }
body[data-mode="tech"] .bg .blob.b2 { background: #2563eb; }
body[data-mode="tech"] .bg .blob.b3 { background: #0891b2; opacity: 0.2; }

/* ------------------------------------------------------------ Bausteine */
body[data-mode="tech"] h1, body[data-mode="tech"] h2, body[data-mode="tech"] h3 { font-weight: 700; letter-spacing: -0.01em; }
body[data-mode="tech"] .card { border-width: 3px; }
body[data-mode="tech"] .btn { border-radius: 10px; font-family: var(--font-mono); font-weight: 700; letter-spacing: 0; }
body[data-mode="tech"] .chip { border-radius: 6px; font-family: var(--font-mono); }
body[data-mode="tech"] .avatar { border-radius: 28%; }
body[data-mode="tech"] .toast { border-radius: 8px; font-family: var(--font-mono); }
body[data-mode="tech"] .timer-ring .track { fill: #0b1220; stroke: #000; }
body[data-mode="tech"] .timer-ring .num { color: var(--term); font-family: var(--font-mono); text-shadow: var(--glow-g); }
body[data-mode="tech"] .timer-bar { border-radius: 3px; background: rgba(255, 255, 255, 0.1); }
body[data-mode="tech"] .timer-bar > i { border-radius: 3px; background: linear-gradient(90deg, #22c55e, #22d3ee); box-shadow: 0 0 10px rgba(34, 211, 238, 0.5); }
body[data-mode="tech"] .timer-bar.urgent > i { background: var(--red); }
body[data-mode="tech"] .pixel-frame { border-radius: 10px; background: #02050a; }

/* Logo: Terminal-Schriftzug mit blinkendem Cursor */
body[data-mode="tech"] .logo {
  font-family: var(--font-mono);
  font-weight: 800;
  letter-spacing: -0.03em;
  -webkit-text-stroke: 0;
  text-shadow: 0 0.06em 0 #000, 0 0 0.35em rgba(74, 222, 128, 0.55);
}
body[data-mode="tech"] .logo span:nth-child(odd) { color: var(--term); }
body[data-mode="tech"] .logo span:nth-child(even) { color: #e2fbe9; }
body[data-mode="tech"] .logo::after { content: '_'; color: var(--term); animation: blink 1s steps(2) infinite; }
body[data-mode="tech"] .logo-sub { font-family: var(--font-mono); letter-spacing: 0.2em; color: var(--cyan); text-shadow: 0 0 10px rgba(34, 211, 238, 0.5); }

/* Antwort-Symbole als Klammern: </> { } [ ] ( ) */
body[data-mode="tech"] .shape svg { overflow: visible; }

/* ------------------------------------------------------------ Quizzly mit Nerdbrille und Propellermütze */
body[data-mode="tech"] .quizzly .qz-nerd, body[data-mode="tech"] .quizzly .qz-beanie { display: inline; }
body[data-mode="tech"] .quizzly .qz-cap { display: none; }
body[data-mode="tech"] .quizzly .qz-bow path:not([stroke-opacity]) { fill: #22c55e; }
body[data-mode="tech"] .quizzly .qz-bow rect { fill: #86efac; }
.quizzly .qz-prop { transform-origin: 120px 6px; animation: propSpin 0.5s linear infinite; }
@keyframes propSpin { 0% { transform: scaleX(1); } 25% { transform: scaleX(0.15); } 50% { transform: scaleX(-1); } 75% { transform: scaleX(0.15); } 100% { transform: scaleX(1); } }
body[data-mode="tech"] .quizzly.shades .qz-nerd { display: none; }

/* ------------------------------------------------------------ Host: Lobby */
body.host[data-mode="tech"] .splash .hint, body.host[data-mode="tech"] .lobby :is(.setgrp, .xrow) > label { color: #a7f3d0; }
body[data-mode="tech"] .lobby .joincard { border-radius: 12px; transform: none; box-shadow: 0 0 0 0.3rem #0b1220, 0 0 0 0.55rem rgba(74, 222, 128, 0.55), 0 0 50px rgba(74, 222, 128, 0.25), var(--shadow); }
body[data-mode="tech"] .joincard .code span { border-radius: 8px; font-family: var(--font-mono); font-weight: 800; background: #0b1220; color: var(--term); border-color: #0b1220; text-shadow: var(--glow-g); }
body[data-mode="tech"] .joincard .url { font-family: var(--font-mono); font-weight: 700; letter-spacing: -0.02em; }
body[data-mode="tech"] .lobby .brand { position: relative; }
body[data-mode="tech"] .editionbadge {
  display: inline-block;
  position: absolute;
  left: calc(6.5rem + 1rem);
  bottom: -0.9rem;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--term);
  background: #0b1220;
  border: 2px solid var(--term);
  border-radius: 6px;
  padding: 0.25rem 0.7rem;
  transform: rotate(-3deg);
  box-shadow: var(--shadow-sm), 0 0 16px rgba(74, 222, 128, 0.45);
  animation: stamp 0.5s var(--ease-back) both;
}
body[data-mode="tech"] .editionbadge::before { content: '$ '; opacity: 0.6; }
body[data-mode="tech"] .insertcoin { display: block; font-family: var(--font-mono); font-size: 1rem; letter-spacing: 0.02em; color: #15803d; text-shadow: none; animation: none; }
body[data-mode="tech"] .seg { border-radius: 10px; background: rgba(5, 10, 18, 0.75); border-color: rgba(74, 222, 128, 0.35); }
body[data-mode="tech"] .seg button { border-radius: 8px; }
body[data-mode="tech"] .seg button.on { background: var(--term); color: #052e16; box-shadow: var(--glow-g); }
body[data-mode="tech"] .pgrid .pl .name { border-radius: 6px; background: rgba(5, 10, 18, 0.8); border: 1px solid rgba(74, 222, 128, 0.35); font-family: var(--font-mono); }
body[data-mode="tech"] .btn.start { --c: var(--term); color: #052e16; text-shadow: none; font-size: 1.5em; box-shadow: var(--shadow), 0 0 24px rgba(74, 222, 128, 0.6); }

/* ------------------------------------------------------------ Host: Sprint-Intro mit Bootlog */
body[data-mode="tech"] .intro::before {
  background-image: linear-gradient(rgba(0, 0, 0, 0.22) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, 0.22) 1px, transparent 1px);
  background-size: 28px 28px;
  animation: wipe 0.6s var(--ease-out) forwards;
}

@keyframes bootLine { to { opacity: 1; } }
body[data-mode="tech"] .intro .rnum { font-family: var(--font-mono); border-radius: 6px; background: rgba(5, 10, 18, 0.8); border: 2px solid rgba(255, 255, 255, 0.35); }
body[data-mode="tech"] .intro .rname { font-family: var(--font-mono); font-weight: 800; letter-spacing: -0.03em; -webkit-text-stroke: 0; text-shadow: 0 0.07em 0 rgba(0, 0, 0, 0.6), 0 0 0.4em rgba(255, 255, 255, 0.3); }
body[data-mode="tech"] .intro .rname span { animation-timing-function: steps(3); }
body[data-mode="tech"] .intro .rsub { border-radius: 6px; font-family: var(--font-mono); }
body[data-mode="tech"] .intro .rtag { font-family: var(--font-mono); }
body[data-mode="tech"] .ri-how li i { border-radius: 6px; font-family: var(--font-mono); }
body[data-mode="tech"] .intro .progress i { background: linear-gradient(90deg, #22c55e, #22d3ee); }
body[data-mode="tech"] .intro.final::before { background-image: linear-gradient(rgba(0, 0, 0, 0.25) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, 0.25) 1px, transparent 1px), radial-gradient(circle, #ef4444, #7f1d1d 65%, #1f0505); background-size: 28px 28px, 28px 28px, auto; }

/* ------------------------------------------------------------ Host: Fragen */
body[data-mode="tech"] { --chip-r: 8px; --chip-bg: rgba(5, 10, 18, 0.8); --chip-bd: rgba(74, 222, 128, 0.35); }
body[data-mode="tech"] .qhead .rbadge, body[data-mode="tech"] #topbar .codechip { font-family: var(--font-mono); }
body[data-mode="tech"] .qhead .rbadge .ic { border-radius: 6px; }
body[data-mode="tech"] .qhead .qcount, body[data-mode="tech"] .qhead .answered-count { font-family: var(--font-mono); }
/* Fragekarte als Editorfenster mit Titelleiste */
body[data-mode="tech"] .qcard { position: relative; border-radius: 12px; padding-top: 2.6rem; font-weight: 700; letter-spacing: -0.02em; }
body[data-mode="tech"] .qcard::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1.5rem; background: radial-gradient(circle at 1rem 50%, #ff5f57 0.32rem, transparent 0.36rem), radial-gradient(circle at 2rem 50%, #febc2e 0.32rem, transparent 0.36rem), radial-gradient(circle at 3rem 50%, #28c840 0.32rem, transparent 0.36rem), #1e293b; border-radius: 9px 9px 0 0; }
body[data-mode="tech"] .qcard.small { padding-top: 2.3rem; }
body[data-mode="tech"] .opt { border-radius: 12px; font-weight: 700; letter-spacing: -0.02em; box-shadow: inset 0 -0.3rem 0 rgba(0, 0, 0, 0.22), var(--shadow); }
body[data-mode="tech"] .opts.revealed .opt.right { box-shadow: 0 0 0 6px #fff, 0 0 40px 12px color-mix(in srgb, var(--oc) 60%, transparent), var(--shadow); }
body[data-mode="tech"] .opt .tick { border-radius: 8px; }
body[data-mode="tech"] .factcard { border-radius: 10px; }
body[data-mode="tech"] .answerbig, body[data-mode="tech"] .stampmark { border-radius: 10px; font-family: var(--font-mono); }
body[data-mode="tech"] .clue, body[data-mode="tech"] .sitem, body[data-mode="tech"] .mbar, body[data-mode="tech"] .bopt { border-radius: 10px; }
body[data-mode="tech"] .sitem .n, body[data-mode="tech"] .clue .cn { border-radius: 6px; }
body[data-mode="tech"] .solvedcol { border-radius: 10px; background: rgba(5, 10, 18, 0.6); }
body[data-mode="tech"] #strip .sp .nm { border-radius: 6px; background: rgba(5, 10, 18, 0.85); font-family: var(--font-mono); }
body[data-mode="tech"] #strip .sp .pts { border-radius: 6px; font-family: var(--font-mono); }
body[data-mode="tech"] #strip .sp .ok { border-radius: 6px; }

/* ------------------------------------------------------------ Host: Benchmark (Zwischenstand) */
body[data-mode="tech"] .scores h1, body[data-mode="tech"] .podium h1 {
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--term);
  -webkit-text-stroke: 0;
  text-shadow: 0 0.08em 0 #000, 0 0 0.45em rgba(74, 222, 128, 0.5);
  letter-spacing: -0.03em;
}
body[data-mode="tech"] .scores .sub { font-family: var(--font-mono); color: var(--cyan); opacity: 1; }
body[data-mode="tech"] .brow { background: rgba(8, 14, 26, 0.92); color: #e2e8f0; border: 2px solid rgba(148, 163, 184, 0.35); border-radius: 8px; box-shadow: 0 0 0 1px #000; font-family: var(--font-mono); }
body[data-mode="tech"] .brow .bar { opacity: 0.45; background-image: repeating-linear-gradient(90deg, transparent 0 0.9rem, rgba(0, 0, 0, 0.35) 0.9rem 1rem); }
body[data-mode="tech"] .brow .rk { font-family: var(--font-mono); color: var(--term); }
body[data-mode="tech"] .brow .sc { font-family: var(--font-mono); font-weight: 800; color: #f8fafc; }
body[data-mode="tech"] .brow.first { border-color: var(--term); box-shadow: 0 0 22px rgba(74, 222, 128, 0.45); }
body[data-mode="tech"] .brow .delta { border-radius: 6px; background: rgba(34, 197, 94, 0.2); color: #86efac; font-family: var(--font-mono); }
body[data-mode="tech"] .brow .delta.neg { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }

/* ------------------------------------------------------------ Host: Hall of Nerds – Siegertreppchen als Server-Racks */
body[data-mode="tech"] .pcol .ped {
  border-radius: 6px 6px 0 0;
  color: var(--term);
  font-family: var(--font-mono);
  background-color: #1e293b;
  background-image:
    radial-gradient(circle at 1.2rem 1.4rem, #22c55e 0.22rem, transparent 0.26rem),
    radial-gradient(circle at 2.1rem 1.4rem, #facc15 0.22rem, transparent 0.26rem),
    repeating-linear-gradient(180deg, transparent 0 2.4rem, rgba(0, 0, 0, 0.45) 2.4rem 2.55rem),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 30%, transparent 70%, rgba(0, 0, 0, 0.3));
  background-size: auto, auto, auto, auto;
  text-shadow: var(--glow-g);
}
body[data-mode="tech"] .pcol.p1 .ped { background-color: #334155; box-shadow: 0 0 30px rgba(74, 222, 128, 0.35); }
body[data-mode="tech"] .pcol .who .nm { font-family: var(--font-mono); }
body[data-mode="tech"] .award { border-radius: 10px; }
body[data-mode="tech"] .award .at { font-family: var(--font-mono); }

/* ------------------------------------------------------------ Handy */
body.play[data-mode="tech"] .phead { background: rgba(3, 7, 13, 0.9); border-bottom: 2px solid rgba(74, 222, 128, 0.35); }
body.play[data-mode="tech"] .phead .score { border-radius: 6px; font-family: var(--font-mono); font-weight: 800; background: #0b1220; color: var(--term); border-color: var(--term); text-shadow: var(--glow-g); }
body.play[data-mode="tech"] .phead .score::before { content: '> '; opacity: 0.6; }
body.play[data-mode="tech"] .reactbar { background: rgba(3, 7, 13, 0.9); border-top-color: rgba(74, 222, 128, 0.3); }
body.play[data-mode="tech"] .reactbar button { border-radius: 8px; }
body.play[data-mode="tech"] .abtn { border-radius: 12px; font-family: var(--font-mono); font-weight: 700; letter-spacing: -0.02em; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.22), var(--shadow); }
body.play[data-mode="tech"] .sortbtn, body.play[data-mode="tech"] .keypad button, body.play[data-mode="tech"] .input { border-radius: 10px; }
body.play[data-mode="tech"] .keypad button { font-family: var(--font-mono); }
body.play[data-mode="tech"] .introv { background-image: linear-gradient(rgba(0, 0, 0, 0.18) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, 0.18) 1px, transparent 1px); background-size: 22px 22px; }
body.play[data-mode="tech"] .introv h1 { font-family: var(--font-mono); font-weight: 800; letter-spacing: -0.03em; }
body.play[data-mode="tech"] .introv .num { font-family: var(--font-mono); letter-spacing: 0.05em; }
body.play[data-mode="tech"] .introv .rule b { border-radius: 6px; }
body.play[data-mode="tech"] .readyv .count { font-family: var(--font-mono); }
body.play[data-mode="tech"] .resultv .pts { font-family: var(--font-mono); font-weight: 800; letter-spacing: -0.04em; -webkit-text-stroke: 0; text-shadow: 0 4px 0 #000, 0 0 16px rgba(74, 222, 128, 0.45); }
body.play[data-mode="tech"] .resultv .bonus { border-radius: 6px; }
body.play[data-mode="tech"] .waitv h2, body.play[data-mode="tech"] .lobbyv h1 { font-family: var(--font-mono); letter-spacing: -0.03em; }
body.play[data-mode="tech"] .podv .pts { font-family: var(--font-mono) !important; color: var(--term); }
body.play[data-mode="tech"] .qtxt { font-weight: 700; letter-spacing: -0.02em; }

/* ================================================================ Bausteine der Nerd-Runden */

/* ------------------------------------------------------------ Tastenkappen */
.caps { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.3em; }
.caps .plus { opacity: 0.7; font-weight: 900; }
kbd.cap {
  display: inline-block;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 700;
  font-size: 1em;
  line-height: 1;
  padding: 0.35em 0.55em 0.45em;
  color: #0f172a;
  background: linear-gradient(#ffffff, #dfe6ee);
  border: 2px solid #0f172a;
  border-radius: 0.4em;
  box-shadow: 0 0.18em 0 #0f172a;
  white-space: nowrap;
}
kbd.cap.sm { font-size: 0.8em; }

/* ------------------------------------------------------------ Tastatur */
.kbd { display: flex; flex-direction: column; gap: 0.35rem; padding: 0.6rem; background: #1e293b; border: 3px solid #0b1220; border-radius: 14px; box-shadow: var(--shadow), inset 0 2px 0 rgba(255, 255, 255, 0.08); user-select: none; }
.kbd .kr { display: flex; gap: 0.35rem; }
.kbd .kr.r0, .kbd .kr.r6 { margin-bottom: 0.25rem; }
.kbd .kr.r6 { margin-top: 0.25rem; }
.kbd .kk {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  height: 2.6rem;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 700;
  font-size: 0.95rem;
  color: #0f172a;
  background: linear-gradient(#f8fafc, #d6dee8);
  border: 2px solid #0b1220;
  border-radius: 0.45rem;
  box-shadow: 0 0.2rem 0 #0b1220;
  transition: transform 0.08s, background 0.15s, box-shadow 0.08s;
  white-space: nowrap;
  overflow: hidden;
}
.kbd .kk span { overflow: hidden; text-overflow: clip; }
.kbd .kk.mod { background: linear-gradient(#cbd5e1, #a8b5c6); }
.kbd .kk.on { background: linear-gradient(#4ade80, #16a34a); color: #052e16; transform: translateY(0.15rem); box-shadow: 0 0.05rem 0 #0b1220, 0 0 12px rgba(74, 222, 128, 0.8); }
.kbd .kk.hit { background: linear-gradient(#fde047, #f59e0b); color: #1c1917; transform: translateY(0.15rem); box-shadow: 0 0.05rem 0 #0b1220, 0 0 22px rgba(250, 204, 21, 0.9); animation: keyHit 0.5s var(--ease-back); }
@keyframes keyHit { 0% { transform: translateY(0.15rem) scale(1.3); } 100% { transform: translateY(0.15rem) scale(1); } }
.kbd.show .kk { cursor: default; }
.kbd.phone { gap: 4px; padding: 5px; border-radius: 10px; border-width: 2px; }
.kbd.phone .kr { gap: 3px; }
.kbd.phone .kr.r0, .kbd.phone .kr.r6 { margin: 0; }
.kbd.phone .kk { height: 31px; font-size: 11px; border-width: 1.5px; border-radius: 5px; box-shadow: 0 2px 0 #0b1220; letter-spacing: -0.04em; }
.kbd.phone .kr.r0 .kk, .kbd.phone .kr.r6 .kk { height: 26px; font-size: 9px; }
.kbd .kk .s { display: none; }
.kbd.phone .kk .s { display: inline; }
.kbd.phone .kk .s + span, .kbd.phone .kk .l { display: none; }

/* ------------------------------------------------------------ Code-Editor */
.editor { display: flex; flex-direction: column; min-height: 0; background: #0d1117; color: #e6edf3; border: 3px solid #0b1220; border-radius: 12px; box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.06) inset; overflow: hidden; font-family: 'JetBrains Mono', ui-monospace, monospace; }
.editor .edbar { display: flex; align-items: center; gap: 0.45rem; padding: 0.5rem 0.8rem; background: #161b22; border-bottom: 1px solid #30363d; flex: none; }
.editor .edbar i { width: 0.75rem; height: 0.75rem; border-radius: 50%; background: #ff5f57; }
.editor .edbar i:nth-child(2) { background: #febc2e; }
.editor .edbar i:nth-child(3) { background: #28c840; }
.editor .edfile { margin-left: 0.6rem; font-size: 0.85em; color: #8b949e; font-weight: 700; }
.editor .edbody { flex: 1; min-height: 0; overflow: hidden; padding: 0.6rem 0; }
.editor .eline { display: flex; align-items: baseline; padding: 0 1rem 0 0; white-space: pre; position: relative; line-height: 1.5; }
.editor .eln { flex: none; width: 2.8em; padding-right: 0.9em; text-align: right; color: #6e7681; user-select: none; }
.editor code { font-family: inherit; white-space: pre; }
.editor .tc { color: #8b949e; font-style: italic; }
.editor .ts { color: #a5d6ff; }
.editor .tn { color: #79c0ff; }
.editor .tk { color: #ff7b72; font-weight: 700; }
.ecur { display: inline-block; width: 0.55em; height: 1.1em; margin-left: 1px; vertical-align: text-bottom; background: #4ade80; animation: blink 1s steps(2) infinite; }
.editor .edwait { padding: 1.4rem; color: #8b949e; font-size: 1.4em; }
.editor.big { font-size: clamp(1.05rem, 1.55vw, 2rem); }
.editor.phone { font-size: 12px; border-width: 2px; border-radius: 10px; }
.editor.phone .edbar { padding: 5px 8px; }
.editor.phone .edbar i { width: 8px; height: 8px; }
.editor.phone .eln { width: 2.2em; padding-right: 0.6em; }
.editor.phone .edbody { padding: 6px 0; overflow-x: auto; }
.editor .eline.pick { cursor: pointer; }
.editor .eline.pick:hover, .editor .eline.pick.sel { background: rgba(56, 139, 253, 0.25); }
.editor .eline.sel { box-shadow: inset 4px 0 0 #388bfd; }
.editor .eline.bugline { background: rgba(248, 81, 73, 0.32); box-shadow: inset 5px 0 0 #f85149; animation: bugPulse 0.9s ease 2; }
@keyframes bugPulse { 50% { background: rgba(248, 81, 73, 0.6); } }
.editor .eline.wrongpick { background: rgba(110, 118, 129, 0.18); }
.editor .bugmark { position: absolute; left: -0.1em; font-size: 0.9em; animation: pop 0.4s var(--ease-back) both; }
.editor .lwho { position: absolute; right: 0.6rem; top: 50%; transform: translateY(-50%); display: flex; gap: 0.15rem; }
.console { margin-top: 0.8rem; background: #000; color: #4ade80; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: clamp(1.2rem, 1.8vw, 2.3rem); font-weight: 700; padding: 0.6rem 1rem; border: 3px solid #0b1220; border-radius: 10px; box-shadow: var(--shadow), 0 0 20px rgba(74, 222, 128, 0.25); white-space: pre; animation: slideUp 0.4s var(--ease-back) both; }
.console .pr { color: #6e7681; }

/* ------------------------------------------------------------ Host: Sprachgewirr & Debugger */
.codewrap, .dbwrap { flex: 1; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 1.4rem; min-height: 0; }
.codewrap .codemain, .dbwrap .dbmain { display: flex; flex-direction: column; min-height: 0; }
.codewrap .editor, .dbwrap .editor { flex: 1; }
.codewrap .side, .dbwrap .side { display: flex; flex-direction: column; gap: 1rem; min-height: 0; justify-content: center; }
.codewrap .opts, .dbwrap .opts { grid-template-columns: 1fr; max-height: none; flex: none; }
.codewrap .opt, .dbwrap .opt { font-size: clamp(1.2rem, 1.7vw, 2.2rem); min-height: 4rem; }
.opts.mono .opt, .abtns.mono .abtn { font-family: 'JetBrains Mono', ui-monospace, monospace; letter-spacing: -0.02em; }
.dbwrap.ready { display: flex; justify-content: center; align-items: center; }
.dbtask { padding: 1rem 1.3rem; display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start; font-size: clamp(1.2rem, 1.7vw, 2.1rem); }
.dbtask b { font-family: var(--font-head); }
.dbtask p { margin: 0; font-weight: 800; color: var(--ink-soft); }
.dbwrap.ready .dbtask { font-size: clamp(1.8rem, 3vw, 3.6rem); align-items: center; text-align: center; padding: 2rem 2.6rem; animation: popIn 0.5s var(--ease-back) both; }

/* ------------------------------------------------------------ Terminal-Hack (CRT) */
.crt {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: 1.2rem 1.6rem;
  background: radial-gradient(ellipse at center, #062b12 0%, #021208 70%, #010904 100%);
  color: #5dfc8d;
  font-family: 'VT323', 'JetBrains Mono', monospace;
  font-size: min(4.2cqw, 5cqh);
  line-height: 1.04;
  text-shadow: 0 0 6px rgba(93, 252, 141, 0.7);
  border: 0.9rem solid #1c1f24;
  border-radius: 1.6rem;
  box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.85), 0 0 0 3px #000, var(--shadow), 0 0 50px rgba(74, 222, 128, 0.18);
  overflow: hidden;
}
.crt::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.22) 0 2px, transparent 2px 4px); animation: crtFlicker 4s steps(2) infinite; }
@keyframes crtFlicker { 50% { opacity: 0.85; } }
.crt .crthead { margin-bottom: 0.6rem; }
.crt .crthead .st b { background: #5dfc8d; color: #021208; padding: 0 0.3em; text-shadow: none; }
.crt .crtbody { flex: 1; min-height: 0; }
.crt .boot p { margin: 0.2em 0; opacity: 0; animation: bootLine 0.01s forwards; }
.crt .boot p:nth-child(2) { animation-delay: 0.7s; }
.crt .boot p:nth-child(3) { animation-delay: 1.4s; }
.crt .ecur { background: #5dfc8d; }
.hdump { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.2rem; }
.hdump .hl { white-space: pre; letter-spacing: 0.06em; }
.hdump .addr { opacity: 0.55; }
.hdump .hw { color: #f0fff4; border-radius: 2px; text-shadow: 0 0 8px rgba(201, 255, 217, 0.9); }
.hackwrap .hw { cursor: default; }
.hackwrap.revealed .hw { opacity: 0.4; }
.hackwrap.revealed .hw.secret { opacity: 1; background: #5dfc8d; color: #021208; text-shadow: none; padding: 0 0.1em; box-shadow: 0 0 18px #5dfc8d; animation: pop 0.5s var(--ease-back) both; }
.hackwrap { flex: 1; display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: 1.4rem; min-height: 0; }
.hackwrap.ready { grid-template-columns: 1fr; padding: 0 12%; }
.hackwrap .hackterm { min-height: 0; display: flex; flex-direction: column; container-type: size; }
.hackwrap .hackside { display: flex; flex-direction: column; gap: 0.7rem; padding: 1rem 1.1rem; min-height: 0; overflow: hidden; }
.hackwrap .hackside h3 { font-size: 1.35rem; }
/* Listen in em: bei vielen Spielern setzt fitList sie dichter, statt Zeilen abzuschneiden */
.hplist { display: flex; flex-direction: column; gap: 0.45em; min-height: 0; overflow: hidden; }
.hp { display: flex; align-items: center; gap: 0.6em; font-weight: 900; font-size: 1.1em; }
.hp .avatar, .hl2 .avatar { --size: 1.75em !important; }
.hp .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp .tries { display: flex; gap: 0.18em; }
.hp .tries i { width: 0.68em; height: 1em; border: 2px solid #0b1220; border-radius: 2px; background: #22c55e; }
.hp .tries i.used { background: #cbd5e1; }
.hp .tries i.hit { background: #facc15; }
.hp b { font-family: var(--font-mono); font-size: 0.78em; padding: 0.1em 0.4em; border-radius: 4px; }
.hp b.ok { background: #16a34a; color: #fff; }
.hp b.lock { background: #dc2626; color: #fff; }
.hp.ok { animation: pop 0.4s var(--ease-back); }
.hackside .hhint { margin-top: auto; font-size: 0.95rem; color: var(--ink-soft); font-weight: 800; }
.hlog { display: flex; flex-direction: column; gap: 0.5em; min-height: 0; overflow: hidden; }
.hl2 { display: flex; align-items: flex-start; gap: 0.5em; animation: slideLeft 0.4s var(--ease-back) both; }
.hl2 .ht { display: flex; flex-wrap: wrap; gap: 0.25em; }
.hl2 .ht span { font-family: var(--font-mono); font-size: 0.85em; font-weight: 700; padding: 0.1em 0.35em; border-radius: 4px; background: #e2e8f0; }
.hl2 .ht span b { color: #475569; }
.hl2 .ht span.ok { background: #16a34a; color: #fff; }
.hl2 .ht span.ok b { color: #fff; }
.hackside .none { opacity: 0.6; text-align: center; }
.hackside .factcard { font-size: 1rem; padding: 0.6rem 0.8rem; }

/* Handy: Terminal */
.pterm { background: radial-gradient(ellipse at center, #062b12, #021208 80%); color: #5dfc8d; font-family: 'VT323', 'JetBrains Mono', monospace; font-size: 21px; line-height: 1.05; text-shadow: 0 0 5px rgba(93, 252, 141, 0.6); border: 6px solid #1c1f24; border-radius: 14px; padding: 10px 10px 12px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.pterm .pth { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.pterm .ptries { display: flex; gap: 3px; }
.pterm .ptries i { width: 10px; height: 15px; background: #5dfc8d; box-shadow: 0 0 6px #5dfc8d; }
.pterm .ptries i.used { background: #14532d; box-shadow: none; }
.pterm .pwords { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pterm .pw { font-family: inherit; font-size: 23px; letter-spacing: 0.08em; color: #c9ffd9; background: rgba(93, 252, 141, 0.08); border: 1.5px solid rgba(93, 252, 141, 0.4); border-radius: 4px; padding: 6px 4px; text-shadow: inherit; position: relative; }
.pterm .pw:active, .pterm .pw.sel { background: #5dfc8d; color: #021208; text-shadow: none; }
.pterm .pw.tried { opacity: 0.4; text-decoration: line-through; }
.pterm .pw.tried::after { content: attr(data-like); position: absolute; right: 4px; top: 2px; font-size: 15px; text-decoration: none; }
.pterm .pw.ok { opacity: 1; text-decoration: none; background: #5dfc8d; color: #021208; }
.pterm .plog { margin-top: 8px; font-size: 19px; min-height: 22px; }
.pterm .plog div { display: flex; justify-content: space-between; gap: 8px; }
.pterm .plog .dim { opacity: 0.6; justify-content: flex-start; }
.pterm.done .pwords { opacity: 0.5; pointer-events: none; }
.pterm .pdone { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%) rotate(-4deg); background: #021208; border: 3px solid #5dfc8d; padding: 8px 14px; font-size: 30px; white-space: nowrap; animation: stamp 0.5s var(--ease-back) both; box-shadow: 0 0 20px rgba(93, 252, 141, 0.6); }
.pterm:not(.granted) .pdone { color: #ff6b6b; border-color: #ff6b6b; text-shadow: 0 0 6px rgba(255, 107, 107, 0.7); box-shadow: 0 0 20px rgba(255, 107, 107, 0.5); }
.hackv { gap: 10px; }

/* ------------------------------------------------------------ Hex-Mixer */
.hexcode { font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 800; letter-spacing: 0.02em; }
.hexcode .hr { color: #ef4444; }
.hexcode .hg { color: #16a34a; }
.hexcode .hb { color: #2563eb; }
.ctarget { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 0.4rem; background: var(--paper); color: var(--ink); border: var(--outline); border-radius: 14px; box-shadow: var(--shadow); padding: 1rem 1.4rem; animation: popIn 0.5s var(--ease-back) both; }
.ctarget.hex .hexcode { font-size: clamp(3rem, 7vw, 8.5rem); }
.ctarget.css code { font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 700; font-size: clamp(1.8rem, 3.6vw, 4.4rem); }
.ctarget.css .tk { color: #7c3aed; }
.ctarget.css .tv { color: #c2410c; }
.ctarget.name b { font-family: var(--font-head); font-size: clamp(2rem, 4.2vw, 5rem); line-height: 1.1; }
.ctarget.name small { font-weight: 800; color: var(--ink-soft); font-size: clamp(1rem, 1.6vw, 1.9rem); }
.ctarget.wait { font-size: 5rem; }
.hexwrap { flex: 1; display: flex; flex-direction: column; gap: 1rem; min-height: 0; }
.hexready { flex: 1; position: relative; display: flex; justify-content: center; align-items: center; min-height: 10rem; }
.hexready i { width: 12rem; height: 12rem; border-radius: 50%; background: var(--c); mix-blend-mode: screen; margin: 0 -2.5rem; opacity: 0.85; animation: popIn 0.6s var(--ease-back) both, hexBob 2s ease-in-out infinite alternate; }
@keyframes hexBob { to { transform: translateY(-0.8rem); } }
.hexstage { flex: 1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.4rem; min-height: 0; }
.hexleft { display: flex; flex-direction: column; justify-content: center; min-height: 0; }
.hexleft .ctarget { min-height: 60%; }
.hexswatch { display: flex; flex-direction: column; gap: 0.8rem; min-height: 0; }
.hexswatch .sw { flex: 1; min-height: 8rem; display: flex; align-items: center; justify-content: center; border: var(--outline); border-radius: 18px; box-shadow: var(--shadow); background: repeating-conic-gradient(#cbd5e1 0 25%, #f1f5f9 0 50%) 0 0 / 2rem 2rem; font-size: 6rem; font-weight: 900; color: #64748b; transition: background 0.9s; }
.hexswatch .sw.filled { animation: pop 0.6s var(--ease-back); }
.hexswatch .sw > span { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; font-size: clamp(1.6rem, 2.8vw, 3.4rem); }
.hexswatch .sw > span small { font-family: var(--font-head); font-size: 0.6em; }
.hexswatch .sw.dark { color: #fff; }
.hexswatch .sw.dark .hexcode b { color: #fff; }
.hexswatch .sw.light { color: #111; }
.hexswatch .sw.light .hexcode b { color: #111; }
.hexswatch .mixers { display: flex; flex-wrap: wrap; gap: 0.4rem; min-height: 2.6rem; }
.hexswatch .mixers .mx { position: relative; animation: pop 0.4s var(--ease-back) both; }
.hexswatch .mixers .mx i { position: absolute; right: -0.3rem; bottom: -0.3rem; font-style: normal; font-size: 0.95rem; }
.hexmixes { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; flex: none; }
.hexmixes .hm { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; background: var(--paper); color: var(--ink); border: var(--outline); border-radius: 12px; box-shadow: var(--shadow-sm); padding: 0.45rem 0.55rem; animation: popIn 0.45s var(--ease-back) both; min-width: 7rem; }
.hexmixes .hm.best { box-shadow: 0 0 0 4px var(--gold), 0 0 24px rgba(251, 191, 36, 0.7); }
.hexmixes .chip2 { width: 100%; text-align: center; font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 800; font-size: 0.95rem; padding: 0.9rem 0.4rem; border-radius: 8px; border: 2px solid var(--ink); }
.hexmixes .de { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.85rem; font-weight: 700; color: var(--ink-soft); }
.hexmixes .pp { font-family: var(--font-head); font-weight: 800; color: #16a34a; }
.hexmixes .none { opacity: 0.7; }

/* Handy: Farbmischer */
.hexv { gap: 8px; }
.hexv .ctarget { padding: 8px 12px; border-radius: 12px; gap: 2px; }
.hexv .ctarget.hex .hexcode { font-size: 38px; }
.hexv .ctarget.css code { font-size: 20px; }
.hexv .ctarget.name b { font-size: 24px; }
.hexv .ctarget.name small { font-size: 14px; }
.pmix { display: flex; }
.pprev { flex: 1; height: 62px; border: 3px solid var(--ink); border-radius: 12px; box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center; transition: background 0.08s; }
.pprev .phex .hexcode { font-size: 20px; }
.pprev .phex .hexcode b { color: #fff; }
.pprev.light .phex .hexcode, .pprev.light .phex .hexcode b { color: #111; }
.pprev:not(.light) .phex .hexcode { color: #fff; }
.ptabs { display: flex; gap: 6px; }
.ptabs button { flex: 1; padding: 7px; border-radius: 10px; border: 2px solid rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.08); font-weight: 800; font-size: 14px; }
.ptabs button.on { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.ppane { display: flex; flex-direction: column; gap: 10px; }
.ppane.hidden { display: none; }
.svbox { --hue: #f00; position: relative; height: 150px; border: 3px solid var(--ink); border-radius: 12px; background: linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, var(--hue)); touch-action: none; }
.svthumb { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 2px #000, 0 2px 6px rgba(0, 0, 0, 0.5); pointer-events: none; }
.huerange, .rgbrow input { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; border-radius: 13px; border: 3px solid var(--ink); background: linear-gradient(90deg, #f00, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00); }
.huerange::-webkit-slider-thumb, .rgbrow input::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 3px solid #000; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); }
.huerange::-moz-range-thumb, .rgbrow input::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid #000; }
.rgbrow { display: flex; align-items: center; gap: 8px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 800; }
.rgbrow > span { width: 16px; font-size: 18px; }
.rgbrow code { width: 30px; text-align: right; font-size: 17px; }
.rgbrow.c-r input { background: linear-gradient(90deg, #000, #f00); }
.rgbrow.c-g input { background: linear-gradient(90deg, #000, #0f0); }
.rgbrow.c-b input { background: linear-gradient(90deg, #000, #00f); }
.rgbrow.c-r > span { color: #f87171; }
.rgbrow.c-g > span { color: #4ade80; }
.rgbrow.c-b > span { color: #60a5fa; }
.echosw { display: inline-block; width: 1.2em; height: 1.2em; border-radius: 4px; border: 2px solid var(--ink); vertical-align: middle; }
.pswrow { display: flex; gap: 8px; margin-top: 6px; }
.psw { flex: 1; border: 3px solid var(--ink); border-radius: 10px; padding: 14px 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.psw small { font-size: 12px; font-weight: 800; }
.psw b { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 17px; }

/* ------------------------------------------------------------ Bit-Schubser: DIP-Schalter und LEDs */
.dip { display: grid; grid-template-columns: repeat(8, 1fr); gap: 0.5rem; padding: 0.8rem; background: #b91c1c; border: 3px solid #0b1220; border-radius: 10px; box-shadow: var(--shadow), inset 0 3px 0 rgba(255, 255, 255, 0.2); }
.dsw { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.35rem; padding: 0; background: none; border: 0; color: #fff; }
.dsw::before { content: ''; display: block; width: 100%; aspect-ratio: 1 / 1.45; background: #f1f5f9; border: 2px solid #0b1220; border-radius: 0.3rem; box-shadow: inset 0 0 0 0.25rem #e2e8f0; }
.dsw .knob { position: absolute; left: 18%; right: 18%; top: 48%; height: 36%; background: #334155; border-radius: 0.2rem; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4); transition: top 0.15s var(--ease-back), background 0.15s; }
.dsw small { font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 800; font-size: 0.8em; color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4); }
.dsw.on .knob { top: 10%; background: #fde047; box-shadow: 0 0 10px rgba(253, 224, 71, 0.9); }
.dsw.flash { animation: pop 0.4s var(--ease-back); }
.dip.big { width: min(46rem, 74%); align-self: center; font-size: clamp(1rem, 1.5vw, 1.9rem); }
.dip.phone { gap: 5px; padding: 8px; font-size: 13px; }
.leds { display: grid; grid-template-columns: repeat(8, 1fr); gap: 0.6rem; padding: 0.9rem; background: #0f172a; border: 3px solid #000; border-radius: 10px; box-shadow: var(--shadow); }
.led { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
.led i { width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #4b1d1d, #1f0909); border: 2px solid #000; }
.led.on i { background: radial-gradient(circle at 35% 30%, #fff, #ff4d4d 30%, #c40000); box-shadow: 0 0 16px 4px rgba(255, 60, 60, 0.75); }
.led small { font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 800; color: #94a3b8; font-size: 0.8em; }
.led.flash i { animation: pop 0.5s var(--ease-back); }
.leds.big { width: min(50rem, 80%); align-self: center; font-size: clamp(1rem, 1.5vw, 1.9rem); }
.leds.phone { gap: 6px; padding: 10px; font-size: 13px; }
.bitwrap { flex: 1; display: flex; flex-direction: column; gap: 1.1rem; min-height: 0; position: relative; }
.bitstage { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.bittask { display: flex; align-items: baseline; gap: 1rem; font-family: var(--font-head); }
.bittask small { font-size: clamp(1rem, 1.5vw, 1.8rem); font-weight: 800; opacity: 0.8; text-transform: uppercase; letter-spacing: 0.1em; }
.bittask .bign { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: clamp(4rem, 8vw, 10rem); line-height: 1; font-weight: 800; color: #fde047; text-shadow: 0 0.06em 0 #000, 0 0 0.3em rgba(253, 224, 71, 0.5); }
.bittask .bign.q { color: #fff; }
.bittask .arrow { font-size: clamp(2rem, 3vw, 3.6rem); opacity: 0.7; }
.bitans { display: flex; flex-direction: column; align-items: center; gap: 0.7rem; }
.bitsum { font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 800; font-size: clamp(1.4rem, 2.4vw, 3rem); background: var(--paper); color: var(--ink); border: var(--outline); border-radius: 10px; padding: 0.3rem 1rem; box-shadow: var(--shadow); animation: stamp 0.5s var(--ease-back) both; }
.bitvals { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.bv { display: flex; align-items: center; gap: 0.4rem; padding: 0.25rem 0.6rem 0.25rem 0.3rem; border-radius: 99px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); animation: popIn 0.4s var(--ease-back) both; }
.bv code { font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 800; font-size: 1.05rem; }
.bv.ok { background: #bbf7d0; }
.bv.close { background: #fef08a; }
.bv.bad { background: #fecaca; }
.binrain { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: -1; }
.binrain i { position: absolute; top: -10%; font-style: normal; font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 800; font-size: 2.4rem; color: rgba(74, 222, 128, 0.35); animation: binFall 2.6s linear infinite; }
@keyframes binFall { to { transform: translateY(80vh); } }
.pbt { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pbt small { font-weight: 800; opacity: 0.85; }
.pbt b { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 64px; line-height: 1; color: #fde047; text-shadow: 0 3px 0 #000; }
.bitv { gap: 12px; }
.bitv .numdisp .v { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.techans code, .bitline { font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 800; }

/* ------------------------------------------------------------ Tastenakrobatik */
.keywrap { flex: 1; display: flex; flex-direction: column; gap: 1rem; min-height: 0; }
.keywrap.ready { justify-content: center; }
.keyhead { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.keyhead .qcard { align-self: stretch; }
.keytags { display: flex; gap: 0.5rem; }
.keytags .chip { font-size: 1.1rem; padding: 0.3rem 0.8rem; }
.keyboardbox { display: flex; flex-direction: column; align-items: center; gap: 0.8rem; min-height: 0; }
.keyboardbox .kbd { width: min(78rem, 100%); }
.keyans { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; animation: popIn 0.5s var(--ease-back) both; }
.keyans .caps.big { font-size: clamp(1.6rem, 2.6vw, 3.2rem); }
.keyans .alt { font-weight: 800; display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; justify-content: center; }
.keyans .alt .caps { font-size: 1.1rem; }
.keypicks { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.keywrap.revealed { gap: 0.55rem; }
.keywrap.revealed .keytags { display: none; }
.keywrap.revealed .qcard { font-size: clamp(1.3rem, 2vw, 2.5rem); padding: 2.1rem 1.2rem 0.5rem; }
.keywrap.revealed .keyboardbox { gap: 0.5rem; }
.keywrap.revealed .kbd { width: min(62rem, 100%); padding: 0.4rem; gap: 0.22rem; }
.keywrap.revealed .kbd .kr { gap: 0.22rem; }
.keywrap.revealed .kbd .kr.r0, .keywrap.revealed .kbd .kr.r6 { margin: 0; }
/* Tastatur in der Auflösung nach der Bühnenhöhe: die Tipps der Spieler stehen darunter, nie darüber */
.keywrap.revealed .kbd .kk { height: clamp(1rem, calc(2.3 * var(--vq)), 1.75rem); font-size: clamp(0.6rem, calc(1 * var(--vq)), 0.75rem); border-width: 1.5px; box-shadow: 0 0.12rem 0 #0b1220; }
.keywrap.revealed .keyboardbox { flex: 0 1 auto; }
/* Wenig Höhe: in der Auflösung zählen Lösung und Tipps – die Tastatur (nur Deko) tritt zurück */
.keywrap { container-type: size; }
@container (max-height: 33rem) { .keywrap.revealed .kbd { display: none; } }
.keywrap.revealed .keyans .caps.big { font-size: clamp(1.3rem, 2vw, 2.4rem); }
.keywrap.revealed .factcard { font-size: clamp(0.9rem, 1.1vw, 1.3rem); padding: 0.5rem 0.9rem; animation-delay: 0.2s; }
.kp { display: flex; align-items: center; gap: 0.4rem; padding: 0.25rem 0.6rem 0.25rem 0.3rem; border-radius: 99px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); animation: popIn 0.4s var(--ease-back) both; font-size: 0.95rem; }
.kp.ok { background: #bbf7d0; }
.kp.close { background: #fef08a; }
.kp.bad { background: #fecaca; }
.keysv { gap: 8px; }
.keysv .qtxt { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.keysv .ktags { display: flex; gap: 6px; }
.keysv .ktags span { font-size: 12px; font-weight: 800; padding: 1px 8px; border-radius: 6px; background: var(--paper-2); }
.chord { min-height: 40px; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.chord .ph { opacity: 0.6; font-weight: 800; }

/* ------------------------------------------------------------ Bluescreen-Galerie: Monitor */
.crashwrap { flex: 1; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.4rem; min-height: 0; align-items: center; }
.crashwrap .side { display: flex; flex-direction: column; gap: 1rem; min-height: 0; justify-content: center; overflow: hidden; }
.crashwrap.revealed .side { justify-content: flex-start; gap: 0.7rem; }
.crashwrap.revealed .side .qcard { font-size: clamp(1.1rem, 1.5vw, 1.9rem); }
.crashwrap.revealed .opt { min-height: 3rem; font-size: clamp(1rem, 1.35vw, 1.7rem); padding-block: 0.45rem; }
.crashwrap.revealed .factcard { font-size: clamp(0.9rem, 1.05vw, 1.3rem); padding: 0.6rem 0.9rem; }
.crashwrap .opts { grid-template-columns: 1fr; max-height: none; flex: none; }
.crashwrap .opt { font-size: clamp(1.1rem, 1.55vw, 2rem); min-height: 3.6rem; }
.monitor { position: relative; align-self: center; justify-self: center; height: 100%; max-width: 100%; aspect-ratio: 4 / 3; display: flex; flex-direction: column; background: linear-gradient(#e5e1d3, #c9c3ad); border: 3px solid #0b1220; border-radius: 1.4rem; padding: 1.3rem 1.3rem 0; box-shadow: var(--shadow), inset 0 3px 0 rgba(255, 255, 255, 0.6); }
.monitor .mscreen { container-type: size; flex: 1; min-height: 0; background: #000; border: 0.35rem solid #3f3d36; border-radius: 0.7rem; overflow: hidden; position: relative; box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.9); }
.monitor .mfoot { height: 2.6rem; display: flex; align-items: center; justify-content: flex-end; padding: 0 1rem; }
.monitor .led { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: #3f3d36; }
.monitor.on .led { background: #22c55e; box-shadow: 0 0 8px #22c55e; }
.monitor.boot .crs { animation: crtBoot 0.6s ease-out both; }
@keyframes crtBoot { 0% { clip-path: inset(49.5% 0 49.5% 0); filter: brightness(3); } 40% { clip-path: inset(0 0 0 0); filter: brightness(1.8); } 100% { clip-path: inset(0 0 0 0); filter: none; } }
.monitor .mscreen::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0 2px, transparent 2px 4px), radial-gradient(ellipse at center, transparent 60%, rgba(0, 0, 0, 0.45)); }

/* ------------------------------------------------------------ Kultbildschirme (skaliert mit dem Behälter) */
.crs { container-type: inline-size; position: absolute; inset: 0; overflow: hidden; display: flex; font-family: 'VT323', 'JetBrains Mono', monospace; color: #fff; }
.crs p { margin: 0; }
.crs-bsod9x { background: #0000aa; align-items: center; justify-content: center; }
.crs-bsod9x .in { width: 82%; font-size: 3.4cqw; line-height: 1.15; }
.crs-bsod9x .ttl { text-align: center; margin-bottom: 1.2em; }
.crs-bsod9x .ttl span { background: #aaaaaa; color: #0000aa; padding: 0 0.4em; }
.crs-bsodnt { background: #0000aa; padding: 4cqw; }
.crs-bsodnt .in { font-size: 2.6cqw; line-height: 1.12; font-family: 'JetBrains Mono', monospace; font-weight: 400; }
.crs-bsod10 { background: #0078d7; padding: 8cqw 10cqw; font-family: 'Segoe UI', system-ui, sans-serif; }
.crs-bsod10 .in { display: flex; flex-direction: column; gap: 2.2cqw; }
.crs-bsod10 .sad { font-size: 16cqw; line-height: 1; font-weight: 300; }
.crs-bsod10 .msg { font-size: 3.6cqw; line-height: 1.25; font-weight: 300; }
.crs-bsod10 .pct { font-size: 3.6cqw; font-weight: 300; }
.crs-bsod10 .foot { display: flex; gap: 2.4cqw; align-items: flex-start; font-size: 1.9cqw; line-height: 1.3; }
.crs-bsod10 .foot p + p { margin-top: 1.2cqw; }
.crs-bsod10 .qr { flex: none; width: 11cqw; aspect-ratio: 1; display: grid; grid-template-columns: repeat(9, 1fr); background: #fff; padding: 0.6cqw; gap: 0; }
.crs-bsod10 .qr i { background: #fff; }
.crs-bsod10 .qr i.on { background: #0078d7; }
.crs-guru { background: #000; align-items: flex-start; justify-content: center; padding-top: 3cqw; }
.crs-guru .box { width: 92%; border: 1.2cqw solid #ff2a00; padding: 2.2cqw 2cqw; color: #ff2a00; font-size: 3.8cqw; text-align: center; line-height: 1.4; animation: guruBlink 1.4s steps(2) infinite; font-family: 'Press Start 2P', 'VT323', monospace; font-size: 2.2cqw; }
@keyframes guruBlink { 50% { border-color: #000; } }
.crs-sadmac { background: #000; align-items: center; justify-content: center; }
.crs-sadmac .in { display: flex; flex-direction: column; align-items: center; gap: 1.5cqw; font-size: 4cqw; }
.sadmacsvg { width: 16cqw; }
.crs-macbomb { background: repeating-conic-gradient(#8f8f8f 0 25%, #c9c9c9 0 50%) 0 0 / 0.8cqw 0.8cqw; align-items: center; justify-content: center; font-family: 'Chicago', 'Geneva', 'JetBrains Mono', monospace; }
.crs-macbomb .dlg { width: 70%; background: #fff; color: #000; border: 0.4cqw solid #000; box-shadow: 0 0 0 0.5cqw #fff, 0 0 0 0.9cqw #000; padding: 3cqw; display: grid; grid-template-columns: auto 1fr; gap: 2.5cqw; align-items: center; font-size: 3.6cqw; font-weight: 700; }
.bombsvg { width: 9cqw; }
.crs-macbomb .btns { grid-column: 1 / 3; display: flex; justify-content: flex-end; }
.crs-macbomb .btns span { border: 0.35cqw solid #000; border-radius: 1.6cqw; padding: 0.6cqw 2.6cqw; box-shadow: 0 0 0 0.35cqw #fff, 0 0 0 0.7cqw #000; }
.crs-term { background: #050505; padding: 5cqw; }
.crs-term .in { font-size: 4cqw; line-height: 1.15; color: #d4d4d4; word-break: break-word; }
.crs-term.v-green .in { color: #33ff66; text-shadow: 0 0 6px rgba(51, 255, 102, 0.6); }
.crs-term.v-gray .in { color: #b4b4b4; }
.crs-term.v-white .in { color: #f0f0f0; font-family: 'JetBrains Mono', monospace; font-size: 2.9cqw; }
.crs-term.v-orange { align-items: center; justify-content: center; text-align: center; }
.crs-term.v-orange .in { color: #ff8c1a; font-family: 'Fredoka', 'Nunito', sans-serif; font-weight: 600; font-size: 6cqw; line-height: 1.2; text-shadow: 0 0 8px rgba(255, 140, 26, 0.5); }
.crs-term.v-bios .in { color: #c0c0c0; }
.crs-term.v-bios .in p:nth-child(-n+2) { color: #fff; }
.crs-c64 { background: #7b71d6; padding: 6cqw 7cqw; }
.crs-c64 .in { flex: 1; background: #40318d; color: #7b71d6; font-family: 'Press Start 2P', 'VT323', monospace; font-size: 2.35cqw; line-height: 1.45; padding: 2cqw; text-transform: uppercase; white-space: pre; }
.crs-clippy { background: #fdfdfd; color: #111; font-family: 'Segoe UI', system-ui, sans-serif; }
.crs-clippy .doc { position: absolute; left: 6cqw; top: 6cqw; width: 50cqw; display: flex; flex-direction: column; gap: 2cqw; }
.crs-clippy .doc i { display: block; height: 1.4cqw; background: #d4d4d8; border-radius: 1cqw; }
.crs-clippy .doc i.s { width: 60%; }
.crs-clippy .bubble { position: absolute; right: 6cqw; top: 14cqw; width: 52cqw; background: #ffffe1; border: 0.35cqw solid #333; border-radius: 2cqw; padding: 2.4cqw; font-size: 3.2cqw; line-height: 1.3; box-shadow: 0.8cqw 0.8cqw 0 rgba(0, 0, 0, 0.2); }
.crs-clippy .bubble::after { content: ''; position: absolute; right: 12cqw; bottom: -3cqw; border: 1.6cqw solid transparent; border-top: 2cqw solid #333; }
.crs-clippy .bubble .opts { display: flex; flex-direction: column; gap: 0.8cqw; margin-top: 1.6cqw; font-size: 2.7cqw; color: #1d4ed8; }
.crs-clippy .clipsvg { position: absolute; right: 12cqw; bottom: 4cqw; width: 13cqw; }
.crs-http { background: #fff; color: #000; flex-direction: column; font-family: 'Times New Roman', serif; }
.crs-http .url { flex: none; font-family: system-ui, sans-serif; font-size: 2.2cqw; background: #f1f3f4; color: #3c4043; border-bottom: 0.3cqw solid #dadce0; padding: 1.4cqw 3cqw; }
.crs-http .in { padding: 5cqw; text-align: center; }
.crs-http h1 { font-size: 6cqw; margin: 0 0 2cqw; font-weight: 700; font-family: 'Times New Roman', serif; color: #000; letter-spacing: 0; }
.crs-http hr { border: 0; border-top: 0.25cqw solid #aaa; margin: 2cqw 0; }
.crs-http p { font-size: 3cqw; line-height: 1.3; }
.crs-dino { background: #fff; color: #202124; font-family: system-ui, sans-serif; padding: 9cqw 12cqw; }
.crs-dino .in { display: flex; flex-direction: column; gap: 1.6cqw; }
.dinosvg { width: 9cqw; margin-bottom: 2cqw; }
.crs-dino h1 { font-family: system-ui, sans-serif; font-size: 4.6cqw; font-weight: 500; color: #202124; letter-spacing: 0; }
.crs-dino p { font-size: 2.6cqw; color: #5f6368; }
.crs-dino p.code { font-size: 2cqw; text-transform: uppercase; margin-top: 2cqw; }
.crs-lcd { background: #2d2f33; align-items: center; justify-content: center; }
.crs-lcd .panel { width: 72%; padding: 3cqw 4cqw; background: #9bab72; color: #26301a; border: 1.2cqw solid #1c1d20; border-radius: 1.5cqw; box-shadow: inset 0 0 3cqw rgba(0, 0, 0, 0.35); font-size: 8cqw; line-height: 1.1; text-align: center; letter-spacing: 0.08em; }
.crs-lcd.v-phone .panel { width: 46%; aspect-ratio: 5 / 6; font-size: 5.4cqw; display: flex; flex-direction: column; justify-content: center; text-align: left; letter-spacing: 0.02em; border-radius: 3cqw; }
.crs-rrod { background: radial-gradient(circle at 50% 40%, #2b2b2b, #0d0d0d); align-items: center; justify-content: center; }
.crs-rrod .xbox { width: 54cqw; aspect-ratio: 2.4; background: linear-gradient(#f4f4f4, #c8c8c8); border-radius: 4cqw 4cqw 3cqw 3cqw; border: 0.5cqw solid #888; display: flex; align-items: center; justify-content: flex-end; padding-right: 6cqw; box-shadow: 0 2cqw 4cqw rgba(0, 0, 0, 0.6); }
.crs-rrod .ring { position: relative; width: 12cqw; aspect-ratio: 1; border-radius: 50%; background: #ddd; display: grid; place-items: center; }
.crs-rrod .ring i { position: absolute; inset: 0; border-radius: 50%; border: 1.4cqw solid transparent; }
.crs-rrod .ring i:nth-child(1) { border-top-color: #ff1a1a; }
.crs-rrod .ring i:nth-child(2) { border-right-color: #ff1a1a; }
.crs-rrod .ring i:nth-child(3) { border-bottom-color: #ff1a1a; }
.crs-rrod .ring i:nth-child(4) { border-left-color: #5a5a5a; }
.crs-rrod .ring i:not(:nth-child(4)) { filter: drop-shadow(0 0 1.2cqw #ff1a1a); animation: guruBlink 1.2s steps(2) infinite; }
.crs-rrod .ring b { font-size: 4cqw; color: #777; }
.crs-beachball { background: linear-gradient(#6aa0d8, #2f5f9e); align-items: center; justify-content: center; }
.crs-beachball .win { width: 64%; height: 60%; background: #ececec; border-radius: 1.5cqw; box-shadow: 0 2cqw 5cqw rgba(0, 0, 0, 0.4); display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; }
.crs-beachball .bar { position: absolute; top: 0; left: 0; right: 0; height: 5cqw; background: linear-gradient(#e8e8e8, #d2d2d2); border-radius: 1.5cqw 1.5cqw 0 0; display: flex; gap: 1cqw; align-items: center; padding-left: 2cqw; }
.crs-beachball .bar i { width: 1.8cqw; height: 1.8cqw; border-radius: 50%; background: #ff5f57; }
.crs-beachball .bar i:nth-child(2) { background: #febc2e; }
.crs-beachball .bar i:nth-child(3) { background: #28c840; }
.crs-beachball .ball { width: 12cqw; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(#f43f5e, #f59e0b, #facc15, #22c55e, #06b6d4, #3b82f6, #a855f7, #f43f5e); box-shadow: inset 0 0 2cqw rgba(0, 0, 0, 0.25), 0 0.5cqw 1cqw rgba(0, 0, 0, 0.3); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.crs-update { background: #0063b1; align-items: center; justify-content: center; text-align: center; font-family: 'Segoe UI', system-ui, sans-serif; }
.crs-update .in { display: flex; flex-direction: column; align-items: center; gap: 1.4cqw; font-size: 3.6cqw; font-weight: 300; }
.crs-update .dots { position: relative; width: 8cqw; height: 8cqw; margin-bottom: 3cqw; animation: spin 2.2s linear infinite; }
.crs-update .dots i { position: absolute; left: 50%; top: 0; width: 1.1cqw; height: 1.1cqw; margin-left: -0.55cqw; border-radius: 50%; background: #fff; transform-origin: 50% 4cqw; }
.crs-update .dots i:nth-child(2) { transform: rotate(-20deg); opacity: 0.85; }
.crs-update .dots i:nth-child(3) { transform: rotate(-40deg); opacity: 0.7; }
.crs-update .dots i:nth-child(4) { transform: rotate(-60deg); opacity: 0.55; }
.crs-update .dots i:nth-child(5) { transform: rotate(-80deg); opacity: 0.4; }
.crs-macpanic { background: radial-gradient(circle, #4b4b4b, #1f1f1f); align-items: center; justify-content: center; font-family: 'Helvetica Neue', system-ui, sans-serif; }
.crs-macpanic .box { width: 74%; background: rgba(0, 0, 0, 0.72); border-radius: 2.4cqw; padding: 3cqw 4cqw; text-align: center; display: flex; flex-direction: column; gap: 1.4cqw; font-size: 2.1cqw; line-height: 1.3; color: #eee; }
.crs-macpanic .pw { font-size: 9cqw; line-height: 1; color: #fff; }
.crs-dialog { background: #3a6ea5; align-items: center; justify-content: center; font-family: 'Tahoma', 'Segoe UI', system-ui, sans-serif; }
.crs-dialog .win { width: 76%; background: #ece9d8; color: #000; border: 0.4cqw solid #0831d9; border-radius: 1.4cqw 1.4cqw 0.4cqw 0.4cqw; box-shadow: 1cqw 1cqw 0 rgba(0, 0, 0, 0.35); overflow: hidden; }
.crs-dialog .tb { display: flex; align-items: center; justify-content: space-between; padding: 1cqw 1.6cqw; background: linear-gradient(#0058ee, #3a93ff 8%, #0050ee 40%, #0042cc 90%); color: #fff; font-weight: 700; font-size: 2.8cqw; }
.crs-dialog .tb b { background: #e0472c; border: 0.3cqw solid #fff; border-radius: 0.6cqw; padding: 0 1cqw; font-size: 2.4cqw; }
.crs-dialog .body { display: flex; align-items: center; gap: 3cqw; padding: 4cqw 3.4cqw 2cqw; font-size: 3.2cqw; line-height: 1.3; }
.crs-dialog .ic { font-size: 7cqw; }
.crs-dialog .btns { display: flex; justify-content: center; gap: 2cqw; padding: 1cqw 0 3cqw; }
.crs-dialog .btns span { min-width: 12cqw; text-align: center; font-size: 2.8cqw; padding: 0.6cqw 2cqw; border: 0.3cqw solid #003c74; border-radius: 0.6cqw; background: linear-gradient(#fff, #e3e3db); }

/* Handy: kleiner Bildschirm */
.pscreen { container-type: size; position: relative; align-self: center; height: 23dvh; max-width: 100%; aspect-ratio: 4 / 3; border: 4px solid #3f3d36; border-radius: 10px; overflow: hidden; background: #000; box-shadow: var(--shadow); flex: none; }
.crashv { gap: 10px; }
.crashv .qtxt.small, .debugv .qtxt.small { font-size: 17px; }
.debugv .qtxt small { display: block; font-size: 14px; opacity: 0.8; margin-top: 2px; }
.debugv, .codev { gap: 10px; }
.peditor { display: flex; flex-direction: column; min-height: 0; flex: none; max-height: 42vh; }
.peditor .editor { min-height: 0; }
.peditor .editor .edbody { overflow-y: auto; }
.codev .peditor .editor .edbody { flex: none; height: 168px; }
.debugv .editor.phone { font-size: 13.5px; }
.debugv .editor.phone .eline.pick { padding-block: 3px; }
.techans { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.techans .caps { font-size: 15px; }
.hackres .htries { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.hackres .htries span { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13px; padding: 1px 6px; border-radius: 4px; background: var(--paper-2); }
.hackres .htries span.ok { background: #16a34a; color: #fff; }

/* ------------------------------------------------------------ Am PC direkt in der Show mitspielen */
.pcplay .hackwrap .hw.pc-hw { cursor: pointer; }
.pcplay .hackwrap .hw.pc-hw:hover { background: #5dfc8d; color: #021208; text-shadow: none; }
.pcplay .hackwrap .hw.pc-tried { opacity: 0.45; text-decoration: line-through; position: relative; }
.pcplay .hackwrap .hw.pc-tried::after { content: attr(data-like); position: absolute; left: 50%; top: -0.75em; transform: translateX(-50%); font-size: 0.65em; text-decoration: none; background: #021208; padding: 0 0.2em; }
.pc-hack-log { display: flex; flex-wrap: wrap; gap: 0.3rem; align-items: center; justify-content: flex-end; }
.pc-hack-log span { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.85rem; padding: 0.05rem 0.4rem; border-radius: 4px; background: #e2e8f0; }
.pc-hack-log span.ok { background: #16a34a; color: #fff; }
.pc-hack-log .pc-tries { background: none; }
.pcplay .dip.pc-dip .dsw { cursor: pointer; }
.pcplay .dip.pc-dip .dsw:hover::before { box-shadow: inset 0 0 0 0.25rem #fde047; }
.pc-bits { font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 800; font-size: 1.5rem; letter-spacing: 0.1em; }
.pcplay .kbd.pc-kbd .kk { cursor: pointer; }
.pcplay .kbd.pc-kbd .kk:hover { filter: brightness(1.1); transform: translateY(-2px); }
.pcplay .kbd.pc-kbd .kk.on:hover { transform: translateY(0.15rem); }
.pc-chord { flex: 1; display: flex; align-items: center; min-height: 2.6rem; font-size: 1.1rem; }
.pc-hex { align-items: stretch; }
.pc-hexprev { width: 8rem; flex: none; align-self: stretch; min-height: 7.5rem; border: var(--outline); border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.pc-hexprev b .hexcode, .pc-hexprev b .hexcode b { color: #fff; font-size: 1.1rem; }
.pc-hexprev.light b .hexcode, .pc-hexprev.light b .hexcode b { color: #111; }
.pc-sv.svbox { width: 14rem; height: auto; min-height: 7.5rem; flex: none; }
.pc-hexsl { flex: 1; display: flex; flex-direction: column; gap: 0.35rem; justify-content: center; }
.pc-hexsl .huerange, .pc-hexsl .rgbrow input { height: 1.2rem; border-width: 2px; }
.pc-hexsl .rgbrow { gap: 0.5rem; font-size: 0.95rem; }
.pc-hexsl .rgbrow code { font-size: 0.95rem; }
.pc-hex .pc-send { align-self: center; }
.pcplay .dbmain .edbody .eline.pick.pc-item { cursor: pointer; }
.pcplay .dbmain .edbody.pc-open .eline.pick:hover { background: rgba(56, 139, 253, 0.3); }
.pcplay .dbmain .edbody .eline.pc-mine { background: rgba(250, 204, 21, 0.28); box-shadow: inset 5px 0 0 #facc15; }
.pcplay .dbmain .edbody.pc-locked .eline:not(.pc-mine) { filter: none; }

/* ------------------------------------------------------------ Kultbildschirme, Teil 2 */
.crs-term .in p.tl { color: #4f7cff; }
.crs-term.v-pre .in p, .crs-term.v-vim .in p { white-space: pre; }
.crs-term.v-pre .in { font-family: 'JetBrains Mono', monospace; font-size: 2.7cqw; line-height: 1.2; color: #e5e5e5; }
.crs-term.v-vim { padding: 2cqw 3cqw; }
.crs-term.v-vim .in { flex: 1; display: flex; flex-direction: column; font-family: 'JetBrains Mono', monospace; font-size: 3cqw; color: #e5e5e5; }
.crs-term.v-vim .in p:last-child { margin-top: auto; font-weight: 700; }
.crs-teletext { background: #000; padding: 3cqw 4cqw; }
.crs-teletext .tt { flex: 1; font-family: 'VT323', monospace; font-size: 4.6cqw; line-height: 1.05; color: #fff; letter-spacing: 0.04em; }
.crs-teletext .hd { display: flex; justify-content: space-between; color: #fff; }
.crs-teletext .hd b { color: #ffff00; font-weight: 400; }
.crs-teletext .hd span:nth-child(2) { color: #00ffff; }
.crs-teletext .blocks { display: flex; gap: 0; margin: 1.6cqw 0 1cqw; height: 3cqw; }
.crs-teletext .blocks i { flex: 1; background: #0000ff; }
.crs-teletext .blocks i:nth-child(2n) { background: #ff0000; }
.crs-teletext .blocks i:nth-child(3n) { background: #00ff00; }
.crs-teletext .big { color: #ffff00; font-size: 9cqw; line-height: 1; margin: 1.2cqw 0 2cqw; transform: scaleY(1.25); transform-origin: top left; }
.crs-teletext p.tt-c { color: #00ffff; }
.crs-teletext p.tt-y { color: #ffff00; }
.crs-teletext p.tt-g { color: #00ff00; }
.crs-teletext p.tt-w { color: #fff; }
.crs-testbild { background: #6d6d6d; align-items: center; justify-content: center; }
.crs-testbild .grid { position: absolute; inset: 0; background-image: linear-gradient(#fff 0.35cqw, transparent 0.35cqw), linear-gradient(90deg, #fff 0.35cqw, transparent 0.35cqw); background-size: 8.3cqw 8.3cqw; background-position: -0.2cqw -0.2cqw; opacity: 0.9; }
.crs-testbild .circle { position: relative; width: 58cqw; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 0.6cqw solid #fff; background: #222; display: flex; flex-direction: column; }
.crs-testbild .bars { flex: 1.6; display: flex; }
.crs-testbild .bars i { flex: 1; }
.crs-testbild .gray { flex: 1; display: flex; }
.crs-testbild .gray i { flex: 1; }
.crs-testbild .gray i:nth-child(1) { background: #000; }
.crs-testbild .gray i:nth-child(2) { background: #444; }
.crs-testbild .gray i:nth-child(3) { background: #888; }
.crs-testbild .gray i:nth-child(4) { background: #bbb; }
.crs-testbild .gray i:nth-child(5) { background: #fff; }
.crs-testbild .lbl { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); background: #000; color: #fff; font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 3.6cqw; padding: 0.6cqw 2cqw; }
.crs-captcha { background: #f3f4f6; align-items: center; justify-content: center; font-family: Roboto, system-ui, sans-serif; color: #222; }
.crs-captcha .box { width: 56%; background: #fff; border: 0.3cqw solid #d3d3d3; box-shadow: 0 0.6cqw 2cqw rgba(0, 0, 0, 0.2); padding: 1.2cqw; }
.crs-captcha .hd { background: #1a73e8; color: #fff; padding: 1.6cqw 2cqw; font-size: 2.4cqw; line-height: 1.3; }
.crs-captcha .hd b { display: block; font-size: 4.2cqw; }
.crs-captcha .g { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6cqw; margin: 1.2cqw 0; }
.crs-captcha .g i { aspect-ratio: 1; background: linear-gradient(160deg, #b8c4d0, #8a96a3); display: grid; place-items: center; font-style: normal; font-size: 5cqw; }
.crs-captcha .ft { display: flex; align-items: center; gap: 1.6cqw; font-size: 2.8cqw; border-top: 0.2cqw solid #e5e5e5; padding-top: 1.2cqw; }
.crs-captcha .cb { width: 3.6cqw; height: 3.6cqw; border: 0.35cqw solid #c1c1c1; border-radius: 0.4cqw; background: #fff; }
.crs-captcha .sp { margin-left: auto; font-size: 3.4cqw; }
.crs-hal { background: radial-gradient(circle at 50% 35%, #1a1a1a, #000 70%); flex-direction: column; align-items: center; justify-content: center; gap: 3cqw; }
.crs-hal .panel { width: 26cqw; padding: 3cqw 0 2cqw; background: linear-gradient(#3a3a3a, #1c1c1c); border: 0.5cqw solid #8a8a8a; border-radius: 1cqw; display: flex; flex-direction: column; align-items: center; gap: 2cqw; }
.crs-hal .eye { width: 16cqw; aspect-ratio: 1; border-radius: 50%; border: 0.9cqw solid #9a9a9a; background: radial-gradient(circle, #fff6a0 0 6%, #ffcc33 9%, #ff2a00 24%, #a00000 48%, #2a0000 75%); box-shadow: 0 0 5cqw rgba(255, 30, 0, 0.6); animation: halPulse 3s ease-in-out infinite; }
@keyframes halPulse { 50% { box-shadow: 0 0 8cqw rgba(255, 30, 0, 0.85); } }
.crs-hal .lbl { font-family: 'JetBrains Mono', monospace; font-weight: 800; font-size: 2.4cqw; letter-spacing: 0.2em; color: #e5e5e5; background: #0a1a5a; padding: 0.4cqw 1.4cqw; }
.crs-hal .lbl:empty { display: none; }
.crs-hal .txt { color: #ff6a50; font-family: 'JetBrains Mono', monospace; font-size: 3.2cqw; text-align: center; max-width: 80%; }
.crs-matrix { background: #000; align-items: center; justify-content: flex-start; }
.crs-matrix .rain { position: absolute; inset: 0; overflow: hidden; }
.crs-matrix .rain i { position: absolute; top: -60%; font-style: normal; font-family: 'JetBrains Mono', monospace; font-size: 3.2cqw; line-height: 1.1; color: #00ff41; opacity: 0.55; text-shadow: 0 0 1cqw #00ff41; animation: matrixFall 4.5s linear infinite; }
@keyframes matrixFall { to { transform: translateY(170%); } }
.crs-matrix .in { position: relative; margin-left: 8cqw; background: rgba(0, 0, 0, 0.85); padding: 2cqw 3cqw; color: #00ff41; font-family: 'JetBrains Mono', monospace; font-size: 4cqw; line-height: 1.5; text-shadow: 0 0 1cqw #00ff41; }
.crs-excel { background: #fff; flex-direction: column; font-family: Calibri, 'Segoe UI', system-ui, sans-serif; color: #111; }
.crs-excel .fx { display: flex; align-items: center; gap: 2cqw; padding: 1.4cqw 2cqw; border-bottom: 0.3cqw solid #d4d4d4; background: #f6f6f6; font-size: 3cqw; }
.crs-excel .fx span { width: 10cqw; border: 0.2cqw solid #c8c8c8; background: #fff; padding: 0.2cqw 1cqw; }
.crs-excel .fx i { color: #777; font-style: italic; }
.crs-excel .fx b { font-weight: 400; font-family: 'JetBrains Mono', monospace; font-size: 2.8cqw; }
.crs-excel table { border-collapse: collapse; width: 100%; table-layout: fixed; font-size: 3.4cqw; }
.crs-excel th { background: #ececec; color: #555; font-weight: 400; border: 0.15cqw solid #d4d4d4; height: 6.4cqw; }
.crs-excel tr th:first-child { width: 7cqw; }
.crs-excel td { border: 0.15cqw solid #e1e1e1; height: 6.4cqw; padding: 0 1cqw; white-space: nowrap; overflow: hidden; }
.crs-excel td.num { text-align: right; }
.crs-excel td.sel { outline: 0.6cqw solid #107c41; outline-offset: -0.3cqw; }
.crs-chat { background: #efe7dd; flex-direction: column; font-family: system-ui, sans-serif; }
.crs-chat .hd { display: flex; align-items: center; gap: 2cqw; background: #075e54; color: #fff; padding: 2cqw 3cqw; font-size: 3.4cqw; }
.crs-chat .hd .av { width: 6cqw; height: 6cqw; border-radius: 50%; background: #ccc; color: #075e54; display: grid; place-items: center; font-weight: 700; }
.crs-chat .hd small { margin-left: auto; font-size: 2.4cqw; opacity: 0.8; }
.crs-chat .msgs { display: flex; flex-direction: column; gap: 1.6cqw; padding: 3cqw 4cqw; }
.crs-chat .m { max-width: 70%; padding: 1.4cqw 2cqw 0.8cqw; border-radius: 1.6cqw; font-size: 3.4cqw; line-height: 1.3; box-shadow: 0 0.3cqw 0 rgba(0, 0, 0, 0.1); color: #111; }
.crs-chat .m small { display: block; text-align: right; font-size: 2.2cqw; color: #777; }
.crs-chat .m.you { align-self: flex-start; background: #fff; }
.crs-chat .m.me { align-self: flex-end; background: #dcf8c6; }
.crs-chat .m b { font-weight: 700; letter-spacing: -0.3em; padding-right: 0.3em; }
.crs-chat .m b.blue { color: #34b7f1; }
.crs-chat .m b.gray { color: #999; }
.crs-search { background: #fff; flex-direction: column; padding: 6cqw 8cqw; font-family: Arial, system-ui, sans-serif; color: #202124; }
.crs-search .bar { display: flex; align-items: center; justify-content: space-between; border: 0.3cqw solid #dfe1e5; border-radius: 6cqw; padding: 1.6cqw 3cqw; font-size: 3.6cqw; box-shadow: 0 0.3cqw 1cqw rgba(32, 33, 36, 0.18); }
.crs-search .dym { margin: 3.4cqw 0 2cqw 1cqw; font-size: 3.6cqw; color: #d93025; }
.crs-search .dym i { color: #1a0dab; font-weight: 700; font-style: italic; }
.crs-search .res { display: flex; flex-direction: column; gap: 1.8cqw; margin-left: 1cqw; }
.crs-search .res i { height: 1.8cqw; border-radius: 1cqw; background: #e8eaed; }
.crs-search .res i.l { background: #c6d4f7; height: 2.6cqw; margin-top: 1.4cqw; }
.crs-aww { background: #f1f3f4; padding: 9cqw 12cqw; font-family: system-ui, sans-serif; color: #202124; }
.crs-aww .in { display: flex; flex-direction: column; gap: 1.6cqw; align-items: flex-start; }
.awwsvg { width: 10cqw; margin-bottom: 1.6cqw; }
.crs-aww h1 { font-family: system-ui, sans-serif; font-size: 4.6cqw; font-weight: 500; color: #202124; letter-spacing: 0; }
.crs-aww p { font-size: 2.8cqw; color: #5f6368; }
.crs-aww p.code { font-size: 2.1cqw; margin-top: 1cqw; }
.crs-aww .btn2 { margin-top: 2.4cqw; background: #1a73e8; color: #fff; font-size: 2.6cqw; padding: 1cqw 2.8cqw; border-radius: 0.6cqw; }
.crs-xpboot { background: #000; flex-direction: column; align-items: center; justify-content: center; }
.crs-xpboot .pb { width: 22cqw; height: 2.4cqw; border: 0.35cqw solid #b2b2b2; border-radius: 0.8cqw; padding: 0.35cqw; position: relative; overflow: hidden; margin-top: 18cqw; }
.crs-xpboot .pb i { position: absolute; top: 0.35cqw; width: 1.5cqw; height: 1.7cqw; border-radius: 0.2cqw; background: linear-gradient(#a8c8ff, #2f62e8 50%, #1a3fb0); animation: xpRun 2.2s linear infinite; }
.crs-xpboot .pb i:nth-child(2) { animation-delay: 0.14s; }
.crs-xpboot .pb i:nth-child(3) { animation-delay: 0.28s; }
@keyframes xpRun { from { left: -6cqw; } to { left: 24cqw; } }
.crs-xpboot .cr { position: absolute; left: 3cqw; bottom: 3cqw; font-family: Arial, sans-serif; font-size: 2.2cqw; color: #fff; }
.crs-happymac { background: #a8a8a8; align-items: center; justify-content: center; }
.happysvg { width: 16cqw; }
.crs-ios { background: radial-gradient(ellipse at 30% 20%, #3b4c7a, #121826 70%); align-items: center; justify-content: center; font-family: -apple-system, 'Helvetica Neue', system-ui, sans-serif; color: #fff; }
.crs-ios .ph { width: 38cqw; height: 92%; border: 0.9cqw solid #111; border-radius: 5cqw; background: inherit; display: flex; flex-direction: column; align-items: center; padding-top: 6cqw; gap: 1.2cqw; text-align: center; box-shadow: 0 0 0 0.4cqw #555; }
.crs-ios .time { font-size: 13cqw; font-weight: 300; line-height: 1; letter-spacing: -0.02em; }
.crs-ios .date { font-size: 2.6cqw; opacity: 0.9; margin-bottom: 4cqw; }
.crs-ios p { font-size: 3cqw; max-width: 90%; }
.crs-ios p:first-of-type { font-weight: 600; font-size: 3.4cqw; }
.crs-ios .em { margin-top: auto; margin-bottom: 4cqw; font-size: 2.6cqw; opacity: 0.85; }
.crs-dialog.v-modern { background: linear-gradient(135deg, #0a2a6b, #1c62c4 60%, #4aa3ff); }
.crs-dialog.v-modern .win { border: 0.2cqw solid #c8c8c8; border-radius: 1.4cqw; background: #fff; box-shadow: 0 2cqw 5cqw rgba(0, 0, 0, 0.4); font-family: 'Segoe UI', system-ui, sans-serif; }
.crs-dialog.v-modern .tb { background: #fff; color: #222; font-weight: 400; font-size: 2.6cqw; }
.crs-dialog.v-modern .tb b { background: none; border: 0; color: #444; }
.crs-dialog.v-modern .body { background: #fff; }
.crs-dialog.v-modern .btns { background: #f3f3f3; justify-content: flex-end; padding: 2cqw 3cqw; border-top: 0.2cqw solid #e5e5e5; }
.crs-dialog.v-modern .btns span { background: #fff; border: 0.2cqw solid #c8c8c8; border-radius: 0.6cqw; }
.crs-dialog.v-modern .btns span:first-child { background: #0067c0; color: #fff; border-color: #0067c0; }

/* Lobby: Spielplan im Terminal-Look */
body[data-mode="tech"] :is(.lobby, .votescreen) { --lacc: var(--term); --lacc-ink: #052e16; --lpanel: rgba(5, 10, 18, 0.72); --lline: rgba(74, 222, 128, 0.28); }

/* Niedrige Fenster: Liste „Wer ist drin?“ dichter, damit alle Zeilen sichtbar bleiben */
@media (max-height: 800px) {
  .hplist { gap: 0.2rem; }
  .hp { font-size: 0.95rem; }
  .hp .avatar { --size: 1.8rem !important; }
}

/* ================================================================ Finale „Root-Zugang“ (tech-host.js root, tech-play.js root, pc-tech.js root)
   Bühne: links das Terminal mit einer Zeile je Spieler*in (sechs Firewalls als Balken), rechts das Live-Log.
   Alles bemisst sich am freien Platz (--vq, Container-Einheiten der Zeilenfläche) – auch bei 15 Leuten und 1280×600. */
.rootwrap { position: relative; flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: min(1.2rem, calc(1.6 * var(--vq))); }
.rt-term, .rt-log {
  position: relative; display: flex; flex-direction: column; min-height: 0; overflow: hidden;
  padding: min(0.9rem, calc(1.3 * var(--vq))) min(1.2rem, calc(1.7 * var(--vq)));
  color: #5dfc8d; font-family: 'JetBrains Mono', ui-monospace, monospace;
  background: radial-gradient(ellipse at center, #062b12 0%, #021208 70%, #010904 100%);
  border: min(0.6rem, calc(0.9 * var(--vq))) solid #1c1f24; border-radius: min(1.2rem, calc(1.8 * var(--vq)));
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.85), 0 0 0 3px #000, var(--shadow), 0 0 40px rgba(74, 222, 128, 0.16);
}
.rt-term::after, .rt-log::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0 2px, transparent 2px 4px); }
.rt-top { flex: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; text-shadow: 0 0 6px rgba(93, 252, 141, 0.7); }
.rt-prompt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: clamp(0.8rem, calc(2.2 * var(--vq)), 1.5rem); }
.rt-prompt .ecur { background: #5dfc8d; }
.rt-clock { flex: none; font-family: 'VT323', 'JetBrains Mono', monospace; font-size: clamp(1.5rem, calc(5 * var(--vq)), 3.6rem); line-height: 1; color: #f0fff4; text-shadow: 0 0 10px rgba(201, 255, 217, 0.8); font-variant-numeric: tabular-nums; }
.rt-clock.urgent { color: #ff6b6b; text-shadow: 0 0 12px rgba(255, 80, 80, 0.9); animation: rtBlink 1s steps(2) infinite; }
.rt-legend { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0.15em 0.45em; margin: 0.35em 0 0.55em; font-size: clamp(0.65rem, calc(1.55 * var(--vq)), 1.05rem); opacity: 0.85; }
.rt-legend span { white-space: nowrap; }
.rt-legend b { display: inline-block; min-width: 1.3em; margin-right: 0.3em; padding: 0 0.2em; text-align: center; color: #021208; background: #5dfc8d; border-radius: 0.2em; }
.rt-legend i { font-style: normal; opacity: 0.5; }
/* Zeilenfläche: misst sich selbst (Container), die Zeilen teilen die Höhe – ab 9 Leuten zweispaltig */
.rt-rowbox { flex: 1; min-height: 0; container-type: size; }
.rt-rows { --cols: 1; height: 100%; display: grid; grid-auto-flow: column; grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(var(--rows, 1), auto); align-content: start; column-gap: 1.4em; }
.rt-rows.two { --cols: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rt-rows.three { --cols: 3; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rt-row {
  --rh: min(4.4rem, calc(100cqh / var(--rows, 1)));
  height: var(--rh); min-width: 0; display: flex; align-items: center; gap: 0.5em; padding: 0 0.35em; border-radius: 0.3em;
  font-size: min(1.45rem, calc(var(--rh) * 0.42), calc(100cqw / var(--cols) / 25));
  transition: background 0.3s;
}
.rt-row .avatar { --size: 1.75em !important; flex: none; }
.rt-nm { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #f0fff4; font-weight: 700; }
.rt-bar { flex: none; display: flex; gap: 0.2em; }
.rt-seg { width: 2.07em; height: 1.6em; display: grid; place-items: center; font-style: normal; font-size: 0.75em; line-height: 1; border: 1px solid rgba(93, 252, 141, 0.4); border-radius: 0.27em; background: rgba(93, 252, 141, 0.06); filter: grayscale(1); opacity: 0.45; transition: background 0.3s, box-shadow 0.3s; }
.rt-seg.on { background: #16a34a; border-color: #5dfc8d; box-shadow: 0 0 0.5em rgba(93, 252, 141, 0.6); filter: none; opacity: 1; animation: rtSeg 0.45s var(--ease-back); }
.rt-seg.cur { border-color: #facc15; opacity: 1; animation: rtCur 1.1s ease-in-out infinite; }
.rt-st { flex: none; width: 5.2em; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rt-st b { padding: 0 0.3em; border-radius: 0.2em; }
.rt-row.exploit .rt-st { color: #facc15; }
.rt-row.locked { background: rgba(239, 68, 68, 0.2); animation: rtShake 0.4s; }
.rt-row.locked .rt-st b { color: #fff; background: #dc2626; animation: rtBlink 0.6s steps(2) infinite; }
.rt-row.done { background: rgba(250, 204, 21, 0.1); }
.rt-row.done .rt-st b { color: #1a1300; background: #facc15; }
.rt-row.first { background: rgba(250, 204, 21, 0.22); box-shadow: inset 0 0 0 2px rgba(250, 204, 21, 0.6); }
.rootwrap.booting .rt-rows { opacity: 0.5; }
.rootwrap.over .rt-row:not(.done) .rt-st b { color: #f0fff4; }
/* Live-Log: neue Zeilen unten, alte laufen oben heraus */
.rt-loghead { flex: none; margin-bottom: 0.5em; opacity: 0.7; font-size: clamp(0.7rem, calc(1.6 * var(--vq)), 1.05rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt-lines { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 0.15em; font-size: clamp(0.68rem, calc(1.6 * var(--vq)), 1.1rem); line-height: 1.25; }
.rt-line { flex: none; overflow-wrap: anywhere; animation: rtLine 0.3s ease-out both; }
.rt-line .ts { opacity: 0.5; }
.rt-line .who { color: #f0fff4; }
.rt-line.denied { color: #ff6b6b; }
.rt-line.exploit { color: #facc15; }
.rt-line.root { color: #1a1300; background: #facc15; padding: 0 0.25em; border-radius: 0.15em; }
.rt-line.root .who, .rt-line.root .ts { color: inherit; }
.rt-line.go { color: #22d3ee; }
.rt-line.end { color: #f0fff4; margin-top: 0.3em; }
.rt-line.boot { opacity: 0; animation: bootLine 0.01s forwards; }
/* ROOT ACCESS GRANTED: Aufblitzen über der ganzen Bühne */
.rt-flash { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; pointer-events: none; background: radial-gradient(ellipse at center, rgba(2, 18, 8, 0.88), rgba(2, 18, 8, 0.45) 70%, transparent); animation: rtFlash 2.6s both; }
.rt-fl-in { display: flex; flex-direction: column; align-items: center; gap: 0.35em; max-width: 96%; padding: 0.4em 0.9em 0.5em; color: #5dfc8d; background: #021208; border: 0.18em solid #5dfc8d; border-radius: 0.3em; box-shadow: 0 0 2.4em rgba(93, 252, 141, 0.7); font-family: 'VT323', 'JetBrains Mono', monospace; text-align: center; }
.rt-fl-in b { font-size: clamp(2rem, calc(9.5 * var(--vq)), 7rem); line-height: 0.95; letter-spacing: 0.03em; font-weight: 400; text-shadow: 0 0 0.3em rgba(93, 252, 141, 0.9); }
.rt-fl-in span { display: flex; align-items: center; gap: 0.4em; font-size: clamp(1.1rem, calc(3.4 * var(--vq)), 2.4rem); color: #f0fff4; }
.rt-fl-in .avatar { --size: 1.6em !important; }
.rt-flash.first .rt-fl-in { color: #facc15; border-color: #facc15; box-shadow: 0 0 3em rgba(250, 204, 21, 0.75); }
.rt-flash.first .rt-fl-in b { text-shadow: 0 0 0.3em rgba(250, 204, 21, 0.9); }
@keyframes rtFlash { 0% { opacity: 0; transform: scale(1.25); } 7% { opacity: 1; transform: none; } 11% { opacity: 0.35; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes rtBlink { 50% { opacity: 0.25; } }
@keyframes rtCur { 50% { box-shadow: 0 0 0.6em rgba(250, 204, 21, 0.75); } }
@keyframes rtSeg { 0% { transform: scale(1.5); } 100% { transform: none; } }
@keyframes rtShake { 20%, 60% { transform: translateX(-0.25em); } 40%, 80% { transform: translateX(0.25em); } }
@keyframes rtLine { from { opacity: 0; transform: translateX(-0.6em); } to { opacity: 1; transform: none; } }
/* Niedrige Fenster (PC mit Antwortleiste): Legende weg, damit die Zeilen Platz haben */
@media (max-height: 720px) {
  .rt-legend { display: none; }
  .rt-top { margin-bottom: 0.3em; }
}
/* Wenig Platz auf der Bühne (tech-host.js setzt .tight): nur das Terminal */
.rootwrap.tight { grid-template-columns: minmax(0, 1fr); }
.rootwrap.tight .rt-log { display: none; }
/* Schmale Fenster: Log unter das Terminal */
@media (max-width: 900px) {
  .rootwrap { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(4.5rem, 22%); }
}

/* ------------------------------------------------------------ Root-Zugang am Handy */
.rootv { position: relative; gap: 10px; }
.rtp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 800; font-size: 15px; }
.rtp-head .rtp-lay { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--term, #4ade80); }
.rtp-head .rtp-pos { flex: none; opacity: 0.85; }
.rtp-bar { display: flex; gap: 5px; }
.rtp-bar i { flex: 1; height: 30px; display: grid; place-items: center; font-style: normal; font-size: 16px; border: 2px solid rgba(93, 252, 141, 0.45); border-radius: 6px; background: rgba(2, 18, 8, 0.7); filter: grayscale(1); opacity: 0.55; }
.rtp-bar i.on { background: #16a34a; border-color: #5dfc8d; filter: none; opacity: 1; box-shadow: 0 0 10px rgba(93, 252, 141, 0.55); }
.rtp-bar i.cur { border-color: #facc15; opacity: 1; filter: none; animation: rtCur 1.1s ease-in-out infinite; }
.rtp-bar.sm { width: 100%; max-width: 220px; }
.rtp-bar.sm i { height: 12px; }
.rtp-main { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 12px; }
.rtp-q { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 14px 16px; animation: popIn 0.3s var(--ease-back) both; }
.rtp-q small { font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 800; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.7; }
.rtp-q b { font-size: 21px; line-height: 1.25; }
.rtp-q.num b { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 40px; letter-spacing: 0.08em; }
.rootv .abtns { min-height: 200px; }
.rootv .abtns.tf { grid-template-columns: 1fr 1fr; min-height: 150px; }
.rtp-denied, .rtp-done, .rtp-wait { flex: 1; min-height: 220px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; text-align: center; padding: 18px; font-family: 'JetBrains Mono', ui-monospace, monospace; border-radius: 12px; }
.rtp-denied { color: #fff; background: repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0 2px, transparent 2px 4px), #7f1d1d; border: 3px solid #ef4444; box-shadow: 0 0 24px rgba(239, 68, 68, 0.6); animation: shake 0.45s; }
.rtp-denied b { font-size: 32px; letter-spacing: 0.04em; animation: rtBlink 0.7s steps(2) 3; }
.rtp-denied small { font-size: 16px; font-weight: 700; }
.rtp-lockbar { width: 80%; height: 10px; border-radius: 99px; background: rgba(0, 0, 0, 0.4); overflow: hidden; }
.rtp-lockbar i { display: block; height: 100%; background: #fca5a5; transform-origin: left; }
.rtp-done { color: #5dfc8d; background: radial-gradient(ellipse at center, #062b12, #021208 75%); border: 3px solid #5dfc8d; box-shadow: 0 0 28px rgba(93, 252, 141, 0.55); animation: popIn 0.4s var(--ease-back) both; }
.rtp-done b { font-size: 30px; line-height: 1.1; text-shadow: 0 0 10px rgba(93, 252, 141, 0.8); }
.rtp-done span { font-size: 22px; font-weight: 800; color: #facc15; }
.rtp-done small { font-size: 14px; opacity: 0.8; }
.rtp-wait { color: #5dfc8d; background: #021208; }
.rtp-xp { align-self: stretch; }
.rtp-flash { position: fixed; left: 50%; top: 45%; z-index: 50; transform: translate(-50%, -50%); pointer-events: none; padding: 10px 20px; border-radius: 10px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 800; font-size: 26px; white-space: nowrap; animation: rtPop 0.9s ease-out both; }
.rtp-flash.ok { color: #021208; background: #5dfc8d; box-shadow: 0 0 30px rgba(93, 252, 141, 0.8); }
.rtp-flash.xp { color: #1a1300; background: #facc15; box-shadow: 0 0 30px rgba(250, 204, 21, 0.8); }
@keyframes rtPop { 0% { opacity: 0; transform: translate(-50%, -50%) scale(0.6); } 20% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } 75% { opacity: 1; transform: translate(-50%, -50%); } 100% { opacity: 0; transform: translate(-50%, -60%); } }
.rootres { gap: 8px; font-weight: 700; }

/* ------------------------------------------------------------ Root-Zugang am PC (Antwortleiste) */
.pc-root-top { min-height: 2rem; }
.pc-root-lay { flex: none; padding: 0.15rem 0.6rem; border-radius: 6px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 800; font-size: 0.95rem; color: #021208; background: #5dfc8d; white-space: nowrap; }
.pc-root-q { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 0.6rem; }
.pc-root-q small { flex: none; font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 800; font-size: 0.85rem; text-transform: uppercase; opacity: 0.65; }
.pc-root-q b { min-width: 0; font-size: 1.25rem; line-height: 1.2; }
.pc-root-q b.num { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 1.7rem; letter-spacing: 0.06em; }
.pc-root-xp { flex: none; }
.pc-root-opts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; }
.pc-root-opts.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pc-answer .pc-root-opt { display: flex; align-items: center; gap: 0.5rem; justify-content: flex-start; min-width: 0; padding: 0.45em 0.7em; font-size: 1.05rem; white-space: normal; text-align: left; line-height: 1.15; background: #fff; color: var(--ink); }
.pc-root-opt span { min-width: 0; overflow-wrap: anywhere; }
.pc-root-opt:hover { background: #dcfce7; }
.pc-root-opt.sel { background: #5dfc8d; }
.pc-root-denied { display: flex; align-items: center; justify-content: center; gap: 0.9rem; min-height: 2.6rem; font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 700; }
.pc-root-denied b { color: #dc2626; font-size: 1.4rem; letter-spacing: 0.04em; animation: rtBlink 0.7s steps(2) 3; }
.pc-root-denied.wait { color: var(--ink-soft); }
.pc-answer.pc-root-locked { box-shadow: 0 0 0 3px #ef4444, var(--shadow); }

/* ------------------------------------------------ Rundenintro: Requisit (intro-props.js) */
/* IT & Technik: Terminalfenster */
.rp-term { width: 50em; height: 46em; transform: rotate(-2deg); }
.rp-term .body { position: absolute; inset: 0; background: #0a1322; border: 0.45em solid #2dd4bf; border-radius: 1.6em; box-shadow: 0 1.3em 0 rgba(0, 0, 0, 0.5), 0 0 3em rgba(45, 212, 191, 0.35); overflow: hidden; font-family: var(--font-mono, var(--font-head)); color: #c8f7ee; }
.rp-term .bar { display: flex; align-items: center; gap: 0.9em; padding: 1em 1.4em; background: #13243b; }
.rp-term .bar i { width: 1.6em; height: 1.6em; border-radius: 50%; background: #f87171; }
.rp-term .bar i:nth-child(2) { background: #fbbf24; } .rp-term .bar i:nth-child(3) { background: #34d399; }
.rp-term .bar span { margin-left: 1em; font-size: 2.3em; opacity: 0.7; }
.rp-term .log { padding: 1.4em 2em 0; }
.rp-term .log p { margin: 0 0 0.35em; font-size: 2.5em; white-space: nowrap; animation: fadeIn 0.2s both; }
.rp-term .log b { color: #34d399; }
.rp-term .big { position: absolute; left: 2em; bottom: 1.4em; font-size: 4em; letter-spacing: 0.1em; color: #2dd4bf; }
.rp-term .big b { display: block; font-size: 3.4em; line-height: 0.95; color: #fff; letter-spacing: -0.04em; text-shadow: 0 0 0.3em rgba(45, 212, 191, 0.7); }
.rp-term .big b::after { content: '_'; color: #2dd4bf; animation: rpBlink 1s steps(1) infinite; }
.rp-term .rp-ic { right: -4em; bottom: -4em; transform: rotate(10deg); }

