:root {
  --bg: #0e0d0b;
  --card: #1e1b15;
  --card2: #26221a;
  --ink: #f7f2e6;
  --muted: #a0967e;
  --line: #3e3728;
  --accent: #e8b434;
  --red: #f26862;
  --warn: #f4aa46;
  --low: #f4aa46;
  --field: #15130f;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px; line-height: 1.45;
  -webkit-text-size-adjust: 100%;
}
#app { max-width: 720px; margin: 0 auto; padding: 24px 16px 40px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
h1 { font-size: 32px; margin: 0; line-height: 1.15; }
h2 { font-size: 22px; margin: 0 0 8px; }
h3 { font-size: 15px; margin: 18px 0 4px; color: var(--accent); }
p { margin: 6px 0; }

.card { background: var(--card); border-radius: 8px; padding: 24px; }
.center { text-align: center; }

/* Anmeldung */
.login { max-width: 420px; margin: 12vh auto 0; }
.login h1 { font-size: 26px; margin-bottom: 6px; }
label { display: block; font-weight: 600; margin: 18px 0 6px; font-size: 14px; }
label.tick { font-weight: 400; display: flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--muted); }
label.tick input { width: 18px; height: 18px; accent-color: var(--accent); }
#pw {
  width: 100%; padding: 12px; font-size: 16px; color: var(--ink);
  background: var(--field); border: 1px solid var(--line); border-radius: 6px; outline: none;
}
#pw:focus { border-color: var(--accent); }
button {
  font: inherit; font-weight: 600; color: #1a1408; background: var(--accent);
  border: 0; border-radius: 6px; padding: 11px 22px; cursor: pointer; margin-top: 14px;
}
button:disabled { opacity: .55; cursor: default; }
button.link {
  background: none; color: var(--muted); padding: 6px 0; font-weight: 400;
  text-decoration: underline; text-underline-offset: 3px;
}
button.link:hover { color: var(--ink); }
.securityBtn { display: block; margin-top: 18px; }
.error { color: var(--red); font-weight: 600; min-height: 1.4em; margin-top: 10px; }

