/* HASHLOTO — noir, or et néon. Mobile d'abord. */
@font-face {
  font-family: "Chakra Petch";
  src: url("/fonts/chakra-petch-700-latin.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Chakra Petch";
  src: url("/fonts/chakra-petch-600-latin.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  --bg0: #07070c;
  --bg1: #0e0e18;
  --bg2: #161626;
  --or: #ffc23d;
  --or-2: #f5a524;
  --or-clair: #ffe9a8;
  --cyan: #2ee6ff;
  --violet: #8b5cff;
  --violet-txt: #cdb9ff;
  --rubis: #ff3d6e;
  --diamant: #7df9ff;
  --texte: #f2f0ea;
  --texte-2: #a9a6b8;
  --erreur: #ff8aa3;
  --verre: rgba(22, 22, 38, 0.72);
  --verre-bord: rgba(255, 194, 61, 0.22);
  --verre-bord-c: rgba(46, 230, 255, 0.22);
  --rayon: 16px;
  --display: "Chakra Petch", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --nav-h: 64px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  color: var(--texte);
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(139, 92, 255, 0.16), transparent 60%),
    radial-gradient(800px 600px at -10% 40%, rgba(46, 230, 255, 0.08), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1) 40%, var(--bg0));
  background-color: var(--bg0);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: var(--texte); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.1; text-wrap: balance; margin: 0; letter-spacing: 0.01em; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }

.skip {
  position: absolute; left: 8px; top: -80px; padding: 10px 14px; z-index: 100;
  background: var(--or); color: var(--bg0); font-weight: 700; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 8px; }

.gold-text {
  color: var(--or);
  background: linear-gradient(180deg, var(--or-clair) 0%, var(--or) 45%, var(--or-2) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 18px rgba(255, 194, 61, 0.35));
}
.c-cyan { color: var(--cyan); }

/* ---------- Verre ---------- */
.glass {
  background: linear-gradient(160deg, rgba(34, 32, 58, 0.82), rgba(16, 16, 28, 0.86));
  border: 1px solid var(--verre-bord);
  border-radius: var(--rayon);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav, .signup-card { -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
  .signup-card { background: linear-gradient(160deg, rgba(30, 28, 52, 0.72), rgba(14, 14, 24, 0.78)); }
  @media (min-width: 1024px) and (hover: hover) {
    .pionnier { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); background: rgba(22, 22, 38, 0.6); }
  }
}

