/* Naëlya, application mobile (maquette). Plan de ligne jaune, encre, stations. */

/* ---------- Présentation ordinateur : panneau + téléphone ---------- */
.stage { min-height: 100dvh; display: grid; grid-template-columns: minmax(300px, 380px) 1fr; }
.side {
  padding: 48px 40px; display: flex; flex-direction: column; gap: 28px;
  background: var(--ink); color: #e9ebec;
}
.side .wordmark { color: var(--line); }
.side h1 { font-size: 28px; line-height: 1.15; color: #fff; }
.side p { color: #b7bcc0; font-size: 15px; max-width: 34ch; }
.scenarios { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: sc; }
.scenarios button, .scenarios a {
  width: 100%; display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 8px 12px;
  border: 0; border-radius: 10px; background: transparent; color: #e9ebec; text-align: left;
  font-weight: 600; font-size: 15px; text-decoration: none;
  transition: background-color 150ms ease, transform 160ms var(--ease-out);
}
.scenarios button:active, .scenarios a:active { transform: scale(0.98); }
.scenarios .dot { width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid var(--line); flex: none; }
.scenarios [aria-current="true"] { background: rgba(255, 255, 255, 0.08); color: #fff; }
.scenarios [aria-current="true"] .dot { background: var(--line); }
@media (hover: hover) and (pointer: fine) { .scenarios button:hover, .scenarios a:hover { background: rgba(255, 255, 255, 0.06); } }
.side .reset { margin-top: auto; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; font-size: 13px; color: #9aa0a5; }
.side .reset button { background: none; border: 0; padding: 8px 0; color: #e9ebec; text-decoration: underline; text-underline-offset: 3px; font-size: 13px; min-height: 44px; }

.device-area { display: grid; place-items: center; padding: 32px; }
.phone {
  position: relative; width: 390px; height: 844px; border-radius: 54px; overflow: hidden;
  background: var(--paper);
  box-shadow: 0 0 0 11px #0d0e0f, 0 0 0 12px #2a2d30, 0 40px 80px -30px rgba(0, 0, 0, 0.45);
  isolation: isolate;
}
.statusbar {
  position: absolute; top: 0; left: 0; right: 0; height: 50px; z-index: 40; pointer-events: none;
  display: flex; align-items: center; justify-content: space-between; padding: 6px 30px 0 34px;
  font-weight: 700; font-size: 15px;
}
.statusbar .island { position: absolute; left: 50%; top: 11px; width: 120px; height: 34px; margin-left: -60px; border-radius: 20px; background: #000; }
.statusbar svg { height: 12px; width: auto; fill: currentColor; }
.statusbar[data-tone="light"] { color: #fff; }

.phone { --top-safe: 54px; }
@media (max-width: 899px) {
  .stage { display: block; }
  .side { display: none; }
  .device-area { padding: 0; display: block; }
  .phone { width: 100%; height: 100dvh; border-radius: 0; box-shadow: none; }
  .statusbar { display: none; }
  .phone { --top-safe: max(14px, env(safe-area-inset-top)); }
}

/* ---------- Pile d'écrans ---------- */
.views { position: absolute; inset: 0; }
.view {
  position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--paper);
  visibility: hidden;
}
.view[data-active] { visibility: visible; }
.view-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 104px; scrollbar-width: thin; scrollbar-color: var(--passed) transparent; }
.view-scroll::-webkit-scrollbar { width: 6px; }
.view-scroll::-webkit-scrollbar-thumb { background: var(--passed); border-radius: 3px; }

/* Écrans poussés (carte, scanner) : glissent depuis la droite, courbe tiroir iOS */
.view.pushed { z-index: 35; transform: translateX(100%); transition: transform 240ms var(--ease-out), visibility 0s linear 240ms; box-shadow: -12px 0 30px -18px rgba(0, 0, 0, 0.35); }
.view.pushed[data-active] { transform: translateX(0); transition: transform 320ms var(--ease-drawer), visibility 0s; }
.view.pushed .view-scroll { padding-bottom: 32px; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: calc(var(--top-safe) + 4px) 12px 8px; }
.topbar h2 { font-size: 17px; }
.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  border: 0; background: transparent; color: inherit;
  transition: transform 160ms var(--ease-out), background-color 150ms ease;
}
.icon-btn:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { background: rgba(22, 24, 26, 0.07); } }

/* ---------- Bandeau de ligne (Aujourd'hui) ---------- */
.band { background: var(--line); padding: calc(var(--top-safe) + 2px) 20px 22px; }
.band-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.pair { display: flex; align-items: center; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 15px; border: 2.5px solid var(--ink);
}
.avatar.a { background: var(--ink); color: var(--line); }
.avatar.b { background: #fff; color: var(--ink); margin-left: -9px; }
.avatar.b[data-joined="false"] { border-style: dashed; color: var(--muted); }
.pair-names { margin-left: 10px; font-weight: 700; font-size: 15px; }

.station-now { display: grid; grid-template-columns: auto 1fr; gap: 0 16px; align-items: end; }
.station-num { font-size: 104px; line-height: 0.8; font-weight: 800; letter-spacing: -0.04em; }
.station-now h1 { font-size: 30px; line-height: 1.05; font-weight: 800; }
.station-now .sub { grid-column: 2; margin-top: 6px; font-size: 15px; font-weight: 600; color: var(--ink-2); }

.linestrip { position: relative; margin: 26px 6px 0; height: 44px; }
.linestrip .track { position: absolute; left: 0; right: 0; top: 22px; height: 6px; margin-top: -3px; background: rgba(22, 24, 26, 0.22); border-radius: 3px; }
.linestrip .fill { position: absolute; left: 0; top: 22px; height: 6px; margin-top: -3px; width: 100%; background: var(--ink); border-radius: 3px; transform-origin: left center; transition: transform 600ms var(--ease-in-out); }
.linestrip .st { position: absolute; top: 22px; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--line); border: 3px solid var(--ink); }
.linestrip .st[data-s="passed"] { background: var(--ink); }
.linestrip .st[data-s="now"] { width: 26px; height: 26px; margin: -13px 0 0 -13px; background: #fff; border-width: 4px; }
.linestrip .travellers { position: absolute; top: -8px; left: 0; right: 0; height: 14px; transition: transform 600ms var(--ease-in-out); }
.linestrip .travellers span { position: absolute; left: 0; display: flex; transform: translateX(-50%); }
.linestrip .travellers i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); display: block; }
.linestrip .travellers i:first-child { background: var(--ink); }
.linestrip .travellers i:last-child { background: #fff; margin-left: -5px; }
.linestrip-ends { display: flex; justify-content: space-between; margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--ink-2); }

/* ---------- Carte imprimée ---------- */
.section { padding: 24px 20px 0; }
.section > h2 { font-size: 20px; font-weight: 800; margin-bottom: 12px; }
.section > h2 .soft { color: var(--muted); font-weight: 600; }
.pcard {
  position: relative; display: grid; grid-template-columns: 64px 1fr; min-height: 148px;
  border-radius: var(--r-m); background: var(--paper); box-shadow: 0 0 0 1.5px var(--ink), var(--shadow-card);
  overflow: hidden; text-align: left; border: 0; padding: 0; width: 100%; color: var(--ink);
  transition: transform 160ms var(--ease-out);
}
.pcard:active { transform: scale(0.98); }
.pcard .spine { background: var(--line); display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 14px 0; border-right: 1.5px solid var(--ink); }
.pcard .spine b { font-size: 26px; font-weight: 800; line-height: 1; }
.pcard .spine small { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.pcard .body { padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 8px; }
.pcard .body h3 { font-size: 21px; line-height: 1.15; font-weight: 800; }
.pcard .body p { font-size: 14px; color: var(--ink-2); }
.pcard .meta { margin-top: auto; display: flex; gap: 14px; font-size: 13px; font-weight: 700; color: var(--muted); }
.pcard .meta span { display: inline-flex; align-items: center; gap: 5px; }
.pcard .meta .icon { width: 16px; height: 16px; }
.row-actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 14px; }

/* ---------- Météo du couple ---------- */
.mood { border-radius: var(--r-m); background: var(--ground); padding: 18px 16px; }
.mood h3 { font-size: 17px; font-weight: 800; }
.mood p { font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
  min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--ink); background: #fff;
  font-weight: 700; font-size: 15px;
  transition: transform 160ms var(--ease-out), background-color 150ms ease, color 150ms ease;
}
.chip:active { transform: scale(0.96); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.partner-mood { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1.5px solid var(--rule); }
.partner-mood .avatar { width: 32px; height: 32px; font-size: 13px; margin: 0; }
.partner-mood .txt { font-size: 15px; font-weight: 600; transition: filter 300ms ease, opacity 300ms ease; }
.partner-mood .txt[data-hidden="true"] { filter: blur(6px); opacity: 0.6; user-select: none; }
.partner-mood small { display: block; font-size: 13px; color: var(--muted); font-weight: 500; }

.activity { list-style: none; margin: 0; padding: 0; }
.activity li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1.5px solid var(--rule); font-size: 15px; }
.activity li:last-child { border-bottom: 0; }
.activity .avatar { width: 30px; height: 30px; font-size: 12px; margin: 0; border-width: 2px; }
.activity small { display: block; color: var(--muted); font-size: 13px; }

/* ---------- Barre d'onglets ---------- */
.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
  padding: 8px 6px max(18px, env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94); border-top: 1.5px solid var(--rule);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
}
.tab {
  display: grid; justify-items: center; gap: 3px; min-height: 52px; padding: 4px 0; border: 0; background: none;
  color: var(--muted); font-size: 11.5px; font-weight: 700;
  transition: transform 160ms var(--ease-out);
}
.tab:active { transform: scale(0.96); }
.tab[aria-current="page"] { color: var(--ink); }
.tab[aria-current="page"] .icon { stroke-width: 2.3; }
.tab-scan .scan-disc {
  width: 58px; height: 58px; margin-top: -26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--line); box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.55), 0 0 0 5px #fff;
}
.tab-scan { color: var(--ink); }

