/* Screens: Onboarding, Spielen, Setup, Spiel, Momente, Ergebnis, Statistik */

/* ================= Onboarding (Bühne) ================= */
.stage { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: calc(var(--sat) + 24px) 28px calc(var(--sab) + 24px); max-width: 460px; margin: 0 auto; }
.stage-crest svg { width: min(62vw, 250px); height: auto; animation: rise .8s cubic-bezier(.2,.9,.3,1); filter: drop-shadow(0 0 22px rgba(82,228,255,.18)); }
.stage .divider { margin: 14px 0 6px; max-width: 280px; }
.stage h1 { font-size: 40px; margin: 6px 0 8px; }
.stage p { color: var(--muted); font-size: 18px; line-height: 1.35; margin: 0 0 26px; }

/* ================= Tab „Spielen“ ================= */
/* ================= Setup (ein Screen) ================= */
.setup { padding-top: 12px; }
.setup .label { margin-top: 22px; }
.stepn { font-style: normal; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; background: var(--cream); color: var(--ink); font-size: 14px; letter-spacing: 0; }
.optfix { font-size: 19px; font-weight: 700; letter-spacing: .06em; }
.more { margin-top: 24px; border: 1px solid var(--line2); border-radius: var(--r-panel); overflow: hidden; background: rgba(0,0,0,.2); }
.more-h { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 52px; padding: 0 14px; font-size: 15px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--cream2); border-radius: 0; }
.more-h .ic { transform: rotate(90deg); transition: transform .2s; }
.more.open .more-h .ic { transform: rotate(-90deg); }
.more-b { padding: 0 12px 14px; animation: fade .2s; }
.more-b .opts { margin-bottom: 10px; }
.btn.start { font-family: var(--f-display); font-weight: 400; font-size: 28px; letter-spacing: .1em; }
.botchips { display: grid; grid-template-columns: 1fr; gap: 6px; margin-top: 10px; }
@media (min-width: 560px) { .botchips { grid-template-columns: repeat(3, 1fr); } }
.botchips button { display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 6px; text-align: left; border: 1px dashed var(--line2); background: rgba(0,0,0,.2); }
.botchips .bc-t { flex: 1; min-width: 0; }
.botchips b { display: block; font-size: 16px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.botchips small { display: block; font-size: 12px; color: var(--muted); letter-spacing: .08em; }
.botchips .ic { color: var(--teal); }
.av { position: relative; display: inline-block; flex: none; overflow: hidden; border: 1.5px solid var(--ink); box-shadow: 2px 2px 0 rgba(0,0,0,.6); background: var(--panel3); }
.av svg, .av img { display: block; width: 100%; height: 100%; object-fit: cover; }
.prow .pav { display: flex; align-items: center; }
.prow .pname small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--muted); line-height: 1.1; }
.plist { border: 1px solid var(--line2); border-radius: var(--r-panel); overflow: hidden; }
.prow { display: flex; align-items: center; gap: 10px; padding: 0 8px 0 0; min-height: 54px; background-color: var(--panel); background-image: var(--tex-grain); background-blend-mode: overlay; }
.prow + .prow { border-top: 1px solid var(--line); }
.pc { align-self: stretch; width: 40px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--pc); color: var(--pi, var(--cream));
  font-weight: 800; font-size: 20px; }
