:root {
  --ink: #171614;
  --paper: #f4f0e9;
  --paper-deep: #e9e1d6;
  --muted: #7d766d;
  --line: rgba(23, 22, 20, .14);
  --coral: #e56d52;
  --coral-soft: #f5c6b8;
  --mint: #b9d4bf;
  --yellow: #f1d486;
  --mono: "DM Mono", monospace;
  --sans: "Manrope", sans-serif;
  --serif: "Playfair Display", serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--paper); font-family: var(--sans); }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .25; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E"); z-index: 4; }
.shell { position: relative; max-width: 1220px; margin: auto; padding: 0 44px; }
.ambient { position: absolute; pointer-events: none; border-radius: 50%; filter: blur(1px); }
.ambient-left { width: 440px; height: 440px; top: 80px; left: -250px; background: var(--coral-soft); opacity: .33; }
.ambient-right { width: 360px; height: 360px; top: 560px; right: -190px; background: #bfd8cb; opacity: .4; }
.topbar { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 25px 0; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--coral); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.04em; }
.brand-mark { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; color: var(--coral); background: var(--coral); font-size: 18px; }
.brand-text { display: flex; flex-direction: column; }
/* Date centrée pile dans la barre (verticalement et horizontalement), quelle que soit la largeur du logo et du bouton. */
.topbar-meta { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: var(--muted); font: 400 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; white-space: nowrap; text-box: trim-both cap alphabetic; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(229,109,82,.14); }
.icon-button { border: 1px solid var(--line); width: 32px; height: 32px; border-radius: 50%; background: transparent; color: var(--ink); font-size: 18px; cursor: pointer; transition: background .2s, transform .2s; }
.icon-button:hover { background: var(--coral-soft); transform: rotate(10deg); }
.intro { position: relative; padding: 30px 0 40px; }
.title-lockup { display: flex; align-items: center; gap: clamp(22px, 5vw, 64px); margin-bottom: 30px; }
.mask { flex: 0 0 250px; width: 250px; height: 250px; max-width: 250px; margin-left: auto; display: flex; align-items: center; justify-content: center; }
.mask img { display: block; width: 100%; height: auto; }
.eyebrow, .section-kicker { color: var(--coral); font: 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; }
h1 { margin: 17px 0 20px; font-size: clamp(54px, 7.4vw, 92px); line-height: .91; letter-spacing: -.085em; font-weight: 800; }
h1 em { font-family: var(--serif); font-weight: 700; letter-spacing: -.07em; }
.intro-copy { max-width: 400px; margin: 0; color: #635d55; font-size: 14px; line-height: 1.7; }
.streak { display: inline-flex; align-items: center; gap: 7px; margin-top: 30px; padding: 8px 13px 8px 9px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: 11px; }
.streak-icon { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: var(--ink); background: var(--yellow); }
.streak strong { color: var(--ink); font: 12px var(--mono); }
.game-layout { position: relative; z-index: 1; padding-bottom: 90px; }
.game-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 30px; }
h2 { margin: 8px 0 0; font-size: 25px; letter-spacing: -.055em; }
.attempt-count { color: var(--coral); font: 22px var(--mono); }
.attempt-count small { color: var(--muted); font: 10px var(--mono); }
.guess-form { padding: 22px 0 26px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.guess-form label { display: block; margin-bottom: 12px; color: #625b53; font-size: 12px; }
.input-wrap { display: flex; gap: 9px; }
.input-wrap input { min-width: 0; flex: 1; padding: 15px 17px; border: 1px solid #c8c0b5; border-radius: 2px; outline: none; color: var(--ink); background: rgba(255,255,255,.4); font: 15px var(--sans); }
.input-wrap input:focus { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(229,109,82,.14); }
.guess-button { border: 0; border-radius: 2px; color: var(--paper); background: var(--ink); font: 700 12px var(--sans); cursor: pointer; transition: background .2s, transform .2s; }
.guess-button { padding: 0 20px; }
.guess-button span { margin-left: 17px; font-size: 18px; font-weight: 400; }
.guess-button:hover { background: var(--coral); transform: translateY(-2px); }
.form-note { margin: 12px 0 0; color: var(--muted); font-size: 10px; }
.keyboard-key { display: inline-grid; place-items: center; width: 20px; height: 17px; border: 1px solid #bdb4a8; border-radius: 2px; font-family: var(--mono); }
.dot-separator { padding: 0 8px; color: var(--coral); }
.suggestions { display: flex; flex-wrap: wrap; gap: 6px; min-height: 0; margin-top: 8px; }
.suggestion { padding: 5px 9px; border: 1px solid var(--line); border-radius: 2px; color: var(--muted); background: rgba(255,255,255,.3); font: 10px var(--mono); cursor: pointer; }
.suggestion:hover { border-color: var(--coral); color: var(--coral); }
.results-header { display: flex; justify-content: space-between; align-items: center; padding: 32px 0 15px; }
.legend { color: var(--muted); font: 9px var(--mono); }.legend i { display: inline-block; width: 7px; height: 7px; margin: 0 4px 0 12px; border-radius: 50%; }.legend-correct { background: #5b9e6c; }.legend-close { background: var(--yellow); }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 140px; margin-top: 24px; border: 1px dashed #c9c0b4; color: var(--muted); font-size: 11px; }.soundwave { display: flex; gap: 3px; align-items: center; height: 32px; margin-bottom: 10px; }.soundwave span { display: block; width: 3px; border-radius: 5px; background: var(--coral); animation: wave 1.2s ease-in-out infinite alternate; }.soundwave span:nth-child(1), .soundwave span:nth-child(7) { height: 11px; }.soundwave span:nth-child(2), .soundwave span:nth-child(6) { height: 21px; animation-delay: .2s; }.soundwave span:nth-child(3), .soundwave span:nth-child(5) { height: 29px; animation-delay: .35s; }.soundwave span:nth-child(4) { height: 16px; animation-delay: .5s; }.footer { display: flex; justify-content: space-between; padding: 20px 0 30px; border-top: 1px solid var(--line); color: var(--muted); font: 9px var(--mono); }.footer b { color: var(--coral); }.hidden { display: none !important; }.toast { position: fixed; z-index: 9; left: 50%; bottom: 26px; padding: 12px 18px; border-radius: 2px; color: var(--paper); background: var(--ink); font-size: 11px; opacity: 0; transform: translate(-50%, 16px); transition: .25s; pointer-events: none; }.toast.show { opacity: 1; transform: translate(-50%, 0); }
@keyframes slide-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } } @keyframes wave { to { transform: scaleY(.5); } }
@media (max-width: 760px) { .shell { padding: 0 20px; }.topbar-meta { position: static; transform: none; margin-top: 5px; font-size: 8.5px; letter-spacing: .08em; }.intro { padding: 30px 0 40px; }.game-layout { display: block; padding-bottom: 56px; }.stat-grid { grid-template-columns: repeat(3, 1fr); }.stat:nth-child(3) { border-right: 0; }.stat:nth-child(n+4) { border-top: 1px solid var(--line); }.footer { gap: 10px; flex-direction: column; } }
@media (max-width: 480px) { h1 { font-size: 51px; }.input-wrap { display: block; }.guess-button { width: 100%; margin-top: 8px; padding: 13px; }.game-heading { align-items: start; }.attempt-count { font-size: 17px; }.stat { min-height: 64px; padding: 9px 7px; }.stat-value { font-size: 10px; } }

/* Dark glass surface */
:root {
  --ink: #f1eee9;
  --paper: #080909;
  --paper-deep: #111313;
  --muted: #99958f;
  --line: rgba(255, 255, 255, .14);
  --coral: #1ed760;
  --coral-soft: rgba(30, 215, 96, .15);
  --mint: rgba(30, 215, 96, .11);
  --yellow: #b9f227;
}
html { background: var(--paper); overflow-x: hidden; }
body { width: 100%; min-width: 0; overflow-x: hidden; color: var(--ink); background: #080909; }
body::before { opacity: .12; }
.shell { width: min(100%, 1220px); }
.ambient-left { background: #0c7a3b; opacity: .28; }
.ambient-right { background: #1db954; opacity: .24; }
.topbar { border-color: var(--line); }
.brand-mark { color: var(--paper); background: var(--ink); }
.brand-mark:hover {background: var(--coral); }
.icon-button {background: var(--coral); color: var(--paper); }
.icon-button:hover { background: var(--ink) }
.intro-copy, .guess-form label { color: #aaa59e; }
.title-lockup h1 { margin-bottom: 0; }
.daily-average { display: inline-flex; align-items: center; gap: 9px; margin-top: 30px; padding: 9px 13px 9px 9px; border: 1px solid var(--line); border-radius: 4px; color: #c4bfb8; background: rgba(255,255,255,.06); font-size: 11px; }
.average-icon { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 50%; color: #080909; background: var(--yellow); font: 17px var(--serif); }
.daily-average strong { color: var(--ink); font: 12px var(--mono); }
.daily-average small { padding-left: 8px; border-left: 1px solid var(--line); color: var(--muted); font: 9px var(--mono); }
.guess-form, .empty-state { border-color: var(--line); background: rgba(255,255,255,.055); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.guess-form { padding: 22px 24px 26px; border-top-color: rgba(30, 215, 96, .85); }
.input-wrap input { border-color: var(--line); color: var(--ink); background: rgba(255,255,255,.08); }
.input-wrap input::placeholder { color: #77736e; }
.input-wrap input:focus { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(30, 215, 96, .18); }
.guess-button { color: #080909; background: var(--ink); }
.form-note { color: var(--muted); }
.suggestion { border-color: var(--line); color: var(--muted); background: rgba(255,255,255,.07); }
.empty-state { border-style: dashed; }
.footer { border-color: var(--line); }

.live-dot { background: var(--coral); box-shadow: 0 0 0 4px rgba(30, 215, 96, .16); }
.keyboard-key { border-color: rgba(255, 255, 255, .28); }
.empty-state { border-color: rgba(255, 255, 255, .24); }

@media (max-width: 560px) { .title-lockup { flex-wrap: wrap; gap: 0; }.mask { flex: 0 0 100%; width: 100%; max-width: none; height: 160px; }.mask .mask-original { width: 160px; }.daily-average { flex-wrap: wrap; max-width: 290px; }.daily-average small { flex-basis: 100%; padding-left: 32px; border: 0; }.guess-form { padding: 18px 16px 20px; } }

.logo { width: 64px; height: 64px; }

/* Tableau des comparaisons */
:root { --correct: rgba(30, 215, 96, .24); --correct-ink: #8ff0aa; --close: rgba(231, 199, 109, .24); --close-ink: #f1d486; --wrong: rgba(255, 107, 107, .2); --wrong-ink: #ff9b9b; }
.legend-wrong { background: #ff6b6b; }
.results-table-wrap { overflow-x: auto; border: 1px solid var(--line); background: rgba(255,255,255,.04); }
.results-table { width: 100%; min-width: 700px; border-collapse: separate; border-spacing: 3px; table-layout: fixed; }
.results-table thead th { padding: 8px 6px; color: var(--muted); font: 8px var(--mono); text-align: center; text-transform: uppercase; letter-spacing: .06em; }
.results-table thead th:first-child { width: 124px; text-align: left; }
.results-table thead th:nth-child(4), .results-table thead th:nth-child(5) { width: 15%; }
.result-row { animation: slide-in .35s both; }
.artist-cell { display: flex; align-items: center; gap: 8px; padding: 8px 4px; text-align: left; font-weight: 400; }
.artist-cell img, .avatar-fallback { flex: 0 0 30px; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.avatar-fallback { display: grid; place-items: center; background: var(--coral-soft); color: var(--coral); font-weight: 800; }
.artist-cell strong { display: block; font-size: 12px; line-height: 1.2; }
.artist-cell small { color: var(--muted); font: 9px var(--mono); }
.cell { height: 64px; padding: 5px 4px; border: 1px solid transparent; border-radius: 4px; font-size: 11px; font-weight: 700; text-align: center; vertical-align: middle; }
.cell small { color: inherit; font: 9px var(--mono); opacity: .8; }
.cell.correct { background: var(--correct); border-color: rgba(30, 215, 96, .5); color: var(--correct-ink); }
.cell.close { background: var(--close); border-color: rgba(231, 199, 109, .5); color: var(--close-ink); }
.cell.wrong { background: var(--wrong); border-color: rgba(255, 107, 107, .4); color: var(--wrong-ink); }
.cell.unknown { background: rgba(255,255,255,.06); color: var(--muted); }
.cell .arrow { margin-left: 3px; font-size: 12px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; }
.chip { padding: 2px 5px; border-radius: 3px; font-size: 10px; font-weight: 700; line-height: 1.3; background: rgba(0,0,0,.25); }
.chip.correct { color: var(--correct-ink); box-shadow: inset 0 0 0 1px rgba(30, 215, 96, .6); }
.chip.close { color: var(--close-ink); box-shadow: inset 0 0 0 1px rgba(231, 199, 109, .6); }
.chip.wrong { color: var(--wrong-ink); }
.chip.more { color: var(--muted); cursor: help; }
.suggestion small { margin-left: 4px; opacity: .6; }
.guess-form.loading { opacity: .6; pointer-events: none; }
.reveal { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 14px; border: 1px solid rgba(30, 215, 96, .5); border-radius: 4px; background: rgba(30, 215, 96, .1); }
.reveal img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.reveal strong { display: block; margin-top: 4px; font-size: 20px; letter-spacing: -.04em; }
.reveal small { color: var(--muted); font-size: 11px; }
.legend { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
@media (max-width: 760px) {
  /* Sur mobile, chaque proposition devient une carte : nom en en-tête, puis 8 cases sur 2 lignes (pas de défilement latéral). */
  .results-table-wrap { overflow: visible; border: 0; background: none; }
  .results-table, .results-table tbody { display: block; min-width: 0; }
  .results-table thead { display: none; }
  .result-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-bottom: 10px; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,.04); }
  .artist-cell { grid-column: 1 / -1; padding: 0 0 4px; }
  .cell { display: flex; flex-direction: column; align-items: center; justify-content: center; height: auto; min-height: 60px; padding: 5px 3px; }
  .cell::before { content: attr(data-label); margin-bottom: 4px; font: 7.5px var(--mono); letter-spacing: .04em; text-transform: uppercase; opacity: .75; }
  .chip { font-size: 9px; }
  .results-header { align-items: flex-start; gap: 10px; }
}
@media (max-width: 480px) { .input-wrap input { width: 100%; } }

/* Indices du jour : ligne discrète sous le titre */
.hints { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: -12px 0 18px; }
.hint { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 9px 10px 9px 12px; border: 1px solid var(--line); border-radius: 4px; background: rgba(255,255,255,.03); transition: border-color .2s, background .2s; }
.hint-icon { flex: 0 0 26px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: var(--muted); background: rgba(255,255,255,.06); font-size: 11px; }
.hint-body { flex: 1; min-width: 0; }
.hint-title { color: var(--muted); font: 9px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.hint-body p { margin: 2px 0 0; color: #c4bfb8; font-size: 12px; line-height: 1.4; }
.hint-reveal { flex: 0 0 auto; padding: 6px 10px; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); background: transparent; font: 700 10px var(--sans); cursor: pointer; transition: background .2s, color .2s; }
.hint-reveal:disabled { opacity: .45; cursor: not-allowed; }
.hint.unlocked { border-color: rgba(30, 215, 96, .45); }
.hint.unlocked .hint-icon { color: #080909; background: var(--coral); }
.hint.unlocked .hint-reveal { border-color: var(--coral); color: #080909; background: var(--coral); }
.hint.revealed .hint-icon { color: var(--coral); background: rgba(30, 215, 96, .14); }
.hint.revealed .hint-body p { color: var(--ink); }
.howto { margin: 14px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.howto strong { color: var(--coral); }
.howto em { color: #e7c76d; font-style: normal; }
.confetti { position: fixed; inset: 0; z-index: 20; width: 100%; height: 100%; pointer-events: none; }
@media (max-width: 900px) { .hints { grid-template-columns: 1fr; margin-top: -8px; } }

/* Masque qui se brise pour révéler l'artiste du jour */
.mask { position: relative; }
.mask-shards { position: absolute; pointer-events: none; }
.shard { position: absolute; background-repeat: no-repeat; transition: transform 1.3s cubic-bezier(.35, .1, .65, 1), opacity 1.3s ease-in; will-change: transform, opacity; }
.mask .mask-photo { position: absolute; top: 50%; left: 50%; width: 88%; aspect-ratio: 1; overflow: hidden; border-radius: 50%; box-shadow: 0 0 0 3px var(--coral), 0 0 40px rgba(30, 215, 96, .35); transform: translate(-50%, -50%); animation: photo-reveal 1.1s .6s both cubic-bezier(.2, .9, .3, 1.2); }
.mask .mask-photo-image { display: block; width: 100%; height: 100%; background: center / cover no-repeat; transition: filter 1.6s ease, transform 1.6s ease; }
/* Indice photo : floutée (et légèrement zoomée pour garder des bords nets) jusqu'à la victoire */
.mask .mask-photo.blurred .mask-photo-image { filter: blur(8px) saturate(.85); transform: scale(1.25); }
/* Photo floutée : ni clic, ni sélection, ni menu d'appui long (iOS) */
.mask:has(.mask-photo.blurred) { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.mask .mask-photo.blurred { pointer-events: none; }
@keyframes photo-reveal { from { opacity: 0; transform: translate(-50%, -50%) scale(.55); filter: blur(6px); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); filter: blur(0); } }
@media (max-width: 560px) { .mask .mask-photo { box-shadow: 0 0 0 2px var(--coral); } }

/* Les halos décoratifs ne doivent pas élargir la page sur mobile */
body { position: relative; overflow-x: clip; }

/* Bulles d'info (âge) */
.info-tip { padding: 0; border: 0; color: inherit; background: none; font: inherit; cursor: help; }
.age-tip { border-bottom: 1px dotted currentColor; }
thead .info-tip { margin-left: 3px; color: var(--muted); font-size: 10px; vertical-align: -1px; }
thead .info-tip:hover, thead .info-tip:focus-visible { color: var(--coral); }
.tooltip { position: fixed; z-index: 30; max-width: 240px; padding: 9px 11px; border: 1px solid rgba(30, 215, 96, .45); border-radius: 4px; color: var(--ink); background: #111413; box-shadow: 0 8px 24px rgba(0,0,0,.45); font: 500 11px/1.45 var(--sans); text-transform: none; letter-spacing: 0; pointer-events: none; }

/* Sur téléphone, la photo révélée prend sa propre ligne, en grand, sous le titre */
@media (max-width: 560px) {
  .title-lockup { flex-wrap: wrap; }
  .mask.revealed { flex: 0 0 100%; width: 100%; max-width: none; height: 200px; margin: 10px 0 0; }
  .mask.revealed .mask-original { width: 160px; }
  .mask.revealed .mask-photo { width: 180px; box-shadow: 0 0 0 3px var(--coral), 0 0 34px rgba(30, 215, 96, .35); }
}

/* Fenêtres (partage, compte) */
.modal { width: min(400px, calc(100% - 32px)); padding: 26px 24px 24px; border: 1px solid var(--line); border-top: 2px solid var(--coral); border-radius: 6px; color: var(--ink); background: #111413; box-shadow: 0 24px 60px rgba(0,0,0,.6); }
.modal::backdrop { background: rgba(0,0,0,.65); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal[open] { animation: slide-in .25s both; }
.modal h2 { margin: 8px 0 16px; font-size: 26px; letter-spacing: -.05em; }
.modal-close-form { position: absolute; top: 12px; right: 12px; margin: 0; }
.modal-close { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: transparent; cursor: pointer; transition: color .2s, border-color .2s; }
.modal-close:hover { color: var(--ink); border-color: var(--ink); }
.share-preview { margin: 0 0 20px; padding: 12px 14px; border-left: 2px solid var(--coral); border-radius: 3px; color: #c4bfb8; background: rgba(255,255,255,.05); font-size: 12px; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.share-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.share-option { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: rgba(255,255,255,.06); font: 700 13px var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.share-option i { font-size: 17px; }
.share-whatsapp { border-color: #25d366; color: #080909; background: #25d366; }
.share-whatsapp:hover { background: #1ebe5b; }
.share-copy:hover { border-color: var(--coral); color: var(--coral); }
@media (max-width: 400px) { .share-actions { grid-template-columns: 1fr; } }

/* Compte joueur : bouton, menu et fenêtres */
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.account { position: relative; }
.account-button { display: grid; place-items: center; padding: 0; font-size: 14px; }
.account-button.signed-in { font: 800 14px var(--sans); }
.account-menu { position: absolute; z-index: 10; top: calc(100% + 10px); right: 0; min-width: 210px; padding: 6px; border: 1px solid var(--line); border-radius: 6px; background: #111413; box-shadow: 0 16px 40px rgba(0,0,0,.55); animation: slide-in .18s both; }
.account-menu-head { display: flex; flex-direction: column; gap: 3px; padding: 8px 10px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.account-menu-head small { color: var(--muted); font: 9px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.account-menu-head strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.account-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 0; border-radius: 4px; color: var(--ink); background: transparent; font: 600 13px var(--sans); text-align: left; cursor: pointer; }
.account-menu button i { width: 16px; color: var(--coral); text-align: center; }
.account-menu button:hover, .account-menu button:focus-visible { background: rgba(255,255,255,.07); outline: none; }
.account-menu .account-logout { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 4px 4px; color: var(--muted); }
.account-menu .account-logout i { color: var(--muted); }

.modal-wide { width: min(560px, calc(100% - 32px)); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 18px; padding: 4px; border-radius: 5px; background: rgba(255,255,255,.06); }
.tab { padding: 9px; border: 0; border-radius: 3px; color: var(--muted); background: transparent; font: 700 12px var(--sans); cursor: pointer; transition: background .2s, color .2s; }
.tab.active { color: #080909; background: var(--coral); }
.account-form { display: flex; flex-direction: column; gap: 14px; }
.account-form label { display: flex; flex-direction: column; gap: 6px; color: #c4bfb8; font: 600 12px var(--sans); }
.account-form label small { color: var(--muted); font: 400 10px var(--mono); }
.account-form input { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 3px; color: var(--ink); background: rgba(255,255,255,.08); font: 14px var(--sans); outline: none; }
.account-form input:focus { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(30, 215, 96, .18); }
.form-error { min-height: 0; margin: -4px 0 0; color: #ff9b9b; font-size: 12px; }
.form-error:empty { display: none; }
.form-submit { padding: 13px; border: 0; border-radius: 3px; color: #080909; background: var(--coral); font: 700 13px var(--sans); cursor: pointer; transition: opacity .2s; }
.form-submit:disabled { opacity: .6; cursor: wait; }
.form-danger { align-self: center; padding: 4px; border: 0; color: #ff9b9b; background: transparent; font: 600 11px var(--sans); text-decoration: underline; cursor: pointer; }

.stats-since { margin: -8px 0 18px; color: var(--muted); font: 11px var(--mono); }
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.stat-tile { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px; background: rgba(255,255,255,.04); }
.stat-tile-label { color: var(--muted); font: 9px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.stat-tile strong { font-size: 26px; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; }
.stat-tile strong span { color: var(--muted); font-size: 16px; }
.stat-tile small { color: var(--muted); font-size: 11px; }
.stats-subtitle { margin: 22px 0 10px; color: var(--coral); font: 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.stats-recent { margin: 0; padding: 0; list-style: none; }
.stats-recent li { display: grid; grid-template-columns: 64px 1fr auto; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.stats-recent li span, .stats-recent li small { color: var(--muted); font: 11px var(--mono); }
.stats-empty { margin: 16px 0 0; color: var(--muted); font-size: 13px; }

.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 4px; background: rgba(255,255,255,.04); cursor: pointer; }
.switch-row span { display: flex; flex-direction: column; gap: 5px; }
.switch-row strong { font-size: 14px; }
.switch-row small { color: var(--muted); font-size: 12px; line-height: 1.5; }
.switch { flex: 0 0 auto; position: relative; width: 42px; height: 24px; margin: 0; border-radius: 99px; background: rgba(255,255,255,.18); appearance: none; -webkit-appearance: none; cursor: pointer; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); transition: transform .2s; }
.switch:checked { background: var(--coral); }
.switch:checked::after { background: #080909; transform: translateX(18px); }
.switch:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
@media (max-width: 480px) { .stat-tiles { grid-template-columns: 1fr 1fr; } .stats-recent li { grid-template-columns: 1fr auto; } .stats-recent li span { grid-column: 1 / -1; } }

/* Sur téléphone, la moyenne du jour passe dans le bloc de recherche, sous « Deviner » */
.daily-average-inline { display: none; }
@media (max-width: 560px) {
  .intro .daily-average { display: none; }
  .daily-average-inline { display: flex; align-items: center; gap: 9px; margin: 12px 0 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
  .daily-average-inline strong { color: var(--ink); font: 12px var(--mono); }
  .daily-average-inline .average-icon { flex: 0 0 auto; }
}

/* Fin de partie : langue au chat et lien Spotify */
.give-up-button { display: block; width: 100%; margin-top: 12px; padding: 11px; border: 1px dashed rgba(255, 107, 107, .55); border-radius: 3px; color: #ff9b9b; background: rgba(255, 107, 107, .06); font: 700 12px var(--sans); cursor: pointer; transition: background .2s, border-color .2s; }
.give-up-button:hover { border-style: solid; background: rgba(255, 107, 107, .14); }
.reveal.gave-up { border-color: rgba(255, 107, 107, .45); background: rgba(255, 107, 107, .08); }
.reveal.gave-up .section-kicker { color: #ff9b9b; }
.reveal img { flex: 0 0 56px; }
.reveal > div { flex: 1; min-width: 0; }
.reveal-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin-top: 2px; }
.reveal-link { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 99px; color: #080909; background: #1ed760; font: 700 12px var(--sans); text-decoration: none; transition: background .2s; }
.reveal-link:hover { background: #3be477; }
.reveal-link i { font-size: 15px; }
