/* Kura — Mini App. Tema scuro derivato da Telegram, zero dipendenze. */
:root {
  --bg: #080a10;
  --bg-soft: #0e1119;
  --card: rgba(255, 255, 255, 0.045);
  --card-hi: rgba(255, 255, 255, 0.075);
  --border: rgba(255, 255, 255, 0.085);
  --border-hi: rgba(255, 255, 255, 0.16);
  --text: #eef1f8;
  --muted: #8d95a8;
  --faint: #5d6478;
  --accent: #7c5cff;
  --accent-2: #22d3ee;
  --good: #34d399;
  --warn: #fbbf24;
  --danger: #fb7185;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.9);
  --nav-h: 66px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  min-height: 100%;
  overscroll-behavior-y: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(65% 45% at 12% -8%, rgba(124, 92, 255, 0.20), transparent 65%),
    radial-gradient(55% 40% at 95% 4%, rgba(34, 211, 238, 0.12), transparent 62%),
    radial-gradient(70% 50% at 50% 108%, rgba(124, 92, 255, 0.10), transparent 70%);
  z-index: -1;
}

button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input { font: inherit; }

/* ------------------------------------------------------------------ layout */
.app {
  max-width: 720px;
  margin: 0 auto;
  padding: calc(14px + var(--safe-t)) 16px calc(var(--nav-h) + 26px + var(--safe-b));
}

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(10px + var(--safe-t)) 16px 10px;
  margin: 0 -16px 6px;
  background: linear-gradient(180deg, rgba(8, 10, 16, 0.96) 30%, rgba(8, 10, 16, 0.55) 78%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; letter-spacing: -0.02em; }
.brand .leaf {
  width: 30px; height: 30px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, rgba(124,92,255,0.9), rgba(34,211,238,0.75));
  box-shadow: 0 8px 22px -10px rgba(124, 92, 255, 0.9);
  font-size: 15px;
}
.brand small { display: block; font-size: 10.5px; font-weight: 500; color: var(--muted); letter-spacing: 0.02em; }
.top .spacer { flex: 1; }

.icon-btn {
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--border);
  color: var(--text); transition: transform .15s ease, background .2s ease;
}
.icon-btn:active { transform: scale(0.93); background: var(--card-hi); }
.icon-btn svg { width: 18px; height: 18px; }

/* ------------------------------------------------------------------ typo */
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
h1 { font-size: 25px; line-height: 1.15; font-weight: 750; }
h2 { font-size: 17px; font-weight: 680; }
h3 { font-size: 14px; font-weight: 640; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.tiny { font-size: 11.5px; }
.section { margin: 22px 0 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.section-head a { font-size: 12.5px; color: var(--accent-2); }

/* ------------------------------------------------------------------ hero */
.hello { margin: 8px 0 18px; }
.hello .eyebrow { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.hello h1 { margin-top: 4px; }
.hello p { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; }

.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.stat {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 11px 12px;
}
.stat b { display: block; font-size: 17px; letter-spacing: -0.02em; }
.stat span { font-size: 11px; color: var(--muted); }

/* ------------------------------------------------------------------ card */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
}

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

.poster {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4.15;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  padding: 13px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .18s ease, border-color .2s ease;
  background: var(--bg-soft);
}
.poster:active { transform: scale(0.975); border-color: var(--border-hi); }
.poster .art {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.poster.has-art::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(6,8,13,0.15) 0%, rgba(6,8,13,0.05) 42%, rgba(6,8,13,0.86) 100%);
}
.poster.has-art .topline, .poster.has-art .bottom { z-index: 2; }
.poster .topline { position: relative; display: flex; justify-content: space-between; align-items: flex-start; }
.poster .kind {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em;
  background: rgba(8, 10, 16, 0.45); border: 1px solid var(--border);
  padding: 3px 7px; border-radius: 999px; color: #dfe4f2;
}
.poster .bottom { position: relative; }
.poster .title { font-weight: 680; font-size: 13.5px; line-height: 1.25; margin-bottom: 5px; }
.poster .meta { font-size: 11px; color: rgba(232, 236, 244, 0.72); }
.poster .bar { margin-top: 8px; height: 3px; border-radius: 999px; background: rgba(255,255,255,0.14); overflow: hidden; }
.poster .bar > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

/* --------------------------------------------------------- continue strip */
.strip { display: flex; gap: 11px; overflow-x: auto; padding: 2px 2px 6px; scroll-snap-type: x mandatory; }
.strip::-webkit-scrollbar { display: none; }
.continue {
  flex: 0 0 78%;
  scroll-snap-align: start;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(124,92,255,0.16), rgba(34,211,238,0.06));
  padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .16s ease;
}
.continue:active { transform: scale(0.98); }
.continue .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.continue .ep { font-size: 11px; color: var(--accent-2); font-weight: 650; letter-spacing: 0.04em; }
.continue .name { font-weight: 680; font-size: 15px; line-height: 1.2; }
.continue .progress { height: 4px; border-radius: 999px; background: rgba(255,255,255,0.13); overflow: hidden; }
.continue .progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.continue .foot { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }

