/* ==========================================================================
   Tubes Rewind — « soirée karaoké »
   L'écran bleu nuit des karaokés, les paroles qui se colorient en jaune quand on les chante,
   les gros chiffres du hit-parade, la frise d'années et les cassettes. Écrit mobile d'abord :
   les règles de base visent le téléphone, les @media (min-width) élargissent.
   ========================================================================== */

:root {
  --ink: #150F4C;          /* fond : l'écran du karaoké */
  --ink-2: #1E1772;        /* surfaces */
  --ink-3: #2C2496;        /* traits, survols */
  --ink-deep: #0D0937;     /* champs, puits */
  --white: #FFFFFF;
  --lav: #B9B4EC;          /* texte secondaire */
  --lav-2: #8A84CC;        /* texte discret */
  --sun: #FFE14D;          /* jaune karaoké : actions, paroles « chantées » */
  --sun-deep: #E8C21C;
  --pink: #FF4FA8;
  --ok: #3DF5A8;
  --bad: #FF6B6B;
  /* Une couleur par époque */
  --era-80: #FF4FA8;
  --era-90: #3FE0F0;
  --era-2000: #C6F432;
  --era-2010: #FF8A3D;
  --era-2020: #B79CFF;
  --era-mix: #FFE14D;
  --era: var(--era-mix);

  --font: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --gutter: 18px;
  --head-h: 58px;
  --tab-h: 64px;
  --r: 20px;
}
.era-80 { --era: var(--era-80); }
.era-90 { --era: var(--era-90); }
.era-2000 { --era: var(--era-2000); }
.era-2010 { --era: var(--era-2010); }
.era-2020 { --era: var(--era-2020); }
.era-mix { --era: var(--era-mix); }

/* --- Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 12px); }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--ink); color: var(--white); font: 400 1rem/1.55 var(--font); font-stretch: 100%;
  -webkit-font-smoothing: antialiased; padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom));
}
main { flex: 1; }
img, svg { display: block; max-width: 100%; }
.icon { display: inline-block; flex: none; }
a { color: var(--sun); text-underline-offset: 3px; }
a:hover { color: #FFF0A0; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--pink); color: var(--white); }
h1, h2, h3 { margin: 0 0 .4em; font-weight: 900; line-height: .98; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 10vw, 5.2rem); font-stretch: 112%; }
h2 { font-size: clamp(1.55rem, 6vw, 2.4rem); font-stretch: 108%; }
h3 { font-size: 1.15rem; font-stretch: 105%; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 680px; }
.muted { color: var(--lav); }
.lede { font-size: 1.06rem; color: var(--lav); max-width: 56ch; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--sun); color: var(--ink); padding: 10px 14px; border-radius: 99px; font-weight: 800; }
.skip-link:focus { top: 10px; }
.section { padding-top: 56px; }
.section-head { margin-bottom: 18px; }
.section-head h2 { margin: 0 0 4px; }
.section-head p { margin: 0; color: var(--lav); }
@media (min-width: 760px) {
  :root { --gutter: 32px; --head-h: 68px; --tab-h: 0px; }
  .section { padding-top: 88px; }
  .section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
}

/* Paroles de karaoké : le texte se colorie de gauche à droite (une seule animation par écran) */
.karaoke {
  background: linear-gradient(90deg, var(--sun) 0 50%, var(--white) 50% 100%) 100% 0 / 200% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.karaoke.sing { animation: sing 2.6s cubic-bezier(.35, .1, .35, 1) .25s forwards; }
.karaoke.sung { background-position: 0 0; }
@keyframes sing { to { background-position: 0 0; } }

/* Grands chiffres condensés (années, scores, rangs) */
.lcd, .num { font-weight: 900; font-stretch: 62%; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; line-height: .9; }
.lcd { color: var(--sun); }
.lcd-box { display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 14px 6px; border-radius: 99px; background: var(--ink-deep); }
.lcd-box .lcd { font-size: 1.25rem; }
.lcd-box small { font-size: .78rem; font-weight: 700; color: var(--lav); }

/* Étiquettes autocollantes (époque, points gagnés) */
.sticker, .era-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 6px; transform: rotate(-2.5deg);
  background: var(--era); color: var(--ink); font-weight: 900; font-size: .82rem; font-stretch: 105%; line-height: 1.3;
  box-shadow: 2px 3px 0 rgba(0, 0, 0, .25);
}

/* --- Boutons ------------------------------------------------------------------ */
.btn {
  --bg: var(--sun); --fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 0 24px;
  border: 0; border-radius: 99px; background: var(--bg); color: var(--fg); cursor: pointer; position: relative;
  font: 800 1rem/1 var(--font); font-stretch: 106%; text-decoration: none; white-space: nowrap;
  transition: transform .1s ease, filter .15s; -webkit-tap-highlight-color: transparent;
}
.btn:hover { color: var(--fg); filter: brightness(1.06); }
.btn:active { transform: scale(.96); }
.btn.big { min-height: 58px; padding: 0 30px; font-size: 1.1rem; }
.btn.small { min-height: 40px; padding: 0 16px; font-size: .92rem; }
.btn.lcd-key { --bg: var(--pink); --fg: var(--white); }
.btn.ink { --bg: var(--ink); --fg: var(--white); }
.btn.ghost { --bg: transparent; --fg: var(--white); box-shadow: inset 0 0 0 2px var(--ink-3); }
.btn.ghost:hover { box-shadow: inset 0 0 0 2px var(--lav-2); }
.btn.danger { --bg: transparent; --fg: var(--bad); box-shadow: inset 0 0 0 2px var(--bad); }
.btn[disabled] { opacity: .55; cursor: default; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn-row.center { justify-content: center; }
.btn-row.full > .btn { flex: 1; }
.text-btn { background: none; border: 0; color: var(--lav); font: 700 .95rem var(--font); cursor: pointer; padding: 8px 12px; border-radius: 99px; display: inline-flex; gap: 6px; align-items: center; }
.text-btn:hover { color: var(--white); background: var(--ink-2); }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 0; background: var(--ink-2); color: var(--white); cursor: pointer; flex: none; }
.icon-btn:hover { background: var(--ink-3); }

