/* Accueil du site : fond à lueur orange, cartes en éventail, sections qui
   apparaissent au défilement. Mêmes couleurs que l'app (palette.dart) et
   que les raretés (rarity_style.dart). Tout est servi par le site : aucune
   police ni image venue d'ailleurs. Les animations s'arrêtent quand le
   système demande de réduire les animations. */

:root {
  --glass: rgba(255, 255, 255, 0.06);
  --glass-high: rgba(255, 255, 255, 0.11);
  --glass-edge: rgba(255, 255, 255, 0.14);
  --glow: rgba(255, 122, 26, 0.45);
  --discord: #5865f2;
  --discord-light: #8891ff;
  --win: #3ddc84;
  --r-common: #8a8a8a;
  --r-uncommon: #2e9d4f;
  --r-rare: #1e78d2;
  --r-epic: #8e3bc2;
  --r-legendary: #e0a100;
  --r-unique: #ff3b4e;
  --r-ultimate: #ff5fd2;
}

@property --spin {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

body.home {
  background: var(--space);
  overflow-x: hidden;
}

/* Lueur orange en haut à gauche, comme le fond de l'app (AppBackdrop). */
body.home::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60vmax 50vmax at 8% -6%, rgba(255, 122, 26, 0.28), transparent 62%),
    radial-gradient(40vmax 40vmax at 100% 30%, rgba(88, 101, 242, 0.10), transparent 60%),
    linear-gradient(180deg, #15161c 0%, var(--space) 70%);
}

.home .wide {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Barre du haut ---------- */

.home header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(14, 15, 17, 0.72);
  border-bottom: 1px solid var(--glass-edge);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.home header.site .wrap { max-width: 1160px; }

/* ---------- Héros ---------- */

.hero2 {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 32px;
  min-height: min(720px, calc(100vh - 70px));
  padding: 40px 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px 14px;
  border: 1px solid var(--glass-edge);
  border-radius: 999px;
  background: var(--glass);
  color: var(--orange-pale, #ffe2c2);
  font-size: 14px;
  font-weight: 600;
}

.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--win);
  box-shadow: 0 0 10px var(--win);
  animation: blink 2.4s ease-in-out infinite;
}

.hero2 h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 6.2vw, 76px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -1px;
}

.hero2 h1 .accent {
  background: linear-gradient(100deg, var(--orange-light), var(--orange) 45%, #ffcf8a 70%, var(--orange));
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 6s linear infinite;
}

.hero2 .lead {
  max-width: 540px;
  margin-bottom: 28px;
  font-size: 19px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

/* Le bouton « Jouer » : la grande action de la page, même fermé. */
.play-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 26px 14px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--orange-light), var(--orange) 60%, #e5600c);
  color: var(--on-orange);
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2) inset, 0 10px 36px var(--glow);
  transition: transform 0.24s cubic-bezier(.2,.8,.2,1.2), box-shadow 0.24s;
}

.play-cta::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  border: 2px solid rgba(255, 164, 85, 0.55);
  animation: ring 2.6s ease-out infinite;
  pointer-events: none;
}

.play-cta:hover { color: var(--on-orange); transform: translateY(-2px) scale(1.02); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25) inset, 0 16px 48px var(--glow); }

.play-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 50%;
  background: var(--on-orange);
  color: var(--orange-light);
}

.play-icon svg { width: 22px; height: 22px; margin-left: 3px; }
.play-cta .lock { display: none; margin-left: 0; }

.play-text { display: flex; flex-direction: column; line-height: 1.2; }
.play-text strong { font-size: 19px; font-weight: 900; }
.play-text small { font-size: 13px; font-weight: 600; opacity: 0.8; }

/* Version web pas encore ouverte : le bouton reste en vue, mais verrouillé. */
.play-cta.is-locked {
  cursor: not-allowed;
  background: linear-gradient(180deg, rgba(255, 164, 85, 0.22), rgba(255, 122, 26, 0.14));
  color: var(--text);
  box-shadow: 0 0 0 1px rgba(255, 164, 85, 0.55) inset, 0 10px 36px rgba(255, 122, 26, 0.18);
}