/* ---------- Boutons et formulaires ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-family: var(--display); font-weight: 700; letter-spacing: 0.02em;
  cursor: pointer; min-height: 48px; padding: 0 22px; border-radius: 12px; border: 0; text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-or {
  color: var(--bg0);
  background: linear-gradient(180deg, var(--or-clair) -40%, var(--or) 45%, var(--or-2));
  box-shadow: 0 0 0 1px rgba(255, 233, 168, 0.5) inset, 0 6px 22px rgba(245, 165, 36, 0.35);
}
.btn-or:hover { color: var(--bg0); transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255, 233, 168, 0.7) inset, 0 8px 30px rgba(255, 194, 61, 0.55); }
.btn-or:focus-visible { outline-color: var(--texte); }
.btn-ghost { background: transparent; color: var(--or); border: 1px solid rgba(255, 194, 61, 0.55); }
.btn-ghost:hover { background: rgba(255, 194, 61, 0.1); color: var(--or-clair); }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 1.1rem; }

.row { display: flex; gap: 8px; flex-wrap: wrap; }
.row input { flex: 1 1 150px; min-width: 0; }
.row .btn { flex: none; }
input[type="email"], input[type="text"] {
  font: inherit; color: var(--texte); background: rgba(7, 7, 12, 0.85);
  border: 1px solid #5d5a78; border-radius: 12px; padding: 12px 14px; min-height: 48px;
}
input[type="email"]:focus, input[type="text"]:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(46, 230, 255, 0.2); outline: none; }
input[type="email"]:focus-visible { outline: 2px solid var(--cyan); outline-offset: 1px; }
input::placeholder { color: #8a87a0; }
input[aria-invalid="true"] { border-color: var(--erreur); }
input[type="radio"], input[type="checkbox"] { accent-color: var(--or); width: 18px; height: 18px; margin: 0; flex: none; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(10, 10, 18, 0.88);
  border-bottom: 1px solid rgba(255, 194, 61, 0.16);
  box-shadow: 0 1px 0 rgba(46, 230, 255, 0.08), 0 8px 30px rgba(0, 0, 0, 0.35);
  padding-top: env(safe-area-inset-top);
}
.nav-in { max-width: 1240px; margin: 0 auto; height: var(--nav-h); padding: 0 16px; display: flex; align-items: center; gap: 12px; }
.brand { flex: none; margin-right: auto; }
.brand img { width: 132px; height: auto; }
.nav-cta { min-height: 40px; padding: 0 12px; font-size: 0.85rem; order: 2; white-space: nowrap; }
.burger {
  order: 3; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px; cursor: pointer;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 194, 61, 0.3); color: var(--texte);
}
.burger-box { position: relative; width: 20px; height: 14px; }
.burger-box span, .burger-box::before, .burger-box::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; border-radius: 2px; background: var(--or);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.burger-box::before { top: 0; }
.burger-box span { top: 6px; }
.burger-box::after { top: 12px; }
.burger[aria-expanded="true"] .burger-box::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger-box span { opacity: 0; }
.burger[aria-expanded="true"] .burger-box::after { transform: translateY(-6px) rotate(-45deg); }

.menu ul { list-style: none; margin: 0; padding: 0; }
.menu a {
  display: block; color: var(--texte); text-decoration: none; font-family: var(--display); font-weight: 600;
  letter-spacing: 0.03em; padding: 12px 14px; border-radius: 10px;
}
.menu a:hover { color: var(--or); background: rgba(255, 194, 61, 0.08); }

@media (max-width: 899px) {
  .menu {
    position: absolute; top: calc(100% + 1px); left: 0; right: 0;
    background: #0b0b14; border-bottom: 1px solid rgba(255, 194, 61, 0.3);
    padding: 8px 12px 16px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  }
  .menu { display: none; }
  .menu.is-open { display: block; }
}
@media (max-width: 359px) { .nav-cta { display: none; } }
@media (min-width: 900px) {
  :root { --nav-h: 72px; }
  .nav-in { padding: 0 24px; gap: 20px; }
  .brand img { width: 176px; }
  .burger { display: none; }
  .menu { order: 1; }
  .menu ul { display: flex; gap: 4px; }
  .menu a { padding: 8px 12px; font-size: 0.95rem; }
  .nav-cta { min-height: 44px; padding: 0 18px; font-size: 0.95rem; }
}

/* ---------- Héros ---------- */
.hero { padding: calc(var(--nav-h) + env(safe-area-inset-top) + 8px) 8px 0; }
.hero-panel {
  position: relative; overflow: hidden; overflow: clip; isolation: isolate;
  max-width: 1360px; margin: 0 auto; border-radius: 22px;
  border: 1px solid rgba(255, 194, 61, 0.28);
  box-shadow: 0 0 0 1px rgba(46, 230, 255, 0.06), 0 0 40px rgba(46, 230, 255, 0.12), 0 0 80px rgba(139, 92, 255, 0.12);
  background: var(--bg1);
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; z-index: -2; }
.hero-veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 7, 12, 0.55) 0%, rgba(7, 7, 12, 0.35) 30%, rgba(7, 7, 12, 0.85) 75%, rgba(7, 7, 12, 0.95) 100%);
}
.hero-grid { position: relative; display: grid; gap: 20px; padding: 22px 16px 22px; }
.hero-copy { position: relative; z-index: 2; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px;
  font-family: var(--display); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--or); background: rgba(7, 7, 12, 0.6); border: 1px solid rgba(255, 194, 61, 0.35);
  padding: 5px 12px; border-radius: 999px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.hero-title { font-size: clamp(2.2rem, 10vw, 4.6rem); line-height: 1.02; margin-bottom: 12px; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6); }