/* --- En-tête ---------------------------------------------------------------- */
.site-head { position: sticky; top: 0; z-index: 40; background: rgba(21, 15, 76, .9); backdrop-filter: blur(12px); }
.site-head .wrap { display: flex; align-items: center; gap: 10px; height: var(--head-h); }
.brand { display: flex; align-items: center; gap: 9px; color: var(--white); text-decoration: none; font-weight: 900; font-stretch: 115%; font-size: 1.12rem; letter-spacing: -0.02em; white-space: nowrap; margin-right: auto; }
.brand:hover { color: var(--white); }
.brand .logo { width: 32px; height: 32px; border-radius: 50%; }
.brand:hover .logo { animation: spin 1.6s linear; }
.nav { display: none; }
.head-tools { display: flex; align-items: center; gap: 8px; }
.account-link { display: inline-flex; align-items: center; gap: 8px; color: var(--white); text-decoration: none; font-weight: 800; font-size: .95rem; padding: 4px 4px 4px 4px; border-radius: 99px; }
.account-link .label { display: none; }
.account-link.guest { padding: 9px 14px; background: var(--ink-2); }
.account-link.guest .label { display: inline; }
.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--pink); color: var(--white); font-weight: 900; font-size: .95rem; text-transform: uppercase; flex: none; }
@media (min-width: 760px) {
  .brand { margin-right: 18px; }
  .nav { display: flex; gap: 2px; margin-right: auto; }
  .nav a { color: var(--lav); text-decoration: none; padding: 10px 13px; border-radius: 99px; font-weight: 800; font-size: .95rem; }
  .nav a:hover { color: var(--white); background: var(--ink-2); }
  .nav a[aria-current="page"] { color: var(--ink); background: var(--white); }
  .account-link .label { display: inline; }
  .account-link:not(.guest) { padding-right: 12px; background: var(--ink-2); }
}

/* Barre d'onglets (téléphone) */
.tabbar {
  position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding: 6px 6px env(safe-area-inset-bottom);
  background: rgba(13, 9, 55, .96); backdrop-filter: blur(12px); border-top: 1px solid var(--ink-3);
}
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--lav-2); text-decoration: none; font-weight: 800; font-size: .72rem; border-radius: 14px; }
.tabbar a[aria-current="page"] { color: var(--sun); }
@media (min-width: 760px) { .tabbar { display: none; } }

/* --- Recherche --------------------------------------------------------------- */
.search { position: fixed; inset: 0; z-index: 80; background: rgba(13, 9, 55, .97); backdrop-filter: blur(6px); overflow-y: auto; animation: fade .15s ease-out; }
.search-bar { position: sticky; top: 0; z-index: 1; padding: 10px 0; background: var(--ink-deep); }
.search-bar .wrap { flex-wrap: nowrap; }
.search-field { flex: 1; display: flex; align-items: center; gap: 10px; background: var(--white); color: var(--ink); border-radius: 99px; padding: 0 16px; min-height: 52px; }
.search-field input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 700 1.1rem var(--font); outline: none; box-shadow: none; min-height: 48px; padding: 0; }
.search-field input::-webkit-search-cancel-button { display: none; }
.search-results { padding-top: 10px; padding-bottom: 40px; }
.search-results h2 { font-size: .95rem; font-stretch: 100%; color: var(--lav); margin: 22px 0 8px; letter-spacing: 0; }
.results { list-style: none; padding: 0; margin: 0; }
.results a { display: flex; align-items: center; gap: 14px; padding: 10px 10px; border-radius: 14px; color: var(--white); text-decoration: none; }
.results a:hover, .results a:focus-visible, .results a.active { background: var(--ink-2); }
.results .thumb { width: 46px; height: 46px; border-radius: 50%; flex: none; background: var(--era); color: var(--ink); display: grid; place-items: center; font-weight: 900; font-stretch: 62%; font-size: 1.15rem; object-fit: cover; }
.results .square { border-radius: 10px; }
.results strong { display: block; font-weight: 800; font-size: 1.05rem; line-height: 1.2; }
.results span.sub { display: block; color: var(--lav); font-size: .88rem; }
.search-hint { color: var(--lav); padding: 18px 0; }
.search-hint button { background: var(--ink-2); color: var(--white); border: 0; border-radius: 99px; padding: 8px 14px; margin: 6px 6px 0 0; font: 700 .95rem var(--font); cursor: pointer; }
.search-hint button:hover { background: var(--ink-3); }

