/* Edge Pokertraining – heller Lern-App-Look.
   Aktionsfarben tragen Bedeutung: Raise rot, Call blau, Fold grau. Grün = Marke und "richtig". */
:root {
  --bg: #f2f5f7;
  --surface: #ffffff;
  --surface-2: #f6f8fa;
  --ink: #17242e;
  --ink-2: #4b5b67;
  --ink-3: #8a98a4;
  --line: #e1e7ec;
  --line-2: #cdd6dd;

  --felt: #12a06b;
  --felt-dark: #0b7d52;
  --felt-light: #e2f6ec;
  --gold: #ffb320;
  --gold-dark: #d48c00;
  --gold-light: #fff3d9;
  --flame: #ff7a1a;
  --raise: #ee4a4a;
  --raise-dark: #c13535;
  --raise-light: #fde6e6;
  --call: #2d7ff9;
  --call-dark: #1c5fc8;
  --call-light: #e3eeff;
  --fold: #94a2ae;
  --fold-dark: #6e7d89;
  --fold-light: #edf1f4;
  --good: var(--felt);
  --bad: var(--raise);

  --suit-s: #17242e;
  --suit-h: #e0313b;
  --suit-d: #2266d8;
  --suit-c: #0e8f50;

  /* Systemschriften: nichts wird nachgeladen, auch nicht vom eigenen Server */
  --font-head: ui-rounded, 'SF Pro Rounded', 'Segoe UI Variable Display', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI Variable Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --r: 16px;
  --r-s: 10px;
  --col: 680px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--font-body); min-height: 100vh; -webkit-font-smoothing: antialiased; }
a { color: var(--call-dark); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--call); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; margin: 0 0 .45em; letter-spacing: -0.005em; }
h1 { font-size: clamp(1.8rem, 5vw, 2.3rem); }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.num { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }
svg.i { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.22em; }

