:root {
  /* Neutrals: cool navy-blacks, so the blue water is the only thing that glows */
  --bg: #040a17;
  --surface: #0b1730;
  --surface-hi: #10244a;
  --line: rgba(120, 175, 255, 0.18);
  --line-strong: rgba(120, 175, 255, 0.34);
  --text: #eaf2ff;
  --text-muted: #93a4c3;
  --text-faint: #6f82a6;

  /* Signature: VIOMI water blue. Reserved for water, completed zones and the primary button. */
  --accent: #1677ff;
  --accent-hi: #5cb2ff;
  --accent-btn: #0f6ef0;
  --accent-btn-deep: #0a5fd8;
  --accent-fg: #ffffff;
  --accent-glow: rgba(22, 119, 255, 0.55);

  /* Status */
  --danger: #ff8a8a;
  --live: #4be3a0;

  --font-display: "Montserrat", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Lexend", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius-pill: 999px;
  --radius-lg: 28px;
  --radius-md: 16px;

  --gap-tight: 8px;
  --gap: 16px;
  --gap-loose: 32px;

  --dot: clamp(38px, 12.4vw, 46px);
  --ease-water: cubic-bezier(0.22, 0.8, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.5 var(--font-body);
  overflow-x: hidden;
}

/* Lit water floor behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(70% 34% at 50% 60%, rgba(22, 119, 255, 0.16), transparent 70%),
    radial-gradient(130% 46% at 50% 112%, rgba(22, 119, 255, 0.34), transparent 66%),
    radial-gradient(90% 36% at 50% -8%, rgba(70, 120, 230, 0.16), transparent 70%),
    var(--bg);
}

[hidden] {
  display: none !important;
}

button {
  font: inherit;
  color: inherit;
}

svg {
  display: block;
}

/* ---------- Type ---------- */

.wordmark {
  margin: 0;
  font: 800 clamp(40px, 12vw, 50px) / 1 var(--font-display);
  letter-spacing: 0.08em;
  /* optical centring: tracking adds space after the last letter */
  padding-left: 0.08em;
  color: #f4f8ff;
  text-shadow: 0 0 28px rgba(120, 180, 255, 0.35);
}

.wordmark-sm {
  font-size: 22px;
  text-shadow: none;
}

.brand-sub {
  margin: var(--gap-tight) 0 0;
  font-weight: 300;
  font-size: 18px;
  color: var(--text);
  opacity: 0.86;
}

.eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- Journey ---------- */

.journey {
  min-height: 100dvh;
  max-width: 460px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: calc(env(safe-area-inset-top) + 36px) 20px calc(env(safe-area-inset-bottom) + 20px);
}

.drop-stage {
  flex: 1 1 auto;
  width: 100%;
  min-height: 220px;
  display: grid;
  place-items: center;
  padding: var(--gap-loose) 0 var(--gap);
}

.progress {
  width: 100%;
}

.progress-label {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}

.progress-hint {
  margin: 14px 0 0;
  min-height: 1.5em;
  font-size: 14px;
  color: var(--text-muted);
}

.cta-bar {
  position: sticky;
  bottom: calc(env(safe-area-inset-bottom) + 12px);
  width: 100%;
  margin-top: var(--gap-loose);
}

/* ---------- Droplet ---------- */

.drop-wrap {
  --fill: 0;
  position: relative;
  height: clamp(200px, 42dvh, 380px);
  aspect-ratio: 200 / 280;
}

.drop {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.drop-halo {
  opacity: calc(0.06 + var(--fill) * 0.6);
  transition: opacity 1.8s var(--ease-water);
}

.water {
  transition: transform 1.8s var(--ease-water);
}

.wave-back {
  animation: wave-left 7s linear infinite;
}

.wave-front {
  animation: wave-right 5s linear infinite;
}

@keyframes wave-left {
  from { transform: translateX(-100px); }
  to { transform: translateX(0); }
}

@keyframes wave-right {
  from { transform: translateX(0); }
  to { transform: translateX(-80px); }
}

.bubble {
  opacity: 0;
  animation: rise var(--dur, 4s) ease-in var(--delay, 0s) infinite;
}

@keyframes rise {
  0% { transform: translateY(0); opacity: 0; }
  25% { opacity: 0.85; }
  100% { transform: translateY(var(--rise, -60px)); opacity: 0; }
}

.drop-check {
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  animation: draw-check 0.7s 0.4s var(--ease-water) forwards;
}

@keyframes draw-check {
  to { stroke-dashoffset: 0; }
}

/* Light pooling on the floor under the drop */
.pool {
  position: absolute;
  left: 50%;
  bottom: -4%;
  width: 150%;
  height: 18%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(70, 160, 255, calc(0.22 + var(--fill) * 0.5)), rgba(22, 119, 255, 0.07) 70%, transparent);
  transition: background 1.8s;
}

.ripple {
  position: absolute;
  inset: 22% 26%;
  border-radius: 50%;
  border: 1px solid rgba(130, 190, 255, 0.5);
  opacity: 0;
  animation: ripple 4.4s ease-out infinite;
}

.ripple:nth-child(2) {
  animation-delay: 2.2s;
}

@keyframes ripple {
  from { transform: scale(0.4); opacity: 0.8; }
  to { transform: scale(1.45); opacity: 0; }
}

.drop-wrap.is-full .drop-halo {
  animation: halo-breathe 3.2s ease-in-out infinite;
}

@keyframes halo-breathe {
  50% { opacity: 0.9; }
}

/* ---------- Zone dots ---------- */

.zone-dots {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 4px;
}

.dot {
  position: relative;
  width: var(--dot);
  height: var(--dot);
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
}

.dot::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1.5px solid rgba(147, 164, 195, 0.55);
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s, transform 0.2s;
}

