/* ─── Meridian — dark & gold, quiet luxury ─────────────────────────────── */

@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-var.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-var.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #0b0a08;
  --sheet-bg: #14110c;
  --ink: #f2ecdd;
  --muted: #9b9280;
  --gold: #c9ab6e;
  --gold-hi: #e9cf98;
  --gold-dim: #8a754d;
  --line: rgba(214, 190, 140, 0.14);
  --panel: rgba(255, 248, 232, 0.04);
  --danger: #d98a77;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html, body {
  min-height: 100%;
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body {
  overscroll-behavior-y: none;
  min-height: 100vh;
  min-height: 100svh;
  min-height: var(--app-viewport-height);
}
body.locked { overflow: hidden; }
::selection { background: rgba(201, 171, 110, 0.35); }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold-dim); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }

#ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.app {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100svh;
  min-height: var(--app-viewport-height);
  display: flex;
  flex-direction: column;
}
@media (min-width: 720px) {
  .app { border-inline: 1px solid rgba(214, 190, 140, 0.07); }
}
main {
  flex: 1;
  padding: 0 22px calc(108px + env(safe-area-inset-bottom));
}

/* ── header ── */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(16px + env(safe-area-inset-top)) 22px 4px;
}
.wordmark {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
}
.wordmark.big { font-size: 17px; }

.sync-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6b6353;
  transition: background 0.4s, box-shadow 0.4s;
}
.sync-dot[data-state="synced"] {
  background: var(--gold);
  box-shadow: 0 0 10px rgba(201, 171, 110, 0.7);
}
.sync-dot[data-state="syncing"] {
  background: var(--gold-dim);
  animation: dotPulse 1.1s ease-in-out infinite;
}
.sync-dot[data-state="signedout"] {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px #6b6353;
}
.sync-dot[data-state="error"] { background: var(--danger); }

/* ── type helpers ── */
.label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.sub {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}
.sub.dim { opacity: 0.85; }
.sub.note { color: var(--gold-hi); }
.big-serif {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: 40px;
  color: var(--ink);
  letter-spacing: 0.01em;
}

/* ── clock ── */
.clock {
  text-align: center;
  padding: clamp(26px, 8vh, 64px) 0 6px;
}
.clock-row {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 10px;
}
.clock-ampm {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.14em;
  color: var(--gold);
}
.clock-time {
  display: flex;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: clamp(64px, 21vw, 92px);
  line-height: 1.05;
  color: var(--ink);
  text-shadow: 0 0 60px rgba(201, 171, 110, 0.14);
}
.clock-time .digit {
  width: 0.62em;
  text-align: center;
}
.clock-time .digit.tick {
  animation: digitIn 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.clock-time .colon {
  width: 0.32em;
  color: var(--gold);
  animation: colonPulse 2s ease-in-out infinite;
}
.clock-sec {
  width: min(210px, 55vw);
  height: 1px;
  margin: 16px auto 12px;
  background: rgba(255, 248, 232, 0.09);
  overflow: hidden;
}
#sec-fill {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s linear;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold-hi));
  box-shadow: 0 0 8px rgba(201, 171, 110, 0.8);
}
.clock-date {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── cards ── */
.card {
  margin-top: 18px;
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.reveal { animation: cardIn 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both; }

.session-card, .done-card, .attention-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--gold-hi);
  box-shadow: 0 0 8px rgba(233, 207, 152, 0.9);
  animation: dotPulse 1.6s ease-in-out infinite;
  vertical-align: 1px;
}
.shimmer-once {
  position: relative;
  overflow: hidden;
}
.shimmer-once::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(233, 207, 152, 0.11) 50%, transparent 65%);
  transform: translateX(-110%);
  animation: shimmer 1.5s ease 0.35s 1 forwards;
  pointer-events: none;
}

/* ── begin button ── */
.begin-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 30px;
  position: relative;
}
.begin-wrap::before {
  content: '';
  position: absolute;
  top: 68px;
  left: 50%;
  width: 220px;
  height: 220px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,171,110,0.09) 0%, transparent 70%);
  animation: ambientGlow 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