/* ---------- Gerüst ---------- */
.shell { min-height: 100vh; }
.side-nav { display: none; }
.aside { display: none; }
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; background: rgba(242, 245, 247, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.topbar .brand { font-size: 1.25rem; }
.stat-chips { display: flex; gap: 14px; align-items: center; font-weight: 700; }
.stat-chip { display: inline-flex; gap: 5px; align-items: center; }
.stat-chip.flame { color: var(--flame); }
.stat-chip.flame.off { color: var(--ink-3); }
.stat-chip.xp { color: var(--gold-dark); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; }
.brand-chip { width: 34px; height: 34px; flex: none; }
.content { padding: 20px 16px 120px; }
.col { max-width: var(--col); margin: 0 auto; }
.col.wide { max-width: 1040px; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; justify-content: space-around;
  background: var(--surface); border-top: 2px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: 12px;
  color: var(--ink-3); text-decoration: none; font-size: .72rem; font-weight: 700; position: relative;
}
.tabbar a svg.i { width: 26px; height: 26px; }
.tabbar a.active { color: var(--felt); background: var(--felt-light); }
.dot { position: absolute; top: 2px; right: calc(50% - 22px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--raise); color: #fff; font-size: .7rem; line-height: 18px; text-align: center; }

@media (min-width: 900px) {
  .shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); }
  .topbar, .tabbar { display: none; }
  .side-nav {
    display: flex; flex-direction: column; gap: 22px; position: sticky; top: 0; height: 100vh;
    padding: 26px 16px; border-right: 2px solid var(--line); background: var(--surface);
  }
  .side-nav nav { display: flex; flex-direction: column; gap: 4px; }
  .side-nav nav a {
    display: flex; align-items: center; gap: 14px; padding: 11px 14px; border-radius: 14px; border: 2px solid transparent;
    color: var(--ink-2); text-decoration: none; font-weight: 700; position: relative;
  }
  .side-nav nav a svg.i { width: 26px; height: 26px; }
  .side-nav nav a:hover { background: var(--surface-2); }
  .side-nav nav a.active { color: var(--felt-dark); background: var(--felt-light); border-color: #b9e8d2; }
  .side-nav .dot { position: static; margin-left: auto; }
  .content { padding: 36px 32px 80px; }
}
@media (min-width: 1220px) {
  .shell { grid-template-columns: 236px minmax(0, 1fr) 330px; }
  .aside { display: flex; flex-direction: column; gap: 16px; padding: 36px 26px 36px 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
}

/* ---------- Buttons (3D, griffig) ---------- */
.btn {
  --c: var(--surface); --d: var(--line-2); --t: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 10px 22px; border-radius: 14px; border: 2px solid var(--d);
  background: var(--c); color: var(--t); font-weight: 800; font-size: 1rem; letter-spacing: .01em;
  box-shadow: 0 4px 0 var(--d); cursor: pointer; text-decoration: none; user-select: none;
  transition: transform .06s, box-shadow .06s, filter .15s;
}
.btn:hover { filter: brightness(1.04); }
.btn:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 0 0 var(--d); }
.btn:disabled { cursor: default; filter: saturate(.6); opacity: .55; }
.btn.block { width: 100%; }
.btn.sm { min-height: 40px; padding: 6px 14px; font-size: .9rem; border-radius: 12px; box-shadow: 0 3px 0 var(--d); }
.btn.lg { min-height: 58px; font-size: 1.1rem; }
.btn.green { --c: var(--felt); --d: var(--felt-dark); --t: #fff; }
.btn.gold { --c: var(--gold); --d: var(--gold-dark); --t: #3b2800; }
.btn.raise { --c: var(--raise); --d: var(--raise-dark); --t: #fff; }
.btn.call { --c: var(--call); --d: var(--call-dark); --t: #fff; }
.btn.fold { --c: var(--fold); --d: var(--fold-dark); --t: #fff; }
.btn.ghost { --c: transparent; --d: transparent; box-shadow: none; color: var(--ink-2); }
.btn.picked { outline: 3px solid var(--ink); outline-offset: 2px; }
.btn .key { font-size: .7rem; font-weight: 700; opacity: .7; border: 1.5px solid currentColor; border-radius: 5px; padding: 0 5px; }
@media (hover: none) { .btn .key { display: none; } }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 2px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: .9rem;
  color: var(--ink-2); cursor: pointer; box-shadow: 0 2px 0 var(--line);
}
.chip.on { border-color: var(--call); color: var(--call-dark); background: var(--call-light); box-shadow: 0 2px 0 #b8d1fb; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.tag.green { background: var(--felt-light); color: var(--felt-dark); }
.tag.gold { background: var(--gold-light); color: #8a5a00; }

.card { background: var(--surface); border: 2px solid var(--line); border-radius: var(--r); padding: 20px; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.section-title { margin: 34px 0 12px; }

/* ---------- Spielkarten ---------- */
.cards { display: inline-flex; gap: 6px; vertical-align: middle; }
.pcard {
  --w: 56px;
  width: var(--w); height: calc(var(--w) * 1.38); border-radius: calc(var(--w) * .16); background: #fff;
  border: 2px solid var(--line-2); box-shadow: 0 3px 0 var(--line-2);
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; user-select: none;
  font-family: var(--font-head); font-weight: 600;
}
.pcard .r { font-size: calc(var(--w) * .5); }
.pcard .s { font-size: calc(var(--w) * .38); margin-top: 1px; }
.pcard.s0 { color: var(--suit-s); } .pcard.s1 { color: var(--suit-h); } .pcard.s2 { color: var(--suit-d); } .pcard.s3 { color: var(--suit-c); }
.pcard.empty { background: rgba(255,255,255,.18); border: 2px dashed rgba(255,255,255,.55); box-shadow: none; }
.pcard.back { background: repeating-linear-gradient(45deg, var(--call) 0 5px, var(--call-dark) 5px 10px); border-color: #fff; box-shadow: 0 0 0 2px var(--call-dark); }
.pcard.lg { --w: 72px; }
.pcard.sm { --w: 36px; }
.pcard.xs { --w: 28px; border-width: 1.5px; box-shadow: 0 2px 0 var(--line-2); }
.pcard.deal { animation: deal .3s cubic-bezier(.2, .9, .3, 1.3) both; }
.pcard.deal:nth-child(2) { animation-delay: .07s; } .pcard.deal:nth-child(3) { animation-delay: .14s; } .pcard.deal:nth-child(4) { animation-delay: .21s; } .pcard.deal:nth-child(5) { animation-delay: .28s; }
@keyframes deal { from { transform: translateY(-16px) scale(.9); opacity: 0; } }
.ic { font-weight: 800; white-space: nowrap; }
.ic.s0 { color: var(--suit-s); } .ic.s1 { color: var(--suit-h); } .ic.s2 { color: var(--suit-d); } .ic.s3 { color: var(--suit-c); }

/* ---------- Tisch (flache Illustration) ---------- */
.felt-table { position: relative; width: 100%; max-width: 560px; margin: 0 auto; aspect-ratio: 1.75; }
.felt-table .rail {
  position: absolute; inset: 9% 7%; border-radius: 999px; background: radial-gradient(ellipse at 50% 40%, #2cc486 0%, #17a86d 55%, #11935e 100%);
  border: 8px solid #0b6b45; box-shadow: inset 0 0 0 3px rgba(255,255,255,.18), 0 6px 0 #d7e0e6;
}
.felt-table .center { position: absolute; inset: 9% 7%; display: grid; place-items: center; align-content: center; gap: 8px; text-align: center; }
.pot-pill { display: inline-flex; align-items: center; gap: 6px; background: rgba(0, 40, 25, .35); color: #fff; font-weight: 800; padding: 3px 12px; border-radius: 999px; font-size: .9rem; }
.seat { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 3px; z-index: 2; }
.seat .av {
  width: 46px; height: 46px; border-radius: 50%; background: var(--surface); border: 3px solid var(--line-2); display: grid; place-items: center;
  font-weight: 800; font-size: .74rem; color: var(--ink-2); box-shadow: 0 3px 0 var(--line-2);
}
.seat.hero .av { border-color: var(--gold); color: #8a5a00; background: var(--gold-light); box-shadow: 0 3px 0 var(--gold-dark); }
.seat.folded .av { opacity: .45; }
.seat .act { font-size: .72rem; font-weight: 800; padding: 1px 8px; border-radius: 999px; background: var(--surface); color: var(--ink-2); border: 1.5px solid var(--line); white-space: nowrap; }
.seat .act.raise { background: var(--raise); color: #fff; border-color: var(--raise-dark); }
.seat .act.call { background: var(--call); color: #fff; border-color: var(--call-dark); }
.seat .act.fold { color: var(--ink-3); }
.dealer { position: absolute; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); font-size: 11px; font-weight: 800; display: grid; place-items: center; transform: translate(-50%, -50%); z-index: 3; }
@media (max-width: 520px) {
  .felt-table { aspect-ratio: 1.3; }
  .seat .av { width: 38px; height: 38px; font-size: .66rem; }
  .seat .act { font-size: .64rem; padding: 0 6px; }
}

/* ---------- Range-Raster ---------- */
.range { display: grid; grid-template-columns: repeat(13, 1fr); gap: 2px; width: 100%; max-width: 560px; user-select: none; }
.range .cell {
  aspect-ratio: 1; display: grid; place-items: center; border-radius: 4px; font-weight: 700; font-size: clamp(7px, 2.1vw, 12px);
  background: var(--fold-light); color: #a3b0bb; position: relative;
}
.range .cell.raise { background: var(--raise); color: #fff; }
.range .cell.call { background: var(--call); color: #fff; }
.range .cell.both { background: linear-gradient(135deg, var(--raise) 50%, var(--call) 50%); color: #fff; }
.range .cell.mixed:not(.both) { background-image: repeating-linear-gradient(135deg, transparent 0 4px, rgba(255,255,255,.45) 4px 7px); }
.range .cell.focus { outline: 3px solid var(--ink); outline-offset: 0; z-index: 1; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { outline-color: var(--gold); } }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .85rem; color: var(--ink-2); margin-top: 10px; font-weight: 600; }
.legend i { display: inline-block; width: 13px; height: 13px; border-radius: 4px; margin-right: 6px; vertical-align: -2px; }
.legend .l-raise { background: var(--raise); } .legend .l-call { background: var(--call); } .legend .l-fold { background: var(--fold-light); border: 1px solid var(--line-2); }
.legend .l-mixed { background: var(--raise) repeating-linear-gradient(135deg, transparent 0 3px, rgba(255,255,255,.5) 3px 5px); }

/* ---------- Heute ---------- */
.hello { margin-bottom: 18px; }
.hello h1 { margin-bottom: 4px; }
.daily {
  position: relative; overflow: hidden; border-radius: 22px; padding: 24px; color: #fff;
  background: linear-gradient(160deg, #19b377 0%, #0f9462 100%); box-shadow: 0 6px 0 var(--felt-dark);
}
.daily::after {
  content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: repeating-conic-gradient(rgba(255,255,255,.16) 0 15deg, transparent 15deg 30deg); pointer-events: none;
}
.daily h2 { font-size: 1.7rem; margin-bottom: 4px; }
.daily .sub { opacity: .9; font-weight: 600; margin-bottom: 18px; }
.daily .steps { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; position: relative; z-index: 1; }
.daily .steps li { display: flex; gap: 12px; align-items: center; background: rgba(255,255,255,.14); border-radius: 14px; padding: 10px 14px; font-weight: 600; }
.daily .steps li .n { width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--felt-dark); display: grid; place-items: center; font-weight: 800; flex: none; }
.daily .steps li small { display: block; opacity: .85; font-weight: 500; }
.daily .btn { position: relative; z-index: 1; --c: #fff; --d: #0a6f48; --t: var(--felt-dark); }
.daily.done { background: linear-gradient(160deg, #ffc443 0%, #ffad14 100%); color: #3b2800; box-shadow: 0 6px 0 var(--gold-dark); }
.daily.done .btn { --t: #8a5a00; --d: #c98400; }
.mini-path { display: flex; gap: 14px; align-items: center; }
.mini-path .coin { --size: 54px; }

/* ---------- Aside / Statuskarten ---------- */
.stat-card { background: var(--surface); border: 2px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.stat-card h3 { font-size: 1rem; margin-bottom: 10px; }
.goal-bar { height: 16px; border-radius: 999px; background: var(--fold-light); overflow: hidden; }
.goal-bar i { display: block; height: 100%; border-radius: 999px; background: var(--gold); box-shadow: inset 0 -4px 0 rgba(0,0,0,.08), inset 0 4px 0 rgba(255,255,255,.35); transition: width .5s; }
.goal-bar.green i { background: var(--felt); }
.big-stat { display: flex; align-items: center; gap: 12px; }
.big-stat b { font-family: var(--font-head); font-size: 1.9rem; font-weight: 600; line-height: 1; }
.flame-ico { width: 40px; height: 40px; color: var(--flame); }
.flame-ico.off { color: var(--line-2); }
.flame-ico svg.i { width: 100%; height: 100%; }
.week { display: flex; justify-content: space-between; margin-top: 12px; }
.week span { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: .72rem; font-weight: 700; color: var(--ink-3); }
.week span i { width: 26px; height: 26px; border-radius: 50%; background: var(--fold-light); display: grid; place-items: center; }
.week span.on i { background: var(--flame); color: #fff; }
.week span.today { color: var(--ink); }

/* ---------- Lernpfad (Chips als Stationen) ---------- */
.unit-head {
  border-radius: 18px; padding: 18px 20px; color: #fff; margin: 34px 0 26px; box-shadow: 0 5px 0 rgba(0,0,0,.18);
  display: flex; gap: 14px; justify-content: space-between; align-items: center; flex-wrap: wrap;
}
.unit-head:first-of-type { margin-top: 6px; }
.unit-head h2 { margin: 2px 0 2px; }
.unit-head p { margin: 0; opacity: .92; font-size: .95rem; max-width: 46ch; }
.unit-head .eyebrow { font-weight: 800; opacity: .85; font-size: .85rem; }
.unit-head .btn { --c: rgba(255,255,255,.2); --d: rgba(0,0,0,.2); --t: #fff; border-color: rgba(255,255,255,.45); }
.unit-head.locked { background: var(--fold) !important; }
.trail { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 30px 0 8px; }
.node { position: relative; display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--ink); }
.node .label { margin-top: 8px; font-weight: 700; font-size: .9rem; text-align: center; max-width: 170px; line-height: 1.25; }
.node.locked .label { color: var(--ink-3); }
.coin {
  --size: 74px; --c: var(--felt); --d: var(--felt-dark);
  width: var(--size); height: var(--size); border-radius: 50%; display: grid; place-items: center; color: #fff; position: relative;
  background:
    radial-gradient(circle at center, var(--c) 0 52%, transparent 53%),
    repeating-conic-gradient(var(--c) 0 22.5deg, #fff 22.5deg 30deg, var(--c) 30deg 45deg);
  box-shadow: 0 6px 0 var(--d), inset 0 0 0 4px var(--c);
  transition: transform .08s;
}
.coin::before { content: ''; position: absolute; inset: 22%; border-radius: 50%; border: 2px dashed rgba(255,255,255,.55); }
.coin svg.i { width: 30px; height: 30px; position: relative; }
.node:active .coin { transform: translateY(4px); box-shadow: 0 2px 0 var(--d), inset 0 0 0 4px var(--c); }
.node.done .coin { --c: var(--gold); --d: var(--gold-dark); }
.node.locked .coin { --c: #d5dde3; --d: #b7c3cc; color: #9aa8b3; cursor: default; }
.node.test .coin { --size: 84px; }
.node.current .coin { animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-5px); } }
.bubble {
  position: absolute; top: -40px; left: 50%; transform: translateX(-50%); background: var(--surface); border: 2px solid var(--line);
  color: var(--felt-dark); font-weight: 800; padding: 4px 14px; border-radius: 12px; white-space: nowrap; font-size: .9rem; box-shadow: 0 3px 0 var(--line);
}
.bubble::after { content: ''; position: absolute; left: 50%; bottom: -8px; width: 12px; height: 12px; background: var(--surface); border-right: 2px solid var(--line); border-bottom: 2px solid var(--line); transform: translateX(-50%) rotate(45deg); }

/* ---------- Fokus-Modus (Übung, Lektion, Test) ---------- */
body.focus .side-nav, body.focus .aside, body.focus .topbar, body.focus .tabbar { display: none; }
body.focus .shell { display: block; }
body.focus .content { padding: 0 0 200px; }
.runner-top {
  position: sticky; top: 0; z-index: 20; background: rgba(242,245,247,.95); backdrop-filter: blur(8px);
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; max-width: 900px; margin: 0 auto;
}
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; color: var(--ink-3); display: grid; place-items: center; cursor: pointer; flex: none; }
.icon-btn:hover { background: var(--surface); color: var(--ink); }
.icon-btn svg.i { width: 28px; height: 28px; }
.progress { flex: 1; height: 18px; border-radius: 999px; background: #dfe6eb; overflow: hidden; }
.progress i { display: block; height: 100%; min-width: 18px; border-radius: 999px; background: var(--felt); box-shadow: inset 0 -5px 0 rgba(0,0,0,.1), inset 0 5px 0 rgba(255,255,255,.3); transition: width .4s cubic-bezier(.3,1.3,.5,1); }
.runner-count { font-weight: 800; color: var(--ink-2); display: flex; gap: 14px; }
.runner-count .combo { color: var(--flame); }
.runner-body { max-width: var(--col); margin: 0 auto; padding: 12px 16px 0; }
.runner-body.wide { max-width: 900px; }
.settings-bar { max-width: 900px; margin: 0 auto; padding: 0 16px 6px; }
.settings-bar .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.settings-bar .chips::-webkit-scrollbar { display: none; }
.settings-bar .chip { flex: none; }
.prompt { font-family: var(--font-head); font-size: 1.45rem; font-weight: 600; line-height: 1.25; margin: 8px 0 16px; }
.situation { font-size: 1.05rem; color: var(--ink-2); margin: 14px 0 18px; }
.situation strong { color: var(--ink); }
.answers { display: grid; gap: 10px; }
.answers.row3 { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.opt {
  display: flex; gap: 12px; align-items: center; text-align: left; width: 100%; padding: 14px 16px; min-height: 56px; border-radius: 14px;
  border: 2px solid var(--line); background: var(--surface); box-shadow: 0 4px 0 var(--line); cursor: pointer; font-weight: 600; font-size: 1rem;
  transition: transform .06s, box-shadow .06s;
}
.opt:hover:not(:disabled) { background: var(--surface-2); }
.opt:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 0 0 var(--line); }
.opt .k { width: 28px; height: 28px; flex: none; border-radius: 8px; border: 2px solid var(--line); display: grid; place-items: center; font-size: .8rem; font-weight: 800; color: var(--ink-3); }
.opt:disabled { cursor: default; }
.opt.right { border-color: var(--felt); background: var(--felt-light); box-shadow: 0 4px 0 #9fdcc0; }
.opt.right .k { border-color: var(--felt); color: var(--felt-dark); }
.opt.wrong { border-color: var(--raise); background: var(--raise-light); box-shadow: 0 4px 0 #f3b3b3; }
.opt.ok { border-color: var(--gold); background: var(--gold-light); box-shadow: 0 4px 0 #f5d48f; }
.numpad { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.numpad .opt { justify-content: center; padding: 10px 0; min-height: 50px; font-size: 1.1rem; font-weight: 800; }
.board-box { background: var(--felt); border-radius: 20px; padding: 18px; display: grid; gap: 12px; justify-items: center; box-shadow: 0 5px 0 var(--felt-dark); color: #fff; }
.board-box .lbl { font-size: .8rem; font-weight: 800; opacity: .85; }
.hand-row { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; align-items: flex-end; }
.hand-row > div { display: grid; gap: 6px; justify-items: center; }
.hand-row .who { font-size: .8rem; font-weight: 800; color: var(--ink-2); }

/* Feedback-Leiste */
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; border-top: 2px solid transparent;
  transform: translateY(105%); transition: transform .28s cubic-bezier(.2,.9,.3,1);
}
.sheet.show { transform: none; }
.sheet-in { max-width: 900px; margin: 0 auto; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); display: grid; gap: 12px; }
.sheet.good { background: #d9f5e7; border-color: #a6e3c6; }
.sheet.bad { background: #fde4e4; border-color: #f5b9b9; }
.sheet.meh { background: #fff1d1; border-color: #f6d48a; }
.sheet.plain { background: var(--surface); border-color: var(--line); }
.sheet-head { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-size: 1.45rem; font-weight: 600; }
.sheet.good .sheet-head { color: var(--felt-dark); } .sheet.bad .sheet-head { color: var(--raise-dark); } .sheet.meh .sheet-head { color: #9a6700; }
.sheet-head .badge { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; }
.sheet-text { max-height: 34vh; overflow-y: auto; font-size: 1rem; color: var(--ink); }
.sheet-text p { margin: 0 0 .6em; }
.sheet-text p:last-child { margin: 0; }
.sheet details summary { cursor: pointer; font-weight: 800; color: var(--ink-2); }
.sheet details[open] { max-height: 46vh; overflow-y: auto; }
.sheet .btn.green { min-width: 160px; }
.sheet.bad .btn.go { --c: var(--raise); --d: var(--raise-dark); --t: #fff; }
.sheet.meh .btn.go { --c: var(--gold); --d: var(--gold-dark); --t: #3b2800; }
.sheet-foot { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
@media (min-width: 700px) {
  .sheet-in { grid-template-columns: 1fr auto; align-items: end; padding-top: 22px; padding-bottom: 22px; }
  .sheet-in > .sheet-foot { grid-column: 2; grid-row: 1 / span 2; align-self: end; }
}
.ctabar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--surface); border-top: 2px solid var(--line);
}
.ctabar .sheet-in { display: flex; justify-content: flex-end; }

/* Intro- und Ergebnisbildschirme */
.splash { text-align: center; padding: 40px 0 20px; display: grid; justify-items: center; gap: 10px; }
.splash .emblem { width: 120px; height: 120px; }
.splash h1 { margin: 8px 0 0; }
.splash p { max-width: 46ch; color: var(--ink-2); font-size: 1.08rem; }
.result-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; max-width: 480px; margin: 10px 0 6px; }
.result-tiles div { border-radius: 16px; border: 2px solid; overflow: hidden; }
.result-tiles div span { display: block; font-size: .78rem; font-weight: 800; color: #fff; padding: 4px; }
.result-tiles div b { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 1.35rem; padding: 12px 4px; background: #fff; font-family: var(--font-head); font-weight: 600; }
.result-tiles .t-xp { border-color: var(--gold); } .result-tiles .t-xp span { background: var(--gold); color: #3b2800; }
.result-tiles .t-acc { border-color: var(--felt); } .result-tiles .t-acc span { background: var(--felt); }
.result-tiles .t-time { border-color: var(--call); } .result-tiles .t-time span { background: var(--call); }

/* ---------- Lektion ---------- */
.lesson-meta { color: var(--ink-3); font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.prose { font-size: 1.08rem; line-height: 1.7; }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose strong { font-weight: 700; }
.prose h3 { margin-top: 1.4em; }
.block { margin: 24px 0; }
.tip { border-radius: var(--r); padding: 16px 18px; background: var(--gold-light); border: 2px solid #f6dc9f; }
.tip .tip-h { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; color: #8a5a00; margin-bottom: 4px; display: flex; gap: 8px; align-items: center; }
.tip .prose { font-size: 1rem; }
.tip .prose p:last-child { margin: 0; }
.tip.warn { background: var(--raise-light); border-color: #f7c0c0; }
.tip.warn .tip-h { color: var(--raise-dark); }
.figure { display: grid; gap: 10px; justify-items: start; }
.figure .cap { color: var(--ink-2); font-size: .95rem; }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { border-collapse: separate; border-spacing: 0; width: 100%; font-size: .95rem; background: var(--surface); border: 2px solid var(--line); border-radius: 14px; overflow: hidden; }
table.data th, table.data td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
table.data tr:last-child td { border-bottom: 0; }
table.data th { background: var(--surface-2); color: var(--ink-2); font-weight: 700; font-size: .85rem; }
table.data td.num, table.data th.num { text-align: right; }
.check-q { background: var(--surface); border: 2px solid var(--line); border-radius: var(--r); padding: 18px; }
.check-q .q { font-weight: 700; margin-bottom: 12px; }
.explain { margin-top: 12px; padding: 12px 14px; border-radius: 12px; font-size: .97rem; }
.explain.good { background: var(--felt-light); } .explain.bad { background: var(--raise-light); }
.calc { background: var(--surface); border: 2px solid var(--line); border-radius: var(--r); padding: 18px; display: grid; gap: 10px; }
.calc label { font-weight: 600; color: var(--ink-2); font-size: .95rem; }
.meter { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.meter div { background: var(--surface-2); border-radius: 12px; padding: 12px; }
.meter b { display: block; font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; }
.meter span { font-size: .85rem; color: var(--ink-2); }
input[type=range] { width: 100%; accent-color: var(--felt); }
input[type=text], input[type=number], select { font: inherit; padding: 10px 12px; border-radius: 12px; border: 2px solid var(--line-2); background: #fff; color: var(--ink); }

/* ---------- Training & Profil ---------- */
.tool {
  display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: var(--r); background: var(--surface); border: 2px solid var(--line);
  box-shadow: 0 4px 0 var(--line); text-decoration: none; color: var(--ink); transition: transform .06s, box-shadow .06s;
}
.tool:active { transform: translateY(4px); box-shadow: 0 0 0 var(--line); }
.tool:hover { border-color: var(--line-2); }
.tool .ti { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; flex: none; color: #fff; }
.tool .ti svg.i { width: 28px; height: 28px; }
.tool h3 { margin: 0 0 2px; font-size: 1.08rem; }
.tool p { margin: 0; color: var(--ink-2); font-size: .92rem; line-height: 1.4; }
.tool .go-ico { margin-left: auto; color: var(--ink-3); }
.list { display: grid; gap: 12px; }
.ach { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.ach div { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); }
.ach div .medal { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--fold-light); color: var(--ink-3); flex: none; }
.ach div.got .medal { background: var(--gold); color: #fff; box-shadow: 0 3px 0 var(--gold-dark); }
.ach div:not(.got) { color: var(--ink-3); }
.ach b { display: block; font-size: .95rem; }
.ach small { font-size: .82rem; line-height: 1.3; display: block; }
.bar { height: 10px; border-radius: 999px; background: var(--fold-light); overflow: hidden; min-width: 70px; }
.bar i { display: block; height: 100%; border-radius: 999px; }
.level-card { display: flex; gap: 16px; align-items: center; }
.level-card .lvl { width: 64px; height: 64px; flex: none; }
.gloss dt { font-weight: 800; margin-top: 16px; }
.gloss dd { margin: 3px 0 0; color: var(--ink-2); }
.back-link { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); text-decoration: none; font-weight: 700; margin-bottom: 14px; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 80; width: min(92vw, 380px); }
.toast { background: var(--surface); border: 2px solid var(--line); border-radius: 16px; padding: 12px 16px; box-shadow: 0 6px 18px rgba(23,36,46,.12); animation: toast .35s cubic-bezier(.2,.9,.3,1.3) both; display: flex; gap: 12px; align-items: center; font-weight: 600; }
.toast .t-ico { width: 36px; height: 36px; border-radius: 50%; background: var(--gold); color: #fff; display: grid; place-items: center; flex: none; }
@keyframes toast { from { transform: translateY(-14px); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Hilfsregeln ---------- */
.mobile-only { display: block; }
@media (min-width: 1220px) { .mobile-only { display: none !important; } }
.trail { --zf: 1; }
@media (max-width: 520px) { .trail { --zf: .55; } }

/* ---------- Spieltisch ---------- */
.game { max-width: 980px; margin: 0 auto; padding: 0 12px; }
.game-stats { display: flex; gap: 14px; align-items: center; font-weight: 800; color: var(--ink-2); flex-wrap: wrap; }
.game-stats .net.up { color: var(--felt-dark); } .game-stats .net.down { color: var(--raise-dark); }
.felt-table.game-t { max-width: 900px; aspect-ratio: 1.75; margin-top: 6px; }
.felt-table.game-t .rail { inset: 13% 9%; }
.felt-table.game-t .center { inset: 13% 9%; gap: 10px; }
.gseat { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 2px; z-index: 2; width: 92px; text-align: center; transition: opacity .2s; }
.gseat .av {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 3px solid var(--tc, var(--line-2));
  font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; color: var(--ink); box-shadow: 0 3px 0 var(--line-2); position: relative;
}
.gseat .nm { font-weight: 800; font-size: .82rem; line-height: 1.1; }
.gseat .stk { font-size: .78rem; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.gseat .tg { font-size: .66rem; font-weight: 800; color: #fff; background: var(--tc, var(--fold)); border-radius: 999px; padding: 0 7px; line-height: 1.5; }
.gseat .hud { font-size: .64rem; font-weight: 700; color: var(--ink-3); }
.gseat .pos-tag { position: absolute; bottom: -6px; right: -10px; font-size: .6rem; font-weight: 800; background: var(--ink); color: #fff; border-radius: 6px; padding: 0 4px; line-height: 1.5; }
.gseat .hc { display: flex; gap: 2px; position: absolute; top: -14px; left: 50%; transform: translateX(-50%); z-index: -1; }
.gseat .hc .pcard { --w: 26px; border-width: 1.5px; box-shadow: none; }
.gseat .hc.show { top: -30px; z-index: 3; }
.gseat .hc.show .pcard { --w: 32px; box-shadow: 0 2px 0 var(--line-2); }
.gseat .say { position: absolute; top: calc(100% + 2px); left: 50%; transform: translateX(-50%); z-index: 4; font-size: .74rem; font-weight: 800; padding: 1px 9px; border-radius: 999px; background: #fff; border: 2px solid var(--line); white-space: nowrap; animation: pop .25s cubic-bezier(.2,.9,.3,1.4) both; }
.gseat .say.raise { background: var(--raise); color: #fff; border-color: var(--raise-dark); }
.gseat .say.call { background: var(--call); color: #fff; border-color: var(--call-dark); }
.gseat .say.fold { color: var(--ink-3); }
.gseat .say.win { background: var(--gold); color: #3b2800; border-color: var(--gold-dark); }
@keyframes pop { from { transform: translateX(-50%) scale(.6); opacity: 0; } }
.gseat.out { opacity: .4; }
.gseat.turn .av { box-shadow: 0 0 0 4px var(--gold), 0 3px 0 var(--line-2); animation: think 1s ease-in-out infinite; }
@keyframes think { 50% { box-shadow: 0 0 0 7px rgba(255,179,32,.45), 0 3px 0 var(--line-2); } }
.gseat.hero .av { background: var(--gold-light); --tc: var(--gold); }
.betchip { position: absolute; transform: translate(-50%, -50%); z-index: 3; display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 800; color: #fff; background: rgba(0,40,25,.45); border-radius: 999px; padding: 1px 8px 1px 2px; }
.betchip i { width: 16px; height: 16px; border-radius: 50%; background: var(--gold); border: 2px dashed #fff; }
.board-cards .pcard { --w: 50px; }
.hero-zone { display: flex; justify-content: center; align-items: center; gap: 16px; margin: 4px 0 8px; flex-wrap: wrap; }
.hero-zone .lbl { font-weight: 800; color: var(--ink-2); }
.hero-zone .lbl b { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; color: var(--ink); }
.action-panel { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--surface); border-top: 2px solid var(--line); }
.action-in { max-width: 900px; margin: 0 auto; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); display: grid; gap: 10px; }
.action-in .sizes { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.action-in .sizes .chip { flex: none; }
.action-in .btns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.action-in .status { text-align: center; font-weight: 700; color: var(--ink-2); min-height: 50px; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.result-line { font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; }
.result-line.up { color: var(--felt-dark); } .result-line.down { color: var(--raise-dark); }
.ev-table { width: 100%; border-collapse: collapse; font-size: .93rem; margin: 6px 0 4px; }
.ev-table td { padding: 5px 8px; border-bottom: 1px solid rgba(0,0,0,.06); }
.ev-table td:last-child { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.ev-table tr.best td { color: var(--felt-dark); }
.ev-table tr.chosen td:first-child::after { content: ' ← deine Wahl'; font-weight: 600; color: var(--ink-3); font-size: .82rem; }
.range-bars { display: grid; gap: 4px; margin: 6px 0 10px; }
.range-bars .rb { display: grid; grid-template-columns: 170px 1fr 44px; gap: 8px; align-items: center; font-size: .85rem; }
.range-bars .rb i { display: block; height: 10px; border-radius: 999px; background: var(--call); }
.range-bars .rb span:last-child { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.review-list { display: grid; gap: 8px; }
.review-list details { background: rgba(255,255,255,.6); border-radius: 12px; padding: 8px 12px; }
.type-list { display: grid; gap: 10px; }
.type-list .tool { box-shadow: none; }
.type-list .tool .ti { font-family: var(--font-head); font-size: 1rem; font-weight: 600; }
@media (max-width: 620px) {
  .felt-table.game-t { aspect-ratio: .95; }
  .felt-table.game-t .rail { inset: 12% 13%; }
  .felt-table.game-t .center { inset: 12% 13%; }
  .gseat { width: 74px; }
  .gseat .av { width: 40px; height: 40px; font-size: 1rem; }
  .gseat .nm { font-size: .72rem; } .gseat .stk { font-size: .7rem; } .gseat .hud { display: none; }
  .board-cards .pcard { --w: 38px; }
  .range-bars .rb { grid-template-columns: 120px 1fr 40px; }
}

/* Spieltisch auf dem Handy: kompakter, höherer Tisch */
.game-stats { flex-wrap: nowrap; white-space: nowrap; }
@media (max-width: 620px) {
  .felt-table.game-t { aspect-ratio: .8; }
  .felt-table.game-t .rail { inset: 13% 17%; }
  .felt-table.game-t .center { inset: 13% 17%; }
  .gseat { width: 58px; gap: 1px; }
  .gseat .nm { display: none; }
  .gseat .av { width: 36px; height: 36px; font-size: .95rem; border-width: 3px; }
  .gseat .stk { font-size: .66rem; }
  .gseat .tg { font-size: .58rem; padding: 0 5px; }
  .gseat .pos-tag { font-size: .55rem; right: -8px; }
  .gseat .hc { top: -11px; }
  .gseat .hc .pcard { --w: 19px; }
  .gseat .hc.show { top: -24px; }
  .gseat .hc.show .pcard { --w: 26px; }
  .gseat .say { font-size: .6rem; padding: 0 5px; }
  .betchip { font-size: .66rem; padding: 0 6px 0 1px; }
  .betchip i { width: 12px; height: 12px; }
  .board-cards .pcard { --w: 34px; }
  .hero-zone { margin: 0 0 4px; gap: 10px; }
  .hero-zone .pcard.lg { --w: 50px; }
  .hero-zone .lbl { font-size: .85rem; }
  .hero-zone .lbl b { font-size: 1rem; }
  .action-in { padding-top: 10px; gap: 8px; }
  .action-in .btn.lg { min-height: 52px; font-size: .9rem; padding: 6px 6px; line-height: 1.2; }
  .coach-toggle .long { display: none; }
}

/* ---------- Spielmodi ---------- */
.progress.timer i { background: var(--gold); transition: width .2s linear; }
.progress.timer i.low { background: var(--raise); }
.lives { display: inline-flex; gap: 2px; color: var(--raise); }
.lives i { display: inline-flex; } .lives i.lost { color: var(--line-2); }
.runner-count .secs { color: var(--gold-dark); min-width: 3ch; }

/* ---------- Neue Aufgabentypen ---------- */
.range.paint { touch-action: none; max-width: 600px; margin: 0 auto; }
.range.paint .cell { cursor: pointer; }
.range .cell.hit { background: var(--felt); color: #fff; }
.range .cell.miss { background: var(--raise-light); color: var(--raise-dark); outline: 2px dashed var(--raise); outline-offset: -2px; }
.range .cell.extra { background: var(--ink); color: #fff; }
.range .cell.mixd { background: var(--fold-light) repeating-linear-gradient(135deg, transparent 0 4px, rgba(0,0,0,.08) 4px 7px); }
.sort-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sort-opt { justify-content: flex-start; position: relative; min-height: 76px; }
.sort-opt .rank-badge { margin-left: auto; font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; color: var(--call-dark); }
.sort-opt.picked-sort { border-color: var(--call); background: var(--call-light); box-shadow: 0 4px 0 #b8d1fb; }

/* ---------- Stufen und Sterne ---------- */
.stars { display: inline-flex; gap: 2px; color: var(--line-2); flex: none; }
.stars i { display: inline-flex; }
.stars i svg.i { width: 24px; height: 24px; }
.stars i.on { color: var(--gold); filter: drop-shadow(0 2px 0 var(--gold-dark)); }
.splash .stars i svg.i { width: 40px; height: 40px; }
.star-tag { flex: none; }
.star-tag svg.i { width: 14px; height: 14px; }
.trainer-head { display: flex; gap: 16px; align-items: center; }
.trainer-head .ti { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; color: #fff; flex: none; }
.trainer-head .ti svg.i { width: 34px; height: 34px; }
.trainer-head h1 { margin-bottom: 2px; }
.trainer-head p { margin: 0; }
.levels { display: grid; gap: 10px; }
.level {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: var(--r); background: var(--surface);
  border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line); text-decoration: none; color: var(--ink); transition: transform .06s, box-shadow .06s;
}
a.level:active { transform: translateY(4px); box-shadow: 0 0 0 var(--line); }
a.level:hover { border-color: var(--line-2); }
.level h3 { margin: 0 0 2px; font-size: 1.05rem; }
.level p { margin: 0; color: var(--ink-2); font-size: .9rem; }
.level > div { flex: 1; min-width: 0; }
.level .coin b { position: relative; font-family: var(--font-head); font-size: 1.15rem; }
.level .coin svg.i { width: 20px; height: 20px; }
.level.locked { opacity: .6; box-shadow: none; }
.level.locked .coin { --c: #d5dde3; --d: #b7c3cc; color: #9aa8b3; }
@media (max-width: 520px) { .level .stars i svg.i { width: 18px; height: 18px; } }

/* =====================================================================
   Dunkles Theme mit Rot als Akzent.
   Rot = Marke/Hauptaktion und Raise, Grün = richtig, Orange = falsch, Blau = Call.
   ===================================================================== */
:root {
  --bg: #0e1013;
  --surface: #171a1f;
  --surface-2: #1f2329;
  --ink: #eef1f4;
  --ink-2: #aab3bd;
  --ink-3: #6f7984;
  --line: #262b32;
  --line-2: #353b44;

  --accent: #e5383b;
  --accent-dark: #9e2226;
  --accent-light: rgba(229, 56, 59, .15);
  --felt: #2fbf71;
  --felt-dark: #1c8a4e;
  --felt-light: rgba(47, 191, 113, .14);
  --bad: #ff7a45;
  --bad-dark: #bf4f1d;
  --bad-light: rgba(255, 122, 69, .14);
  --gold: #ffb320;
  --gold-dark: #a86f00;
  --gold-light: rgba(255, 179, 32, .13);
  --flame: #ff7a1a;
  --raise: #e5383b;
  --raise-dark: #9e2226;
  --raise-light: rgba(229, 56, 59, .15);
  --call: #3b82f6;
  --call-dark: #2257b5;
  --call-light: rgba(59, 130, 246, .16);
  --fold: #5b6570;
  --fold-dark: #3d454e;
  --fold-light: #22272e;
  --table-hi: #1f7a50;
  --table-mid: #155c3c;
  --table-lo: #0f4a30;
  --table-rail: #0a2e1e;
  color-scheme: dark;
}

/* Gerüst */
.topbar, .runner-top { background: rgba(14, 16, 19, .92); }
.side-nav nav a.active { color: #ff6b6d; background: var(--accent-light); border-color: rgba(229, 56, 59, .35); }
.tabbar a.active { color: #ff6b6d; background: var(--accent-light); }
.icon-btn:hover { background: var(--surface-2); }

/* Buttons: "green" ist die Hauptaktion und damit jetzt rot */
.btn.green { --c: var(--accent); --d: var(--accent-dark); --t: #fff; }
.sheet.good .btn.go { --c: var(--felt); --d: var(--felt-dark); --t: #fff; }
.sheet.bad .btn.go { --c: var(--bad); --d: var(--bad-dark); --t: #fff; }
.chip.on { border-color: var(--call); color: #9cc1ff; background: var(--call-light); box-shadow: 0 2px 0 rgba(59, 130, 246, .35); }
.tag.gold { color: #ffc75a; }
.tag.green { color: #6fe0a3; }

/* Tisch und Board: dunkelgrüner Filz */
.felt-table .rail { background: radial-gradient(ellipse at 50% 40%, var(--table-hi) 0%, var(--table-mid) 55%, var(--table-lo) 100%); border-color: var(--table-rail); box-shadow: inset 0 0 0 3px rgba(255,255,255,.07), 0 6px 0 #05070a; }
.board-box { background: radial-gradient(ellipse at 50% 30%, var(--table-hi), var(--table-lo)); box-shadow: 0 5px 0 #05070a; }
.pot-pill, .betchip { background: rgba(0, 0, 0, .4); }
.seat .av, .gseat .av { background: var(--surface-2); color: var(--ink); }
.seat.hero .av, .gseat.hero .av { background: #3a2a07; color: #ffc75a; }
.seat .act, .gseat .say { background: var(--surface-2); }
.gseat .pos-tag { background: var(--ink); color: var(--bg); }
.pcard { border-color: #c9d1d9; box-shadow: 0 3px 0 #05070a; }

/* Range-Raster */
.range .cell { background: var(--fold-light); color: #5d6873; }
.range .cell.mixed:not(.both) { background-image: repeating-linear-gradient(135deg, transparent 0 4px, rgba(0,0,0,.3) 4px 7px); }
.range .cell.extra { background: var(--ink); color: var(--bg); }
.range .cell.miss { background: var(--bad-light); color: var(--bad); outline-color: var(--bad); }
.legend .l-fold { border-color: var(--line-2); }

/* Startseite und Lernpfad */
.daily { background: linear-gradient(160deg, #e5383b 0%, #a8232a 100%); box-shadow: 0 6px 0 #5e1418; }
.daily .steps li .n { color: var(--accent-dark); }
.daily .btn { --c: #fff; --d: #5e1418; --t: var(--accent-dark); }
.daily.done { background: linear-gradient(160deg, #ffbf3a 0%, #e89a00 100%); box-shadow: 0 6px 0 #7a5200; }
.daily.done .btn { --t: #7a5200; --d: #7a5200; }
.node.locked .coin, .level.locked .coin { --c: #2a3038; --d: #1a1e23; color: #5d6873; }
.coin { --c: var(--accent); --d: var(--accent-dark); }
.bubble, .bubble::after { background: var(--surface); }

/* Fokus-Modus */
.progress { background: var(--line); }
.progress i { background: var(--accent); }
.opt.right { box-shadow: 0 4px 0 rgba(47, 191, 113, .35); }
.opt.wrong { border-color: var(--bad); background: var(--bad-light); box-shadow: 0 4px 0 rgba(255, 122, 69, .3); }
.opt.ok { box-shadow: 0 4px 0 rgba(255, 179, 32, .3); }
.sort-opt.picked-sort { box-shadow: 0 4px 0 rgba(59, 130, 246, .35); }
.sheet.good { background: #0f2a1c; border-color: #1d5a3a; }
.sheet.bad { background: #2c190f; border-color: #6b3418; }
.sheet.meh { background: #2a2110; border-color: #6b5418; }
.sheet.good .sheet-head { color: #5fe09a; }
.sheet.bad .sheet-head { color: var(--bad); }
.sheet.meh .sheet-head { color: var(--gold); }
.sheet-head .badge { background: rgba(255, 255, 255, .08); }
.explain.bad { background: var(--bad-light); }
.result-tiles div b { background: var(--surface); }
.result-tiles .t-xp span { color: #2b1d00; }
.review-list details { background: rgba(255, 255, 255, .04); }
.ev-table td { border-bottom-color: rgba(255, 255, 255, .06); }

/* Lektionen und Formulare */
.tip { border-color: rgba(255, 179, 32, .3); }
.tip .tip-h { color: var(--gold); }
.tip.warn { background: var(--bad-light); border-color: rgba(255, 122, 69, .4); }
.tip.warn .tip-h { color: var(--bad); }
input[type=text], input[type=number], select { background: var(--surface-2); }
.toast { box-shadow: 0 8px 24px rgba(0, 0, 0, .5); }

.bubble { color: #ff6b6d; }
.dealer { color: #0e1013; border-color: #0e1013; }

/* Kartensymbole im Fließtext auf dunklem Grund */
.ic.s0 { color: #eef1f4; } .ic.s1 { color: #ff5a64; } .ic.s2 { color: #5b9bff; } .ic.s3 { color: #3ccf7f; }

/* ---------- Login- und Einladungsseite ---------- */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(ellipse at 50% -10%, rgba(229,56,59,.18), transparent 60%), var(--bg); }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 2px solid var(--line); border-radius: 22px; padding: 28px 24px; box-shadow: 0 6px 0 #05070a; }
.auth-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; margin-bottom: 18px; }
.auth-card h1 { font-size: 1.7rem; margin-bottom: 4px; }
.field { display: grid; gap: 6px; font-weight: 700; color: var(--ink-2); }
.field input { width: 100%; }
.field small { font-weight: 500; }
.form-error { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--bad-light); color: var(--bad); font-weight: 600; }


/* ---------- Daily Showdown und Admin ---------- */
.daily-timer { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; margin: 0 0 14px; }
.daily-timer i { display: block; height: 100%; width: 100%; background: var(--gold); transition: width .1s linear; }
.daily-timer i.low { background: var(--accent); }
.daily .squares { font-size: 1.6rem; letter-spacing: 2px; margin: 4px 0 18px; position: relative; z-index: 1; }
.daily.done-run h2 { font-size: 2.4rem; }
table.data.lb tr.me td { background: var(--accent-light); }
table.data.lb svg.i { color: var(--gold); }
.link-box { background: var(--surface-2); border-radius: 14px; padding: 14px; }
.link-box .row { flex-wrap: nowrap; }
.link-input { flex: 1; min-width: 0; font-family: ui-monospace, Consolas, monospace; font-size: .85rem; }
tr.muted td { color: var(--ink-3); }

input[type=password] { font: inherit; padding: 10px 12px; border-radius: 12px; border: 2px solid var(--line-2); background: var(--surface-2); color: var(--ink); }
.field input:focus { border-color: var(--accent); outline: none; }
.daily .squares { display: inline-block; background: rgba(0,0,0,.3); border-radius: 12px; padding: 6px 10px; }
