/* =====================================================================
   CEJM Quest — feuille de style unique
   Claymorphisme : matière épaisse, angles très arrondis, boutons à lèvre.
   Chaque thème du programme porte sa couleur ; la couleur est donc une
   information, jamais une décoration.
   ===================================================================== */

:root {
  color-scheme: light dark;

  --t1: #2f6bff;   --t1-lip: #1c46b5;   --t1-soft: #e4ecff;
  --t2: #8b5cf6;   --t2-lip: #6435d4;   --t2-soft: #efe8ff;
  --t3: #10b981;   --t3-lip: #0a7f5a;   --t3-soft: #dcf7ec;

  --gold: #f5a524;  --gold-lip: #b4740c;
  --ok: #16a34a;    --ok-lip: #11803a;   --ok-soft: #dff7e7;
  --ko: #ef4444;    --ko-lip: #b32626;   --ko-soft: #fde8e8;

  --ink: #131a33;
  --ink-2: #4d5878;
  --ink-3: #7c86a4;
  --bg: #eef3ff;
  --surface: #ffffff;
  --surface-2: #f6f9ff;
  --line: #e2e9fb;

  --r-lg: 30px;
  --r-md: 20px;
  --r-sm: 14px;

  --clay: 0 10px 0 rgba(19, 26, 51, .05), 0 22px 45px -26px rgba(19, 26, 51, .55);
  --clay-sm: 0 5px 0 rgba(19, 26, 51, .05), 0 12px 24px -16px rgba(19, 26, 51, .5);

  --shell: 30rem;
  --fast: 140ms;
}

@media (prefers-color-scheme: dark) {
  :root {
    --t1: #6f9bff;   --t1-lip: #2d5ec9;  --t1-soft: #1d2a4d;
    --t2: #a98bff;   --t2-lip: #6f45d6;  --t2-soft: #2a2350;
    --t3: #34d8a0;   --t3-lip: #14926c;  --t3-soft: #14372f;
    --gold: #ffc257; --gold-lip: #c07f10;
    --ok: #34d399;   --ok-lip: #109065;  --ok-soft: #14372f;
    --ko: #f87171;   --ko-lip: #b93a3a;  --ko-soft: #3d1f24;

    --ink: #eaefff;
    --ink-2: #a7b1cf;
    --ink-3: #7b86a8;
    --bg: #10162b;
    --surface: #1a2140;
    --surface-2: #212a4e;
    --line: #2d3760;

    --clay: 0 10px 0 rgba(0, 0, 0, .25), 0 22px 45px -26px rgba(0, 0, 0, .9);
    --clay-sm: 0 5px 0 rgba(0, 0, 0, .25), 0 12px 24px -16px rgba(0, 0, 0, .8);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 "Nunito", ui-rounded, "Segoe UI", system-ui, sans-serif;
  overflow-wrap: break-word;
}

h1, h2, h3, .display {
  font-family: "Baloo 2", "Nunito", ui-rounded, system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -.01em;
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }

p { margin: 0 0 .8em; }
p:last-child { margin-bottom: 0; }

button, input, select { font: inherit; color: inherit; }

:where(a, button, input, [tabindex]):focus-visible {
  outline: 3px solid var(--t1);
  outline-offset: 3px;
  border-radius: 6px;
}

svg.ic { width: 1.25em; height: 1.25em; flex: none; }

.app {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) 16px calc(88px + env(safe-area-inset-bottom));
  min-height: 100dvh;
}

.app.wide { max-width: 62rem; }

/* ---------------------------------------------------------------- */
/* Boutons : la lèvre inférieure s'écrase à l'appui                  */
/* ---------------------------------------------------------------- */

