/* NES — site public. Jetons repris de NES-LoL/src/renderer/theme.css, police Archivo (OFL 1.1). */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("fonts/Archivo-latin.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: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("fonts/Archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("fonts/Archivo-Italic-latin.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;
}

:root {
  --bg: #06080c;
  --panel: #0b0f16;
  --card: #111722;
  --card-2: #0d121b;
  --hover: #121925;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --text: #f4f6fa;
  --text-2: #c9d2df;
  --muted: #93a0b4;
  --accent: #ffc247;
  --accent-ink: #06080c;
  --ally: #6ab8ff;
  --enemy: #f27b60;
  --neutral: #b9c2ce;
  --plate: rgba(9, 12, 18, 0.82);
  --ok: #3ee6b0;
  --radius: 10px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 "Archivo", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img,
svg {
  max-width: 100%;
  display: block;
}
a {
  color: var(--accent);
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
code,
.mono {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.88em;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  border-radius: 6px;
}
.skip:focus {
  top: 12px;
}
.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ---- Typographie ------------------------------------------------------------------------------- */

.h1 {
  margin: 0;
  font-weight: 900;
  font-style: italic;
  font-stretch: 75%;
  text-transform: uppercase;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.95;
}
.h2 {
  margin: 0;
  font-weight: 900;
  font-style: italic;
  font-stretch: 75%;
  text-transform: uppercase;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  text-wrap: balance;
}
.h3 {
  margin: 0;
  font-weight: 800;
  font-stretch: 85%;
  font-size: 21px;
  line-height: 1.25;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 14px;
  height: 14px;
  background: var(--accent);
  clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%);
}
.lead {
  margin: 0;
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.55;
  color: var(--text-2);
  max-width: 60ch;
}
.muted {
  color: var(--muted);
}
.num {
  font-weight: 900;
  font-stretch: 78%;
  line-height: 1;
}
.prose {
  max-width: 72ch;
  color: var(--text-2);
}
.prose h2 {
  margin: 56px 0 14px;
  color: var(--text);
  font-weight: 800;
  font-stretch: 85%;
  font-size: 26px;
  line-height: 1.2;
  scroll-margin-top: 24px;
}
.prose h3 {
  margin: 28px 0 8px;
  color: var(--text);
  font-weight: 700;
  font-size: 19px;
}
.prose p,
.prose ul,
.prose ol {
  margin: 0 0 14px;
}
.prose li {
  margin: 4px 0;
}
.prose strong {
  color: var(--text);
}

/* ---- Boutons ----------------------------------------------------------------------------------- */

.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-weight: 800;
  font-stretch: 90%;
  font-size: 17px;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
/* Fond en parallélogramme, comme l'icône : le contour de focus du bouton n'est pas rogné. */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 6px;
  transform: skewX(-12deg);
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: background-color 0.15s;
}
.btn:hover::before {
  background: var(--hover);
}
.btn-primary {
  color: var(--accent-ink);
}
.btn-primary::before {
  background: var(--accent);
  box-shadow: 0 10px 30px rgba(255, 194, 71, 0.18);
}
.btn-primary:hover::before {
  background: #ffcf6b;
}
.btn-sm {
  min-height: 40px;
  padding: 0 18px;
  font-size: 15px;
}
.btn small {
  font-weight: 600;
  font-size: 13px;
  opacity: 0.75;
}
.btn svg {
  flex: none;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}
.cta-meta {
  font-size: 14px;
  color: var(--muted);
}

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

.site-header {
  position: relative;
  z-index: 5;
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}
.brand-mark {
  width: 22px;
  height: 22px;
  background: var(--accent);
  clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%);
}
.brand-name {
  font-weight: 900;
  font-style: italic;
  font-stretch: 80%;
  font-size: 25px;
  letter-spacing: 0.02em;
}
.brand-full {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--text-2);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
  background: var(--card);
}
.lang {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 8px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line);
}
.lang a,
.lang span {
  padding: 4px 9px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-decoration: none;
}
.lang [aria-current] {
  color: var(--accent-ink);
  background: var(--text-2);
}
.menu {
  display: none;
}
.menu summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  background: var(--card);
  cursor: pointer;
}
.menu summary::-webkit-details-marker {
  display: none;
}
.menu-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 72px;
  padding: 12px var(--gutter) 20px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 2px;
}
.menu-panel a {
  padding: 12px 8px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 960px) {
  .nav,
  .site-header .lang,
  .brand-full {
    display: none;
  }
  .menu {
    display: block;
    margin-left: auto;
  }
  .site-header .wrap {
    gap: 12px;
  }
}