.play-cta.is-locked:hover { color: var(--text); transform: none; }
.play-cta.is-locked::after { border-color: rgba(255, 164, 85, 0.3); }
.play-cta.is-locked .play-icon { background: rgba(255, 122, 26, 0.18); color: var(--orange-light); }
.play-cta.is-locked .play-icon .tri { display: none; }
.play-cta.is-locked .play-icon .lock { display: block; }
.play-cta.is-locked .play-text small { color: var(--orange-light); opacity: 1; }

.badge-soon {
  position: absolute;
  top: -11px;
  right: 16px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--on-orange);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.play-cta:not(.is-locked) .badge-soon { display: none; }

.btn-discord {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--discord);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(88, 101, 242, 0.35);
  transition: transform 0.24s cubic-bezier(.2,.8,.2,1.2), box-shadow 0.24s;
}

.btn-discord:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 36px rgba(88, 101, 242, 0.5); }
.btn-discord svg { width: 22px; height: 22px; }

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.platform {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 10px;
  border: 1px solid var(--glass-edge);
  border-radius: 14px;
  background: var(--glass);
  line-height: 1.15;
}

.platform svg { width: 26px; height: 26px; color: var(--text); }
.platform small { display: block; color: var(--silver); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.platform strong { font-size: 16px; }

/* Entrée du héros, sans JavaScript. */
.rise { opacity: 0; animation: rise 0.8s cubic-bezier(.2,.8,.2,1) forwards; }
.rise.d1 { animation-delay: 0.08s; }
.rise.d2 { animation-delay: 0.18s; }
.rise.d3 { animation-delay: 0.28s; }
.rise.d4 { animation-delay: 0.38s; }

/* ---------- Cartes (même affichage que dans l'app) ---------- */

.tcg {
  --c: var(--r-common);
  position: relative;
  width: 200px;
  aspect-ratio: 5 / 7;
  border-radius: 16px;
  padding: 3px;
  background: var(--c);
  box-shadow: 0 0 18px color-mix(in srgb, var(--c) 55%, transparent), 0 24px 50px rgba(0, 0, 0, 0.55);
}

.tcg .face {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 13px;
  background: #0b0c0f;
}

.tcg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Reflet qui suit l'inclinaison (variables posées par home.js). */
.tcg .face::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.85) 100%),
    radial-gradient(circle at var(--gx, 30%) var(--gy, 20%), rgba(255, 255, 255, 0.22), transparent 45%);
  pointer-events: none;
}

.tcg .pill {
  position: absolute;
  z-index: 1;
  top: 9px;
  left: 9px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px 3px 7px;
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.72);
  border: 1px solid color-mix(in srgb, var(--c) 70%, transparent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(6px);
}

.tcg .pill::before {
  content: "";
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  border-radius: 2px;
  background: var(--c);
}

