/* Site vitrine de Bloc Flush. Couleurs et matières reprises du jeu (src/styles.css, felts.js, ui/skins.css) :
   feutre vert, cuir cousu, or des boutons, violet des gemmes, quatre couleurs de blocs avec leur forme. */
@font-face { font-family: 'Fredoka'; font-weight: 600; font-display: swap; src: url(fredoka-600.woff2) format('woff2'); }
@font-face { font-family: 'Fredoka'; font-weight: 700; font-display: swap; src: url(fredoka-700.woff2) format('woff2'); }

:root {
  --f1: #146043; --f2: #0f4d35; --f3: #0a3a28; --grid: #0c4330;
  --cream: #f5ead0; --muted: #dccdaa; --gold: #f3c350;
  --leather1: #63341a; --leather2: #3b1d0c;
  --stitch: rgba(236, 196, 136, 0.45);
  --gem: #c282f7;
  --display: 'Fredoka', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --sym: 'Apple Symbols', 'Segoe UI Symbol', 'DejaVu Sans', serif;
  --gut: 16px;
  color-scheme: dark;
}
@media (min-width: 768px) { :root { --gut: 32px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0; color: var(--cream); font: 17px/1.55 var(--text); overflow-x: hidden;
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.055) 0.8px, transparent 1.3px) 0 0 / 3px 3px,
    radial-gradient(circle at 2px 2px, rgba(0, 0, 0, 0.16) 0.9px, transparent 1.4px) 0 0 / 5px 5px,
    linear-gradient(180deg, var(--f1) 0, var(--f2) 1100px, var(--f2) 60%, var(--f3) 100%);
  background-color: var(--f2);
}
img, svg, video { display: block; max-width: 100%; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #ffe08a; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 20px; background: var(--gold); color: #4f2e00; font-weight: 700; }
.skip:focus { top: 8px; }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gut); }

h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.9rem); line-height: 1.02; letter-spacing: -0.01em; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.3); }
h3 { font-size: 1.45rem; line-height: 1.15; font-weight: 600; }
p { margin: 0; }
.sub { margin-top: 16px; max-width: 34em; color: var(--muted); font-size: 1.1rem; }

/* ---------- cuir cousu (cartes du jeu) ---------- */
.leather {
  position: relative; border-radius: 26px; color: #f6e7c4;
  background: linear-gradient(180deg, var(--leather1), var(--leather2));
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 210, 150, 0.3), inset 0 -3px 0 rgba(0, 0, 0, 0.35);
}
.leather::before { content: ''; position: absolute; inset: 6px; border-radius: 20px; border: 1.5px dashed var(--stitch); pointer-events: none; }

