:root {
  --bg: #e8edf6;
  --panel: #ffffff;
  --panel2: #edf1f8;
  --line: #d4dcec;
  --text: #17203a;
  --dim: #5a6a8c;
  --neon: #0072a8;
  --pink: #c2189b;
  --good: #0a8a5f;
  --bad: #c9184a;
  --gold: #9a6b00;
  --radius: 14px;
}
* { box-sizing: border-box; }
/* Fixed app surface: the page itself never scrolls vertically. main fills
   the viewport and the turn panel scrolls internally when a timeline gets
   long. dvh keeps the layout correct when the mobile keyboard opens
   (the viewport shrinks instead of the page scrolling). */
html, body { margin: 0; padding: 0; height: 100%; overflow: hidden; }
html {
  -webkit-text-size-adjust: 100%;
  /* The app is a fixed-width game surface: never allow horizontal panning
     ("swimming" left/right on phones). */
  overflow-x: hidden;
}
body { -webkit-tap-highlight-color: transparent; display: flex; flex-direction: column; }
button, .slot { touch-action: manipulation; }
body {
  background: radial-gradient(1200px 500px at 50% -100px, #f7f9fd 0%, var(--bg) 60%);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  height: 100vh;
  height: 100dvh;
}
.hidden { display: none !important; }
button { font-family: inherit; }
input, textarea { font-family: inherit; }

/* iOS Safari auto-zooms the page when a focused input's computed font-size
   is below 16px. Keep every focusable text field at >=16px regardless of
   viewport width — a media-query-scoped fix misses landscape phones and
   ~720px+ devices. Visual size is tuned with padding, not font-size. */
input,
textarea,
select {
  font-size: 16px;
}

header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 14px;
  flex: none;
  z-index: 40;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 8px rgba(23, 32, 58, 0.08);
}
.brand {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.4px;
  color: var(--neon);
}
.hud { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.hud-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
  color: var(--dim);
}
.hud-item.timer { color: var(--neon); font-variant-numeric: tabular-nums; font-weight: 700; }
.hud-item.timer.low { color: var(--bad); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: 0.45; } }
.header-btns { display: flex; gap: 8px; }

main {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 12px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
/* Fixed app surface: everything except the turn panel must never shrink —
   a long timeline scrolls inside the turn panel, not the page. */
.banner,
#audioBox,
#dock { flex: none; }
#turnBox {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
#turnBox h2 { flex: none; }
#turnTimeline { flex: 1; min-height: 0; overflow-y: auto; }
#waiting { flex: none; }
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}
.panel h2 {
  margin: 0 0 10px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--dim);
}
.banner {
  background: linear-gradient(90deg, rgba(194, 24, 155, 0.10), rgba(0, 114, 168, 0.10));
  border: 1px solid var(--pink);
  color: var(--text);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 14px;
  text-align: center;
}

.yt-hidden {
  position: fixed;
  left: -9999px;
  top: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}
.audio-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.eq { display: flex; align-items: flex-end; gap: 3px; height: 22px; }
.eq i {
  width: 4px;
  background: var(--neon);
  border-radius: 2px;
  height: 20%;
  box-shadow: 0 0 4px rgba(0, 114, 168, 0.4);
}
.eq.playing i { animation: eqb 0.8s ease-in-out infinite; }
.eq.playing i:nth-child(1) { animation-delay: 0s; }
.eq.playing i:nth-child(2) { animation-delay: 0.15s; }
.eq.playing i:nth-child(3) { animation-delay: 0.3s; }
.eq.playing i:nth-child(4) { animation-delay: 0.45s; }
.eq.playing i:nth-child(5) { animation-delay: 0.6s; }
@keyframes eqb { 0%, 100% { height: 20%; } 50% { height: 100%; } }
.btn.blink {
  animation: pulse 1s infinite;
  border-color: var(--gold);
  box-shadow: 0 0 14px rgba(154, 107, 0, 0.45);
}