.dot > * {
  position: relative;
}

.dot-num {
  font-size: 14px;
  font-weight: 500;
}

.dot-check {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--accent-fg);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dot.is-done::before {
  border-color: transparent;
  background: radial-gradient(circle at 35% 30%, #57abff, var(--accent) 55%, #0a56cf);
  box-shadow: 0 0 16px var(--accent-glow);
}

.dot:active::before {
  transform: scale(0.92);
}

.dot:focus-visible {
  outline: none;
}

.dot:focus-visible::before {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.dot.just-done::before {
  animation: dot-pop 0.7s var(--ease-water);
}

@keyframes dot-pop {
  0% { transform: scale(0.5); }
  60% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

.zone-dots-static {
  --dot: 34px;
  margin-top: 22px;
}

.zone-dots-static .dot {
  cursor: default;
}

/* ---------- Buttons ---------- */

.btn {
  width: 100%;
  min-height: 56px;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: var(--radius-pill);
  font: 600 17px/1 var(--font-body);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background-color 0.2s;
}

.btn:focus-visible,
.icon-btn:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.btn-primary {
  color: var(--accent-fg);
  background: linear-gradient(180deg, var(--accent-btn), var(--accent-btn-deep));
  box-shadow: 0 12px 32px -8px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn-primary:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: 0 6px 18px -8px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn-quiet {
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--line);
}

.btn-quiet:active {
  background: rgba(120, 175, 255, 0.06);
}

.btn-icon {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(4, 10, 23, 0.4);
  color: var(--text);
  cursor: pointer;
}

.icon-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-btn-spacer {
  width: 44px;
}

/* ---------- Dialogs (shared) ---------- */

dialog {
  color: var(--text);
  padding: 0;
}

dialog::backdrop {
  background: rgba(2, 6, 16, 0.66);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

/* ---------- Zone sheet ---------- */

.sheet {
  width: 100%;
  max-width: 460px;
  max-height: 88dvh;
  margin: auto auto 0;
  padding: 10px 24px calc(env(safe-area-inset-bottom) + 24px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(180deg, var(--surface-hi), var(--surface) 140px);
}

.sheet[open] {
  animation: sheet-in 0.42s var(--ease-water);
}

@keyframes sheet-in {
  from { transform: translateY(100%); }
}

.sheet-grip {
  width: 40px;
  height: 4px;
  margin: 0 auto 22px;
  border-radius: 2px;
  background: var(--line-strong);
}

.sheet-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sheet-eyebrow.is-unlocked {
  color: var(--accent-hi);
}

.sheet-eyebrow .badge {
  width: 20px;
  height: 20px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
}

.sheet-eyebrow .badge svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: var(--accent-fg);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sheet-title {
  margin: 12px 0 0;
  font: 800 28px/1.15 var(--font-display);
  letter-spacing: -0.01em;
}

.sheet-lede {
  margin: 14px 0 0;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  opacity: 0.9;
}

.sheet-facts {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.sheet-facts li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.sheet-facts li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 11px;
  background: var(--accent-hi);
  /* tiny water drop */
  clip-path: path("M4 0C3.6 1.6 0 4.6 0 7a4 4 0 0 0 8 0C8 4.6 4.4 1.6 4 0Z");
}

.sheet-actions {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

/* ---------- Done modal ---------- */

.modal {
  width: calc(100% - 40px);
  max-width: 340px;
  padding: 30px 22px 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-hi), var(--surface));
  text-align: center;
  box-shadow: 0 30px 80px -20px rgba(22, 119, 255, 0.35);
}

.modal[open] {
  animation: modal-in 0.5s var(--ease-water);
}

@keyframes modal-in {
  from { transform: translateY(16px) scale(0.96); opacity: 0; }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border-color: transparent;
  background: none;
  color: var(--text-muted);
}

.modal-drop .drop-wrap {
  height: 120px;
  margin: 0 auto;
}

.modal-drop .pool {
  display: none;
}

.modal-title {
  margin: 18px 0 0;
  font: 800 30px/1.1 var(--font-display);
}

.modal-text {
  margin: 12px 0 24px;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.5;
}

.modal-foot {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- Pass ---------- */

.pass {
  min-height: 100dvh;
  max-width: 460px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 12px) 20px calc(env(safe-area-inset-bottom) + 24px);
  display: flex;
  flex-direction: column;
}

.pass-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pass-card {
  position: relative;
  overflow: hidden;
  margin: 20px 0 auto;
  padding: 28px 20px 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(16, 36, 74, 0.9), rgba(8, 18, 39, 0.94));
  text-align: center;
}

/* Moving sheen: a screenshot of this pass looks frozen */
.pass-card::after {
  content: "";
  position: absolute;
  inset: -40% -60%;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgba(150, 205, 255, 0.11) 50%, transparent 58%);
  animation: sheen 4.5s linear infinite;
}

@keyframes sheen {
  from { transform: translateX(-40%); }
  to { transform: translateX(40%); }
}

.pass-drop .drop-wrap {
  height: 170px;
  margin: 18px auto 6px;
}

.pass-title {
  margin: 18px 0 0;
  font: 800 32px/1.1 var(--font-display);
}

.pass-sub {
  margin: 10px auto 0;
  max-width: 28ch;
  font-weight: 300;
  font-size: 16px;
  color: var(--text);
  opacity: 0.9;
}

.pass-meta {
  margin: 26px 0 0;
  border-top: 1px solid var(--line);
}

.pass-meta div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
}

.pass-meta dt {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.pass-meta dd {
  margin: 0;
  white-space: nowrap;
  font: 700 17px/1.2 var(--font-display);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.pass-live {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 22px 0 0;
  font-size: 14px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.pass-live time {
  color: var(--text);
  font-weight: 500;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(75, 227, 160, 0.6);
  animation: live 1.6s ease-out infinite;
}

@keyframes live {
  to { box-shadow: 0 0 0 9px rgba(75, 227, 160, 0); }
}

.pass-name {
  margin: 8px 0 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

/* ---------- Registration ---------- */

.register {
  min-height: 100dvh;
  max-width: 460px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 28px) 20px calc(env(safe-area-inset-bottom) + 28px);
}

.register-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.register-title {
  margin: 32px 0 0;
  font: 800 30px/1.1 var(--font-display);
  letter-spacing: -0.01em;
}

.register-title:focus {
  outline: none;
}

.register-lede {
  margin: 12px 0 0;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.55;
  opacity: 0.9;
}

.reg-form {
  display: grid;
  gap: 20px;
  margin-top: var(--gap-loose);
}

.field > label:not(.check) {
  display: block;
  margin-bottom: var(--gap-tight);
  font-size: 15px;
  font-weight: 500;
}

.optional {
  font-weight: 400;
  color: var(--text-muted);
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"] {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  font: 400 16px/1 var(--font-body);
}

.field input::placeholder {
  color: var(--text-faint);
}

.field input:focus {
  outline: 2px solid var(--accent-hi);
  outline-offset: 1px;
}

.field input[aria-invalid="true"] {
  border-color: var(--danger);
}

/* keep browser autofill on the dark surface */
.field input:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  box-shadow: 0 0 0 100px var(--surface) inset;
  caret-color: var(--text);
}

.field-help,
.field-error {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.45;
}

.field-help {
  color: var(--text-muted);
}

.field-error {
  color: var(--danger);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 6px 0;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
}

.check + .field-error {
  margin: 0 0 6px 34px;
}

.check input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--accent);
}

.check input:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.form-error {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 138, 138, 0.4);
  border-radius: var(--radius-md);
  background: rgba(255, 138, 138, 0.08);
  color: var(--danger);
  font-size: 14px;
  line-height: 1.45;
}

