/* ============================================================
   CLASSEMENT DES PNJ — fiche de personnage / dialogue RPG
   dark · mono pour l'UI et les chiffres · sans-serif pour le texte
   ============================================================ */

:root {
  --bg: #0a0c10;
  --bg-2: #0e1117;
  --panel: #12151d;
  --panel-2: #171b25;
  --border: #252b38;
  --border-lit: #39415427;
  --text: #e9e6dd;
  --muted: #8b91a5;
  --faint: #5c6275;
  --gold: #edb64a;
  --gold-dim: #edb64a2b;
  --green: #71c882;
  --red: #e0584b;
  --blue: #6fa8dc;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --sans: 'Instrument Sans', system-ui, sans-serif;
  --r: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100dvh;
  background-image:
    radial-gradient(1200px 500px at 50% -200px, #151a2666, transparent),
    repeating-linear-gradient(0deg, transparent 0 39px, #ffffff04 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, #ffffff04 39px 40px);
}

::selection { background: var(--gold-dim); }

.shell {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 14px calc(90px + env(safe-area-inset-bottom));
  min-height: 100dvh;
}

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }

/* ---------------- typographie utilitaire ---------------- */

.mono { font-family: var(--mono); }
.muted { color: var(--muted); }

.sec-title {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 26px 2px 10px;
}
.sec-title::before { content: '►'; color: var(--gold); font-size: 9px; }
.sec-title::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--border), transparent); }

@keyframes blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }
.cursor { display: inline-block; width: 0.55em; height: 1em; background: var(--gold); vertical-align: -0.12em; animation: blink 1.1s steps(1) infinite; }

/* ---------------- panneaux façon boîte de dialogue ---------------- */

.panel {
  position: relative;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 14px;
}
.frame::before, .frame::after {
  content: '';
  position: absolute;
  width: 12px; height: 12px;
  border-color: var(--gold);
  border-style: solid;
  opacity: 0.85;
  pointer-events: none;
}
.frame::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; border-top-left-radius: var(--r); }
.frame::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; border-bottom-right-radius: var(--r); }

/* ---------------- topbar ---------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 2px 10px;
  background: linear-gradient(180deg, var(--bg) 75%, transparent);
}
.logo {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.14em;
}
.logo small { color: var(--gold); }
.top-me {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 5px 10px; border-radius: 999px;
}

/* ---------------- navigation basse ---------------- */

.bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  padding-bottom: env(safe-area-inset-bottom);
  background: linear-gradient(180deg, transparent, #07080bd9 30%, #07080b);
  backdrop-filter: blur(8px);
}
.bottomnav-inner {
  display: grid;
  grid-template-columns: 1fr 1fr auto 1fr 1fr;
  align-items: center;
  width: 100%;
  max-width: 600px;
  padding: 8px 10px 10px;
}
.nav-btn {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em;
  color: var(--faint);
  padding: 6px 0;
  transition: color 0.15s;
}
.nav-btn .ic { font-size: 17px; line-height: 1; filter: grayscale(1) opacity(0.6); transition: filter 0.15s; }
.nav-btn.active { color: var(--gold); }
.nav-btn.active .ic { filter: none; }

