:root {
  --bg: #0b0d12;
  --surface: #151922;
  --surface2: #1d2330;
  --line: #262d3b;
  --text: #eef1f7;
  --muted: #8b94a7;
  --accent: #ff6b35;
  --accent2: #ffd43b;
  --good: #3ddc97;
  --bad: #ff6b6b;
  --radius: 18px;
  --nav-h: 64px;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 15px/1.45 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 16px);
  overscroll-behavior-y: contain;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; text-align: left; }
input { font: inherit; color: inherit; }
h2 { font-size: 17px; margin: 0; font-weight: 700; }
p { margin: 8px 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
b { font-weight: 700; }

#view { max-width: 560px; margin: 0 auto; padding: 0 16px; }

/* Header */
.top { display: flex; justify-content: space-between; align-items: center; padding: calc(18px + env(safe-area-inset-top)) 2px 14px; }
.hello { font-size: 24px; font-weight: 800; letter-spacing: -0.3px; }
.date { color: var(--muted); font-size: 14px; }
.pills { display: flex; gap: 8px; }
.pill { background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px; font-weight: 700; font-size: 14px; display: flex; gap: 4px; align-items: center; }
.pill.lvl { color: var(--accent2); }
.flame:not(.on) { filter: grayscale(1); opacity: 0.5; }
.flame.on { display: inline-block; animation: flicker 1.4s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes flicker { 0%, 100% { transform: scale(1) rotate(-3deg); } 50% { transform: scale(1.15) rotate(3deg); } }

/* Kartu */
.card { display: block; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.lbl { color: var(--muted); font-size: 13px; font-weight: 600; margin: 4px 0 6px; }
.card.warn { background: #2a2110; border-color: #5c4615; color: var(--accent2); font-weight: 600; font-size: 14px; }

.goal { display: flex; gap: 16px; align-items: center; }
.goal-msg { font-weight: 700; font-size: 16px; }
.ring-bg { fill: none; stroke: var(--surface2); }
.ring-fg { fill: none; stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset 1.2s cubic-bezier(.2,.8,.2,1); }
.ring-fg.done { stroke: var(--good); }
.ring-txt { fill: var(--text); font-weight: 800; font-size: 15px; text-anchor: middle; dominant-baseline: middle; }

/* Tombol */
.btn { display: block; width: 100%; text-align: center; border-radius: 14px; padding: 13px 16px; font-weight: 700; margin-top: 10px; transition: transform .1s; }
.btn:active { transform: scale(0.97); }
.btn.primary { background: linear-gradient(135deg, var(--accent), #ff8f3d); color: #fff; box-shadow: 0 6px 20px -8px var(--accent); }
.btn.big { padding: 16px; font-size: 17px; }
.btn.ghost { background: var(--surface2); border: 1px solid var(--line); }
.btn.danger { background: transparent; color: var(--bad); border: 1px solid #4a2228; margin-bottom: 8px; }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }

/* Baris daftar */
.row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.row:last-of-type { border-bottom: 0; }
.row:active { background: var(--surface2); border-radius: 12px; }
.row-main { flex: 1; min-width: 0; }
.row-title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chev { color: var(--muted); font-size: 22px; }
.thumb { width: 54px; height: 54px; flex: none; border-radius: 14px; background: var(--surface2); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); display: grid; place-items: center; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.sub-head { font-size: 13px; font-weight: 800; color: var(--c); text-transform: uppercase; letter-spacing: 1px; margin: 16px 0 2px; padding-left: 4px; }
.sub-head:first-child { margin-top: 2px; }
.pr-chip { background: linear-gradient(135deg, #ffd43b, #ff9f1c); color: #2a1d00; font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 99px; white-space: nowrap; animation: glow 2s ease-in-out infinite; }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 0 #ffd43b00; } 50% { box-shadow: 0 0 12px 2px #ffd43b66; } }
.x { width: 34px; height: 34px; border-radius: 10px; color: var(--muted); font-size: 20px; text-align: center; flex: none; }
.x:active { background: #3a1f24; color: var(--bad); }
.x.sm { width: 22px; height: 22px; font-size: 15px; margin-left: 2px; }
.row.static:active { background: none; }

.empty { text-align: center; color: var(--muted); padding: 10px 0; }

/* Animasi gerakan (GymVisual) */
.anim { margin: 0; background: #fff; border-radius: 14px; display: flex; flex-direction: column; align-items: center; padding: 10px 0 6px; }
.anim img { width: 240px; max-width: 80%; aspect-ratio: 1 / 1; }
.anim figcaption { font-size: 10px; color: #6b7280; margin-top: 2px; }
.credit { color: var(--muted); font-size: 11px; text-align: center; margin: 10px 0 0; }
.thumb { background: #fff; }

/* Foto gerakan */
.photo { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 3 / 2; background: #fff; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo img.alt { animation: swap 2.6s ease-in-out infinite; }
@keyframes swap { 0%, 40% { opacity: 0; } 50%, 90% { opacity: 1; } 100% { opacity: 0; } }
.photo-tag { position: absolute; left: 8px; bottom: 8px; background: #000a; color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 99px; }

/* Peta otot */
.mmap .m { fill: #3a4357; stroke: var(--surface2); stroke-width: 0.4; }
.mmap .m-n { fill: #2b3242; }
.mmap .m-s { fill: #ff9f6b; opacity: 0.75; }
.mmap .m-p { fill: var(--accent); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.65; } }
.mmap .mlabel { fill: var(--muted); font-size: 9px; text-anchor: middle; }

.visual { padding: 12px; }
.vis-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: center; margin-top: 12px; }
.vis-map { background: var(--surface2); border-radius: 14px; padding: 8px 4px; display: grid; place-items: center; }
.vis-map .mmap { width: 100%; height: auto; }
.musc { font-size: 13px; line-height: 1.7; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.dot.p { background: var(--accent); }
.dot.s { background: #ff9f6b; opacity: 0.75; }
.empty-ic { font-size: 56px; margin: 6px 0; }

/* Layar penuh */
#screen { position: fixed; inset: 0; background: var(--bg); z-index: 20; overflow-y: auto; transform: translateX(100%); transition: transform .28s cubic-bezier(.2,.8,.2,1); padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
#screen.show { transform: none; }
.scr-head { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 12px 10px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); max-width: 560px; margin: 0 auto; }
.scr-title { flex: 1; min-width: 0; }
.scr-title .t { font-weight: 800; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { width: 42px; height: 42px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 24px; text-align: center; flex: none; line-height: 1; }
.scr-body, .scr-sticky { max-width: 560px; margin: 0 auto; padding: 0 16px; }
.scr-sticky { position: sticky; top: calc(62px + env(safe-area-inset-top)); z-index: 2; background: var(--bg); padding-bottom: 8px; }
.chip { display: inline-block; font-size: 12px; font-weight: 700; color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent); padding: 1px 8px; border-radius: 99px; }
.search { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; outline: none; margin-bottom: 10px; }
.search:focus { border-color: var(--accent); }
.chips { display: flex; gap: 8px; }
.chips.scroll { overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; margin-bottom: 8px; }
.chip-btn { white-space: nowrap; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 7px 14px; font-size: 14px; font-weight: 600; text-align: center; }
.chip-btn.on { background: var(--c, var(--accent)); border-color: var(--c, var(--accent)); color: #111; }

/* Catat */
.prev .sets-inline { display: flex; flex-wrap: wrap; gap: 6px; }
.prev .sets-inline span { background: var(--surface2); border-radius: 8px; padding: 4px 10px; font-weight: 600; font-size: 14px; }
.sug { border-color: #3b3a22; background: linear-gradient(135deg, #1d1c12, var(--surface)); }
.sug.up { border-color: #5c3a1c; background: linear-gradient(135deg, #2a1a0e, var(--surface)); }
.sug-top { font-size: 16px; display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
.sug-tap { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--accent); border: 1px solid var(--accent); border-radius: 99px; padding: 2px 10px; }
.sug.used { animation: popIn .4s; }
.recs { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; margin-bottom: 14px; }
.rec { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; }
.rec span { display: block; color: var(--muted); font-size: 12px; }
.rec b { font-size: 16px; color: var(--accent2); }
.inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stepper label { display: block; color: var(--muted); font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.st-row { display: flex; background: var(--surface2); border-radius: 14px; border: 1px solid var(--line); overflow: hidden; }
.st-row button { width: 44px; font-size: 22px; text-align: center; color: var(--accent); flex: none; }
.st-row button:active { background: var(--line); }
.st-row input { flex: 1; min-width: 0; width: 100%; background: none; border: 0; outline: none; text-align: center; font-size: 24px; font-weight: 800; padding: 10px 0; }
.st-row input.bump { animation: bump .25s; }
@keyframes bump { 50% { transform: scale(1.15); color: var(--accent2); } }
.target-line, .set-line { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; gap: 10px; font-size: 14px; }
.set-line { padding: 8px 0; border-bottom: 1px solid var(--line); margin: 0; }
.set-line:last-of-type { border-bottom: 0; }
.mini-step { display: flex; align-items: center; gap: 4px; background: var(--surface2); border-radius: 99px; padding: 2px; }
.mini-step button { width: 32px; height: 32px; border-radius: 50%; font-size: 18px; text-align: center; color: var(--accent); }
.mini-step b { min-width: 30px; text-align: center; }
.set-row { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.set-row:last-child { border-bottom: 0; }
.set-n { width: 28px; height: 28px; border-radius: 50%; background: var(--surface2); display: grid; place-items: center; font-weight: 800; font-size: 13px; color: var(--muted); flex: none; }
.set-v { flex: 1; font-weight: 700; font-size: 17px; }
.set-row.is-pr .set-n { background: var(--accent2); color: #2a1d00; }
.set-row.pop { animation: popIn .5s cubic-bezier(.2,1.6,.4,1); }
@keyframes popIn { 0% { transform: scale(0.85); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* Riwayat */
.hist { border-bottom: 1px solid var(--line); }
.hist:last-child { border-bottom: 0; }
.hist-head { display: flex; width: 100%; gap: 10px; align-items: center; padding: 11px 4px; }
.hist-date { font-weight: 700; text-transform: capitalize; min-width: 92px; }
.hist-groups { flex: 1; display: flex; gap: 4px; }
.dot-g { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.hist-body { padding: 0 4px 10px; }
.hist-ex { display: block; width: 100%; padding: 6px 10px; margin-bottom: 6px; background: var(--surface2); border-radius: 10px; font-size: 13px; }
.hist-ex b { display: block; font-size: 14px; }
.hist-ex span { color: var(--muted); }

/* Progres */
.level { background: radial-gradient(circle at 0% 0%, #3a2214, var(--surface) 60%); border-color: #4a2c18; }
.lvl-top { display: flex; gap: 16px; align-items: center; }
.lvl-badge, .lvl-up { width: 78px; height: 78px; flex: none; border-radius: 22px; background: linear-gradient(135deg, var(--accent), var(--accent2)); display: flex; flex-direction: column; align-items: center; justify-content: center; color: #2a1200; box-shadow: 0 8px 30px -10px var(--accent); }
.lvl-n { font-size: 34px; font-weight: 900; line-height: 1; }
.lvl-l { font-size: 10px; font-weight: 800; letter-spacing: 2px; }
.lvl-info { flex: 1; min-width: 0; }
.lvl-title { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.xp-bar { height: 12px; border-radius: 99px; background: var(--surface2); overflow: hidden; margin-bottom: 6px; }
.xp-fill { height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width 1.4s cubic-bezier(.2,.8,.2,1); position: relative; overflow: hidden; }
.xp-fill::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, #ffffff70, transparent); animation: sweep 2.2s infinite; }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; }
.stat-v { font-size: 28px; font-weight: 900; letter-spacing: -0.5px; }
.stat-l { color: var(--muted); font-size: 13px; }
.bar-row { display: flex; align-items: center; gap: 10px; margin: 9px 0; }
.bar-lbl { width: 70px; font-size: 13px; font-weight: 600; }
.bar { flex: 1; height: 12px; background: var(--surface2); border-radius: 99px; position: relative; }
.bar-fill { height: 100%; width: 0; border-radius: 99px; background: var(--c); transition: width 1.1s cubic-bezier(.2,.8,.2,1); }
.bar-mark { position: absolute; top: -3px; bottom: -3px; width: 2px; background: #fff; border-radius: 2px; opacity: 0.8; }
.bar-mark.inline { position: static; display: inline-block; height: 10px; vertical-align: -1px; }
.bar-val { width: 24px; text-align: right; font-weight: 800; }
.legend { margin-top: 6px; }
.pr-row { display: flex; gap: 10px; align-items: center; width: 100%; padding: 9px 4px; border-bottom: 1px solid var(--line); }
.pr-row:last-child { border-bottom: 0; }
.pr-ic { font-size: 24px; }
.up { color: var(--good); font-weight: 700; }
.badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.badge { background: var(--surface2); border-radius: 14px; padding: 12px 6px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; border: 1px solid var(--line); }
.badge .b-ic { font-size: 30px; filter: grayscale(1); opacity: 0.4; }
.badge .b-nm { font-size: 11px; font-weight: 700; color: var(--muted); line-height: 1.2; }
.badge.got { border-color: #5c4615; background: linear-gradient(160deg, #2c2410, var(--surface2)); }
.badge.got .b-ic { filter: none; opacity: 1; }
.badge.got .b-nm { color: var(--accent2); }
.chart { width: 100%; height: 220px; display: block; margin-top: 10px; }
.delta { margin-top: 10px; font-weight: 800; font-size: 15px; }
.delta.pos { color: var(--good); }
.delta.neg { color: var(--bad); }
.ph { padding: 8px 0; border-bottom: 1px solid var(--line); }
.ph:last-child { border-bottom: 0; }
.ph-date { font-weight: 700; font-size: 14px; text-transform: capitalize; margin-bottom: 4px; }
.ph-sets { display: flex; flex-wrap: wrap; gap: 6px; }
.ph-set { background: var(--surface2); border-radius: 8px; padding: 3px 4px 3px 10px; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; }
.ph-set.is-pr { background: #3a2f0e; color: var(--accent2); }

/* Navigasi bawah */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: flex; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.nav button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 12px; font-weight: 600; color: var(--muted); }
.nav svg { width: 24px; height: 24px; fill: currentColor; }
.nav button.active { color: var(--accent); }
.nav button.active svg { animation: popIn .35s; }

/* Timer istirahat */
#rest { position: fixed; left: 12px; right: 12px; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 10px); z-index: 30; max-width: 536px; margin: 0 auto; background: var(--surface2); border: 1px solid var(--line); border-radius: 18px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; box-shadow: 0 10px 40px -10px #000; transform: translateY(40px); opacity: 0; visibility: hidden; pointer-events: none; transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .3s, visibility .3s; overflow: hidden; }
#rest.show { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
.rest-fill { position: absolute; left: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width .25s linear; }
.rest-info { flex: 1; }
.rest-lbl { font-size: 12px; color: var(--muted); font-weight: 600; }
.rest-time { font-size: 26px; font-weight: 900; font-variant-numeric: tabular-nums; }
#rest button { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; font-weight: 700; font-size: 14px; }
#rest button.skip { color: var(--accent); }

/* Modal & perayaan */
#modal { position: fixed; inset: 0; z-index: 50; background: #000a; display: none; align-items: center; justify-content: center; padding: 20px; }
#modal.show { display: flex; animation: fadeIn .2s; }
@keyframes fadeIn { from { opacity: 0; } }
.modal-card { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 24px 20px 18px; animation: zoomIn .45s cubic-bezier(.2,1.5,.4,1); max-height: 90vh; overflow-y: auto; }
@keyframes zoomIn { from { transform: scale(0.6); opacity: 0; } }
.cele { text-align: center; position: relative; }
.cele h2 { font-size: 26px; font-weight: 900; margin: 8px 0 4px; }
.cele p { color: var(--muted); margin: 4px 0 12px; }
.cele-ic { font-size: 64px; line-height: 1; }
.trophy { display: inline-block; animation: trophy 1s cubic-bezier(.2,1.6,.4,1); }
@keyframes trophy { 0% { transform: scale(0) rotate(-30deg); } 70% { transform: scale(1.3) rotate(8deg); } 100% { transform: none; } }
.bounce { display: inline-block; animation: bounceIc 1.2s ease-in-out infinite; }
@keyframes bounceIc { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.burst { position: absolute; left: 50%; top: 34px; width: 220px; height: 220px; margin: -110px 0 0 -110px; background: repeating-conic-gradient(from 0deg, #ffd43b33 0 10deg, transparent 10deg 30deg); border-radius: 50%; animation: spin 8s linear infinite; z-index: -1; -webkit-mask: radial-gradient(circle, #000 30%, transparent 70%); mask: radial-gradient(circle, #000 30%, transparent 70%); }
@keyframes spin { to { transform: rotate(360deg); } }
.shine { background: linear-gradient(90deg, var(--accent2), #fff, var(--accent), var(--accent2)); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shineMove 2.5s linear infinite; }
@keyframes shineMove { to { background-position: 300% 0; } }
.pr-item { background: var(--surface2); border-radius: 14px; padding: 10px; margin: 8px 0; }
.pr-item > span { display: block; color: var(--muted); font-size: 13px; }
.pr-item b { font-size: 30px; color: var(--accent2); }
.pr-item small { display: block; color: var(--muted); }
.badge-big { font-size: 80px; display: inline-block; filter: drop-shadow(0 0 20px #ffd43b88); }
.badge-big.spin { animation: coin 1.2s cubic-bezier(.2,.8,.2,1); }
.badge-big.locked { filter: grayscale(1); opacity: 0.5; }
@keyframes coin { 0% { transform: scale(0) rotateY(0); } 60% { transform: scale(1.2) rotateY(540deg); } 100% { transform: scale(1) rotateY(720deg); } }
.lvl-up { margin: 0 auto; width: 110px; height: 110px; border-radius: 30px; animation: trophy 1s cubic-bezier(.2,1.6,.4,1); }
.lvl-up .lvl-n { font-size: 50px; }
.sum-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; }
.sum-grid div { background: var(--surface2); border-radius: 14px; padding: 10px; }
.sum-grid b { display: block; font-size: 26px; font-weight: 900; }
.sum-grid span { color: var(--muted); font-size: 12px; }
.xp-earned { font-size: 22px; font-weight: 900; color: var(--accent2); margin: 10px 0; }
.pr-mini { background: #3a2f0e; color: var(--accent2); border-radius: 10px; padding: 6px 10px; margin: 6px 0; font-size: 13px; text-align: left; }

#toast { position: fixed; left: 50%; top: calc(14px + env(safe-area-inset-top)); z-index: 60; transform: translate(-50%, -150%); background: var(--surface2); border: 1px solid var(--line); border-radius: 99px; padding: 10px 18px; font-weight: 600; font-size: 14px; transition: transform .3s cubic-bezier(.2,.8,.2,1); max-width: calc(100% - 32px); text-align: center; box-shadow: 0 10px 30px -10px #000; }
#toast.show { transform: translate(-50%, 0); }
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 70; }
.float-text { position: fixed; z-index: 65; transform: translateX(-50%); font-weight: 900; font-size: 20px; color: var(--accent2); pointer-events: none; animation: floatUp 1.3s ease-out forwards; text-shadow: 0 2px 10px #000; }
@keyframes floatUp { from { opacity: 1; transform: translate(-50%, 0) scale(.8); } 30% { transform: translate(-50%, -20px) scale(1.2); } to { opacity: 0; transform: translate(-50%, -70px) scale(1); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
