/* Toothpay checkout demo with the embedded Treatment Protect offer.
   BRAND TOKENS: every color, the typefaces and the corner style live in this
   first block. They are close placeholders for Toothpick's look (deep navy,
   fresh mint, soft white) until Toothpick's brand kit arrives; swap the values
   here. Layout uses logical properties throughout, so Arabic mirrors itself. */
:root {
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, sans-serif;
  --navy: #0f2747;
  --navy-2: #1b3a66;
  --mint: #2bc2a8;
  --mint-ink: #0a7a69;       /* mint for text and buttons on white: 5.1:1 */
  --mint-soft: #e3f6f2;
  --sky-soft: #eaf1fa;
  --sun: #f4b740;            /* "tap next" ring; never used for warnings alone */
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-2: #f3f6f9;
  --ink: #0f2747;
  --ink-2: #4b5a72;          /* secondary text: 7:1 on white */
  --line: #dde4ec;
  --on-accent: #ffffff;
  --focus: #1d6fe0;
  --danger-ink: #a3361c;     /* errors only, always with an icon and words */
  --sahel: #8a5a14;          /* Sahel Takaful's own small mark */
  --chat: #e7f3ee;
  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 24px;
  --shadow: 0 1px 2px rgba(15, 39, 71, .06), 0 8px 24px rgba(15, 39, 71, .08);
  --stage: #e8edf3;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --mint-ink: #5fe0c8; --mint-soft: #0e3833; --sky-soft: #142a46; --chat: #12302a;
    --bg: #08121f; --surface: #101d31; --surface-2: #15263f; --ink: #eef3fa; --ink-2: #b4c1d6; --line: #243753;
    --on-accent: #032621; --focus: #7cb4ff; --danger-ink: #ffb4a0; --sahel: #f0c47a; --stage: #040b16;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --mint-ink: #5fe0c8; --mint-soft: #0e3833; --sky-soft: #142a46; --chat: #12302a;
  --bg: #08121f; --surface: #101d31; --surface-2: #15263f; --ink: #eef3fa; --ink-2: #b4c1d6; --line: #243753;
  --on-accent: #032621; --focus: #7cb4ff; --danger-ink: #ffb4a0; --sahel: #f0c47a; --stage: #040b16;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35); color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--stage); line-height: 1.45; font-size: 1rem; }
:root[lang="ar"] body { font-family: var(--font-ar); line-height: 1.6; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--mint-ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.num, .ltr { font-variant-numeric: tabular-nums; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] svg.flip { transform: scaleX(-1); }
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
:root[lang="ar"] h1, :root[lang="ar"] h2, :root[lang="ar"] h3 { letter-spacing: 0; }
p { margin: 0; }

/* ---------- stage: on a laptop the phone sits beside the journey guide ---------- */
.stage { min-height: 100vh; display: flex; justify-content: center; }
.side { display: none; }
.app { position: relative; width: 100%; max-width: 480px; min-height: 100vh; background: var(--bg); display: flex; flex-direction: column; }
.app-body { flex: 1; padding: 0 16px 112px; }

@media (min-width: 1024px) {
  .stage { align-items: center; gap: 64px; padding: 32px; }
  .side { display: block; width: 380px; color: var(--ink); }
  .app { width: 390px; height: min(844px, calc(100vh - 64px)); min-height: 0; border-radius: 44px; overflow: hidden; box-shadow: 0 0 0 10px #0b1220, 0 30px 80px rgba(4, 11, 22, .35); }
  .app-body { overflow-y: auto; overscroll-behavior: contain; padding-bottom: 24px; }
  .app-tabs { position: absolute !important; }
}

.side-eyebrow { font-size: .8125rem; font-weight: 700; color: var(--mint-ink); text-transform: uppercase; letter-spacing: .06em; }
.side h1 { font-size: 2rem; margin: 10px 0 14px; }
.side p { color: var(--ink-2); }
.side-reset { margin-top: 16px; }

/* ---------- app header ---------- */
.app-head { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--bg); }
.wordmark { font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; color: var(--ink); text-decoration: none; display: flex; align-items: baseline; gap: 6px; }
.wordmark b { display: inline-flex; align-items: center; gap: 6px; }
.wordmark b::before { content: ""; width: 12px; height: 12px; border-radius: 4px 4px 7px 7px; background: var(--mint); display: inline-block; }
.wordmark small { font-size: .6875rem; font-weight: 600; color: var(--ink-2); letter-spacing: 0; white-space: nowrap; }
.pill-demo { font-size: .6875rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; border: 1.5px solid var(--ink-2); color: var(--ink-2); border-radius: 999px; padding: 2px 8px; }
.head-end { margin-inline-start: auto; display: flex; gap: 6px; align-items: center; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.seg button { border: 0; background: none; padding: 6px 10px; min-height: 32px; border-radius: 999px; font-size: .8125rem; font-weight: 700; cursor: pointer; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--navy); color: #fff; }
:root[data-theme="dark"] .seg button[aria-pressed="true"] { background: var(--mint-ink); color: var(--on-accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .seg button[aria-pressed="true"] { background: var(--mint-ink); color: var(--on-accent); } }
@media (max-width: 420px) {
  .app-head { gap: 6px; padding-inline: 12px; }
  .wordmark small { display: none; }
  .seg button { padding: 6px 8px; }
}
.icon-btn { border: 1px solid var(--line); background: var(--surface); width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; cursor: pointer; }

.offline { display: none; margin: 0 16px 8px; padding: 10px 12px; border-radius: var(--radius-s); background: var(--sky-soft); font-size: .875rem; gap: 8px; align-items: center; }
.is-offline .offline { display: flex; }

/* ---------- bottom tab bar (My cover only) ---------- */
.app-tabs { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; z-index: 20; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface); border-top: 1px solid var(--line); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) { .app-tabs { left: 0; transform: none; width: 100%; } }
.app-tabs a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; min-height: 52px; text-decoration: none; color: var(--ink-2); font-size: .75rem; font-weight: 600; border-radius: var(--radius-s); }
.app-tabs a[aria-current="page"] { color: var(--mint-ink); font-weight: 800; }
.app.no-tabs .app-tabs { display: none; }
.app.no-tabs .app-body { padding-bottom: 32px; }

/* ---------- building blocks ---------- */
.screen { display: grid; gap: 16px; padding-top: 4px; animation: rise .25s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.bar { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.bar h1 { font-size: 1.25rem; }
.back { border: 0; background: none; width: 44px; height: 44px; margin-inline-start: -10px; display: grid; place-items: center; border-radius: 999px; cursor: pointer; color: var(--ink); }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.card h2 { font-size: 1rem; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }
.tiny { font-size: .8125rem; }
.row { display: flex; align-items: center; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.stack { display: grid; gap: 8px; }
.center { text-align: center; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.kv:first-child { border-top: 0; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; font-weight: 700; text-align: end; }
dl { margin: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 20px; border-radius: 999px; border: 0; font-weight: 800; font-size: 1rem; text-decoration: none; cursor: pointer; width: 100%; }
.btn-primary { background: var(--mint-ink); color: var(--on-accent); }
.btn-primary:hover { filter: brightness(1.07); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost { background: none; color: var(--mint-ink); min-height: 44px; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .875rem; width: auto; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.cta-dock { position: sticky; bottom: 76px; padding-top: 8px; background: linear-gradient(to bottom, transparent, var(--bg) 30%); display: grid; gap: 8px; }
.app.no-tabs .cta-dock { bottom: 0; padding-bottom: 12px; }

.badge { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: var(--mint-soft); color: var(--mint-ink); }
.badge-status { background: var(--mint-soft); color: var(--ink); }
.badge-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }

.price-big { font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.price-big small { font-size: .9375rem; font-weight: 700; color: var(--ink-2); }

.skeleton { border-radius: 8px; background: linear-gradient(90deg, var(--surface-2), var(--line), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; color: transparent !important; }
@keyframes shimmer { to { background-position: -200% 0; } }

.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-s); background: var(--sky-soft); font-size: .9375rem; }
.notice-error { background: var(--surface); border: 1.5px solid var(--danger-ink); color: var(--ink); }
.notice-error svg { color: var(--danger-ink); }
.notice-ok { background: var(--mint-soft); }

/* choice cards: instalments, plans */
.choices { display: grid; gap: 10px; }
.choices.two { grid-template-columns: 1fr 1fr; }
.choice { position: relative; text-align: start; border: 2px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 14px; cursor: pointer; display: grid; gap: 4px; align-content: start; }
.choice[aria-checked="true"] { border-color: var(--mint-ink); box-shadow: 0 0 0 3px var(--mint-soft); }
.choice h3 { font-size: 1rem; padding-inline-end: 28px; }
.choice .price-big { font-size: 1.375rem; }
.choice-line { font-size: .8125rem; color: var(--ink-2); }
.choice-tick { position: absolute; top: 12px; inset-inline-end: 12px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; }
.choice[aria-checked="true"] .choice-tick { background: var(--mint-ink); border-color: var(--mint-ink); color: var(--on-accent); }
.choice-none { border-style: dashed; }
.approve { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: var(--radius-s); background: var(--surface); font-weight: 700; }
.approve .spin { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--mint-ink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* fields */
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: .9375rem; }
.field input, .field select { width: 100%; min-height: 52px; padding: 12px 14px; border-radius: var(--radius-s); border: 1.5px solid var(--line); background: var(--surface); font-size: 1rem; }
.field input:focus, .field select:focus { border-color: var(--focus); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 30%, transparent); }
.field input[aria-invalid="true"] { border-color: var(--danger-ink); }
.field .hint { font-size: .8125rem; color: var(--ink-2); }
.field .err, .err { font-size: .8125rem; color: var(--danger-ink); font-weight: 700; display: flex; gap: 4px; align-items: center; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tick { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1.5px solid var(--line); cursor: pointer; }
.tick.bad { border-color: var(--danger-ink); }
.tick input { width: 24px; height: 24px; margin: 0; accent-color: var(--mint-ink); flex: none; }
.tick a { font-weight: 700; }

/* chat (the clinic's WhatsApp message, mocked) */
.chat { background: var(--chat); border-radius: var(--radius-l); padding: 16px 14px; display: grid; gap: 10px; }
.chat-head { display: flex; gap: 10px; align-items: center; }
.chat-av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 800; font-size: .875rem; }
.bubble { background: var(--surface); border-radius: 4px 16px 16px 16px; padding: 10px 12px; box-shadow: var(--shadow); max-width: 92%; display: grid; gap: 8px; }
[dir="rtl"] .bubble { border-radius: 16px 4px 16px 16px; }
.bubble time { font-size: .75rem; color: var(--ink-2); justify-self: end; }
.link-card { display: grid; gap: 4px; padding: 12px; border-radius: 12px; background: var(--surface-2); border-inline-start: 4px solid var(--mint); text-decoration: none; color: var(--ink); cursor: pointer; text-align: start; border-block: 0; border-inline-end: 0; width: 100%; }

/* hero card on the summary */
.hero { background: var(--navy); color: #fff; border-radius: var(--radius-l); padding: 20px; display: grid; gap: 12px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.hero .muted { color: #c9d5e8; }
.hero-amount { font-size: 2.25rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hero .badge { background: rgba(43, 194, 168, .2); color: #dffaf4; }
.hero-art { position: absolute; inset-inline-end: -8px; bottom: -12px; width: 120px; opacity: .22; }
.tooth-art { width: 64px; height: 64px; flex: none; }

/* schedule */
.sched { display: grid; }
.sched > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.sched > div:first-child { border-top: 0; font-weight: 800; }

/* compare */
.cmp { display: grid; grid-template-columns: 1fr 72px 72px; align-items: stretch; }
.cmp > * { padding: 12px 0; border-top: 1px solid var(--line); }
.cmp .h { border-top: 0; font-weight: 800; text-align: center; padding-top: 0; font-size: .875rem; }
.cmp .c { text-align: center; display: grid; justify-items: center; align-content: center; }
.cmp .c .yes { color: var(--mint-ink); }
.cmp .c .no { color: var(--ink-2); }
.cmp .t b { display: block; }
.cmp .t span { font-size: .8125rem; color: var(--ink-2); }
.list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.list li { display: flex; gap: 10px; align-items: flex-start; }
.list svg { color: var(--mint-ink); margin-top: 2px; }
.list.x svg { color: var(--ink-2); }

/* consent */
.consent-sec { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.consent-sec:first-child { border-top: 0; }
.consent-sec h3 { font-size: 1rem; margin-bottom: 2px; }
.dot-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--mint-soft); color: var(--mint-ink); display: grid; place-items: center; flex: none; }

/* pay */
.paycard { display: flex; gap: 12px; align-items: center; }
.cardchip { width: 46px; height: 32px; border-radius: 6px; background: linear-gradient(135deg, var(--navy), var(--navy-2)); display: grid; place-items: center; color: #fff; font-size: .625rem; font-weight: 800; letter-spacing: .06em; }

/* policy card */
.wallet { border-radius: var(--radius-l); padding: 20px; color: #fff; background: radial-gradient(120% 120% at 100% 0%, var(--navy-2), var(--navy) 60%); box-shadow: var(--shadow); display: grid; gap: 16px; position: relative; overflow: hidden; }
.wallet .muted { color: #c9d5e8; }
.wallet-num { font-size: 1.375rem; font-weight: 800; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.wallet .badge-status { background: rgba(43, 194, 168, .22); color: #fff; }
.wallet-art { position: absolute; inset-inline-end: -6px; bottom: -14px; width: 110px; opacity: .2; }

/* claim */
.alert-card { display: grid; gap: 10px; padding: 16px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); border-inline-start: 4px solid var(--mint); text-decoration: none; color: var(--ink); }
.eyebrow { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.opt { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); border: 0; width: 100%; text-align: start; cursor: pointer; text-decoration: none; color: var(--ink); }
.xray { width: 100%; height: 120px; border-radius: 12px; background: #0b1220; display: block; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.timeline li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding-bottom: 18px; position: relative; opacity: .4; transition: opacity .3s; }
.timeline li.on { opacity: 1; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline .node { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 2px solid var(--line); color: var(--on-accent); }
.timeline li.on .node { background: var(--mint-ink); border-color: var(--mint-ink); }

/* done */
.done-art { width: 120px; height: 120px; margin: 8px auto 0; }
.done-art .ring { stroke-dasharray: 340; stroke-dashoffset: 340; animation: draw .8s .1s ease-out forwards; }
.done-art .check { stroke-dasharray: 80; stroke-dashoffset: 80; animation: draw .4s .7s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 30; }
.confetti i { position: absolute; top: -10px; width: 8px; height: 12px; border-radius: 2px; animation: fall 1.6s ease-in forwards; }
@keyframes fall { to { transform: translateY(700px) rotate(540deg); opacity: 0; } }

/* sheets and toasts */
.scrim { position: absolute; inset: 0; background: rgba(4, 11, 22, .45); z-index: 40; display: flex; align-items: flex-end; animation: fade .2s ease-out; }
@media (max-width: 1023px) { .scrim { position: fixed; } }
@keyframes fade { from { opacity: 0; } }
.sheet { width: 100%; max-width: 480px; margin: 0 auto; background: var(--surface); border-radius: var(--radius-l) var(--radius-l) 0 0; padding: 12px 20px calc(20px + env(safe-area-inset-bottom)); display: grid; gap: 14px; animation: up .28s cubic-bezier(.2, .8, .2, 1); max-height: 90%; overflow-y: auto; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.grabber { width: 40px; height: 5px; border-radius: 999px; background: var(--line); margin: 0 auto 4px; }
.toast { position: absolute; inset-inline: 16px; bottom: 92px; z-index: 50; background: var(--navy); color: #fff; padding: 12px 16px; border-radius: var(--radius-s); box-shadow: var(--shadow); animation: up .25s ease-out; font-weight: 600; display: flex; gap: 8px; align-items: center; }
@media (max-width: 1023px) { .toast { position: fixed; max-width: 448px; margin: 0 auto; } }

/* footer */
.ins-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; font-size: .8125rem; color: var(--ink-2); padding: 8px 0 4px; }
.sahel { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); }
.sahel svg { color: var(--sahel); }

/* ---------- guided journey ---------- */
.side-tabs { margin: 14px 0 22px; }
.side-tabs button { padding: 8px 16px; font-size: .875rem; }
.side-step { font-size: .875rem; font-weight: 800; color: var(--mint-ink); margin-bottom: 8px; }
.progress { height: 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; margin-bottom: 18px; }
.progress > i { display: block; height: 100%; background: var(--mint); border-radius: inherit; transition: width .5s ease; }
.tapnext { margin-top: 18px; padding: 12px 14px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); display: grid; gap: 2px; border-inline-start: 4px solid var(--sun); }
.tapnext .tiny { color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.screen-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; counter-reset: s; }
.screen-list a { display: flex; gap: 10px; padding: 7px 10px; border-radius: var(--radius-s); text-decoration: none; color: var(--ink); font-size: .9375rem; }
.screen-list a::before { counter-increment: s; content: counter(s); width: 22px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.screen-list a:hover { background: var(--surface); }
.screen-list a[aria-current="page"] { background: var(--surface); font-weight: 700; box-shadow: var(--shadow); }
.how-h { font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); margin: 20px 0 8px; }
.how-points { margin: 16px 0; }
.who { display: grid; gap: 8px; }
.who button { text-align: start; display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.who button span { font-size: .8125rem; color: var(--ink-2); }

.coachbar { display: flex; gap: 10px; align-items: center; margin: 0 16px 8px; padding: 8px 12px; border-radius: var(--radius-s); background: var(--surface); border-inline-start: 4px solid var(--sun); font-size: .8125rem; font-weight: 600; box-shadow: var(--shadow); }
.coachbar[hidden] { display: none; }
.coach-n { font-weight: 800; color: var(--mint-ink); }
@media (min-width: 1024px) { .coachbar { display: none; } }

/* the one thing to tap next */
.coach { position: relative; z-index: 1; outline: 3px solid var(--sun); outline-offset: 3px; animation: coach 1.6s ease-in-out infinite; }
@keyframes coach { 50% { outline-offset: 6px; outline-color: color-mix(in srgb, var(--sun) 45%, transparent); } }

.avatar { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 800; font-size: 1.5rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .done-art .ring, .done-art .check { stroke-dashoffset: 0; }
  .confetti { display: none; }
}