.fab {
  width: 54px; height: 54px;
  margin: -18px 8px 0;
  border-radius: 16px;
  background: linear-gradient(160deg, #ffd27a, var(--gold) 60%, #c98f2c);
  color: #14100a;
  font-family: var(--mono); font-size: 26px; font-weight: 700;
  box-shadow: 0 6px 22px #edb64a55, inset 0 1px 0 #ffe9bb;
  display: grid; place-items: center;
  transition: transform 0.12s;
}
.fab:active { transform: scale(0.93); }

/* ---------------- écran d'authentification ---------------- */

.auth {
  min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: center;
  max-width: 380px; margin: 0 auto; padding: 30px 20px 60px;
}
.auth-logo {
  font-family: var(--mono);
  text-align: center;
  margin-bottom: 6px;
}
.auth-logo .t1 { font-size: 12px; letter-spacing: 0.5em; color: var(--muted); text-transform: uppercase; }
.auth-logo .t2 { font-size: 30px; font-weight: 700; letter-spacing: 0.1em; margin-top: 2px; }
.auth-logo .t2 em { font-style: normal; color: var(--gold); }
.auth-sub { text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 28px; }

.auth-tabs {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6px; margin-bottom: 18px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px; padding: 5px;
}
.auth-tabs button {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em;
  padding: 9px 4px; border-radius: 7px; color: var(--muted);
}
.auth-tabs button.active { background: var(--panel-2); color: var(--gold); box-shadow: inset 0 0 0 1px var(--border); }

/* ---------------- champs ---------------- */

.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}
.field input[type=text], .field input[type=password], .field input[type=date],
.field input[type=url], .field select, .field textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 11px 12px;
  font-family: var(--mono);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
  color-scheme: dark;
}
.field textarea { font-family: var(--sans); resize: vertical; min-height: 74px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }

.hint { font-size: 12px; color: var(--faint); margin-top: 5px; }

/* ---------------- boutons ---------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: 0.08em;
  border-radius: 9px; padding: 12px 16px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  transition: transform 0.1s, border-color 0.15s;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(160deg, #ffd27a, var(--gold) 55%, #cf9630);
  border-color: transparent;
  color: #14100a;
  box-shadow: 0 4px 18px #edb64a3d;
}
.btn-ghost { background: transparent; color: var(--muted); }
.btn-danger { color: var(--red); border-color: #e0584b44; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

/* ---------------- segmented control ---------------- */

.seg {
  display: inline-flex;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 4px;
  gap: 3px;
}
.seg button {
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  padding: 6px 12px; border-radius: 6px; color: var(--muted);
}
.seg button.active { background: var(--gold-dim); color: var(--gold); }

/* ---------------- PNJ du mois ---------------- */

.motm {
  margin-top: 14px;
  display: flex; align-items: center; gap: 14px;
  overflow: hidden;
}
.motm::before { border-color: var(--gold); }
.motm .halo {
  position: relative;
  width: 58px; height: 58px; flex: none;
  display: grid; place-items: center;
  font-size: 30px;
  background: radial-gradient(circle, #edb64a2e, transparent 70%);
  border: 1px dashed #edb64a66;
  border-radius: 50%;
}
.motm .halo::after {
  content: '👑';
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%) rotate(-12deg);
  font-size: 17px;
  filter: drop-shadow(0 2px 6px #edb64a88);
}
.motm-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.24em; color: var(--gold); text-transform: uppercase; }
.motm-name { font-family: var(--mono); font-size: 19px; font-weight: 700; margin: 1px 0; }
.motm-sub { font-size: 12.5px; color: var(--muted); }

/* ---------------- classement ---------------- */

.member-card {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.1s;
}
.member-card:active { transform: scale(0.985); }
.member-card.first {
  border-color: #edb64a77;
  box-shadow: 0 0 0 1px #edb64a33, 0 8px 30px #edb64a14;
}
.rank-num {
  font-family: var(--mono); font-size: 20px; font-weight: 700;
  color: var(--faint); width: 34px; text-align: center;
}
.member-card.first .rank-num { color: var(--gold); }
.rank-crown { font-size: 13px; display: block; line-height: 1; margin-bottom: -2px; }

