/*
 * Hub du site (/) et page de connexion Twitch (/auth/) : thème nuit holo, mêmes jetons que holo/holo.css et
 * css/skin-holo.css (panneaux #18181b, liseré #313136, ombres dures, jaune #ffd60a, un mot en holo par titre).
 * Polices locales (SIL OFL 1.1) : /holo/fonts/. Chemins absolus : /auth est aussi servie sans barre finale.
 * Les widgets n'utilisent pas cette feuille (ils chargent /css/skin-holo.css seule).
 */

/* ── Polices ─────────────────────────────────────────────────────────────── */

@font-face {
  font-family: "Bricolage Grotesque Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/holo/fonts/bricolage-grotesque-latin-opsz-normal.woff2") format("woff2-variations"),
    url("/holo/fonts/bricolage-grotesque-latin-opsz-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/holo/fonts/bricolage-grotesque-latin-ext-opsz-normal.woff2") format("woff2-variations"),
    url("/holo/fonts/bricolage-grotesque-latin-ext-opsz-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/holo/fonts/geist-latin-wght-normal.woff2") format("woff2-variations"),
    url("/holo/fonts/geist-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/holo/fonts/geist-latin-ext-wght-normal.woff2") format("woff2-variations"),
    url("/holo/fonts/geist-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Mono Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/holo/fonts/geist-mono-latin-wght-normal.woff2") format("woff2-variations"),
    url("/holo/fonts/geist-mono-latin-wght-normal.woff2") format("woff2");
}

/* ── Jetons ──────────────────────────────────────────────────────────────── */

:root {
  color-scheme: dark;
  --bg: #0e0e10;
  --panel: #18181b;
  --panel-2: #242428;
  --line: #313136;
  --ink: #f4f4f1;
  --muted: #9d9da3;
  --shade: #000;
  --brand: #ffd60a;
  --on-brand: #111;
  --accent: #8398ff;
  --ok: #2fe39a;
  --bad: #ff4f6d;
  --holo-1: #ff4fa3;
  --holo-2: #8b6bff;
  --holo-3: #1fc8ff;
  --holo-4: #2fe39a;
  --holo-5: #ffc400;
  --holo: linear-gradient(90deg, #ff4fa3, #8b6bff, #1fc8ff, #2fe39a, #ffc400, #ff4fa3);
  --holo-card: linear-gradient(145deg, #ff4fa3 0%, #7c5cff 30%, #1fc8ff 55%, #2fe39a 80%, #ffc400 100%);
  --holo-halo: conic-gradient(#ff4fa3, #7c5cff, #1fc8ff, #7c5cff, #ff4fa3);
  --font-sans: "Geist Variable", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Bricolage Grotesque Variable", "Geist Variable", ui-sans-serif, sans-serif;
  --font-mono: "Geist Mono Variable", ui-monospace, monospace;
  --track-display: -0.03em;
  --r-card: 20px;
  --r-tile: 14px;
  --hard-sm: 3px 3px 0 var(--shade);
  --hard: 4px 4px 0 var(--shade);
  --hard-lg: 6px 6px 0 var(--shade);
  --sparkle-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0l3.5 8.5L24 12l-8.5 3.5L12 24l-3.5-8.5L0 12l8.5-3.5z'/%3E%3C/svg%3E");
  --gutter: 32px;
}

/* ── Base ────────────────────────────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 520px at 82% -120px, rgb(124 92 255 / 0.2), transparent 70%),
    radial-gradient(700px 480px at -10% 8%, rgb(31 200 255 / 0.09), transparent 70%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 450;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
code {
  font-family: var(--font-mono);
  font-size: 0.86em;
}
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

.wrap {
  width: min(1480px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* Étincelle blanche à 4 branches (le motif du logo) */
.sparkle {
  --s: 24px;
  --c: #fff;
  display: inline-block;
  width: var(--s);
  height: var(--s);
  flex: none;
  background: var(--c);
  -webkit-mask: var(--sparkle-mask) center / contain no-repeat;
  mask: var(--sparkle-mask) center / contain no-repeat;
}

/* Un mot en holo par titre */
.ink-holo {
  background: var(--holo) 0% 50% / 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: hub-holo 9s linear infinite;
  padding: 0 0.04em 0.08em 0;
  margin: 0 -0.04em -0.08em 0;
}

.label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

/* ── Pastilles et boutons ────────────────────────────────────────────────── */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px 0 12px;
  border: 2px solid #111;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: var(--hard-sm);
  color: var(--on-brand);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.chip .sparkle {
  --s: 14px;
  --c: #111;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 18px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  box-shadow: var(--hard-sm);
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    translate 120ms ease,
    box-shadow 120ms ease,
    border-color 120ms ease;
}
.btn:hover {
  translate: -1px -1px;
  box-shadow: var(--hard);
  border-color: #4a4a52;
}
.btn:active {
  translate: 2px 2px;
  box-shadow: 1px 1px 0 var(--shade);
}
.btn--brand {
  border-color: #111;
  background: var(--brand);
  color: var(--on-brand);
}
.btn--brand:hover {
  border-color: #111;
}
.btn--sm {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
}
.btn .sparkle {
  --s: 13px;
  --c: currentColor;
}

/* Boutons « Écouter » des sons d'alerte (carte Alertes) */
.sounds {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}
.sounds__label {
  margin-right: 2px;
  color: var(--muted);
  font-size: 14px;
}

/* Pastille d'état (badge secondaire du site : fond panneau, liseré, point) */
.state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 4px 14px 4px 11px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  box-shadow: var(--hard-sm);
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
}
.state::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--muted);
}
.state.is-ok::before {
  background: var(--ok);
  box-shadow: 0 0 0 3px rgb(47 227 154 / 0.18);
}
.state.is-bad::before {
  background: var(--bad);
  box-shadow: 0 0 0 3px rgb(255 79 109 / 0.16);
}
a.state {
  min-height: 44px;
  padding: 0 18px 0 15px;
  font-size: 15px;
  transition:
    translate 120ms ease,
    box-shadow 120ms ease;
}
a.state:hover {
  translate: -1px -1px;
  box-shadow: var(--hard);
}