/* --- Messages (toasts) ------------------------------------------------------------ */
.toasts { position: fixed; z-index: 60; top: calc(var(--head-h) + 10px); left: 50%; transform: translateX(-50%); width: min(560px, calc(100% - 24px)); display: grid; gap: 8px; pointer-events: none; }
.toast {
  pointer-events: auto; padding: 13px 18px; border-radius: 18px; background: var(--white); color: var(--ink); font-weight: 700;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .6); animation: drop .25s ease-out, lift .4s ease-in 7s forwards;
}
.toast.error { background: var(--bad); color: var(--white); }
.alert { padding: 13px 16px; border-radius: 16px; margin: 14px 0; background: var(--ink-2); }
.alert.error { background: rgba(255, 107, 107, .16); color: #FFD0D0; }
.alert.ok { background: rgba(61, 245, 168, .14); }
.alert p { margin: 0 0 10px; }

/* --- Formulaires --------------------------------------------------------------------- */
.form { display: grid; gap: 18px; }
.field label, .field legend { display: block; font-weight: 800; margin-bottom: 7px; font-size: .95rem; padding: 0; }
.field .hint { font-size: .86rem; color: var(--lav); margin: 6px 0 0; }
input[type=text], input[type=email], input[type=password], select {
  width: 100%; min-height: 52px; padding: 10px 18px; border-radius: 16px; border: 2px solid transparent;
  background: var(--ink-deep); color: var(--white); font: 600 1rem var(--font); transition: border-color .15s;
}
input::placeholder { color: var(--lav-2); font-weight: 500; }
input:focus, select:focus { outline: none; border-color: var(--sun); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--lav) 50%), linear-gradient(135deg, var(--lav) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; color: var(--lav); }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--sun); flex: none; }
.trap { position: absolute; left: -9999px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.segmented { display: inline-flex; gap: 4px; padding: 4px; border-radius: 99px; background: var(--ink-deep); flex-wrap: wrap; }
.segmented label { position: relative; margin: 0; }
.segmented input { position: absolute; opacity: 0; inset: 0; }
.segmented span { display: block; min-width: 64px; padding: 10px 18px; text-align: center; border-radius: 99px; font-weight: 900; font-stretch: 105%; color: var(--lav); cursor: pointer; }
.segmented input:checked + span { background: var(--sun); color: var(--ink); }
.segmented input:focus-visible + span { outline: 3px solid var(--white); outline-offset: 1px; }

/* Panneau simple (formulaires, statistiques) */
.plate { background: var(--ink-2); border-radius: var(--r); position: relative; }

/* ==========================================================================
   Accueil
   ========================================================================== */
.hero { position: relative; isolation: isolate; padding: 26px 0 0; overflow: hidden; }
.hero::before {  /* projecteur de scène */
  content: ""; position: absolute; z-index: -1; left: 50%; top: -260px; width: 900px; height: 700px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 79, 168, .28), rgba(255, 79, 168, 0));
  pointer-events: none;
}
.kicker { color: var(--lav); font-weight: 700; margin: 0 0 10px; }
.hero h1 { max-width: 11ch; margin-bottom: 8px; }
.hero .lede { margin-bottom: 0; }
@media (min-width: 760px) { .hero { padding-top: 56px; } }