/* ---------------------------------------------------------------- chips */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 4px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 7px 13px;
  font-size: 12.5px;
  color: var(--muted);
  transition: all .16s ease;
}
.chip[aria-pressed="true"] {
  background: linear-gradient(135deg, rgba(124,92,255,0.9), rgba(34,211,238,0.65));
  border-color: transparent; color: #0a0d14; font-weight: 680;
}
.chip:active { transform: scale(0.96); }

/* ---------------------------------------------------------------- search */
.search { display: flex; gap: 9px; align-items: center; margin: 12px 0; }
.search .field {
  flex: 1; display: flex; align-items: center; gap: 9px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 10px 13px;
}
.search input {
  flex: 1; background: none; border: 0; outline: none; color: var(--text); font-size: 14px;
}
.search input::placeholder { color: var(--faint); }
.search svg { width: 16px; height: 16px; color: var(--muted); flex: 0 0 auto; }

/* --------------------------------------------------------------- series */
.hero {
  position: relative;
  border-radius: 22px;
  border: 1px solid var(--border);
  padding: 20px;
  overflow: hidden;
  background: var(--bg-soft);
  isolation: isolate;
}
/* sfondo della serie: immagine intera, nessun blur, nessun ingrandimento forzato */
.hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center 28%;
  background-repeat: no-repeat;
}
/* velo nero semitrasparente: scurisce lo sfondo e rende leggibili i testi chiari */
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(6, 8, 13, 0.58) 0%, rgba(6, 8, 13, 0.74) 55%, rgba(6, 8, 13, 0.9) 100%);
}
.hero .inner { position: relative; z-index: 2; }
.hero h1, .hero .kind, .hero .tag { text-shadow: 0 1px 10px rgba(0, 0, 0, 0.65); }
.hero-cover {
  width: 86px; height: 122px; object-fit: cover; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.22); flex: 0 0 auto;
  box-shadow: 0 14px 30px -14px rgba(0,0,0,0.9);
}
.hero .inner { display: flex; gap: 14px; align-items: flex-end; }
.hero .kind { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.8); }
.hero h1 { margin: 6px 0 8px; font-size: 26px; }
.hero .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tag {
  font-size: 11px; padding: 4px 9px; border-radius: 999px;
  background: rgba(8,10,16,0.42); border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.9);
}
.hero .actions { display: flex; gap: 9px; align-items: center; }
.fav-btn { min-width: 44px; font-size: 16px; line-height: 1; }
.anilist-btn {
  min-width: 44px; color: #9db9ff;
  border-color: rgba(157, 185, 255, 0.32);
  background: rgba(157, 185, 255, 0.10);
}
.anilist-btn:active { transform: scale(0.96); }
.anilist-btn:focus-visible { outline: 2px solid #9db9ff; outline-offset: 2px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border-radius: 13px; padding: 11px 15px; font-weight: 680; font-size: 13.5px;
  border: 1px solid var(--border); background: var(--card); color: var(--text);
  transition: transform .15s ease, filter .2s ease;
}
.btn:active { transform: scale(0.97); }
.btn.primary {
  background: linear-gradient(135deg, var(--accent), #5b8cff 60%, var(--accent-2));
  border-color: transparent; color: #080b12;
}
.btn.ghost { background: rgba(255,255,255,0.05); }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: 0.5; }

.ring { display: flex; align-items: center; gap: 10px; }
.ring svg { width: 46px; height: 46px; transform: rotate(-90deg); }
.ring .pct { font-size: 12px; color: rgba(255,255,255,0.86); font-weight: 680; }