.begin-btn {
  position: relative;
  z-index: 1;
  width: 136px;
  height: 136px;
  border-radius: 50%;
  border: none;
  background: radial-gradient(circle at 50% 28%, rgba(233, 207, 152, 0.16), rgba(18, 15, 11, 0.7) 72%);
  color: var(--gold-hi);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-indent: 0.3em;
  animation: beginGlow 3.5s ease-in-out infinite;
  transition: transform 0.18s ease;
}
.begin-btn > span {
  position: relative;
  z-index: 2;
}
.begin-btn:active {
  transform: scale(0.92);
  animation: none;
  box-shadow:
    0 0 0 8px rgba(201,171,110,0.18),
    0 0 60px rgba(201,171,110,0.4),
    0 0 120px rgba(201,171,110,0.15),
    inset 0 0 40px rgba(201,171,110,0.15);
}
.begin-btn::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    rgba(201,171,110,0.6) 4%,
    rgba(233,207,152,0.9) 8%,
    rgba(201,171,110,0.6) 12%,
    transparent 18%,
    transparent 44%,
    rgba(201,171,110,0.2) 50%,
    transparent 56%
  );
  -webkit-mask: radial-gradient(circle, transparent calc(100% - 1.5px), #000 calc(100% - 1.5px));
  mask: radial-gradient(circle, transparent calc(100% - 1.5px), #000 calc(100% - 1.5px));
  animation: beginOrbit 5s linear infinite;
  pointer-events: none;
}
.begin-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(115deg, transparent 30%, rgba(233,207,152,0.07) 47%, rgba(233,207,152,0.16) 50%, rgba(233,207,152,0.07) 53%, transparent 70%);
  background-size: 300% 100%;
  animation: beginSweep 6s ease-in-out infinite;
  pointer-events: none;
}
.begin-hint { text-align: center; max-width: 240px; }

/* ── end session button ── */
.session-card .btn-primary {
  position: relative;
  overflow: hidden;
  animation: endBtnGlow 2.5s ease-in-out infinite;
}
.session-card .btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,0.1) 47%, rgba(255,255,255,0.22) 50%, rgba(255,255,255,0.1) 53%, transparent 80%);
  background-size: 300% 100%;
  animation: endShimmer 3.5s ease-in-out infinite;
  pointer-events: none;
}
.session-card .btn-primary:active {
  animation: none;
  transform: translateY(2px) scale(0.97);
  box-shadow: 0 4px 16px rgba(201,171,110,0.5), 0 0 60px rgba(201,171,110,0.3);
}

/* ── buttons ── */
.btn {
  width: 100%;
  height: 54px;
  padding: 0 26px;
  border: none;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.btn-primary {
  color: #1a1408;
  background: linear-gradient(115deg, #b3945c, #e9cf98 42%, #c9ab6e 58%, #b3945c);
  background-size: 230% 100%;
  background-position: 0% 0;
  box-shadow: 0 12px 32px rgba(201, 171, 110, 0.2);
  transition: background-position 0.6s ease, transform 0.15s ease;
}
.btn-primary:hover { background-position: 90% 0; }
.btn-primary:active { transform: translateY(1px) scale(0.985); }
.btn-primary:disabled { opacity: 0.6; }
.btn-primary.small { width: auto; height: 44px; padding: 0 22px; font-size: 14px; }

.btn-ghost {
  width: 100%;
  height: 50px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 500;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.btn-ghost:hover { border-color: var(--gold-dim); background: rgba(201, 171, 110, 0.05); }

.btn-quiet {
  background: none;
  border: none;
  padding: 10px;
  color: var(--muted);
  font-size: 13.5px;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(155, 146, 128, 0.4);
  transition: color 0.2s;
}
.btn-quiet:hover { color: var(--ink); }
.btn-quiet.danger { color: var(--danger); }
.btn-quiet.dim { opacity: 0.7; font-size: 12.5px; }

.btn-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 248, 232, 0.03);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  transition: border-color 0.25s, color 0.25s;
}
.btn-mini:hover { border-color: var(--gold-dim); }
.btn-mini:disabled { opacity: 0.55; }
.btn-mini.gold { border-color: rgba(201, 171, 110, 0.45); color: var(--gold-hi); }

.head-add {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--gold);
  transition: border-color 0.25s;
}
.head-add:hover { border-color: var(--gold-dim); }
.head-add svg { width: 20px; height: 20px; }
.head-x {
  width: 44px;
  height: 44px;
  border: none;
  background: none;
  color: var(--muted);
  font-size: 26px;
  line-height: 1;
}