.hero-title .gold-text { display: inline-block; text-shadow: none; }
.lead { font-size: 1.1rem; color: var(--texte); max-width: 34ch; margin-bottom: 14px; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8); }
.chips { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li {
  font-size: 0.8rem; color: var(--texte); padding: 4px 10px; border-radius: 999px;
  background: rgba(7, 7, 12, 0.7); border: 1px solid rgba(46, 230, 255, 0.35);
}

.signup-card { padding: 16px; border-color: rgba(255, 194, 61, 0.35); box-shadow: 0 0 30px rgba(255, 194, 61, 0.08), 0 20px 50px rgba(0, 0, 0, 0.5); }
.card-title { font-size: 1.25rem; margin-bottom: 12px; color: var(--or); }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.profil { border: 0; padding: 0; margin: 14px 0 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.profil legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.profil label {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; min-height: 44px; font-size: 0.92rem;
  border: 1px solid #5d5a78; border-radius: 999px; cursor: pointer; background: rgba(7, 7, 12, 0.5);
}
.profil label:has(input:checked) { border-color: var(--or); background: rgba(255, 194, 61, 0.12); }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0 0; color: var(--texte-2); font-size: 0.95rem; }
.check input { margin-top: 3px; }
.turnstile { margin-top: 8px; }
.err { color: var(--erreur); margin: 6px 0 0; font-size: 0.92rem; }
.status { min-height: 1.4em; margin: 8px 0 0; font-size: 0.95rem; }
.status.is-error { color: var(--erreur); }
#signup-alert:empty { min-height: 0; margin: 0; }
.note { color: var(--texte-2); font-size: 0.85rem; margin-top: 4px; }

.merci p { color: var(--texte-2); margin-bottom: 8px; }
.merci p strong { color: var(--or); }
.merci .merci-label { color: var(--texte); font-weight: 600; margin: 14px 0 6px; }
.merci-badge { width: 52px; height: 52px; margin-bottom: 8px; padding: 10px; border-radius: 14px; color: var(--or); background: rgba(255, 194, 61, 0.1); border: 1px solid rgba(255, 194, 61, 0.4); }
.merci-badge svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.share { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
.share-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 12px;
  color: var(--texte); text-decoration: none; border: 1px solid rgba(46, 230, 255, 0.4); background: rgba(46, 230, 255, 0.06);
}
.share-link:hover { color: var(--cyan); background: rgba(46, 230, 255, 0.12); }
.compteur { color: var(--texte); margin: 12px 0 0; text-shadow: 0 1px 6px #000; }
.compteur strong { color: var(--or); font-family: var(--display); font-size: 1.15em; }

.hero-side { position: relative; z-index: 1; }
.hero-mineur {
  position: absolute; z-index: 0; pointer-events: none;
  right: -96px; top: 24px; width: auto; height: 330px; opacity: 0.4;
  -webkit-mask-image: radial-gradient(ellipse 62% 72% at 50% 42%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 62% 72% at 50% 42%, #000 62%, transparent 100%);
}
.pionnier { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-color: rgba(46, 230, 255, 0.3); }
.pionnier-badge { flex: none; width: 64px; height: 64px; filter: drop-shadow(0 0 10px rgba(255, 194, 61, 0.45)); }
.pionnier-title { font-size: 1.15rem; color: var(--or); margin: 2px 0 4px; }
.pionnier p:last-child { color: var(--texte-2); font-size: 0.9rem; }
.eyebrow { font-family: var(--display); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan); }

@media (min-width: 640px) {
  .hero { padding-left: 16px; padding-right: 16px; }
  .hero-grid { padding: 40px 32px 32px; }
  .signup-card { padding: 22px; max-width: 560px; }
  .hero-copy { max-width: 600px; }
  .hero-mineur { height: 500px; right: -110px; top: 40px; opacity: 0.4; }
}
@media (min-width: 1024px) {
  .hero-panel { min-height: min(820px, calc(100vh - var(--nav-h) - 24px)); display: flex; align-items: center; }
  .hero-veil {
    background:
      linear-gradient(90deg, rgba(7, 7, 12, 0.92) 0%, rgba(7, 7, 12, 0.7) 38%, rgba(7, 7, 12, 0.1) 65%, rgba(7, 7, 12, 0.2) 100%),
      linear-gradient(180deg, transparent 70%, rgba(7, 7, 12, 0.8));
  }
  .hero-grid { width: 100%; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: end; gap: 24px; padding: 48px 48px 40px; }
  .hero-side { align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end; min-height: 620px; }
  .hero-mineur {
    opacity: 1; right: 4%; top: auto; bottom: -30px; height: 104%; max-height: 800px;
    filter: drop-shadow(0 0 40px rgba(46, 230, 255, 0.18));
    animation: float 6s ease-in-out infinite;
  }
  .pionnier { max-width: 360px; margin-left: auto; margin-right: 6%; }
  .lead { font-size: 1.25rem; }
}
@media (min-width: 1280px) { .hero-grid { padding: 56px 72px 48px; } }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- Sections ---------- */
.section { padding: 48px 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.wrap-narrow { max-width: 860px; }
/* 48 px en haut et en bas : environ 96 px entre deux sections, page dense comme une plateforme de jeu. */
@media (min-width: 640px) { .wrap { padding: 0 24px; } }
.sec-head { margin-bottom: 28px; max-width: 760px; }
.sec-head h2, .split h2, .talent h2 { font-size: clamp(1.75rem, 6vw, 2.75rem); margin: 6px 0 10px; }
.sec-lead { color: var(--texte-2); font-size: 1.05rem; }
.sec-lead strong { color: var(--texte); }

/* ---------- Vitrine des jeux ---------- */
.games { margin: 0 -16px; padding: 6px 16px 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: thin; scrollbar-color: rgba(255, 194, 61, 0.4) transparent; }
.games:focus-visible { outline-offset: -3px; }
.games-list { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 78%); gap: 14px; }
.game {
  position: relative; scroll-snap-align: start; overflow: hidden; border-radius: var(--rayon);
  background: linear-gradient(180deg, rgba(26, 24, 44, 0.9), rgba(12, 12, 22, 0.95));
  border: 1px solid rgba(46, 230, 255, 0.16);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.game img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.game-body { padding: 14px 16px 18px; }
.game h3 { font-size: 1.3rem; margin: 8px 0 6px; }
.game p:last-child { color: var(--texte-2); font-size: 0.95rem; }
.game-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pill { font-family: var(--display); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
.pill-or { color: var(--bg0); background: linear-gradient(180deg, var(--or-clair) -50%, var(--or)); box-shadow: 0 0 12px rgba(255, 194, 61, 0.4); }
.pill-violet { color: var(--violet-txt); background: rgba(139, 92, 255, 0.18); border: 1px solid var(--violet); }
.tag { font-size: 0.8rem; color: var(--texte-2); }
.game:hover, .game:focus-within {
  transform: translateY(-4px); border-color: rgba(46, 230, 255, 0.7);
  box-shadow: 0 0 0 1px rgba(46, 230, 255, 0.35), 0 0 28px rgba(46, 230, 255, 0.25), 0 0 60px rgba(139, 92, 255, 0.18);
}
.hint { margin-top: 4px; color: var(--texte-2); font-size: 0.85rem; }
@media (min-width: 900px) {
  .games { margin: 0; padding: 6px 0 0; overflow: visible; }
  .games-list { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .hint { display: none; }
}
@media (min-width: 640px) and (max-width: 899px) { .games { margin: 0 -24px; padding: 6px 24px 18px; scroll-padding-inline: 24px; } .games-list { grid-auto-columns: minmax(260px, 44%); } }

/* ---------- La Mine ---------- */
.split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .split-rev > :first-child { order: 0; }
}
.frame { margin: 0; padding: 10px; border-color: rgba(46, 230, 255, 0.25); box-shadow: 0 0 40px rgba(46, 230, 255, 0.12), 0 20px 50px rgba(0, 0, 0, 0.45); }
.frame img { width: 100%; height: auto; border-radius: 10px; }
.ores { list-style: none; padding: 0; margin: 20px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 480px) { .ores { grid-template-columns: repeat(6, 1fr); } }
.ores li { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 0.85rem; color: var(--texte); padding: 8px 4px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.06); }
.ores img { width: 44px; height: 44px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; color: var(--texte-2); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 10px; height: 10px; transform: rotate(45deg); background: var(--or); box-shadow: 0 0 8px rgba(255, 194, 61, 0.6); }
.ticks strong, .steps strong { color: var(--texte); }

/* ---------- Aperçu (maquette) ---------- */
.demo-label {
  display: inline-flex; gap: 8px; align-items: baseline; margin-top: 6px;
  font-size: 0.9rem; color: var(--or-clair); padding: 8px 12px; border-radius: 10px;
  background: rgba(255, 194, 61, 0.08); border: 1px dashed rgba(255, 194, 61, 0.55);
}
.demo-label-sm { font-size: 0.78rem; padding: 4px 10px; margin: 0 0 10px; }
.mini-demo { margin-left: auto; font-family: system-ui, sans-serif; font-weight: 600; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--or-clair); border: 1px dashed rgba(255, 194, 61, 0.5); padding: 1px 6px; border-radius: 6px; }
.dash { display: grid; gap: 14px; }
.panel { padding: 16px; display: flex; flex-direction: column; gap: 12px; border-color: var(--verre-bord-c); }
.panel-title { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; color: var(--texte); }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--cyan); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico-lg { width: 32px; height: 32px; flex: none; fill: none; stroke: var(--or); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(255, 194, 61, 0.45)); }
.panel-note { color: var(--texte-2); font-size: 0.88rem; }