/* ---- Sections ---------------------------------------------------------------------------------- */

.section {
  padding-block: clamp(64px, 9vw, 120px);
}
.section-tight {
  padding-block: clamp(40px, 6vw, 72px);
}
.section-head {
  display: grid;
  gap: 16px;
  margin-bottom: clamp(32px, 4vw, 56px);
  max-width: 760px;
}
.band {
  background: var(--panel);
  border-block: 1px solid var(--line);
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
}
@media (max-width: 900px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}
.card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
}
.card-title {
  margin: 0 0 6px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- Haut de page ------------------------------------------------------------------------------ */

.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(40px, 6vw, 88px);
}

/* Haut de page : les trois phases d'une partie défilent (18 s), l'écran montre la phase en cours.
   --on (0 ou 1) vient de l'animation p1/p2/p3 ; sans animation, la phase « Pendant » reste affichée. */
@property --on {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}
.ph1,
.ph3 {
  --on: 0;
}
.ph2 {
  --on: 1;
}
.flow.anim .ph1 {
  animation: p1 18s linear infinite;
  animation-delay: -9s;
}
.flow.anim .ph2 {
  animation: p2 18s linear infinite;
  animation-delay: -9s;
}
.flow.anim .ph3 {
  animation: p3 18s linear infinite;
  animation-delay: -9s;
}
@keyframes p1 {
  0%, 31% { --on: 1; }
  34%, 97% { --on: 0; }
  100% { --on: 1; }
}
@keyframes p2 {
  0%, 31% { --on: 0; }
  34%, 64% { --on: 1; }
  67%, 100% { --on: 0; }
}
@keyframes p3 {
  0%, 64% { --on: 0; }
  67%, 97% { --on: 1; }
  100% { --on: 0; }
}