/* ── En-tête ─────────────────────────────────────────────────────────────── */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 6px;
}
.lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.lockup .mark {
  width: 48px;
  height: 48px;
}
.lockup .wordmark {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.nav a {
  padding: 8px 14px;
  border: 2px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
}
.nav a:hover {
  border-color: var(--line);
  background: var(--panel);
  color: var(--ink);
}

/* ── Héros : la pochette jaune et ses cartes holo ────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 40px;
  padding: 44px 0 64px;
}
.hero__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero h1 {
  margin-top: 26px;
  font-family: var(--font-display);
  font-size: clamp(54px, 7.4vw, 124px);
  font-weight: 800;
  letter-spacing: var(--track-display);
  line-height: 0.9;
}
.hero h1 .ink-holo {
  display: inline-block;
}
.lead {
  max-width: 640px;
  margin-top: 26px;
  color: var(--muted);
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 500;
  line-height: 1.45;
  text-wrap: pretty;
}
.lead strong {
  color: var(--ink);
  font-weight: 650;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero__art {
  position: relative;
  height: 440px;
}
.hero__art::before {
  content: "";
  position: absolute;
  inset: 14% 18% 10%;
  border-radius: 50%;
  background: var(--holo-halo);
  filter: blur(72px);
  opacity: 0.42;
}
.fan {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 320px;
  height: 380px;
  translate: -50% -50%;
}
.fan__card {
  position: absolute;
  top: 18px;
  width: 172px;
  height: 240px;
  border: 3px solid #111;
  border-radius: 16px;
  background: var(--holo-card);
  box-shadow: 6px 6px 0 var(--shade);
  overflow: hidden;
}
/* reflet qui balaie la carte, comme le dos des cartes holo */
.fan__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgb(255 255 255 / 0.32) 45%, transparent 60%) -160% 0 / 260% 100%
    no-repeat;
  animation: hub-sheen 6s ease-in-out infinite;
}
.fan__card .sparkle {
  position: absolute;
  top: 16px;
  right: 16px;
  --s: 30px;
}
.fan__card .sparkle + .sparkle {
  top: auto;
  right: auto;
  bottom: 18px;
  left: 18px;
  --s: 16px;
}
.fan__card--l {
  left: 0;
  rotate: -15deg;
  animation: hub-float-l 7s ease-in-out infinite;
}
.fan__card--r {
  right: 0;
  top: 0;
  rotate: 13deg;
  animation: hub-float-r 8s ease-in-out infinite;
}
.fan__card--r::after {
  animation-delay: -3s;
}
.fan__mark {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 236px;
  height: 236px;
  translate: -50% 0;
  filter: drop-shadow(7px 7px 0 var(--shade));
}
.twinkle {
  position: absolute;
  left: var(--x);
  top: var(--y);
  translate: -50% -50%;
  filter: drop-shadow(0 0 calc(var(--s) * 0.4) var(--c));
  animation: hub-twinkle var(--t, 3.4s) ease-in-out var(--d, 0s) infinite;
}

/* ── Sections ────────────────────────────────────────────────────────────── */

.section {
  padding: 56px 0;
  border-top: 2px solid var(--line);
}
.section__head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: end;
  gap: 16px 48px;
  margin-bottom: 34px;
}
.section__head h2 {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.2vw, 64px);
  font-weight: 800;
  letter-spacing: var(--track-display);
  line-height: 0.95;
}
.section__head h2 .label {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-sans);
  letter-spacing: 0.08em;
}
.section__head p {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
}
.section__head p code,
.note code,
.steps code,
.auth-steps code {
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-2);
  color: var(--ink);
}