.tcg .name {
  position: absolute;
  z-index: 1;
  left: 12px;
  right: 12px;
  bottom: 11px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.15;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.tcg .name small {
  display: block;
  color: var(--silver);
  font-size: 11px;
  font-weight: 600;
}

.tcg.r-uncommon { --c: var(--r-uncommon); }
.tcg.r-rare { --c: var(--r-rare); }
.tcg.r-epic { --c: var(--r-epic); }
.tcg.r-legendary { --c: var(--r-legendary); }
.tcg.r-unique { --c: var(--r-unique); }

/* Ultime : liseré arc-en-ciel qui tourne. */
.tcg.r-ultimate {
  --c: var(--r-ultimate);
  background: conic-gradient(from var(--spin), #ff5f5f, #ffb347, #fff275, #6bff8e, #5fd4ff, #8b7bff, #ff5fd2, #ff5f5f);
  animation: spin 4s linear infinite;
}

/* ---------- Éventail du héros ---------- */

.fan-stage {
  position: relative;
  height: 520px;
  perspective: 1200px;
}

.fan {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(var(--ty, 0deg)) rotateY(var(--tx, 0deg));
  transition: transform 0.3s ease-out;
}

.fan .slot {
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -140px 0 0 -100px;
  transform: translate(var(--x), var(--y)) rotate(var(--r));
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1.15);
  opacity: 0;
  animation: deal 0.9s cubic-bezier(.2,.8,.2,1.1) forwards;
}

.fan .slot .tcg { animation: float 6s ease-in-out infinite; }

.fan .s1 { --x: -190px; --y: 40px; --r: -18deg; animation-delay: 0.25s; z-index: 1; }
.fan .s2 { --x: -95px; --y: 0px; --r: -9deg; animation-delay: 0.35s; z-index: 2; }
.fan .s3 { --x: 0px; --y: -20px; --r: 0deg; animation-delay: 0.55s; z-index: 5; }
.fan .s4 { --x: 95px; --y: 0px; --r: 9deg; animation-delay: 0.45s; z-index: 3; }
.fan .s5 { --x: 190px; --y: 40px; --r: 18deg; animation-delay: 0.3s; z-index: 1; }

.fan .s1 .tcg { animation-delay: -1s; }
.fan .s2 .tcg { animation-delay: -3s; }
.fan .s4 .tcg { animation-delay: -2s; }
.fan .s5 .tcg { animation-delay: -4s; }
.fan .s3 .tcg { transform: scale(1.12); animation-name: float-big; }

.fan-stage:hover .s1 { --x: -230px; --r: -22deg; }
.fan-stage:hover .s2 { --x: -118px; --r: -11deg; }
.fan-stage:hover .s4 { --x: 118px; --r: 11deg; }
.fan-stage:hover .s5 { --x: 230px; --r: 22deg; }

.fan-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 420px;
  height: 420px;
  margin: -210px 0 0 -210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 26, 0.35), transparent 65%);
  filter: blur(10px);
  animation: breathe 5s ease-in-out infinite;
}

/* ---------- Bandeau de cartes qui défile ---------- */

.marquee {
  position: relative;
  overflow: hidden;
  padding: 26px 0;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: scroll 60s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .tcg { width: 150px; border-radius: 13px; transition: transform 0.3s cubic-bezier(.2,.8,.2,1.2); }
.marquee .tcg .face { border-radius: 10px; }
.marquee .tcg:hover { transform: translateY(-10px) rotate(-2deg) scale(1.05); }
.marquee .tcg .name { font-size: 13px; }

/* ---------- Sections ---------- */

.section { padding: 72px 0; }

.section-head {
  max-width: 640px;
  margin: 0 auto 36px;
  text-align: center;
}

.kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.section-head h2,
.split h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  line-height: 1.1;
}

.section-head p { color: var(--silver); font-size: 18px; margin: 0; }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature {
  position: relative;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--glass-edge);
  border-radius: 22px;
  background: var(--glass);
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1.2), border-color 0.3s, background 0.3s;
}

.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 122, 26, 0.14), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature:hover { transform: translateY(-4px); border-color: rgba(255, 164, 85, 0.45); background: var(--glass-high); }
.feature:hover::before { opacity: 1; }

.feature .icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 164, 85, 0.25), rgba(255, 122, 26, 0.08));
  color: var(--orange-light);
  box-shadow: inset 0 0 0 1px rgba(255, 164, 85, 0.35);
}

.feature .icon svg { width: 26px; height: 26px; }
.feature h3 { margin: 0 0 6px; font-size: 19px; font-weight: 800; }
.feature p { position: relative; margin: 0; color: var(--silver); font-size: 15.5px; }