.btn {
  --c: var(--t1);
  --lip: var(--t1-lip);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  width: 100%;
  min-height: 52px;
  padding: 13px 20px;
  border: 0;
  border-radius: var(--r-md);
  background: var(--c);
  color: #fff;
  font-family: "Baloo 2", "Nunito", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 5px 0 var(--lip);
  transition: transform var(--fast) ease, box-shadow var(--fast) ease, filter var(--fast) ease;
}

.btn:hover:not(:disabled) { filter: brightness(1.06); }

.btn:active:not(:disabled) {
  transform: translateY(5px);
  box-shadow: 0 0 0 var(--lip);
}

.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: 0 5px 0 var(--lip); }

.btn.gold  { --c: var(--gold); --lip: var(--gold-lip); color: #40270a; }
.btn.green { --c: var(--t3);   --lip: var(--t3-lip); }
.btn.violet{ --c: var(--t2);   --lip: var(--t2-lip); }
.btn.danger{ --c: var(--ko);   --lip: var(--ko-lip); }

.btn.ghost {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 5px 0 var(--line);
}
.btn.ghost:active:not(:disabled) { box-shadow: 0 0 0 var(--line); }

.btn.small { min-height: 42px; padding: 8px 14px; font-size: .95rem; width: auto; }

.btn-row { display: flex; gap: 10px; }
.btn-row .btn { width: 100%; }

/* ---------------------------------------------------------------- */
/* Surfaces                                                          */
/* ---------------------------------------------------------------- */

.card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--clay);
}

.card + .card { margin-top: 16px; }

.card.flat { box-shadow: var(--clay-sm); border-radius: var(--r-md); padding: 16px; }

.muted { color: var(--ink-2); }
.tiny { font-size: .85rem; }
.center { text-align: center; }
.stack > * + * { margin-top: 14px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------------------------------------------------------- */
/* En-tête : XP, niveau, série                                       */
/* ---------------------------------------------------------------- */

.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.avatar {
  width: 48px; height: 48px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 16px;
  background: var(--t1-soft);
  color: var(--t1);
  font-family: "Baloo 2", system-ui, sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  box-shadow: var(--clay-sm);
}

.xpbar {
  height: 12px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
  margin-top: 5px;
}

.xpbar > i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--gold), #ffca6e);
  transition: width 700ms cubic-bezier(.2, .8, .3, 1);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  padding: 6px 12px;
  border-radius: 99px;
  background: var(--surface);
  box-shadow: var(--clay-sm);
  font-weight: 800;
  font-size: .92rem;
  white-space: nowrap;
}

.pill.flame { color: var(--gold); }
.pill.on    { background: var(--gold); color: #40270a; }

/* ---------------------------------------------------------------- */
/* Parcours des chapitres                                            */
/* ---------------------------------------------------------------- */

.theme-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 28px 4px 4px;
}

.theme-head .num {
  font-family: "Baloo 2", system-ui, sans-serif;
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1;
  color: var(--tc);
}

.theme-head h2 { font-size: 1.1rem; }

.path {
  position: relative;
  padding: 18px 0 6px;
}

/* Le fil qui relie les chapitres : il rend le parcours lisible d'un coup d'œil. */
.path::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 4px;
  margin-left: -2px;
  background: repeating-linear-gradient(var(--line) 0 10px, transparent 10px 20px);
  border-radius: 4px;
}