/* ---------- Parcours : plan de ligne vertical ---------- */
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; margin: 6px 20px 8px; border-radius: 999px; background: var(--ground); }
.seg button { min-height: 40px; border: 0; border-radius: 999px; background: transparent; font-weight: 700; font-size: 14px; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.line-map { position: relative; list-style: none; margin: 8px 0 0; padding: 0 20px 0 20px; }
.line-map::before { content: ""; position: absolute; left: 41px; top: 18px; bottom: 30px; width: 8px; border-radius: 4px; background: var(--line); }
.stop { position: relative; padding-left: 60px; padding-bottom: 6px; }
.stop-head { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; border: 0; background: none; text-align: left; padding: 8px 0; color: var(--ink); }
.stop-dot { position: absolute; left: 12px; top: 22px; width: 26px; height: 26px; border-radius: 50%; border: 4px solid var(--ink); background: #fff; }
.stop[data-s="passed"] .stop-dot { background: var(--ink); }
.stop[data-s="passed"] .stop-head h3 { color: var(--ink-2); }
.stop[data-s="now"] .stop-dot { width: 34px; height: 34px; left: 8px; top: 18px; outline: 5px solid var(--line-soft); }
.stop-head h3 { font-size: 18px; font-weight: 800; line-height: 1.2; }
.stop-head small { display: block; font-size: 13px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.stop-head .chev { margin-left: auto; transition: transform 200ms var(--ease-out); color: var(--muted); }
.stop[data-open] .stop-head .chev { transform: rotate(180deg); }
.stop-cards { display: none; list-style: none; margin: 0 0 12px; padding: 0; }
.stop[data-open] .stop-cards { display: grid; gap: 8px; }
.ccard {
  display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; width: 100%;
  min-height: 58px; padding: 8px 12px 8px 8px; border: 1.5px solid var(--rule); border-radius: 12px; background: #fff; text-align: left; color: var(--ink);
  transition: transform 160ms var(--ease-out), border-color 150ms ease;
}
.ccard:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .ccard:hover { border-color: var(--ink); } }
.ccard .n { width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; background: var(--ground); }
.ccard[data-st="done"] .n { background: var(--ink); color: var(--line); }
.ccard[data-st="next"] .n { background: var(--line); }
.ccard[data-st="locked"] { color: var(--muted); }
.ccard .t { font-weight: 700; font-size: 15px; line-height: 1.25; }
.ccard .t small { display: block; font-weight: 600; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.ccard .state { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.ccard[data-st="done"] .state { color: var(--ok); }
.empty-filter { padding: 6px 0 14px; color: var(--muted); font-size: 14px; }
.page-head { padding: calc(var(--top-safe) + 8px) 20px 6px; }
.page-head h1 { font-size: 30px; font-weight: 800; }
.page-head p { color: var(--ink-2); font-size: 15px; margin-top: 4px; }

/* ---------- Carte ouverte ---------- */
.card-hero { margin: 4px 20px 0; }
.card-hero .pcard { min-height: 210px; grid-template-columns: 76px 1fr; cursor: default; }
.card-hero .pcard:active { transform: none; }
.card-hero .pcard .body h3 { font-size: 27px; }
.card-hero .pcard .spine b { font-size: 32px; }
.question { padding: 22px 20px 0; font-size: 19px; line-height: 1.4; font-weight: 600; }
.how { padding: 10px 20px 0; color: var(--muted); font-size: 14px; }
.answers { padding: 18px 20px 0; display: grid; gap: 12px; }
.answer { border-radius: var(--r-m); border: 1.5px solid var(--rule); padding: 14px; background: #fff; }
.answer header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-weight: 800; }
.answer header .avatar { width: 30px; height: 30px; font-size: 12px; margin: 0; border-width: 2px; }
.answer header small { margin-left: auto; font-weight: 700; font-size: 12.5px; color: var(--muted); }
.answer .count { text-align: right; font-size: 12px; color: var(--muted); margin-top: 4px; }
.answer .sent { font-size: 15.5px; line-height: 1.5; }
.answer .waiting { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 15px; }
.answer .partner-text { font-size: 15.5px; line-height: 1.5; transition: filter 300ms ease, opacity 300ms ease; }
.answer .partner-text[data-hidden="true"] { filter: blur(7px); opacity: 0.55; user-select: none; }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.55; }
.done-bar { padding: 20px 20px 0; }
.done-note { display: flex; align-items: center; gap: 10px; justify-content: center; min-height: 48px; font-weight: 800; color: var(--ok); }

/* ---------- Scanner ---------- */
.view.scanner { background: #0f1112; color: #fff; }
.scanner .topbar { color: #fff; }
.viewfinder { position: relative; flex: 1; display: grid; place-items: center; perspective: 1200px; }
.viewfinder .frame { position: relative; width: 248px; height: 340px; }
.viewfinder .corner { position: absolute; width: 38px; height: 38px; border: 4px solid var(--line); }
.corner.tl { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 14px 0 0 0; }
.corner.tr { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 14px 0 0; }
.corner.bl { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 14px; }
.corner.br { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 14px 0; }
.flip { position: absolute; inset: 14px; transform-style: preserve-3d; transition: transform 640ms var(--ease-in-out), opacity 220ms ease; opacity: 0; }
.flip[data-in] { opacity: 1; }
.flip[data-turned] { transform: rotateY(180deg); }
.flip .face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 14px; overflow: hidden; }
.flip .back { background: var(--line); color: var(--ink); display: grid; place-items: center; text-align: center; box-shadow: 0 0 0 1.5px var(--ink); }
.flip .back .mono { font-size: 54px; font-weight: 800; letter-spacing: -0.03em; }
.flip .back small { display: block; font-weight: 700; font-size: 13px; margin-top: 4px; }
.flip .front { transform: rotateY(180deg); background: #fff; color: var(--ink); display: grid; grid-template-rows: auto 1fr auto; padding: 18px; box-shadow: 0 0 0 1.5px var(--ink); }
.flip .front .n { font-size: 40px; font-weight: 800; line-height: 1; }
.flip .front h3 { font-size: 24px; line-height: 1.15; font-weight: 800; align-self: center; }
.flip .front small { font-size: 13px; font-weight: 700; color: var(--muted); }
.scan-hint { text-align: center; padding: 0 30px; color: #c9cdd0; font-size: 15px; min-height: 44px; }
.scan-actions { display: grid; gap: 10px; padding: 16px 20px 34px; }
.scanner .btn-ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.6); }
@media (hover: hover) and (pointer: fine) { .scanner .btn-ghost:hover:not([disabled]) { background: rgba(255, 255, 255, 0.1); } }
.scanline { position: absolute; left: 14px; right: 14px; top: 14px; height: 3px; border-radius: 2px; background: var(--line); opacity: 0; }
.scanning .scanline { opacity: 1; animation: scan 1.1s var(--ease-in-out) infinite alternate; }
@keyframes scan { from { transform: translateY(0); } to { transform: translateY(310px); } }

/* ---------- Feuille du bas (saisie de code, météo) ---------- */
.sheet-wrap { position: absolute; inset: 0; z-index: 50; visibility: hidden; }
.sheet-wrap[data-open] { visibility: visible; }
.scrim { position: absolute; inset: 0; background: rgba(10, 11, 12, 0.45); opacity: 0; transition: opacity 300ms ease; }
.sheet-wrap[data-open] .scrim { opacity: 1; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 20px 34px; border-radius: 26px 26px 0 0; background: #fff; color: var(--ink);
  transform: translateY(100%); transition: transform 260ms var(--ease-out); touch-action: none;
}
.sheet-wrap[data-open] .sheet { transform: translateY(0); transition: transform 420ms var(--ease-drawer); }
.sheet .grab { width: 100%; height: 28px; display: grid; place-items: center; border: 0; background: none; cursor: grab; }
.sheet .grab::before { content: ""; width: 40px; height: 5px; border-radius: 3px; background: var(--passed); }
.sheet h2 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.sheet p { color: var(--ink-2); font-size: 15px; margin-bottom: 16px; }
.code-input { font-size: 26px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; text-align: center; }
.sheet .btn { margin-top: 8px; }

/* ---------- Nous deux, Profil ---------- */
.journal { list-style: none; margin: 0; padding: 0 20px; display: grid; gap: 12px; }
.jitem { border: 1.5px solid var(--rule); border-radius: var(--r-m); padding: 14px; }
.jitem header { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.jitem header b { font-size: 13px; background: var(--ink); color: var(--line); border-radius: 6px; padding: 2px 7px; }
.jitem header h3 { font-size: 16px; font-weight: 800; }
.jitem header small { margin-left: auto; color: var(--muted); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.jitem p { font-size: 14.5px; color: var(--ink-2); margin-top: 6px; }
.jitem p b { color: var(--ink); }
.summary-line { padding: 4px 20px 16px; font-size: 15px; color: var(--ink-2); }
.summary-line b { color: var(--ink); }

.list { margin: 0 20px; border-radius: var(--r-m); border: 1.5px solid var(--rule); overflow: hidden; }
.list-row { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 10px 14px; border-bottom: 1.5px solid var(--rule); background: #fff; width: 100%; text-align: left; border-left: 0; border-right: 0; border-top: 0; color: var(--ink); font-size: 15px; text-decoration: none; }
.list-row:last-child { border-bottom: 0; }
.list-row .grow { flex: 1; }
.list-row small { display: block; color: var(--muted); font-size: 13px; }
.list-row select { border: 0; background: var(--ground); border-radius: 8px; padding: 8px 10px; font-weight: 700; min-height: 40px; }
a.list-row, button.list-row { transition: background-color 150ms ease; }
@media (hover: hover) and (pointer: fine) { a.list-row:hover, button.list-row:hover { background: var(--ground); } }
.list-title { padding: 22px 20px 8px; font-size: 14px; font-weight: 800; color: var(--ink-2); }
.foot-note { padding: 22px 20px 0; font-size: 12.5px; color: var(--muted); text-align: center; }

/* ---------- Accueil (première ouverture) ---------- */
.onb { background: var(--line); }
.onb .view-scroll { padding-bottom: 0; display: flex; flex-direction: column; }
.onb-step { display: none; flex: 1; flex-direction: column; padding: calc(var(--top-safe) + 20px) 24px 32px; }
.onb-step[data-active] { display: flex; }
.onb .wordmark { font-size: 40px; }
.onb h1 { font-size: 34px; line-height: 1.08; font-weight: 800; margin-top: 18px; }
.onb p.lead { font-size: 17px; margin-top: 12px; color: var(--ink-2); max-width: 30ch; }
.onb .art { flex: 1; display: grid; align-content: center; padding: 18px 0; }
.onb .form-card { background: #fff; border-radius: var(--r-l); padding: 20px; margin-top: 22px; display: grid; gap: 14px; box-shadow: 0 0 0 1.5px var(--ink); }
.onb .grow { flex: 1; }
.progress-pips { display: flex; gap: 6px; margin-bottom: 18px; }
.progress-pips i { height: 5px; flex: 1; border-radius: 3px; background: rgba(22, 24, 26, 0.2); }
.progress-pips i[data-on] { background: var(--ink); }
.invite-code { margin-top: 22px; background: #fff; border-radius: var(--r-l); padding: 22px 20px; text-align: center; box-shadow: 0 0 0 1.5px var(--ink); }
.invite-code .code { font-size: 40px; font-weight: 800; letter-spacing: 0.12em; }
.invite-code small { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }
.joined { display: flex; align-items: center; gap: 12px; margin-top: 16px; min-height: 56px; padding: 0 4px; font-weight: 700; }
.joined .dots { color: var(--ink); }


@media (prefers-reduced-motion: reduce) {
  .view.pushed, .view.pushed[data-active] { transition: opacity 200ms ease, visibility 0s; transform: none; opacity: 0; }
  .view.pushed[data-active] { opacity: 1; }
  .linestrip .fill, .linestrip .travellers { transition: none; }
  .flip { transition: opacity 200ms ease; }
  .flip[data-turned] { transform: none; }
  .flip[data-turned] .back { opacity: 0; }
  .flip .front { transform: none; opacity: 0; transition: opacity 200ms ease; }
  .flip[data-turned] .front { opacity: 1; }
  .sheet, .sheet-wrap[data-open] .sheet { transition: none; }
  .scanning .scanline { animation: none; opacity: 0.6; top: 50%; }
  .pcard:active, .ccard:active, .chip:active, .tab:active, .icon-btn:active { transform: none; }
}
.tabbar[hidden] { display: none; }
