/* ===== Spielbereich: eigenständig dunkel mit Glow, unabhängig vom Theme ===== */
body.spielmodus {
  --g-bg: #0B0B1A;
  --g-card: rgba(255, 255, 255, .045);
  --g-card-2: rgba(255, 255, 255, .08);
  --g-line: rgba(255, 255, 255, .09);
  --g-text: #EEEFFF;
  --g-faint: #A4A7C8;
  --text: var(--g-text); --text-2: #C7C9E4; --text-3: #A4A7C8;
  --surface: #16172E; --surface-2: #1B1C36; --surface-3: #25274A;
  --line: rgba(255,255,255,.08); --line-strong: rgba(255,255,255,.16);
  --accent: #B3AEFF; --accent-soft: rgba(124,116,255,.18);
  --success: #4FD6BF; --success-soft: rgba(79,214,191,.14);
  --danger: #FF8FA3; --danger-soft: rgba(255,143,163,.14);
  --streak: #FFA866; --streak-soft: rgba(255,168,102,.14);
  background:
    radial-gradient(700px 420px at 12% -6%, rgba(99, 88, 255, .30), transparent 60%),
    radial-gradient(620px 420px at 100% 12%, rgba(15, 158, 142, .22), transparent 60%),
    radial-gradient(560px 380px at 50% 110%, rgba(124, 58, 237, .22), transparent 60%),
    var(--g-bg);
  background-attachment: fixed;
  color: var(--g-text);
  color-scheme: dark;
}
body.spielmodus .tabbar { background: #17182F; box-shadow: 0 12px 32px -8px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.07); }
body.spielmodus .tab { color: #9EA1C4; }
.g-faint { color: var(--g-faint); }
.g-card { background: var(--g-card); border: 1px solid var(--g-line); border-radius: var(--r-lg); padding: 20px; position: relative; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.g-card h3 { margin-bottom: 4px; }
.g-hero { display: flex; gap: 18px; align-items: center; background: linear-gradient(135deg, rgba(79,70,229,.32), rgba(124,58,237,.18) 55%, rgba(15,158,142,.20)); border-color: rgba(167, 160, 255, .22); box-shadow: 0 20px 50px -24px rgba(110, 90, 255, .6); }
.g-level { width: 76px; height: 76px; flex: none; border-radius: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--grad); color: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.06), 0 10px 30px -8px rgba(124,58,237,.8); }
.g-level b { font-size: 30px; font-weight: 800; line-height: 1; letter-spacing: -0.04em; }
.g-level .tiny { opacity: .85; font-weight: 650; }
.g-bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.g-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #6D63FF, #A06BFF 55%, #2CC2AE); box-shadow: 0 0 14px rgba(140, 120, 255, .7); transition: width 600ms var(--ease); }
.g-bar.boss i { background: linear-gradient(90deg, #FF6B8A, #FF9D57); box-shadow: 0 0 14px rgba(255, 107, 138, .6); }
.g-bar.zeit i { transition: width 200ms linear; }
.g-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 10px; border-radius: 99px; background: rgba(255,255,255,.07); color: #DADBF5; font-size: 12.5px; font-weight: 650; }
.g-chip svg { width: 14px; height: 14px; }
.g-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .g-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .g-grid { grid-template-columns: repeat(3, 1fr); } .g-tile.gross { grid-row: span 2; } }
.g-tile { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--g-text); text-align: left; font: inherit; cursor: pointer; transition: transform var(--t-fast) var(--ease), border-color var(--t-fast), background var(--t-fast); }
.g-tile:hover { transform: translateY(-2px); border-color: rgba(167, 160, 255, .4); background: var(--g-card-2); }
.g-tile:active { transform: scale(.985); }
.g-tile b { font-size: 17px; letter-spacing: -0.015em; margin-top: 6px; }
.g-tile.gross { background: linear-gradient(160deg, rgba(15,158,142,.22), rgba(79,70,229,.16)); }
.g-meta { margin-top: auto; padding-top: 10px; font-size: 12px; font-weight: 650; color: #BDB9FF; }
.g-ico { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex: none; background: rgba(140, 130, 255, .16); color: #C4C0FF; box-shadow: inset 0 0 0 1px rgba(167,160,255,.25); }
.g-ico svg { width: 21px; height: 21px; }
.g-ico.gross { width: 64px; height: 64px; border-radius: 20px; }
.g-ico.gross svg { width: 30px; height: 30px; }
.btn.g-btn-ghost { background: rgba(255,255,255,.07); color: var(--g-text); }
.btn.g-btn-ghost:hover { background: rgba(255,255,255,.12); }

/* Simulator */
.g-seg { background: rgba(255,255,255,.06); }
.g-seg button { color: var(--g-faint); }
.g-seg button[aria-pressed="true"] { background: rgba(140,130,255,.24); color: #fff; box-shadow: none; }
.g-regler { display: flex; flex-direction: column; gap: 8px; }
.g-range { width: 100%; accent-color: #8B82FF; height: 28px; }
.g-werte { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 560px) { .g-werte { grid-template-columns: repeat(3, 1fr); } }
.g-wert { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--g-line); }
.g-wert b { font-size: 22px; letter-spacing: -0.03em; }
.g-wert b small { font-size: 12px; color: var(--g-faint); font-weight: 600; margin-left: 2px; }
.g-wert.gut { border-color: rgba(79,214,191,.45); box-shadow: 0 0 18px -6px rgba(79,214,191,.5); }
.g-wert.schlecht { border-color: rgba(255,143,163,.4); }
.g-grafik .kreuz { max-width: 100%; }
.g-grenzen ul { margin: 8px 0 0; padding-left: 18px; }
.g-grenzen li + li { margin-top: 6px; }
.g-grenzen .row svg { width: 18px; height: 18px; color: #FFC27A; }

/* Boss */
.boss-hp { padding: 16px 18px; border-radius: var(--r-lg); background: rgba(255, 107, 138, .08); border: 1px solid rgba(255, 107, 138, .25); }
.boss-hp .g-bar { margin-top: 10px; height: 10px; }
.boss-hp.treffer { animation: hit 360ms var(--ease); }
@keyframes hit { 30% { transform: translateX(-4px); } 60% { transform: translateX(4px); } }
body.spielmodus .quiz-card, body.spielmodus .card { background: var(--g-card); border: 1px solid var(--g-line); box-shadow: none; }
body.spielmodus .option { background: rgba(255,255,255,.03); }

/* Blitz */
.blitz-uhr { font-size: 30px; letter-spacing: -0.03em; }
.blitz-text { font-size: 17px; line-height: 1.55; margin-top: 16px; }
.g-input { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: #fff; margin-top: 6px; font-size: 20px; }
.blitz-ok { animation: glow-ok 500ms var(--ease); }
.blitz-nok { animation: glow-nok 500ms var(--ease); }
@keyframes glow-ok { 0% { box-shadow: 0 0 0 0 rgba(79,214,191,.0); } 30% { box-shadow: 0 0 0 3px rgba(79,214,191,.6), 0 0 30px rgba(79,214,191,.4); } }
@keyframes glow-nok { 0% { box-shadow: none; } 30% { box-shadow: 0 0 0 3px rgba(255,143,163,.6); } }

/* Zuordnen */
.g-aussage { font-size: clamp(18px, 4.6vw, 22px); font-weight: 650; letter-spacing: -0.02em; line-height: 1.4; margin: 22px 0; min-height: 3em; }
.g-kategorien { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 560px) { .g-kategorien { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
.g-kat { min-height: 54px; padding: 10px 14px; border-radius: 16px; border: 1.5px solid rgba(167,160,255,.3); background: rgba(140,130,255,.10); color: #fff; font-weight: 700; font-size: 15px; transition: background var(--t-fast), transform var(--t-fast), border-color var(--t-fast); }
.g-kat:hover:not(:disabled) { background: rgba(140,130,255,.22); }
.g-kat:active:not(:disabled) { transform: scale(.97); }
.g-kat.correct { background: rgba(79,214,191,.22); border-color: #4FD6BF; }
.g-kat.wrong { background: rgba(255,143,163,.2); border-color: #FF8FA3; }
.g-kat:disabled:not(.correct):not(.wrong) { opacity: .45; }
.g-fehler { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.04); border-left: 3px solid #FF8FA3; font-size: 14px; }
.g-fehler b { color: #4FD6BF; }

/* Profil */
.badges { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 12px; }
@media (min-width: 640px) { .badges { grid-template-columns: repeat(4, 1fr); } }
.badge { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 16px 10px; border-radius: 16px; background: rgba(255,255,255,.03); border: 1px solid var(--g-line); opacity: .5; }
.badge .tiny { color: var(--g-faint); }
.badge-ico { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.06); color: var(--g-faint); }
.badge-ico svg { width: 22px; height: 22px; }
.badge.hat { opacity: 1; border-color: rgba(255, 194, 122, .35); background: rgba(255, 194, 122, .06); }
.badge.hat .badge-ico { background: linear-gradient(135deg, #FFB86B, #FF7EA8); color: #fff; box-shadow: 0 0 22px -4px rgba(255, 150, 120, .7); }
.g-modul-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
@media (min-width: 640px) { .g-modul-grid { grid-template-columns: repeat(6, 1fr); } }
.g-modul { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--g-faint); text-align: center; }
.g-modul .ring-label b { font-size: 14px; }
.g-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 12px; }
@media (min-width: 640px) { .g-stats { grid-template-columns: repeat(4, 1fr); } }
.g-stats div { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.04); }
.g-stats b { font-size: 24px; letter-spacing: -0.03em; }
.g-stats .tiny { color: var(--g-faint); }