/* La frise d'années (tuner) */
.frise { margin-top: 30px; }
.frise-now { display: flex; align-items: flex-end; gap: 14px; padding: 0 var(--gutter); max-width: 1140px; margin: 0 auto; }
.frise-now .year { font-size: clamp(6rem, 34vw, 11rem); color: var(--white); line-height: .78; }
.frise-now .meta { padding-bottom: 6px; display: grid; gap: 10px; justify-items: start; }
.frise-band { position: relative; margin-top: 18px; }
.tuner-scale {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 calc(50% - 30px);
  -webkit-overflow-scrolling: touch; background: var(--ink-deep);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.tuner-scale::-webkit-scrollbar { display: none; }
.tuner-scale a {
  flex: 0 0 60px; scroll-snap-align: center; text-align: center; text-decoration: none; color: var(--lav-2);
  font-weight: 900; font-stretch: 62%; font-size: 1.3rem; padding: 34px 0 12px; transition: color .15s;
  background: linear-gradient(var(--ink-3), var(--ink-3)) 50% 0 / 2px 22px no-repeat,
              linear-gradient(var(--ink-3), var(--ink-3)) 0 0 / 1px 12px no-repeat;
}
.tuner-scale a.major { color: var(--lav); background: linear-gradient(var(--era), var(--era)) 50% 0 / 3px 26px no-repeat, linear-gradient(var(--ink-3), var(--ink-3)) 0 0 / 1px 12px no-repeat; }
.tuner-scale a.on { color: var(--sun); }
.tuner-needle { position: absolute; left: 50%; top: 0; width: 0; height: 0; margin-left: -9px; border: 9px solid transparent; border-top: 12px solid var(--sun); pointer-events: none; filter: drop-shadow(0 0 6px rgba(255, 225, 77, .7)); }
.frise-actions { display: grid; gap: 14px; padding: 18px var(--gutter) 0; max-width: 1140px; margin: 0 auto; }
.frise-actions .btn { width: 100%; }
.presets { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.preset { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; border: 0; background: var(--ink-2); color: var(--white); font: 800 .9rem var(--font); cursor: pointer; }
.preset i { width: 10px; height: 10px; border-radius: 50%; background: var(--era); }
.preset:hover { background: var(--ink-3); }
@media (min-width: 760px) {
  .frise-actions { grid-template-columns: auto 1fr; align-items: center; }
  .frise-actions .btn { width: auto; }
  .presets { justify-content: flex-end; }
}

/* Bandes pleine largeur */
.band { margin-top: 40px; padding: 30px 0; }
.band h2 { margin-bottom: 8px; }
.band p { max-width: 52ch; }
.band-daily { background: var(--pink); color: var(--ink); position: relative; overflow: hidden; }
.band-daily::after {   /* grand « 10 » en filigrane : dix chansons */
  content: "10"; position: absolute; right: -12px; bottom: -48px; font-weight: 900; font-stretch: 62%; font-size: 15rem; line-height: 1;
  color: rgba(21, 15, 76, .12); pointer-events: none;
}
.band-daily p { color: rgba(21, 15, 76, .85); font-weight: 600; }
.band-daily .lcd-box { background: var(--ink); }
.band-daily .daily-status { color: var(--ink); }
.band-multi { background: var(--ink-2); }
.band .btn-row { position: relative; z-index: 1; }
.daily-status { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--ok); }
.join-inline { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.join-inline input { flex: 1 1 140px; min-width: 0; max-width: 220px; text-transform: uppercase; letter-spacing: .28em; font-weight: 900; font-size: 1.15rem; text-align: center; background: var(--white); color: var(--ink); }
.join-inline input::placeholder { color: #9590C8; letter-spacing: .2em; }
@media (min-width: 760px) { .band { margin-top: 64px; padding: 44px 0; } .band-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; } .band-inner p { margin-bottom: 0; } }

/* Cassettes : une par décennie, à faire glisser sur téléphone */
.cassettes { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 6px var(--gutter) 16px; }
.cassettes::-webkit-scrollbar { display: none; }
.k7-link { flex: 0 0 74%; scroll-snap-align: start; text-decoration: none; display: block; }
@media (min-width: 760px) { .cassettes { display: grid; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 0; padding: 6px 0 0; } }
.k7 {
  position: relative; display: block; aspect-ratio: 1.58; border-radius: 12px; color: var(--ink);
  background: #241C7E; padding: 8% 7% 0; box-shadow: inset 0 0 0 2px #3A31A8, 0 14px 26px -16px rgba(0, 0, 0, .8);
  transition: transform .22s cubic-bezier(.2, .8, .2, 1);
}
.k7-link:hover .k7, .k7-link:focus-visible .k7 { transform: rotate(-2deg) translateY(-4px); }
.k7-label { position: relative; display: block; height: 66%; border-radius: 6px; background: var(--era); padding: 5% 7% 0; overflow: hidden; }
.k7-label::before { content: ""; position: absolute; left: 7%; right: 7%; top: 50%; height: 1px; background: rgba(0, 0, 0, .25); box-shadow: 0 6px 0 rgba(0, 0, 0, .12); }
.k7-label::after {
  content: ""; position: absolute; left: 24%; right: 24%; bottom: 9%; height: 30%; border-radius: 99px;
  background: radial-gradient(circle at 20% 50%, #F4F2FF 0 16%, #261F6E 17% 38%, transparent 39%),
              radial-gradient(circle at 80% 50%, #F4F2FF 0 16%, #261F6E 17% 38%, transparent 39%), #110C40;
}
.k7-title { position: relative; display: block; font-weight: 900; font-stretch: 62%; font-size: clamp(2.2rem, 11vw, 3.1rem); line-height: .85; letter-spacing: -0.02em; }
.k7-side { position: absolute; top: 9%; right: 7%; font-weight: 900; font-size: .75rem; opacity: .6; }
.k7-foot { position: absolute; left: 0; right: 0; bottom: 0; height: 26%; display: flex; align-items: center; justify-content: center; gap: 12%; }
.k7-foot i { width: 6%; aspect-ratio: 1; border-radius: 50%; background: #0D0937; }
.k7-caption { display: flex; justify-content: space-between; margin-top: 10px; font-weight: 800; color: var(--white); }
.k7-caption span { color: var(--lav); font-weight: 600; }
@media (min-width: 760px) { .k7-title { font-size: 2.6rem; } }

/* Mur d'artistes */
.names { display: flex; flex-wrap: wrap; gap: 2px 16px; font-weight: 900; font-stretch: 112%; font-size: clamp(1.2rem, 5.4vw, 1.9rem); line-height: 1.3; letter-spacing: -0.025em; }
.names a { color: var(--white); text-decoration: none; }
.names a:nth-child(4n+2) { color: var(--lav); }
.names a:nth-child(4n+3) { font-stretch: 75%; }
.names a:hover { color: var(--sun); }
.more-artists { margin-top: 18px; }

/* Hit-parade (classements) */
.chart { list-style: none; padding: 0; margin: 0; }
.chart li { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--ink-3); }
.chart li:last-child { border-bottom: 0; }
.chart .rank { font-weight: 900; font-stretch: 62%; font-size: 2.6rem; line-height: .9; color: var(--lav-2); text-align: right; }
.chart li:first-child .rank, .chart .rank.gold { color: var(--sun); }
.chart .who { font-weight: 800; font-size: 1.1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chart .sub { display: block; color: var(--lav); font-size: .82rem; font-weight: 600; }
.chart .pts { font-weight: 900; font-stretch: 62%; font-size: 1.6rem; color: var(--white); font-variant-numeric: tabular-nums; }
.chart li.me .who { color: var(--sun); }
.empty { color: var(--lav); padding: 14px 0; margin: 0; }

.duo { display: grid; gap: 40px; }
@media (min-width: 900px) { .duo { grid-template-columns: 1.1fr 1fr; gap: 56px; } }
.yt { display: flex; gap: 14px; align-items: center; margin-top: 22px; padding: 16px; border-radius: var(--r); background: var(--ink-2); }
.yt .icon { color: #FF5A52; }
.yt p { margin: 0; }

/* ==========================================================================
   Pages de jeu
   ========================================================================== */
.play-head { padding: 18px 0 4px; }
.crumbs { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.crumbs a { color: var(--lav); text-decoration: none; font-weight: 700; font-size: .92rem; }
.crumbs a:hover { color: var(--white); }
.play-head h1 { font-size: clamp(2rem, 8.5vw, 3.6rem); margin-bottom: .1em; }
.play-head .lede { margin: 6px 0 0; }
@media (min-width: 760px) { .play-head { padding-top: 34px; } }

/* La scène : pleine largeur sur téléphone */
.stage {
  position: relative; margin: 16px calc(var(--gutter) * -1) 0; padding: 22px var(--gutter) 26px; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 0%, #2B2199, var(--ink-2) 60%);
}
.stage::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--era); }
@media (min-width: 760px) { .stage { margin: 22px 0 0; border-radius: 28px; padding: 30px 36px 34px; } }

/* Écran d'accueil de la partie */
.start { display: grid; gap: 22px; }
.start .deck { margin: 0 auto; width: 150px; }
.rules { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 14px; }
.rules li { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: center; color: var(--lav); }
.rules .icon { width: 38px; height: 38px; padding: 9px; border-radius: 50%; background: var(--ink-deep); color: var(--sun); }
.rules strong { color: var(--white); }
.start .btn.big { width: 100%; }
.start-note { margin: 14px 0 0; font-size: .92rem; color: var(--lav); }
@media (min-width: 760px) {
  .start { grid-template-columns: auto 1fr; gap: 48px; align-items: center; }
  .start .deck { width: 220px; }
  .start .btn.big { width: auto; }
}

/* Barre du haut pendant la partie */
.stage-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.progress { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.progress .count { font-weight: 900; font-stretch: 62%; font-size: 1.5rem; color: var(--lav); white-space: nowrap; font-variant-numeric: tabular-nums; }
.grooves { display: none; gap: 4px; flex: 1; max-width: 320px; }
.grooves i { flex: 1; height: 6px; border-radius: 3px; background: var(--ink-3); transition: background .3s; }
.grooves i.both { background: var(--ok); }
.grooves i.part { background: var(--sun); }
.grooves i.miss { background: #4A4296; }
.grooves i.now { background: var(--white); animation: pulse 1.2s ease-in-out infinite; }
@media (min-width: 420px) { .grooves { display: flex; } }
.top-right { display: flex; align-items: center; gap: 8px; }
.score-lcd { font-size: 1.5rem !important; }
.rank-badge { font-weight: 800; font-size: .82rem; color: var(--ink); background: var(--white); padding: 5px 10px; border-radius: 99px; white-space: nowrap; }

/* Platine : vinyle + chrono circulaire */
.deck { display: grid; place-items: center; margin: 0 auto 14px; width: min(250px, 64vw); aspect-ratio: 1; position: relative; }
.deck svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.deck .ring circle { fill: none; stroke-width: 5; }
.deck .ring .track { stroke: rgba(255, 255, 255, .12); transition: stroke .3s; }
.deck .ring .time { stroke: var(--sun); stroke-linecap: round; transition: stroke-dashoffset .25s linear, stroke .3s; }
.deck .ring.low .time { stroke: var(--bad); }
.disc { width: 86%; aspect-ratio: 1; border-radius: 50%; background: url("/static/img/avatar.png") center / 127% no-repeat; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); cursor: pointer; }
.disc.spin { animation: spin 3s linear infinite; }
.cover { position: absolute; width: 82%; aspect-ratio: 1; border-radius: 14px; object-fit: cover; box-shadow: 0 18px 44px rgba(0, 0, 0, .55); animation: flip-in .45s cubic-bezier(.2, .8, .2, 1); }
.countdown { position: absolute; bottom: -2px; right: 0; padding: 8px 12px 6px; min-width: 56px; text-align: center; font-size: 1.7rem !important; border-radius: 99px; background: var(--ink-deep); }
.deck.hit .ring .track { stroke: var(--ok); }
.deck.hit::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; box-shadow: 0 0 0 4px var(--ok); animation: hit .7s ease-out forwards; pointer-events: none; }
.pop { position: absolute; left: 50%; top: 36%; transform: translateX(-50%); font-weight: 900; font-stretch: 62%; font-size: 3.4rem; line-height: 1; color: var(--ok); pointer-events: none; animation: pop 1.1s ease-out forwards; white-space: nowrap; z-index: 3; text-shadow: 0 4px 0 rgba(0, 0, 0, .3); }
.get-ready { position: absolute; inset: 7%; border-radius: 50%; display: grid; place-items: center; background: rgba(13, 9, 55, .85); font-size: 6rem !important; z-index: 2; }
.eq { display: flex; gap: 3px; align-items: end; height: 18px; justify-content: center; margin: -4px 0 12px; opacity: 0; transition: opacity .3s; }
.eq.on { opacity: 1; }
.eq i { width: 4px; border-radius: 2px; background: var(--sun); height: 30%; }
.eq.on i { animation: eq .9s ease-in-out infinite alternate; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; } .eq i:nth-child(4) { animation-delay: -.15s; }
.eq i:nth-child(5) { animation-delay: -.45s; } .eq i:nth-child(6) { animation-delay: -.75s; } .eq i:nth-child(7) { animation-delay: -.2s; }

.prompt { text-align: center; margin: 0 auto 12px; max-width: 520px; }
.prompt .known { font-weight: 900; font-stretch: 110%; font-size: 1.5rem; line-height: 1.1; margin: 0; }
.prompt .known span { display: block; color: var(--lav); font-weight: 700; font-stretch: 100%; font-size: 1rem; margin-top: 4px; }
.guess-form { display: flex; gap: 8px; max-width: 580px; margin: 0 auto; }
.guess-form input { flex: 1; min-width: 0; min-height: 58px; font-size: 1.12rem; font-weight: 700; border-radius: 99px; background: var(--white); color: var(--ink); padding: 0 22px; }
.guess-form input::placeholder { color: #8F89C9; }
.guess-form input:focus { border-color: var(--sun); box-shadow: 0 0 0 4px rgba(255, 225, 77, .35); }
.guess-form .btn { min-height: 58px; padding: 0 20px; }
.found { display: flex; justify-content: center; gap: 8px; margin: 14px 0 0; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 99px; border: 2px dashed var(--ink-3); color: var(--lav); font-weight: 800; font-size: .9rem; transition: all .25s; }
.chip.yes { border: 2px solid var(--ok); color: var(--ink); background: var(--ok); }
.feedback { text-align: center; min-height: 1.6em; margin: 10px 0 0; font-weight: 800; }
.feedback.good { color: var(--ok); }
.feedback.bad { color: var(--bad); }
.shake { animation: shake .35s; }
.round-actions { display: flex; justify-content: center; align-items: center; gap: 8px 16px; margin-top: 10px; flex-wrap: wrap; }
.kbd-hint { display: none; font-size: .82rem; color: var(--lav-2); }
.kbd-hint kbd { font: 700 .75rem var(--font); padding: 2px 7px; border-radius: 6px; background: var(--ink-deep); color: var(--lav); }
@media (min-width: 760px) and (pointer: fine) { .kbd-hint { display: inline; } }

/* Réponse : le titre se colorie comme une ligne de karaoké */
.answer { text-align: center; }
.answer .t { font-weight: 900; font-stretch: 112%; font-size: clamp(1.7rem, 7vw, 2.6rem); line-height: 1.02; margin: 0; letter-spacing: -0.025em; }
.answer .a { font-size: 1.12rem; color: var(--lav); margin: 8px 0 0; font-weight: 700; }
.answer .y { color: var(--sun); font-weight: 900; }
.answer .gain { --era: var(--sun); margin: 14px 0 0; }
.answer .gain.zero { --era: var(--ink-3); color: var(--lav); box-shadow: none; }
.answer .listen { font-size: .9rem; margin: 12px 0 0; }
.next-btn { overflow: hidden; }
.next-btn .fill { position: absolute; left: 0; bottom: 0; height: 100%; width: 0; background: rgba(21, 15, 76, .14); }
.next-btn.auto .fill { width: 100%; transition: width var(--auto, 6s) linear; }

/* Résultat */
.result { text-align: center; }
.result h2 { margin-bottom: 6px; }
.verdict { display: inline-block; margin: 0 0 10px; }
.result .big { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin: 6px 0 16px; }
.result .big .lcd { font-size: clamp(6rem, 30vw, 9rem); color: var(--white); }
.result .big small { font-weight: 900; font-stretch: 62%; font-size: 2.4rem; color: var(--lav); }
.recap { list-style: none; padding: 0; margin: 26px auto 6px; max-width: 600px; text-align: left; }
.recap li { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--ink-3); }
.recap img { width: 52px; height: 52px; border-radius: 8px; }
.recap .t { font-weight: 800; line-height: 1.25; }
.recap .t span { display: block; color: var(--lav); font-weight: 600; font-size: .88rem; }
.recap .p { font-weight: 900; font-stretch: 62%; font-size: 1.5rem; color: var(--sun); }
.recap .p.zero { color: #5A5299; }
.signup-nudge { margin: 24px auto 0; max-width: 520px; padding: 20px; border-radius: var(--r); background: var(--pink); color: var(--ink); font-weight: 600; }
.signup-nudge p { margin: 0 0 14px; }
.signup-nudge .btn { --bg: var(--ink); --fg: var(--white); }
.signup-nudge .btn.ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }

.loading { display: inline-flex; align-items: center; gap: 10px; color: var(--lav); font-weight: 700; }
.loading::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--ink-3); border-top-color: var(--sun); animation: spin .8s linear infinite; }

/* Contenu éditorial des pages de jeu */
.about { display: grid; gap: 8px; }
@media (min-width: 860px) { .about { grid-template-columns: 1.1fr 1fr; gap: 56px; } }
.prose { max-width: 66ch; }
.prose h2 { margin-top: 1.4em; font-size: 1.5rem; }
.prose ul { padding-left: 20px; }
.faq dt { font-weight: 800; margin-top: 18px; }
.faq dd { margin: 4px 0 0; color: var(--lav); }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.pill-list a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 99px; color: var(--white); text-decoration: none; font-weight: 800; background: var(--ink-2); }
.pill-list a:hover { background: var(--ink-3); }
.pill-list a i { width: 9px; height: 9px; border-radius: 50%; background: var(--era); }

/* Hub */
.years { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.years a { display: grid; place-items: center; min-height: 58px; border-radius: 14px; background: var(--ink-2); color: var(--white); text-decoration: none; font-weight: 900; font-stretch: 62%; font-size: 1.6rem; box-shadow: inset 0 -4px 0 var(--era); }
.years a:hover { background: var(--ink-3); color: var(--era); }
@media (min-width: 760px) { .years { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); } }
.quiz-list { display: grid; gap: 8px; }
.quiz-list a { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 16px; background: var(--ink-2); color: var(--white); text-decoration: none; font-weight: 800; }
.quiz-list a:hover { background: var(--ink-3); }
.quiz-list .icon { color: var(--era); }
@media (min-width: 760px) { .quiz-list { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); } }

/* ==========================================================================
   Multijoueur
   ========================================================================== */
.multi-grid { display: grid; gap: 16px; margin-top: 22px; }
.multi-grid .plate { padding: 22px; }
.multi-grid h2 { font-size: 1.5rem; }
@media (min-width: 900px) { .multi-grid { grid-template-columns: 1.15fr 1fr; align-items: start; } .multi-grid .plate { padding: 30px; } }
.code-form input { text-transform: uppercase; letter-spacing: .3em; font-weight: 900; font-size: 1.4rem; text-align: center; }
.score-scale { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.score-scale li { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--ink-3); }
.score-scale li:last-child { border-bottom: 0; }
.score-scale .lcd { font-size: 1.7rem; }
.score-scale span { color: var(--lav); font-weight: 700; }

.room { padding-top: 14px; }
.room-join { max-width: 560px; margin: 20px auto; text-align: center; padding: 26px 22px; }
.room-join h1 { font-size: clamp(2rem, 8vw, 3rem); }
.room-join .code { color: var(--sun); letter-spacing: .05em; }
.room-join .guess-form { margin-top: 18px; }
.room-grid { display: grid; gap: 18px; }
.room-main .stage { margin-top: 0; }
.room-side { padding: 18px; }
.room-side h2 { font-size: 1.15rem; display: flex; align-items: center; gap: 8px; }
@media (min-width: 900px) {
  .room-grid { grid-template-columns: minmax(0, 1fr) 336px; align-items: start; }
  .room-side { position: sticky; top: calc(var(--head-h) + 14px); }
}
.lobby-code { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 6px 0; }
.lobby-code .lcd-box .lcd { font-size: clamp(2.6rem, 12vw, 3.6rem); letter-spacing: .1em; }
.invite { display: flex; gap: 8px; margin: 18px 0 4px; }
.invite input { flex: 1; min-width: 0; font-size: .9rem; color: var(--lav); }
.lobby-faces { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.face { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; border-radius: 99px; background: var(--ink-deep); font-weight: 800; animation: drop .3s ease-out; }
.face .avatar { width: 30px; height: 30px; font-size: .85rem; }
.board { list-style: none; padding: 0; margin: 0; }
.board li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--ink-3); min-height: 50px; }
.board li:last-child { border-bottom: 0; }
.board .rank { width: 26px; font-weight: 900; font-stretch: 62%; font-size: 1.5rem; color: var(--lav-2); text-align: right; flex: none; }
.board .rank.gold { color: var(--sun); }
.board .who { flex: 1; min-width: 0; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board .pts { font-weight: 900; font-stretch: 62%; font-size: 1.4rem; color: var(--white); font-variant-numeric: tabular-nums; }
.board .sub { color: var(--lav); font-size: .82rem; font-weight: 600; margin-left: 6px; }
.board li.me .who { color: var(--sun); }
.board.live li.away { opacity: .45; }
.board .tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 99px; background: var(--sun); color: var(--ink); font-weight: 800; font-size: .66rem; line-height: 1.6; vertical-align: 2px; }
.board .tag.dim { background: var(--ink-3); color: var(--lav); }
.marks { display: inline-flex; gap: 3px; }
.marks i { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--ink-deep); color: var(--lav-2); font-weight: 900; font-size: .68rem; font-style: normal; }
.marks i.ok { background: var(--ok); color: var(--ink); }
.kick { background: none; border: 0; color: var(--lav-2); border-radius: 99px; padding: 4px 8px; font: 700 .75rem var(--font); cursor: pointer; }
.kick:hover { color: var(--bad); background: rgba(255, 107, 107, .12); }
.ticker { list-style: none; padding: 0; margin: 14px 0 0; font-size: .88rem; color: var(--lav); }
.ticker li { padding: 7px 0; border-bottom: 1px dashed var(--ink-3); animation: drop .25s ease-out; }
.ticker li:first-child { color: var(--ok); font-weight: 800; }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 8px; align-items: end; max-width: 460px; margin: 22px auto 8px; }
.podium .step { text-align: center; min-width: 0; }
.podium .step .who { font-weight: 800; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 6px; }
.podium .step .block { border-radius: 14px 14px 4px 4px; background: var(--ink-deep); padding: 12px 6px; }
.podium .step .lcd { font-size: 1.6rem; color: var(--white); }
.podium .step .n { display: block; font-weight: 900; font-stretch: 62%; font-size: 3rem; line-height: .9; color: var(--lav-2); margin-bottom: 6px; }
.podium .s1 { order: 2; } .podium .s2 { order: 1; } .podium .s3 { order: 3; }
.podium .s1 .block { min-height: 150px; background: var(--sun); }
.podium .s1 .n, .podium .s1 .lcd { color: var(--ink); }
.podium .s2 .block { min-height: 114px; }
.podium .s3 .block { min-height: 90px; }
.podium .step.me .who { color: var(--sun); }
.rest { list-style: none; padding: 0; margin: 10px auto; max-width: 460px; text-align: left; }
.rest li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--ink-3); font-weight: 700; }
.rest li.me { color: var(--sun); }