/* -------------------------------------------------------------- episodes */
.season { margin-top: 20px; }
.season-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--muted); font-size: 12px; }
.season-head b { color: var(--text); font-size: 13px; }
.grid-eps { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 9px; }
.ep-tile {
  position: relative;
  aspect-ratio: 1;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card);
  display: grid; place-items: center;
  font-weight: 700; font-size: 14px;
  color: var(--text);
  transition: all .16s ease;
}
.ep-tile:active { transform: scale(0.94); }
.ep-tile.seen { background: rgba(52, 211, 153, 0.10); border-color: rgba(52,211,153,0.3); color: #9df0cd; }
.ep-tile.seen::after {
  content: ""; position: absolute; top: 7px; right: 7px;
  width: 5px; height: 5px; border-radius: 999px; background: var(--good);
}
.ep-tile.next { border-color: rgba(124,92,255,0.55); box-shadow: 0 0 0 1px rgba(124,92,255,0.28) inset; }

/* --------------------------------------------------------------- sheet */
.sheet-backdrop {
  position: fixed; inset: 0; background: rgba(4, 6, 11, 0.72);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  z-index: 60; opacity: 0; transition: opacity .2s ease;
}
.sheet-backdrop.show { opacity: 1; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 61;
  background: #0d1018;
  border-top: 1px solid var(--border-hi);
  border-radius: 24px 24px 0 0;
  padding: 10px 18px calc(20px + var(--safe-b));
  transform: translateY(102%);
  transition: transform .26s cubic-bezier(.22,.9,.24,1);
  max-width: 720px; margin: 0 auto;
}
.sheet.show { transform: translateY(0); }
.sheet .handle { width: 40px; height: 4px; border-radius: 99px; background: rgba(255,255,255,0.22); margin: 4px auto 14px; }
.sheet .head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.sheet .num { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.sheet .sub { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.sheet .tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0; }
.sheet .grid-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 14px; }
.sheet .navrow { display: flex; gap: 9px; margin-top: 9px; }

/* ----------------------------------------------------------------- lists */
.row-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,0.055);
}
.row-item:last-child { border-bottom: 0; }
.rank { width: 22px; text-align: center; color: var(--faint); font-size: 12px; font-weight: 700; }
.row-item .grow { flex: 1; min-width: 0; }
.row-item .name { font-size: 13.5px; font-weight: 600; }
.row-item .sub { font-size: 11.5px; color: var(--muted); }
.row-item .value { font-size: 12.5px; color: var(--accent-2); font-weight: 680; }

.bars { display: flex; align-items: flex-end; gap: 3px; height: 64px; margin-top: 10px; }
.bars i { flex: 1; background: linear-gradient(180deg, var(--accent), rgba(34,211,238,0.35)); border-radius: 3px 3px 2px 2px; min-height: 2px; opacity: .9; }

/* --------------------------------------------------------------- profile */
.profile-head { display: flex; align-items: center; gap: 14px; margin: 6px 0 18px; }
.avatar {
  width: 62px; height: 62px; border-radius: 20px;
  display: grid; place-items: center; font-size: 22px; font-weight: 800;
  background: linear-gradient(140deg, rgba(124,92,255,0.95), rgba(34,211,238,0.7));
  color: #080b12;
}
.profile-head .name { font-size: 19px; font-weight: 720; }
.profile-head .sub { color: var(--muted); font-size: 12.5px; }

.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tile { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 13px; }
.tile .k { font-size: 11px; color: var(--muted); }
.tile .v { font-size: 19px; font-weight: 750; letter-spacing: -0.02em; margin-top: 2px; }
.tile .v small { font-size: 11px; font-weight: 500; color: var(--muted); }

.badges { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.badge {
  font-size: 11.5px; padding: 6px 10px; border-radius: 999px;
  background: rgba(124,92,255,0.12); border: 1px solid rgba(124,92,255,0.28);
  color: #cfc6ff;
}

/* ------------------------------------------------------------- franchise */
.fr-box {
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(124, 92, 255, 0.16), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  padding: 15px;
  overflow: hidden;
}
.fr-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 13px; }
.fr-badge {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.09em;
  padding: 4px 8px; border-radius: 999px;
  background: rgba(124, 92, 255, 0.18); border: 1px solid rgba(124, 92, 255, 0.34);
  color: #d9d1ff; white-space: nowrap;
}
.fr-name { font-size: 14.5px; font-weight: 700; letter-spacing: -0.01em; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; }
.fr-progress {
  margin-left: auto; font-size: 11px; color: var(--muted);
  background: rgba(0,0,0,0.25); border: 1px solid var(--border);
  padding: 3px 8px; border-radius: 999px; white-space: nowrap;
}
.fr-count { font-size: 11.5px; color: var(--muted); }