.hero-b .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: center;
}
.hero-kicker {
  margin: 0 0 22px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.words {
  margin: 0;
  font-weight: 900;
  font-style: italic;
  font-stretch: 75%;
  text-transform: uppercase;
  font-size: clamp(56px, 7.4vw, 112px);
  line-height: 0.92;
}
.words > span {
  position: relative;
  display: block;
  width: max-content;
  /* Mot inactif : #5f6b7e (contraste 3,7:1, texte de grande taille). */
  color: color-mix(in srgb, var(--text) calc(var(--on) * 100%), #5f6b7e);
}
/* Barre jaune de l'élément actif, comme dans le menu de l'appli. */
.words > span::after {
  content: "";
  position: absolute;
  right: -0.32em;
  top: 0.14em;
  bottom: 0.14em;
  width: 0.08em;
  border-radius: 2px;
  background: var(--accent);
  opacity: var(--on);
}
.phase-list {
  display: grid;
  gap: 4px;
  margin: 30px 0 30px;
  padding: 0;
  list-style: none;
}
.phase-list li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  padding: 8px 0 8px 12px;
  border-left: 2px solid color-mix(in srgb, var(--accent) calc(var(--on) * 100%), var(--line-2));
  font-size: 16px;
  color: color-mix(in srgb, var(--text) calc(var(--on) * 100%), var(--muted));
}
.phase-list b {
  padding-top: 2px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Écran : trois couches superposées, une par phase. */
.screen {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px var(--line-2);
}
.screen > * {
  position: absolute;
  inset: 0;
  opacity: var(--on);
}
.screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
}
.screen .stage {
  position: absolute;
  inset: 0;
  container-name: screen;
  aspect-ratio: auto;
  border-radius: 0;
  box-shadow: none;
}
/* Écran 16:10 (bureau) : ces placements ne valent que pour le conteneur « screen ». */
@container screen (min-width: 1px) {
  .screen .ov-tab {
    top: 14cqi;
    width: 64cqi;
  }
  .screen .ov-bench {
    top: auto;
    bottom: 4cqi;
    right: 3cqi;
  }
}

/* Barre des phases du client LoL, sous l'écran. */
.gameflow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--muted);
}
.gameflow li {
  display: grid;
  gap: 8px;
}
.gameflow i {
  display: block;
  height: 4px;
  border-radius: 2px;
  background: var(--line-2);
  overflow: hidden;
}
.gameflow i::before {
  content: "";
  display: block;
  height: 100%;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(var(--fill, 0));
}
.gameflow .ph1 i::before {
  --fill: 1;
}
.gameflow .ph2 i::before {
  --fill: 0.5;
}
.gameflow span {
  color: color-mix(in srgb, var(--text) calc(var(--on) * 100%), var(--muted));
}
.flow.anim .gameflow .ph1 i::before {
  animation: fill1 18s linear infinite;
  animation-delay: -9s;
}
.flow.anim .gameflow .ph2 i::before {
  animation: fill2 18s linear infinite;
  animation-delay: -9s;
}
.flow.anim .gameflow .ph3 i::before {
  animation: fill3 18s linear infinite;
  animation-delay: -9s;
}
@keyframes fill1 {
  0% { transform: scaleX(0); }
  33.3%, 98% { transform: scaleX(1); }
  100% { transform: scaleX(0); }
}
@keyframes fill2 {
  0%, 33.3% { transform: scaleX(0); }
  66.6%, 98% { transform: scaleX(1); }
  100% { transform: scaleX(0); }
}
@keyframes fill3 {
  0%, 66.6% { transform: scaleX(0); }
  98% { transform: scaleX(1); }
  100% { transform: scaleX(0); }
}
@media (max-width: 900px) {
  .hero-b .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .words {
    font-size: clamp(52px, 15vw, 96px);
  }
}
@media (max-width: 640px) {
  .screen {
    aspect-ratio: 4 / 5;
  }
  .screen img {
    object-position: 18% top;
  }
  .screen .stage {
    container-name: stage;
  }
  .phase-list li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* Menu de l'appli, reproduit pour présenter les pages. */
.appmenu {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 64px;
}
.appmenu h3 {
  margin: 0 0 10px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.appmenu ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}
.appmenu li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 4px 14px;
  padding: 12px 14px;
  border-radius: 8px;
}
.appmenu li:hover {
  background: var(--card);
}
.appmenu svg {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  fill: none;
  stroke: var(--text-2);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.appmenu b {
  font-weight: 700;
  font-size: 17px;
}
.appmenu p {
  grid-column: 2;
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}
@media (max-width: 900px) {
  .appmenu {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* Onglets de captures en CSS (boutons radio). */
.shots-tabs {
  position: relative;
  display: flex;
  gap: 4px;
  margin: 0 0 18px;
  padding: 4px;
  border: 0;
  border-radius: 10px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line);
  width: max-content;
  max-width: 100%;
  min-inline-size: 0;
  overflow-x: auto;
}
.shots-tabs input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.shots-tabs label {
  padding: 8px 14px;
  border-radius: 7px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-2);
  white-space: nowrap;
  cursor: pointer;
}
.shots-tabs input:checked + label {
  background: var(--text);
  color: var(--accent-ink);
}
.shots-tabs input:focus-visible + label {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
@supports selector(:has(*)) {
  .shots .shot {
    display: none;
  }
  .shots:has(#c1:checked) .c1,
  .shots:has(#c2:checked) .c2,
  .shots:has(#c3:checked) .c3,
  .shots:has(#c4:checked) .c4,
  .shots:has(#c5:checked) .c5,
  .shots:has(#c6:checked) .c6 {
    display: block;
  }
}

/* Extraits de l'interface de NES (avertissements tels qu'affichés). */
.excerpt {
  padding: 20px;
  border-radius: 12px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line-2);
  display: grid;
  gap: 14px;
  font-size: 15px;
}
.xrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
}
.xrow b {
  display: block;
  font-weight: 700;
}
.xrow small {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.xwarn {
  margin: -4px 0 0;
  padding: 0 14px;
  font-size: 14px;
  color: var(--enemy);
}
.xnote {
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-2);
  background: var(--card-2);
}
.never {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.never li {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.never li::before {
  content: "✕ ";
  color: var(--enemy);
  font-weight: 800;
}
.path {
  display: block;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text-2);
  font-size: 14px;
  overflow-x: auto;
}
.dl-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding: clamp(22px, 3vw, 32px);
  border-radius: 14px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.dl-strip .num {
  font-size: 40px;
  font-style: italic;
}
.ally {
  color: var(--ally);
}
.enemy {
  color: var(--enemy);
}
.gold {
  color: var(--accent);
}

/* ---- Écran de jeu factice et overlays (styles des vrais overlays, widgets.tsx) ------------------- */

.stage {
  position: relative;
  container: stage / inline-size;
  aspect-ratio: 21 / 9;
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(60% 80% at 20% 90%, rgba(62, 230, 176, 0.07), transparent 60%),
    radial-gradient(50% 70% at 85% 10%, rgba(106, 184, 255, 0.09), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.018) 0 2px, transparent 2px 22px),
    linear-gradient(180deg, #1b222c, #10151c);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px var(--line-2);
}
.stage-label {
  position: absolute;
  left: 2cqi;
  bottom: 1.8cqi;
  font-size: max(11px, 1.05cqi);
  letter-spacing: 0.06em;
  color: #9aa4b1;
}
.stage-caption {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.ov-strip {
  position: absolute;
  left: 50%;
  top: 2.2cqi;
  transform: translateX(-50%);
  display: flex;
  align-items: stretch;
  height: max(34px, 3.6cqi);
  border-radius: 0.7cqi;
  background: rgba(9, 12, 18, 0.78);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  font-size: max(11px, 1.5cqi);
}
.ov-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.8em;
  padding: 0 1.2em;
}
.ov-item svg {
  flex: none;
  width: 1.3em;
  height: 1.3em;
  fill: none;
  stroke: var(--text-2);
  stroke-width: 2;
  stroke-linejoin: round;
}
.ov-label {
  font-weight: 600;
  font-stretch: 85%;
  letter-spacing: 0.04em;
  color: var(--text-2);
}
.ov-clock {
  min-width: 2.6em;
  font-weight: 800;
  font-stretch: 78%;
  font-size: 1.3em;
  color: var(--text);
}
.ov-sep {
  width: 1px;
  margin: 0.7em 0;
  background: var(--line-2);
}
.ov-bar {
  position: absolute;
  left: 1.2em;
  right: 1.2em;
  bottom: 0.25em;
  height: 3px;
  background: rgba(255, 194, 71, 0.2);
  transform-origin: left;
}
.ov-bar i {
  display: block;
  height: 100%;
  background: var(--accent);
  transform-origin: left;
}

/* Compte à rebours en CSS pur : --t (secondes) s'anime, deux compteurs l'affichent en m:ss. */
@property --t {
  syntax: "<integer>";
  inherits: true;
  initial-value: 0;
}
@property --g {
  syntax: "<integer>";
  inherits: true;
  initial-value: 0;
}
.ov-clock::before {
  content: attr(data-static);
}
@supports (width: round(down, 1px, 1px)) and (width: mod(3px, 2px)) {
  .ov-clock {
    counter-reset: m round(down, var(--t) / 60, 1) s mod(var(--t), 60);
  }
  .ov-clock::before {
    content: counter(m) ":" counter(s, decimal-leading-zero);
  }
  .ov-num {
    counter-reset: g var(--g);
  }
  .ov-num::before {
    content: counter(g);
  }
}
.ov-dragon {
  --t: 72;
}
.anim .ov-dragon {
  animation: dragon 80s linear infinite;
}
.anim .ov-dragon .ov-bar {
  animation: dragon-bar 80s linear infinite;
}
.anim .ov-dragon .ov-bar i {
  animation: dragon-fill 80s linear infinite;
}
.anim .ov-dragon .ov-clock {
  animation: dragon-hot 80s step-end infinite;
}
.ov-baron {
  --t: 96;
}
.anim .ov-baron {
  animation: baron 80s linear infinite;
}
.ov-up {
  display: none;
}
@keyframes dragon {
  0% {
    --t: 72;
  }
  90% {
    --t: 0;
  }
  100% {
    --t: 0;
  }
}
@keyframes baron {
  0% {
    --t: 96;
  }
  100% {
    --t: 16;
  }
}
/* Barre visible sous 1:00 (12 s après le départ sur 72), pleine à l'apparition. */
@keyframes dragon-bar {
  0%,
  15% {
    opacity: 0;
  }
  15.01%,
  90% {
    opacity: 1;
  }
  90.01%,
  100% {
    opacity: 0;
  }
}
@keyframes dragon-fill {
  0%,
  15% {
    transform: scaleX(0);
  }
  90%,
  100% {
    transform: scaleX(1);
  }
}
/* Mise en évidence à T−60 s et T−30 s (3 s), puis à l'apparition. */
@keyframes dragon-hot {
  0% {
    color: var(--text);
  }
  15% {
    color: var(--accent);
  }
  18.75% {
    color: var(--text);
  }
  52.5% {
    color: var(--accent);
  }
  56.25% {
    color: var(--text);
  }
  86.25% {
    color: var(--accent);
  }
}

.ov-tab {
  position: absolute;
  left: 50%;
  top: 9.5cqi;
  width: 66cqi;
  transform: translateX(-50%);
  padding: 2.6cqi 0 0;
  border: 1px dashed rgba(185, 192, 200, 0.35);
  background: rgba(12, 16, 22, 0.5);
}
.ov-tab-label {
  position: absolute;
  left: 1cqi;
  top: 0.6cqi;
  font-size: max(10px, 0.95cqi);
  color: #9aa4b1;
  letter-spacing: 0.05em;
}
.ov-rows {
  display: grid;
  grid-template-columns: 1fr 7.5cqi 1fr;
}
.ov-side {
  display: grid;
}
.ov-ghost {
  height: 3.6cqi;
  display: flex;
  align-items: center;
  gap: 0.9cqi;
  padding: 0 1.2cqi;
}
.ov-side-r .ov-ghost {
  flex-direction: row-reverse;
}
.ov-ghost i {
  height: 0.8cqi;
  background: #3a434e;
  border-radius: 1px;
}
.ov-ghost i:first-child {
  width: 2.5cqi;
  height: 2.5cqi;
  background: none;
  border: 1px solid #4e5864;
}
.ov-ghost i:nth-child(2) {
  width: 9cqi;
}
.ov-ghost i:nth-child(3) {
  width: 4cqi;
}
.ov-gold {
  display: grid;
  justify-items: center;
}
.ov-gold > span {
  height: 3.6cqi;
  display: flex;
  align-items: center;
}
.ov-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  height: 2.2cqi;
  min-height: 22px;
  padding: 0 0.6em;
  border-radius: 5px;
  background: rgba(9, 12, 18, 0.82);
  font-weight: 700;
  font-stretch: 78%;
  font-size: max(12px, 1.3cqi);
  white-space: nowrap;
}
.ov-pill svg {
  width: 0.6em;
  height: 0.75em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ov-pill.ally {
  box-shadow: inset 0 0 0 1px rgba(106, 184, 255, 0.45);
}
.ov-pill.enemy {
  box-shadow: inset 0 0 0 1px rgba(240, 86, 58, 0.5);
}
.ov-pill.neutral {
  color: var(--neutral);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.ov-pill.team {
  font-weight: 800;
  box-shadow: inset 0 0 0 1.5px rgba(106, 184, 255, 0.55);
}
.ov-num {
  min-width: 1.9em;
  text-align: right;
}
.g1 {
  --g: 610;
}
.anim .g1 {
  animation: g1 9s ease-in-out infinite alternate;
}
.g2 {
  --g: 420;
}
.anim .g2 {
  animation: g2 7s ease-in-out infinite alternate;
}
.g3 {
  --g: 480;
}
.anim .g3 {
  animation: g3 11s ease-in-out infinite alternate;
}
.g4 {
  --g: 150;
}
.anim .g4 {
  animation: g4 6s ease-in-out infinite alternate;
}
.g5 {
  --g: 90;
}
.anim .g5 {
  animation: g5 8s ease-in-out infinite alternate;
}
.g0 {
  --g: 520;
}
.anim .g0 {
  animation: g0 10s ease-in-out infinite alternate;
}
@keyframes g0 {
  to {
    --g: 860;
  }
}
@keyframes g1 {
  to {
    --g: 735;
  }
}
@keyframes g2 {
  to {
    --g: 285;
  }
}
@keyframes g3 {
  to {
    --g: 655;
  }
}
@keyframes g4 {
  to {
    --g: 230;
  }
}
@keyframes g5 {
  to {
    --g: 60;
  }
}

.ov-bench {
  position: absolute;
  right: 2cqi;
  top: 9.5cqi;
  display: grid;
  gap: 0.25em;
  padding: 0.55em 0.8em;
  border-radius: 0.7cqi;
  background: var(--plate);
  font-size: max(11px, 1.2cqi);
}
.ov-bench > span {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  white-space: nowrap;
}
.ov-bench b {
  font-weight: 800;
}
.ov-bench em {
  font-style: normal;
  color: var(--text-2);
  font-weight: 600;
}
.cs {
  --g: 64;
}
.anim .cs {
  animation: cs 80s linear infinite;
}
@keyframes cs {
  to {
    --g: 79;
  }
}

/* Écran étroit : l'écran de jeu passe en portrait, le tableau Tab ne garde que sa colonne. */
@container stage (max-width: 640px) {
  .ov-tab {
    top: 22cqi;
    width: 86cqi;
    padding-top: 6cqi;
  }
  .ov-tab-label {
    font-size: 11px;
    top: 1.4cqi;
  }
  .ov-rows {
    grid-template-columns: 1fr 26cqi 1fr;
  }
  .ov-ghost,
  .ov-gold > span {
    height: 10cqi;
  }
  .ov-ghost i:nth-child(n + 3) {
    display: none;
  }
  .ov-ghost i:first-child {
    width: 6cqi;
    height: 6cqi;
  }
  .ov-ghost i:nth-child(2) {
    width: 14cqi;
    height: 2cqi;
  }
  .ov-bench {
    top: auto;
    bottom: 9cqi;
    right: 50%;
    transform: translateX(50%);
  }
  .ov-strip {
    top: 5cqi;
  }
  .ov-pill {
    font-size: 15px;
  }
}
@media (max-width: 640px) {
  .stage {
    aspect-ratio: 4 / 5;
  }
}

/* ---- Captures ---------------------------------------------------------------------------------- */

.shot {
  margin: 0;
}
.shot-frame {
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px var(--line-2);
}
.shot img {
  width: 100%;
  height: auto;
}
.shot figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}
.shot figcaption b {
  color: var(--text);
  font-weight: 700;
}

/* ---- Listes de vérification -------------------------------------------------------------------- */

.checks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2px;
}
.checks li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
}
.checks li b {
  display: block;
  color: var(--text);
  font-weight: 700;
}
.mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(62, 230, 176, 0.12);
  color: var(--ok);
}
.mark.no {
  background: rgba(240, 86, 58, 0.13);
  color: var(--enemy);
}
.mark svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- Page Télécharger -------------------------------------------------------------------------- */

.page-head {
  padding: clamp(40px, 6vw, 80px) 0 clamp(28px, 4vw, 48px);
  display: grid;
  gap: 16px;
}
.release {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--line);
  box-shadow: 0 0 0 1px var(--line-2);
}
.release > div {
  padding: clamp(22px, 3vw, 36px);
  background: var(--card);
}
.release .rel-side {
  background: var(--panel);
}
.rel-version {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 8px 0 6px;
}
.rel-version .num {
  font-size: clamp(56px, 6vw, 80px);
  font-style: italic;
}
.tag {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ok);
  background: rgba(62, 230, 176, 0.1);
}
.tag.warn {
  color: var(--accent);
  background: rgba(255, 194, 71, 0.1);
}
.tag.off {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
}
.kv {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 20px;
  margin: 22px 0;
  font-size: 15px;
}
.kv dt {
  color: var(--muted);
}
.kv dd {
  margin: 0;
  color: var(--text);
}
.hash {
  margin-top: 24px;
  padding: 16px;
  border-radius: 8px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line);
}
.hash > code {
  display: block;
  word-break: break-all;
  line-height: 1.55;
  color: var(--text-2);
  font-size: 13px;
}
.hash p {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--muted);
}
@media (max-width: 900px) {
  .release {
    grid-template-columns: 1fr;
  }
}
.steps {
  counter-reset: step;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}