/* ---------- Duels classés ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}

.split .lead { font-size: 18px; }

.checks { list-style: none; margin: 18px 0 0; padding: 0; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 10px; color: var(--text); }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--win) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z' fill='%23062a14'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.leagues { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.leagues span {
  padding: 5px 12px;
  border: 1px solid var(--glass-edge);
  border-radius: 999px;
  background: var(--glass);
  color: var(--silver);
  font-size: 13px;
  font-weight: 600;
}
.leagues span:last-child { color: var(--orange-light); border-color: rgba(255, 164, 85, 0.5); }

.duel {
  position: relative;
  padding: 22px;
  border: 1px solid var(--glass-edge);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

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

.player { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 700; }
.player.right { align-items: flex-end; text-align: right; }
.player .elo { color: var(--orange-light); font-size: 12px; font-weight: 600; }

.dots { display: flex; gap: 5px; }
.dots i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--steel);
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.dots i.on { background: var(--win); border-color: var(--win); box-shadow: 0 0 10px rgba(61, 220, 132, 0.6); transform: scale(1.12); }

.duel .tcg { width: 130px; margin: 0 auto; }

.question {
  margin: 18px 0 12px;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
}

.timer {
  height: 6px;
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
}

.timer b {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), var(--orange-light));
  transform-origin: left;
}

.duel.playing .timer b { animation: drain 6s linear forwards; }

.answer {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 8px 0 16px;
  border: 1px solid var(--glass-edge);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  transition: border-color 0.3s, background 0.3s;
}

.answer .typed { flex: 1; font-weight: 600; }
.answer .typed::after { content: "|"; margin-left: 1px; color: var(--orange); animation: blink 1s steps(1) infinite; }
.answer .send {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--on-orange);
}
.answer .send svg { width: 18px; height: 18px; }

.duel.right-answer .answer { border-color: var(--win); background: rgba(61, 220, 132, 0.12); }
.duel.right-answer .answer .typed::after { content: ""; }
.duel.right-answer .answer .send { background: var(--win); }

.attempts { min-height: 22px; margin-top: 10px; color: var(--silver); font-size: 13px; text-align: center; }
.attempts s { color: #ff8a8a; }

/* ---------- Raretés ---------- */

.rarities {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}

.rarity {
  --c: var(--r-common);
  padding: 16px 10px;
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, var(--c) 10%, transparent);
  text-align: center;
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1.2), box-shadow 0.3s;
}

.rarity:hover { transform: translateY(-4px); box-shadow: 0 0 24px color-mix(in srgb, var(--c) 40%, transparent); }

.rarity .diamond {
  width: 22px;
  height: 22px;
  margin: 4px auto 12px;
  transform: rotate(45deg);
  border-radius: 5px;
  background: var(--c);
  box-shadow: 0 0 14px var(--c);
}

.rarity strong { display: block; font-size: 14px; }
.rarity small { color: var(--silver); font-size: 12.5px; }