.timer { position: relative; width: 184px; height: 184px; margin: 4px auto; }
.ring { width: 100%; height: 100%; overflow: visible; }
.ring path { fill: none; stroke-width: 7; stroke-linejoin: round; stroke-linecap: round; }
.ring-bg { stroke: rgba(255, 255, 255, 0.08); }
.ring-fg { stroke: var(--or); stroke-dasharray: 100; stroke-dashoffset: 0; filter: drop-shadow(0 0 6px rgba(255, 194, 61, 0.7)); transition: stroke-dashoffset 1s linear; }
.timer-num { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 2.3rem; color: var(--or); font-variant-numeric: tabular-nums; text-shadow: 0 0 18px rgba(255, 194, 61, 0.45); }
.timer.is-found .timer-num { color: var(--cyan); font-size: 1.05rem; padding: 0 28px; text-align: center; line-height: 1.2; text-shadow: 0 0 14px rgba(46, 230, 255, 0.6); }
.timer.is-found .ring-fg { stroke: var(--cyan); }

.feed { position: relative; height: 252px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); }
.feed-list { list-style: none; margin: 0; padding: 0; }
.feed-list.is-looping { animation: feed 24s linear infinite; }
.feed:hover .feed-list { animation-play-state: paused; }
@keyframes feed { to { transform: translateY(-50%); } }
.feed-list li { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); font-size: 0.92rem; color: var(--texte-2); }
.feed-list li > img:first-child { width: 36px; height: 36px; flex: none; }
.feed-list b { color: var(--texte); font-weight: 600; }
.feed-list .ore { width: 30px; height: 30px; margin-left: auto; flex: none; }