/* ==========================================================================
   Classement, compte, connexion
   ========================================================================== */
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 99px; background: var(--ink-deep); margin-bottom: 20px; }
.tabs button { border: 0; background: none; color: var(--lav); font: 800 .95rem var(--font); padding: 10px 16px; border-radius: 99px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--white); color: var(--ink); }
.top3 { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 8px; align-items: end; margin-bottom: 18px; }
.top3 > div { text-align: center; min-width: 0; padding: 14px 6px; border-radius: 16px 16px 4px 4px; background: var(--ink-2); }
.top3 .n { display: block; font-weight: 900; font-stretch: 62%; font-size: 3rem; line-height: .9; color: var(--lav-2); }
.top3 .first { order: 2; padding-top: 28px; background: var(--sun); color: var(--ink); }
.top3 .first .n, .top3 .first .lcd { color: var(--ink); }
.top3 .second { order: 1; } .top3 .third { order: 3; }
.top3 .who { display: block; font-weight: 800; margin: 6px 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top3 .lcd { font-size: 1.7rem; color: var(--white); }
.board-panel { padding: 4px 18px; }
.head-actions { margin-top: 18px; }

.profile { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.profile .avatar { width: 68px; height: 68px; font-size: 2rem; }
.profile h1 { margin: 0; font-size: clamp(2rem, 8vw, 3.2rem); }
.profile p { margin: 4px 0 0; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 22px 0; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(5, 1fr); } }
.stat { padding: 16px; }
.stat .lcd { display: block; font-size: 2.8rem; color: var(--white); }
.stat span { color: var(--lav); font-size: .86rem; font-weight: 600; }
details.box { border-radius: 16px; padding: 16px 18px; margin: 10px 0; background: var(--ink-2); }
details.box summary { cursor: pointer; font-weight: 800; }
details.box form { margin-top: 14px; }
table.plain { width: 100%; border-collapse: collapse; }
table.plain td, table.plain th { padding: 10px 4px; border-bottom: 1px solid var(--ink-3); text-align: left; }
table.plain th { color: var(--lav); font-weight: 700; font-size: .86rem; }
table.plain td.num { font-weight: 900; font-stretch: 62%; font-size: 1.4rem; color: var(--sun); white-space: nowrap; }

.auth { max-width: 460px; margin: 0 auto; padding: 22px 0 10px; }
.auth .plate { padding: 26px 22px; }
.auth .logo { width: 52px; height: 52px; border-radius: 50%; margin-bottom: 14px; }
.auth h1 { font-size: clamp(2rem, 8vw, 2.6rem); }
.auth .alt { text-align: center; margin: 18px 0 0; color: var(--lav); }
.auth .btn.big { width: 100%; }
@media (min-width: 760px) { .auth { padding-top: 56px; } .auth .plate { padding: 36px; } }

.lost { text-align: center; padding: 60px 0; }
.lost .disc { width: 150px; margin: 0 auto 24px; filter: grayscale(.4); transform: rotate(-20deg); }
.lost h1 { font-size: clamp(2rem, 8vw, 3rem); }
.lost .lede { margin-left: auto; margin-right: auto; }

/* --- Publicité et consentement ------------------------------------------------------ */
.ad { display: grid; justify-items: center; gap: 4px; margin: 36px auto 0; max-width: 100%; }
.ad-label { font-size: .72rem; color: var(--lav-2); font-weight: 700; }
.ad iframe { border: 0; display: block; background: transparent; max-width: 100%; }
.ad-banner .ad-728 { display: none; }
@media (min-width: 760px) { .ad-banner .ad-728 { display: block; } .ad-banner .ad-300 { display: none; } }
.answer .ad, .result .ad { margin-top: 24px; }
.room-side .ad { margin-top: 18px; }
.consent {
  position: fixed; z-index: 70; left: 12px; right: 12px; bottom: calc(var(--tab-h) + 12px + env(safe-area-inset-bottom));
  max-width: 620px; margin: 0 auto; padding: 18px 20px; border-radius: 22px; background: var(--white); color: var(--ink);
  box-shadow: 0 24px 60px -16px rgba(0, 0, 0, .7); animation: drop .3s ease-out;
}
.consent h2 { font-size: 1.15rem; margin: 0 0 6px; }
.consent p { margin: 0 0 14px; font-size: .93rem; color: #3A3477; }
.consent a { color: var(--ink); }
.consent .btn-row .btn { flex: 1; }
.consent .btn { --bg: var(--ink); --fg: var(--white); }
.consent .btn.ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.linkish { background: none; border: 0; padding: 0; color: var(--lav); font: inherit; cursor: pointer; text-align: left; }
.linkish:hover { color: var(--white); }

/* --- Pied de page --------------------------------------------------------------------- */
.site-foot { margin-top: 72px; padding: 36px 0 30px; color: var(--lav); font-size: .92rem; background: var(--ink-deep); }
.site-foot .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.site-foot .about-col { grid-column: 1 / -1; }
.site-foot h2 { font-size: .95rem; font-stretch: 100%; color: var(--white); margin: 0 0 10px; letter-spacing: 0; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-foot a { color: var(--lav); text-decoration: none; }
.site-foot a:hover { color: var(--white); }
.site-foot .brand { margin-bottom: 12px; }
.site-foot p { margin: 0 0 8px; max-width: 42ch; }
@media (min-width: 760px) { .site-foot .wrap { grid-template-columns: 1.4fr 1fr 1fr; } .site-foot .about-col { grid-column: auto; } }

/* --- Animations ------------------------------------------------------------------------ */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .45; } }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes hit { from { opacity: 1; transform: scale(.96); } to { opacity: 0; transform: scale(1.1); } }
@keyframes pop { 0% { opacity: 0; transform: translate(-50%, 12px) scale(.7); } 20% { opacity: 1; transform: translate(-50%, 0) scale(1.08); } 100% { opacity: 0; transform: translate(-50%, -70px) scale(1); } }
@keyframes flip-in { from { opacity: 0; transform: rotateY(70deg) scale(.9); } }
@keyframes eq { from { height: 20%; } to { height: 100%; } }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
@keyframes lift { to { opacity: 0; transform: translateY(-8px); visibility: hidden; } }
@keyframes fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.board-panel { padding: 0; }
.band + .band { margin-top: 0; }
.cassettes { scroll-padding-inline: var(--gutter); }
.band-daily::after { display: none; }
@media (min-width: 760px) { .band-daily::after { display: block; } }

/* --- Premium ------------------------------------------------------------------------ */
.premium-grid { display: grid; gap: 28px; margin-top: 22px; }
@media (min-width: 900px) { .premium-grid { grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; } }
.premium-offer { padding: 24px 20px; }
@media (min-width: 760px) { .premium-offer { padding: 32px; } }
.plans { display: grid; gap: 10px; }
.plan { position: relative; display: block; cursor: pointer; }
.plan input { position: absolute; opacity: 0; inset: 0; }
.plan-body { display: grid; gap: 4px; padding: 16px 18px; border-radius: 18px; background: var(--ink-deep); box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .15s; }
.plan input:checked + .plan-body { box-shadow: inset 0 0 0 3px var(--sun); }
.plan input:focus-visible + .plan-body { outline: 3px solid var(--white); outline-offset: 2px; }
.plan-name { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.plan-price { color: var(--lav); font-weight: 700; }
.plan-price .num { font-size: 2.6rem; color: var(--white); margin-right: 4px; }
.plan-note { color: var(--lav-2); font-size: .88rem; }
.premium-offer .btn.big { width: 100%; }
.premium-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 99px; background: var(--pink); color: var(--white); font-weight: 800; font-size: .66rem; line-height: 1.6; vertical-align: 2px; }
.ad-label a { color: var(--lav-2); }
.ad-label a:hover { color: var(--white); }