.rarity.r-uncommon { --c: var(--r-uncommon); }
.rarity.r-rare { --c: var(--r-rare); }
.rarity.r-epic { --c: var(--r-epic); }
.rarity.r-legendary { --c: var(--r-legendary); }
.rarity.r-unique { --c: var(--r-unique); }
.rarity.r-ultimate { --c: var(--r-ultimate); }
.rarity.r-ultimate .diamond {
  background: conic-gradient(from var(--spin), #ff5f5f, #ffb347, #fff275, #6bff8e, #5fd4ff, #8b7bff, #ff5fd2, #ff5f5f);
  animation: spin 4s linear infinite;
}

/* ---------- Bandeau Discord et plateformes ---------- */

.community {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 44px;
  overflow: hidden;
  border: 1px solid rgba(136, 145, 255, 0.4);
  border-radius: 32px;
  background:
    radial-gradient(500px 300px at 0% 0%, rgba(88, 101, 242, 0.45), transparent 70%),
    radial-gradient(400px 300px at 100% 100%, rgba(255, 122, 26, 0.25), transparent 70%),
    #15161f;
}

.community h2 { margin: 0 0 10px; font-size: clamp(28px, 4vw, 40px); font-weight: 900; line-height: 1.1; }
.community p { color: #c9cbe0; font-size: 17px; }
.community .btn-discord { margin-top: 8px; padding: 16px 26px; font-size: 18px; }

.bubbles { position: relative; height: 220px; }
.bubble {
  position: absolute;
  max-width: 240px;
  padding: 10px 14px;
  border-radius: 16px 16px 16px 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
  animation: float 7s ease-in-out infinite;
}
.bubble b { display: block; font-size: 12px; color: var(--discord-light); }
.bubble.b1 { top: 0; left: 0; }
.bubble.b2 { top: 78px; right: 0; border-radius: 16px 16px 4px 16px; animation-delay: -2s; }
.bubble.b2 b { color: var(--orange-light); }
.bubble.b3 { bottom: 0; left: 24px; animation-delay: -4s; }
.bubble.b3 b { color: var(--win); }

.launch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.launch-card {
  padding: 24px;
  border: 1px solid var(--glass-edge);
  border-radius: 22px;
  background: var(--glass);
  text-align: center;
}

.launch-card svg { width: 40px; height: 40px; margin-bottom: 10px; color: var(--text); }
.launch-card h3 { margin: 0 0 4px; font-size: 20px; font-weight: 900; }
.launch-card p { margin: 0; color: var(--silver); font-size: 15px; }
.launch-card .tag {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 122, 26, 0.16);
  color: var(--orange-light);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.launch-card.web { border-color: rgba(255, 164, 85, 0.45); }

/* ---------- Bas de page ---------- */

.about { max-width: 760px; margin: 0 auto; }
.about h2 { font-size: 24px; }
.credits { color: var(--silver); font-size: 13px; }
.credits summary { cursor: pointer; color: var(--text); font-weight: 600; }
.credits ul { margin-top: 10px; padding-left: 18px; }

/* ---------- Apparition au défilement (home.js) ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.2,.8,.2,1), transform 0.7s cubic-bezier(.2,.8,.2,1);
  transition-delay: var(--delay, 0s);
}

.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Animations ---------- */

@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes deal {
  from { opacity: 0; transform: translate(0, 160px) rotate(0deg) scale(0.8); }
  to { opacity: 1; transform: translate(var(--x), var(--y)) rotate(var(--r)); }
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes float-big { 0%, 100% { transform: scale(1.12) translateY(0); } 50% { transform: scale(1.12) translateY(-14px); } }
@keyframes breathe { 0%, 100% { opacity: 0.7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes spin { to { --spin: 360deg; } }
@keyframes shine { to { background-position: -220% 0; } }
@keyframes ring { 0% { opacity: 0.9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.12); } }
@keyframes blink { 50% { opacity: 0.25; } }
@keyframes scroll { to { transform: translateX(calc(-50% - 9px)); } }
@keyframes drain { to { transform: scaleX(0); } }

/* Après l'entrée, la carte retrouve sa place quand l'éventail s'ouvre. */
.fan .slot.dealt { opacity: 1; animation: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee-track [aria-hidden="true"] { display: none; }
}

/* ---------- Petits écrans ---------- */

@media (max-width: 960px) {
  .hero2 { grid-template-columns: 1fr; text-align: center; min-height: 0; padding-top: 28px; }
  .hero2 .lead { margin-left: auto; margin-right: auto; }
  .cta-row, .platforms { justify-content: center; }
  .fan-stage { height: 420px; order: -1; margin-top: -10px; overflow: hidden; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .rarities { grid-template-columns: repeat(4, 1fr); }
  .community { grid-template-columns: 1fr; padding: 32px 24px; }
  .bubbles { display: none; }
}

@media (max-width: 620px) {
  .fan-stage { height: 300px; overflow: hidden; order: 0; margin-top: 8px; }
  .fan { transform: scale(0.54); }
  .features, .launch { grid-template-columns: 1fr; }
  .rarities { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 52px 0; }
  .play-cta { width: 100%; justify-content: center; }
  .btn-discord { width: 100%; justify-content: center; }
  .duel { padding: 16px; }
  .duel .tcg { width: 110px; }
  .dots i { width: 11px; height: 11px; }
}

/* La lueur du bouton « Jouer » et les cartes inclinées ne font jamais
   défiler la page de côté. */
.home-main { overflow-x: clip; }