/* Warten */
.spinner {
  width: 34px; height: 34px; margin: 6px auto 12px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
#busy { max-width: 420px; margin: 12vh auto 0; }

/* Anzeige */
.head { display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
.logo { width: 180px; max-width: 42%; height: auto; }
.headText { flex: 1; min-width: 0; }
.accentBar { width: 60px; height: 3px; background: var(--accent); margin-top: 10px; }
.row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--card); border-radius: 4px; padding: 11px 16px; margin-bottom: 6px;
  border-left: 4px solid transparent;
}
.row.warn { border-left-color: var(--low); }
.row.paused { border-left-color: var(--red); }
.name { font-weight: 700; font-size: 17px; overflow-wrap: anywhere; }
.sub { font-size: 12.5px; margin-top: 1px; }
.row.warn .sub, .row.warn .amount { color: var(--low); }
.row.paused .name, .row.paused .sub, .row.paused .amount { color: var(--red); }
.row.gone .name { color: var(--muted); }
.row.gone .sub { color: var(--muted); }
.amount { font-weight: 700; font-size: 21px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.amount.neg { color: var(--red); }
.sum {
  display: flex; justify-content: space-between; align-items: flex-start;
  border-top: 1px solid var(--line); margin-top: 16px; padding: 16px 16px 0 0;
}
.sumLabel { font-weight: 700; color: var(--muted); font-size: 17px; }
.sumValue { font-weight: 700; font-size: 26px; color: var(--accent); white-space: nowrap; }
.hint { background: var(--card); border-left: 4px solid var(--warn); border-radius: 4px; padding: 14px 18px; margin-top: 22px; }
.hintTitle { color: var(--warn); font-weight: 700; margin-bottom: 4px; }
.foot { display: flex; justify-content: space-between; align-items: center; margin-top: 26px; border-top: 1px solid var(--line); padding-top: 8px; }
.foot button { margin-top: 0; }
.sentence { display: block; }
.clause { display: inline-block; max-width: 100%; }
p, .sub { text-wrap: pretty; }

/* Erklaerung */
.overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.72);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 24px 16px; overflow-y: auto; z-index: 10;
}
.dialog { max-width: 620px; width: 100%; border: 1px solid var(--line); }
.dialog .lead { font-weight: 600; background: var(--card2); border-radius: 6px; padding: 10px 12px; margin: 10px 0 4px; }
.dialog p { color: #ddd3bd; }

@media (max-width: 520px) {
  #app { padding: 16px 12px 32px; }
  h1 { font-size: 26px; }
  .head { flex-direction: column; gap: 14px; }
  .logo { max-width: 62%; }
  .name { font-size: 16px; }
  .amount { font-size: 18px; }
  .sumValue { font-size: 22px; }
}

/* Umschalter oben */
.tabs { display: flex; gap: 6px; background: var(--card); padding: 5px; border-radius: 8px; margin-bottom: 22px; }
.tab { flex: 1; margin: 0; background: none; color: var(--muted); padding: 9px 10px; border-radius: 6px; font-weight: 600; }
.tab.active { background: var(--accent); color: #1a1408; }
.tab:not(.active):hover { color: var(--ink); background: var(--card2); }

/* Rundenuebersicht */
.rhead { display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.rheadText { flex: 1; min-width: 0; border-left: 4px solid var(--accent); padding-left: 14px; }
.kicker { color: var(--accent); font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.rheadText h1 { font-size: 26px; margin: 2px 0; }
.rlogo { width: 150px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 22px; }
.kpi { background: var(--card); border-radius: 4px; padding: 10px 12px; }
.kpi .l { color: var(--muted); font-size: 12px; }
.kpi .v { font-weight: 700; font-size: 19px; white-space: nowrap; }
h2.sect { font-size: 17px; margin: 22px 0 8px; }
.weeks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.week .kw { color: var(--muted); font-size: 11px; font-weight: 700; margin-bottom: 4px; }
.week .days { display: flex; gap: 4px; }
.day { flex: 1; min-width: 0; }
.day .bar { height: 6px; border-radius: 3px; background: #c8c2b6; margin-bottom: 4px; }
.day.done .bar { background: #6c6558; }
.day.next .bar { background: var(--accent); }
.day.win .bar { background: #60d280; }
.day .tile { background: var(--card); border-radius: 4px; text-align: center; padding: 6px 2px; font-size: 13px; white-space: nowrap; }
.day.done .tile { color: var(--muted); }
.day.win .tile { background: #1a3a24; color: #60d280; font-weight: 700; }
.tableWrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { color: var(--muted); font-size: 12px; font-weight: 700; text-align: right; background: var(--card); padding: 7px 8px; white-space: nowrap; }
.tbl th:first-child, .tbl td:first-child { text-align: left; }
.tbl td { text-align: right; padding: 6px 8px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl tr:nth-child(odd) td { background: #16140f; }
.tbl td.v { text-align: left; white-space: normal; color: var(--muted); min-width: 140px; }
.tbl tr.storno td { color: var(--muted); text-decoration: line-through; }
.tbl tr.storno td.v { color: var(--red); text-decoration: none; }
.plus { color: #60d280; } .minus { color: var(--red); } .bold { font-weight: 700; }
.pausRow { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: #3a1a18; border-radius: 4px; padding: 7px 10px; margin-bottom: 4px; font-size: 14px; }
.pausRow .n { color: var(--red); }
/* Hinweis in eine Zeile (etwas kleiner); passt es nicht, wird nur nach " – " umbrochen, nie vor dem Betrag */
.pausRow .pausInfo { font-size: 13px; }
.box { background: var(--card); border-left: 4px solid var(--red); border-radius: 4px; padding: 14px 16px; margin-top: 22px; }
.box.good { border-left-color: #60d280; }
.box.plain { border-left: 0; }
.box h3 { color: var(--ink); margin: 0 0 10px; font-size: 16px; }
.bil { display: grid; grid-template-columns: 1fr auto; gap: 20px; }
.bil .line { display: flex; justify-content: space-between; gap: 16px; padding: 3px 0; }
.bil .total { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 6px; font-weight: 700; font-size: 16px; }
.bil .per { font-size: 13.5px; color: var(--muted); min-width: 150px; }
.bil .per .line.total { color: var(--ink); font-size: 14px; }
.urteil { font-weight: 700; margin-top: 10px; }
.urteil.good { color: #60d280; } .urteil.bad { color: var(--red); }
.knapp { margin-top: 8px; max-width: 360px; }
.knapp .line { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding: 4px 0; font-size: 14px; }
.knapp .hdr { color: var(--muted); font-size: 12px; font-weight: 700; border-top: 0; }
.note { margin-top: 18px; }
.tiny { font-size: 11px; margin-top: 10px; }

@media (max-width: 560px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .rhead { flex-direction: column; }
  .rlogo { width: 55%; }
  .bil { grid-template-columns: 1fr; gap: 10px; }
  .tbl { font-size: 13px; }
  .tbl th, .tbl td { padding: 6px 5px; }
}

.tbl th.left { text-align: left; }

/* Handy: Logo kleiner und mittig */
@media (max-width: 560px) {
  .rlogo, .head .logo { width: 38%; max-width: 160px; align-self: center; }
}

/* Anmeldung: Hinweis zentriert */
.loginText { text-align: center; }
.nobr { white-space: nowrap; }
.login h1.loginTitle { text-align: center; margin-bottom: 18px; }

/* Auge im Passwortfeld */
.pwWrap { position: relative; }
.pwWrap #pw { padding-right: 48px; }
.eye { position: absolute; top: 0; right: 0; height: 100%; width: 46px; margin: 0; padding: 0; background: none; color: var(--muted); border-radius: 0 6px 6px 0; display: flex; align-items: center; justify-content: center; }
.eye:hover, .eye:focus-visible { color: var(--ink); }

/* Guthaben gesamt gruen (Summe der Personen bleibt grau) */
.sumLabel, .sumValue { color: #60d280; }

/* Naechste (noch nicht begonnene) Runde */
.coming { background: var(--card); border-radius: 4px; padding: 10px 14px; margin: 0 0 16px; font-weight: 600; text-wrap: pretty; }

/* Kontoauszug zum Aufklappen */
.tapHint { margin: -10px 0 12px; }
.person { margin-bottom: 6px; }
.person .row { margin-bottom: 0; }
.row.tap { cursor: pointer; }
.row.tap:hover { background: var(--card2); }
.row.tap:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.row.open { border-bottom-left-radius: 0; border-bottom-right-radius: 0; background: var(--card2); }
.konto { background: #16140f; border: 1px solid var(--card2); border-top: 0; border-radius: 0 0 4px 4px; overflow: hidden; }
.kontoIn { padding: 6px 14px 10px; }
.kontoHead { color: var(--muted); font-size: 12px; font-weight: 700; padding: 6px 0; }
.kz { border-top: 1px solid var(--line); padding: 8px 0; }
.kzTop, .kzBot { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.kzL { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.kzD { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.kzA { font-weight: 700; }
.kzB { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.kzT { color: var(--muted); font-size: 13px; min-width: 0; }
.kzS { color: var(--muted); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.kz.storno .kzA, .kz.storno .kzB { color: var(--muted); text-decoration: line-through; }

/* Verlauf */
.hRow { display: flex; justify-content: space-between; gap: 16px; background: var(--card); border-left: 4px solid transparent; border-radius: 4px; padding: 11px 16px; margin-bottom: 6px; }
.hRow.now { border-left-color: var(--accent); }
.hRow.storno { opacity: .6; }
.hL { min-width: 0; }
.hT { font-weight: 700; font-size: 17px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tag { font-size: 11px; font-weight: 700; border-radius: 4px; padding: 1px 7px; background: var(--card2); color: var(--muted); }
.tag.gold { background: var(--accent); color: #1a1408; }
.tag.red { background: #3a1a18; color: var(--red); }
.hR { min-width: 150px; font-size: 14px; }
.hN { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
#hTotal { margin-top: 0; margin-bottom: 8px; }
#hTotal .line { display: flex; justify-content: space-between; gap: 16px; padding: 3px 0; }
#hTotal .line.total { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 6px; font-weight: 700; font-size: 16px; }
@media (max-width: 560px) {
  .hRow { flex-direction: column; gap: 8px; }
  .hR { min-width: 0; }
  .tab { padding: 9px 4px; font-size: 15px; }
}

/* Handy: keine sichtbaren Scrollbalken (Scrollen geht weiter mit dem Finger) */
@media (max-width: 760px), (pointer: coarse) {
  html, body, .tableWrap, .overlay { scrollbar-width: none; -ms-overflow-style: none; }
  html::-webkit-scrollbar, body::-webkit-scrollbar, .tableWrap::-webkit-scrollbar, .overlay::-webkit-scrollbar { display: none; width: 0; height: 0; }
}

/* Handy: Reiter einzeilig ("Runde" statt "Aktuelle Runde") */
@media (max-width: 460px) { .tabLong { display: none; } }

/* niedriges Guthaben: Name ganz leicht roetlich */
.row.warn .name { color: #f7cf94; }

/* Hinweis "Diese Runde beginnt am ...": weich pulsierender gelber Rahmen */
.coming { border: 2px solid var(--red); border-radius: 6px; animation: comingPulse 2.4s ease-in-out infinite; }
@keyframes comingPulse {
  0%, 100% { border-color: rgba(242, 104, 98, .35); box-shadow: 0 0 0 0 rgba(242, 104, 98, 0); }
  50% { border-color: rgba(242, 104, 98, 1); box-shadow: 0 0 14px 2px rgba(242, 104, 98, .35); }
}
@media (prefers-reduced-motion: reduce) { .coming { animation: none; } }

/* Aktualisieren-Knopf rechts neben den Reitern */
.reload { flex: 0 0 auto; margin: 0; width: 42px; padding: 0; background: none; color: var(--muted); border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.reload:hover, .reload:focus-visible { color: var(--ink); background: var(--card2); }
.reload.spin svg { animation: spin .8s linear infinite; }
@media (max-width: 460px) { .reload { width: 36px; } }

/* Abmelden als roter Knopf */
#logout { text-decoration: none; background: #3a1a18; color: var(--red); font-weight: 600; padding: 7px 16px; border-radius: 6px; }
#logout:hover { background: #4a201d; color: #ff8a84; }

/* Logo auf allen Reitern gleich gross */
.logo, .rlogo { width: 150px; max-width: 42%; }
@media (max-width: 560px) { .rlogo, .head .logo { width: 38%; max-width: 160px; } }

/* Aktualisieren: sanft abdunkeln statt Flackern */
#view { transition: opacity .35s ease; }
#view.dim { opacity: .45; }
.comingRed { color: var(--red); margin-top: 2px; }

/* Reiter: gelber Hintergrund gleitet weich zum aktiven Reiter */
.tabs { position: relative; }
.tabInd { position: absolute; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 6px; background: var(--accent); opacity: 0;
  transition: transform .32s cubic-bezier(.4, 0, .2, 1), width .32s cubic-bezier(.4, 0, .2, 1); pointer-events: none; }
.tabInd.ready { opacity: 1; }
.tabInd.noAnim { transition: none; }
.tabs .tab { position: relative; z-index: 1; transition: color .25s ease; }
.tabs .tab.active { background: none; }
.tabs .reload { position: relative; z-index: 1; }

/* Ansicht blendet beim Reiterwechsel ein */
/* nur Ueberblenden (kein Wischen); das Logo bleibt stehen */
.enter > :not(#roundBody):not(.head),
.enter > #roundBody > :not(.rhead),
.enter .rhead > :not(.logo),
.enter .head > :not(.logo) { animation: viewIn .35s ease both; }
@keyframes viewIn { from { opacity: 0; } to { opacity: 1; } }
.enter > #roundBody > .coming { animation: viewIn .35s ease both, comingPulse 2.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .tabInd { transition: none; } .enter * { animation: none !important; } }
#view { overflow-x: clip; }

/* Kontoauszug: "Alle ... Buchungen anzeigen" */
.kontoMore { display: block; width: 100%; margin: 8px 0 2px; padding: 9px 12px; background: var(--card2); color: var(--ink); font-weight: 600; border-radius: 6px; }
.kontoMore:hover { background: #312b21; }

/* Countdown bis zur naechsten Ziehung */
.countdown { margin: 0 0 12px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; }
.cdL { color: #c9c0aa; }
.cdT { color: var(--accent); font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
.cdSep, .cdW { color: var(--muted); font-size: 14px; }
.cdW { white-space: nowrap; }
@media (max-width: 560px) { .cdW { flex-basis: 100%; } .cdSep { display: none; } }

/* pausiert, Guthaben reicht aber wieder: ruhig grau */
.row.rests .sub { color: var(--muted); }

/* Kontoauszug: spaeter stornierte Buchung - eine graue Zeile, Betrag durchgestrichen */
.kz.storniert .kzD, .kz.storniert .kzA, .kz.storniert .kzT { color: #57513f; }
.kz.storniert .kzB { color: #57513f; text-decoration: line-through; }
.kz.storniert .tag { background: #3a1a18; color: var(--red); }
.kz.storno .kzA, .kz.storno .kzB { text-decoration: none; }

/* Schild "storniert" mittig zur Zeile "Gewinn" */
.kzL { align-items: center; }
.kzL .tag { line-height: 1.5; position: relative; top: -1px; }

/* Aufklappen: Hoehe gleitet, Inhalt blendet weich ein */
.konto { transition: height .34s cubic-bezier(.2, 0, .2, 1); }
.konto .kontoIn { transition: opacity .28s ease, transform .34s cubic-bezier(.2, 0, .2, 1); }
.konto.opening .kontoIn { opacity: 1; transform: none; }
.konto.closing .kontoIn { opacity: 0; transform: translateY(-6px); }
.row.tap { transition: background .2s ease, border-radius .2s ease; }
.chev { color: var(--muted); font-size: 22px; line-height: 1; margin-left: 2px; transform: rotate(90deg); transition: transform .3s cubic-bezier(.2, 0, .2, 1), color .2s; display: inline-block; width: 14px; text-align: center; }
.row.open .chev { transform: rotate(-90deg); color: var(--ink); }
@keyframes kontoIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.konto.opening .kontoIn { animation: kontoIn .3s cubic-bezier(.2, 0, .2, 1) both; }
@media (prefers-reduced-motion: reduce) { .konto, .konto .kontoIn, .chev { transition: none; animation: none !important; } }
.row.tap .amount { margin-left: auto; }

/* ===== Effekte ===== */
/* gestaffelter Aufbau der Zeilen */
.rise { animation: rise .45s cubic-bezier(.2, 0, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
/* Wochenbalken fuellen sich von links; der Balken der naechsten Ziehung pulsiert leicht */
.day .bar { transform-origin: left center; }
.day .bar.grow { animation: grow .6s cubic-bezier(.2, 0, .2, 1) both; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
/* Leuchten als eigene Ebene: nur deren Deckkraft aendert sich - der Balken selbst wird nie neu gezeichnet (sonst zittert er auf dem Handy) */
.day.next .bar { position: relative; }
/* z-index 1: das Leuchten liegt UEBER den Nachbarn - so werden die Nachbarbalken nicht mit in eigene Ebenen gezogen (sonst springen sie beim Zoomen mit) */
.day.next .bar::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 10px 1px rgba(232, 180, 52, .55); opacity: 0; animation: barGlow 2.4s ease-in-out .8s infinite; }
html.gezoomt .day.next .bar::after { animation: none; opacity: .7; }
@keyframes barGlow { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
/* Entsperren: Karte gleitet weg, Seite blendet ein; falsches Passwort: Karte schuettelt */
#login.leave { animation: leave .32s cubic-bezier(.4, 0, 1, 1) forwards; }
@keyframes leave { to { opacity: 0; transform: translateY(-16px) scale(.98); } }
#view.appear { animation: appear .5s cubic-bezier(.2, 0, .2, 1) both; }
@keyframes appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
#login.shake { animation: shake .45s cubic-bezier(.36, .07, .19, .97); }
@keyframes shake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); } 30%, 50%, 70% { transform: translateX(-8px); } 40%, 60% { transform: translateX(8px); } }
/* Konfetti */
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 30; }
.confetti i { position: absolute; top: -20px; border-radius: 2px; opacity: .95; animation: fall linear both; }
@keyframes fall { to { transform: translate(var(--dx, 0), 110vh) rotate(var(--rot, 720deg)); opacity: .9; } }
/* Popup "Neuer Gewinn" */
.overlay.center { align-items: center; z-index: 25; }
.winCard { max-width: 380px; text-align: center; animation: pop .45s cubic-bezier(.2, 1.3, .4, 1) both; }
@keyframes pop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
.winIcon { font-size: 44px; line-height: 1; margin-bottom: 6px; }
.winCard h2 { color: var(--accent); }
.winItem { background: var(--card2); border-radius: 6px; padding: 12px; margin: 10px 0; }
.winAmt { color: #60d280; font-weight: 700; font-size: 28px; font-variant-numeric: tabular-nums; }
.winPer { color: #60d280; font-weight: 600; margin-top: 4px; }
.winCard button { width: 100%; }
@media (prefers-reduced-motion: reduce) {
  .day.next .bar::after { opacity: .7; }
  .rise, .day .bar.grow, .day.next .bar::after, #login.leave, #view.appear, #login.shake, .winCard { animation: none !important; }
}

/* versteckter Testknopf fuer den Gewinn-Effekt */
.testWin { display: block; margin: 14px 0 0; padding: 4px 0; font-size: 11px; color: #5d5749; text-decoration: none; }
.testWin:hover { color: var(--muted); text-decoration: underline; }

/* ===== Guthaben-Verlauf (Chart) ===== */
.kontoHead { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.kontoChart { margin: 0; padding: 3px 10px; font-size: 12px; font-weight: 600; background: var(--card2); color: var(--ink); border-radius: 5px; }
.kontoChart::before { content: "📈 "; }
.kontoChart:hover { background: #312b21; }
.chartCard { max-width: 640px; padding: 18px 18px 14px; animation: pop .35s cubic-bezier(.2, 1.1, .4, 1) both; }
.chHead { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.chName { color: var(--muted); font-weight: 700; font-size: 14px; }
.chValue { font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.15; }
.chDelta { font-size: 13.5px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.chDelta.up { color: #60d280; } .chDelta.down { color: var(--red); }
.chClose { margin: 0; background: var(--card2); color: var(--muted); width: 34px; height: 34px; padding: 0; border-radius: 50%; font-size: 15px; }
.chClose:hover { color: var(--ink); }
.chRanges { display: flex; gap: 4px; margin: 14px 0 8px; background: var(--bg); border-radius: 7px; padding: 3px; width: max-content; }
.chR { margin: 0; padding: 5px 11px; font-size: 12.5px; background: none; color: var(--muted); border-radius: 5px; }
.chR.on { background: var(--card2); color: var(--ink); }
.chWrap { position: relative; touch-action: none; }
.chSvg { display: block; overflow: visible; cursor: crosshair; }
.chGrid { stroke: #2c281f; stroke-width: 1; }
.chBase { stroke: #6c6558; stroke-width: 1; stroke-dasharray: 3 4; }
.chAxis { fill: #8b8370; font-size: 11px; font-family: inherit; font-variant-numeric: tabular-nums; }
.chCross { stroke: #a0967e; stroke-width: 1; stroke-dasharray: 2 3; }
.chSvg .hidden { display: none; }
.chDot { filter: drop-shadow(0 0 4px currentColor); }
.chTip { position: absolute; top: -6px; background: var(--card2); border: 1px solid var(--line); border-radius: 5px; padding: 3px 8px; font-size: 12.5px; font-weight: 600; white-space: nowrap; pointer-events: none; font-variant-numeric: tabular-nums; }
.chNote { margin-top: 8px; }
.chartCard { text-align: left; }
/* Nicht zoomen (Miguel, 21.10.): nur Wischen erlaubt, kein Zwei-Finger- oder Doppeltipp-Zoom */
html, body { touch-action: pan-x pan-y; }