.sound-hint {
  margin-top: 10px;
  text-align: center;
  color: var(--gold);
  font-size: 13px;
  border: 1px dashed var(--gold);
  border-radius: 10px;
  padding: 8px;
  animation: pulse 1.4s infinite;
}

.slot {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: transparent;
  border: 1px dashed #b9c6de;
  color: var(--dim);
  border-radius: 10px;
  padding: 7px 10px;
  margin: 5px 0;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.15s;
}
.slot:hover { border-color: var(--neon); color: var(--text); }
.slot.placed {
  border: 2px solid var(--gold);
  background: rgba(255, 200, 60, 0.08);
  color: var(--gold);
}
.slot.placed .plus::after {
  content: "📌";
  font-size: 11px;
}
.action-row { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.foreign { opacity: 0.55; filter: grayscale(0.75); }
.action-row .btn.big { flex: 1; }
.slot.static { cursor: default; pointer-events: none; }
.slot.selected {
  border: 2px solid var(--neon);
  background: rgba(0, 114, 168, 0.08);
  color: var(--neon);
  box-shadow: 0 0 12px rgba(0, 114, 168, 0.25);
}
.slot .plus {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex: none;
}
.card {
  position: relative;
  perspective: 900px;
  margin: 2px 0;
}
.card-inner {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s;
}
.card.new .card-inner { animation: flip 0.7s ease; }
@keyframes flip {
  0% { transform: rotateY(180deg); }
  100% { transform: rotateY(0deg); }
}
.card-face {
  background: linear-gradient(135deg, #ffffff, #f3f6fc);
  border: 1px solid #cdd8ec;
  border-radius: 10px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 10px rgba(23, 32, 58, 0.08);
}
.card-face .year {
  font-size: 14px;
  font-weight: 800;
  color: var(--neon);
  background: rgba(0, 114, 168, 0.10);
  border-radius: 7px;
  padding: 3px 8px;
  flex: none;
  font-variant-numeric: tabular-nums;
}
.card-face .meta { flex: 1; min-width: 0; }
.card-face .t {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-face .a {
  color: var(--dim);
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card.wrong { animation: shake 0.5s; border-color: var(--bad); }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-9px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(4px); }
}
.guess-row { display: flex; gap: 8px; margin-top: 10px; align-items: stretch; }
.guess {
  flex: 1;
  min-width: 0;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  padding: 9px 12px;
}
.guess:focus { outline: none; border-color: var(--neon); }
.guess-btn {
  flex: 0 0 auto;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  color: #241a02;
  background: linear-gradient(180deg, #ffe27a, #f2c333);
  border: 1px solid #b8901c;
  box-shadow: 0 0 12px rgba(255, 212, 71, 0.35);
  padding: 8px 10px;
}
.guess-btn.guess-ok { background: var(--good); border-color: var(--good); color: #fff; box-shadow: none; }
.guess-btn:hover { box-shadow: 0 0 18px rgba(255, 212, 71, 0.6); }
.guess-btn:disabled { filter: grayscale(0.7); opacity: 0.6; cursor: default; box-shadow: none; }
.btn {
  background: var(--panel2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
}
.btn:hover { border-color: var(--neon); box-shadow: 0 0 10px rgba(0, 114, 168, 0.25); }
.btn.primary {
  background: linear-gradient(90deg, #0084c4, #005fdd);
  border: none;
  color: #ffffff;
  font-weight: 700;
}
.btn.primary:hover { box-shadow: 0 0 16px rgba(0, 95, 221, 0.4); }
.btn.primary:disabled { filter: grayscale(0.7); opacity: 0.6; cursor: default; }
.btn.big { width: 100%; margin-top: 12px; padding: 14px; font-size: 16px; }
.btn.small { padding: 6px 10px; font-size: 13px; }
.btn.icon { padding: 6px 10px; font-size: 16px; }
.btn.danger:hover { border-color: var(--bad); box-shadow: 0 0 10px rgba(201, 24, 74, 0.3); }
.waiting { margin-top: 10px; color: var(--dim); font-size: 13px; }
.waiting b { color: var(--gold); }

.outcome.credit { background: rgba(154, 107, 0, 0.08); border: 1px solid var(--gold); color: var(--gold); }

/* ---------- score rows: "Wer steht wo" (dots + credits) in the audio card ---------- */
.score-rows {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 10px;
}
/* round countdown pill inside the audio row (pushed to the right) */
#cardTimer { margin-left: auto; }
.st-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 4px;
  font-size: 11px;
  border-radius: 6px;
}
.st-row .nm {
  font-weight: 600;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.st-row .dots { display: flex; gap: 2.5px; flex: none; }
.st-row .dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  transition: background 0.3s, box-shadow 0.3s;
}
.st-row .dots i.on {
  background: var(--neon);
  border-color: var(--neon);
  box-shadow: 0 0 4px rgba(0, 114, 168, 0.4);
}
.st-row .cr {
  flex: none;
  font-weight: 700;
  font-size: 10px;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  min-width: 8px;
  text-align: right;
}
.st-row .cr.zero { color: var(--dim); }
.st-row.me {
  background: rgba(0, 114, 168, 0.07);
  box-shadow: inset 0 0 0 1px var(--neon);
}
.st-row.offline { opacity: 0.45; }

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(23, 32, 58, 0.55);
  backdrop-filter: blur(6px);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}
.ov-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  max-width: 520px;
  width: 100%;
  padding: 22px;
  text-align: center;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(23, 32, 58, 0.2);
}
.ov-year {
  font-size: 52px;
  font-weight: 900;
  color: var(--neon);
  margin: 4px 0;
  font-variant-numeric: tabular-nums;
}
.ov-title { font-size: 22px; font-weight: 700; }
.ov-artist { color: var(--dim); font-size: 15px; margin-bottom: 14px; }
.outcome {
  border-radius: 12px;
  padding: 12px;
  font-size: 15px;
  font-weight: 700;
  margin: 12px 0;
}
.outcome.good { background: rgba(10, 138, 95, 0.10); border: 1px solid var(--good); color: var(--good); }
.outcome.bad { background: rgba(201, 24, 74, 0.08); border: 1px solid var(--bad); color: var(--bad); }
.outcome.skip { background: rgba(90, 106, 140, 0.08); border: 1px solid var(--line); color: var(--dim); }
.res-list { text-align: left; margin: 14px 0; display: flex; flex-direction: column; gap: 6px; }
.res-item { display: flex; gap: 8px; align-items: center; font-size: 13px; background: var(--panel2); border-radius: 8px; padding: 7px 10px; }
.res-item .rnm { flex: 1; }
.res-item .pt { font-weight: 800; font-variant-numeric: tabular-nums; }
.res-item .pt.plus { color: var(--good); }
.res-item .pt.zero { color: var(--dim); }
.ov-next { color: var(--dim); font-size: 13px; margin-top: 10px; font-variant-numeric: tabular-nums; }
.winner-banner {
  font-size: 26px;
  font-weight: 900;
  color: var(--gold);
  margin: 6px 0 14px;
}
.song-history { text-align: left; margin-top: 10px; max-height: 220px; overflow-y: auto; }
.song-history div { font-size: 13px; padding: 5px 8px; border-bottom: 1px solid var(--line); }
.song-history .y { color: var(--neon); font-weight: 700; margin-right: 8px; font-variant-numeric: tabular-nums; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(23, 32, 58, 0.45);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  max-width: 420px;
  width: 100%;
  text-align: center;
}
.modal-card.wide { max-width: 640px; max-height: 90vh; overflow-y: auto; text-align: left; }
.modal-card h1 { margin: 0 0 8px; color: var(--neon); }
.modal-card p { color: var(--dim); font-size: 14px; }
.modal-card input {
  width: 100%;
  background: var(--panel2);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: 12px;
  font-size: 16px;
  margin: 10px 0;
  text-align: center;
}
.modal-card input:focus { outline: none; border-color: var(--neon); }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.modal-head h2 { margin: 0; }
.sm-tabs { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.tab {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--dim);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 13px;
}
.tab.active { color: var(--neon); border-color: var(--neon); box-shadow: 0 0 8px rgba(0, 114, 168, 0.25); }
.sm-section {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
  background: var(--panel2);
}
.sm-section h3 { margin: 0 0 8px; font-size: 14px; color: var(--dim); text-transform: uppercase; letter-spacing: 1px; }
.row { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.sm-input {
  flex: 1;
  min-width: 110px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  padding: 6px 10px;
}
.sm-input.narrow { flex: 0 0 90px; min-width: 90px; }
.sm-input:focus, textarea:focus { outline: none; border-color: var(--neon); }
textarea {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 10px;
  font-family: ui-monospace, monospace;
  resize: vertical;
}
.hint { color: var(--dim); font-size: 12px; }
.result { font-size: 13px; margin: 6px 0; color: var(--dim); white-space: pre-wrap; word-break: break-word; }
.result .ok { color: var(--good); }
.result .err { color: var(--bad); }
.cat-group { margin-bottom: 12px; }
.cat-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--neon);
  margin-bottom: 6px;
}
.cat-head .cnt { color: var(--dim); font-weight: 400; font-size: 12px; }
.cat-head .cat-toggle {
  width: 15px;
  height: 15px;
  accent-color: var(--neon);
  cursor: pointer;
  flex: none;
}
.cat-group.off { opacity: 0.45; }
.cat-group.off .cat-head .catname { text-decoration: line-through; }
.song-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--panel);
  margin-bottom: 4px;
}
.song-row .st { flex: 1; }
.song-row .sy { color: var(--neon); font-variant-numeric: tabular-nums; font-weight: 700; }
.song-row .sy.none { color: var(--bad); }
.song-row button {
  background: none;
  border: 1px solid var(--line);
  color: var(--dim);
  border-radius: 6px;
  cursor: pointer;
  font-size: 11px;
  padding: 2px 8px;
}
.song-row button:hover { color: var(--bad); border-color: var(--bad); }
.hs-row { display: flex; gap: 10px; font-size: 14px; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.hs-row .rk { color: var(--gold); font-weight: 800; width: 26px; }
.hs-row .nm { flex: 1; }
.hs-row .sc { color: var(--neon); font-weight: 700; }
.hs-row .at { color: var(--dim); font-size: 11px; }

#btnSubmit { transition: all 0.15s, width 0.2s; }

/* ---------- action dock (guess + place/challenge) ---------- */
#dock { display: block; }

/* ---------- smartphone layout ---------- */
@media (max-width: 720px) {
  header { padding: 8px 10px; gap: 8px; }
  .brand { font-size: 15px; }
  .header-btns { margin-left: auto; gap: 6px; }
  .header-btns .btn { padding: 7px 10px; font-size: 13px; }
  .hud { width: 100%; margin-left: 0; order: 3; gap: 6px; }
  .hud-item { padding: 5px 10px; font-size: 12px; flex: 1; text-align: center; }
  .hud-item.timer { font-size: 13px; }

  main { padding: 10px 10px 24px; gap: 10px; }
  .panel { padding: 10px; }
  .panel h2 { font-size: 13px; margin-bottom: 8px; }

  .slot { padding: 11px 12px; font-size: 13px; min-height: 46px; }
  .card-face { padding: 8px 10px; gap: 8px; }
  .card-face .year { font-size: 18px; }
  .card-face .t { font-size: 13px; }
  .card-face .a { font-size: 11px; }

  /* Mobile: the dock (Tipp + Platzieren/Challenge) is hidden between
     rounds and fixed at the bottom while a round runs. */
  #dock { display: none; }

  /* while a round is running, the dock (Tipp + Platzieren/Challenge)
     is fixed at the bottom — always one thumb away */
  body.in-round main { padding-bottom: 160px; }
  body.in-round #dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 30px rgba(23, 32, 58, 0.15);
  }
  body.in-round #dock .guess-row { margin: 0; }
  body.in-round #dock .action-row { margin: 0; }
  body.in-round #dock .btn.big { margin-top: 0; padding: 14px; font-size: 15px; }

  /* While the Tipp-/Chat-Input has focus (virtual keyboard open), the dock
     stays in normal flow: iOS scrolls the page to reveal the focused input
     and drags position:fixed elements along — the Tipp field then looks
     stretched across the whole width and the Tipp button is lost. In the
     normal flow the browser's native "scroll focused input into view"
     works and input + button stay on one row. The moment the keyboard
     closes again the dock snaps back to fixed (see app.js). */
  body.in-round.dock-open #dock {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 4px;
  }
  body.in-round.dock-open main { padding-bottom: 16px; }

  /* iOS focus-zoom is prevented globally (input/textarea = 16px) */
  .guess { padding: 11px 12px; }
  #btnGuess { padding: 9px 12px; font-size: 14px; }

  /* toasts sit above the fixed dock while a round runs */
  body.in-round .toasts { bottom: calc(168px + env(safe-area-inset-bottom, 0px)); }
  .ov-year { font-size: 40px; }
  .ov-title { font-size: 18px; }
  .outcome { font-size: 14px; padding: 10px; }
  .modal-card { padding: 16px; }

  /* the song manager gets the whole screen on phones */
  #songModal { padding: 0; }
  #songModal .modal-card {
    max-width: none;
    max-height: none;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
    border: none;
  }
}