.node {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.node:nth-child(even) { flex-direction: row-reverse; text-align: right; }

.node .bubble {
  position: relative;
  width: 74px; height: 74px;
  flex: none;
  border: 0;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  background: var(--tc);
  color: #fff;
  font-family: "Baloo 2", system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 0 var(--tlip), 0 16px 30px -18px rgba(19, 26, 51, .8);
  transition: transform var(--fast) ease, box-shadow var(--fast) ease;
}

.node .bubble:active {
  transform: translateY(6px);
  box-shadow: 0 0 0 var(--tlip), 0 8px 16px -12px rgba(19, 26, 51, .8);
}

.node .bubble.fresh { background: var(--surface); color: var(--tc); box-shadow: 0 6px 0 var(--line); }

/* Anneau de progression dessiné en dégradé conique : pas d'image, pas de SVG. */
.node .ring {
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  background: conic-gradient(var(--gold) calc(var(--p) * 1%), transparent 0);
  -webkit-mask: radial-gradient(circle, transparent 0 calc(50% - 5px), #000 calc(50% - 5px));
  mask: radial-gradient(circle, transparent 0 calc(50% - 5px), #000 calc(50% - 5px));
  pointer-events: none;
}

.node .crown {
  position: absolute;
  top: -10px; right: -8px;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: #40270a;
  box-shadow: 0 3px 0 var(--gold-lip);
}

.node .label { flex: 1; min-width: 0; }
.node .label h3 { font-size: 1rem; }
.node .label p { margin: 2px 0 0; font-size: .85rem; color: var(--ink-2); }

/* ---------------------------------------------------------------- */
/* Feuille modale                                                    */
/* ---------------------------------------------------------------- */

.sheet-back {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(10, 15, 33, .55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  animation: fade 180ms ease both;
}

.sheet {
  width: 100%;
  max-width: var(--shell);
  max-height: 88dvh;
  overflow-y: auto;
  padding: 22px 20px calc(22px + env(safe-area-inset-bottom));
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: 0 -10px 60px -20px rgba(0, 0, 0, .6);
  animation: rise 260ms cubic-bezier(.2, .9, .3, 1) both;
}

.sheet .grip {
  width: 44px; height: 5px;
  margin: -6px auto 16px;
  border-radius: 99px;
  background: var(--line);
}

@keyframes fade { from { opacity: 0 } }
@keyframes rise { from { transform: translateY(28px); opacity: 0 } }

/* ---------------------------------------------------------------- */
/* Quiz                                                              */
/* ---------------------------------------------------------------- */

.quiz-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }

.progress {
  flex: 1;
  height: 14px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
}

.progress > i {
  display: block; height: 100%;
  border-radius: 99px;
  background: var(--t3);
  transition: width 300ms ease;
}

.timer {
  min-width: 52px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 99px;
  background: var(--surface);
  box-shadow: var(--clay-sm);
}

.timer.urgent { background: var(--ko); color: #fff; animation: pulse 700ms ease-in-out infinite; }

@keyframes pulse { 50% { transform: scale(1.08) } }

.question {
  padding: 24px 20px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--clay);
  margin-bottom: 18px;
}

.question .kicker {
  font-size: .82rem;
  font-weight: 700;
  color: var(--tc, var(--t1));
  margin-bottom: 8px;
}

.question .text {
  font-family: "Baloo 2", system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

.choices { display: grid; gap: 10px; }

.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  text-align: left;
  border: 0;
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--line);
  transition: transform var(--fast) ease, box-shadow var(--fast) ease, background var(--fast) ease;
}

.choice:hover:not(:disabled) { background: var(--surface-2); }
.choice:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 0 0 var(--line); }
.choice:disabled { cursor: default; }

.choice .key {
  width: 30px; height: 30px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-family: "Baloo 2", system-ui, sans-serif;
  font-weight: 800;
  font-size: .95rem;
}

.choice.picked  { background: var(--t1-soft); box-shadow: 0 4px 0 var(--t1); }
.choice.right   { background: var(--ok-soft); box-shadow: 0 4px 0 var(--ok); }
.choice.right .key  { background: var(--ok); color: #fff; }
.choice.wrong   { background: var(--ko-soft); box-shadow: 0 4px 0 var(--ko); }
.choice.wrong .key  { background: var(--ko); color: #fff; }

.verdict {
  position: sticky;
  bottom: 12px;
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--r-lg);
  box-shadow: var(--clay);
  animation: rise 220ms cubic-bezier(.2, .9, .3, 1) both;
}

.verdict.ok { background: var(--ok-soft); }
.verdict.ko { background: var(--ko-soft); }

.verdict .head {
  display: flex; align-items: center; gap: 8px;
  font-family: "Baloo 2", system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.verdict.ok .head { color: var(--ok-lip); }
.verdict.ko .head { color: var(--ko-lip); }

@media (prefers-color-scheme: dark) {
  .verdict.ok .head { color: var(--ok); }
  .verdict.ko .head { color: var(--ko); }
}

.verdict p { font-size: .95rem; }

/* Fiches de révision : la carte se retourne dans l'espace. */
.flash {
  perspective: 1400px;
  margin-bottom: 18px;
}

.flash .inner {
  position: relative;
  min-height: 260px;
  transform-style: preserve-3d;
  transition: transform 520ms cubic-bezier(.3, .8, .3, 1);
}

.flash.flipped .inner { transform: rotateY(180deg); }

.flash .face {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 10px;
  padding: 26px;
  text-align: center;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--clay);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.flash .face.back { transform: rotateY(180deg); background: var(--surface-2); }

.flash .term {
  font-family: "Baloo 2", system-ui, sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
}

/* ---------------------------------------------------------------- */
/* Résultats                                                         */
/* ---------------------------------------------------------------- */

.score-ring {
  width: 168px; height: 168px;
  margin: 6px auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--tc, var(--t3)) calc(var(--p) * 1%), var(--line) 0);
  position: relative;
}

.score-ring::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: var(--surface);
}