.prow .pname { flex: 1; min-width: 0; font-size: 20px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag { font-size: 12px; font-weight: 800; letter-spacing: .16em; border: 1px solid var(--teal); color: var(--teal); padding: 2px 6px; }
.teambtn { height: 32px; padding: 0 10px; font-size: 14px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: var(--pc); color: var(--pi, var(--cream)); border: 1.5px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); flex: none; }
.addrow { display: flex; gap: 8px; margin-top: 10px; }
.addrow input { flex: 1; min-width: 0; height: 48px; background: var(--coal); border: 1px solid var(--line2); outline: none; padding: 0 14px; font-size: 18px; font-weight: 700; letter-spacing: .06em; border-radius: var(--r-btn); }
.addrow input:focus { border-color: var(--cream2); }
.addrow .sq { width: 48px; height: 48px; color: var(--teal); }
.pchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pchips button { height: 38px; padding: 0 14px; border: 1px solid var(--line2); background: var(--panel); font-size: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pchips button::before { content: "+ "; color: var(--teal); }
.shuffle { margin-top: 10px; width: 100%; }
.opts { border: 1px solid var(--line2); border-radius: var(--r-panel); background: var(--panel); }
.optrow { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.optrow + .optrow { border-top: 1px solid var(--line); }
.optrow > span { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.with-dock { padding-bottom: calc(var(--sab) + 110px); }

/* ================= Spiel (Scoreboard) ================= */
.game { height: 100dvh; display: flex; flex-direction: column; gap: 8px;
  padding: calc(var(--sat) + 14px) calc(var(--sar) + 10px) calc(var(--sab) + 10px) calc(var(--sal) + 10px); }
/* Breiter, leuchtender Balken in der Farbe des aktiven Spielers – aus 2 m erkennbar */
.turnbar { position: fixed; z-index: 5; left: 0; right: 0; top: 0; height: calc(var(--sat) + 9px); background-color: var(--pc); background-image: var(--tex-grain); background-blend-mode: overlay;
  box-shadow: 0 0 22px 3px var(--pc), 0 0 6px var(--pc); transform-origin: 50% 0; }
.turnbar.swap { animation: barOn .28s cubic-bezier(.2,.9,.3,1); }
@keyframes barOn { from { transform: scaleX(.15); opacity: .3; } }
.gbar { display: flex; align-items: center; gap: 10px; flex: none; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.gtitle { flex: 1; text-align: center; line-height: 1.15; min-width: 0; }
.gtitle b { display: block; font-size: 17px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.gtitle span { font-size: 13px; color: var(--muted); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.gmain { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
.gleft { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; }

/* Spielerkarten: aktiv = komplett Spielerfarbe, großer Name; Rest stark abgedunkelt */
.duo { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.duo.solo { grid-template-columns: 1fr; }
.sbp { position: relative; display: flex; flex-direction: column; min-height: 0; border-radius: var(--r-panel); overflow: hidden;
  background-color: #111615; background-image: var(--tex-grain); background-blend-mode: overlay; border: 1px solid #232a28; color: var(--dim); }
.sbp.on { background-color: var(--pc); color: var(--pi); border-color: rgba(0,0,0,.5);
  box-shadow: 0 0 26px -6px var(--pc), inset 0 0 0 1px rgba(255,255,255,.12); }
.sbp.swap { animation: cardOn .26s cubic-bezier(.2,.9,.3,1); }
@keyframes cardOn { from { transform: scale(.95); filter: brightness(1.5); } }
.sbp-head { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 12px 2px; }
.sbp-head::before { content: ""; align-self: stretch; width: 6px; background: var(--pc); flex: none; margin: -6px 2px -2px -12px; opacity: .55; }
.sbp.on .sbp-head::before { display: none; }
.sbp-name { flex: 1; min-width: 0; font-size: 18px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sbp.on .sbp-name { font-size: clamp(26px, 7.4vw, 46px); letter-spacing: .05em; }
.sbp-team { padding: 0 12px 2px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .85; }
.sbp-team b { font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.tt { font-weight: 800; padding: 0 4px; margin-right: 5px; background: rgba(0,0,0,.35); }
.throw { display: inline-block; width: 9px; height: 9px; background: currentColor; margin-right: 7px; vertical-align: 3px; transform: rotate(45deg); }
.pips { display: flex; gap: 3px; flex: none; }
.pips i { width: 11px; height: 11px; border: 1.5px solid currentColor; opacity: .85; }
.pips i.w { background: currentColor; opacity: 1; }
.setlbl { font-size: 15px; font-weight: 800; letter-spacing: .06em; flex: none; }
.sbp-rem { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; font-size: clamp(64px, 21vw, 150px); font-weight: 700; line-height: 1;
  font-variant-numeric: tabular-nums; letter-spacing: -.01em; color: var(--cream2); opacity: .72; }
.sbp.on .sbp-rem { color: var(--pi); opacity: 1; font-weight: 800; }
/* Checkout-Weg direkt unter dem Rest */
.sbp-rem { flex-direction: column; }
.sbp-co { flex: none; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; padding: 0 10px; margin-top: .14em; font-size: 1rem; line-height: 1; letter-spacing: 0; }
.co-c { min-width: 2.6em; text-align: center; background: var(--cream); color: var(--ink); padding: 4px 10px; font-weight: 800; font-size: clamp(22px, 5.4vw, 34px); line-height: 1.05;
  letter-spacing: .02em; font-variant-numeric: tabular-nums; border: 2px solid var(--ink); box-shadow: 3px 3px 0 rgba(0,0,0,.45); }
.co-c.d { background: var(--green); color: var(--cream); }
.co-c.b { background: var(--red); color: var(--cream); }
.co-l { font-size: clamp(14px, 3.4vw, 18px); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--pi); opacity: .85; }
.sbr-rem { flex-direction: column; justify-content: center; align-items: flex-end; }
.sbr-co { display: flex; gap: 4px; margin-top: 2px; }
.sbr-co .co-c { font-size: 16px; padding: 2px 6px; min-width: 0; box-shadow: none; border-width: 1px; }
.sbr-co .co-l { font-size: 11px; }
.sbp-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.06); background: rgba(0,0,0,.25); }
.sbp.on .sbp-stats { background: rgba(0,0,0,.16); border-top-color: rgba(0,0,0,.2); }
.sbp-stats span { padding: 5px 10px; display: flex; flex-direction: column; }
.sbp-stats span + span { border-left: 1px solid rgba(255,255,255,.06); }
.sbp-stats small { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; opacity: .8; }
.sbp-stats b { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }

.rows { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 5px; overflow: auto; }
.sbr { flex: 1 1 0; min-height: 44px; max-height: 110px; display: flex; align-items: stretch; border-radius: var(--r-panel); overflow: hidden;
  background-color: #111615; background-image: var(--tex-grain); background-blend-mode: overlay; border: 1px solid #232a28; color: var(--dim); }
.sbr.on { flex-grow: 1.8; max-height: 170px; background-color: var(--pc); color: var(--pi); border-color: rgba(0,0,0,.5); box-shadow: 0 0 24px -6px var(--pc); }
.sbr.swap { animation: cardOn .26s cubic-bezier(.2,.9,.3,1); }
.sbr-c { width: 8px; background: var(--pc); flex: none; opacity: .55; }
.sbr.on .sbr-c { display: none; }
.sbr-n { flex: 1; min-width: 0; padding: 4px 12px; display: flex; flex-direction: column; justify-content: center; }
.sbr-n > b { font-size: 18px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.1; }
.sbr.on .sbr-n > b { font-size: clamp(26px, 6.4vw, 44px); }
.sbr-n small { font-size: 13px; font-weight: 600; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .85; }
.sbr-n small b { font-size: inherit; letter-spacing: 0; text-transform: none; font-weight: 800; }
.sbr-n .whob { text-transform: uppercase; }
.sbr-rem { display: flex; align-items: center; padding: 0 14px; font-size: clamp(28px, 5.6dvh, 60px); font-weight: 700; font-variant-numeric: tabular-nums;
  min-width: 92px; justify-content: flex-end; color: var(--cream2); opacity: .75; }
.sbr.on .sbr-rem { color: var(--pi); opacity: 1; font-weight: 800; font-size: clamp(40px, 8dvh, 84px); }

.ticker { position: relative; flex: none; min-height: 42px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 10px; background: var(--coal);
  border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line2); font-size: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.tk-l { font-size: 12px; font-weight: 800; letter-spacing: .22em; color: var(--teal); margin-right: 4px; }
.tk-c { background: var(--cream); color: var(--ink); padding: 3px 9px; font-weight: 800; font-size: 18px; letter-spacing: .04em; }
.tk-c.d { background: var(--green); color: var(--cream); }
.tk-c.b { background: var(--red); color: var(--cream); }
.tk-w { color: var(--cream); }
.tk-target b { color: var(--yellow); font-size: 20px; }

.pad { flex: none; display: flex; flex-direction: column; gap: 6px; }
.entry { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 0 4px; }
.entry .who { font-size: 15px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.entry .val { font-size: 42px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.entry .val.empty { color: var(--line2); }
.entry .val small { font-size: 14px; color: var(--muted); letter-spacing: .14em; font-weight: 700; margin-left: 4px; }
.quick { display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; }
.quick button { height: 36px; background: var(--coal); border: 1px solid var(--line2); font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.keys.four { grid-template-columns: repeat(4, 1fr); }
.key { height: clamp(50px, 7.4dvh, 80px); background: var(--panel2); border: 1px solid var(--line2); box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
  font-size: 30px; font-weight: 700; display: flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.key.ok { background: var(--red); border-color: var(--red-d); color: var(--cream); font-size: 21px; font-weight: 800; letter-spacing: .14em; }
.key.back { color: var(--muted); }
.key.wide { grid-column: span 4; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr) 1.1fr; gap: 4px; }
.slot { height: 40px; display: flex; align-items: center; justify-content: center; background: var(--coal); border: 1px dashed var(--line2); font-size: 20px; font-weight: 800; color: var(--dim); }
.slot.filled { border-style: solid; color: var(--cream); background: var(--panel2); }
.slot.sum { border: 1px solid var(--teal); color: var(--teal); }
.mults { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.mults button { height: 40px; border: 1px solid var(--line2); background: var(--coal); font-size: 16px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.mults button.on.m1 { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.mults button.on.m2 { background: var(--green); color: var(--cream); border-color: var(--green); }
.mults button.on.m3 { background: var(--red); color: var(--cream); border-color: var(--red); }
.dgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.dk { height: clamp(40px, 5.9dvh, 72px); background: var(--panel2); border: 1px solid var(--line2); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); font-size: 23px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dk.bull { color: var(--green); }
.dk.b50 { color: var(--red); }
.dk.miss { color: var(--muted); font-size: 17px; letter-spacing: .1em; text-transform: uppercase; }
.dk.back { grid-column: span 2; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.boardpad { display: flex; flex-direction: column; gap: 6px; flex: 1; min-height: 0; }
.boardbox { flex: 1; min-height: 220px; display: flex; align-items: center; justify-content: center; }
.inboard { width: 100%; height: 100%; max-height: 60dvh; }
.inboard .bf:active { fill: var(--gold); }
.inboard .bn { fill: var(--cream); font-family: var(--f-num); font-weight: 800; font-size: 13px; }
.boardrow { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pad.board { flex: 1; min-height: 0; }

@media (orientation: portrait) {
  .boardmode .gleft { flex: none; }
  .boardmode .duo { flex: none; }
  .boardmode .sbp-rem { font-size: clamp(48px, 13vw, 96px); padding: 4px 0; }
  .boardmode .sbp-stats { display: none; }
  .boardmode .rows { flex: none; max-height: 30dvh; }
  .boardmode .sbr { min-height: 38px; flex: none; }
}
@media (min-width: 820px) and (orientation: landscape) {
  .gmain { flex-direction: row; gap: 14px; }
  .pad { flex: 0 0 min(44%, 520px); justify-content: flex-end; }
  .pad.board { flex: 0 0 min(46%, 560px); }
  .key { height: clamp(56px, 10.5dvh, 100px); font-size: 34px; }
  .quick button { height: 44px; font-size: 18px; }
  .dk { height: clamp(50px, 8.6dvh, 86px); font-size: 26px; }
  .sbp-rem { font-size: clamp(80px, 12vw, 190px); }
  .co-c { font-size: clamp(26px, 3.4vw, 44px); padding: 5px 14px; }
  /* Eingabe groß und mittig im freien Bereich über der Tastatur */
  .pad .entry { flex: 1 1 auto; min-height: 0; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
  .pad .entry .val { font-size: clamp(64px, 17dvh, 170px); letter-spacing: -.01em; }
  .pad .entry .val small { display: block; text-align: center; font-size: 16px; margin: 4px 0 0; }
  .pad .entry .who { font-size: 18px; }
}
@media (min-width: 700px) and (orientation: portrait) {
  .sbp-rem { font-size: clamp(100px, 17vw, 220px); }
  .entry .val { font-size: 60px; }
  .key { height: clamp(62px, 7.2dvh, 92px); font-size: 34px; }
  .sbp-name { font-size: 22px; }
  .sbp-stats b { font-size: 24px; }
}

/* ================= Leg-/Set-Info ================= */
.moment { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px;
  background: rgba(6,8,8,.86); animation: fade .15s; }
.mo-fx { position: absolute; top: -26px; width: 92px; height: 66px; }
.mo-fx svg { width: 100%; height: 100%; }
.mo-fx.l { left: -18px; } .mo-fx.r { right: -18px; transform: scaleX(-1); }
.mo-big { font-size: clamp(76px, 24vw, 150px); line-height: .9; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 6px 6px 0 var(--ink); }
.mo-name { margin-top: 8px; font-weight: 800; font-size: clamp(22px, 6vw, 32px); letter-spacing: .1em; text-transform: uppercase; }
.mo-info { margin-top: 6px; font-weight: 700; font-size: 18px; letter-spacing: .06em; opacity: .9; }
.mo-stand { display: inline-block; margin-top: 12px; padding: 6px 16px; background: var(--ink); color: var(--mg-gold); font-weight: 800; font-size: 24px; letter-spacing: .08em; }
.mo-btns { width: min(100%, 480px); display: flex; flex-direction: column; gap: 6px; }
.mo-btns .btn.textonly { color: var(--cream2); }
@keyframes burstIn { from { transform: scale(.2) rotate(-30deg); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }

/* ================= Ergebnis ================= */

.sbtable-wrap { margin-top: 18px; border: 1px solid var(--line2); border-radius: var(--r-panel); overflow-x: auto; background: var(--panel); }
.sbtable { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.sbtable th { padding: 0; font-size: 15px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; text-align: right; vertical-align: bottom; }
.sbtable th div { border-top: 6px solid var(--pc); padding: 8px 12px; background: var(--panel2); }
.sbtable th.win div { color: var(--mg-gold); }
.sbtable th:first-child div { border-top-color: transparent; }
.sbtable td { padding: 9px 12px; text-align: right; font-size: 19px; font-weight: 700; border-top: 1px solid var(--line); white-space: nowrap; }
.sbtable td:first-child { text-align: left; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.sbtable tr:nth-child(even) td { background: var(--coal); }
.sbtable td.best { color: var(--gold); }
.result-btns { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.ranks { border: 1px solid var(--line2); border-radius: var(--r-panel); overflow: hidden; margin-top: 18px; }
.rk { display: flex; align-items: stretch; background: var(--panel); min-height: 56px; }
.rk + .rk { border-top: 1px solid var(--line); }
.rk-pos { width: 44px; display: flex; align-items: center; justify-content: center; background: var(--pc); color: var(--pi); font-weight: 800; font-size: 22px; }
.rk-name { flex: 1; display: flex; align-items: center; padding: 0 14px; font-size: 19px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.rk-val { display: flex; align-items: center; padding: 0 16px; font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; background: var(--coal); }
.rk.first .rk-val { color: var(--gold); }
.perplayer { margin-top: 10px; }

/* ================= Statistiken (Programmheft) ================= */
.stats { padding-top: 14px; }
.st-head { display: flex; gap: 8px; align-items: stretch; margin-bottom: 10px; }
.st-who { flex: 1; min-width: 0; display: flex; align-items: stretch; border: 1px solid var(--line2); background: var(--panel); overflow: hidden; text-align: left; border-radius: var(--r-panel); }
.st-who:active { background: var(--panel2); }
.st-who .pfblock { width: 56px; font-size: 26px; }
.st-name { flex: 1; min-width: 0; padding: 8px 12px; display: flex; flex-direction: column; justify-content: center; }
.st-name small { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.st-name b { font-family: var(--f-display); font-weight: 900; font-size: 26px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.15; }
.st-who > .ic { align-self: center; margin-right: 12px; transform: rotate(90deg); color: var(--gold); }
.st-cmp { height: auto; padding: 0 12px; font-size: 15px; }
.pg { margin-top: 30px; }
.pg-h { margin: 0; text-align: center; font-family: var(--f-display); font-weight: 900; font-size: 22px; letter-spacing: .12em; text-transform: uppercase; }
.pg > .divider { max-width: 260px; margin: 4px auto 14px; }
.heat { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 12px; }
.heat-board { width: 100%; max-width: 420px; background: var(--cream); padding: 10px; border-radius: var(--r-panel); background-image: var(--tex-engrave); }
.heatboard { display: block; width: 100%; height: auto; background: var(--cream); border-radius: 50%; }
.heatboard .hn { fill: var(--cream); font-family: var(--f-num); font-weight: 800; font-size: 13px; }
.heat-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: .04em; }
.heat-legend i { display: inline-block; width: 12px; height: 12px; margin-right: 5px; vertical-align: -1px; border: 1px solid var(--ink); }
.heat-legend i.none, .dot.none { background: var(--cream); background-image: var(--tex-engrave); }
.heat-sel { width: 100%; min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 12px; background: var(--panel); border: 1px solid var(--line2); border-left: 4px solid var(--gold); padding: 6px 12px; color: var(--muted); }
.heat-sel b { font-size: 26px; font-weight: 800; color: var(--cream); }
.heat-sel span { font-variant-numeric: tabular-nums; }
.sbtable.dbl th button { width: 100%; padding: 8px 12px; text-align: right; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 14px; color: var(--muted); background: var(--panel2); border-radius: 0; }
.sbtable.dbl th button.on { color: var(--gold); }
.sbtable.dbl th:first-child button { text-align: left; }
.sbtable.dbl th > div { padding: 8px 12px; border-top: 0; color: var(--muted); font-size: 14px; }
.sbtable.dbl td:first-child { font-size: 18px; color: var(--cream); letter-spacing: .04em; }
.sbtable.dbl tr.sel td { background: var(--panel3); }
.sbtable .dot { display: inline-block; width: 10px; height: 10px; margin-right: 8px; border: 1px solid var(--ink); }
.empty { margin-top: 24px; }
.empty-card h2 { margin: 10px 0 8px; font-size: 30px; color: #182019; }
.empty-card p { margin: 0; color: #2c3532; font-size: 17px; line-height: 1.35; font-weight: 600; }
.empty .btn { margin-top: 6px; }
.pc.sm { width: 32px; height: 32px; align-self: center; font-size: 16px; }
.plist-pick { max-height: 50dvh; overflow: auto; }
@media (min-width: 900px) {
  .stats { max-width: 920px; }
}
.settings-btn { width: 100%; margin-top: 22px; color: var(--muted); }

/* ================= Meilenstein 4: Diagramme, Matchliste, Vergleich ================= */
@media (min-width: 900px) {
  .pgs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; align-items: start; }
  .pg.wide { grid-column: 1 / -1; }
}
.ch-h { margin: 16px 0 6px; font-size: 13px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.chart { display: block; width: 100%; height: auto; background: var(--coal); border: 1px solid var(--line2); border-radius: var(--r-panel); }
.chart .ax { fill: var(--muted); font-family: var(--f-num); font-size: 10px; font-weight: 700; }
.chart .ax.dim { fill: var(--dim); font-size: 9px; }
.chart .bv { fill: var(--cream); font-family: var(--f-num); font-size: 12px; font-weight: 800; }
.chart-key { display: flex; gap: 16px; font-size: 13px; color: var(--muted); margin-top: 6px; }
.chart-key i { display: inline-block; width: 14px; height: 4px; margin-right: 6px; vertical-align: 3px; }
.chart-empty { color: var(--muted); font-size: 15px; padding: 18px; text-align: center; border: 1px dashed var(--line2); }
@media (min-width: 900px) { .pg.wide .chart { max-height: 300px; } }

.mlist { border: 1px solid var(--line2); border-radius: var(--r-panel); overflow: hidden; }
.ml + .ml { border-top: 1px solid var(--line); }
.ml-row { display: flex; align-items: stretch; width: 100%; text-align: left; background: var(--panel); border-radius: 0; min-height: 58px; }
.ml-row:active, .ml.open .ml-row { background: var(--panel2); }
.ml-res { width: 40px; flex: none; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; }
.ml-res.w { background: var(--green); color: var(--cream); }
.ml-res.l { background: var(--red-d); color: var(--cream); }
.ml-mid { flex: 1; min-width: 0; padding: 8px 12px; display: flex; flex-direction: column; justify-content: center; }
.ml-mid b { font-size: 17px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-mid small { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.ml-avg { min-width: 84px; padding: 6px 14px; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; background: var(--coal); border-left: 1px solid var(--line); }
.ml-avg small { font-size: 11px; color: var(--gold); font-weight: 700; }
.ml-avg b { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ml-detail { padding: 4px 10px 14px; background: var(--ink); border-top: 1px solid var(--gold); animation: fade .2s; }
.ml-detail > .label:first-child { margin-top: 12px; }
.legd { margin-top: 12px; }
.legd h4 { margin: 0 0 6px; font-size: 14px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--cream2); }
.turns { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; background: var(--panel); border: 1px solid var(--line); }
.turns th { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 6px 8px; text-align: right; border-top: 4px solid var(--pc, transparent); background: var(--panel2); }
.turns th:first-child, .turns td:first-child { text-align: left; color: var(--dim); width: 34px; }
.turns td { padding: 5px 8px; text-align: right; font-size: 18px; font-weight: 700; border-top: 1px solid var(--line); }
.turns td small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.turns td i { display: block; font-style: normal; font-size: 11px; color: var(--gold); letter-spacing: .06em; text-transform: uppercase; }
.turns td.bust { color: var(--red); }
.turns td.out { color: var(--green); }
.turns td.out small { color: var(--gold); }

.compare { padding-top: 14px; }
.cm-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; }
.cm-p { background: var(--pc); color: var(--pi); background-image: var(--tex-halftone); padding: 16px 12px; text-align: left; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); border-radius: var(--r-panel); min-width: 0; }
.cm-p.r { text-align: right; }
.cm-p small { display: block; font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; opacity: .85; }
.cm-p b { display: block; font-family: var(--f-display); font-weight: 900; font-size: clamp(20px, 6vw, 34px); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-vs { align-self: center; margin: 0 -6px; z-index: 1; background: var(--yellow); color: var(--ink); font-weight: 800; font-style: italic; font-size: 22px; padding: 6px 8px; border: 2px solid var(--ink); transform: rotate(-8deg); box-shadow: 3px 3px 0 var(--ink); }
.cm-h2h { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 16px 0 12px; }
.cm-h2h span { font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cm-h2h small { font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.cm-table { margin-top: 12px; border: 1px solid var(--line2); border-radius: var(--r-panel); overflow: hidden; }
.cm-sec { background: var(--ink); color: var(--gold); font-family: var(--f-display); font-weight: 900; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; text-align: center; padding: 8px; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); }
.cm-sec:first-child { border-top: 0; }
.cm-row { display: grid; grid-template-columns: 1fr 1.3fr 1fr; align-items: center; background: var(--panel); min-height: 44px; }
.cm-row + .cm-row { border-top: 1px solid var(--line); }
.cm-l { text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 0 4px; }
.cm-v { padding: 6px 10px; font-size: clamp(17px, 5vw, 22px); white-space: nowrap; font-weight: 800; font-variant-numeric: tabular-nums; }
.cm-v.r { text-align: right; }
.cm-v.best { color: var(--gold); }
.cm-v.best::after { content: " ★"; font-size: 13px; vertical-align: 3px; }
.cm-v.r.best::after { content: ""; }
.cm-v.r.best::before { content: "★ "; font-size: 13px; vertical-align: 3px; }

/* Feinschliff: Einblenden bei Screenwechsel */
#app.enter .page, #app.enter .game, #app.enter .stage { animation: rise .28s cubic-bezier(.2,.9,.3,1); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Feinschliff: iPhone im Querformat */
@media (orientation: landscape) and (max-height: 520px) {
  .gmain { flex-direction: row; gap: 10px; }
  .pad { flex: 0 0 52%; justify-content: flex-end; gap: 4px; }
  .pad.board { flex: 0 0 46%; }
  .key { height: clamp(32px, 11.5dvh, 52px); font-size: 22px; }
  .dk { height: clamp(28px, 9.5dvh, 44px); font-size: 18px; }
  .quick button { height: 30px; font-size: 14px; }
  .pad .entry { gap: 0; }
  .pad .entry .val { font-size: clamp(30px, 14dvh, 64px); }
  .pad .entry .val small { display: inline; font-size: 13px; margin-left: 4px; }
  .pad .entry .who { font-size: 13px; }
  .co-c { font-size: 18px; padding: 2px 8px; }
  .slot, .mults button { height: 30px; font-size: 15px; }
  .sbp-rem { font-size: clamp(44px, 16dvh, 90px); }
  .sbp-head { min-height: 28px; }
  .sbp-stats b { font-size: 15px; }
  .ticker { min-height: 32px; }
  .gbar { padding-bottom: 2px; }
  .gbar .sq { width: 36px; height: 36px; }
  .boardbox { min-height: 0; }
  .inboard { max-height: 52dvh; }
  .mo-big { font-size: clamp(60px, 20dvh, 120px); }
  .mo-card { padding: 14px; }
}
@media (min-width: 900px) { .pgs .pg:not(.wide) .kv { grid-template-columns: repeat(3, 1fr); } }

/* ================= Ausbullen ================= */
.bulloff { gap: 10px; }
.bo-main { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.bo-left { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
.bo-who { flex: none; display: flex; align-items: baseline; justify-content: center; gap: 10px; padding: 8px 12px; border-radius: var(--r-panel);
  background-color: var(--pc); background-image: var(--tex-grain); background-blend-mode: overlay; color: var(--pi); box-shadow: 0 0 22px -6px var(--pc); animation: cardOn .26s; }
.bo-who b { font-size: clamp(26px, 8vw, 44px); font-weight: 800; letter-spacing: .05em; text-transform: uppercase; line-height: 1; }
.bo-who span { font-size: 15px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
.bo-board { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.realboard { width: 100%; height: 100%; max-height: 62dvh; touch-action: none; -webkit-touch-callout: none; filter: drop-shadow(0 6px 18px rgba(0,0,0,.6)); }
.realboard .rbn { fill: #d9d5c4; font-family: var(--f-num); font-weight: 800; font-size: 26px; pointer-events: none; }
.rbd.pending circle:first-child { stroke: #fff; }
.rbd.win .halo { fill: none; stroke: var(--dc); stroke-width: 3; animation: halo 1s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes halo { from { transform: scale(.5); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.bo-side { flex: none; display: flex; flex-direction: column; gap: 8px; }
.bo-chips { display: grid; grid-template-columns: 1fr; gap: 4px; }
.bo-chip { display: flex; align-items: center; gap: 10px; min-height: 40px; padding-right: 10px; background: rgba(0,0,0,.3); border: 1px solid var(--line); color: var(--muted); }
.bo-chip .pc { align-self: stretch; width: 32px; font-size: 16px; }
.bo-chip.on { border-color: var(--pc); color: var(--cream); box-shadow: inset 4px 0 0 var(--pc); }
.bo-chip.out { opacity: .4; }
.bo-n { flex: 1; min-width: 0; font-size: 17px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bo-n small { margin-left: 6px; font-size: 11px; letter-spacing: .1em; color: var(--muted); }
.bo-d { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bo-hint { margin: 0; text-align: center; }
.bo-btns { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
.bo-banner { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%) rotate(-3deg); min-width: 70%; padding: 10px 22px; text-align: center;
  border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink), 0 0 40px rgba(255,212,92,.5); animation: pop .4s cubic-bezier(.2,1.6,.4,1) both; }
.bo-banner.win { background-color: var(--pc); background-image: var(--tex-grain), var(--tex-halftone); background-blend-mode: overlay, normal; color: var(--pi); }
.bo-banner.tie { background: var(--mg-gold); color: var(--ink); }
.bo-banner small { display: block; font-size: 14px; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; }
.bo-banner b { display: block; font-size: clamp(30px, 9vw, 56px); line-height: 1.05; }
.bulloff .bo-board:has(.bo-banner) { padding-bottom: 96px; }
.bo-banner span { display: block; font-size: 17px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.loupe { position: fixed; z-index: 85; width: 150px; height: 150px; border-radius: 50%; overflow: hidden; pointer-events: none; background: #0b0e0d;
  border: 3px solid var(--cream); box-shadow: 0 0 0 2px var(--ink), 0 8px 24px rgba(0,0,0,.7); }
.loupe svg { width: 100%; height: 100%; display: block; }
.loupe .rbn { display: none; }
.loupe .cross { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; }
.loupe .cross::before, .loupe .cross::after { content: ""; position: absolute; background: #fff; box-shadow: 0 0 0 1px #000; }
.loupe .cross::before { left: 14px; top: 0; width: 2px; height: 30px; }
.loupe .cross::after { top: 14px; left: 0; height: 2px; width: 30px; }
.lp-t { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font-size: 13px; font-weight: 800; letter-spacing: .06em; color: #fff; text-shadow: 0 1px 2px #000, 0 0 4px #000; }
@media (min-width: 820px) and (orientation: landscape), (orientation: landscape) and (max-height: 520px) {
  .bo-main { flex-direction: row; gap: 16px; }
  .bo-side { flex: 0 0 min(40%, 420px); justify-content: center; }
  .realboard { max-height: none; }
}

/* ================= Bots ================= */
.botbox { position: relative; display: flex; align-items: center; gap: 8px; padding: 2px 12px; }
.minib { width: 92px; height: 92px; flex: none; }
.minib .realboard { width: 100%; height: 100%; max-height: none; filter: none; }
.minib .rbn { display: none; }
.rbd.fly { animation: dartLand .42s cubic-bezier(.3,1.5,.5,1); transform-box: fill-box; }
@keyframes dartLand { from { opacity: 0; } 40% { opacity: 1; } }
.rbd.fly circle:first-child { animation: landRing .42s ease-out; transform-box: fill-box; transform-origin: center; }
@keyframes landRing { from { transform: scale(3.4); } }
.speech { position: absolute; z-index: 4; left: 62px; top: -10px; right: 8px; padding: 7px 10px; background: #f6f2e6; color: #141816; border: 2px solid var(--ink);
  font-size: 15px; font-weight: 700; line-height: 1.2; letter-spacing: .01em; text-transform: none; box-shadow: 3px 3px 0 rgba(0,0,0,.6); animation: pop .3s cubic-bezier(.2,1.6,.4,1) both; }
.speech::before { content: ""; position: absolute; left: -12px; top: 16px; border: 6px solid transparent; border-right-color: var(--ink); border-left: 0; width: 0; height: 0; border-width: 7px 12px 7px 0; }
.speech b { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--red-d); }
.sbr .botbox { padding: 0 6px; }
.sbr .botbox .av { width: 34px !important; height: 34px !important; }
.sbr .minib { width: 48px; height: 48px; }
.sbr .speech { left: auto; right: 4px; top: -6px; width: min(60vw, 260px); }
.sbr .speech::before { display: none; }
.sbr, .sbp { overflow: visible; }
.botpad { display: flex; flex-direction: column; gap: 8px; padding: 6px 0; }
.bp-top { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line2); background: rgba(0,0,0,.25); }
.bp-t b { display: block; font-size: 24px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.bp-t span { font-size: 16px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.bp-t span i { font-style: normal; animation: blink 1s steps(2) infinite; }
.bp-t span i:nth-child(2) { animation-delay: .2s; } .bp-t span i:nth-child(3) { animation-delay: .4s; }
.bp-t small { display: block; color: var(--muted); font-size: 13px; letter-spacing: .1em; }
.botpad .btn { width: 100%; }
.bo-who .av { margin-right: 4px; align-self: center; }
.endlines { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.endline { position: relative; display: flex; align-items: flex-start; gap: 14px; }
.endline .speech { position: relative; left: 0; top: 0; right: auto; flex: 1; }

/* ================= Statistik: Unter-Reiter, ruhiger Satz ================= */
.subtabs { display: flex; gap: 0; margin: 14px -16px 0; padding: 0 16px; overflow-x: auto; scrollbar-width: none; position: relative; }
.subtabs::-webkit-scrollbar { display: none; }
.subtabs::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--tex-zebra); opacity: .14; pointer-events: none; }
.subtabs button { flex: 1 0 auto; height: 46px; padding: 0 7px; font-size: 14px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--dim); border-radius: 0; border-bottom: 4px solid transparent; position: relative; z-index: 1; }
.subtabs button.on { color: var(--cream); border-bottom-color: var(--red); }
.subbody { padding-top: 18px; animation: fade .2s; }
.sblock { margin-top: 26px; }
.sblock:first-child { margin-top: 4px; }
.sblock > .label { margin-top: 0; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kv.three { grid-template-columns: repeat(3, 1fr); }
.kv.four { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 560px) { .kv { grid-template-columns: repeat(4, 1fr); } .kv.three { grid-template-columns: repeat(3, 1fr); } .kv.four { grid-template-columns: repeat(4, 1fr); } }
.kv-c { padding: 14px 14px 12px; min-width: 0; border-radius: var(--r-panel); background-color: var(--panel); background-image: var(--tex-grain); background-blend-mode: overlay; border: 1px solid var(--line); }
.kv-c small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); line-height: 1.2; }
.kv-c b { display: block; margin-top: 6px; font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; white-space: nowrap; }
.kv-c em { display: block; margin-top: 4px; font-style: normal; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.minirow { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.minirow span { padding: 10px 6px; text-align: center; }
.minirow span + span { border-left: 1px solid var(--line); }
.minirow small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.minirow b { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.heatboard .htop { fill: #ffd45c; font-family: var(--f-num); font-weight: 800; font-size: 13px; }
.topm { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-left: 8px; border-radius: 50%; background: var(--ink); color: #ffd45c; border: 1.5px solid #ffd45c; font-size: 11px; font-weight: 800; vertical-align: 2px; }
.heat-legend .topm { margin: 0 5px 0 0; vertical-align: -1px; }
.heat-note { text-align: center; margin: 0; }
.cm-dbl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cm-dcol { min-width: 0; }
.cm-dname { margin-bottom: 8px; padding: 4px 8px; background: var(--pc); color: var(--pi); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-dbl .heat-legend, .cm-dbl .heat-note { display: none; }
.cm-dbl .heat-board { padding: 5px; }

/* ================= Queen-Look (Update 3): heraldisch, Gold/Creme auf Schwarz, Pop-Art, Kupferstich ================= */
/* Profilkarte */
.profile { display: flex; align-items: stretch; width: 100%; border: 1px solid var(--line2); background: var(--panel); border-radius: var(--r-panel); overflow: hidden; text-align: left; position: relative; }
.profile::after { content: ""; position: absolute; inset: 3px; border: 1px solid rgba(212,166,58,.28); pointer-events: none; }
.profile:active { background: var(--panel2); }
.pfblock { width: 64px; flex: none; display: flex; align-items: center; justify-content: center; background-color: var(--pc, var(--red)); background-image: var(--tex-halftone);
  color: var(--pi, var(--cream)); font-family: var(--f-display); font-weight: 900; font-size: 30px; border-right: 2px solid var(--ink); }
.pfname { flex: 1; min-width: 0; padding: 12px 14px; display: flex; flex-direction: column; justify-content: center; }
.pfname small { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.pfname b { font-size: 28px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.1; }
.pfavg { padding: 10px 16px; display: flex; flex-direction: column; justify-content: center; align-items: flex-end; border-left: 1px solid var(--line2); background: var(--ink); }
.pfavg small { font-size: 12px; font-weight: 700; letter-spacing: .18em; color: var(--gold); }
.pfavg b { font-size: 38px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.resume { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 12px; padding: 12px 14px; text-align: left; background: var(--panel); border: 1px solid var(--line2); border-left: 4px solid var(--red); }
.resume .live { font-size: 12px; font-weight: 800; letter-spacing: .16em; background: var(--red); color: var(--cream); padding: 3px 7px; }
.resume .ct { flex: 1; min-width: 0; }
.resume b { display: block; font-size: 17px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.resume small { display: block; color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Hero: schwarze Bühne, doppelter Goldrahmen, Eck-Ornamente, Strahlenkranz, Lorbeer, Funke an der Zündschnur */
.hero { position: relative; margin-top: 16px; padding: 20px 18px 18px; background: var(--ink); border: 2px solid var(--gold); border-radius: var(--r-panel); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--gold); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 10px; border: 1px dashed rgba(212,166,58,.25); pointer-events: none; }
.hero-art { position: absolute; left: 50%; top: 54%; width: 120%; max-width: 640px; aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; opacity: .9; }
.hero-art svg { width: 100%; height: 100%; }
.corner { position: absolute; width: 38px; height: 38px; pointer-events: none; z-index: 2; }
.corner svg { width: 100%; height: 100%; display: block; }
.corner.tl { top: 10px; left: 10px; } .corner.tr { top: 10px; right: 10px; transform: scaleX(-1); }
.corner.bl { bottom: 10px; left: 10px; transform: scaleY(-1); } .corner.br { bottom: 10px; right: 10px; transform: scale(-1); }
.hero-band { position: relative; margin: 6px 30px 0; height: 28px; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--tex-hatch-gold); border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); }
.hero-band span { background: var(--ink); padding: 0 8px; white-space: nowrap; font-family: var(--f-display); font-weight: 900; font-size: 12px; letter-spacing: .12em; color: var(--gold-l); text-transform: uppercase; }
.hero-main { position: relative; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 12px 0 2px; }
.hero-title { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hero-title b { font-family: var(--f-display); font-weight: 900; font-size: 26px; letter-spacing: .1em; color: var(--gold-l); }
.hero-num { font-size: clamp(110px, 34vw, 170px); font-weight: 800; line-height: .9; letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: var(--cream);
  text-shadow: 3px 3px 0 var(--red), 6px 6px 0 var(--ink), 7px 7px 0 var(--gold); }
.hero-meta { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 14px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 6px 0 14px; }
.hero-meta::before, .hero-meta::after { content: "◆"; font-size: 9px; color: var(--gold); }
.hero-btns { position: relative; z-index: 4; display: grid; grid-template-columns: 1fr; gap: 10px; padding: 0 8px 8px; }
.hero-btns .btn { white-space: nowrap; letter-spacing: .16em; font-size: 20px; }

/* Partyspiel-Kacheln: Pop-Art-Farbblock mit Raster, feiner Goldrahmen, Stern */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 700px) { .modes { grid-template-columns: repeat(4, 1fr); } }
.mode { position: relative; display: flex; flex-direction: column; border: 2px solid var(--ink); outline: 1px solid var(--line2); border-radius: var(--r-panel); overflow: hidden; text-align: left; background: var(--ink); }
.mode:active { transform: translateY(1px); }
.mode-art { position: relative; height: 96px; display: flex; align-items: center; justify-content: center; background-color: var(--mc); background-image: var(--tex-halftone); border-bottom: 2px solid var(--ink); }
.mode-art::before { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(11,10,8,.45); }
.mode-art::after { content: "★"; position: absolute; right: 9px; top: 6px; font-size: 13px; color: var(--ink); opacity: .6; }
.mode-name { padding: 10px 12px; font-family: var(--f-display); font-weight: 900; font-size: 16px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.15; }
.badge-mode { display: inline-flex; align-items: center; justify-content: center; background: var(--badge-bg); color: var(--ink); position: relative;
  border: 2px solid var(--ink); border-radius: 3px; box-shadow: 3px 3px 0 var(--ink); flex: none; }
.badge-mode::before { content: ""; position: absolute; inset: 3px; border: 1px solid rgba(11,10,8,.4); }
.badge-mode svg { width: 62%; height: 62%; position: relative; }

/* Setup: Plakat-Kopf und Spielregeln im Kupferstich */
.su-head { position: relative; display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: var(--r-panel); color: var(--ink);
  background: var(--cream); background-image: var(--tex-engrave); }
.su-head > div { flex: 1; background: var(--cream); border: 2px solid var(--ink); outline: 1px solid var(--ink); outline-offset: 3px; padding: 10px 14px; text-align: center; }
.su-head b { display: block; font-family: var(--f-display); font-weight: 900; font-size: 30px; line-height: 1.05; color: var(--ink); }
.su-head small { display: block; margin-top: 2px; font-size: 12px; font-weight: 800; letter-spacing: .26em; text-transform: uppercase; color: var(--red-d); }
.rules { margin-top: 12px; border-radius: var(--r-panel); padding: 12px; color: var(--ink); background: var(--cream); background-image: var(--tex-engrave); }
.rules-in { background: var(--cream); border: 2px solid var(--ink); outline: 1px solid var(--ink); outline-offset: 3px; padding: 16px 14px 14px; text-align: center; }
.rules .overline { display: block; font-size: 12px; font-weight: 800; letter-spacing: .26em; text-transform: uppercase; color: var(--red-d); margin-top: 10px; }
.rules h2 { margin: 2px 0 6px; font-family: var(--f-display); font-weight: 900; font-size: 32px; }
.rules .divider { max-width: 220px; margin: 0 auto 8px; }
.rules p { margin: 0; font-size: 17px; line-height: 1.38; color: #3a3226; }
.rules p.small { margin-top: 8px; font-size: 14px; color: #5a4e3c; }
.dock .btn.start { font-family: var(--f-display); font-weight: 900; font-size: 22px; letter-spacing: .2em; }
.dock > div { position: relative; }

/* Sieger: roter Pop-Art-Block, Strahlenkranz, Lorbeer + Pokal, Band, Funke */
.victory { position: relative; text-align: center; padding: 24px 14px 22px; background-color: var(--red); background-image: var(--tex-halftone-lg);
  border: 2px solid var(--ink); outline: 1px solid var(--gold); outline-offset: 3px; border-radius: var(--r-panel); overflow: hidden; margin-top: 8px; }
.victory::before { content: ""; position: absolute; inset: -50%; background: repeating-conic-gradient(from 0deg, rgba(255,210,63,.22) 0 7deg, transparent 7deg 18deg); animation: spin 60s linear infinite; }
.victory::after { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(11,10,8,.55); pointer-events: none; }
.victory > * { position: relative; }
.vic-fx { position: absolute; width: 36px; height: 36px; z-index: 2; }
.vic-fx svg { width: 100%; height: 100%; }
.vic-fx.tl { top: 10px; left: 10px; } .vic-fx.tr { top: 10px; right: 10px; transform: scaleX(-1); }
.vic-cup { position: relative; width: 170px; height: 150px; margin: 0 auto -6px; animation: rise .6s cubic-bezier(.2,1.4,.4,1); }
.vic-cup svg { position: absolute; }
.vic-cup .wreath { inset: 0; width: 100%; height: 100%; }
.vic-cup .cup { position: absolute; left: 50%; top: 10px; width: 92px; height: 108px; margin-left: -46px; }
.vic-cup .cup svg { width: 100%; height: 100%; position: static; }
.ribbon { display: block; width: 210px; height: 38px; margin: 4px auto 0; }
.vic-name { font-size: clamp(34px, 11vw, 62px); margin: 10px 0 4px; color: var(--cream); line-height: 1.05; text-shadow: 3px 3px 0 var(--ink), 5px 5px 0 var(--gold); word-break: break-word; }
.vic-score { display: inline-block; margin: 6px 0 0; background: var(--ink); color: var(--yellow); padding: 4px 14px; font-weight: 800; font-size: 22px; letter-spacing: .1em; box-shadow: 4px 4px 0 var(--gold); }
.sbtable th.win div { color: var(--gold); }

/* Rekord-Karten: Kupferstich-Plakat, Doppelrahmen, Funke */
.record, .rlist, .empty-card { position: relative; background: var(--cream); background-image: var(--tex-engrave); padding: 10px; border-radius: var(--r-panel); color: var(--ink); margin-bottom: 10px; }
.record > div, .rlist, .empty-card > div { text-align: center; }
.record > div, .empty-card > div { background: var(--cream); border: 2px solid var(--ink); outline: 1px solid var(--ink); outline-offset: 3px; padding: 14px 12px; position: relative; }
.record > div::before, .record > div::after { content: "❧"; position: absolute; top: 8px; font-size: 16px; color: var(--red-d); }
.record > div::before { left: 10px; } .record > div::after { right: 10px; transform: scaleX(-1); }
.record small { font-family: var(--f-display); font-weight: 900; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; }
.record b { display: block; font-size: 76px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; margin: 4px 0; text-shadow: 3px 3px 0 var(--gold); }
.record em { font-style: normal; color: #4a4134; font-size: 15px; }
.rlist { margin: 10px 0; background-image: none; border: 2px solid var(--ink); outline: 1px solid var(--cream2); outline-offset: -6px; padding: 14px 14px 8px; }
.rlist h3 { margin: 0 0 8px; font-family: var(--f-display); font-weight: 900; font-size: 16px; letter-spacing: .12em; text-transform: uppercase; }
.rl { display: flex; align-items: baseline; gap: 10px; padding: 6px 0; border-top: 1px dashed rgba(11,10,8,.35); text-align: left; }
.rl-i { width: 22px; height: 22px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: var(--cream); font-size: 13px; font-weight: 800; align-self: center; }
.rl-v { font-size: 26px; font-weight: 800; width: 52px; font-variant-numeric: tabular-nums; }
.rl-s { flex: 1; min-width: 0; font-size: 14px; color: #4a4134; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rl-empty { margin: 4px 0 8px; color: #4a4134; }
.empty-card h2 { margin: 10px 0 8px; font-size: 26px; color: var(--ink); }
.empty-card p { margin: 0; color: #3a3226; font-size: 17px; line-height: 1.35; }
.hero-stat { position: relative; text-align: center; padding: 22px 12px 18px; border-radius: var(--r-panel); background: var(--ink); border: 2px solid var(--gold); margin-bottom: 14px; }
.hero-stat::before { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(212,166,58,.6); pointer-events: none; }
.hero-stat small { display: block; font-family: var(--f-display); font-weight: 900; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-l); }
.hero-stat b { display: block; font-size: clamp(72px, 24vw, 120px); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; margin: 6px 0 4px; text-shadow: 3px 3px 0 var(--red); }
.hero-stat em { font-style: normal; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.kv-c { background: var(--panel); border-top: 2px solid var(--gold); }

/* Leg-Info: Pop-Art-Karte, ohne Leuchten */
.mo-card { position: relative; width: min(100%, 480px); text-align: center; padding: 26px 18px 22px; border: 3px solid var(--ink); border-radius: var(--r-panel);
  background-color: var(--pc); background-image: var(--tex-halftone-lg); color: var(--pi); outline: 1px solid var(--gold); outline-offset: 4px;
  box-shadow: 8px 8px 0 #000; animation: pop .4s cubic-bezier(.2,1.6,.4,1) both; transform: rotate(-2deg); }
.mo-fx { width: 40px; height: 40px; top: 8px; }
.mo-fx.l { left: 8px; } .mo-fx.r { right: 8px; }
.mo-stand { color: var(--yellow); }

/* Spiel: ruhig, kein Leuchten – aktive Karte als Pop-Art-Farbblock, Rest abgedunkelt */
.turnbar { box-shadow: none; border-bottom: 2px solid var(--gold); background-image: var(--tex-halftone); }
.sbp, .sbr { background-color: var(--coal); border-color: var(--line); }
.sbp.on, .sbr.on { background-image: var(--tex-halftone); box-shadow: inset 0 0 0 4px rgba(11,10,8,.35), 0 0 0 1px var(--gold); border-color: var(--ink); }
.sbp.on .sbp-name, .sbr.on .sbr-n > b { font-family: var(--f-display); font-weight: 900; letter-spacing: .04em; }
.tab { font-family: var(--f-num); }
.subtabs::after { opacity: .5; height: 1px; background: var(--gold); }
.speech b { color: var(--red-d); }

/* ================= Spieler hinzufügen (Auswahlfenster) ================= */
.btn.addp { width: 100%; margin-top: 10px; border-color: var(--gold); color: var(--gold-l); border-style: dashed; }
.ap-head { text-align: center; }
.ap-head .divider { max-width: 220px; margin: 6px auto 8px; }
.ap-tabs { margin-bottom: 14px; }
.ap-tabs button { font-size: 13px; letter-spacing: .02em; height: 44px; line-height: 1.05; padding: 0 4px; }
.ap-body { min-height: 150px; margin-bottom: 14px; }
.ap-hint { margin: 0 4px 12px !important; }
.field.bad { border-bottom-color: var(--red); color: var(--red); }
.name-hint { min-height: 20px; margin: -8px 4px 10px !important; color: var(--red) !important; font-weight: 700; font-size: 15px !important; }
.field.search { height: 46px; font-size: 18px; text-transform: none; text-align: left; letter-spacing: .02em; }
.srow[hidden] { display: none; }
.srow > .ic { color: var(--gold); }
.botrow .av { margin-right: 2px; }
.demo-btn { width: 100%; margin-bottom: 12px; }

/* ================= Cricket ================= */
.ckwrap { flex: none; border: 1px solid var(--line2); border-radius: var(--r-panel); overflow: hidden; background: var(--coal); }
.ckgrid { width: 100%; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
.ckgrid th { width: 52px; padding: 0 8px; text-align: left; font-family: var(--f-display); font-weight: 900; font-size: 15px; color: var(--gold-l); background: var(--ink); border-right: 1px solid var(--gold); }
.ckgrid td { height: clamp(22px, 3.3dvh, 34px); text-align: center; border-left: 1px solid var(--line); position: relative; }
.ckgrid tr + tr td, .ckgrid tr + tr th { border-top: 1px solid var(--line); }
.ckgrid td.hd { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-top: 3px solid var(--pc); height: 26px; white-space: nowrap; overflow: hidden; }
.ckgrid td.cur { background: rgba(212,166,58,.09); }
.ckgrid td.hd.cur { color: var(--cream); }
.ckgrid tr.dead th, .ckgrid tr.dead td { opacity: .35; }
.ckgrid td small { position: absolute; right: 4px; top: 2px; font-size: 10px; font-weight: 800; color: var(--gold); }
.mk { display: inline-block; position: relative; width: 18px; height: 18px; vertical-align: middle; }
.mk::before, .mk::after { content: ""; position: absolute; left: 50%; top: -1px; width: 3px; height: 20px; margin-left: -1.5px; background: var(--pc); border-radius: 1px; }
.mk.m1::before { transform: rotate(40deg); } .mk.m1::after { display: none; }
.mk.m2::before { transform: rotate(40deg); } .mk.m2::after { transform: rotate(-40deg); }
.mk.m3 { border: 2.5px solid var(--pc); border-radius: 50%; width: 22px; height: 22px; }
.mk.m3::before { transform: rotate(40deg); top: 0; height: 17px; } .mk.m3::after { transform: rotate(-40deg); top: 0; height: 17px; }
.ckpad { grid-template-columns: repeat(4, 1fr); }
.ckpad .dk.miss { grid-column: span 2; }
.dk.ck { font-size: 26px; }
.dk.closed { color: var(--dim); background: var(--coal); }
.cricket .sbp-stats { display: none; }
.cricket .sbp-head { min-height: 32px; }
.cricket .sbp.on .sbp-name { font-size: clamp(22px, 6vw, 36px); }
.cricket .sbp-rem { font-size: clamp(44px, 13vw, 110px); }
.cricket .duo .botbox { position: absolute; right: 6px; bottom: 6px; padding: 0; gap: 4px; z-index: 2; }
.cricket .duo .botbox .av { width: 30px !important; height: 30px !important; }
.cricket .duo .minib { width: 48px; height: 48px; }
.cricket .duo .speech { left: auto; right: 0; top: auto; bottom: 56px; width: min(70vw, 260px); }
.cricket .duo .speech::before { display: none; }
@media (min-width: 820px) and (orientation: landscape) { .cricket .sbp-rem { font-size: clamp(60px, 9vw, 150px); } }
.cricket .duo .sbp:has(.botbox) .sbp-rem { padding-right: 64px; }

/* Solo-Hinweis im Setup */
.solo-hint { display: block; color: var(--gold); font-weight: 800; letter-spacing: .04em; margin-bottom: 2px; }

/* =====================================================================================================
   HANDGEMACHT (Queen-Look, Update 5): gezeichnet statt perfekt. Neue Schriften (League Gothic · IM Fell),
   Linien mit leichtem Federwackeln (Filter #rough in index.html), Bleisatz-Rauheit auf großen Zahlen (#ink),
   gealtertes Papier auf den Plakatkarten, kleine Schieflagen, versetzter Pop-Art-Druck, etwas rundere Ecken.
   ===================================================================================================== */
/* Fließtext in IM Fell, Zahlen in League Gothic */
.foot, .sheet p, .stage p, .rules p, .empty-card p, .speech, .record em, .hero-stat em, .ml-mid small, .heat-note, .heat-legend,
.chart-empty, .rl-s, .rl-empty, .resume small, .botchips small, .srow .lbl small, .name-hint, .ap-hint { font-family: var(--f-text); letter-spacing: .01em; text-transform: none; }
.foot { font-size: 15px; line-height: 1.4; }
.rules p { font-size: 18px; line-height: 1.42; }
.rules p.small { font-size: 15px; font-style: italic; }
.speech { font-size: 16px; line-height: 1.25; }
.stage p, .sheet p { font-size: 17px; }
.display, .pg-h, .mode-name, .su-head b, .rules h2, .record small, .st-name b, .cm-p b, .hero-title b, .hero-band span, .sheet h3 { letter-spacing: .03em; }
/* große Zahlen etwas größer (League Gothic ist schmaler) */
.hero-num { font-size: clamp(130px, 40vw, 200px); line-height: .86; }
.record b { font-size: 88px; }
.kv-c b { font-size: 40px; }
.pfavg b { font-size: 44px; }

/* Gezeichnete Linien: Ornamente, Wappen, Sterne, Ränder wackeln leicht wie mit der Feder gezogen */
.divider, .corner svg, .stars svg, .badge-mode svg, .hero-art svg, .stage-crest svg, .splash svg, .vic-cup, .ribbon, .mo-fx svg, .vic-fx svg { filter: url(#rough); }
.hero::before, .hero::after, .profile::after, .mode-art::before, .badge-mode::before, .victory::after, .hero-stat::before, .heat-board .heatboard { filter: url(#rough); }
/* Plakatkarten: Rahmen von Hand gezogen, Text leicht gedruckt */
.su-head > div, .rules-in, .record > div, .empty-card > div, .rlist, .hero-band, .stepn, .tag, .mo-stand, .vic-score, .resume .live { filter: url(#rough-s); }
/* Große Zahlen und Titel: Bleisatz-Rauheit an den Kanten */
.hero-num, .record b, .hero-stat b, .vic-name, .mo-big, .stage h1, .pg-h { filter: url(#ink); }

/* Gealtertes Papier – nur auf den cremefarbenen Karten, Hintergrund der Seite bleibt schlicht */
.su-head, .rules, .record, .rlist, .empty-card, .heat-board { background-image: var(--paper-age), var(--tex-engrave); }
.su-head > div, .rules-in, .record > div, .empty-card > div { background: rgba(243,233,210,.86); background-image: var(--paper-age); }

/* Handgezogene Linien statt gerader Striche */
.label::after { height: 8px; background: var(--hand-line) repeat-x 0 50% / 160px 8px; opacity: .8; }
.subtabs::after { height: 8px; opacity: .55; background: var(--hand-line) repeat-x 0 50% / 160px 8px; }

/* Kleine Schieflagen: nichts sitzt maschinell exakt */
.hero-band { transform: rotate(-.6deg); }
.mode:nth-child(odd) .badge-mode { transform: rotate(-3deg); }
.mode:nth-child(even) .badge-mode { transform: rotate(2.5deg); }
.mode-art::after { transform: rotate(14deg); }
.tag { transform: rotate(-2.5deg); display: inline-block; }
.stepn { transform: rotate(-5deg); border-radius: 3px; }
.vic-score { transform: rotate(-1.6deg); }
.mo-stand { transform: rotate(1.4deg); }
.resume .live { display: inline-block; transform: rotate(-3deg); border-radius: 3px; }
.su-head > div { transform: rotate(-.4deg); }
.record:nth-child(odd) > div { transform: rotate(-.35deg); }
.record:nth-child(even) > div { transform: rotate(.3deg); }
.cm-vs { transform: rotate(-9deg) translateY(-2px); }

/* Pop-Art-Druck leicht versetzt (Passer nicht ganz genau) */
.hero-num { text-shadow: 3px 2px 0 var(--red), 6px 7px 0 var(--ink), 8px 6px 0 var(--gold); }
.hero-stat b { text-shadow: 3px 2px 0 var(--red); }
.vic-name { text-shadow: 3px 2px 0 var(--ink), 6px 5px 0 var(--gold); }
.pfblock, .mode-art, .cm-p, .victory { background-position: 2px 1px, 0 0; }

/* Etwas runder: Karten, Felder, Tasten (sanft, nicht weich) */
.profile, .hero, .mode, .opts, .plist, .more, .kv-c, .mlist, .ranks, .sbtable-wrap, .chart, .st-who, .ckwrap, .su-head, .rules, .record, .rlist,
.empty-card, .hero-stat, .victory, .mo-card, .heat-board, .resume, .seg, .prow:first-child, .bp-top, .speech, .toast { border-radius: var(--r-panel); }
.su-head > div, .rules-in, .record > div, .empty-card > div { border-radius: 7px; }
.hero::before { border-radius: 7px; } .hero::after { border-radius: 5px; }
.key, .dk, .slot, .mults button, .quick button, .seg button, .sq, .co-c, .tk-c, .teambtn, .pchips button { border-radius: var(--r-btn); }
.sbp, .sbr { border-radius: var(--r-panel); }
.mode-art { border-radius: 8px 8px 0 0; }
.pfblock { border-radius: 8px 0 0 8px; }
.badge-mode { border-radius: 7px; }

/* Knöpfe: innen eine von Hand gezogene Linie */
.btn { position: relative; }
.btn.red::after, .btn.gold::after, .key.ok::after { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(243,233,210,.5); border-radius: calc(var(--r-btn) - 2px);
  pointer-events: none; filter: url(#rough-s); }
.key.ok { position: relative; }
.btn.gold::after { border-color: rgba(11,10,8,.4); }
/* Aktive Spielerkarte: feiner gezeichneter Innenrahmen */
.sbp.on::after { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(11,10,8,.28); border-radius: 7px; pointer-events: none; filter: url(#rough-s); }

/* League Gothic ist schmaler als die alte Zahlenschrift: Spielzahlen ~25 % größer, damit sie aus 2 m lesbar bleiben */
.sbp-rem { font-size: clamp(80px, 26vw, 188px); }
.sbr-rem { font-size: clamp(34px, 7dvh, 76px); }
.sbr.on .sbr-rem { font-size: clamp(50px, 10dvh, 104px); }
.sbp-stats b { font-size: 23px; }
.key { font-size: 38px; }
.dk { font-size: 28px; }
.dk.miss { font-size: 18px; }
.slot { font-size: 24px; }
.quick button { font-size: 20px; }
.entry .val { font-size: 50px; }
.co-c { font-size: clamp(26px, 6.4vw, 40px); }
.cricket .sbp-rem { font-size: clamp(55px, 16vw, 136px); }
@media (orientation: portrait) { .boardmode .sbp-rem { font-size: clamp(60px, 16vw, 120px); } }
@media (min-width: 820px) and (orientation: landscape) {
  .sbp-rem { font-size: clamp(100px, 15vw, 240px); }
  .key { font-size: 42px; } .dk { font-size: 31px; } .quick button { font-size: 22px; }
  .co-c { font-size: clamp(30px, 4vw, 52px); }
  .pad .entry .val { font-size: clamp(80px, 21dvh, 210px); }
  .cricket .sbp-rem { font-size: clamp(75px, 11vw, 185px); }
}
@media (min-width: 700px) and (orientation: portrait) {
  .sbp-rem { font-size: clamp(125px, 21vw, 275px); }
  .key { font-size: 42px; } .sbp-stats b { font-size: 29px; } .entry .val { font-size: 72px; }
}
@media (orientation: landscape) and (max-height: 520px) {
  .sbp-rem { font-size: clamp(55px, 20dvh, 112px); }
  .key { font-size: 27px; } .dk { font-size: 22px; } .sbp-stats b { font-size: 18px; }
  .pad .entry .val { font-size: clamp(36px, 17dvh, 78px); }
  .co-c { font-size: 22px; }
}

/* ================= Konto & Freunde ================= */
/* Drei Reiter oben */
.tabs-in { grid-template-columns: repeat(3, 1fr); }
.tabline { width: calc(100% / 3); }
.tab { position: relative; }
.tab-badge { position: relative; top: -8px; margin-left: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--red); color: var(--cream);
  font-style: normal; font-size: 14px; line-height: 20px; letter-spacing: 0; box-shadow: 0 0 0 2px var(--ink); }
@media (max-width: 440px) { .tab { font-size: 15px; letter-spacing: .1em; gap: 6px; } .tab .ic { width: 17px; height: 17px; } }
@media (max-width: 350px) { .tab .ic { display: none; } }

/* Anmeldung */
.stage.auth { justify-content: flex-start; padding-top: calc(var(--sat) + 40px); }
.stage.auth .stage-crest svg { width: min(46vw, 190px); }
.auth-form { width: 100%; display: flex; flex-direction: column; align-items: stretch; }
.auth-form h1 { text-align: center; font-size: 34px; }
.field.name { text-transform: none; letter-spacing: .04em; }
.auth-form p { margin-bottom: 20px; }
.field.plain { text-transform: none; letter-spacing: .02em; font-family: var(--f-text); font-size: 20px; }
.auth-mail { align-self: center; display: inline-flex; align-items: baseline; gap: 10px; margin: 0 0 18px; padding: 6px 12px; border: 1px solid var(--line2); color: var(--cream2);
  font-family: var(--f-text); font-size: 17px; letter-spacing: .01em; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-mail small { color: var(--gold); font-family: var(--f-num); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.auth-lbl { text-align: left; margin: 0 2px 6px; font-size: 13px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.auth-err { margin: -4px 4px 14px !important; color: var(--red) !important; font-family: var(--f-text); font-size: 16px; line-height: 1.35; text-align: center; }
.auth-note { margin: 16px 0 0 !important; font-size: 14px !important; color: var(--dim) !important; }
.name-hint.ok { color: var(--green) !important; }
.name-hint:not(.ok):not(.bad) { color: var(--muted) !important; font-weight: 400; }
.stage .name-hint { text-align: left; }

/* Freunde-Reiter */
.me-card { cursor: default; }
.me-card .pfname b { text-transform: none; }
.friends .field.search { margin-bottom: 10px; }
.sm-btn { height: 38px; padding: 0 12px; font-size: 14px; letter-spacing: .08em; flex: none; gap: 4px; }
.srow .sm-btn + .sm-btn { margin-left: -4px; }
.fsearch, .flist { margin-bottom: 4px; }
.flist .srow { min-height: 62px; }
.srow .lbl { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.favg { display: flex; flex-direction: column; align-items: flex-end; line-height: 1; }
.favg small { font-size: 11px; font-weight: 800; letter-spacing: .14em; color: var(--gold); }
.favg b { font-size: 28px; font-variant-numeric: tabular-nums; }
.badge-n { display: inline-block; min-width: 22px; padding: 1px 6px; background: var(--red); color: var(--cream); border-radius: 11px; text-align: center; letter-spacing: 0; }
.soon { position: relative; margin-top: 26px; padding: 18px 16px 16px; text-align: center; border: 1.5px dashed var(--gold); border-radius: var(--r-panel); }
.soon b { display: block; margin: 6px 0 4px; font-family: var(--f-display); font-size: 22px; letter-spacing: .06em; text-transform: uppercase; }
.soon p { margin: 0; color: var(--muted); font-family: var(--f-text); font-size: 16px; line-height: 1.35; }
.soon-tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%) rotate(-2deg); background: var(--red); color: var(--cream); padding: 2px 10px;
  font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; border-radius: var(--r-btn); white-space: nowrap; }
.friend .hero-stat { margin-top: 14px; }
.form-row { display: flex; gap: 6px; justify-content: center; margin-top: 10px; }
.form-row span { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; font-size: 15px; border-radius: 4px; }
.form-row .w { background: var(--green); color: var(--cream); }
.form-row .l { background: var(--panel2); color: var(--muted); border: 1px solid var(--line2); }
.btn.remove-friend { width: 100%; margin-top: 22px; color: var(--red); border-color: var(--red); }
.minirow.games { margin-top: 0; }

/* Konto in den Einstellungen */
.acct .val { max-width: 58%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct .val.mail { font-family: var(--f-text); font-size: 15px; letter-spacing: .01em; }
.acct .sync-ok { color: var(--green); }
.acct .sync-offline, .acct .sync-error { color: var(--gold); }
.acct-btns { margin-bottom: 14px; }
.acct-btns .btn { font-size: 15px; letter-spacing: .08em; }
.del-acct { width: 100%; margin-top: 8px; color: var(--dim); }

/* ================= Spielhistorie ================= */
.home-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.home-btns .settings-btn { margin-top: 0; }
.history .seg { margin-bottom: 4px; }
.hist-note { margin-bottom: 4px; }
.hist .ml-res.d { background: var(--panel3); color: var(--cream2); }
.hist .ml-res.n { background: var(--coal); color: var(--dim); }
.hist-badge { display: flex; align-items: center; padding-left: 10px; flex: none; }
.hist .ml-mid { padding-left: 10px; }
.btn.hist-del { width: 100%; margin-top: 16px; color: var(--red); border-color: var(--red); }
.btn.hist-link { width: 100%; margin-top: 12px; }

/* ================= Eingabe-Scheibe (Finger halten → Lupe, loslassen setzt) ================= */
.ahits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ahit { position: relative; height: 54px; border-radius: var(--r-btn); border: 1.5px dashed var(--line2); display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--dim); }
.ahit i { position: absolute; left: 7px; top: 4px; font-style: normal; font-size: 12px; color: var(--muted); }
.ahit b { font-size: 26px; font-weight: 400; line-height: 1; }
.ahit small { font-size: 15px; color: var(--muted); }
.ahit.now { border-color: var(--gold); color: var(--gold); }
.ahit.now b { font-size: 18px; letter-spacing: .14em; text-transform: uppercase; }
.ahit.done { border-style: solid; border-color: var(--cream2); background: var(--panel2); color: var(--cream); animation: fade .2s; }
.ahit.done.m2 { border-color: #2a8a55; background: rgba(42,107,69,.35); }
.ahit.done.m3 { border-color: #c4452f; background: rgba(138,51,38,.4); }
.ahit.done.m0 { border-color: var(--line2); color: var(--muted); }
.aimbox { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 2px 0; }
.aimboard { width: 100%; height: 100%; max-height: 62dvh; touch-action: none; -webkit-touch-callout: none; user-select: none; cursor: crosshair; }
.aimboard .arim { fill: var(--coal); stroke: var(--gold); stroke-width: 1.4; }
.aimboard .af { transition: fill-opacity .12s; }
.aimboard .af.aim { fill: #ecc96a; fill-opacity: .9; }
.aimboard .af.hit { filter: brightness(1.75) saturate(1.15); }
.aimboard .awire { fill: none; stroke: #d4a63a; stroke-opacity: .45; stroke-width: .7; pointer-events: none; }
.aimboard .aglows { pointer-events: none; }
.aimboard .aglow { fill: none; stroke: #fbe8b0; stroke-width: 5; stroke-opacity: .9; }
.aimboard .aedge { fill: none; stroke: #fff6dc; stroke-width: 1.6; pointer-events: none; }
.aimboard .anum { fill: #ecc96a; font-family: var(--f-num); font-size: 15px; pointer-events: none; }
.aimboard .amark { pointer-events: none; }
.aimboard .amark circle { fill: var(--ink); stroke: #fff6dc; stroke-width: 1.5; }
.aimboard .amark text { fill: #fff6dc; font-family: var(--f-num); font-size: 9px; }
.loupe.aim { width: 156px; height: 156px; background: var(--coal); border: 3px solid var(--gold); box-shadow: 0 8px 26px rgba(0,0,0,.6); }
.loupe.aim .anum { display: none; }
.loupe.aim .lp-t { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); padding: 2px 10px; border-radius: var(--r-btn); background: var(--ink); color: var(--cream);
  font-family: var(--f-num); font-size: 22px; letter-spacing: .04em; white-space: nowrap; }
.loupe.aim .lp-t.m2 { background: #1f6b3e; } .loupe.aim .lp-t.m3 { background: #a92a1b; } .loupe.aim .lp-t.m0 { color: var(--muted); }
.pad.board .boardrow .dk { height: 52px; }
/* Im Scheiben-Modus bekommt die Scheibe den Platz, der Rest steht kompakt darüber */
.pad.board { justify-content: flex-start; gap: 8px; }
.pad.board .entry { flex: none !important; flex-direction: row !important; align-items: baseline !important; justify-content: space-between !important; }
.pad.board .entry .val { font-size: 44px !important; }
.pad.board .entry .val small { display: inline !important; margin-left: 6px !important; }
.loupe.aim .aimboard { max-height: none; cursor: default; }

/* ================= Doppel-Reiter: Scheibe im App-Stil, Medaillen, Legende am Ende ================= */
.heat-board, .cm-dbl .heat-board { background: none !important; background-image: none !important; padding: 0 !important; border-radius: 50%; max-width: 440px; filter: none !important;
  box-shadow: 0 0 0 1px rgba(212,166,58,.25), 0 18px 50px rgba(0,0,0,.55), 0 0 60px rgba(212,166,58,.08); }
.heat-board .heatboard { filter: none !important; }
.heatboard { background: none; }
.heatboard .hrim { fill: var(--coal); stroke: var(--gold); stroke-width: 1.4; }
.heatboard .hd { cursor: pointer; transition: filter .15s; }
.heatboard .hd:hover { filter: brightness(1.25); }
.heatboard .hd.sel { stroke: var(--cream); stroke-width: 2.2; }
.heatboard .hwire { fill: none; stroke: #d4a63a; stroke-opacity: .35; stroke-width: .7; pointer-events: none; }
.heatboard .hmed { fill: none; stroke-width: 3; pointer-events: none; }
.heatboard .hmed-g { fill: none; stroke-width: 7; stroke-opacity: .8; pointer-events: none; animation: medglow 3.2s ease-in-out infinite; }
@keyframes medglow { 50% { stroke-opacity: .35; } }
.heatboard .hn { fill: #ecc96a; font-family: var(--f-num); font-weight: 400; font-size: 13px; pointer-events: none; }
.heatboard .hn.t1 { fill: #ffd45c; } .heatboard .hn.t2 { fill: #dfe4ea; } .heatboard .hn.t3 { fill: #d9925a; }
.heat-sel { border-radius: var(--r-panel); }
.dbl-head { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.dbl-head .label { flex: 1; margin: 0; }
.seg.sm { flex: none; width: 230px; }
.seg.sm button { height: 32px; font-size: 13px; }
.dbl-head + .sbtable-wrap { margin-top: 10px; }
.sbtable.dbl th > div { text-align: right; }
.sbtable.dbl th:first-child > div { text-align: left; }
.medal { display: inline-block; width: 16px; height: 16px; border-radius: 50%; margin-left: 8px; vertical-align: -2px; border: 2.5px solid; background: transparent; }
.medal.m1 { border-color: #ffd45c; box-shadow: 0 0 8px rgba(255,212,92,.6); }
.medal.m2 { border-color: #dfe4ea; box-shadow: 0 0 8px rgba(223,228,234,.45); }
.medal.m3 { border-color: #d9925a; box-shadow: 0 0 8px rgba(217,146,90,.45); }
.heat-key { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); }
.heat-key small { font-family: var(--f-text); font-size: 14px; color: var(--muted); letter-spacing: .01em; }
.hk-scale { display: inline-flex; align-items: center; gap: 3px; }
.hk-scale i { width: 18px; height: 8px; border-radius: 2px; }
.hk-scale small:first-child { margin-right: 6px; } .hk-scale small:last-child { margin-left: 6px; }
.hk-med { display: inline-flex; align-items: center; gap: 2px; }
.hk-med .medal { margin: 0 2px; width: 13px; height: 13px; }
.hk-med small { margin-left: 6px; }
.hk-none { display: inline-flex; align-items: center; gap: 6px; }
.hk-none i { width: 14px; height: 8px; border-radius: 2px; background: #5b5140; }
.heat-note { margin-top: 6px !important; font-size: 14px !important; color: var(--dim) !important; }
.heat-legend { display: none; }
.sbtable .dot.none { background: #5b5140 !important; background-image: none !important; }

/* ================= Rahmen der kleinen Karten: ganz herum statt nur oben ================= */
.kv-c { border: 1px solid rgba(212,166,58,.32) !important; border-top: 1px solid rgba(212,166,58,.32) !important; background: linear-gradient(180deg, #1e1a15, #16130f) !important; }

/* ================= Zahlen: der „Plakat“-Stil (rot versetzt, gedruckt) für ausgewählte Zahlen ================= */
.pop { text-shadow: 2px 2px 0 var(--red); filter: url(#ink); }

/* ================= Licht, das am Rand entlang wandert (sehr langsam, zufällig versetzt) ================= */
@property --ga { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.glint { position: relative; isolation: isolate; }
.glint::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none; z-index: 2;
  background: conic-gradient(from var(--ga), transparent 0 72%, rgba(251,232,176,0) 76%, rgba(251,232,176,.95) 84%, rgba(255,255,255,.9) 85%, transparent 89%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: glint 5s linear infinite; animation-delay: var(--gd, 0s); }
@keyframes glint { to { --ga: 360deg; } }
@media (prefers-reduced-motion: reduce) { .glint::before { animation: none; opacity: 0; } }

/* Karten erscheinen nacheinander */
#app.enter .kv-c, #app.enter .mode, #app.enter .ml, #app.enter .flist .srow { animation: rise .45s cubic-bezier(.2,.9,.3,1) both; animation-delay: calc(var(--i, 0) * 45ms + 60ms); }
.mode:nth-child(2) { --i: 1; } .mode:nth-child(3) { --i: 2; } .mode:nth-child(4) { --i: 3; } .mode:nth-child(5) { --i: 4; }
/* Kleine Reaktion auf Antippen */
.kv-c, .mode, .me, .st-who, .srow { transition: transform .15s ease, box-shadow .2s ease, filter .2s; }
.mode:active, .me:active, .st-who:active { transform: scale(.985); }
.mode:hover, .st-who:hover { filter: brightness(1.08); }
/* Aktiver Reiter: rote Linie mit sanftem Glimmen */
.tabline { box-shadow: 0 0 12px rgba(229,64,44,.7); animation: tabglow 3.6s ease-in-out infinite; }
@keyframes tabglow { 50% { box-shadow: 0 0 4px rgba(229,64,44,.35); } }
/* Rote Hauptknöpfe: ab und zu gleitet ein Lichtstreif darüber */
.btn.red:not(.dk) { position: relative; overflow: hidden; }
.btn.red:not(.dk) > .shine, .btn.red.big::before { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,240,210,.32), transparent); animation: shine 4.5s ease-in-out infinite 1.5s; }
@keyframes shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.game .btn.red.big::before { display: none; }

/* ================= Spieler-Karte auf „Spielen“ ================= */
.me { width: 100%; display: flex; align-items: center; gap: 16px; padding: 14px 18px 14px 14px; text-align: left; border-radius: 14px;
  background: radial-gradient(120% 140% at 0% 0%, rgba(229,64,44,.16), transparent 55%), linear-gradient(180deg, #1d1914, #14110d);
  border: 1px solid rgba(212,166,58,.38); box-shadow: 0 10px 30px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,240,210,.06); }
.me-mono { flex: none; width: 60px; height: 60px; border-radius: 50%; padding: 3px; background: conic-gradient(from 210deg, #ffd45c, #8d6b1f, #ecc96a, #8d6b1f, #ffd45c);
  box-shadow: 0 0 18px rgba(212,166,58,.25); }
.me-mono span { width: 100%; height: 100%; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 35% 30%, #f05a42, #a92a1b);
  font-family: var(--f-display); font-size: 30px; color: var(--cream); box-shadow: inset 0 0 0 2px var(--ink); }
.me-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.me-txt b { font-family: var(--f-display); font-weight: 400; font-size: 27px; letter-spacing: .03em; line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-txt small { font-family: var(--f-text); font-size: 15px; color: var(--muted); }
.me-avg { flex: none; text-align: right; padding-left: 16px; border-left: 1px solid rgba(212,166,58,.25); }
.me-avg small { display: block; font-size: 12px; letter-spacing: .18em; color: var(--gold); }
.me-avg b { display: block; font-size: 44px; line-height: 1; margin-top: 2px; }

/* ================= Anmeldung ================= */
.stage.auth { position: relative; justify-content: center; padding-top: calc(var(--sat) + 24px); max-width: 480px; overflow: hidden; }
.auth-halo { position: absolute; left: 50%; top: 4%; width: 520px; height: 520px; margin-left: -260px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(236,201,106,.16), rgba(229,64,44,.06) 40%, transparent 68%); animation: halo-breathe 6s ease-in-out infinite; }
@keyframes halo-breathe { 50% { transform: scale(1.08); opacity: .7; } }
.auth-crest { position: relative; margin-bottom: -18px; z-index: 1; }
.auth-crest svg { width: 140px; height: auto; filter: drop-shadow(0 6px 18px rgba(0,0,0,.6)) url(#rough); animation: rise .8s cubic-bezier(.2,.9,.3,1); }
.auth-card { position: relative; width: 100%; padding: 30px 22px 22px; border-radius: 14px; text-align: left;
  background: linear-gradient(180deg, rgba(30,26,21,.96), rgba(18,16,13,.96)); border: 1px solid rgba(212,166,58,.45);
  box-shadow: 0 24px 60px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,240,210,.06); animation: rise .5s cubic-bezier(.2,.9,.3,1) .1s both; }
.auth-card .corner { position: absolute; width: 26px; height: 26px; opacity: .8; }
.auth-card .corner svg { width: 100%; height: 100%; }
.auth-card .corner.tl { left: 6px; top: 6px; } .auth-card .corner.tr { right: 6px; top: 6px; transform: scaleX(-1); }
.auth-card .corner.bl { left: 6px; bottom: 6px; transform: scaleY(-1); } .auth-card .corner.br { right: 6px; bottom: 6px; transform: scale(-1); }
.auth-steps { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 14px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.auth-steps span.on { color: var(--gold); }
.auth-steps i { width: 34px; height: 1px; background: var(--line2); position: relative; }
.auth-steps i.on { background: var(--gold); box-shadow: 0 0 8px rgba(212,166,58,.7); }
.auth-form h1 { font-size: 32px !important; margin: 0 0 10px !important; }
.auth-lead { text-align: center; margin: 0 4px 18px !important; font-size: 16px !important; }
.auth-row { display: flex; align-items: baseline; justify-content: space-between; }
.pw-show { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 2px 4px; margin-bottom: 6px; }
.stage.auth .field { margin-bottom: 12px; background: #0e0c0a; border: 1px solid var(--line2); border-bottom: 2px solid var(--gold); }
.stage.auth .field:focus { border-color: rgba(212,166,58,.7); box-shadow: 0 0 0 3px rgba(212,166,58,.15); }
.stage.auth .btn.big { margin-top: 4px; }
.auth-foot { display: flex; align-items: center; gap: 10px; margin: 18px 0 0 !important; font-size: 14px !important; color: var(--dim) !important; text-align: left; }
.auth-foot .stars { flex: none; }

/* ================= Zahlen etwas breiter („weniger hochgezogen“) ================= */
/* League Gothic ist sehr schmal. Große Zahlen werden waagerecht leicht gedehnt und etwas niedriger gesetzt –
   wirkt ruhiger und „normaler“, ohne die Schrift zu wechseln. */
:root { --num-w: 1.16; }
.kv-c b, .minirow b, .hero-stat b, .me-avg b, .favg b, .ml-avg b, .record b, .heat-sel b, .hero-num, .pfavg b, .vic-score {
  display: inline-block; transform: scaleX(var(--num-w)); }
.kv-c b { transform-origin: left center; font-size: 34px !important; margin-top: 8px; }
.me-avg b, .favg b, .ml-avg b, .pfavg b { transform-origin: right center; }
.minirow b, .hero-stat b, .record b, .heat-sel b, .hero-num, .vic-score { transform-origin: center; }
/* Im laufenden Spiel bleiben die Zahlen unverändert (Lesbarkeit, Layout der Karten) */
.game .minirow b, .game .hero-stat b { transform: none; }
.hero-stat b { font-size: clamp(64px, 20vw, 104px) !important; }
.me-avg b { font-size: 40px; }
.hero-stat em { display: block; }
.me-mono.sm { width: 46px; height: 46px; margin: 0 4px 0 12px; align-self: center; }
.me-mono.sm span { font-size: 22px; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--pc, #e5402c) 80%, #fff), var(--pc, #a92a1b)); color: var(--pi, var(--cream)); }
.st-who { border-color: rgba(212,166,58,.38) !important; background: linear-gradient(180deg, #1d1914, #14110d) !important; }
.auth-foot { justify-content: center; }

/* Hero: goldener Strahlenkranz (ursprünglicher Stil) */

/* ================= Eigener Caller ================= */
.caller .cr-intro { margin: 4px 2px 14px; }
.cr-toggle { border: 1px solid var(--line); border-radius: var(--r-panel); margin-bottom: 14px; background: var(--panel); }
.crec { position: relative; border-radius: 14px; padding: 18px 16px 16px; text-align: center;
  background: radial-gradient(120% 120% at 50% 0%, rgba(229,64,44,.14), transparent 60%), linear-gradient(180deg, #1d1914, #14110d);
  border: 1px solid rgba(212,166,58,.4); box-shadow: 0 14px 40px rgba(0,0,0,.4); }
.cr-top small { display: block; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.cr-top b { display: inline-block; font-size: 96px; line-height: .95; margin: 2px 0 8px; transform: scaleX(var(--num-w)); }
.cr-hint { margin: 4px 6px 14px; font-family: var(--f-text); font-size: 16px; color: var(--muted); line-height: 1.35; }
.cr-saved { display: inline-flex; align-items: center; gap: 8px; margin: 2px 0 14px; padding: 4px 12px; border-radius: 20px; border: 1px solid rgba(31,154,76,.6); color: #7fe0a2; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
.cr-btns { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.cr-btns .btn { padding: 0 8px; font-size: 15px; letter-spacing: .08em; }
.btn.cr-del { color: var(--red); border-color: var(--red); }
.cr-recdot { width: 14px; height: 14px; border-radius: 50%; background: var(--cream); box-shadow: 0 0 0 3px rgba(243,233,210,.25); }
.cr-live { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 4px 0 8px; }
.cr-live b { font-size: 30px; min-width: 70px; font-variant-numeric: tabular-nums; }
.cr-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--red); animation: recblink 1s ease-in-out infinite; box-shadow: 0 0 14px var(--red); }
@keyframes recblink { 50% { opacity: .3; } }
.cr-meter { width: 140px; height: 10px; border-radius: 5px; background: var(--coal); border: 1px solid var(--line2); overflow: hidden; }
.cr-meter i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--green), var(--gold) 70%, var(--red)); transform-origin: left; transform: scaleX(0); transition: transform .06s linear; }
.btn.cr-stop { animation: recpulse 1.4s ease-in-out infinite; }
@keyframes recpulse { 50% { box-shadow: 0 0 0 6px rgba(229,64,44,.25), 0 3px 0 var(--red-d); } }
.cw { width: 100%; height: 56px; margin: 4px 0 6px; }
.cw rect { fill: var(--gold-l); }
.cw.new rect { fill: var(--cream); }
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 6px; }
.cnum { height: 46px; border-radius: var(--r-btn); background: var(--panel2); border: 1px solid var(--line2); font-size: 22px; color: var(--cream2); font-variant-numeric: tabular-nums; position: relative; }
.cnum.has { border: 2px solid var(--gold); color: var(--gold-l); box-shadow: 0 0 10px rgba(212,166,58,.25); }
.cnum.has::after { content: ""; position: absolute; top: 4px; right: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.cnum.on { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.cgrid.pop-row .cnum { height: 52px; font-size: 26px; }

/* ================= Namen einheitlich (siehe DESIGN.md › Schrift) ================= */
/* Spielernamen auf Karten außerhalb des Spiels: IM Fell English SC, normale Schreibung (Großbuchstabe + Kapitälchen) */
.me-txt b, .st-name b, .me-card .pfname b, .friend .pfname b {
  font-family: var(--f-display) !important; font-weight: 400 !important; font-size: 27px !important; letter-spacing: .03em !important;
  text-transform: none !important; line-height: 1.1 !important; }
.st-name b { font-size: 25px !important; }
.st-name small, .me-card .pfname small { font-family: var(--f-num); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }

/* Doppel-Reiter auf breiten Bildschirmen: Scheibe links, Tabelle rechts */
.dbl-right .heat-sel { margin-top: 0; }
@media (min-width: 900px) {
  .page.stats:has(.sub-doubles) { max-width: 1120px; }
  .dbl-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
  .dbl-layout .heat { position: sticky; top: 72px; margin: 0; }
  .dbl-layout .heat-board { max-width: 520px; width: 100%; }
  .dbl-right .dbl-head { margin-top: 14px; }
}
@media (max-width: 899px) { .dbl-right .heat-sel { margin-top: 10px; } }

/* ================= Spielerkarte auf „Spielen“ (schlicht: Name + Average, kein Verlauf, kein Monogramm) ================= */
.me { display: flex; align-items: center; justify-content: center; gap: 22px; padding: 16px 20px; text-align: center;
  background: var(--panel) !important; border: 1px solid rgba(212,166,58,.45); box-shadow: none; border-radius: 14px; }
.me-name { font-family: var(--f-display); font-size: 32px; letter-spacing: .03em; line-height: 1.05; color: var(--cream); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me .me-avg { display: flex; align-items: baseline; gap: 8px; padding-left: 22px; text-align: left; border-left: 1px solid rgba(212,166,58,.4); }
.me .me-avg small { display: inline; font-size: 13px; letter-spacing: .18em; color: var(--gold); }
.me .me-avg b { display: inline-block; font-size: 40px; margin: 0; transform-origin: left center; }
.st-name { padding-left: 16px; }

/* ================= Mehr Leben außerhalb des Spiels (siehe DESIGN.md › Licht & Bewegung) ================= */
/* Glänzende Zahl: ein Lichtstreif zieht über die Ziffern (Kopie der Zahl als Maske, data-t) */
.shimmer { position: relative; }
.shimmer::after { content: attr(data-t); position: absolute; inset: 0; pointer-events: none; text-shadow: none; filter: none;
  background: linear-gradient(105deg, transparent 0 38%, rgba(255,250,230,.95) 47%, #fff 50%, rgba(255,240,200,.9) 53%, transparent 62% 100%);
  background-size: 300% 100%; background-repeat: no-repeat; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 4.2s ease-in-out infinite; animation-delay: var(--sd, .8s); }
@keyframes shimmer { 0% { background-position: 120% 0; } 45%, 100% { background-position: -40% 0; } }

/* Der Average oben: kräftig beleuchtet + Glitzer */
.glitter { position: relative; display: inline-block; }
.glitter > b { animation: avg-glow 3.4s ease-in-out infinite; }
@keyframes avg-glow {
  0%, 100% { filter: url(#ink) drop-shadow(0 0 6px rgba(255,212,92,.45)) drop-shadow(0 0 16px rgba(255,190,70,.25)); }
  50% { filter: url(#ink) drop-shadow(0 0 10px rgba(255,222,120,.85)) drop-shadow(0 0 28px rgba(255,190,70,.45)); } }
.hero-stat .glitter > b { animation-name: avg-glow-soft; }
@keyframes avg-glow-soft { 0%, 100% { filter: url(#ink) drop-shadow(0 0 4px rgba(255,212,92,.3)); } 50% { filter: url(#ink) drop-shadow(0 0 14px rgba(255,212,92,.6)); } }
.sparkles { position: absolute; inset: 0; pointer-events: none; }
.sparkles i { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; opacity: 0; transform: scale(0) rotate(0deg);
  animation: twinkle var(--t, 4s) ease-in-out infinite; animation-delay: var(--d, 0s); }
.sparkles svg { display: block; width: 100%; height: 100%; fill: #fff6d8; filter: drop-shadow(0 0 3px rgba(255,220,120,.95)) drop-shadow(0 0 8px rgba(255,200,80,.6)); }
@keyframes twinkle { 0%, 70%, 100% { opacity: 0; transform: scale(0) rotate(0deg); } 78% { opacity: 1; transform: scale(var(--s, 1)) rotate(45deg); } 88% { opacity: .7; transform: scale(calc(var(--s, 1) * .6)) rotate(90deg); } }
.hero-stat .sparkles i { width: 18px; height: 18px; margin: -9px 0 0 -9px; }

/* Partyspiel-Logos: stehen meist still, wackeln/hüpfen ab und zu leicht – jedes zu seiner Zeit */
.mode:nth-child(odd) .badge-mode { --r: -3deg; } .mode:nth-child(even) .badge-mode { --r: 2.5deg; }
.mode .badge-mode { animation: badge-life 6.5s ease-in-out infinite; animation-delay: calc(var(--bi, 0) * -1.7s); }
@keyframes badge-life {
  0%, 72%, 100% { transform: rotate(var(--r, 0deg)) translateY(0) scale(1); }
  78% { transform: rotate(calc(var(--r, 0deg) - 7deg)) translateY(-4px) scale(1.06); }
  84% { transform: rotate(calc(var(--r, 0deg) + 5deg)) translateY(-1px) scale(1.03); }
  90% { transform: rotate(var(--r, 0deg)) translateY(0) scale(1); } }
.mode-art::after { animation: star-twinkle 5s ease-in-out infinite; animation-delay: calc(var(--bi, 0) * -1.1s); }
@keyframes star-twinkle { 0%, 80%, 100% { opacity: .6; transform: rotate(14deg) scale(1); } 88% { opacity: 1; transform: rotate(60deg) scale(1.5); color: #fff6d8; } }

/* Statistik-Karten: ab und zu glimmt eine Karte von innen auf, die Zahl wird kurz heller */
.kv-c::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(120% 90% at 50% 0%, rgba(255,212,92,.16), transparent 60%); box-shadow: inset 0 0 18px rgba(255,212,92,.18);
  animation: card-glow 9s ease-in-out infinite; animation-delay: calc(var(--gd, 0s) * 1.7); }
@keyframes card-glow { 0%, 76%, 100% { opacity: 0; } 84% { opacity: 1; } }
.kv-c b { animation: num-flash 9s ease-in-out infinite; animation-delay: calc(var(--gd, 0s) * 1.7); }
@keyframes num-flash { 0%, 76%, 100% { color: var(--cream); text-shadow: none; } 84% { color: #fff8e4; text-shadow: 0 0 12px rgba(255,212,92,.55); } }

/* Diagramme: Linien zeichnen sich beim Öffnen ein, Punkte und Balken wachsen nacheinander, der Schnitt glimmt */
.chart .ln { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s cubic-bezier(.3,.7,.2,1) forwards; }
.chart .ln.avg { animation-delay: .35s; filter: drop-shadow(0 0 4px rgba(229,64,44,.6)); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.chart .dt { transform-box: fill-box; transform-origin: center; animation: pop-in .35s ease-out both; animation-delay: calc(var(--k, 0) * 18ms + .2s); }
@keyframes pop-in { from { transform: scale(0); opacity: 0; } }
.chart .bar { transform-box: fill-box; transform-origin: bottom; animation: grow-up .7s cubic-bezier(.2,.9,.3,1) both; animation-delay: calc(var(--k, 0) * 70ms); }
@keyframes grow-up { from { transform: scaleY(0); } }

/* Aktiver Unter-Reiter glimmt, Rekord-Karten glänzen zeitversetzt */
.subtabs button.on { text-shadow: 0 0 10px rgba(229,64,44,.45); }
.record .shimmer::after { animation-duration: 5.5s; --sd: 2s; }
.record:nth-of-type(2n) .shimmer::after { --sd: 3.6s; }

@media (prefers-reduced-motion: reduce) {
  .shimmer::after, .glitter > b, .sparkles, .mode .badge-mode, .mode-art::after, .kv-c::after, .kv-c b, .chart .ln, .chart .dt, .chart .bar { animation: none !important; }
  .sparkles { display: none; } .chart .ln { stroke-dashoffset: 0; }
}

/* Reiter „Spielen“: Dartpfeil fliegt beim Aktivieren kurz ein und wippt ab und zu */
.tab.on .ic { filter: drop-shadow(0 0 4px rgba(229,64,44,.55)); }
.tab[data-v="play"].on .ic { animation: dart-in .45s cubic-bezier(.2,.9,.3,1.3), dart-wobble 7s ease-in-out 1.5s infinite; transform-origin: 30% 70%; }
@keyframes dart-in { from { transform: translate(-6px, 6px) scale(.8); opacity: 0; } }
@keyframes dart-wobble { 0%, 86%, 100% { transform: none; } 90% { transform: translate(1.5px, -1.5px) rotate(-6deg); } 94% { transform: translate(-.5px, .5px) rotate(3deg); } }

/* Setup: „Mehr Optionen“ zeigt eingeklappt kurz, was dort eingestellt ist */
.more-h span { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; }
.more-h small { font-size: 13px; letter-spacing: .1em; color: var(--gold); font-weight: 400; }
.more-b .opts .optrow:first-child { border-top: 0; }

/* Spielerkarte: nur Name und Zahl, beide groß und kräftig (kein Trennstrich, kein „Ø 501“) */
.me { gap: 26px !important; padding: 14px 22px !important; }
.me-name { font-family: var(--f-display); font-size: clamp(34px, 9vw, 46px) !important; letter-spacing: .05em !important; color: var(--cream);
  display: inline-block; transform: scaleX(1.08); text-shadow: 2px 2px 0 var(--red), 4px 4px 0 rgba(0,0,0,.6); filter: url(#ink); }
.me .me-avg { border-left: 0 !important; padding-left: 0 !important; }
.me .me-avg b { font-size: clamp(46px, 12vw, 60px) !important; transform: scaleX(1.32) !important; transform-origin: center !important; margin: 0 10px !important; }

/* ================= Statistik: drei Reiter, aktiver vorn, die anderen treten zurück ================= */
.subtabs.three { display: grid; grid-template-columns: repeat(3, 1fr); margin: 16px 0 6px; padding: 0; overflow: visible; }
.subtabs.three::after { display: none; }
.subtabs.three button { height: 52px; font-size: 16px; letter-spacing: .14em; border-bottom: 0; color: var(--cream2);
  opacity: .42; transform: scale(.9) translateY(2px); filter: blur(.2px); transition: opacity .3s ease, transform .35s cubic-bezier(.2,.9,.3,1.2), filter .3s; }
.subtabs.three button.on { opacity: 1; transform: scale(1.12); filter: none; color: var(--cream); text-shadow: 0 0 14px rgba(229,64,44,.45); }
.subtabs.three button:not(.on):hover { opacity: .7; }
.subtabs.three .sub-line { position: absolute; left: 0; bottom: 0; height: 3px; width: calc(100% / 3); pointer-events: none;
  transform: translateX(calc(var(--n, 0) * 100%)); transition: transform .4s cubic-bezier(.2,.9,.3,1.1); }
.subtabs.three .sub-line::before { content: ""; position: absolute; left: 22%; right: 22%; top: 0; bottom: 0; border-radius: 2px; background: var(--red); box-shadow: 0 0 12px rgba(229,64,44,.7); }
.subtabs.three::before { content: ""; position: absolute; left: 0; right: 0; bottom: 1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(212,166,58,.35), transparent); }
.subbody { animation: sub-in .35s cubic-bezier(.2,.9,.3,1); }
@keyframes sub-in { from { opacity: 0; transform: translateY(8px); } }

/* Zeitraum: Uhr-Knopf im Kopf, Standard „Gesamt“; anderer Zeitraum = Hinweis-Chip mit ✕ */
.st-clock { height: auto; width: 54px; align-self: stretch; color: var(--muted); border-radius: var(--r-panel); }
.st-clock.on { color: var(--gold-l); border-color: var(--gold); box-shadow: 0 0 10px rgba(212,166,58,.3); }
.period-chip { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 4px; padding: 6px 12px; border-radius: 20px;
  border: 1px solid var(--gold); color: var(--gold-l); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.period-chip b { font-size: 18px; line-height: 1; color: var(--cream); margin-left: 2px; }

/* Einklappbare Abschnitte in „Verlauf & mehr“ */
.fold { margin-top: 12px; border: 1px solid rgba(212,166,58,.3); border-radius: var(--r-panel); background: var(--panel); overflow: hidden; }
.fold-h { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; text-align: left; border-radius: 0; }
.fold-h span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fold-h b { font-size: 17px; letter-spacing: .16em; text-transform: uppercase; color: var(--cream); font-weight: 400; }
.fold-h small { font-family: var(--f-text); font-size: 15px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fold-h .ic { color: var(--gold); transform: rotate(90deg); transition: transform .25s; flex: none; }
.fold.open .fold-h .ic { transform: rotate(-90deg); }
.fold-b { padding: 4px 14px 16px; animation: sub-in .3s ease-out; }
.fold-b .sblock:first-child .label, .fold-b > .record:first-child { margin-top: 6px; }

/* ================= Bot am Zug: wirft dezent im Hintergrund – Karte nur leicht in seiner Farbe umglimmt, kein Streifen ================= */
.game.botturn .turnbar { background-color: var(--panel2); background-image: none; border-bottom-color: var(--line2); opacity: .7; }
.game.botturn .sbp.on, .game.botturn .sbr.on {
  background-color: #141210 !important; background-image: none !important; color: var(--cream2) !important;
  border-color: color-mix(in srgb, var(--pc) 45%, transparent) !important; flex-grow: 1 !important;
  box-shadow: 0 0 24px -10px var(--pc), inset 0 0 40px -24px var(--pc) !important; animation: bot-glow 2.4s ease-in-out infinite; }
@keyframes bot-glow { 50% { box-shadow: 0 0 30px -8px var(--pc), inset 0 0 50px -22px var(--pc); } }
.game.botturn .sbp.on::after { display: none; }
.game.botturn .sbp.on .sbp-name, .game.botturn .sbr.on .sbr-n > b { font-family: var(--f-num); font-size: 22px !important; letter-spacing: .08em; }
.game.botturn .sbp.on .sbp-rem, .game.botturn .sbr.on .sbr-rem { color: var(--cream) !important; opacity: .9; }
.game.botturn .sbp.on .sbp-stats { background: rgba(0,0,0,.2); }
.game.botturn .sbp.off, .game.botturn .sbr.off { opacity: 1; filter: none; }
.game.botturn .botpad { opacity: .75; }
.game.botturn .bp-top { padding: 6px 10px; background: transparent; border-color: var(--line); }
.game.botturn .bp-top .av, .game.botturn .bp-top > :first-child { transform: scale(.75); transform-origin: left center; }
.game.botturn .bp-t b { font-size: 18px; }

/* ================= Eingabe-Scheibe: Dartpfeil als Zeiger, steckende Darts, elegante Lupe ================= */
.aimboard { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cg transform='translate(3 29) rotate(-45)'%3E%3Cpath d='M0 0H6' stroke='%230b0a08' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M0 0H6' stroke='%23f3e9d2' stroke-width='1.4' stroke-linecap='round'/%3E%3Crect x='6' y='-2' width='10' height='4' rx='1.6' fill='%23f3e9d2' stroke='%230b0a08' stroke-width='.8'/%3E%3Cpath d='M16 0H21' stroke='%23d9c9a3' stroke-width='1.6'/%3E%3Cpath d='M20 0L24 -6H31L28.5 0Z' fill='%23e5402c' stroke='%230b0a08' stroke-width='.6'/%3E%3Cpath d='M20 0L24 6H31L28.5 0Z' fill='%23a92a1b' stroke='%230b0a08' stroke-width='.6'/%3E%3C/g%3E%3C/svg%3E") 3 29, crosshair; }
.aimboard .amark .hole { fill: #0b0a08; }
.aimboard .amark .adart { filter: drop-shadow(1px 1.5px .6px rgba(0,0,0,.6)); }
.aimboard .amark g circle { fill: var(--ink); stroke: var(--gold-l); stroke-width: .9; }
.aimboard .amark text { fill: var(--gold-l); font-family: var(--f-num); font-size: 6px; }
.aimboard .amark { animation: dart-stick .28s cubic-bezier(.2,.9,.3,1.3) both; }
@keyframes dart-stick { from { opacity: 0; transform-box: fill-box; } 60% { opacity: 1; } }

.loupe.aim { width: 150px; height: 150px; border: 0; background: none; box-shadow: none; overflow: visible; border-radius: 50%; }
.loupe.aim .lp-glass { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; background: var(--coal);
  box-shadow: 0 0 0 1.5px rgba(236,201,106,.95), 0 0 0 5px rgba(11,10,8,.55), 0 0 0 6px rgba(212,166,58,.35), 0 14px 34px rgba(0,0,0,.65), 0 0 22px rgba(236,201,106,.25); }
.loupe.aim .lp-glass::after { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 30% 22%, rgba(255,255,255,.16), transparent 42%), radial-gradient(circle, transparent 62%, rgba(0,0,0,.45) 100%); }
.loupe.aim .lp-glass > svg.aimboard { width: 100%; height: 100%; }
.loupe.aim .lp-dart { position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px; overflow: visible; filter: drop-shadow(1px 2px 1px rgba(0,0,0,.7)); }
.loupe.aim .lp-t { bottom: auto; top: calc(100% + 8px); padding: 3px 14px; border-radius: 20px; border: 1px solid rgba(236,201,106,.7); box-shadow: 0 4px 12px rgba(0,0,0,.5); font-size: 20px; letter-spacing: .06em; }

/* Schnellwahl: gewählte Zahl blitzt kurz im Eingabefeld auf, bevor sie übernommen wird */
.entry .val.flash { color: var(--gold-l); animation: quick-flash .42s ease-out; }
@keyframes quick-flash { 0% { transform: scale(.8); opacity: .3; } 35% { transform: scale(1.12); opacity: 1; text-shadow: 0 0 18px rgba(236,201,106,.7); } 100% { transform: scale(1); } }
/* Training (Solo): weder Sieg noch Niederlage */
.ml-res.t { background: var(--panel3); color: var(--gold-l); }
.form-row .t { background: var(--panel3); color: var(--gold-l); border: 1px solid var(--line2); }

/* ================= Overall-Average: goldener Rauch, Goldschein hinter der Zahl, Lichtstrich um die Zahl ================= */
.hero-stat { overflow: hidden; isolation: isolate; }
.hero-stat > small, .hero-stat > em, .hero-stat > .glitter { position: relative; z-index: 2; }
.hero-stat .smoke { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .42; mix-blend-mode: screen;
  -webkit-mask: radial-gradient(ellipse 70% 80% at 50% 55%, #000 30%, transparent 85%); mask: radial-gradient(ellipse 70% 80% at 50% 55%, #000 30%, transparent 85%); }
.hero-stat .smoke svg { position: absolute; top: -10%; left: -50%; width: 200%; height: 120%; animation: smoke-drift 26s linear infinite; }
.hero-stat .smoke svg.s2 { opacity: .6; transform: scaleY(-1); animation: smoke-drift2 38s linear infinite; }
@keyframes smoke-drift { from { transform: translateX(-25%) scaleY(1); } 50% { transform: translateX(0) scaleY(1.15); } to { transform: translateX(25%) scaleY(1); } }
@keyframes smoke-drift2 { from { transform: translateX(25%) scaleY(-1.1); } to { transform: translateX(-25%) scaleY(-1); } }
/* kräftiges Gold direkt hinter der Zahl */
.hero-stat .glitter::before { content: ""; position: absolute; left: -18%; right: -18%; top: 8%; bottom: 4%; z-index: -1; pointer-events: none; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255,205,90,.55), rgba(212,150,40,.22) 45%, transparent 72%); filter: blur(10px); animation: gold-breathe 4s ease-in-out infinite; }
@keyframes gold-breathe { 50% { opacity: .7; transform: scale(1.06); } }
/* Lichtstrich um die Zahl – nur ab und zu */
.num-ring { position: absolute; left: -16px; right: -16px; top: 4px; bottom: -2px; pointer-events: none; z-index: 1; border-radius: 16px;
  animation: ring-show 7s ease-in-out infinite; }
.num-ring::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px;
  background: conic-gradient(from var(--ga), transparent 0 80%, rgba(255,230,160,.0) 82%, #fff2c8 90%, #ffd36a 92%, transparent 95%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  filter: drop-shadow(0 0 4px rgba(255,214,120,.95)); animation: glint 2.6s linear infinite; }
@keyframes ring-show { 0%, 55%, 100% { opacity: 0; } 62%, 92% { opacity: 1; } }

/* ================= Startseite: mehr Leben ================= */
/* Name: ab und zu laufen Lichtspuren die Buchstabenkanten entlang */
.me-name { position: relative; }
.me-name .nm-trace { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.me-name .nm-trace text { font: inherit; letter-spacing: inherit; fill: none; stroke: #ffcf5a; stroke-width: 2.2; stroke-linecap: round;
  stroke-dasharray: 46 240; filter: drop-shadow(0 0 4px #ffc84a) drop-shadow(0 0 9px rgba(255,190,60,.8)); animation: name-trace 6.5s linear infinite, name-trace-show 6.5s ease-in-out infinite; }
.me-name .nm-trace text.t2 { stroke: #fff0c2; animation-delay: -3.2s, -3.2s; stroke-dasharray: 26 280; }
@keyframes name-trace { from { stroke-dashoffset: 278; } to { stroke-dashoffset: 0; } }
@keyframes name-trace-show { 0%, 40%, 100% { opacity: 0; } 48%, 88% { opacity: 1; } }
/* Average beim App-Start: Zahlen rattern wie an einem Spielautomaten, dann Einrasten mit Blitz */
.me-avg b.rolling { filter: blur(.4px) drop-shadow(0 0 10px rgba(255,214,120,.8)); color: #fff6dc; }
.me-avg b.landed { animation: avg-land .7s cubic-bezier(.2,.9,.3,1.3); }
@keyframes avg-land { 0% { transform: scaleX(1.32) scale(1.35); filter: url(#ink) drop-shadow(0 0 22px rgba(255,230,150,1)); } 100% { transform: scaleX(1.32) scale(1); } }
/* Hero-Karte: Sterne funkeln, Strahlen drehen sich ganz langsam, 501 glimmt, Start-Knopf atmet */
.hero-art svg > path { transform-box: fill-box; transform-origin: center; animation: hero-star 3.6s ease-in-out infinite; }
.hero-art svg > path:nth-last-child(2) { animation-delay: -1.2s; } .hero-art svg > path:last-child { animation-delay: -2.3s; }
@keyframes hero-star { 0%, 100% { opacity: .55; transform: scale(1) rotate(0deg); } 50% { opacity: 1; transform: scale(1.35) rotate(18deg); } }
.hero-art svg > g:first-child { transform-origin: 200px 200px; animation: rays-turn 140s linear infinite; }
@keyframes rays-turn { to { transform: rotate(360deg); } }
.hero-art svg > g:nth-child(4) circle { animation: dot-blink 2.8s ease-in-out infinite; }
.hero-art svg > g:nth-child(4) circle:nth-child(3n) { animation-delay: -.9s; } .hero-art svg > g:nth-child(4) circle:nth-child(3n+1) { animation-delay: -1.8s; }
@keyframes dot-blink { 50% { opacity: .2; } }
.hero-num { position: relative; animation: num-glow 4.5s ease-in-out infinite; }
@keyframes num-glow { 50% { text-shadow: 3px 3px 0 var(--red), 0 0 26px rgba(255,214,120,.55); } }
.hero-band .stars svg { animation: dot-blink 2.2s ease-in-out infinite; }
.hero .btn.red.big { animation: btn-breathe 3.2s ease-in-out infinite; }
@keyframes btn-breathe { 50% { box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 3px 0 var(--red-d), 0 0 26px rgba(229,64,44,.55); } }
@media (prefers-reduced-motion: reduce) {
  .hero-stat .smoke svg, .num-ring, .num-ring::before, .hero-stat .glitter::before, .me-name .nm-trace text, .hero-art svg > *, .hero-art svg > g circle, .hero-num, .hero .btn.red.big { animation: none !important; }
  .num-ring, .me-name .nm-trace { display: none; }
}

@media (max-width: 480px) { .subtabs.three button { font-size: 14px; letter-spacing: .08em; white-space: nowrap; } }
