/* dagame.app : la vitrine publique et la page du résultat partagé (sans serveur, sans traceur). */
@font-face { font-family: 'Manrope'; src: url('/fonts/manrope.woff2') format('woff2'); font-weight: 300 800; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
:root {
  --display: 'Manrope', 'Inter', -apple-system, system-ui, sans-serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --night: #0e0c16; --night2: #17142a; --cream: #fbf3df; --gold: #f5b700; --red: #e5322d; --red2: #c4231f;
  --fleches: #2763a3; --quiz: #b03a6c; --anagramme: #6d45a8; --labyrinthe: #2f7d3b; --train: #2a4374; --scrabble: #b5452f; --rafale: #a86200;
  --sudoku: #17775f; --pendu: #3d4b5c; --pelemele: #0b7a86; --croises: #4c5a9c;
  --bg: #f6f2ea; --surface: #ffffff; --text: #16151a; --text2: #4a4852; --muted: #7d7a86; --line: #e4ddd0; --ink: #16151a; --ink-fg: #fff;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0e0c16; --surface: #1b1828; --text: #f3f2f6; --text2: #c9c7d1; --muted: #8e8b98; --line: #2c2940; --ink: #f3f2f6; --ink-fg: #0e0c16; }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- tuiles DaGame */
.tiles { display: inline-flex; gap: 6px; text-decoration: none; }
.tiles span { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 21px; color: #fff; box-shadow: 0 3px 0 #0003; }
.tiles span:nth-child(odd) { transform: rotate(-6deg); } .tiles span:nth-child(even) { transform: rotate(6deg); }

/* ---------- boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; border-radius: 999px; padding: 17px 30px; transition: transform .15s, box-shadow .15s; }
.btn:active { transform: scale(.97); }
.btn.hot { background: var(--red); color: #fff; box-shadow: 0 6px 0 var(--red2), 0 14px 30px #e5322d55; }
.btn.hot:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--red2), 0 18px 36px #e5322d66; }
.btn.light { background: #ffffff14; color: #fff; border: 1.5px solid #ffffff40; }
.btn.block { display: flex; width: 100%; }
.btn.ghost { background: transparent; color: var(--text); border: 1.5px solid var(--line); }

/* ---------- titres et textes communs */
.eyebrow { font-weight: 800; font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
h2 { font-family: var(--display); font-weight: 800; font-size: clamp(32px, 4.6vw, 54px); line-height: 1.05; letter-spacing: -.03em; margin-bottom: 14px; }
.lead { font-size: 19px; color: var(--text2); max-width: 620px; }
.center { text-align: center; } .center .lead { margin: 0 auto; }

footer { color: var(--muted); font-size: 14px; text-align: center; padding: 40px 20px 50px; }

/* apparition au défilement */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- page du résultat partagé (j.html) */
.page { max-width: 560px; margin: 0 auto; padding: 28px 16px 48px; }
header.top { display: flex; align-items: center; justify-content: center; padding: 8px 0 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 22px; margin-top: 22px; }
.result { background: #12301b; color: #fff; border: 0; text-align: center; }
.result .date { color: #bfe3c6; font-weight: 600; font-size: 15px; }
.result .total { font-family: var(--display); font-weight: 800; font-size: 58px; line-height: 1.1; margin: 4px 0 14px; }
.result .total small { font-size: 24px; color: #bfe3c6; }
.star { color: var(--gold); }
.games { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; text-align: left; }
.game { display: flex; align-items: center; gap: 10px; background: #ffffff14; border-radius: 14px; padding: 10px; }
.dot { width: 34px; height: 34px; border-radius: 10px; flex: none; }
.game b { display: block; font-size: 13px; font-weight: 600; color: #e9e7f2; }
.game .stars { font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: 1px; color: var(--gold); }
.streak { margin-top: 14px; font-family: var(--display); font-weight: 800; color: #fbe38a; }
.note { color: var(--muted); font-size: 13px; text-align: center; margin-top: 12px; }
.card h2 { font-size: 26px; letter-spacing: -.5px; }
.card .btn { margin-top: 14px; }