.score-ring .val {
  position: relative;
  font-family: "Baloo 2", system-ui, sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
}

.score-ring .val small { display: block; font-size: .9rem; font-weight: 700; color: var(--ink-2); }

.reward {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  margin-bottom: 10px;
}

.reward .big {
  font-family: "Baloo 2", system-ui, sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--gold);
}

.badge-pop {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: linear-gradient(120deg, var(--gold), #ffd489);
  color: #40270a;
  font-weight: 700;
  box-shadow: var(--clay-sm);
  animation: rise 320ms cubic-bezier(.2, .9, .3, 1) both;
}

/* ---------------------------------------------------------------- */
/* Classement                                                        */
/* ---------------------------------------------------------------- */

.rank {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--clay-sm);
  margin-bottom: 10px;
}

.rank.me { background: var(--t1-soft); box-shadow: 0 5px 0 var(--t1); }

.rank .pos {
  width: 34px; height: 34px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--surface-2);
  font-family: "Baloo 2", system-ui, sans-serif;
  font-weight: 800;
}

.rank .pos.p1 { background: var(--gold); color: #40270a; }
.rank .pos.p2 { background: #c9d3e8; color: #2b3350; }
.rank .pos.p3 { background: #e2b184; color: #48280f; }

/* ---------------------------------------------------------------- */
/* Duel                                                              */
/* ---------------------------------------------------------------- */

.duel-code {
  font-family: "Baloo 2", system-ui, sans-serif;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-indent: .22em;
  color: var(--t2);
}

.duel-score {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.duel-score .n {
  font-family: "Baloo 2", system-ui, sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
}

.duel-score .vs { color: var(--ink-3); font-weight: 800; }

.waiting-dots::after {
  content: "";
  animation: dots 1.4s steps(4, end) infinite;
}

@keyframes dots { 0% { content: "" } 25% { content: "." } 50% { content: ".." } 75% { content: "..." } }

/* ---------------------------------------------------------------- */
/* Formulaires                                                       */
/* ---------------------------------------------------------------- */

.field { margin-bottom: 14px; }

.field label {
  display: block;
  font-weight: 800;
  font-size: .9rem;
  margin-bottom: 6px;
}

.field input, .field select {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface-2);
}

.field input:focus-visible, .field select:focus-visible { border-color: var(--t1); }

.field .help { font-size: .82rem; color: var(--ink-2); margin-top: 5px; }
.field.bad input { border-color: var(--ko); }
.field .err { font-size: .85rem; color: var(--ko); font-weight: 700; margin-top: 5px; }

.code-input {
  text-align: center;
  font-family: "Baloo 2", system-ui, sans-serif !important;
  font-size: 2rem !important;
  font-weight: 800;
  letter-spacing: .3em;
  text-indent: .3em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------------- */
/* Barre de navigation                                               */
/* ---------------------------------------------------------------- */

.nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(14px);
  border-top: 2px solid var(--line);
}

.nav a {
  flex: 1;
  max-width: 6.5rem;
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 8px 4px;
  min-height: 52px;
  border-radius: var(--r-sm);
  text-decoration: none;
  color: var(--ink-3);
  font-size: .72rem;
  font-weight: 800;
}

.nav a.on { color: var(--t1); background: var(--t1-soft); }
.nav a svg { width: 22px; height: 22px; }

/* ---------------------------------------------------------------- */
/* Tableaux (espace enseignant)                                      */
/* ---------------------------------------------------------------- */

.table-wrap { overflow-x: auto; border-radius: var(--r-md); }

table { width: 100%; border-collapse: collapse; font-size: .92rem; }

th, td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

th { font-weight: 800; color: var(--ink-2); font-size: .82rem; }

td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

tr:last-child td { border-bottom: 0; }

.chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: .78rem;
  font-weight: 800;
}

.chip.ok  { background: var(--ok-soft);  color: var(--ok-lip); }
.chip.mid { background: #fff4de;         color: #a06400; }
.chip.low { background: var(--ko-soft);  color: var(--ko-lip); }

@media (prefers-color-scheme: dark) {
  .chip.ok  { color: var(--ok); }
  .chip.low { color: var(--ko); }
  .chip.mid { background: #3d3218; color: var(--gold); }
}

/* ---------------------------------------------------------------- */
/* Notifications                                                     */
/* ---------------------------------------------------------------- */

.toast-stack {
  position: fixed;
  left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 60;
  display: grid;
  gap: 8px;
  width: min(calc(100% - 32px), var(--shell));
  pointer-events: none;
}

.toast {
  padding: 12px 16px;
  border-radius: var(--r-md);
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  box-shadow: var(--clay-sm);
  animation: rise 200ms cubic-bezier(.2, .9, .3, 1) both;
}

.toast.bad { background: var(--ko); color: #fff; }

/* ---------------------------------------------------------------- */
/* États vides et chargement                                         */
/* ---------------------------------------------------------------- */

.empty {
  padding: 32px 20px;
  text-align: center;
  color: var(--ink-2);
}

.skeleton {
  border-radius: var(--r-md);
  background: linear-gradient(90deg, var(--line) 25%, var(--surface-2) 50%, var(--line) 75%);
  background-size: 300% 100%;
  animation: shimmer 1.3s linear infinite;
}

@keyframes shimmer { to { background-position: -300% 0 } }

/* ---------------------------------------------------------------- */
/* Écran de connexion                                                */
/* ---------------------------------------------------------------- */

.login-wrap {
  min-height: 100dvh;
  display: grid;
  align-content: center;
  gap: 22px;
  padding: 24px 0 40px;
}

.logo {
  width: 88px; height: 88px;
  margin: 0 auto;
  display: grid; place-items: center;
  border-radius: 28px;
  background: var(--t1);
  color: #fff;
  font-family: "Baloo 2", system-ui, sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  box-shadow: 0 8px 0 var(--t1-lip), 0 26px 50px -24px rgba(19, 26, 51, .9);
}

/* ---------------------------------------------------------------- */

@media (min-width: 48rem) {
  .app { padding-bottom: 40px; }
  .nav {
    top: 0; bottom: auto;
    border-top: 0;
    border-bottom: 2px solid var(--line);
    padding: 10px 8px;
  }
  .app { padding-top: 92px; }
  .toast-stack { bottom: 24px; }
}

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