.fr-list { display: flex; flex-direction: column; gap: 12px; }
.fr-current {
  display: flex; flex-direction: column; gap: 2px;
  padding: 11px 13px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.20), rgba(34, 211, 238, 0.09));
  border: 1px solid rgba(124, 92, 255, 0.32);
}
.fr-here { font-size: 10px; text-transform: uppercase; letter-spacing: 0.09em; color: #c9bfff; }
.fr-current .fr-title { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; }
.fr-current .fr-sub { font-size: 11.5px; color: rgba(233, 237, 246, 0.72); }

.fr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 9px; }
.fr-part {
  display: flex; align-items: center; gap: 10px; text-align: left;
  padding: 8px; border-radius: 14px; width: 100%;
  background: rgba(255, 255, 255, 0.045); border: 1px solid var(--border);
  transition: transform .15s ease, background .18s ease, border-color .18s ease;
}
.fr-part:active { transform: scale(0.975); background: rgba(255,255,255,0.075); border-color: var(--border-hi); }
.fr-art {
  position: relative; flex: 0 0 auto;
  width: 44px; height: 60px; border-radius: 9px; overflow: hidden;
  background-size: cover; background-position: center;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,0.10);
}
.fr-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fr-step { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--accent-2); font-weight: 650; }
.fr-part .fr-title {
  font-size: 12.5px; font-weight: 620; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.fr-part .fr-sub { font-size: 10.5px; color: var(--muted); }
.fr-empty { font-size: 11.5px; color: var(--muted); padding: 6px 2px; }

/* diagnostica dei deep link (solo con ?debug_start=1) */
.debug-start {
  position: fixed; left: 8px; right: 8px; bottom: 84px; z-index: 9999;
  padding: 9px 11px; border-radius: 10px; font-size: 10.5px; line-height: 1.5;
  background: rgba(0, 0, 0, 0.88); color: #d8ffe9; border: 1px solid rgba(34, 211, 238, 0.45);
  word-break: break-all; font-family: ui-monospace, monospace;
}

/* ------------------------------------------------------------- novità */
.new-dot {
  margin-left: auto; margin-right: 6px;
  font-size: 9px; color: #7c5cff;
  text-shadow: 0 0 8px rgba(124, 92, 255, 0.9);
}
.news-banner {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  padding: 11px 14px; border-radius: 14px; cursor: pointer;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.20), rgba(34, 211, 238, 0.08));
  border: 1px solid rgba(124, 92, 255, 0.35);
}
.news-banner b { font-size: 13.5px; }

/* «Continua a guardare» resta in alto mentre scorri */
.sticky-continue {
  position: sticky; top: 0; z-index: 12;
  padding-top: 8px; padding-bottom: 10px; margin-top: 10px;
  background: linear-gradient(180deg, rgba(8, 10, 16, 0.97) 55%, rgba(8, 10, 16, 0.62) 88%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}

/* progresso della saga */
.fr-saga { margin: 0 0 13px; }
.fr-saga-bar { height: 5px; border-radius: 99px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.fr-saga-bar > i { display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #7c5cff, #22d3ee); }
.fr-saga-label { font-size: 10.5px; color: var(--muted); margin-top: 5px; }

.share-btn, .anilist-btn { min-width: 44px; }
.share-btn { color: #c9d4ff; }

/* ------------------------------------------------------------------ nav */
.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  height: calc(var(--nav-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  display: flex; align-items: stretch;
  background: rgba(9, 11, 17, 0.92);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; font-size: 10px; color: var(--faint); transition: color .18s ease;
}
.nav a svg { width: 20px; height: 20px; }
.nav a.active { color: var(--text); }
.nav a.active svg { color: var(--accent-2); }

/* --------------------------------------------------------------- states */
.skel {
  border-radius: var(--radius);
  background: linear-gradient(100deg, rgba(255,255,255,0.05) 20%, rgba(255,255,255,0.10) 38%, rgba(255,255,255,0.05) 56%);
  background-size: 220% 100%;
  animation: shimmer 1.25s linear infinite;
}
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.skel.poster { aspect-ratio: 3 / 4.15; }
.skel.line { height: 14px; border-radius: 8px; }

.empty { text-align: center; padding: 44px 20px; color: var(--muted); }
.empty .emoji { font-size: 34px; display: block; margin-bottom: 10px; opacity: .85; }
.empty b { color: var(--text); display: block; margin-bottom: 5px; font-size: 15px; }
.empty p { margin: 0; font-size: 12.5px; line-height: 1.5; }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 20px + var(--safe-b));
  transform: translate(-50%, 16px);
  background: #161a24; border: 1px solid var(--border-hi);
  color: var(--text); font-size: 12.5px; padding: 10px 15px; border-radius: 999px;
  box-shadow: 0 16px 34px -18px #000; z-index: 80; opacity: 0;
  transition: opacity .2s ease, transform .2s ease; pointer-events: none; max-width: 86vw;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------------ animazioni */
.page { animation: pageIn .26s cubic-bezier(.22,.9,.24,1); }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .page, .sheet, .sheet-backdrop, .toast { animation: none !important; transition: none !important; }
}
