@font-face { font-family: 'Creepster'; src: url(/fonts/creepster-latin.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Rubik'; src: url(/fonts/rubik-cyrillic.woff2) format('woff2'); font-weight: 300 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Rubik'; src: url(/fonts/rubik-latin.woff2) format('woff2'); font-weight: 300 900; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+2122, U+2212; }
@font-face { font-family: 'Rubik Wet Paint'; src: url(/fonts/rubikwetpaint-cyrillic.woff2) format('woff2'); font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Rubik Wet Paint'; src: url(/fonts/rubikwetpaint-latin.woff2) format('woff2'); font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }

:root {
  --bg: #0b0710;
  --panel: #171021;
  --panel-2: #20152d;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f6efff;
  --muted: #a594bb;
  --orange: #ff7b1c;
  --orange-hi: #ffb347;
  --purple: #a26bff;
  --green: #8dff6a;
  --red: #ff5470;
  --t5: linear-gradient(135deg, #ffb347, #ff6a00);
  --t3: linear-gradient(135deg, #c79bff, #7c3aed);
  --t1: linear-gradient(135deg, #b6ff8f, #2fb344);
  --radius: 18px;
  --tabbar: calc(66px + env(safe-area-inset-bottom));
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(162, 107, 255, 0.28), transparent 60%),
    radial-gradient(90% 50% at 100% 100%, rgba(255, 123, 28, 0.12), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 16px/1.4 'Rubik', system-ui, -apple-system, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; touch-action: manipulation; cursor: pointer; }
button:disabled { cursor: default; opacity: 0.45; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

#app { max-width: 520px; margin: 0 auto; min-height: 100dvh; }

/* --- Кнопки --- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 52px; padding: 12px 18px;
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--panel-2); font-weight: 600; font-size: 17px;
  transition: transform 0.1s, filter 0.15s;
}
a.btn { color: var(--text); text-decoration: none; }
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn.primary {
  border: 0; color: #1b0b00;
  background: linear-gradient(180deg, var(--orange-hi), var(--orange));
  box-shadow: 0 8px 28px -8px rgba(255, 123, 28, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn.ok { border: 0; color: #062100; background: linear-gradient(180deg, #b6ff8f, #4ade55); }
.btn.ghost { background: transparent; }
.btn.danger { border-color: rgba(255, 84, 112, 0.5); color: var(--red); background: transparent; }
.btn.big { min-height: 60px; font-size: 20px; border-radius: 20px; }
.row { display: flex; gap: 10px; }
.stack { display: grid; gap: 10px; }

/* --- Заставка --- */
.splash {
  position: relative; min-height: 100dvh; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: calc(40px + env(safe-area-inset-top)) 28px calc(40px + env(safe-area-inset-bottom));
  text-align: center;
}
.moon {
  position: absolute; top: 7%; right: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #fff7e0, #f3d9a4 55%, #c9a66b);
  box-shadow: 0 0 80px 20px rgba(255, 230, 170, 0.25);
  opacity: 0.85;
}
.bats { position: absolute; top: 12%; left: 0; width: 100%; height: 160px; pointer-events: none; }
.bat { position: absolute; width: 38px; fill: #0b0710; animation: flap 0.35s ease-in-out infinite alternate, drift 9s ease-in-out infinite; }
.bat:nth-child(2) { width: 26px; animation-delay: 0.1s, -3s; }
.bat:nth-child(3) { width: 20px; animation-delay: 0.2s, -6s; }
@keyframes flap { from { transform: scaleY(1); } to { transform: scaleY(0.55); } }
@keyframes drift { 0%, 100% { translate: 0 0; } 50% { translate: 24px -14px; } }

.pumpkin { width: min(56vw, 230px); filter: drop-shadow(0 18px 40px rgba(255, 106, 0, 0.45)); position: relative; }
.pumpkin .face { animation: flicker 3.2s infinite; }
@keyframes flicker {
  0%, 100% { opacity: 1; } 42% { opacity: 1; } 44% { opacity: 0.6; } 46% { opacity: 1; } 70% { opacity: 0.85; }
}
.logo { position: relative; margin-top: 14px; line-height: 0.9; }
.logo .word {
  display: block;
  font: 400 clamp(64px, 20vw, 104px)/0.95 'Creepster', 'Rubik Wet Paint', cursive;
  letter-spacing: 1px;
  background: linear-gradient(180deg, #ffd27a 10%, var(--orange) 55%, #b5370a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(255, 123, 28, 0.55));
}
.logo .year {
  display: block; margin-top: 6px;
  font: 400 clamp(40px, 12vw, 60px)/1 'Creepster', cursive;
  letter-spacing: 8px; color: var(--green);
  text-shadow: 0 0 16px rgba(141, 255, 106, 0.6);
}
.splash .btn { max-width: 340px; margin-top: 44px; }
.fog {
  position: absolute; left: -20%; right: -20%; bottom: -40px; height: 200px; pointer-events: none;
  background: radial-gradient(50% 60% at 30% 70%, rgba(200, 180, 255, 0.12), transparent),
              radial-gradient(50% 60% at 75% 80%, rgba(200, 180, 255, 0.1), transparent);
  animation: fog 14s ease-in-out infinite alternate;
}
@keyframes fog { to { transform: translateX(8%); } }

/* --- Выбор гостя --- */
.page { padding: calc(16px + env(safe-area-inset-top)) 16px 32px; }
.page-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.back { width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); font-size: 20px; }
.title { font: 400 30px/1.1 'Rubik Wet Paint', 'Rubik', sans-serif; color: var(--orange-hi); }
.lead { color: var(--muted); margin: -8px 0 18px; }
.guest-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.guest {
  display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 10px 12px; text-align: left;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
}
.guest:active { transform: scale(0.97); }
.guest .name { font-weight: 600; font-size: 17px; line-height: 1.15; }
.guest .sub { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.guest.me { border-color: var(--orange); }
.ava {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #34234a, #1a1124); font-size: 22px; line-height: 1;
}

/* --- Основной экран --- */
.shell { padding-bottom: calc(var(--tabbar) + 24px); }
.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: linear-gradient(180deg, rgba(11, 7, 16, 0.96), rgba(11, 7, 16, 0.82));
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.mini-logo { font: 400 26px/1 'Creepster', cursive; color: var(--orange); letter-spacing: 0.5px; }
.mini-logo b { font-weight: 400; color: var(--green); margin-left: 4px; }
.who {
  display: flex; align-items: center; gap: 8px; max-width: 55%; padding: 4px 12px 4px 4px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--panel);
}
.who .ava { width: 32px; height: 32px; font-size: 18px; }
.who span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.offline { margin: 10px 16px 0; padding: 8px 12px; border-radius: 12px; background: rgba(255, 84, 112, 0.15); color: #ffb3c0; font-size: 14px; text-align: center; }

.view { padding: 18px 16px 0; display: grid; gap: 16px; }
.view > .title { margin-bottom: -4px; }
.hint { color: var(--muted); font-size: 15px; }
.card {
  padding: 16px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
}
.card h3 { display: flex; align-items: center; gap: 8px; font-size: 18px; margin-bottom: 12px; }
.card h3 + .meta { margin: -8px 0 8px; font-size: 13px; color: var(--muted); }
.tag { padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(255, 84, 112, 0.18); color: #ffb3c0; }
.empty { color: var(--muted); font-size: 15px; }

/* Рейтинг */
.board li {
  display: grid; grid-template-columns: 28px 36px 1fr 56px; align-items: center; gap: 10px;
  padding: 6px 0;
}
.board li + li { border-top: 1px solid var(--line); }
.board li.me .name { color: var(--orange-hi); }
.place { text-align: center; font-weight: 700; color: var(--muted); font-size: 15px; }
.place.medal { font-size: 22px; }
.board .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meter { height: 6px; margin-top: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 3px; background: var(--t5); }
.board.evil .meter i { background: linear-gradient(90deg, #ff5470, #a26bff); }
.val { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.board .ava { width: 36px; height: 36px; font-size: 20px; }
.more { margin-top: 8px; padding: 8px 0 0; width: 100%; background: none; border: 0; color: var(--purple); font-weight: 600; }

/* Голосование */
.ballot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slot {
  display: grid; justify-items: center; gap: 4px; padding: 10px 6px; border-radius: 14px; min-height: 92px;
  border: 1px dashed rgba(255, 255, 255, 0.16); text-align: center;
}
.slot.filled { border-style: solid; border-color: transparent; background: var(--panel-2); }
.slot .ava { width: 34px; height: 34px; font-size: 19px; }
.slot .who-name { font-size: 13px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot .who-name.none { color: var(--muted); font-weight: 400; }
.stars { padding: 2px 10px; border-radius: 999px; font-weight: 800; font-size: 14px; color: #160800; }
.t5 .stars, .tier.t5.on { background: var(--t5); }
.t3 .stars, .tier.t3.on { background: var(--t3); color: #fff; }
.t1 .stars, .tier.t1.on { background: var(--t1); color: #062100; }
.cands li { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.cands li + li { border-top: 1px solid var(--line); }
.cands .name { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tiers { display: flex; gap: 6px; flex: none; }
.tier {
  width: 46px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel);
  font-weight: 800; font-size: 15px; color: var(--muted);
}
.tier.on { border-color: transparent; color: #160800; box-shadow: 0 4px 14px -4px rgba(255, 255, 255, 0.25); }
.tier:active:not(:disabled) { transform: scale(0.92); }

/* Мастер злобных дел */
.score { display: flex; align-items: center; justify-content: space-between; }
.score b { font-size: 28px; color: var(--red); }
.deed {
  position: relative; padding: 26px 22px 28px; border-radius: 22px; text-align: center; overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 84, 112, 0.22), transparent 60%),
    linear-gradient(180deg, #2a1235, #160b1e);
  border: 1px solid rgba(255, 84, 112, 0.35);
  box-shadow: 0 20px 50px -20px rgba(255, 84, 112, 0.45), inset 0 0 0 6px rgba(0, 0, 0, 0.18);
}
.deed::before, .deed::after { content: '✦'; position: absolute; top: 12px; color: rgba(255, 84, 112, 0.5); }
.deed::before { left: 16px; }
.deed::after { right: 16px; }
.deed .label { font: 400 15px 'Rubik Wet Paint', sans-serif; color: var(--red); letter-spacing: 1px; }
.deed .text { margin-top: 14px; font-size: 21px; font-weight: 600; line-height: 1.35; }
.deed.waiting { opacity: 0.75; }
.deck-back {
  display: grid; place-items: center; gap: 14px; padding: 36px 20px; border-radius: 22px; text-align: center;
  background: repeating-linear-gradient(45deg, #1d1028 0 12px, #241432 12px 24px);
  border: 1px solid rgba(255, 84, 112, 0.35);
}
.deck-back .sigil { font-size: 64px; filter: drop-shadow(0 0 18px rgba(255, 84, 112, 0.6)); }
.pick li { display: flex; align-items: center; gap: 10px; }
.pick button.choice {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 5px 10px; border-radius: 14px; text-align: left;
  border: 1px solid var(--line); background: var(--panel);
}
.pick button.choice.on { border-color: var(--green); background: rgba(141, 255, 106, 0.1); }
.pick button.choice .name { flex: 1; font-weight: 600; }
.pick button.choice .check { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--line); display: grid; place-items: center; font-weight: 800; color: #062100; }
.pick button.choice.on .check { background: var(--green); border-color: var(--green); }
.pick .sub { font-size: 12px; color: var(--muted); font-weight: 400; }
.pick ul { display: grid; gap: 6px; margin: 12px 0; }
.pick .ava { width: 34px; height: 34px; font-size: 19px; }
.pick { scroll-margin-top: 76px; }
.sticky { position: sticky; bottom: calc(var(--tabbar) + 10px); }
.link { margin-left: auto; padding: 6px 2px; background: none; border: 0; color: var(--purple); font-weight: 600; font-size: 15px; }
.witnesses li { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.witnesses .status { margin-left: auto; font-size: 14px; color: var(--muted); }
.witnesses .status.done { color: var(--green); }
.request { border-color: rgba(141, 255, 106, 0.45); background: linear-gradient(180deg, rgba(141, 255, 106, 0.12), var(--panel)); }
.request .ask { margin-bottom: 12px; font-weight: 600; }
.request blockquote { margin: 0 0 12px; padding: 12px 14px; border-left: 3px solid var(--green); border-radius: 0 12px 12px 0; background: rgba(0, 0, 0, 0.2); font-weight: 600; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; font-size: 15px; }
.notice.ok { background: rgba(141, 255, 106, 0.12); color: #d6ffc6; }
.notice.warn { background: rgba(255, 179, 71, 0.14); color: #ffe0b0; }
.notice p { flex: 1; }
.notice button { background: none; border: 0; font-size: 18px; line-height: 1; padding: 2px 4px; opacity: 0.7; }
.done-list li { padding: 8px 0; font-size: 15px; }
.done-list li + li { border-top: 1px solid var(--line); }
.done-list .sub { color: var(--muted); font-size: 13px; }
.rules { color: var(--muted); font-size: 14px; display: grid; gap: 6px; }

/* Охота за сокровищем */
.hunt-empty { text-align: center; padding: 40px 20px; }
.hunt-empty .sigil { font-size: 72px; }
.hunt-empty p { margin-top: 10px; color: var(--muted); }
.score small { font-size: 16px; color: var(--muted); font-weight: 600; }
.board.hunt .meter i { background: linear-gradient(90deg, #ffe08a, #8dff6a); }
.loot { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.loot li {
  display: grid; justify-items: center; gap: 4px; padding: 10px 4px; border-radius: 14px; text-align: center;
  border: 1px dashed rgba(255, 255, 255, 0.14); color: var(--muted); font-size: 12px;
}
.loot li.got { border: 1px solid rgba(255, 224, 138, 0.4); background: radial-gradient(circle at 50% 30%, rgba(255, 179, 71, 0.18), transparent 70%); color: var(--text); }
.loot-emoji { font-size: 30px; line-height: 1.1; }
.loot li:not(.got) .loot-emoji { opacity: 0.35; filter: grayscale(1); }
.loot-name { font-weight: 600; line-height: 1.2; }

/* Камера и дополненная реальность */
.cam { position: fixed; inset: 0; z-index: 50; background: #000; overflow: hidden; touch-action: none; overscroll-behavior: contain; }
.cam-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cam.failed .cam-video { opacity: 0.2; }
.ar { position: absolute; inset: 0; pointer-events: none; }
.ar[hidden] { display: none; }
.ar-plane { position: absolute; left: 0; top: 0; width: 100px; height: 100px; transform-origin: 0 0; }
.ar-rune { width: 100%; height: 100%; animation: spin 9s linear infinite; filter: drop-shadow(0 0 6px #8dff6a); }
.ar-rune svg { display: block; width: 100%; height: 100%; }
@keyframes spin { to { transform: rotate(360deg); } }
.ar-item {
  position: absolute; left: 0; top: 0; padding: 0; border: 0; background: none; pointer-events: auto;
  display: grid; place-items: center; line-height: 1; transition: transform 0.08s linear;
}
.ar-bob { display: grid; place-items: center; width: 100%; height: 100%; animation: bob 1.6s ease-in-out infinite; filter: drop-shadow(0 0 18px rgba(255, 196, 80, 0.85)); }
.ar-bob .chest { width: 100%; height: 100%; }
.ar-item.owned .ar-bob { filter: drop-shadow(0 0 14px rgba(141, 255, 106, 0.8)); }
.ar-item.opening .ar-bob { animation: shake 0.25s linear infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10%); } }
@keyframes shake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-7deg); } 75% { transform: rotate(7deg); } }
.cam-top {
  position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: flex-start; gap: 12px;
  padding: calc(12px + env(safe-area-inset-top)) 16px 28px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent);
}
.cam-close { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.16); font-size: 20px; }
.cam-hint { padding-top: 10px; font-weight: 600; text-shadow: 0 1px 4px #000; }
.cam.failed .cam-top { bottom: 0; align-items: center; flex-direction: column; justify-content: center; text-align: center; padding: 32px; background: none; }
.cam.failed .cam-close { display: none; }
.cam.failed .cam-hint { font-size: 18px; max-width: 360px; }
.cam-bottom {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 16px calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), transparent);
}
.cam-bottom .btn { max-width: 488px; margin: 0 auto; }
.cam-bottom .btn:disabled { opacity: 0.7; background: rgba(40, 28, 52, 0.9); color: var(--text); box-shadow: none; }
.cam.revealed .cam-bottom { display: none; }
.cam-reveal {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px;
  padding: 24px; text-align: center; background: rgba(8, 4, 12, 0.82);
}
.cam-reveal[hidden] { display: none; }
.cam-reveal .burst {
  position: absolute; left: 50%; top: 42%; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%;
  background: repeating-conic-gradient(rgba(255, 196, 80, 0.28) 0 10deg, transparent 10deg 20deg);
  -webkit-mask: radial-gradient(circle, #000 20%, transparent 68%); mask: radial-gradient(circle, #000 20%, transparent 68%);
  animation: spin 14s linear infinite;
}
.reveal-emoji { position: relative; font-size: 120px; line-height: 1.1; animation: pop 0.6s cubic-bezier(0.2, 1.6, 0.4, 1) both; filter: drop-shadow(0 0 24px rgba(255, 196, 80, 0.8)); }
@keyframes pop { from { transform: scale(0.2) rotate(-20deg); opacity: 0; } }
.reveal-title { position: relative; font: 400 34px/1.1 'Rubik Wet Paint', 'Rubik', sans-serif; color: var(--orange-hi); margin-top: 8px; }
.reveal-name { position: relative; font-size: 20px; font-weight: 600; }
.reveal-plus { position: relative; color: var(--green); font-weight: 800; font-size: 18px; }
.cam-reveal .btn { position: relative; margin-top: 18px; min-width: 260px; }

/* --- Нижние вкладки --- */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: grid; grid-template-columns: repeat(6, 1fr);
  max-width: 520px; margin: 0 auto; height: var(--tabbar); padding: 6px 4px env(safe-area-inset-bottom);
  background: rgba(16, 10, 22, 0.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.tab {
  position: relative; display: grid; justify-items: center; align-content: center; gap: 3px;
  background: none; border: 0; border-radius: 12px; color: var(--muted); padding: 0;
}
.tab .icon { font-size: 22px; line-height: 1; filter: grayscale(0.6) opacity(0.75); transition: transform 0.15s; }
.tab .label { font-size: 10.5px; font-weight: 600; letter-spacing: -0.1px; }
.tab.on { color: var(--orange-hi); }
.tab.on .icon { filter: none; transform: translateY(-2px) scale(1.1); }
.badge {
  position: absolute; top: 2px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--red); color: #fff; font-size: 11px; font-weight: 800; line-height: 18px;
}

.toast {
  position: fixed; left: 16px; right: 16px; bottom: calc(var(--tabbar) + 12px); z-index: 60;
  max-width: 488px; margin: 0 auto; padding: 14px 16px; border-radius: 16px;
  background: #2b1b3a; border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  font-weight: 600; text-align: center; animation: toast-in 0.2s ease-out;
}
.toast.error { background: #3a1420; border-color: rgba(255, 84, 112, 0.5); }
.toast.no-tabs { bottom: calc(16px + env(safe-area-inset-bottom)); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