/* ── week pulse ── */
.week { margin-top: 30px; }
.week-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.week-total {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--ink);
}
.week-bar {
  height: 2px;
  margin-top: 12px;
  border-radius: 2px;
  background: rgba(255, 248, 232, 0.08);
  overflow: hidden;
}
#week-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold));
  box-shadow: 0 0 12px rgba(201, 171, 110, 0.6);
  transition: width 0.9s cubic-bezier(0.22, 0.8, 0.26, 1);
}
#week-fill.full { background: linear-gradient(90deg, var(--gold), var(--gold-hi)); }

/* ── banner ── */
.banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding: 13px 8px 13px 18px;
  border: 1px solid rgba(201, 171, 110, 0.35);
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(201, 171, 110, 0.1), rgba(201, 171, 110, 0.03));
  font-size: 14px;
}
.banner-actions { display: flex; align-items: center; }
.banner-view {
  background: none;
  border: none;
  color: var(--gold-hi);
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 8px 6px;
}
.banner-x {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 20px;
  padding: 4px 12px;
}

/* ── views ── */
.view { display: none; }
.view.is-active { display: block; animation: viewIn 0.34s cubic-bezier(0.2, 0.7, 0.2, 1); }
.view-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 26px 0 8px;
}
h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: 27px;
  margin: 0;
}
h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: 22px;
  margin: 6px 0;
}

/* ── history ── */
.month-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 28px 2px 10px;
}
.month-name {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  color: var(--ink);
}
.month-sum { font-size: 13px; color: var(--gold); }
.row {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 15px 16px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  color: var(--ink);
  text-align: left;
  animation: rowIn 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: min(calc(var(--i) * 35ms), 420ms);
  transition: border-color 0.2s, background 0.2s;
}
.row:hover { border-color: var(--gold-dim); }
.row-date { font-size: 13.5px; color: var(--muted); }
.row-times {
  font-size: 15px;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.row-times em { font-style: normal; color: var(--gold-hi); }
.row-net { font-size: 13.5px; color: var(--gold); }
.empty {
  padding: 70px 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
}

/* ── reports ── */
.report-card {
  animation: cardIn 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: min(calc(var(--i) * 70ms), 350ms);
}
.report-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.report-month {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
}
.report-total {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--gold-hi);
}
.report-card .sub { margin-top: 7px; }
.report-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.data-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.data-actions { display: flex; gap: 10px; }
.acc-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

/* ── tab bar ── */
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  gap: clamp(26px, 11vw, 60px);
  padding: 10px 8px calc(12px + env(safe-area-inset-bottom));
  background: rgba(11, 10, 8, 0.74);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  backdrop-filter: blur(24px) saturate(1.3);
  border-top: 1px solid rgba(214, 190, 140, 0.1);
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}
.tabbar button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 74px;
  padding: 6px 0;
  border: none;
  background: none;
  color: #7d7461;
  transition: color 0.25s ease;
}
.tabbar svg { width: 22px; height: 22px; }
.tabbar span {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.tabbar button[aria-selected="true"] {
  color: var(--gold-hi);
}
.tabbar button[aria-selected="true"] svg {
  filter: drop-shadow(0 0 7px rgba(201, 171, 110, 0.55));
}

/* ── scrim, sheet ── */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(5, 4, 3, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s ease;
}
.scrim.open { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed;
  bottom: 0;
  left: 50%;
  z-index: 60;
  width: min(100%, 480px);
  padding: 6px 22px calc(26px + env(safe-area-inset-bottom));
  background: var(--sheet-bg);
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -30px 80px rgba(0, 0, 0, 0.55);
  transform: translate(-50%, 108%);
  visibility: hidden;
  transition: transform 0.46s cubic-bezier(0.32, 0.72, 0.24, 1), visibility 0s linear 0.46s;
}
.sheet.open {
  transform: translate(-50%, 0);
  visibility: visible;
  transition-delay: 0s;
}
.sheet-grip {
  display: flex;
  justify-content: center;
  padding: 10px 0 2px;
  touch-action: none;
}
.sheet-grip span {
  width: 40px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 248, 232, 0.18);
}
.sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ── fields ── */
.field { margin-top: 14px; flex: 1; }
.field label { margin-bottom: 8px; display: block; font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.field-row { display: flex; gap: 12px; }
input[type="date"], input[type="time"], input[type="email"], input[type="password"] {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 248, 232, 0.05);
  color: var(--ink);
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 17px;
  color-scheme: dark;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}