.steps > li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  color: var(--text-2);
}
.steps > li::before {
  content: counter(step);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line-2);
  font-weight: 900;
  font-style: italic;
  font-stretch: 78%;
  font-size: 22px;
  color: var(--accent);
}
.steps b {
  color: var(--text);
}
.win-dialog {
  margin-top: 12px;
  padding: 18px 20px;
  max-width: 440px;
  border-radius: 6px;
  background: #1a3d6b;
  color: #fff;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
}
.win-dialog strong {
  display: block;
  margin-bottom: 8px;
  font-size: 19px;
  font-weight: 600;
}
.win-dialog .fake-link {
  text-decoration: underline;
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.win-dialog .fake-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 18px;
  border: 1px solid #fff;
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.notes {
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
}
.notes h3 {
  margin: 18px 0 8px;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.notes ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-2);
}
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--line);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
th,
td {
  padding: 14px 16px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
th {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--panel);
}
td {
  color: var(--text-2);
}
tr:last-child td {
  border-bottom: 0;
}
td.n,
th.n {
  text-align: right;
}

/* ---- Pages de texte (confidentialité, mentions) ------------------------------------------------ */

.doc {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  padding-bottom: 96px;
}
.toc {
  position: sticky;
  top: 24px;
  align-self: start;
  display: grid;
  gap: 2px;
  font-size: 15px;
}
.toc p {
  margin: 0 0 8px;
}
.toc a {
  padding: 6px 10px;
  border-left: 2px solid var(--line-2);
  color: var(--muted);
  text-decoration: none;
}
.toc a:hover {
  color: var(--text);
  border-color: var(--accent);
}
.summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 8px;
}
.summary .card ul {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--text-2);
  font-size: 15px;
}
.summary .card li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
}
.summary .card li::before {
  content: "✓";
  color: var(--ok);
  font-weight: 800;
}
@media (max-width: 900px) {
  .doc {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .toc {
    position: static;
  }
  .summary {
    grid-template-columns: 1fr;
  }
}
.updated {
  font-size: 14px;
  color: var(--muted);
}

/* ---- Pied de page ------------------------------------------------------------------------------ */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--panel);
  padding: 56px 0 40px;
  font-size: 15px;
  color: var(--muted);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}
