@font-face { font-family: 'Unbounded'; font-weight: 400; font-display: swap; src: url('fonts/unbounded-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Unbounded'; font-weight: 700; font-display: swap; src: url('fonts/unbounded-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Unbounded'; font-weight: 900; font-display: swap; src: url('fonts/unbounded-latin-900-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-weight: 400; font-display: swap; src: url('fonts/instrument-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-weight: 600; font-display: swap; src: url('fonts/instrument-sans-latin-600-normal.woff2') format('woff2'); }

:root {
  --nuit: #100b29;
  --haut: #1f1550;
  --bas: #2b1a5e;
  --accent: #ffb627;
  --ligne: rgba(255,255,255,.08);
  --encre: #1c1545;
  --velours: #2a2063;
  --lin: #f1ecff;
  --brume: #a19bc9;
  --braise: #ff7a2f;
  --ambre: #ffb627;
  --cyan: #2cc9f0;
  --violet: #9a5cff;
  --display: 'Unbounded', 'Trebuchet MS', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --sa-t: env(safe-area-inset-top, 0px);
  --sa-b: env(safe-area-inset-bottom, 0px);
  --sa-l: env(safe-area-inset-left, 0px);
  --sa-r: env(safe-area-inset-right, 0px);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body {
  margin: 0; height: 100%; overflow: hidden;
  overscroll-behavior: none;
  background: var(--nuit);
  color: var(--lin);
  font-family: var(--body);
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
}
body {
  position: fixed; inset: 0;
  background:
    radial-gradient(120% 60% at 50% 110%, var(--bas, #2b1a5e) 0%, transparent 60%),
    radial-gradient(90% 50% at 50% -10%, var(--haut, #1f1550) 0%, transparent 70%),
    var(--nuit);
  transition: background-color .6s ease;
}
/* grain très léger : évite l'effet "aplat" */
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; opacity: .05; z-index: 50;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

button {
  font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer;
  touch-action: manipulation;
}
button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 14px; }

.screen {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  padding: calc(var(--sa-t) + 12px) calc(var(--sa-r) + 16px) calc(var(--sa-b) + 16px) calc(var(--sa-l) + 16px);
  transition: opacity .35s ease, transform .35s ease;
}
.screen[hidden] { display: flex !important; opacity: 0; pointer-events: none; transform: scale(.98); visibility: hidden; transition: opacity .25s ease, transform .25s ease, visibility 0s .25s; }

/* ---------- Jeu ---------- */
#game { padding-bottom: calc(var(--sa-b) + 12px); }
.screen { overflow: hidden; }
.hud { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; }
.scorebox { text-align: center; }
.score {
  font-family: var(--display); font-weight: 900; font-size: 44px; line-height: 1.05;
  font-variant-numeric: tabular-nums; letter-spacing: -.01em;
  text-shadow: 0 0 24px rgba(255,200,120,.35);
}
.score.bump { animation: bump .28s ease; }
@keyframes bump { 40% { transform: scale(1.08); } }
.subline { display: flex; justify-content: center; gap: 18px; margin-top: 4px; color: var(--brume); font-size: 13px; }
.subline b { color: var(--lin); font-weight: 600; font-variant-numeric: tabular-nums; }

.spectrum { display: block; width: 100%; height: 30px; margin-top: 14px; }
.board-wrap { position: relative; flex: 1; min-height: 0; margin: 8px -8px 0; }
#board { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }

.combo {
  position: absolute; left: 0; right: 0; top: 36%; text-align: center; pointer-events: none;
  font-family: var(--display); font-weight: 900; font-size: 34px; letter-spacing: .02em;
  color: #fff; opacity: 0;
  text-shadow: 0 0 20px var(--combo, #ffb627), 0 0 50px var(--combo, #ffb627);
}
.combo.show { animation: combo 1.1s cubic-bezier(.2,.9,.2,1) forwards; }
@keyframes combo {
  0% { opacity: 0; transform: scale(.6) translateY(10px); }
  18% { opacity: 1; transform: scale(1.08); }
  70% { opacity: 1; transform: scale(1) translateY(-6px); }
  100% { opacity: 0; transform: scale(1) translateY(-24px); }
}

.toast {
  position: absolute; left: 50%; bottom: 14px; transform: translate(-50%, 10px);
  padding: 10px 16px; border-radius: 999px; white-space: nowrap;
  background: rgba(16,11,41,.85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
  font-size: 14px; opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.dock { display: flex; align-items: center; justify-content: center; gap: 14px; padding-top: 10px; }
.pulse-btn {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 10px 22px 10px 10px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(154,92,255,.24), rgba(154,92,255,.08));
  box-shadow: inset 0 0 0 1px rgba(184,150,255,.35), 0 10px 40px -14px rgba(154,92,255,.8);
  font-family: var(--display); font-weight: 700; font-size: 16px;
}
.pulse-btn .ring {
  width: 40px; height: 40px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff 0 10%, #c9a8ff 22%, #7a3cff 60%, #3a1a8a 100%);
  box-shadow: 0 0 18px rgba(154,92,255,.9);
}
.pulse-btn small { display: block; font-family: var(--body); font-weight: 400; font-size: 12px; color: var(--brume); text-align: left; }
.pulse-btn:disabled { opacity: .35; filter: grayscale(.7); }
.pulse-btn.urgent::after {
  content: ''; position: absolute; inset: -4px; border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(184,150,255,.8);
  animation: ripple 1.2s ease-out infinite;
}
@keyframes ripple { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(1.18); } }

/* ---------- Feuilles (pause / fin) ---------- */
.veil {
  position: absolute; inset: 0; z-index: 20;
  background: rgba(8,5,22,.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: flex-end;
  transition: opacity .3s ease;
}
.veil[hidden] { display: flex !important; opacity: 0; pointer-events: none; visibility: hidden; transition: opacity .2s, visibility 0s .2s; }
.sheet {
  width: 100%; padding: 28px calc(var(--sa-r) + 22px) calc(var(--sa-b) + 22px) calc(var(--sa-l) + 22px);
  border-radius: 30px 30px 0 0;
  background:
    radial-gradient(100% 70% at 50% 0%, rgba(255,182,39,.16), transparent 70%),
    linear-gradient(180deg, #241b58, #150f35 70%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 -30px 80px -20px rgba(154,92,255,.35);
  transform: translateY(0); transition: transform .45s cubic-bezier(.2,.9,.25,1);
  text-align: center;
}
.veil[hidden] .sheet { transform: translateY(100%); }
.sheet h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 16px; color: var(--brume); letter-spacing: .01em; }
.final {
  margin: 10px 0 4px; font-family: var(--display); font-weight: 900; font-size: 58px; line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #fff8ec; text-shadow: 0 0 30px rgba(255,182,39,.5);
}
.newbest { display: inline-block; margin-top: 8px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: #1b1030; background: linear-gradient(90deg, #ffe9b0, #ffb627); }
.stats { display: flex; justify-content: center; gap: 28px; margin: 22px 0 24px; }
.stat { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--brume); font-size: 13px; }
.stat b { font-family: var(--display); font-weight: 700; color: var(--lin); font-size: 20px; font-variant-numeric: tabular-nums; }
.stat canvas { width: 66px; height: 66px; margin: -18px 0 -14px; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.actions.three { grid-template-columns: 1fr; }
.btn {
  height: 56px; border-radius: 18px; font-family: var(--display); font-weight: 700; font-size: 16px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
}
.btn.solid {
  color: #22140a;
  background: linear-gradient(180deg, #ffe7a8, #ffb627 55%, #ff8a2a);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 12px 34px -12px rgba(255,150,40,.9);
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; }
.link { margin-top: 16px; color: var(--brume); font-size: 15px; padding: 8px 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media (min-width: 560px) {
  .screen { max-width: 480px; margin: 0 auto; }
  .sheet { max-width: 480px; margin: 0 auto; border-radius: 30px; margin-bottom: 20px; }
}

/* =====================================================================
   v2 — accueil, panneaux, carte, boosters, objectifs
   ===================================================================== */
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  color: var(--brume);
  background: rgba(255,255,255,.04);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07);
}
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:active { transform: scale(.94); }

/* ---------- Accueil ---------- */
#home { justify-content: flex-start; gap: 0; }
.topbar { display: flex; align-items: center; gap: 10px; }
.topbar .spacer { flex: 1; }
.rank-chip { display: flex; align-items: center; gap: 8px; padding: 2px 12px 2px 2px; border-radius: 999px; text-align: left; }
.rank-chip canvas { width: 44px; height: 44px; }
.rank-txt b { display: block; font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .01em; }
.rank-txt small { display: block; color: var(--brume); font-size: 12px; margin-top: 1px; }
.eclats {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px 0 10px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.09);
  font-family: var(--display); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums;
}
.eclats.small { height: 32px; font-size: 13px; padding: 0 12px 0 8px; }
.shard { width: 16px; height: 16px; fill: url(#none); fill: #9fe8ff; filter: drop-shadow(0 0 6px rgba(120,220,255,.8)); }
.eclats.gain { animation: gain .6s ease; }
@keyframes gain { 30% { transform: scale(1.12); box-shadow: inset 0 0 0 1px rgba(159,232,255,.7), 0 0 24px rgba(120,220,255,.5); } }

/* série : sept lunes qui se remplissent */
.moons { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.streak-row { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; margin-bottom: 10px; padding: 10px 12px 8px 14px; border-radius: 20px; background: rgba(255,255,255,.035); box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); }
.streak-row .sr-n { font-family: var(--display); font-weight: 900; font-size: 22px; line-height: 1; color: #ffd77a; text-shadow: 0 0 14px rgba(255,190,80,.6); }
.streak-row .sr-n small { display: block; font-family: var(--body); font-weight: 400; font-size: 11.5px; color: var(--brume); text-shadow: none; margin-top: 3px; }
.moon { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--brume); font-size: 11px; font-variant-numeric: tabular-nums; }
.moon i { position: relative; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); overflow: hidden; }
.moon i::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff8e6, #ffd77a 45%, #f0a030); transform: translateX(var(--off, 100%)); }
.moon.done i::after { --off: 0%; opacity: .55; }
.moon.today i { box-shadow: 0 0 0 2px rgba(255,215,122,.9), 0 0 18px rgba(255,190,80,.6); }
.moon.today i::after { --off: 0%; }
.moon.next.first i { box-shadow: inset 0 0 0 1px rgba(255,215,122,.6); }
.moon.big i { width: 26px; height: 26px; margin-top: -2px; }
.moon.big i::after { background: radial-gradient(circle at 35% 35%, #ffffff, #c9b6ff 40%, #7a5cff); }
.moon b { color: var(--lin); font-weight: 600; }

.hero { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 120px; }
.tagline { position: absolute; left: 0; right: 0; bottom: 6px; margin: 0; color: var(--brume); font-size: 14px; text-align: center; }
@media (max-height: 760px) { .tagline { display: none; } }
#heroCanvas { position: absolute; inset: -6px -16px; width: calc(100% + 32px); height: calc(100% + 12px); }
.title {
  position: relative;
  font-family: var(--display); font-weight: 900;
  font-size: clamp(48px, 16vw, 80px);
  letter-spacing: .04em; line-height: 1; margin: 0;
  color: #fff8ec;
  text-shadow: 0 0 18px color-mix(in srgb, var(--accent) 55%, transparent), 0 0 60px rgba(255,122,47,.3), 0 0 120px rgba(154,92,255,.35);
}

.modes { display: grid; gap: 10px; }
/* Bouton « Jouer » : l'entrée principale (Aventure au niveau en cours), orbe et halo ambrés */
.play-cta {
  position: relative; display: grid; grid-template-columns: 46px 1fr 24px; align-items: center; gap: 14px;
  min-height: 70px; padding: 10px 18px 10px 12px; border-radius: 999px; text-align: left; color: #22140a;
  background: radial-gradient(90% 140% at 12% 50%, rgba(255,248,230,.75), transparent 45%), linear-gradient(180deg, #ffe7a8, var(--accent) 55%, var(--braise));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65), inset 0 -2px 0 rgba(110,40,0,.22), 0 16px 40px -14px var(--accent), 0 0 70px -24px var(--braise);
}
.play-cta:active { transform: scale(.98); }
.play-cta:focus-visible { outline: 2px solid #fff8ec; outline-offset: 3px; }
.play-orb { position: relative; width: 46px; height: 46px; border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #fff, #fff3c8 30%, #ffc94d 62%, #e0780f);
  box-shadow: 0 0 0 3px rgba(255,255,255,.3), 0 0 24px 4px rgba(255,244,214,.85); }
.play-orb::after { content: ''; position: absolute; inset: -7px; border-radius: 50%; border: 2px solid rgba(255,250,235,.7); animation: playHalo 2.6s ease-out infinite; }
@keyframes playHalo { from { transform: scale(.82); opacity: .9; } to { transform: scale(1.4); opacity: 0; } }
.play-name { display: block; font-family: var(--display); font-weight: 900; font-size: 24px; letter-spacing: .03em; line-height: 1.05; }
.play-sub { display: block; margin-top: 2px; font-size: 13px; font-weight: 600; color: rgba(34,20,10,.74); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.play-go { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { .play-orb::after { animation: none; opacity: 0; } }
@media (max-height: 700px) { .play-cta { min-height: 60px; } .play-orb { width: 38px; height: 38px; } .play-cta { grid-template-columns: 38px 1fr 22px; } }
.adv-card {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; align-items: end;
  min-height: 96px; padding: 14px 18px; text-align: left; border-radius: 24px;
  background:
    radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--ch, #ffb627) 30%, transparent), transparent 60%),
    linear-gradient(160deg, rgba(255,255,255,.1), rgba(255,255,255,.02));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), inset 0 0 0 1px color-mix(in srgb, var(--ch, #ffb627) 35%, transparent), 0 20px 50px -24px color-mix(in srgb, var(--ch, #ffb627) 80%, transparent);
}
.adv-card:active, .tile:active, .event-band:active { transform: scale(.98); }
#advConst { position: absolute; inset: 0; width: 100%; height: 100%; }
.adv-body, .adv-stars { position: relative; }
.adv-kicker { display: block; font-size: 13px; color: var(--ch, var(--ambre)); font-weight: 600; }
.adv-name { display: block; font-family: var(--display); font-weight: 900; font-size: 21px; letter-spacing: .01em; margin-top: 2px; }
.adv-sub { display: block; color: var(--brume); font-size: 14px; margin-top: 2px; }
.adv-stars { font-family: var(--display); font-weight: 700; font-size: 18px; text-align: right; }
.adv-stars::before { content: '★ '; color: #ffd36a; }
.adv-stars small { font-family: var(--body); font-weight: 400; font-size: 12px; color: var(--brume); }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile {
  position: relative; display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center;
  padding: 12px 12px; border-radius: 20px; text-align: left;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 0 0 1px rgba(255,255,255,.06);
}
.tile .orb-ico { grid-row: span 2; width: 40px; height: 40px; }
.tile-name { font-family: var(--display); font-weight: 700; font-size: 14px; }
.tile-sub { color: var(--brume); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile.daily.done .tile-sub { color: #9fe8ff; }

.event-band {
  display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px;
  padding: 10px 14px 10px 10px; border-radius: 18px; text-align: left;
  background: linear-gradient(90deg, color-mix(in srgb, var(--ev, #6fe3ff) 22%, transparent), rgba(255,255,255,.02) 70%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ev, #6fe3ff) 30%, transparent);
}
.ev-glyph { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--ev, #6fe3ff) 25%, transparent); }
.ev-glyph svg { width: 20px; height: 20px; stroke: var(--ev); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ev-name { display: block; font-family: var(--display); font-weight: 700; font-size: 13.5px; }
.ev-sub { display: block; color: var(--brume); font-size: 12px; margin-top: 2px; }
.ev-best { font-family: var(--display); font-weight: 700; font-size: 13px; text-align: right; line-height: 1.25; }
.ev-best small { display: block; font-family: var(--body); font-weight: 400; color: var(--brume); font-size: 11px; }

.dock-nav { display: grid; grid-template-columns: repeat(5, 1fr); margin: 12px -6px 0; padding-top: 10px; border-top: 1px solid var(--ligne); }
.dock-nav button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0; color: var(--brume); font-size: 11.5px; }
.dock-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dock-nav button:active { color: var(--lin); }
.badge { position: absolute; top: 2px; left: calc(50% + 8px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #ff5ce0; color: #fff; font: 700 10px/16px var(--body); font-style: normal; box-shadow: 0 0 10px rgba(255,92,224,.7); }

/* ---------- Panneaux ---------- */
.panel { padding-left: 0; padding-right: 0; padding-bottom: 0; }
.panel-head { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 10px; padding: 0 calc(var(--sa-r) + 16px) 10px calc(var(--sa-l) + 16px); }
.panel-head h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 18px; text-align: center; }
.panel-head > span:last-child:empty { width: 44px; }
.panel-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 6px calc(var(--sa-r) + 16px) calc(var(--sa-b) + 28px) calc(var(--sa-l) + 16px); overscroll-behavior: contain; }
.lede { margin: 0 0 16px; color: var(--brume); font-size: 14px; line-height: 1.45; }
.fine { color: var(--brume); font-size: 13px; line-height: 1.45; margin: 10px 2px; }
.fine.center { text-align: center; margin-top: 26px; }
.fine a { display: inline-block; padding: 10px 4px; color: var(--accent); }
.sect { font-family: var(--display); font-weight: 700; font-size: 14px; margin: 26px 2px 10px; color: var(--lin); }

/* boutique */
.shop-list { display: grid; gap: 10px; }
.shop-item { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 14px; padding: 12px 12px 12px 10px; border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
.shop-item .lens { width: 56px; height: 56px; }
.shop-item b { display: block; font-family: var(--display); font-weight: 700; font-size: 15px; }
.shop-item p { margin: 3px 0 0; color: var(--brume); font-size: 13px; line-height: 1.35; }
.shop-item .own { color: var(--lin); font-size: 12px; margin-top: 4px; display: block; }
.price { display: inline-flex; align-items: center; gap: 5px; height: 40px; padding: 0 14px; border-radius: 14px; font-family: var(--display); font-weight: 700; font-size: 14px;
  color: #10213a; background: linear-gradient(180deg, #d8f6ff, #8fdcff); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 8px 24px -10px rgba(120,220,255,.9); }
.price .shard { width: 13px; height: 13px; fill: #10213a; filter: none; }
.price:disabled { opacity: .35; filter: grayscale(.6); }
.price:active { transform: scale(.95); }

/* lentilles des boosters */
.lens { position: relative; display: grid; place-items: center; border-radius: 50%; width: 44px; height: 44px; }
.lens svg { width: 46%; height: 46%; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 4px rgba(255,255,255,.6)); }
.lens b { font-family: var(--display); font-weight: 900; font-size: 15px; color: #fff; text-shadow: 0 0 8px rgba(255,255,255,.7); }
.lens.pulse { background: radial-gradient(circle at 40% 35%, #fff 0 9%, #c9a8ff 22%, #7a3cff 60%, #3a1a8a 100%); box-shadow: 0 0 18px rgba(154,92,255,.7); }
.lens.hammer { background: radial-gradient(circle at 40% 35%, #ffe2c4 0 8%, #ff9a5a 30%, #c2401c 75%, #5a1608 100%); box-shadow: 0 0 18px rgba(255,120,60,.6); }
.lens.spark { background: radial-gradient(circle at 40% 35%, #fffbe0 0 10%, #ffe066 30%, #f2a01a 70%, #6b3a05 100%); box-shadow: 0 0 18px rgba(255,200,60,.65); }
.lens.moves { background: radial-gradient(circle at 40% 35%, #e8fff4 0 8%, #6fffc0 30%, #12a87a 70%, #04402e 100%); box-shadow: 0 0 18px rgba(60,240,170,.55); }

/* thèmes */
.theme-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 132px; gap: 10px; overflow-x: auto; padding-bottom: 6px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scroll-snap-type: x mandatory; }
.theme-list { display: grid; gap: 12px; }
.theme-card { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 14px; border-radius: 22px; text-align: left; scroll-snap-align: start;
  background: linear-gradient(160deg, var(--t-haut), var(--t-nuit)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.theme-card.on { box-shadow: inset 0 0 0 2px var(--t-acc), 0 14px 40px -18px var(--t-acc); }
.theme-card canvas { grid-column: 1 / -1; width: 100%; height: 62px; margin: -6px 0 -8px; }
.theme-card b { font-family: var(--display); font-weight: 700; font-size: 14px; }
.theme-card small { display: block; color: rgba(255,255,255,.6); font-size: 12px; margin-top: 2px; }
.theme-strip .theme-card { grid-template-columns: 1fr; gap: 8px; padding: 12px; }
.theme-strip .theme-card canvas { height: 44px; }
.pill { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 14px; border-radius: 12px; font-family: var(--display); font-weight: 700; font-size: 12.5px; background: rgba(255,255,255,.12); white-space: nowrap; }
.pill.lock { background: rgba(0,0,0,.25); color: rgba(255,255,255,.65); font-family: var(--body); font-weight: 600; }
.pill.use { background: var(--t-acc); color: #140c20; }

/* missions */
.mis-list { display: grid; gap: 10px; }
.mission { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; padding: 14px; border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
.mission b { font-weight: 600; font-size: 15px; }
.mission .rw { font-family: var(--display); font-weight: 700; font-size: 13px; color: #9fe8ff; white-space: nowrap; }
.bar { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: rgba(255,255,255,.07); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--accent), #fff3c8); box-shadow: 0 0 12px var(--accent); }
.mission.done { background: linear-gradient(90deg, rgba(159,232,255,.12), rgba(255,255,255,.02)); }
.mission.done b::after { content: ' ✓'; color: #9fe8ff; }
.mission .val { grid-column: 1 / -1; color: var(--brume); font-size: 12px; margin-top: -2px; font-variant-numeric: tabular-nums; }
.streak-card, .event-card, .rank-card { padding: 16px; border-radius: 22px; background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
.streak-card .moons { margin: 12px 0 2px; }
.streak-card p, .event-card p { margin: 0; color: var(--brume); font-size: 13.5px; line-height: 1.45; }
.streak-card strong, .event-card strong { display: block; font-family: var(--display); font-size: 16px; margin-bottom: 4px; color: var(--lin); }
.event-card { background: linear-gradient(160deg, color-mix(in srgb, var(--ev) 22%, transparent), rgba(255,255,255,.02) 70%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ev) 30%, transparent); }
.event-card .row2 { margin-top: 14px; }

/* succès */
.ach-list { display: grid; gap: 8px; }
.ach { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; padding: 12px; border-radius: 18px; background: rgba(255,255,255,.035); box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); }
.medal { position: relative; width: 48px; height: 48px; }
.medal svg { width: 100%; height: 100%; }
.ach b { font-weight: 600; font-size: 14.5px; }
.ach p { margin: 2px 0 6px; color: var(--brume); font-size: 12.5px; }
.ach .bar { height: 5px; }
.ach .tiers { display: flex; gap: 4px; float: right; margin-top: 1px; }
.ach .tiers i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.12); }
.ach .tiers i.t1 { background: #d08a52; } .ach .tiers i.t2 { background: #d8e0ec; } .ach .tiers i.t3 { background: #ffd36a; box-shadow: 0 0 6px #ffd36a; }
.ach-total { font-family: var(--display); font-weight: 700; font-size: 13px; color: var(--brume); }

/* stats */
.rank-card { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; }
.rank-card canvas { width: 84px; height: 84px; }
.rank-card b { font-family: var(--display); font-size: 20px; display: block; }
.rank-card small { color: var(--brume); font-size: 13px; display: block; margin: 2px 0 10px; }
.rank-card .unl { color: var(--brume); font-size: 12.5px; margin-top: 8px; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.stat-cell { padding: 14px; border-radius: 18px; background: rgba(255,255,255,.035); box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); }
.stat-cell b { display: block; font-family: var(--display); font-weight: 700; font-size: 22px; font-variant-numeric: tabular-nums; }
.stat-cell span { color: var(--brume); font-size: 12.5px; }

/* réglages */
.set-group { border-radius: 20px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); margin-bottom: 12px; overflow: hidden; }
.set-group.pad { padding: 4px 14px 14px; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 8px 16px; cursor: pointer; }
.toggle + .toggle { border-top: 1px solid var(--ligne); }
.toggle span { font-size: 15px; }
.toggle small { display: block; color: var(--brume); font-size: 12px; margin-top: 2px; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle i { flex: none; position: relative; width: 50px; height: 30px; border-radius: 15px; background: rgba(255,255,255,.12); transition: background .2s; }
.toggle i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #d8d2f0; transition: transform .2s, background .2s; }
.toggle input:checked + i { background: color-mix(in srgb, var(--accent) 70%, transparent); }
.toggle input:checked + i::after { transform: translateX(20px); background: #fff; box-shadow: 0 0 10px var(--accent); }
.toggle input:focus-visible + i { outline: 2px solid var(--cyan); outline-offset: 2px; }
.set-row { display: block; width: 100%; min-height: 54px; padding: 0 16px; text-align: left; font-size: 15px; }
textarea { width: 100%; margin: 6px 0 10px; padding: 10px 12px; border: 0; border-radius: 14px; resize: none; font: 12px/1.4 ui-monospace, Menlo, monospace; color: var(--lin); background: rgba(0,0,0,.25); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); -webkit-user-select: text; user-select: text; word-break: break-all; }
textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row2 .btn { height: 48px; font-size: 13.5px; }
.err { color: #ff8a9a; font-size: 13px; margin: 0 2px 10px; }
.btn.danger { color: #ffb0bc; box-shadow: inset 0 0 0 1px rgba(255,120,140,.35); width: 100%; margin-top: 10px; }
.btn.danger.solid { color: #2a0610; background: linear-gradient(180deg, #ffb3bf, #ff5f7a); box-shadow: 0 10px 30px -12px rgba(255,80,110,.9); margin-top: 0; }
.confirm { margin-top: 12px; padding: 14px; border-radius: 16px; background: rgba(255,80,110,.08); box-shadow: inset 0 0 0 1px rgba(255,120,140,.25); }
.confirm p { margin: 0 0 12px; font-size: 13.5px; line-height: 1.45; }
#importBox { margin-top: 12px; }
#importBox .btn { width: 100%; }

/* ---------- Carte de l'Aventure ---------- */
#map { padding-bottom: 0; }
.panel-head.floating { position: relative; z-index: 2; }
.map-title { text-align: center; }
.map-title b { display: block; font-family: var(--display); font-weight: 700; font-size: 16px; }
.map-title small { color: var(--brume); font-size: 12.5px; }
.map-view { position: relative; flex: 1; min-height: 0; }
#mapCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-scroll { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; scrollbar-width: none; }
.map-scroll::-webkit-scrollbar { display: none; }
.map-inner { position: relative; width: 100%; }
.node { position: absolute; width: 60px; height: 60px; margin: -30px 0 0 -30px; display: grid; place-items: center; }
.node .core { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 13px; color: #1a0f26;
  background: radial-gradient(circle at 36% 30%, #fff 0 10%, color-mix(in srgb, var(--nc) 55%, #fff) 34%, var(--nc) 66%, color-mix(in srgb, var(--nc2) 60%, #10062a) 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.4) inset, 0 4px 14px -4px rgba(0,0,0,.6); }
.node.perfect .core { box-shadow: 0 0 0 2px #ffe9a8, 0 0 18px rgba(255,220,130,.6); }
.node.current .core { width: 52px; height: 52px; font-size: 16px; }
.node.current::before { content: ''; position: absolute; inset: -2px; border-radius: 50%; box-shadow: 0 0 0 2px var(--nc); animation: ripple 1.6s ease-out infinite; }
.node.locked .core { width: 12px; height: 12px; background: rgba(255,255,255,.28); box-shadow: 0 0 8px rgba(255,255,255,.25); }
.node .st { position: absolute; top: 50px; left: 50%; transform: translateX(-50%); display: flex; gap: 2px; }
.node.current .st { top: 56px; }
.node .st i { width: 9px; height: 9px; clip-path: polygon(50% 0, 63% 35%, 100% 38%, 72% 61%, 81% 100%, 50% 79%, 19% 100%, 28% 61%, 0 38%, 37% 35%); background: rgba(255,255,255,.2); }
.node .st i.on { background: #ffd36a; }
.chapter-label { position: absolute; left: 50%; transform: translateX(-50%); width: max-content; max-width: 92%; padding: 10px 22px 12px; text-align: center; pointer-events: none; border-radius: 999px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--nuit) 92%, transparent) 60%, transparent); }
.chapter-label b { display: block; font-family: var(--display); font-weight: 900; font-size: 28px; letter-spacing: .02em; color: var(--cc); text-shadow: 0 0 30px var(--cc); }
.chapter-label span { display: block; color: var(--brume); font-size: 13px; margin-top: 4px; }
.chapter-label.locked b { color: rgba(255,255,255,.25); text-shadow: none; }
.endless-label b { font-size: 20px; }

/* ---------- Partie : HUD v2 ---------- */
.hud { grid-template-columns: 44px 1fr auto 44px; }
.mode-label { color: var(--brume); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.score { font-size: 40px; }
.moves-orb { width: 54px; height: 54px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at 40% 35%, rgba(255,255,255,.18), rgba(255,255,255,.04) 70%); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 60%, transparent), 0 0 24px -6px var(--accent); }
.moves-orb b { font-family: var(--display); font-weight: 900; font-size: 19px; line-height: 1; font-variant-numeric: tabular-nums; }
.moves-orb small { font-size: 10px; color: var(--brume); margin-top: 1px; }
.moves-orb.low { box-shadow: inset 0 0 0 1.5px #ff6a7a, 0 0 24px -4px #ff4a60; animation: bump .8s ease infinite; }
.moves-orb[hidden] { display: none; }
.goals { display: flex; justify-content: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.goal { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px 0 5px; border-radius: 999px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); font-family: var(--display); font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.goal canvas { width: 26px; height: 26px; }
.goal.done { background: rgba(120,255,190,.12); box-shadow: inset 0 0 0 1px rgba(120,255,190,.45); }
.goal.done::after { content: '✓'; color: #7cffbe; }
.goal.tick { animation: bump .35s ease; }
.goals[hidden] { display: none; }
.spectrum { margin-top: 10px; }
.boosters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding-top: 8px; }
.boost { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px 0; font-size: 11.5px; color: var(--brume); }
.boost .lens { width: 46px; height: 46px; }
.boost .b-count { position: absolute; top: 0; left: calc(50% + 12px); min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #f1ecff; color: #170f35; font: 700 11px/20px var(--display); font-style: normal; }
.boost .b-count.zero { background: rgba(255,255,255,.12); color: var(--brume); }
.boost.empty .lens { filter: grayscale(.85) brightness(.6); box-shadow: none; }
.boost:disabled { opacity: .3; }
.boost.armed .lens { box-shadow: 0 0 0 3px #fff, 0 0 30px #fff; }
.boost.urgent .lens::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(184,150,255,.9); animation: ripple 1.2s ease-out infinite; }
.boost[hidden] { display: none; }
.boosters.three { grid-template-columns: repeat(3, 1fr); }
.target-bar { position: absolute; left: 12px; right: 12px; top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 16px;
  background: rgba(16,11,41,.9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); font-size: 14px; z-index: 3; }
.target-bar[hidden] { display: none; }
.link.tight { margin: 0; padding: 6px 10px; }

/* coach du tutoriel */
.coach { position: relative; margin-top: 12px; padding: 14px 16px; border-radius: 20px; z-index: 4;
  background: linear-gradient(180deg, rgba(42,32,99,.96), rgba(22,16,56,.96)); box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 20px 50px -10px rgba(0,0,0,.6); pointer-events: none; }
.coach p { margin: 0; font-size: 15px; line-height: 1.45; }
.coach p b { color: var(--accent); font-weight: 600; }
.coach .btn { pointer-events: auto; margin-top: 12px; width: 100%; }
.coach[hidden] { display: none; }
.btn.small { height: 44px; font-size: 14px; }
.btn.wide { width: 100%; }

/* feuilles v2 */
.sheet { max-height: 92%; overflow-y: auto; }
.final.small { font-size: 34px; margin-top: 6px; }
.stars-big { display: flex; justify-content: center; gap: 10px; margin: 12px 0 2px; }
.stars-big svg { width: 44px; height: 44px; }
.stars-big svg.mid { width: 56px; height: 56px; margin-top: -10px; }
.stars-big .on { filter: drop-shadow(0 0 10px rgba(255,200,80,.8)); animation: starIn .5s cubic-bezier(.2,1.4,.4,1) backwards; }
.stars-big .on:nth-child(2) { animation-delay: .25s; } .stars-big .on:nth-child(3) { animation-delay: .5s; }
@keyframes starIn { from { transform: scale(0) rotate(-40deg); opacity: 0; } }
.stars-big[hidden] { display: none; }
.gains { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: -4px 0 18px; }
.gains span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.06); font-size: 13px; }
.gains span b { font-family: var(--display); font-weight: 700; }
.gains .shard { width: 13px; height: 13px; }
.share-preview { margin: -6px auto 16px; padding: 10px 14px; max-width: 260px; border-radius: 14px; background: rgba(0,0,0,.25); font: 14px/1.35 var(--body); white-space: pre-wrap; text-align: left; }
.share-preview[hidden] { display: none; }
.pause-goals { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.level-sheet .lv-orb { width: 72px; height: 72px; margin: -6px auto 6px; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #fff 0 8%, var(--cc) 40%, color-mix(in srgb, var(--cc) 40%, #10062a) 100%); box-shadow: 0 0 40px var(--cc); }
.lv-intro { color: var(--brume); font-size: 14px; line-height: 1.45; margin: 10px auto 0; max-width: 32ch; }
.lv-goals { list-style: none; padding: 0; margin: 16px 0 6px; display: grid; gap: 8px; }
.lv-goals li { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 15px; }
.lv-goals canvas { width: 30px; height: 30px; }
.lv-moves { color: var(--brume); font-size: 13.5px; margin: 6px 0 20px; }
.stars-big.dim svg { width: 26px; height: 26px; }
.gift-sheet canvas { width: 120px; height: 120px; margin: -10px auto 0; display: block; }

/* présentation d'une orbe spéciale */
.intro-card { position: absolute; left: 12px; right: 12px; bottom: calc(var(--sa-b) + 14px); z-index: 30; display: grid; grid-template-columns: 60px 1fr; gap: 6px 14px; align-items: center; padding: 16px;
  border-radius: 24px; background: linear-gradient(180deg, #2a2063, #171040); box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 30px 60px -10px rgba(0,0,0,.7); animation: rise .45s cubic-bezier(.2,.9,.25,1); }
.intro-card[hidden] { display: none; }
.intro-card canvas { width: 60px; height: 60px; }
.intro-card b { font-family: var(--display); font-size: 16px; }
.intro-card p { margin: 4px 0 0; color: var(--brume); font-size: 14px; line-height: 1.4; }
.intro-card .btn { grid-column: 1 / -1; margin-top: 8px; }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } }

/* bandeau d'événements de progression */
.ticker { position: absolute; left: 0; right: 0; top: calc(var(--sa-t) + 66px); z-index: 40; display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; }
.tick-item { display: inline-flex; align-items: center; gap: 8px; max-width: calc(100% - 32px); padding: 9px 14px; border-radius: 999px; font-size: 13.5px;
  background: rgba(22,16,56,.94); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 10px 30px -8px rgba(0,0,0,.6); animation: tickIn 3.4s ease forwards; }
.tick-item b { font-family: var(--display); font-weight: 700; color: #9fe8ff; white-space: nowrap; }
.tick-item.rank { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 60%, transparent), 0 0 30px -6px var(--accent); }
.tick-item.ach i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
@keyframes tickIn { 0% { opacity: 0; transform: translateY(-14px); } 10%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-8px); } }

@media (max-height: 700px) {
  .hero { min-height: 70px; }
  .title { font-size: 44px; }
  .adv-card { min-height: 84px; }
  .moons { margin-top: 8px; }
  .score { font-size: 32px; }
  .boost .lens { width: 40px; height: 40px; }
}

/* ---------- Défi du jour : série (flamme dessinée, pas d'emoji), partage ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.flame { width: 12px; height: 12px; fill: var(--accent); filter: drop-shadow(0 0 4px color-mix(in srgb, var(--accent) 70%, transparent)); vertical-align: -1px; margin-right: 2px; }
.defi-serie { color: var(--lin); font-weight: 600; font-variant-numeric: tabular-nums; }
.defi-line { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin: -6px 0 16px; color: var(--brume); font-size: 13px; }
.defi-line b { color: var(--lin); font-family: var(--display); font-weight: 700; font-variant-numeric: tabular-nums; }
.defi-line .defi-serie { font-weight: 400; }
.defi-line .flame { width: 15px; height: 15px; margin-right: 5px; vertical-align: -2px; }
.defi-line .hot .flame { animation: flicker 1.6s ease-in-out infinite alternate; transform-origin: 50% 90%; }
@keyframes flicker { to { transform: scale(1.12) rotate(-4deg); filter: drop-shadow(0 0 8px var(--accent)); } }
.defi-line[hidden], .share-manual[hidden] { display: none; }
.share-manual { display: block; margin: -6px auto 16px; max-width: 280px; color: var(--brume); font-size: 13px; text-align: left; }
.share-manual textarea { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 0; border-radius: 14px; resize: none;
  background: rgba(0,0,0,.3); color: var(--lin); font: 14px/1.35 var(--body); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.share-manual textarea:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.share-status { min-height: 1.2em; margin: 12px 0 -4px; color: #9fe8ff; font-size: 13px; }
.share-status:empty { margin: 0; min-height: 0; }
@media (prefers-reduced-motion: reduce) { .defi-line .hot .flame { animation: none; } }

/* ---------- 2.2 : langue, partage en image, autres jeux ---------- */
.lang-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 8px 10px 8px 16px; }
.lang-row > span { font-size: 15px; }
.lang-row small { display: block; color: var(--brume); font-size: 12px; margin-top: 2px; }
.seg { display: inline-flex; padding: 4px; border-radius: 14px; background: rgba(0,0,0,.25); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.seg button { height: 38px; padding: 0 14px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--brume); transition: background .2s, color .2s; }
.seg button[aria-pressed="true"] { color: #22140a; background: linear-gradient(180deg, #ffe7a8, var(--accent)); box-shadow: 0 6px 18px -8px var(--accent); }
.actions.defi .btn { font-size: 13.5px; line-height: 1.15; padding: 0 10px; text-align: center; }
.actions.defi .btn svg { flex: none; }
.actions.defi #replayBtn { grid-column: 1 / -1; }
.autres { padding: 4px 0; }
.autre { display: grid; grid-template-columns: 40px 1fr 20px; align-items: center; gap: 14px; min-height: 68px; padding: 10px 14px 10px 16px; color: var(--lin); text-decoration: none; }
.autre + .autre { border-top: 1px solid var(--ligne); }
.autre i { width: 40px; height: 40px; border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #fff 0 9%, var(--j) 42%, color-mix(in srgb, var(--j) 35%, #10062a) 100%);
  box-shadow: 0 0 22px -4px var(--j); }
.autre b { display: block; font-family: var(--display); font-weight: 700; font-size: 15px; }
.autre small { display: block; color: var(--brume); font-size: 13px; line-height: 1.35; margin-top: 2px; }
.autre svg { width: 20px; height: 20px; fill: none; stroke: var(--brume); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.autre:active { background: rgba(255,255,255,.04); }
.autre:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }
.tile-name { line-height: 1.15; }
html[lang="en"] .tile.daily .tile-name { font-size: 13px; }
.calm .calm-hide, .calm .defi-serie { display: none !important; }
.calm-chip { display: block; margin: 0 auto 12px; padding: 7px 16px; border-radius: 999px; border: 0; font: inherit; font-size: 13px; color: var(--brume); background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); cursor: pointer; }
.calm-chip[aria-pressed="true"] { color: var(--lin); background: rgba(140,200,255,.16); box-shadow: inset 0 0 0 1px rgba(140,200,255,.55); }