.avatar {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  font-size: 22px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.member-card.first .avatar { border-color: #edb64a88; background: #edb64a14; }

.member-main { min-width: 0; }
.member-name { font-family: var(--mono); font-weight: 600; font-size: 14.5px; display: flex; align-items: center; gap: 7px; }
.badge-title {
  font-family: var(--mono); font-size: 9px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid #edb64a3d;
  padding: 2px 7px; border-radius: 999px;
  white-space: nowrap;
}
.member-cat { font-size: 11.5px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.scorebar { margin-top: 6px; height: 5px; background: var(--bg-2); border-radius: 99px; overflow: hidden; border: 1px solid var(--border); }
.scorebar i { display: block; height: 100%; background: linear-gradient(90deg, #8a6420, var(--gold)); border-radius: 99px; transition: width 0.5s cubic-bezier(.2,.8,.2,1); }

.member-score { text-align: right; }
.member-score .pts { font-family: var(--mono); font-size: 21px; font-weight: 700; color: var(--gold); }
.member-score .lbl { font-family: var(--mono); font-size: 9px; letter-spacing: 0.18em; color: var(--faint); text-transform: uppercase; }

/* ---------------- carte d'action (boîte de dialogue) ---------------- */

.action-card { margin-top: 12px; padding: 0; overflow: hidden; }
.action-card.rejected { opacity: 0.45; filter: grayscale(0.7); }

.action-head {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 13px 0;
}
.action-head .avatar { width: 34px; height: 34px; font-size: 18px; border-radius: 10px; }
.action-who { flex: 1; min-width: 0; }
.action-name { font-family: var(--mono); font-size: 13.5px; font-weight: 600; }
.action-name .by { color: var(--faint); font-weight: 400; font-size: 11px; }
.action-date { font-family: var(--mono); font-size: 10.5px; color: var(--faint); letter-spacing: 0.06em; }

.status-chip {
  font-family: var(--mono); font-size: 9px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 5px; white-space: nowrap;
}
.status-chip.pending { color: var(--gold); background: var(--gold-dim); border: 1px solid #edb64a3d; }
.status-chip.validated { color: var(--green); background: #71c88218; border: 1px solid #71c88240; }
.status-chip.rejected { color: var(--red); background: #e0584b18; border: 1px solid #e0584b40; }

.action-body { padding: 10px 13px 12px; }
.action-title { font-family: var(--mono); font-size: 15px; font-weight: 700; line-height: 1.35; }
.action-desc { color: #c6c3ba; font-size: 14px; margin-top: 5px; }
.action-photo { margin-top: 10px; border-radius: 8px; border: 1px solid var(--border); overflow: hidden; }
.action-photo img { width: 100%; max-height: 320px; object-fit: cover; }

.action-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 10px; }
.cat-chip {
  font-family: var(--mono); font-size: 10.5px;
  color: var(--blue);
  background: #6fa8dc14;
  border: 1px solid #6fa8dc33;
  padding: 3px 9px; border-radius: 999px;
  white-space: nowrap;
}
.gravity { font-size: 13px; letter-spacing: 2px; }
.gravity .off { opacity: 0.18; filter: grayscale(1); }
.gravity-pts { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }

/* votes */
.vote-row {
  display: flex; align-items: center; gap: 8px;
  border-top: 1px dashed var(--border);
  padding: 10px 13px;
}
.vote-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; flex: 1; }
.vote-btn {
  font-family: var(--mono); font-size: 11.5px; font-weight: 600;
  padding: 7px 12px; border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--muted);
}
.vote-btn.up.on { color: var(--green); border-color: #71c88266; background: #71c88214; }
.vote-btn.down.on { color: var(--red); border-color: #e0584b66; background: #e0584b14; }

/* réactions */
.react-row { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 13px 12px; }
.react-btn {
  font-size: 13px;
  font-family: var(--mono);
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  transition: transform 0.1s, border-color 0.15s;
}
.react-btn:active { transform: scale(1.15); }
.react-btn.on { border-color: #edb64a66; background: var(--gold-dim); }
.react-btn .n { font-size: 10.5px; color: var(--muted); margin-left: 3px; }
.react-btn.on .n { color: var(--gold); }

/* anonyme */
.anon-name { color: var(--gold); }
.anon-box {
  margin: 0 13px 12px;
  border: 1px dashed #edb64a55;
  background: #edb64a0a;
  border-radius: 8px;
  padding: 10px 11px;
}
.anon-box .q { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--gold); text-transform: uppercase; margin-bottom: 8px; }
.anon-guess-row { display: flex; gap: 7px; }
.anon-guess-row select {
  flex: 1;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 7px; padding: 8px 10px;
  font-family: var(--mono); font-size: 12.5px;
  color-scheme: dark;
}
.guess-line { font-size: 12.5px; color: var(--muted); margin-top: 7px; }
.guess-line b { color: var(--text); font-weight: 600; }
.guess-line.correct { color: var(--green); }
.reveal-note { font-size: 12px; color: var(--gold); margin-top: 7px; font-family: var(--mono); }

.action-tools { display: flex; gap: 10px; padding: 0 13px 11px; }
.tool-link { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--faint); text-transform: uppercase; }
.tool-link:hover { color: var(--muted); }
.tool-link.danger { color: #e0584b99; }

/* ---------------- profil ---------------- */

.profile-head { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.profile-head .avatar { width: 60px; height: 60px; font-size: 32px; border-radius: 16px; }
.profile-name { font-family: var(--mono); font-size: 21px; font-weight: 700; }
.profile-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px; margin-top: 12px;
}
.pstat { text-align: center; padding: 10px 4px; }
.pstat .v { font-family: var(--mono); font-size: 17px; font-weight: 700; color: var(--gold); }
.pstat .k { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.14em; color: var(--faint); text-transform: uppercase; margin-top: 2px; }

.back-btn {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  color: var(--muted); text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 0;
}

/* ---------------- stats ---------------- */

.stat-card { margin-top: 10px; display: flex; align-items: center; gap: 13px; }
.stat-ic { font-size: 24px; width: 44px; height: 44px; flex: none; display: grid; place-items: center; background: var(--bg-2); border: 1px solid var(--border); border-radius: 11px; }
.stat-k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; color: var(--muted); text-transform: uppercase; }
.stat-v { font-family: var(--mono); font-size: 16px; font-weight: 700; margin-top: 1px; }
.stat-v small { font-size: 11.5px; font-weight: 400; color: var(--muted); font-family: var(--sans); }

.chart-wrap { margin-top: 10px; padding: 14px 10px 6px; }
.chart-wrap svg { width: 100%; height: auto; display: block; }

/* ---------------- gestion / menu ---------------- */

.menu-row {
  display: flex; align-items: center; gap: 12px;
  margin-top: 10px;
  cursor: pointer;
}
.menu-row .grow { flex: 1; min-width: 0; }
.menu-row .name { font-family: var(--mono); font-size: 14px; font-weight: 600; }
.menu-row .sub { font-size: 12px; color: var(--muted); }
.admin-tag { font-family: var(--mono); font-size: 9px; color: var(--blue); border: 1px solid #6fa8dc44; padding: 1px 6px; border-radius: 4px; letter-spacing: 0.1em; }

/* ---------------- modal / bottom sheet ---------------- */

.overlay {
  position: fixed; inset: 0; z-index: 100;
  background: #05060acc;
  backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; justify-content: center;
  animation: fadein 0.18s ease;
}
@keyframes fadein { from { opacity: 0; } }
.sheet {
  width: 100%; max-width: 600px;
  max-height: 92dvh;
  overflow-y: auto;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 18px 18px 0 0;
  padding: 18px 18px calc(24px + env(safe-area-inset-bottom));
  animation: slideup 0.22s cubic-bezier(.2,.9,.3,1);
}
@keyframes slideup { from { transform: translateY(40px); opacity: 0.4; } }
.sheet-grab { width: 40px; height: 4px; border-radius: 99px; background: var(--border); margin: 0 auto 14px; }
.sheet-title {
  font-family: var(--mono); font-size: 13px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.sheet-title::before { content: '►'; font-size: 9px; }

/* sélecteurs à puces */
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  font-family: var(--mono); font-size: 12px;
  padding: 8px 12px; border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--muted);
  transition: border-color 0.12s, color 0.12s;
}
.chip.on { border-color: var(--gold); color: var(--gold); background: var(--gold-dim); }

.gravity-pick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.gravity-pick button {
  padding: 9px 0; border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 16px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.gravity-pick button .n { font-family: var(--mono); font-size: 10px; color: var(--faint); }
.gravity-pick button.on { border-color: var(--gold); background: var(--gold-dim); }
.gravity-pick button.on .n { color: var(--gold); }

.toggle-row {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--border); border-radius: 9px;
  background: var(--bg);
  padding: 11px 12px;
  cursor: pointer;
}
.toggle-row .grow { flex: 1; }
.toggle-row .t { font-family: var(--mono); font-size: 12.5px; font-weight: 600; }
.toggle-row .s { font-size: 11.5px; color: var(--muted); }
.switch {
  width: 40px; height: 23px; flex: none;
  border-radius: 99px;
  background: var(--border);
  position: relative;
  transition: background 0.15s;
}
.switch::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--muted);
  transition: transform 0.15s, background 0.15s;
}
.toggle-row.on .switch { background: var(--gold-dim); }
.toggle-row.on .switch::after { transform: translateX(17px); background: var(--gold); }

.avatar-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.avatar-pick button {
  width: 40px; height: 40px; font-size: 20px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg);
  display: grid; place-items: center;
}
.avatar-pick button.on { border-color: var(--gold); background: var(--gold-dim); }

.photo-preview { position: relative; margin-top: 8px; border-radius: 9px; overflow: hidden; border: 1px solid var(--border); }
.photo-preview img { max-height: 180px; width: 100%; object-fit: cover; }
.photo-preview button {
  position: absolute; top: 6px; right: 6px;
  background: #05060acc; border-radius: 7px;
  font-family: var(--mono); font-size: 11px; padding: 4px 8px;
  color: var(--red);
}
.file-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px dashed var(--border); border-radius: 9px;
  background: var(--bg);
  padding: 12px; width: 100%;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
}

/* ---------------- divers ---------------- */

.empty {
  text-align: center; color: var(--faint);
  font-family: var(--mono); font-size: 12px;
  padding: 34px 10px;
  letter-spacing: 0.08em;
}
.empty .big { font-size: 30px; margin-bottom: 10px; filter: grayscale(0.6); }

.toast {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 200;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  color: var(--text);
  font-family: var(--mono); font-size: 12.5px;
  padding: 11px 16px; border-radius: 9px;
  box-shadow: 0 10px 30px #00000088;
  max-width: 90vw;
  animation: toastin 0.2s ease;
}
.toast.error { border-left-color: var(--red); }
@keyframes toastin { from { transform: translate(-50%, 10px); opacity: 0; } }

.stagger > * { animation: rise 0.35s both cubic-bezier(.2,.8,.3,1); }
.stagger > *:nth-child(1) { animation-delay: 0.02s; }
.stagger > *:nth-child(2) { animation-delay: 0.06s; }
.stagger > *:nth-child(3) { animation-delay: 0.1s; }
.stagger > *:nth-child(4) { animation-delay: 0.14s; }
.stagger > *:nth-child(5) { animation-delay: 0.18s; }
.stagger > *:nth-child(6) { animation-delay: 0.22s; }
@keyframes rise { from { transform: translateY(10px); opacity: 0; } }

@media (min-width: 640px) {
  body { font-size: 15.5px; }
  .shell { border-left: 1px solid var(--border-lit); border-right: 1px solid var(--border-lit); }
  .overlay { align-items: center; }
  .sheet { border-radius: 18px; border-bottom: 1px solid var(--border); max-height: 86vh; }
}