.crest-sm { width: 30px; height: 30px; }
.rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rank li { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.03); }
.rank li:first-child { background: linear-gradient(90deg, rgba(255, 194, 61, 0.16), rgba(255, 194, 61, 0.02)); border: 1px solid rgba(255, 194, 61, 0.3); }
.rank img { width: 30px; height: 30px; }
.pos { width: 1.4em; font-family: var(--display); font-weight: 700; color: var(--or); text-align: center; }
.who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pts { font-variant-numeric: tabular-nums; color: var(--cyan); font-size: 0.9rem; }
.leagues { list-style: none; margin: auto 0 0; padding: 12px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.06); display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.leagues li { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 0.72rem; color: var(--texte-2); opacity: 0.85; }
.leagues img { width: 44px; height: 44px; }
.leagues .is-on { color: var(--or); opacity: 1; }
.leagues .is-on img { filter: drop-shadow(0 0 10px rgba(255, 194, 61, 0.6)); }

.duel { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.clan { display: flex; flex-direction: column; gap: 2px; padding: 10px; border-radius: 12px; }
.clan-r { background: rgba(255, 61, 110, 0.1); border: 1px solid rgba(255, 61, 110, 0.45); }
.clan-d { background: rgba(125, 249, 255, 0.07); border: 1px solid rgba(125, 249, 255, 0.4); text-align: right; }
.clan-name { font-size: 0.85rem; color: var(--texte); }
.clan-score { font-family: var(--display); font-weight: 700; font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.clan-r .clan-score { color: #ff7a9a; }
.clan-d .clan-score { color: var(--diamant); }
.vs { font-family: var(--display); font-weight: 700; color: var(--texte); font-size: 1.1rem; text-shadow: 0 0 12px rgba(255, 255, 255, 0.4); }
.duel-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, 0.06); }
.duel-r { width: 52%; background: linear-gradient(90deg, #a5103e, var(--rubis)); box-shadow: 0 0 12px rgba(255, 61, 110, 0.7); }
.duel-d { width: 48%; background: linear-gradient(90deg, var(--cyan), var(--diamant)); box-shadow: 0 0 12px rgba(46, 230, 255, 0.7); }
.daily-q { font-weight: 600; }
.daily-defi { margin-top: 4px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.progress { height: 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.progress span { display: block; width: 60%; height: 100%; background: linear-gradient(90deg, var(--or-2), var(--or-clair)); box-shadow: 0 0 10px rgba(255, 194, 61, 0.6); }

@media (min-width: 700px) {
  .dash { grid-template-columns: repeat(2, 1fr); }
  .p-timer { grid-row: span 2; justify-content: center; }
}
@media (min-width: 1100px) {
  .dash { grid-template-columns: 1fr 1.2fr 1.2fr; grid-template-areas: "timer feed rank" "daily duel rank"; }
  .p-timer { grid-area: timer; grid-row: auto; }
  .p-feed { grid-area: feed; }
  .p-rank { grid-area: rank; }
  .p-duel { grid-area: duel; }
  .p-daily { grid-area: daily; }
}

/* ---------- Minage réel ---------- */
.steps { margin: 16px 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding-left: 44px; color: var(--texte-2); }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; color: var(--bg0); background: var(--or);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.callout { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: rgba(46, 230, 255, 0.07); border: 1px solid rgba(46, 230, 255, 0.4); color: var(--texte-2); }
.callout strong { color: var(--texte); }
.fine { color: var(--texte-2); font-size: 0.88rem; margin-top: 12px; }
.gauge { padding: 20px; border-color: rgba(255, 194, 61, 0.35); box-shadow: 0 0 40px rgba(255, 194, 61, 0.08), 0 20px 50px rgba(0, 0, 0, 0.45); }
.gauge-label { display: block; color: var(--texte-2); margin-bottom: 10px; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; margin: 0; }
.range::-webkit-slider-runnable-track { height: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--or) var(--p, 70%), var(--cyan) var(--p, 70%)); }
.range::-moz-range-track { height: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--or) var(--p, 70%), var(--cyan) var(--p, 70%)); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -9px; border-radius: 50%; background: var(--texte); border: 4px solid var(--bg0); box-shadow: 0 0 0 2px var(--or), 0 0 14px rgba(255, 194, 61, 0.7); }
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--texte); border: 4px solid var(--bg0); box-shadow: 0 0 0 2px var(--or), 0 0 14px rgba(255, 194, 61, 0.7); }
.range:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.bars { display: grid; gap: 10px; margin: 14px 0; }
.bar { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 10px; }
.bar-name { font-family: var(--display); font-weight: 700; font-size: 0.95rem; }
.bar-track { height: 22px; border-radius: 8px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); overflow: hidden; }
.bar-fill { display: block; height: 100%; width: 50%; transition: width 0.35s ease; }
.bar-btc { width: 70%; background: linear-gradient(90deg, var(--or-2), var(--or) 70%, var(--or-clair)); box-shadow: 0 0 16px rgba(255, 194, 61, 0.6); }
.bar-hash { width: 30%; background: linear-gradient(90deg, #12a8c2, var(--cyan) 70%, var(--diamant)); box-shadow: 0 0 16px rgba(46, 230, 255, 0.6); }
.gauge-out { font-size: 1.05rem; }
.gauge-out strong { color: var(--or); }
.gauge-out .c-cyan { color: var(--cyan); }

/* ---------- Talent ---------- */
.talent { display: grid; gap: 22px; padding: 24px; align-items: center; border-color: rgba(139, 92, 255, 0.45); box-shadow: 0 0 50px rgba(139, 92, 255, 0.14); }
.split-bar { display: flex; min-height: 64px; border-radius: 14px; overflow: hidden; font-family: var(--display); font-weight: 700; }
.split-bar span { display: flex; align-items: center; justify-content: center; padding: 8px; text-align: center; line-height: 1.15; }
.sb-power { flex: 80; color: var(--bg0); background: linear-gradient(90deg, var(--or-2), var(--or), var(--or-clair)); }
.sb-skill { flex: 20; min-width: 8.5em; white-space: nowrap; color: var(--bg0); background: linear-gradient(90deg, var(--cyan), var(--diamant)); }
@media (min-width: 900px) { .talent { grid-template-columns: 1.1fr 1fr; padding: 36px; } }

/* ---------- Transparence / règles ---------- */
.tiles, .rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.tile { padding: 16px 18px; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: start; }
.tile .ico-lg { grid-row: span 2; }
.tile h3 { font-size: 1.1rem; margin: 2px 0 4px; }
.tile p { color: var(--texte-2); font-size: 0.95rem; }
@media (min-width: 600px) { .tiles { grid-template-columns: repeat(2, 1fr); } .rules { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tile { display: block; padding: 20px; } .tile h3 { margin: 14px 0 6px; } .tiles { grid-template-columns: repeat(5, 1fr); } .rules { grid-template-columns: repeat(3, 1fr); } }
.rules li { display: flex; gap: 14px; align-items: flex-start; padding: 18px; }
.rules p { color: var(--texte-2); }
.rules strong { color: var(--texte); display: block; margin-bottom: 2px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { padding: 0 18px; border-radius: 14px; }
.faq details[open] { border-color: rgba(46, 230, 255, 0.4); }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; padding: 14px 0; min-height: 52px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 1.5rem; line-height: 1; color: var(--or); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline-offset: 2px; }
.faq details p { color: var(--texte-2); padding: 0 0 16px; }

/* ---------- Appel final ---------- */
.final-card { text-align: center; padding: 40px 20px; display: grid; justify-items: center; gap: 14px; border-color: rgba(255, 194, 61, 0.4);
  background: radial-gradient(500px 220px at 50% 0%, rgba(255, 194, 61, 0.14), transparent 70%), linear-gradient(160deg, rgba(34, 32, 58, 0.85), rgba(14, 14, 24, 0.9));
  box-shadow: 0 0 60px rgba(255, 194, 61, 0.1), 0 0 40px rgba(46, 230, 255, 0.08); }
.final-card h2 { font-size: clamp(1.8rem, 6vw, 3rem); }
.final-card .sec-lead { max-width: 52ch; }
.final-crest { width: 84px; height: 84px; filter: drop-shadow(0 0 18px rgba(125, 249, 255, 0.5)); }

/* ---------- Pied de page ---------- */
.foot { border-top: 1px solid rgba(255, 194, 61, 0.16); padding: 36px 0 calc(40px + env(safe-area-inset-bottom)); background: rgba(7, 7, 12, 0.7); color: var(--texte-2); font-size: 0.9rem; }
.foot-in { display: grid; gap: 16px; }
.foot-brand img { width: 150px; height: auto; margin-bottom: 8px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot nav a { color: var(--texte); display: inline-flex; min-height: 44px; align-items: center; }
.foot nav a:hover { color: var(--or); }
.foot-small { font-size: 0.85rem; }
.age { display: inline-block; font-family: var(--display); font-weight: 700; color: var(--bg0); background: var(--or); border-radius: 6px; padding: 0 6px; margin-right: 6px; }

/* ---------- Pages simples (légal, 404) ---------- */
.page { max-width: 820px; margin: 0 auto; padding: calc(var(--nav-h) + 32px) 16px 64px; }
.page-card { padding: 22px; }
@media (min-width: 640px) { .page { padding-left: 24px; padding-right: 24px; } .page-card { padding: 36px; } }
.page h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); color: var(--or); margin-bottom: 12px; }
.page h2 { color: var(--or); font-size: 1.3rem; margin: 28px 0 8px; }
.page p, .page li { color: var(--texte-2); }
.page p + p { margin-top: 10px; }
.page strong { color: var(--texte); }
.page ul { padding-left: 20px; margin: 8px 0; }
.lost { text-align: center; display: grid; justify-items: center; gap: 14px; }
.lost-code { font-family: var(--display); font-weight: 700; font-size: clamp(4.5rem, 22vw, 8rem); line-height: 1; }
.lost img { width: 220px; height: auto; border-radius: 12px; }
.lost-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ---------- Mobile : verre sans flou en cascade ---------- */
@media (max-width: 899px) {
  .panel, .tile, .rules li, .faq details, .game { box-shadow: none; }
}

/* ---------- Mouvement réduit : tout s'arrête ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .game:hover, .game:focus-within, .btn-or:hover { transform: none; }
}