.foot-grid h2 {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.foot-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.foot-grid a {
  color: var(--text-2);
  text-decoration: none;
}
.foot-grid a:hover {
  color: var(--text);
  text-decoration: underline;
}
.riot-legal {
  margin: 40px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 900px;
}
@media (max-width: 900px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
  .foot-grid > :first-child {
    grid-column: 1 / -1;
  }
}

/* ---- Panneau d'administration ------------------------------------------------------------------ */

.auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  background:
    radial-gradient(50% 50% at 50% 0%, rgba(255, 194, 71, 0.06), transparent 70%),
    var(--bg);
}
.auth-card {
  width: 100%;
  max-width: 400px;
  padding: 32px;
  border-radius: 14px;
  background: var(--panel);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px var(--line-2);
  display: grid;
  gap: 20px;
}
.auth-card h1 {
  margin: 0;
  font-weight: 800;
  font-stretch: 85%;
  font-size: 24px;
}
.field {
  display: grid;
  gap: 8px;
}
.field label {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-2);
}
.input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: var(--card-2);
  color: var(--text);
  font: inherit;
}
.input:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 194, 71, 0.2);
}
.input.otp {
  height: 64px;
  text-align: center;
  font-weight: 800;
  font-stretch: 78%;
  font-size: 34px;
  letter-spacing: 0.4em;
  padding-left: 0.4em;
}
.hint {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
.alert {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  background: rgba(240, 86, 58, 0.1);
  box-shadow: inset 0 0 0 1px rgba(240, 86, 58, 0.35);
  color: #ffb4a3;
}
.alert.info {
  background: rgba(255, 194, 71, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 194, 71, 0.3);
  color: #ffdf9e;
}
.btn-block {
  width: 100%;
}
.progress-dots {
  display: flex;
  gap: 6px;
}
.progress-dots i {
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: var(--line-2);
}
.progress-dots i.on {
  background: var(--accent);
}

.admin {
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: 100vh;
}
.admin-nav {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 20px 14px;
  background: var(--panel);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.admin-nav .brand {
  padding: 6px 10px 22px;
}
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text-2);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
.admin-nav a:hover {
  background: var(--card);
}
.admin-nav a[aria-current="page"] {
  background: var(--card);
  color: var(--text);
  box-shadow: inset 3px 0 0 var(--accent);
}
.admin-nav a[aria-disabled="true"] {
  color: var(--muted);
  pointer-events: none;
}
.admin-nav svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.admin-nav .soon-tag {
  margin-left: auto;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}
.admin-nav .who {
  margin-top: auto;
  padding: 14px 12px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.admin-main {
  padding: 28px clamp(16px, 3vw, 40px) 64px;
  display: grid;
  gap: 24px;
  align-content: start;
  min-width: 0;
}
.admin-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.admin-head h1 {
  margin: 0;
  font-weight: 900;
  font-style: italic;
  font-stretch: 75%;
  text-transform: uppercase;
  font-size: 36px;
  line-height: 1;
}
.admin-head .right {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.tile {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
  display: grid;
  gap: 8px;
}
.tile .num {
  font-size: 44px;
}
.tile small {
  font-size: 13px;
  color: var(--muted);
}
.panel {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
  min-width: 0;
}
.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 16px;
}
.panel-head h2 {
  margin: 0;
  font-weight: 800;
  font-stretch: 85%;
  font-size: 19px;
}
.panel-head .right {
  margin-left: auto;
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}
.legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-radius: 2px;
  vertical-align: -1px;
}
.cols-2 {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
}
.switch {
  display: inline-block;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: var(--line-2);
  position: relative;
  vertical-align: middle;
}
.switch::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text-2);
}
.switch.on {
  background: var(--accent);
}
.switch.on::after {
  left: 19px;
  background: var(--accent-ink);
}
.log {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}
.log li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
}
.log li:last-child {
  border-bottom: 0;
}
.log time {
  color: var(--muted);
}
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--ok);
}
.dot.warn {
  background: var(--accent);
}
.cols-2.even {
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 1100px) {
  .tiles {
    grid-template-columns: 1fr 1fr;
  }
  .cols-2,
  .cols-2.even {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .admin {
    grid-template-columns: 1fr;
  }
  .admin-nav {
    position: static;
    height: auto;
    flex-direction: row;
    overflow-x: auto;
    padding: 10px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .admin-nav .brand {
    padding: 6px 10px 6px 4px;
  }
  .admin-nav a {
    white-space: nowrap;
  }
  .admin-nav .who {
    display: none;
  }
  .admin-head h1 {
    font-size: 30px;
  }
  .tile .num {
    font-size: 34px;
  }
}

/* ---- Mouvement : bouton pause (motion.js) et mouvement réduit ---------------------------------- */

.motion-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--text-2);
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.motion-btn:hover {
  color: var(--text);
}
.motion-btn[hidden] {
  display: none;
}
.stage-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 14px;
}
.stage-foot .stage-caption {
  margin: 0;
}
.motion-paused *,
.motion-paused *::before,
.motion-paused *::after {
  animation-play-state: paused !important;
}
/* Mouvement réduit : rien ne bouge, sauf si le visiteur lance lui-même l'animation (.motion-on). */
@media (prefers-reduced-motion: reduce) {
  html:not(.motion-on) *,
  html:not(.motion-on) *::before,
  html:not(.motion-on) *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  html:not(.motion-on) .ov-dragon .ov-bar {
    opacity: 1;
  }
  html:not(.motion-on) .ov-dragon .ov-bar i {
    transform: scaleX(0.2);
  }
}