.panel {
  position: relative;
  border: 2px solid var(--line);
  border-radius: var(--r-card);
  background: var(--panel);
  box-shadow: var(--hard-lg);
}

/* ── Widgets ─────────────────────────────────────────────────────────────── */

.widgets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas:
    "chat ghost bars"
    "alert alert alert";
  align-items: start;
  gap: 26px;
}
.w-chat {
  grid-area: chat;
}
.w-ghost {
  grid-area: ghost;
}
.w-bars {
  grid-area: bars;
}
.w-alert {
  grid-area: alert;
}

.wcard {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 14px;
}
.wcard__view {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 18px;
  border: 2px solid var(--line);
  border-radius: var(--r-tile);
  background:
    radial-gradient(circle at 1px 1px, rgb(255 255 255 / 0.07) 1px, transparent 0) 0 0 / 18px 18px,
    #111114;
}
/* Le chat caché se pose sur un jeu : fond « paysage de jeu » pour juger le texte détouré */
.wcard__view--game {
  background:
    radial-gradient(120% 70% at 70% 0%, rgb(255 214 140 / 0.35), transparent 60%),
    linear-gradient(170deg, #5d8fb8 0%, #9cc2d8 34%, #6f9a5b 35%, #4c7a3e 62%, #3a5a2f 100%);
}
.stage {
  position: relative;
  width: 100%;
  max-width: calc(var(--w) * 1px);
  aspect-ratio: var(--w) / var(--h);
  overflow: hidden;
}
.stage iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(var(--w) * 1px);
  height: calc(var(--h) * 1px);
  border: 0;
  background: transparent;
  /* même color-scheme que la page du widget, sinon Chrome peint un fond opaque (blanc) derrière l'iframe */
  color-scheme: normal;
  transform: scale(var(--k, 0.5));
  transform-origin: 0 0;
  pointer-events: none;
}
.wcard__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 8px 8px;
}
.wcard__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}
.wcard h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: var(--track-display);
  line-height: 1;
}
.size {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 11px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.wcard__body > p,
.w-bars > p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}
.wcard__body > p code {
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-2);
  color: var(--ink);
}
.url {
  display: flex;
  align-items: center;
  gap: 8px;
}
.url code {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #111114;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  user-select: all;
}
.wcard__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: rgb(255 214 10 / 0.6);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.link:hover {
  text-decoration-color: var(--brand);
}
/* Un lien dans une phrase (« Un seul type : follow, … ») reste en ligne : la virgule qui le suit
   ne passe jamais seule au début de la ligne suivante. */
p > .link {
  display: inline;
}

/* Les trois barres « Dernier » dans une seule carte (même taille, même fonctionnement) */
.w-bars {
  gap: 14px;
  padding: 22px 22px 20px;
}
.bars {
  display: grid;
  gap: 18px;
  margin: 4px 0 2px;
}
.bar {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.bar .wcard__view {
  padding: 12px;
}

/* L'alerte : la seule bordure holo (comme dans OBS), aperçu à gauche, texte à droite */
.w-alert {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
  align-items: center;
  border: 3px solid transparent;
  background:
    linear-gradient(var(--panel), var(--panel)) padding-box,
    conic-gradient(from var(--angle, 210deg), #ff4fa3, #8b6bff, #1fc8ff, #2fe39a, #ffc400, #ff4fa3) border-box;
  animation: hub-angle 8s linear infinite;
}
.w-alert .wcard__body {
  padding: 8px 12px 8px 26px;
}
@property --angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 210deg;
}

.note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 28px;
  padding: 14px 18px;
  border: 2px solid var(--line);
  border-radius: var(--r-tile);
  background: var(--panel);
  color: var(--muted);
  font-size: 16px;
}
.note .sparkle {
  --s: 16px;
  --c: var(--brand);
  margin-top: 4px;
}

/* ── Pages holo ──────────────────────────────────────────────────────────── */

.pages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
}
.pgroup {
  padding: 22px 20px 20px;
}
.pgroup h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: var(--track-display);
  line-height: 1;
}
.pgroup h3 .sparkle {
  --s: 16px;
  --c: var(--brand);
}
.plist {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}
.ptile {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 12px 14px 12px 18px;
  border: 2px solid var(--line);
  border-radius: var(--r-tile);
  background: var(--panel-2);
  text-decoration: none;
  overflow: hidden;
  transition:
    translate 120ms ease,
    box-shadow 120ms ease,
    border-color 120ms ease;
}
/* tranche holo à gauche : la carte qui sort de la pochette */
.ptile::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--holo-card);
}
.ptile:hover {
  translate: -1px -1px;
  border-color: #4a4a52;
  box-shadow: var(--hard);
}
.ptile__name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.ptile__desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}
.ptile__file {
  margin-top: 4px;
  color: #c9c9cf;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.ptile__file::after {
  content: " ↗";
  color: var(--brand);
}