/* ---------- blocs (ui/Block.jsx, styles.css du jeu) ---------- */
.blk {
  position: absolute; inset: 0; display: grid; place-items: center; border-radius: 22%;
  font-family: var(--sym); font-style: normal; line-height: 1; font-size: var(--bf, 20px);
  background: linear-gradient(160deg, var(--hi), var(--k) 55%, var(--lo));
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.6), inset 0 -3px 0 rgba(0, 0, 0, 0.3), 0 2px 3px rgba(0, 0, 0, 0.5);
}
.blk::after { content: ''; position: absolute; left: 10%; right: 10%; top: 7%; height: 38%; border-radius: 6px 6px 12px 12px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0)); pointer-events: none; }
.blk b { position: relative; z-index: 1; font-weight: 400; }
.R { --hi: #f26473; --k: #cf2a40; --lo: #a3182c; color: #7a1020; }
.A { --hi: #ffe08a; --k: #f4b52c; --lo: #d08c10; color: #8f5c00; }
.B { --hi: #66a0ff; --k: #2d66d8; --lo: #1c469e; color: #0e2d6e; }
.O { --hi: #565664; --k: #2a2a33; --lo: #17171d; color: #a0a0b2; }
.blk.J { background: conic-gradient(from 210deg at 50% 55%, #ff8fb0, #ffd66e, #8ff0b8, #82cfff, #c29bff, #ff8fb0); color: #fff; text-shadow: 0 1px 2px rgba(80, 40, 120, 0.5); }
.form { display: block; width: 0.92em; height: 0.92em; }
.form::before { content: ''; position: absolute; inset: 0; background: currentColor; -webkit-mask: var(--f) center / contain no-repeat; mask: var(--f) center / contain no-repeat; }
.form::after { content: ''; position: absolute; inset: 0; z-index: -1; transform: translateY(1px); background: rgba(255, 255, 255, 0.35); -webkit-mask: var(--f) center / contain no-repeat; mask: var(--f) center / contain no-repeat; }
.fm-leaf { --f: var(--form-leaf); } .fm-star { --f: var(--form-star); } .fm-drop { --f: var(--form-drop); } .fm-moon { --f: var(--form-moon); }

/* ---------- en-tête ---------- */
.top { display: flex; align-items: center; gap: 14px; padding-top: 18px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; font: 700 1.35rem/1 var(--display); }
.brand img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35); }
.tagline { display: none; color: var(--muted); font-size: 0.95rem; }
.lang { margin-inline-start: auto; color: var(--cream); font-weight: 600; font-size: 0.95rem; padding: 8px 14px; border-radius: 20px; text-decoration: none; box-shadow: inset 0 0 0 1.5px rgba(236, 196, 136, 0.45); }
.lang:hover { color: var(--cream); background: rgba(0, 0, 0, 0.2); }
@media (min-width: 900px) { .tagline { display: block; } }

/* ---------- héros : la grille jouable ---------- */
.hero {
  display: grid; gap: 22px 56px; padding-top: 18px; padding-bottom: 72px;
  grid-template-areas: 'text' 'play' 'cta';
}
.hero-text { grid-area: text; }
.play { grid-area: play; position: relative; width: 100%; max-width: 560px; justify-self: center; }
.cta { grid-area: cta; }
h1 {
  font-size: clamp(2.3rem, 1.2rem + 4.4vw, 5.4rem); line-height: 0.98; letter-spacing: -0.015em; max-width: 9.5em;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.32), 0 18px 40px rgba(0, 0, 0, 0.25);
}
.lead { margin-top: 18px; max-width: 30em; font-size: clamp(1.08rem, 1rem + 0.4vw, 1.3rem); color: #efe2c2; }
@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 560px); grid-template-areas: 'text play' 'cta play'; grid-template-rows: auto 1fr; align-items: start; padding-top: 48px; padding-bottom: 110px; }
  .hero-text { align-self: end; padding-top: 40px; }
  .play { justify-self: end; max-width: clamp(400px, 100vh - 250px, 560px); }
}

.hud { display: flex; align-items: baseline; justify-content: space-between; padding: 0 6px 10px; }
.hud span { font: 600 1.05rem var(--display); color: var(--muted); }
.score { font: 700 clamp(2.2rem, 1.6rem + 2vw, 3rem)/1 var(--display); color: #fff4d8; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.35); font-variant-numeric: tabular-nums; }
.score.bump { animation: bump 0.35s ease; }
@keyframes bump { 40% { transform: scale(1.18); } }

.rim {
  position: relative; padding: clamp(8px, 2.2vw, 13px); border-radius: clamp(18px, 4vw, 28px);
  background: linear-gradient(150deg, #7a4524 0%, #4a2511 45%, #2e160a 100%);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.5), inset 0 2px 0 rgba(255, 214, 160, 0.28), inset 0 -3px 0 rgba(0, 0, 0, 0.45);
}
.rim::before { content: ''; position: absolute; inset: 4px; border-radius: inherit; border: 1.5px dashed rgba(236, 196, 136, 0.5); pointer-events: none; }
.grid {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: clamp(3px, 0.9vw, 5px); padding: clamp(3px, 0.9vw, 5px);
  border-radius: clamp(12px, 2.6vw, 17px); container-type: inline-size;
  background: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.05) 0.8px, transparent 1.3px) 0 0 / 3px 3px, var(--grid);
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(0, 0, 0, 0.4);
}
.cell { position: relative; aspect-ratio: 1; border-radius: 20%; background: rgba(0, 0, 0, 0.2); box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.35), 0 1px 0 rgba(255, 255, 255, 0.05); }
.grid .blk { --bf: 5.4cqw; }
.gh { position: absolute; inset: 0; border-radius: 20%; z-index: 2; background: rgba(244, 181, 44, 0.3); box-shadow: inset 0 0 0 2px rgba(255, 220, 130, 0.95), 0 0 10px rgba(255, 200, 80, 0.35); pointer-events: none; }
.gh.bad { background: rgba(0, 0, 0, 0.25); box-shadow: inset 0 0 0 2px rgba(246, 231, 196, 0.55); }
.blk.lit { filter: brightness(1.2) saturate(1.1); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.75), 0 0 0 2px #ffeab0, 0 0 16px 4px rgba(255, 212, 110, 0.8); z-index: 3; }
.blk.drop { animation: drop 0.22s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes drop { from { transform: scale(0.82); } }
.fx { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.chip {
  position: absolute; left: 50%; display: flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 0.35em 0.8em; border-radius: 999px; font: 700 clamp(1.15rem, 0.8rem + 1.6vw, 1.7rem)/1 var(--display);
  background: linear-gradient(180deg, #ffe596, #f5b93a 55%, #d8901a); color: #4f2e00;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.7), 0 3px 0 #8f5a0a, 0 10px 24px rgba(0, 0, 0, 0.45);
  transform: translate(-50%, -50%);
}
.chip.royal { font-size: clamp(1.5rem, 1rem + 2.4vw, 2.4rem); }
.chip svg { width: 1.05em; height: 1.05em; }
.gain { position: absolute; left: 50%; font: 700 clamp(2rem, 1.2rem + 3.6vw, 3.6rem)/1 var(--display); color: #ffe596; transform: translate(-50%, -50%); -webkit-text-stroke: 7px #5a3203; paint-order: stroke fill; text-shadow: 0 4px 0 #3a1f02, 0 0 22px rgba(0, 0, 0, 0.45); white-space: nowrap; }
.pt { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; background: var(--k); -webkit-mask: var(--f) center / contain no-repeat; mask: var(--f) center / contain no-repeat; }
.pt.J { background: conic-gradient(#ff8fb0, #ffd66e, #8ff0b8, #82cfff, #c29bff, #ff8fb0); -webkit-mask: var(--form-star) center / contain no-repeat; mask: var(--form-star) center / contain no-repeat; }

.tray { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 14px; min-height: 124px; }
.slot {
  position: relative; display: grid; place-items: center; width: min(200px, 56%); height: 88px; border-radius: 22px;
  background: rgba(0, 0, 0, 0.16); box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.35);
}
.piece { display: grid; gap: 4px; padding: 8px; border-radius: 16px; touch-action: none; cursor: grab; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.piece:active { cursor: grabbing; }
.piece i.blk { position: relative; inset: auto; width: var(--pc); height: var(--pc); border-radius: 22%; --bf: calc(var(--pc) * 0.5); }
.piece.lifted { opacity: 0; }
.piece.deal { animation: deal 0.4s cubic-bezier(0.3, 1.5, 0.5, 1) both; }
@keyframes deal { from { transform: translateY(30px) scale(0.6); opacity: 0; } }
.piece.nudge { animation: nudge 1.6s ease-in-out 2; }
@keyframes nudge { 0%, 100% { transform: none; } 30% { transform: translateY(-6px) rotate(-3deg); } 60% { transform: translateY(0) rotate(2deg); } }
.drag { position: fixed; left: 0; top: 0; z-index: 40; display: grid; pointer-events: none; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.55)); will-change: transform; }
.drag i.blk { position: relative; inset: auto; --bf: calc(var(--pc) * 0.45); }
.hand { position: fixed; left: 0; top: 0; z-index: 41; width: 54px; height: 54px; pointer-events: none; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.5)); will-change: transform; }
.hint { color: var(--muted); font-size: 0.98rem; text-align: center; }
.done { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; text-align: center; }
.done[hidden] { display: none; }
.done p { font: 600 1.15rem/1.3 var(--display); color: #fff1cc; }
.replay { padding: 10px 20px; border-radius: 24px; font-weight: 600; color: #f1dca8; background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4)); box-shadow: inset 0 0 0 2px rgba(236, 196, 136, 0.5); }
.replay:hover { background: rgba(0, 0, 0, 0.45); }

.cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
@media (max-width: 959px) { .cta { align-items: center; text-align: center; } }
@media (min-width: 960px) { .cta { padding-top: 28px; } }
/* Badge officiel d'Apple, jamais modifié : la lueur est derrière lui, hors de sa marge libre (1/4 de sa hauteur) */
.badge { position: relative; display: inline-block; padding: 14px; margin: -14px; border-radius: 24px; }
.badge img { position: relative; height: 56px; width: auto; }
.badge::before { content: ''; position: absolute; inset: -6px; border-radius: 30px; background: radial-gradient(closest-side, rgba(255, 214, 110, 0.75), rgba(255, 214, 110, 0)); opacity: 0; transform: scale(0.8); transition: opacity 0.6s, transform 0.6s; }
.cta.glow .badge::before { opacity: 1; transform: scale(1.12); animation: halo 2.2s ease-in-out 0.6s 3 alternate; }
@keyframes halo { to { opacity: 0.45; transform: scale(1.3); } }
.cta.glow .badge img { animation: ping 0.6s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes ping { 50% { transform: scale(1.07); } }
.free { color: var(--muted); font-size: 0.98rem; }

/* ---------- la règle ---------- */
.rules { padding-top: 32px; padding-bottom: 96px; }
.rule-list { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 820px) { .rule-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.rule { padding: 22px 22px 18px; display: flex; flex-direction: column; gap: 8px; }
.rule p { color: #ead9b4; max-width: 28em; }
.rule h3 { margin-top: 10px; font-size: 1.6rem; color: #fff1cc; }
.mini { position: relative; }
.mini-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; padding: 4px; border-radius: 12px; container-type: inline-size; background: var(--grid); box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.6); }
.mini-grid .blk { --bf: 5.6cqw; }
.mini .cell .blk.in { opacity: 0; transform: translateY(-140%); }
.mini.go .cell .blk.in { opacity: 1; transform: none; transition: transform 0.38s cubic-bezier(0.3, 1.3, 0.5, 1), opacity 0.2s; }
.mini.lit .ln .blk { filter: brightness(1.2) saturate(1.1); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.75), 0 0 0 2px #ffeab0, 0 0 12px 3px rgba(255, 212, 110, 0.75); z-index: 2; }
.mini.out .ln .blk { opacity: 0; transform: scale(0.2); transition: transform 0.32s ease-in, opacity 0.32s ease-in; }
.mini.out .ln:nth-child(8n+2) .blk { transition-delay: 0.03s; } .mini.out .ln:nth-child(8n+3) .blk { transition-delay: 0.06s; }
.mini.out .ln:nth-child(8n+4) .blk { transition-delay: 0.09s; } .mini.out .ln:nth-child(8n+5) .blk { transition-delay: 0.12s; }
.mini.out .ln:nth-child(8n+6) .blk { transition-delay: 0.15s; } .mini.out .ln:nth-child(8n+7) .blk { transition-delay: 0.18s; }
.mini.out .ln:nth-child(8n) .blk { transition-delay: 0.21s; }
.mini.reset .blk { transition: opacity 0.4s !important; transition-delay: 0s !important; }
.mini-tag { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0.6); opacity: 0; transition: opacity 0.2s, transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1); }
.mini-tag.plain { font: 700 2rem/1 var(--display); color: #fff4d8; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.45); }
.mini-tag.flush, .mini-tag.royal { padding: 0.35em 0.75em; border-radius: 999px; font: 700 1.2rem/1 var(--display); white-space: nowrap; background: linear-gradient(180deg, #ffe596, #f5b93a 55%, #d8901a); color: #4f2e00; box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.7), 0 3px 0 #8f5a0a, 0 8px 18px rgba(0, 0, 0, 0.4); }
.mini-tag.royal { top: 34%; }
.mini.tag .mini-tag { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.again { align-self: flex-start; margin-top: 6px; padding: 6px 14px; border-radius: 16px; font-size: 0.92rem; color: #f1dca8; box-shadow: inset 0 0 0 1.5px rgba(236, 196, 136, 0.45); }
.again:hover { background: rgba(0, 0, 0, 0.22); }

/* ---------- les mondes ---------- */
.worlds { padding-bottom: 104px; }
.worlds-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.strip-nav { display: none; gap: 10px; flex: none; }
@media (hover: hover) and (pointer: fine) { .strip-nav { display: flex; } }
.nav { width: 52px; height: 52px; border-radius: 26px; display: grid; place-items: center; color: #f1dca8; background: linear-gradient(180deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.4)); box-shadow: inset 0 0 0 1.5px rgba(232, 196, 120, 0.45); }
.nav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.nav:hover:not(:disabled) { background: rgba(0, 0, 0, 0.45); }
.nav:disabled { opacity: 0.35; cursor: default; }
.strip {
  list-style: none; margin: 36px 0 0; display: flex; gap: 18px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut); scrollbar-width: none;
  padding: 8px max(var(--gut), calc((100vw - 1240px) / 2 + var(--gut))) 28px;
}
.strip::-webkit-scrollbar { display: none; }
.strip.grabbing { scroll-snap-type: none; cursor: grabbing; }
.strip:focus-visible { outline-offset: -3px; }
.world {
  position: relative; flex: none; display: flex; flex-direction: column; width: clamp(250px, 70vw, 284px); scroll-snap-align: start;
  border-radius: 28px; overflow: hidden; background: linear-gradient(180deg, var(--leather1), var(--leather2));
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 210, 150, 0.3);
}
/* décor du monde comme dans le jeu : le haut (ciel, lointain) et le bas (premier plan), le milieu étant caché par la grille */
.world-view { position: relative; aspect-ratio: 2 / 3; background: var(--wbg); overflow: hidden; }
.wv-top, .wv-bot { position: absolute; left: 0; right: 0; overflow: hidden; }
.wv-top { top: 0; height: 46%; }
.wv-bot { bottom: 0; height: 58%; -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%); mask-image: linear-gradient(180deg, transparent, #000 12%); }
.world-view img { position: absolute; left: 0; width: 100%; height: auto; max-width: none; -webkit-user-drag: none; user-select: none; }
.wv-top img { top: 0; } .wv-bot img { bottom: 0; }
.world-info { position: relative; flex: 1; padding: 16px 20px 20px; color: #f6e7c4; }
.world::after { content: ''; position: absolute; inset: 6px; border-radius: 22px; border: 1.5px dashed var(--stitch); pointer-events: none; }
.world-lv { font-size: 0.85rem; color: #e3cc98; }
.world h3 { font-size: 1.4rem; margin-top: 2px; color: #fff1cc; }
.world-rule { margin-top: 6px; font-size: 0.92rem; line-height: 1.4; color: #efdfbd; }
.world-rule strong { color: #fff1cc; font-weight: 650; }
.world-pal { display: flex; gap: 6px; margin-top: 12px; }
.world-pal .blk, .forms-row .blk, .a11y .blk, .lc-blocks .blk { position: relative; inset: auto; width: 26px; height: 26px; border-radius: 7px; --bf: 13px; flex: none; }

/* ---------- le duel ---------- */
.duel { display: grid; gap: 48px; align-items: center; padding-bottom: 120px; }
.duel-text p { margin-top: 16px; max-width: 30em; color: #efe2c2; font-size: 1.08rem; }
.duel-text p:last-child { color: var(--muted); }
.duel-art { position: relative; margin: 0; justify-self: center; padding-bottom: 36px; }
@media (min-width: 900px) { .duel { grid-template-columns: minmax(0, 1fr) auto; gap: 64px; } .duel-art { margin-inline-end: 48px; } }
.phone {
  position: relative; width: 290px; aspect-ratio: 290 / 560; padding: 11px; border-radius: 46px; background: #000;
  box-shadow: 0 0 0 2px #3d3d42, 0 0 0 4px #1e1e22, 0 30px 60px rgba(0, 0, 0, 0.5);
}
.phone::after { content: ''; position: absolute; top: 20px; left: 50%; width: 82px; height: 24px; margin-left: -41px; border-radius: 12px; background: #000; z-index: 3; }
.screen { position: relative; height: 100%; border-radius: 36px; overflow: hidden; }
.chat { display: flex; flex-direction: column; gap: 8px; padding: 58px 12px 92px; background: #f2f2f6; color: #000; font-size: 15px; line-height: 1.32; }
.chat-head { margin-bottom: auto !important; display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 8px; font-size: 12px; color: #3c3c43; }
.av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 700 18px var(--display); color: #fff; background: linear-gradient(180deg, #a5a5ad, #85858d); }
.bubble { max-width: 84%; padding: 8px 12px; border-radius: 18px; }
.bubble.in { align-self: flex-start; background: #e4e4e9; border-bottom-left-radius: 6px; }
.bubble.out { align-self: flex-end; background: #2d66d8; color: #fff; border-bottom-right-radius: 6px; }
.bubble.link { padding: 0; overflow: hidden; width: 84%; }
.link-card {
  display: grid; justify-items: center; gap: 2px; padding: 16px 12px 14px; text-align: center; color: var(--cream);
  background: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.06) 0.8px, transparent 1.3px) 0 0 / 3px 3px, linear-gradient(180deg, var(--f1), var(--f3));
}
.lc-title { font: 700 17px/1.1 var(--display); }
.lc-cap { font-size: 12px; color: var(--muted); margin-top: 4px; }
.lc-score { font: 700 34px/1 var(--display); color: var(--gold); text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35); }
.lc-blocks { display: flex; gap: 4px; margin-top: 6px; }
.lc-blocks .blk { width: 20px; height: 20px; border-radius: 5px; --bf: 10px; }
.lc-url { display: block; padding: 7px 12px 8px; font-size: 12px; color: #3c3c43; }
.ghost { position: absolute; left: -64px; bottom: 0; width: 240px; padding: 14px 18px 14px; transform: rotate(-3deg); }
.gh-row { display: flex; justify-content: space-between; gap: 10px; font: 600 15px/1.2 var(--display); }
.gh-row .gh-pts { color: var(--gold); font-variant-numeric: tabular-nums; }
.gh-row.you .gh-pts { color: #fff1cc; }
.gh-track { position: relative; height: 10px; margin: 8px 0; border-radius: 5px; background: rgba(0, 0, 0, 0.35); }
.gh-track div { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; }
.gh-mika { width: 82%; background: repeating-linear-gradient(90deg, rgba(241, 220, 168, 0.55) 0 6px, rgba(241, 220, 168, 0.2) 6px 10px); }
.gh-you { width: 66%; background: linear-gradient(90deg, #ffe596, #f5b93a); box-shadow: 0 0 10px rgba(255, 200, 80, 0.5); }
@media (max-width: 480px) { .ghost { left: -8px; width: 220px; } .duel-art { padding-bottom: 48px; } }

/* ---------- pour tout le monde ---------- */
.all { padding-bottom: 110px; }
.ticker { margin: 40px 0 44px; overflow: hidden; padding: 14px 0; background: rgba(0, 0, 0, 0.16); box-shadow: inset 0 1px 0 rgba(236, 196, 136, 0.18), inset 0 -1px 0 rgba(236, 196, 136, 0.18); }
.tk-track { display: flex; width: max-content; animation: tick 90s linear infinite; }
.ticker.off .tk-track, .ticker:hover .tk-track { animation-play-state: paused; }
.tk-run { display: flex; align-items: center; flex: none; }
.tk-run span { font: 700 clamp(2.4rem, 1.6rem + 3.4vw, 4.4rem)/1.2 var(--display); color: #f6e7c4; padding-inline: 0.42em; white-space: nowrap; }
.tk-run span:lang(ur), .tk-run span:lang(fa), .tk-run span:lang(ar) { font-family: 'Geeza Pro', var(--display); }
.tk-sep { position: relative; width: 26px; height: 26px; border-radius: 7px; flex: none; }
.tk-sep.blk { position: relative; inset: auto; --bf: 14px; }
@keyframes tick { to { transform: translateX(-50%); } }
.all-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 860px) { .all-grid { grid-template-columns: auto minmax(0, 1fr); gap: 72px; } }
.forms { display: grid; justify-items: start; gap: 8px; }
.forms-row { display: flex; gap: 12px; }
.forms-row .blk { width: 64px; height: 64px; border-radius: 15px; --bf: 32px; }
.forms-cap { font-size: 0.9rem; color: var(--muted); margin-bottom: 12px; }
.a11y { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.a11y li { display: flex; align-items: center; gap: 14px; font-size: 1.08rem; max-width: 32em; }
.a11y .blk { width: 30px; height: 30px; --bf: 15px; }

/* ---------- clips ---------- */
.clips { padding-bottom: 110px; }
.clip-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px 64px; margin-top: 40px; }
.clip { margin: 0; width: 260px; }
.phone.small { width: 260px; aspect-ratio: 260 / 448; padding: 9px; border-radius: 38px; }
.phone.small::after { display: none; }
.phone.small .screen { border-radius: 30px; background: #0a3a28; }
.clip video { width: 100%; height: 100%; object-fit: cover; }
.clip-btn { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; border-radius: inherit; }
.clip-ic { width: 76px; height: 76px; border-radius: 38px; display: grid; place-items: center; background: linear-gradient(180deg, #ffe596, #f5b93a 55%, #d8901a); color: #4f2e00; box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.7), 0 4px 0 #8f5a0a, 0 10px 22px rgba(0, 0, 0, 0.45); transition: opacity 0.25s, transform 0.25s; }
.clip-ic svg { width: 34px; height: 34px; fill: currentColor; margin-left: 4px; }
.clip.playing .clip-ic { opacity: 0; transform: scale(0.8); }
.clip.playing .clip-btn:focus-visible .clip-ic { opacity: 0.85; }
.clip figcaption { margin-top: 16px; color: #efe2c2; font-size: 0.98rem; text-align: center; }

/* ---------- appel final, assistance, pied ---------- */
.end { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0; padding-bottom: 96px; }
.fan { display: flex; align-items: flex-end; margin-bottom: 30px; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.35)); }
.fan .blk { position: relative; inset: auto; width: 62px; height: 62px; --bf: 30px; margin: 0 -7px; border-radius: 16px; transform: translateY(var(--y)) rotate(var(--r)); }
.fan .blk:nth-child(1) { --r: -24deg; --y: 16px; } .fan .blk:nth-child(2) { --r: -12deg; --y: 4px; z-index: 1; }
.fan .blk:nth-child(3) { --r: 0deg; --y: -6px; z-index: 3; width: 80px; height: 80px; --bf: 40px; border-radius: 20px; }
.fan .blk:nth-child(4) { --r: 12deg; --y: 4px; z-index: 2; } .fan .blk:nth-child(5) { --r: 24deg; --y: 16px; z-index: 1; }
.end .sub { margin-inline: auto; margin-bottom: 30px; }
.badge.big img { height: 64px; }
.modes { margin-top: 30px; max-width: 34em; color: var(--muted); font-size: 0.98rem; }
.support { padding-bottom: 56px; max-width: 860px; }
.support h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); }
.support p { margin-top: 14px; color: #efe2c2; max-width: 40em; }
.support ul { max-width: 42em; margin: 12px 0 0; padding-inline-start: 20px; color: #e3d4b0; font-size: 0.98rem; display: grid; gap: 8px; }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding-top: 24px; padding-bottom: 40px; border-top: 1.5px dashed rgba(236, 196, 136, 0.3); color: var(--muted); font-size: 0.95rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { color: #f1dca8; }

/* ---------- défi, invitation ou événement ouvert sans l'app (challenge.js) ---------- */
.ch { max-width: 560px; margin: 12px auto 28px; padding: 30px 22px 24px; text-align: center; width: calc(100% - 2 * var(--gut)); }
.ch-title { font: 700 clamp(1.7rem, 1.3rem + 2vw, 2.3rem)/1.1 var(--display); margin: 0 0 14px; color: #fff1cc; }
.ch-goal { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 0 auto 8px; }
.ch-cap { color: #e3cc98; font-size: 15px; }
.ch-score { font: 700 64px/1.05 var(--display); color: var(--gold); font-variant-numeric: tabular-nums; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.35); }
.ch-lead { margin: 6px 0 14px; color: #f6e7c4; }
.ch-rank { list-style: none; padding: 0; margin: 0 auto 16px; max-width: 340px; text-align: start; counter-reset: rk; }
.ch-rank li { display: flex; gap: 10px; padding: 6px 12px; border-radius: 10px; counter-increment: rk; }
.ch-rank li:nth-child(odd) { background: rgba(0, 0, 0, 0.2); }
.ch-rank li::before { content: counter(rk); color: #e3cc98; min-width: 1.2em; }
.ch-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ch-pts { font-variant-numeric: tabular-nums; color: var(--gold); }
.ch-btn { position: relative; z-index: 1; display: block; width: 100%; max-width: 340px; margin: 10px auto 0; padding: 14px 16px; border-radius: 28px; font: 600 1.05rem var(--display); text-decoration: none; text-align: center; cursor: pointer; border: 0; }
.ch-store { background: linear-gradient(180deg, #ffe596, #f5b93a 55%, #d8901a); color: #4f2e00; font-size: 1.15rem; box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.7), 0 4px 0 #8f5a0a; }
.ch-store:hover { color: #4f2e00; filter: brightness(1.05); }
.ch-open, .ch-copy { background: rgba(0, 0, 0, 0.28); color: #f6e7c4; box-shadow: inset 0 0 0 1.5px rgba(240, 174, 42, 0.5); }
.ch-open:hover { color: #fff1cc; }
.ch-hint { color: #e3cc98; font-size: 14px; margin: 14px 0 0; }
.has-challenge .about { opacity: 0.7; }

/* ---------- mouvement réduit : pas de défilement continu ni de rebonds ---------- */
@media (prefers-reduced-motion: reduce) {
  .tk-track { animation: none; width: auto; }
  .tk-run { flex-wrap: wrap; justify-content: center; row-gap: 4px; }
  .tk-run + .tk-run { display: none; }
  .tk-run span { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
  .blk.drop, .piece.deal, .piece.nudge, .score.bump, .cta.glow .badge img { animation: none; }
  .cta.glow .badge::before { animation: none; }
  .mini .cell .blk.in { transform: none; }
  .mini.go .cell .blk.in { transition: opacity 0.3s; }
  .mini.out .ln .blk { transform: none; transition: opacity 0.4s; }
  .mini-tag { transform: translate(-50%, -50%); transition: opacity 0.3s; }
  .strip { scroll-behavior: auto; }
}