input:focus {
  outline: none;
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 3px rgba(201, 171, 110, 0.13);
}
.time-wrap { position: relative; }
.time-wrap input { padding-right: 62px; }
.now-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(201, 171, 110, 0.4);
  border-radius: 999px;
  background: rgba(201, 171, 110, 0.08);
  color: var(--gold-hi);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s;
}
.now-btn:active { background: rgba(201, 171, 110, 0.22); }
.field-error {
  min-height: 20px;
  margin-top: 12px;
  color: var(--danger);
  font-size: 13.5px;
}
.field-error.shake { animation: shakeX 0.4s ease; }
#sheet-save { margin-top: 8px; }
#sheet-delete { display: block; margin: 8px auto 0; }

/* ── confirm ── */
.confirm {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 4, 3, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}
.confirm.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}
.confirm-box {
  width: min(88vw, 360px);
  padding: 26px;
  background: #16130d;
  border: 1px solid var(--line);
  border-radius: 22px;
  transform: scale(0.96);
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.confirm.open .confirm-box { transform: scale(1); }
.confirm-box p {
  margin: 0 0 20px;
  font-size: 15.5px;
  line-height: 1.55;
}
.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.confirm-actions .btn-ghost {
  width: auto;
  height: 44px;
  margin: 0;
  padding: 0 18px;
}

/* ── auth ── */
.auth {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 7, 5, 0.94);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}
.auth.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}
.auth-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: min(90vw, 360px);
  text-align: center;
}
.auth-box .sub { margin-bottom: 10px; }
.auth-box .field { text-align: left; margin-top: 8px; }
.auth-box .btn-primary { margin-top: 12px; }
.auth-box .field-error { margin-top: 4px; min-height: 18px; }

/* ── toast ── */
.toast {
  position: fixed;
  top: calc(14px + env(safe-area-inset-top));
  left: 50%;
  z-index: 90;
  max-width: 88vw;
  padding: 12px 22px;
  border: 1px solid rgba(201, 171, 110, 0.35);
  border-radius: 999px;
  background: rgba(24, 20, 14, 0.94);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5);
  color: var(--ink);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translate(-50%, -16px);
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── keyframes ── */
@keyframes digitIn {
  from { transform: translateY(0.22em); opacity: 0; filter: blur(4px); }
  to { transform: none; opacity: 1; filter: none; }
}
@keyframes colonPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
@keyframes cardIn {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes rowIn {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes viewIn {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
@keyframes beginOrbit {
  to { transform: rotate(360deg); }
}
@keyframes beginSweep {
  0%, 12% { background-position: 200% 0; }
  50%, 62% { background-position: -50% 0; }
  100% { background-position: -50% 0; }
}
@keyframes beginGlow {
  0%, 100% {
    box-shadow:
      0 0 0 12px rgba(201,171,110,0.06),
      0 0 0 26px rgba(201,171,110,0.025),
      0 0 0 44px rgba(201,171,110,0.01),
      0 0 40px rgba(201,171,110,0.12),
      0 0 80px rgba(201,171,110,0.06),
      inset 0 0 30px rgba(201,171,110,0.07);
  }
  50% {
    box-shadow:
      0 0 0 16px rgba(201,171,110,0.03),
      0 0 0 32px rgba(201,171,110,0.012),
      0 0 0 52px rgba(201,171,110,0.004),
      0 0 55px rgba(201,171,110,0.2),
      0 0 110px rgba(201,171,110,0.1),
      inset 0 0 40px rgba(201,171,110,0.1);
  }
}
@keyframes ambientGlow {
  0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.35; transform: translate(-50%, -50%) scale(1.25); }
}
@keyframes endBtnGlow {
  0%, 100% { box-shadow: 0 12px 32px rgba(201,171,110,0.25), 0 0 50px rgba(201,171,110,0.1); }
  50% { box-shadow: 0 16px 44px rgba(201,171,110,0.4), 0 0 80px rgba(201,171,110,0.2); }
}
@keyframes endShimmer {
  0%, 8% { background-position: 200% 0; }
  42%, 58% { background-position: -50% 0; }
  100% { background-position: -50% 0; }
}
@keyframes shimmer {
  to { transform: translateX(110%); }
}
@keyframes shakeX {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-2px); }
}

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