/* ── OBS ─────────────────────────────────────────────────────────────────── */

.obs {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: start;
  gap: 26px;
}
.steps {
  display: grid;
  gap: 18px;
  padding: 26px 28px;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding-left: 52px;
  color: var(--muted);
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid #111;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: var(--hard-sm);
  color: var(--on-brand);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
}
.steps strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.sizes {
  padding: 22px 24px 18px;
}
.sizes h3 {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: var(--track-display);
}
.sizes table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.sizes th,
.sizes td {
  padding: 10px 0;
  border-top: 2px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.sizes th {
  padding-right: 12px;
  font-weight: 650;
}
.sizes td {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 14px;
  text-align: right;
  white-space: nowrap;
}

/* ── Twitch ──────────────────────────────────────────────────────────────── */

.twitch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 26px;
}
.twitch__status {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px 28px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.twitch__status p,
.twitch__help p {
  color: var(--muted);
}
.twitch__help {
  display: grid;
  gap: 12px;
  padding: 26px 28px;
}
.twitch__help strong {
  color: var(--ink);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 30px 0 44px;
  border-top: 2px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.foot a {
  color: var(--muted);
}

/* ── Connexion Twitch (/auth/) ───────────────────────────────────────────── */

.auth {
  display: grid;
  place-items: center;
  padding: 40px var(--gutter);
}
.auth-wrap {
  display: grid;
  justify-items: start;
  gap: 22px;
  width: min(680px, 100%);
}
.auth-box {
  display: grid;
  gap: 18px;
  width: 100%;
  padding: 30px 32px 30px;
}
.auth-box > .chip {
  justify-self: start;
}
.auth-box h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 60px);
  font-weight: 800;
  letter-spacing: var(--track-display);
  line-height: 0.95;
}
.auth-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
}
.auth-steps li::marker {
  color: var(--brand);
  font-family: var(--font-display);
  font-weight: 800;
}
.auth-steps a {
  color: var(--ink);
  text-decoration-color: rgb(255 214 10 / 0.6);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.auth-steps code {
  overflow-wrap: anywhere;
}
#msg {
  padding: 12px 16px;
  border: 2px solid var(--line);
  border-left: 6px solid var(--brand);
  border-radius: 12px;
  background: var(--panel-2);
  color: var(--ink);
  font-weight: 600;
}
#msg:empty {
  display: none;
}
.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ── Animations ──────────────────────────────────────────────────────────── */

@keyframes hub-holo {
  to {
    background-position: 300% 50%;
  }
}
@keyframes hub-angle {
  to {
    --angle: 570deg;
  }
}
@keyframes hub-sheen {
  0%,
  55% {
    background-position: -160% 0;
  }
  100% {
    background-position: 260% 0;
  }
}
@keyframes hub-float-l {
  50% {
    translate: -4px -10px;
  }
}
@keyframes hub-float-r {
  50% {
    translate: 4px -12px;
  }
}
@keyframes hub-twinkle {
  0%,
  100% {
    opacity: 0.15;
    scale: 0.5;
    rotate: 0deg;
  }
  50% {
    opacity: 1;
    scale: 1;
    rotate: 45deg;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ── Écrans moyens et téléphones ─────────────────────────────────────────── */

@media (max-width: 1180px) {
  .widgets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "chat ghost"
      "bars bars"
      "alert alert";
  }
  .w-alert {
    grid-template-columns: minmax(0, 1fr);
  }
  .w-alert .wcard__body {
    padding: 18px 8px 8px;
  }
  .pages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .obs,
  .twitch {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 20px 0 48px;
  }
  .hero__art {
    order: -1;
    height: 300px;
  }
  .fan {
    scale: 0.72;
  }
  .section__head {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 16px;
  }
  body {
    font-size: 16px;
  }
  .top {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 16px;
  }
  .nav {
    margin-left: -14px;
  }
  .widgets {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "chat"
      "ghost"
      "bars"
      "alert";
    gap: 20px;
  }
  .wcard {
    padding: 10px;
  }
  .w-bars {
    padding: 18px 14px 16px;
  }
  .wcard__view {
    padding: 12px;
  }
  .url {
    flex-direction: column;
    align-items: stretch;
  }
  .url .btn {
    align-self: flex-start;
  }
  .section {
    padding: 40px 0;
  }
  .steps,
  .twitch__status,
  .twitch__help,
  .auth-box {
    padding: 22px 20px;
  }
  .pages {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .auth {
    padding: 24px var(--gutter);
  }
}