/* --- focus mode (default): the whole top bar is hidden. The eye button
   (👁 restores the full bar) and the round countdown live in the audio
   card, which is always visible. */
body:not(.focus-off) header { display: none; }
@media (min-width: 721px) {
  .card-face { padding: 10px 14px; gap: 12px; border-radius: 12px; }
  .card-face .year { font-size: 20px; padding: 4px 10px; }
  .card-face .t { font-size: 14.5px; }
  .card-face .a { font-size: 12px; }
}

/* ---------- toasts: chat + Tipes (auto-fade after ~5s) ---------- */
.toasts {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 12px;
  z-index: 48;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  pointer-events: none;
}
.toast {
  max-width: 340px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 7px 12px;
  font-size: 13px;
  box-shadow: 0 4px 14px rgba(23, 32, 58, 0.14);
  animation: toastlife 5s ease forwards;
}
@keyframes toastlife {
  0% { opacity: 0; transform: translateY(8px); }
  5% { opacity: 1; transform: none; }
  90% { opacity: 1; }
  100% { opacity: 0; }
}
.toast .t-name { font-weight: 700; color: var(--neon); }
.toast .t-text { color: var(--text); word-break: break-word; }
.toast.me .t-name { color: var(--pink); }
.toast.correct {
  background: rgba(10, 138, 95, 0.10);
  border-color: var(--good);
}
.toast.correct .t-name { color: var(--good); }

/* ---------- success fx ---------- */
#fxCanvas {
  /* inset:0 stretches to the viewport; do NOT use 100vw/100vh — those can
     be wider than the visible area (scrollbars) and cause horizontal swim */
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
}
#successToast {
  position: fixed;
  top: 18%;
  left: 50%;
  transform: translateX(-50%) scale(0.6);
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(90deg, var(--good), #0aa870);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  padding: 14px 26px;
  border-radius: 999px;
  box-shadow: 0 10px 40px rgba(10, 138, 95, 0.45);
  opacity: 0;
  pointer-events: none;
  z-index: 95;
  white-space: nowrap;
}
#successToast .st-icon { font-size: 26px; }
#successToast.show {
  animation: toastpop 3s ease forwards;
}
@keyframes toastpop {
  0% { opacity: 0; transform: translateX(-50%) scale(0.6); }
  8% { opacity: 1; transform: translateX(-50%) scale(1.08); }
  14% { transform: translateX(-50%) scale(1); }
  85% { opacity: 1; transform: translateX(-50%) scale(1); }
  100% { opacity: 0; transform: translateX(-50%) scale(0.9); }
}
