/* Simplefun Videobook — video catalogue (full videos and short clips) of the audiobook collection. */

:root {
  --bg: #f6f4f2;
  --surface: #ffffff;
  --surface-2: #efebe7;
  --surface-3: #e4ded8;
  --text: #191412;
  --muted: #6b605a;
  --faint: #9a8f88;
  --line: rgba(25, 20, 18, .09);
  --accent: #e0502f;
  --accent-strong: #c43f20;
  --accent-ink: #ffffff;
  --accent-soft: #fbe3dc;
  --shadow: 0 1px 2px rgba(25, 20, 18, .05), 0 10px 28px rgba(25, 20, 18, .08);
  --shadow-lg: 0 24px 60px rgba(25, 20, 18, .22);
  --radius: 18px;
  --radius-sm: 12px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Manrope', 'Inter', system-ui, sans-serif;
  --gutter: 16px;
  --top-h: 64px;
  --tabs-h: 64px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0c0b;
    --surface: #181513;
    --surface-2: #211d1a;
    --surface-3: #2c2723;
    --text: #f4efeb;
    --muted: #a99d95;
    --faint: #776c65;
    --line: rgba(244, 239, 235, .08);
    --accent: #ff7452;
    --accent-strong: #ff8f72;
    --accent-ink: #1f0b05;
    --accent-soft: rgba(255, 116, 82, .15);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px rgba(0, 0, 0, .28);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e0c0b;
  --surface: #181513;
  --surface-2: #211d1a;
  --surface-3: #2c2723;
  --text: #f4efeb;
  --muted: #a99d95;
  --faint: #776c65;
  --line: rgba(244, 239, 235, .08);
  --accent: #ff7452;
  --accent-strong: #ff8f72;
  --accent-ink: #1f0b05;
  --accent-soft: rgba(255, 116, 82, .15);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px rgba(0, 0, 0, .28);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .55);
  color-scheme: dark;
}
@media (min-width: 760px) { :root { --gutter: 28px; } }
@media (min-width: 1200px) { :root { --gutter: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + var(--safe-t)); }
body {
  margin: 0; min-height: 100dvh;
  background: var(--bg); color: var(--text);
  font: 15px/1.55 var(--font);
  letter-spacing: -.006em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.025em; margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
svg { flex: none; }
[hidden] { display: none !important; }

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 30;
  height: calc(var(--top-h) + var(--safe-t)); padding: var(--safe-t) var(--gutter) 0;
  display: flex; align-items: center; gap: 16px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: url(/icon.svg) center / cover no-repeat; box-shadow: 0 4px 14px rgba(224, 80, 47, .35); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.brand-text b { color: var(--text); font: 800 17px/1.05 var(--display); letter-spacing: -.03em; }
.top-nav { display: none; gap: 4px; margin-left: 18px; }
.top-nav a { padding: 8px 14px; border-radius: 999px; font-weight: 600; color: var(--muted); transition: background .15s, color .15s; }
.top-nav a:hover { color: var(--text); background: var(--surface-2); }
.top-nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.pill-link { font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.pill-link:hover { color: var(--text); background: var(--surface-2); }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; transition: background .15s, transform .12s; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn:active { transform: scale(.92); }
.icon-btn svg { width: 21px; height: 21px; }
@media (min-width: 760px) { .top-nav { display: flex; } }
@media (max-width: 380px) { .pill-link { display: none; } }

/* ---------- bottom tabs (phones) ---------- */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  height: calc(var(--tabs-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-top: 1px solid var(--line);
}
.tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11.5px; font-weight: 600; color: var(--faint); }
.tabs a svg { width: 23px; height: 23px; }
.tabs a[aria-current="page"] { color: var(--accent); }
@media (min-width: 760px) { .tabs { display: none; } }

.main { min-height: 60vh; padding: 0 0 calc(var(--tabs-h) + var(--safe-b) + 24px); outline: none; }
@media (min-width: 760px) { .main { padding-bottom: 40px; } }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
.foot { max-width: 1320px; margin: 0 auto; padding: 8px var(--gutter) calc(var(--tabs-h) + var(--safe-b) + 24px); color: var(--faint); font-size: 13px; }
.foot a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
@media (min-width: 760px) { .foot { padding-bottom: 40px; } }
.main:has(.boot) + .foot { display: none; }

.boot { min-height: 60vh; display: grid; place-items: center; }
.spinner { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--surface-3); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- hero ---------- */
.hero { position: relative; margin: 18px var(--gutter) 0; border-radius: 24px; overflow: hidden; background: #000; color: #fff; isolation: isolate; max-width: 1240px; }
@media (min-width: 1320px) { .hero { margin-left: auto; margin-right: auto; } }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.02); animation: heroIn 1.2s var(--ease) both; }
@keyframes heroIn { from { opacity: 0; transform: scale(1.08); } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0,0,0,.86) 0%, rgba(0,0,0,.45) 45%, rgba(0,0,0,.05) 75%), linear-gradient(90deg, rgba(0,0,0,.55), transparent 65%); }
.hero-body { min-height: min(72vw, 560px); padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #ffd2c4; }
.hero-kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255, 116, 82, .3); }
.hero h1 { font-size: clamp(30px, 6.4vw, 58px); line-height: 1.02; font-weight: 800; max-width: 14ch; text-wrap: balance; }
.hero-sub { margin: 0; font-size: 15px; color: rgba(255,255,255,.82); max-width: 56ch; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-meta { font-size: 13px; color: rgba(255,255,255,.7); font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
@media (min-width: 760px) { .hero-body { padding: 44px; min-height: 520px; } .hero-sub { font-size: 17px; } }
@media (max-width: 520px) { .hero-body { min-height: 440px; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 999px; font-weight: 700; font-size: 15px; transition: transform .12s, background .15s, filter .15s; white-space: nowrap; }
.btn:active { transform: scale(.96); }
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-glass { background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255,255,255,.24); }
.btn-soft { background: var(--surface-2); color: var(--text); }
.btn-soft:hover { background: var(--surface-3); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 14px; }

/* ---------- sections ---------- */
.sec { margin-top: 34px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sec-head h2 { font-size: 22px; font-weight: 800; }
.sec-head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.sec-more { font-size: 14px; font-weight: 600; color: var(--accent); white-space: nowrap; display: inline-flex; align-items: center; gap: 2px; }
.sec-more svg { width: 18px; height: 18px; }
@media (min-width: 760px) { .sec-head h2 { font-size: 26px; } .sec { margin-top: 46px; } }

.stats { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.stat { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.stat b { color: var(--text); font-family: var(--display); font-weight: 800; margin-right: 3px; }

/* horizontal rail of clips */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 148px; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px var(--gutter) 10px; margin: 0 calc(var(--gutter) * -1); scrollbar-width: none; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 760px) { .rail { grid-auto-columns: 188px; gap: 16px; } }

/* clip card (9:16) */
.clip { display: block; text-align: left; width: 100%; }
.clip-thumb { position: relative; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: var(--surface-3); box-shadow: var(--shadow); }
.clip-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.clip:hover .clip-thumb img { transform: scale(1.04); }
.clip-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.72), transparent 48%); }
.clip-over { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 1; color: #fff; }
.clip-over b { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font: 700 14px/1.25 var(--display); letter-spacing: -.015em; }
.badge { position: absolute; z-index: 1; top: 8px; right: 8px; padding: 3px 7px; border-radius: 7px; background: rgba(0,0,0,.62); color: #fff; font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; backdrop-filter: blur(6px); }
.badge-l { left: 8px; right: auto; background: var(--accent); color: var(--accent-ink); }
.clip-book { margin-top: 8px; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.play-chip { position: absolute; z-index: 1; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.4); color: #fff; backdrop-filter: blur(6px); opacity: 0; transform: scale(.85); transition: opacity .2s, transform .2s var(--ease); }
.play-chip svg { width: 24px; height: 24px; margin-left: 3px; }
.clip:hover .play-chip, .card:hover .play-chip { opacity: 1; transform: none; }

.clip-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
@media (min-width: 560px) { .clip-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .clip-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 16px; } }
@media (min-width: 1180px) { .clip-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* full-video card (16:9) */
.card-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { display: block; }
.card-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--surface-3); box-shadow: var(--shadow); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card-thumb img { transform: scale(1.03); }
.card-thumb .badge { top: auto; bottom: 10px; right: 10px; }
.card-thumb .badge-l { top: 10px; bottom: auto; left: 10px; right: auto; }
.card-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.3); z-index: 1; }
.card-prog i { display: block; height: 100%; background: var(--accent); }
.card-body { padding: 12px 2px 0; display: flex; gap: 12px; }
.card-body h3 { font-size: 17px; font-weight: 800; line-height: 1.25; }
.card-body p { margin: 3px 0 0; font-size: 13.5px; color: var(--muted); }
.card-sub { color: var(--text); font-weight: 600; }
.card-dots { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.tag { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.tag-accent { background: var(--accent-soft); color: var(--accent-strong); }

/* page header + filters */
.page-head { padding-top: 26px; }
.page-head h1 { font-size: clamp(28px, 5vw, 40px); font-weight: 800; }
.page-head p { margin: 6px 0 0; color: var(--muted); max-width: 62ch; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 18px var(--gutter) 6px; margin: 0 calc(var(--gutter) * -1) 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--muted); transition: background .15s, color .15s; }
.chip:hover { color: var(--text); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: transparent; }
.empty { padding: 60px 0; text-align: center; color: var(--muted); }

/* ---------- watch page ---------- */
.watch { max-width: 1180px; margin: 0 auto; padding: 18px var(--gutter) 0; }
.player { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #000; box-shadow: var(--shadow-lg); }
.player video { width: 100%; height: 100%; display: block; background: #000; }
@media (max-width: 640px) { .watch { padding: 0; } .player { border-radius: 0; box-shadow: none; } .watch-info { padding: 0 var(--gutter); } }
.watch-info { margin-top: 18px; }
.watch-kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.watch-info h1 { font-size: clamp(24px, 4vw, 34px); font-weight: 800; line-height: 1.12; margin-top: 4px; }
.watch-meta { margin-top: 6px; color: var(--muted); font-size: 14px; }
.watch-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.watch-desc { margin: 16px 0 0; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); color: var(--text); max-width: 80ch; }
.watch .sec { padding: 0; }
@media (max-width: 640px) { .watch .sec { padding: 0 var(--gutter); } }

/* ---------- shorts viewer ---------- */
.shorts { position: fixed; inset: 0; z-index: 60; background: #000; color: #fff; }
.sh-track { height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; }
.sh-track::-webkit-scrollbar { display: none; }
.sh-slide { height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always; display: grid; place-items: center; position: relative; }
.sh-frame { position: relative; height: 100%; width: 100%; max-width: calc(100dvh * 9 / 16); overflow: hidden; background: #111; }
@media (min-width: 760px) { .sh-slide { padding: 18px 0; } .sh-frame { border-radius: 18px; height: calc(100dvh - 36px); max-width: calc((100dvh - 36px) * 9 / 16); } }
.sh-poster, .sh-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sh-frame video { background: transparent; }
.sh-shade { position: absolute; inset: auto 0 0 0; height: 46%; background: linear-gradient(0deg, rgba(0,0,0,.82), transparent); pointer-events: none; }
.sh-info { position: absolute; left: 14px; right: 72px; bottom: calc(22px + var(--safe-b)); z-index: 2; }
.sh-book { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.sh-book .sh-no { padding: 2px 7px; border-radius: 6px; background: rgba(255,255,255,.18); font-size: 11.5px; }
.sh-title { font: 800 19px/1.2 var(--display); letter-spacing: -.02em; margin: 6px 0 0; text-shadow: 0 1px 12px rgba(0,0,0,.4); }
.sh-cap { margin: 6px 0 0; font-size: 13.5px; line-height: 1.45; color: rgba(255,255,255,.88); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.sh-cap.open { -webkit-line-clamp: unset; max-height: 40dvh; overflow-y: auto; }
.sh-tags { margin-top: 4px; font-size: 12.5px; color: #ffc3b2; display: none; }
.sh-cap.open + .sh-tags { display: block; }
.sh-side { position: absolute; right: 8px; bottom: calc(26px + var(--safe-b)); z-index: 2; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.sh-act { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.sh-act span.ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .15s, transform .12s; }
.sh-act:hover span.ic { background: rgba(255,255,255,.24); }
.sh-act:active span.ic { transform: scale(.9); }
.sh-act svg { width: 23px; height: 23px; }
.sh-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 14px; z-index: 3; cursor: pointer; display: flex; align-items: flex-end; padding-bottom: var(--safe-b); }
.sh-prog i { display: block; height: 3px; width: 0; background: #fff; box-shadow: 0 0 8px rgba(255,255,255,.5); }
.sh-prog::before { content: ""; position: absolute; left: 0; right: 0; bottom: var(--safe-b); height: 3px; background: rgba(255,255,255,.22); }
.sh-big { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; z-index: 2; display: grid; place-items: center; background: rgba(0,0,0,.45); pointer-events: none; opacity: 0; transform: scale(.8); transition: opacity .2s, transform .25s var(--ease); }
.sh-big.show { opacity: 1; transform: none; }
.sh-big svg { width: 34px; height: 34px; }
.sh-tap { position: absolute; inset: 0; z-index: 1; }
.sh-top { position: fixed; z-index: 4; top: calc(10px + var(--safe-t)); left: 10px; right: 10px; display: flex; justify-content: space-between; pointer-events: none; }
.sh-top > * { pointer-events: auto; }
.sh-round { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.42); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.sh-round:hover { background: rgba(0,0,0,.6); }
.sh-round svg { width: 22px; height: 22px; }
.sh-nav { position: fixed; z-index: 4; right: 22px; top: 50%; transform: translateY(-50%); display: none; flex-direction: column; gap: 12px; }
.sh-nav .sh-round { background: rgba(255,255,255,.12); }
.sh-nav .sh-round:disabled { opacity: .3; pointer-events: none; }
@media (min-width: 760px) { .sh-nav { display: flex; } }
.sh-sound { position: absolute; z-index: 3; top: 50%; left: 50%; transform: translate(-50%, 70px); padding: 9px 14px; border-radius: 999px; background: rgba(0,0,0,.6); font-size: 13px; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.sh-sound svg { width: 18px; height: 18px; }
.sh-spin { position: absolute; z-index: 2; left: 50%; top: 50%; margin: -16px 0 0 -16px; width: 32px; height: 32px; border-radius: 50%; border: 3px solid rgba(255,255,255,.25); border-top-color: #fff; animation: spin .8s linear infinite; display: none; }
.sh-frame.waiting .sh-spin { display: block; }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(var(--tabs-h) + var(--safe-b) + 16px); z-index: 90; transform: translate(-50%, 20px); padding: 11px 18px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--ease); max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 760px) { .toast { bottom: 28px; } }

.reveal { animation: rise .5s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