@media (max-width: 480px) {
  .btn {
    white-space: normal;
    text-align: center;
  }
}
.release > div,
.grid-2 > *,
.grid-3 > * {
  min-width: 0;
}

/* ---- Utilitaires (aucun style en ligne : la CSP les interdit) ---------------------------------- */

.flush,
.section-head.flush {
  margin: 0;
}
.spaced {
  margin-top: 20px;
}
.small {
  font-size: 14px;
}
.head-gap {
  margin-bottom: 24px;
}
.center-text {
  margin: 0 auto;
  text-align: center;
}
.grid-2.top {
  align-items: start;
}
.grid-2.center {
  align-items: center;
}
.foot-tagline {
  margin: 12px 0 0;
  max-width: 34ch;
}
.dl-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  align-items: baseline;
}
.excerpt {
  margin: 0;
}
.excerpt figcaption {
  font-size: 13px;
  color: var(--muted);
}
.hash .card-title {
  margin: 0 0 8px;
}
.win-dialog {
  display: block;
}
.ov-side {
  padding-top: 3.6cqi;
}
@container stage (max-width: 640px) {
  .ov-side {
    padding-top: 10cqi;
  }
}
.soon-box {
  padding: clamp(28px, 5vw, 56px);
  border-radius: 14px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line-2);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 16px;
}
.notes h1,
.notes h2,
.notes h3 {
  font-size: 17px;
  margin: 16px 0 8px;
}

