:root {
  --bg: #e6e5e1;
  --card: rgba(255, 255, 255, .62);
  --card2: rgba(10, 10, 10, .07);
  --glass: rgba(255, 255, 255, .42);
  --glass2: rgba(255, 255, 255, .14);
  --gl: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 0 0 1px rgba(255, 255, 255, .5), 0 10px 30px rgba(0, 0, 0, .07);
  --text: #0a0a0a;
  --muted: #5f5e5a;
  --line: rgba(10, 10, 10, .14);
  --accent: #ffd60a;
  --ink: #0a0a0a;
  --pink: #ff2d6a;
  --mint: #00e5c8;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
html[data-theme="dark"] {
  --bg: #0d0d0f;
  --card: rgba(255, 255, 255, .08);
  --card2: rgba(255, 255, 255, .11);
  --glass: rgba(40, 40, 46, .55);
  --glass2: rgba(30, 30, 36, .22);
  --gl: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 0 0 1px rgba(255, 255, 255, .07), 0 10px 30px rgba(0, 0, 0, .25);
  --text: #f6f5f1;
  --muted: #a8a6a0;
  --line: rgba(255, 255, 255, .14);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body {
  margin: 0;
  height: 100%;
  min-height: 100%;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  background: var(--bg);
}
/* Peint au-delà du cadre : sinon iOS laisse une bande vide en haut et en bas. */
body::before {
  content: "";
  position: fixed;
  z-index: -1;
  left: 0;
  right: 0;
  top: -120px;
  height: 140vh;
  height: calc(100lvh + 240px);
  background: var(--bg);
  pointer-events: none;
}
body {
  color: var(--text);
  font-family: 'Geist', 'Helvetica Neue', Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font-family: inherit; }
button {
  border: none;
  cursor: pointer;
  background: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
input { color: inherit; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button:focus:not(:focus-visible) { outline: none; }
a { color: var(--accent); }
.shell {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: auto;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}
.halo { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; }
.halo.a { width: 340px; height: 340px; right: -120px; top: -60px; background: var(--accent); filter: blur(80px); opacity: .55; }
.halo.b { width: 320px; height: 320px; left: -140px; top: 430px; background: var(--pink); filter: blur(90px); opacity: .3; }
.halo.c { width: 260px; height: 260px; right: -100px; bottom: -60px; background: var(--mint); filter: blur(90px); opacity: .35; }

.view { display: none; position: absolute; inset: 0; z-index: 1; }
.view.on { display: flex; flex-direction: column; }

.glass {
  background: var(--card);
  backdrop-filter: blur(26px) saturate(1.7);
  -webkit-backdrop-filter: blur(26px) saturate(1.7);
  box-shadow: var(--gl);
}

.kicker {
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: 12px;
}
h1.ob-title, .ob-title {
  font-weight: 500;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -.03em;
  margin: 0 0 14px;
}
.lede { font-size: 17px; line-height: 1.45; color: var(--muted); margin: 0; text-wrap: pretty; }
.screen-title {
  font-weight: 500;
  font-size: 30px;
  letter-spacing: -.03em;
  margin: 4px 0 4px;
}
.num {
  font-family: 'Doto', ui-monospace, monospace;
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1;
}
.err { color: var(--pink); font-size: 14px; font-weight: 600; margin-top: 8px; }

/* Onboarding + login */
#view-ob, #view-login {
  padding: calc(20px + var(--sat)) 24px calc(24px + var(--sab));
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.ob-wheel {
  position: absolute;
  width: 520px;
  height: 520px;
  left: 50%;
  margin-left: -260px;
  top: -150px;
  border-radius: 50%;
  border: 14px solid var(--accent);
  transition: transform .9s cubic-bezier(.22, 1, .36, 1);
  z-index: 0;
  pointer-events: none;
}
.ob-pointer {
  position: absolute;
  left: 50%;
  top: 356px;
  width: 34px;
  height: 34px;
  margin-left: -17px;
  background: var(--text);
  transform: rotate(45deg);
  border-radius: 6px;
  z-index: 0;
  pointer-events: none;
}
.ob-top, .ob-bottom { position: relative; z-index: 1; }
.ob-top { display: flex; justify-content: space-between; align-items: center; }
.brand {
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .06em;
  background: var(--ink);
  color: #ffd60a;
  padding: 9px 14px;
  border-radius: 99px;
}
.btn-skip {
  height: 44px;
  padding: 0 16px;
  border-radius: 99px;
  background: var(--ink);
  color: #fff8e7;
  font-size: 14px;
  font-weight: 600;
}
.ob-bottom { margin-top: auto; }
.ob-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 30px; }
.dots { display: flex; gap: 6px; align-items: center; }
.dots i { display: block; height: 8px; width: 8px; border-radius: 8px; background: var(--card2); transition: all .3s; }
.dots i.on { width: 28px; background: var(--accent); }
.btn-accent {
  height: 60px;
  padding: 0 30px;
  border-radius: 99px;
  background: var(--accent);
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
}
.field {
  width: 100%;
  height: 60px;
  border-radius: 20px;
  border: 2px solid var(--line);
  background: var(--card);
  backdrop-filter: blur(26px) saturate(1.7);
  -webkit-backdrop-filter: blur(26px) saturate(1.7);
  box-shadow: var(--gl);
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
  padding: 0 20px;
}
.field.bad { border-color: var(--pink); }
.login-form { display: flex; flex-direction: column; gap: 10px; }
.login-form .btn-accent { width: 100%; margin-top: 8px; }
.fine { font-size: 14px; color: var(--muted); margin: 14px 0 0; text-align: center; }
.fine a { font-weight: 700; text-decoration: none; }
.ob-login {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 8px 0 2px;
  background: none;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-height: 740px) {
  .ob-wheel { width: 400px; height: 400px; margin-left: -200px; top: -190px; }
  .ob-pointer { top: 200px; }
  h1.ob-title, .ob-title { font-size: 28px; }
  .field, .btn-accent { height: 52px; }
}

/* App */
.scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  padding: calc(12px + var(--sat)) 18px calc(80px + var(--sab));
  scrollbar-width: none;
  z-index: 1;
}
.scroll::-webkit-scrollbar { display: none; }
.screen { display: none; flex-direction: column; gap: 12px; transform-origin: 50% 0; }
.screen.on { display: flex; }

.hello { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.logo {
  width: 48px; height: 48px; border-radius: 50%; flex: none;
  background: repeating-linear-gradient(45deg, var(--card2) 0 6px, var(--card) 6px 12px);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; color: var(--muted);
}
.hello .who { flex: 1; min-width: 0; }
.hello .hi { font-size: 13px; color: var(--muted); }
.hello .name { font-weight: 700; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pro {
  font-size: 11px; letter-spacing: .1em; padding: 8px 12px; border-radius: 99px; border: 1px solid var(--line);
}

.hero {
  background: var(--accent);
  color: var(--ink);
  border-radius: 36px;
  padding: 22px 22px 20px;
  overflow: hidden;
}
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hero-kicker { font-size: 11px; letter-spacing: .12em; flex: 1; min-width: 0; }
.period { display: flex; flex: none; background: rgba(10, 10, 10, .1); border-radius: 99px; padding: 3px; margin: -6px -6px 0 0; }
.period button { height: 34px; padding: 0 14px; border-radius: 99px; font-size: 13px; font-weight: 600; color: #0a0a0a; transition: background .25s, color .25s; }
.period button.on { background: #0a0a0a; color: #fff8e7; }
.big { font-size: 76px; margin: 14px 0 18px; }
.bars { display: flex; align-items: flex-end; height: 96px; }
.bars button {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  gap: 6px; height: 100%; min-width: 0; padding: 0; color: inherit;
}
.bar { width: 100%; border-radius: 10px; background: rgba(10, 10, 10, .22); transform-origin: 50% 100%; transition: background .25s, transform .25s; }
.bar.on { background: #0a0a0a; transform: scaleY(1.06); }
.bars small { font-size: 11px; font-weight: 400; }
.bars small.on { font-weight: 700; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat { border-radius: 30px; padding: 18px; text-align: left; }
.stat .lbl { font-size: 10px; letter-spacing: .12em; }
.stat .mid { font-size: 40px; margin-top: 10px; }
.stat .go { font-size: 13px; color: var(--muted); margin-top: 6px; }
.stat.mint { background: var(--mint); color: var(--ink); }
.stat.pink { background: var(--pink); color: var(--ink); }
.stat .lbl.mute { color: var(--muted); }

.test-card {
  display: flex; align-items: center; gap: 16px; text-align: left;
  color: var(--text); border-radius: 36px; padding: 16px; width: 100%;
}
.mini-wheel { width: 76px; height: 76px; flex: none; border-radius: 50%; border: 5px solid var(--accent); background: var(--card2); }
.test-card strong { display: block; font-size: 18px; }
.test-card span { display: block; font-size: 14px; color: var(--muted); margin-top: 3px; font-weight: 400; }
.go-round {
  width: 48px; height: 48px; border-radius: 50%; flex: none;
  background: var(--text); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700;
}

.search {
  height: 56px; border-radius: 99px; border: none; width: 100%;
  font-size: 16px; padding: 0 22px;
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { height: 44px; padding: 0 16px; border-radius: 99px; font-size: 14px; font-weight: 600; background: var(--card); color: var(--text); }
.chip.on { background: var(--text); color: var(--bg); }
.export {
  height: 44px; padding: 0 14px; border-radius: 99px; flex: none;
  border: 1px solid var(--line); font-size: 13px; font-weight: 700;
}
.screen-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.screen-head .screen-title { margin: 0; }

.rows { display: flex; flex-direction: column; gap: 8px; }
.row {
  display: flex; align-items: center; gap: 14px; text-align: left; width: 100%;
  color: var(--text); border-radius: 28px; padding: 14px 16px;
}
.avatar {
  width: 48px; height: 48px; border-radius: 50%; flex: none; background: var(--card2);
  display: flex; align-items: center; justify-content: center; font-weight: 500; font-size: 13px;
}
.row .meta, .prize-row .meta { flex: 1; min-width: 0; }
.row strong, .prize-row strong { display: block; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sub { font-size: 13px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge {
  font-size: 10px; letter-spacing: .08em; padding: 6px 10px; border-radius: 99px; flex: none;
}
.empty { text-align: center; color: var(--muted); padding: 40px 0; font-size: 15px; }

.wheel-card {
  border-radius: 40px; padding: 26px 0 22px;
  display: flex; flex-direction: column; align-items: center; gap: 20px; overflow: hidden;
}
.wheel-wrap { position: relative; width: min(292px, 100%); aspect-ratio: 1; }
.wheel {
  position: absolute; inset: 0; border-radius: 50%; border: 10px solid var(--accent);
  transition: transform 4.2s cubic-bezier(.12, .8, .1, 1);
  background: var(--card2);
}
.wheel-label {
  position: absolute; left: 50%; top: 50%; width: 92px; height: 20px; margin-top: -10px;
  transform-origin: 0 50%; font-weight: 700; font-size: 12px; line-height: 20px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hub {
  position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px;
  border-radius: 50%; background: var(--ink); border: 4px solid var(--accent); color: #fff8e7;
  display: flex; align-items: center; justify-content: center; font-weight: 500; font-size: 12px;
}
.pointer {
  position: absolute; left: 50%; top: -10px; width: 26px; height: 26px; margin-left: -13px;
  background: var(--text); transform: rotate(45deg); border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}
.spin-btn { opacity: 1; transition: opacity .2s; }
.spin-btn.busy { opacity: .5; }

.calc { border-radius: 36px; padding: 20px; }
.calc h3, .block-title { font-size: 18px; font-weight: 700; margin: 0; }
.step-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.step-box { background: var(--card2); border-radius: 24px; padding: 12px 12px 10px; }
.step-box .lbl { font-size: 10px; letter-spacing: .1em; color: var(--muted); }
.stepper { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.stepper b { font-weight: 500; font-size: 20px; }
.round {
  width: 44px; height: 44px; border-radius: 50%; font-size: 20px;
  background: var(--card); color: var(--text);
  box-shadow: var(--gl);
}
.round.flat { background: var(--card2); box-shadow: none; }
.round.ghost { background: transparent; border: 1px solid var(--line); color: var(--pink); font-size: 16px; box-shadow: none; }
.calc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.calc-foot p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.35; }
.calc-foot strong { color: var(--text); }
.btn-ink {
  height: 48px; padding: 0 22px; border-radius: 99px; background: var(--text); color: var(--bg);
  font-size: 15px; font-weight: 700; flex: none;
}
.list-head { display: flex; align-items: center; justify-content: space-between; margin: 10px 4px 0; gap: 8px; }
.btn-pink {
  height: 44px; padding: 0 18px; border-radius: 99px; background: var(--pink); color: var(--ink);
  font-size: 14px; font-weight: 700; flex: none;
}
.prize-row {
  border-radius: 28px; padding: 14px 14px 14px 16px;
  display: flex; align-items: center; gap: 12px;
}
.swatch { width: 14px; height: 44px; border-radius: 8px; flex: none; }
.prize-row .pct { font-size: 11px; color: var(--muted); margin-top: 3px; }

.qr-card { background: #fff8e7; color: #0a0a0a; border-radius: 40px; padding: 26px 24px; text-align: center; }
.qr-card .eye { font-size: 11px; letter-spacing: .12em; }
.qr-card h3 { font-weight: 500; font-size: 22px; letter-spacing: -.02em; margin: 10px 0 20px; }
.qr-card img, .qr-ph {
  width: 220px; height: 220px; margin: 0 auto; border-radius: 24px;
  background: repeating-linear-gradient(45deg, #e9e1d1 0 8px, #f5f0e6 8px 16px);
  object-fit: contain;
}
.qr-card img { display: block; }
.qr-ph {
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #5c5c5c;
}
.qr-url {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: 12px; margin-top: 18px; padding: 12px; border-radius: 16px; background: #e9e1d1;
  word-break: break-all;
}
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-glass {
  height: 60px; border-radius: 99px; color: var(--text); font-size: 15px; font-weight: 700;
}
.note { font-size: 14px; line-height: 1.45; color: var(--muted); margin: 6px 6px 0; text-wrap: pretty; }

.card { border-radius: 32px; padding: 18px; }
.card .lbl { font-size: 10px; letter-spacing: .12em; color: var(--muted); margin-bottom: 8px; }
.card input[type="text"] {
  width: 100%; height: 52px; border-radius: 18px; border: none; background: var(--card2);
  color: var(--text); font-size: 16px; font-weight: 600; padding: 0 16px;
}
.inline { display: flex; align-items: center; gap: 10px; }
.inline .grow { flex: 1; }
.inline h3 { margin: 0; font-size: 16px; }
.inline p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.cd { font-weight: 500; font-size: 16px; min-width: 48px; text-align: center; }
.swatches { display: flex; gap: 8px; justify-content: space-between; }
.swatches button { width: 46px; height: 46px; border-radius: 50%; transition: box-shadow .2s; }
.swatches button.on { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--text); }
.themes { display: flex; background: var(--card2); border-radius: 99px; padding: 4px; margin-top: 16px; }
.themes button { flex: 1; height: 44px; border-radius: 99px; font-size: 14px; font-weight: 700; color: var(--muted); transition: background .2s; }
.themes button.on { background: var(--text); color: var(--bg); }
.toggles { padding: 6px 18px; }
.toggle {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left;
  padding: 14px 0; min-height: 60px; font-size: 15px; font-weight: 600;
}
.smtp-card .smtp-help {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}
.smtp-card .smtp-enable {
  padding: 8px 0 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}
.smtp-card .smtp-lbl {
  display: block;
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--muted);
  margin: 10px 0 6px;
  text-transform: uppercase;
}
.smtp-card input[type="text"],
.smtp-card input[type="email"],
.smtp-card input[type="password"],
.smtp-card input[type="number"],
.smtp-card select {
  width: 100%;
  height: 48px;
  border-radius: 16px;
  border: none;
  background: var(--card2);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  padding: 0 14px;
}
.smtp-card select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 20px, calc(100% - 12px) 20px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 32px;
}
.smtp-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 10px;
}
.smtp-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}
.smtp-actions .btn-accent,
.smtp-actions .btn-glass {
  height: 52px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 700;
}
.smtp-notice {
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.smtp-notice.ok { color: #0a7a4b; }
.smtp-notice.err { color: var(--pink, #ff2d6a); }
.switch { width: 54px; height: 32px; border-radius: 99px; flex: none; padding: 3px; background: var(--card2); transition: background .2s; }
.switch i { display: block; width: 26px; height: 26px; border-radius: 50%; background: #0a0a0a; transition: transform .2s; }
.switch.on { background: var(--accent); }
.switch.on i { transform: translateX(22px); }
.plan {
  background: var(--text); color: var(--bg); border-radius: 32px; padding: 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.plan .lbl { font-size: 10px; letter-spacing: .12em; }
.plan strong { display: block; font-size: 18px; margin-top: 6px; }
.plan .price { font-weight: 500; font-size: 22px; }
.plan .price span { font-size: 11px; font-weight: 500; }
.btn-line {
  height: 56px; border-radius: 99px; border: 1px solid var(--line); color: var(--text);
  font-size: 15px; font-weight: 600; width: 100%;
}

.dock {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: var(--sab);
  height: 64px;
  border-radius: 99px;
  background: var(--glass2);
  backdrop-filter: url(#rwLiquid) blur(.6px) saturate(1.8) brightness(1.06);
  -webkit-backdrop-filter: blur(22px) saturate(1.9);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, .85),
    inset 0 -1px 0 rgba(255, 255, 255, .35),
    inset 0 0 0 1px rgba(255, 255, 255, .35),
    inset 0 0 18px rgba(255, 255, 255, .25),
    0 16px 36px rgba(0, 0, 0, .18);
  display: flex;
  align-items: center;
  padding: 6px;
  z-index: 20;
}
.dock-ind {
  position: absolute;
  top: 6px; bottom: 6px;
  border-radius: 99px;
  background: var(--accent);
  box-shadow: inset 0 2px 1px rgba(255, 255, 255, .65), inset 0 -3px 6px rgba(0, 0, 0, .12), 0 4px 14px rgba(0, 0, 0, .18);
  left: 6px; right: calc(100% - 76px);
}
.dock button {
  position: relative; z-index: 1; flex: 1; height: 52px; border-radius: 99px;
  font-size: 13px; font-weight: 600; color: var(--text); transition: color .3s;
}
.dock button.on { color: #0a0a0a; }
@media (max-width: 360px) {
  .dock button { font-size: 12px; }
}

.toast {
  position: fixed;
  left: 50%;
  top: calc(12px + var(--sat));
  transform: translateX(-50%);
  z-index: 60;
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 99px;
  white-space: nowrap;
  animation: rwIn .25s both;
}
.toast[hidden] { display: none; }

.sheet {
  position: fixed;
  left: max(0px, calc(50% - 240px));
  width: min(100%, 480px);
  top: 0; bottom: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.sheet[hidden] { display: none; }
.sheet-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .62); animation: rwIn .25s both; }
.sheet-panel {
  position: relative;
  background: var(--bg);
  border-radius: 40px 40px 0 0;
  padding: 12px 20px calc(20px + var(--sab));
  max-height: min(760px, 92dvh);
  overflow-y: auto;
  scrollbar-width: none;
  animation: rwUp .4s cubic-bezier(.22, 1, .36, 1) both;
}
.sheet-panel::-webkit-scrollbar { display: none; }
.handle { width: 44px; height: 5px; border-radius: 5px; background: var(--line); margin: 0 auto 18px; }
.who-lg { display: flex; align-items: center; gap: 14px; }
.who-lg .avatar { width: 60px; height: 60px; background: var(--accent); color: var(--ink); font-size: 16px; }
.who-lg h3 { margin: 0; font-weight: 500; font-size: 20px; letter-spacing: -.02em; }
.who-lg p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.pill { font-size: 11px; padding: 8px 12px; border-radius: 99px; background: var(--card); }
.spin-card { border-radius: 26px; padding: 16px; }
.spin-card .top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.spin-card .when { font-size: 13px; color: var(--muted); margin-top: 4px; }
.btn-mint {
  width: 100%; height: 52px; border-radius: 99px; background: var(--mint); color: var(--ink);
  font-size: 15px; font-weight: 700; margin-top: 14px;
}
.result { text-align: center; padding: 6px 0 0; }
.result .eye { font-size: 11px; letter-spacing: .12em; color: var(--muted); }
.result-card { margin: 18px 0; border-radius: 36px; padding: 34px 20px; }
.result-card h3 { margin: 0; font-weight: 500; font-size: 30px; letter-spacing: -.03em; line-height: 1.1; }
.result-card p { margin: 10px 0 0; font-size: 15px; }
.result .note { margin: 0 0 18px; }
.sheet-title { font-weight: 500; font-size: 22px; letter-spacing: -.02em; margin: 0 0 16px; }
.np-field { height: 56px; font-size: 16px; }
.hint { font-size: 13px; color: var(--muted); margin: 8px 4px 14px; }
.btn-block { width: 100%; }

/* Ouverture : la roue tourne, puis tout l’écran remonte et le tableau apparaît. */
#boot {
  display: flex;
  align-items: center;
  justify-content: center;
}
.boot-stage { position: relative; width: 228px; height: 228px; }
.boot-wheel {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 12px solid #ffd60a;
  background: conic-gradient(
    #ffd60a 0deg 60deg,
    #26252b 60deg 120deg,
    #ff2d6a 120deg 180deg,
    #00c2ff 180deg 240deg,
    #26252b 240deg 300deg,
    #00e5c8 300deg 360deg
  );
  animation: rwSpin 1.05s linear infinite;
}
.boot-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border-radius: 50%;
  background: #0a0a0a;
  border: 4px solid #ffd60a;
  color: #fff8e7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 13px;
}
.boot-pointer {
  position: absolute;
  left: 50%;
  top: -8px;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  background: #0a0a0a;
  transform: rotate(45deg);
  border-radius: 4px;
}
#boot.leave { animation: rwBootUp .78s cubic-bezier(.22, 1, .36, 1) forwards; }
#boot.leave .boot-wheel { animation-play-state: paused; }

@keyframes rwSpin { to { transform: rotate(360deg); } }
@keyframes rwBootUp { to { transform: translateY(-110%); } }
@keyframes rwUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes rwIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes rwFade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes rwSlideR {
  0% { opacity: 0; transform: translateX(90px) scaleX(1.12); filter: blur(14px); }
  60% { opacity: 1; transform: translateX(-6px) scaleX(.985); filter: blur(0); }
  100% { opacity: 1; transform: none; filter: none; }
}
@keyframes rwSlideL {
  0% { opacity: 0; transform: translateX(-90px) scaleX(1.12); filter: blur(14px); }
  60% { opacity: 1; transform: translateX(6px) scaleX(.985); filter: blur(0); }
  100% { opacity: 1; transform: none; filter: none; }
}
.fade { animation: rwFade .5s both; }

/* Écran large : la même interface, en deux colonnes, plus la colonne téléphone. */
@media (min-width: 1024px) {
  body { background: var(--bg); }
  .shell { left: 0; right: 0; width: auto; }
  .scroll {
    padding: 28px max(32px, calc(50vw - 640px)) 128px;
  }

  #view-ob.view.on,
  #view-login.view.on {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(380px, 520px);
    align-items: center;
    column-gap: 48px;
    padding: 48px max(40px, calc(50vw - 560px));
  }
  .ob-wheel {
    position: relative;
    grid-column: 1;
    grid-row: 1 / span 3;
    justify-self: center;
    left: auto;
    top: auto;
    margin: 0;
    width: min(460px, 40vw);
    height: min(460px, 40vw);
  }
  .ob-pointer {
    position: relative;
    grid-column: 1;
    grid-row: 1 / span 3;
    justify-self: center;
    align-self: center;
    left: auto;
    top: auto;
    margin: min(214px, 19vw) 0 0;
    z-index: 2;
  }
  .ob-top { grid-column: 2; grid-row: 1; align-self: end; }
  .ob-bottom { grid-column: 2; grid-row: 2; margin-top: 18px; align-self: start; }

  .screen[data-tab="home"].on {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, .85fr);
    gap: 16px;
    align-items: stretch;
  }
  .screen[data-tab="home"] .hello { grid-column: 1 / -1; }
  .screen[data-tab="home"] .hero {
    min-height: 420px;
    display: flex;
    flex-direction: column;
  }
  .screen[data-tab="home"] .big { font-size: 96px; }
  .screen[data-tab="home"] .bars { flex: 1; height: auto; min-height: 180px; }
  .screen[data-tab="home"] .test-card { grid-column: 1 / -1; }

  .screen[data-tab="clients"] .rows,
  .screen[data-tab="lots"] .rows {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .screen[data-tab="lots"].on {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .screen[data-tab="lots"] > .screen-title,
  .screen[data-tab="lots"] > .list-head,
  .screen[data-tab="lots"] > .rows { grid-column: 1 / -1; }

  .screen[data-tab="qr"].on {
    display: grid;
    grid-template-columns: minmax(280px, 440px) minmax(240px, 1fr);
    align-items: center;
    column-gap: 28px;
    max-width: 960px;
  }
  .screen[data-tab="qr"] > .screen-title { grid-column: 1 / -1; }
  .screen[data-tab="qr"] > .pair,
  .screen[data-tab="qr"] > .note { grid-column: 2; }

  .screen[data-tab="profil"].on {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .screen[data-tab="profil"] > .screen-title,
  .screen[data-tab="profil"] > .btn-line { grid-column: 1 / -1; }

  .dock {
    left: 50%;
    right: auto;
    width: min(680px, calc(100% - 48px));
    transform: translateX(-50%);
  }
  .sheet {
    left: 0;
    width: 100%;
  }
  .sheet-panel {
    width: min(560px, 100%);
    margin: 0 auto;
  }
}

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