.register-actions {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--accent-fg);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.btn.is-busy {
  pointer-events: none;
  opacity: 0.85;
}

.btn.is-busy .btn-spinner {
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.link-btn {
  min-height: 44px;
  margin-top: 4px;
  padding: 10px 6px;
  border: 0;
  background: none;
  color: var(--accent-hi);
  font: 500 14px/1.3 var(--font-body);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.link-btn:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- Scanner ---------- */

.scanner {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  background: #000;
  overflow: hidden;
}

.scanner::backdrop {
  background: #000;
}

.scan-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scan-ui {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(env(safe-area-inset-top) + 14px) 20px calc(env(safe-area-inset-bottom) + 28px);
}

.scan-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.scan-title {
  margin: 0;
  font: 700 18px/1 var(--font-display);
}

.scan-frame {
  position: relative;
  width: min(68vw, 280px);
  aspect-ratio: 1;
  margin: auto 0 0;
  border-radius: 24px;
  /* darkens everything outside the frame */
  box-shadow: 0 0 0 100vmax rgba(2, 6, 16, 0.6);
  z-index: -1;
}

.scan-corner {
  position: absolute;
  width: 34px;
  height: 34px;
  border: 0 solid var(--accent-hi);
  transition: border-color 0.2s;
}

.scan-corner.tl { top: 0; left: 0; border-top-width: 4px; border-left-width: 4px; border-top-left-radius: 24px; }
.scan-corner.tr { top: 0; right: 0; border-top-width: 4px; border-right-width: 4px; border-top-right-radius: 24px; }
.scan-corner.bl { bottom: 0; left: 0; border-bottom-width: 4px; border-left-width: 4px; border-bottom-left-radius: 24px; }
.scan-corner.br { bottom: 0; right: 0; border-bottom-width: 4px; border-right-width: 4px; border-bottom-right-radius: 24px; }

.scan-line {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 10%;
  height: 2px;
  border-radius: 1px;
  background: var(--accent-hi);
  box-shadow: 0 0 14px var(--accent-hi);
  opacity: 0;
}

.scanner[data-state="scanning"] .scan-line {
  animation: scan-sweep 2.2s ease-in-out infinite alternate;
}

@keyframes scan-sweep {
  from { top: 10%; opacity: 0.9; }
  to { top: 90%; opacity: 0.9; }
}

.scanner[data-state="invalid"] .scan-corner {
  border-color: var(--danger);
}

.scanner[data-state="starting"] .scan-frame,
.scanner[data-state="blocked"] .scan-frame {
  opacity: 0.35;
}

.scan-status {
  margin: 26px 0 auto;
  max-width: 32ch;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: rgba(2, 6, 16, 0.74);
  text-align: center;
  font-size: 16px;
  font-weight: 500;
}

.scan-status:empty {
  visibility: hidden;
}

.scanner[data-state="invalid"] .scan-status {
  color: var(--danger);
}

.scan-help {
  width: 100%;
  max-width: 420px;
  margin-top: auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  text-align: center;
}

.scan-help-text {
  margin: 0 0 16px;
  font-weight: 300;
  line-height: 1.55;
}

.scanner[data-state="blocked"] .scan-status {
  display: none;
}

/* ---------- Toast & banner ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom) + 96px);
  z-index: 10;
  max-width: calc(100% - 40px);
  padding: 12px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--surface-hi);
  font-size: 14px;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.storage-banner {
  padding: calc(env(safe-area-inset-top) + 10px) 20px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
  color: var(--text-muted);
}

/* ---------- Short screens ---------- */

@media (max-height: 640px) {
  .journey { padding-top: calc(env(safe-area-inset-top) + 20px); }
  .wordmark { font-size: 36px; }
  .brand-sub { font-size: 16px; }
  .drop-stage { padding: var(--gap) 0 var(--gap-tight); min-height: 180px; }
  .cta-bar { margin-top: var(--gap); }
}

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

  .drop-check {
    stroke-dashoffset: 0;
  }
}