/* ---- Panneau : compléments ------------------------------------------------------------------------ */

.auth-form,
.stack {
  display: grid;
  gap: 18px;
}
.label {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-2);
}
.qr {
  width: 200px;
  padding: 8px;
  border-radius: 8px;
  background: #fff;
}
.break {
  word-break: break-all;
}
.codes {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 16px;
}
.codes code {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--card-2);
  text-align: center;
}
.linklike {
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
}
.who b {
  color: var(--text-2);
}
.inline {
  display: inline;
}
.acts {
  display: flex;
  gap: 8px;
}
.row-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.input.narrow {
  width: 90px;
}
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.choices legend {
  margin-bottom: 10px;
  padding: 0;
}
.choices label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--text-2);
  cursor: pointer;
}
.choices input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
}
.input.area {
  height: auto;
  padding: 10px 12px;
  line-height: 1.5;
  resize: vertical;
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.tabs a {
  padding: 8px 12px;
  border-radius: 7px;
  color: var(--text-2);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  background: var(--panel);
}
.tabs a[aria-current="page"] {
  background: var(--text);
  color: var(--accent-ink);
}
.texts-form {
  display: grid;
  gap: 18px;
}
.text-key {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.text-key legend {
  padding: 0 6px;
  font-size: 13px;
  color: var(--muted);
}
@media (max-width: 900px) {
  .text-key {
    grid-template-columns: 1fr;
  }
}
.sticky-save {
  position: sticky;
  bottom: 12px;
  display: flex;
  justify-content: flex-end;
}
.caps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.cap {
  margin: 0;
  display: grid;
  gap: 8px;
}
.cap img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 0 0 1px var(--line-2);
}
.cap figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.upload:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.steps.compact {
  gap: 10px;
  margin-bottom: 20px;
}
.chart {
  width: 100%;
  height: auto;
}
.legend .sw-0 {
  background: #ffc247;
}
.legend .sw-1 {
  background: #6ab8ff;
}
.legend .sw-2 {
  background: #3ee6b0;
}
.legend .sw-3 {
  background: #c77dff;
}
.legend .sw-4 {
  background: #93a0b4;
}
.auth details summary {
  cursor: pointer;
}

/* Home sections below the hero: laid out only when they come near the viewport (lighter first
   render, their lazy images wait until then). */
.hero ~ .section,
.hero ~ .section-tight {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

.soon-box {
  margin-bottom: clamp(48px, 8vw, 96px);
}
