/* Wadafoku — page de téléchargement.
   Reprend la direction artistique de l'app : fond sombre sous wallpaper,
   quadrillage, verre prismatique et cadres « hextech » à coins coupés
   (voir src/styles/prismatic-glass.css). */

@font-face {
  font-family: 'Geist Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('assets/fonts/geist-latin-wght-normal.woff2') format('woff2');
}

:root {
  --wk-bg-base: #050810;
  --wk-bg-deep: #0a0d1a;
  --wk-bg-surface: rgba(9, 21, 44, 0.56);
  --wk-accent: #5cc8f0;
  --wk-accent-light: #aee3fb;
  --wk-gold: #c89b3c;
  --wk-gold-light: #d4af5b;
  --wk-weak: #4a9eff;
  --wk-ally: #6fb5ff;
  --wk-enemy: #ff7272;
  --wk-text-primary: #eaf1fb;
  --wk-text-secondary: #b4c0d4;
  --wk-text-muted: #8593aa;
  --page: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: rgba(92, 200, 240, 0.4) var(--wk-bg-base);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Segoe UI', 'Geist Variable', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--wk-text-primary);
  background: var(--wk-bg-base);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Quadrillage de l'app, sur toute la page. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Forme hextech (reprise de l'app) ===== */
.hex,
.glass {
  --hex-c: 10px;
  --hex-w: 1px;
  --hex-bg: rgba(0, 0, 0, 0.25);
  --hex-border: rgba(255, 255, 255, 0.1);
  --hex-blur: none;
  --hex-k: calc(var(--hex-c) + var(--hex-w) * 0.414);
  --hex-shape: polygon(
    var(--hex-c) 0, 100% 0, 100% calc(100% - var(--hex-c)),
    calc(100% - var(--hex-c)) 100%, 0 100%, 0 var(--hex-c)
  );
  --hex-ring: polygon(
    evenodd,
    var(--hex-c) 0, 100% 0, 100% calc(100% - var(--hex-c)),
    calc(100% - var(--hex-c)) 100%, 0 100%, 0 var(--hex-c), var(--hex-c) 0,
    var(--hex-k) var(--hex-w),
    var(--hex-w) var(--hex-k),
    var(--hex-w) calc(100% - var(--hex-w)),
    calc(100% - var(--hex-k)) calc(100% - var(--hex-w)),
    calc(100% - var(--hex-w)) calc(100% - var(--hex-k)),
    calc(100% - var(--hex-w)) var(--hex-w),
    var(--hex-k) var(--hex-w)
  );
  position: relative;
  isolation: isolate;
}

.hex::before,
.glass::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  clip-path: var(--hex-shape);
  background: var(--hex-bg);
  backdrop-filter: var(--hex-blur);
  -webkit-backdrop-filter: var(--hex-blur);
  pointer-events: none;
}

.hex::after,
.glass::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  clip-path: var(--hex-ring);
  background: var(--hex-border);
  pointer-events: none;
}

.glass {
  --hex-c: 16px;
  --hex-blur: blur(24px) saturate(170%);
  --hex-bg:
    radial-gradient(ellipse 120% 60% at 0% 0%, rgba(174, 227, 251, 0.07), transparent 60%),
    radial-gradient(ellipse 100% 60% at 100% 100%, rgba(111, 181, 255, 0.07), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 90px),
    var(--wk-bg-surface);
  --hex-border: linear-gradient(
    155deg,
    rgba(214, 241, 253, 0.75) 0%,
    rgba(92, 200, 240, 0.3) 28%,
    rgba(111, 181, 255, 0.16) 58%,
    rgba(174, 227, 251, 0.6) 100%
  );
  box-shadow:
    0 0 60px rgba(92, 200, 240, 0.06),
    0 20px 40px rgba(0, 0, 0, 0.45);
}

.glass-ally {
  --hex-border: linear-gradient(155deg, rgba(111, 181, 255, 0.6) 0%, rgba(74, 158, 255, 0.18) 45%, rgba(111, 181, 255, 0.45) 100%);
}

.glass-enemy {
  --hex-border: linear-gradient(155deg, rgba(255, 114, 114, 0.6) 0%, rgba(232, 76, 76, 0.18) 45%, rgba(255, 114, 114, 0.45) 100%);
}

.hex-card {
  --hex-bg: rgba(0, 0, 0, 0.25);
  --hex-border: linear-gradient(155deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.14) 100%);
}

.hex-gold {
  --hex-bg: rgba(200, 155, 60, 0.1);
  --hex-border: linear-gradient(155deg, #fbe9b0 0%, #c89b3c 28%, #6b4f1a 55%, #c89b3c 78%, #f5d77e 100%);
}

.hex-weak {
  --hex-bg: rgba(74, 158, 255, 0.08);
  --hex-border: linear-gradient(155deg, #d6f1fd 0%, #5cc8f0 26%, #1b3a55 55%, #3f9dc4 80%, #aee3fb 100%);
}

/* ===== Boutons ===== */
.btn {
  --hex-c: 9px;
  --hex-bg: rgba(0, 0, 0, 0.3);
  --hex-border: rgba(255, 255, 255, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--wk-text-secondary);
  border: 0;
  background: none;
  cursor: pointer;
  transition: color 0.15s;
}

.btn:hover {
  --hex-border: rgba(92, 200, 240, 0.5);
  color: var(--wk-accent-light);
}

.btn-primary {
  --hex-bg: rgba(92, 200, 240, 0.14);
  --hex-border: linear-gradient(155deg, #d6f1fd 0%, #5cc8f0 30%, #1b3a55 58%, #5cc8f0 82%, #aee3fb 100%);
  color: var(--wk-accent-light);
}

.btn-primary:hover {
  --hex-bg: rgba(92, 200, 240, 0.26);
  --hex-border: linear-gradient(155deg, #d6f1fd 0%, #5cc8f0 30%, #1b3a55 58%, #5cc8f0 82%, #aee3fb 100%);
  color: #fff;
}

.btn-small {
  padding: 8px 16px;
  font-size: 12px;
}

/* Tant que l'installeur n'est pas publié. */
.btn[aria-disabled='true'] {
  cursor: default;
}

.btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.btn:focus-visible,
a:focus-visible {
  outline: 2px solid var(--wk-accent);
  outline-offset: 3px;
}

/* ===== Typo commune ===== */
.wordmark {
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1;
  background: linear-gradient(90deg, #eaf6ff, #5cc8f0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--wk-accent-light);
}

.label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--wk-text-muted);
}

.gold {
  color: var(--wk-gold-light);
}

.blue {
  color: var(--wk-ally);
}

.red {
  color: var(--wk-enemy);
}

.green {
  color: #34d399;
}

/* ===== Barre du site ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5, 8, 16, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.topbar .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 0 10px rgba(92, 200, 240, 0.4));
}

.brand .wordmark {
  font-size: 19px;
}

.topnav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.topnav a {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--wk-text-muted);
  transition: color 0.15s;
}

.topnav a:hover {
  color: var(--wk-text-primary);
}

/* Lien vers l'autre langue. */
.lang {
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--wk-text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  transition: color 0.15s, border-color 0.15s;
}

.lang:hover {
  color: var(--wk-accent-light);
  border-color: rgba(92, 200, 240, 0.5);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 88px 0 0;
  text-align: center;
}

/* Wallpaper de l'app sous le même voile sombre. */
.hero::before {
  content: '';
  position: absolute;
  inset: -60px 0 auto 0;
  height: 900px;
  background:
    linear-gradient(180deg, rgba(5, 8, 16, 0.5) 0%, rgba(5, 8, 16, 0.72) 55%, var(--wk-bg-base) 100%),
    radial-gradient(ellipse at 50% 35%, transparent 0%, rgba(5, 8, 16, 0.5) 100%),
    url('assets/wallpaper.jpg') center top / cover no-repeat;
  z-index: 0;
  pointer-events: none;
}

.hero-logo {
  width: 104px;
  height: 104px;
  margin: 0 auto 18px;
  filter: drop-shadow(0 0 28px rgba(92, 200, 240, 0.45));
}

.hero h1 {
  font-size: clamp(44px, 9vw, 92px);
  letter-spacing: clamp(4px, 1.2vw, 12px);
  margin-right: calc(-1 * clamp(4px, 1.2vw, 12px));
}

.hero .tagline {
  margin-top: 22px;
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 600;
  line-height: 1.3;
  text-wrap: balance;
}

.hero .sub {
  max-width: 560px;
  margin: 14px auto 0;
  font-size: 17px;
  color: var(--wk-text-secondary);
  text-wrap: balance;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

.cta-note {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--wk-text-muted);
}

/* ===== Fenêtre de l'app (maquette) ===== */
.window {
  margin: 64px auto 0;
  text-align: left;
  border-radius: 14px;
  border: 1px solid rgba(150, 205, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(5, 8, 16, 0.6) 0%, rgba(5, 8, 16, 0.8) 100%),
    url('assets/wallpaper.jpg') center / cover no-repeat;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 90px rgba(92, 200, 240, 0.1),
    0 40px 80px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.appbar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 52px;
  padding: 0 16px 0 18px;
  background: rgba(5, 8, 16, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.appbar img {
  width: 28px;
  height: 28px;
}

.appbar .wordmark {
  font-size: 16px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--wk-accent-light);
  border: 1px solid rgba(92, 200, 240, 0.4);
  border-radius: 6px;
  background: rgba(92, 200, 240, 0.1);
}

.status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: blink 1.8s ease-in-out infinite;
}

@keyframes blink {
  50% { opacity: 0.3; }
}

.winctl {
  display: flex;
  gap: 14px;
  color: var(--wk-text-muted);
}

.winctl span {
  width: 11px;
  height: 11px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  opacity: 0.6;
}

.winctl span:first-child {
  height: 0;
  border-width: 1.5px 0 0;
  align-self: center;
  border-radius: 0;
}

.app-body {
  padding: 18px 20px 20px;
}

.app-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.tabs {
  --hex-c: 8px;
  display: inline-flex;
  padding: 2px;
}

.tab {
  --hex-c: 6px;
  --hex-bg: transparent;
  --hex-border: transparent;
  padding: 6px 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--wk-text-muted);
}

.tab.small {
  padding: 4px 10px;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
}

.tab.on {
  --hex-bg: rgba(92, 200, 240, 0.16);
  --hex-border: rgba(92, 200, 240, 0.45);
  color: var(--wk-accent-light);
}

/* Rangée du draft : 5 cartes, le verdict, 5 cartes. */
.draft {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(150px, 1.5fr) repeat(5, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}

.card {
  --frame: linear-gradient(155deg, #d6f1fd 0%, #5cc8f0 26%, #1b3a55 55%, #3f9dc4 80%, #aee3fb 100%);
  position: relative;
  aspect-ratio: 1;
  padding: 1.5px;
  background: var(--frame);
  clip-path: polygon(11px 0, 100% 0, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0 100%, 0 11px);
}

.card.enemy {
  --frame: linear-gradient(155deg, #ffc2c2 0%, #e84c4c 26%, #4a1c22 55%, #b83a3a 80%, #ff9a9a 100%);
}

.card.me {
  --frame: linear-gradient(155deg, #fbe9b0 0%, #c89b3c 28%, #6b4f1a 55%, #c89b3c 78%, #f5d77e 100%);
  padding: 2.5px;
}

/* Fond de l'emplacement vide, visible tant que le pick n'est pas tombé. */
.card::before {
  content: '';
  position: absolute;
  inset: 1.5px;
  background: #070b14;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.card img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.card b {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 4px 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: linear-gradient(0deg, rgba(5, 8, 16, 0.92), transparent);
}

.card .tag {
  position: absolute;
  top: 2px;
  right: 2px;
  padding: 1px 7px 1px 9px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #050810;
  background: var(--wk-gold-light);
  clip-path: polygon(6px 0, 100% 0, 100% 100%, 0 100%);
}

.mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 8px;
  text-align: center;
}

.vsline {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.vsline i {
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--wk-ally), rgba(255, 255, 255, 0.3), var(--wk-enemy));
  opacity: 0.6;
}

.mid strong {
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 4px;
  color: var(--wk-gold-light);
  text-shadow: 0 0 14px rgba(200, 155, 60, 0.55);
}

/* Analyse : weak / strong side à gauche, pathing à droite. */
.analysis {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.panel {
  display: flex;
  flex-direction: column;
  padding: 16px 18px 18px;
  min-width: 0;
}

.ptitle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--wk-accent-light);
}

.ptitle::before {
  content: '';
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--wk-accent), var(--wk-weak));
  box-shadow: 0 0 12px rgba(92, 200, 240, 0.5);
}

.lanecards {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.lanecard {
  --hex-c: 12px;
  padding: 12px 14px 14px;
  min-width: 0;
}

.lanecard .verdict {
  margin: 2px 0 8px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.mu {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 0;
  font-size: 12px;
  font-weight: 600;
}

.mu i {
  font-style: normal;
  font-weight: 400;
  color: var(--wk-text-muted);
}

.mu b {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.tips {
  display: grid;
  gap: 5px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.tips li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 9px;
  font-size: 12px;
  color: var(--wk-text-primary);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 4px;
}

.tips em {
  flex-shrink: 0;
  padding: 0 6px;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--wk-text-primary);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

/* Fiche du jungler adverse. */
.foe {
  --hex-c: 10px;
  --hex-bg: rgba(232, 76, 76, 0.07);
  --hex-border: linear-gradient(155deg, rgba(255, 114, 114, 0.7), rgba(232, 76, 76, 0.18) 50%, rgba(255, 114, 114, 0.5));
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 12px 14px;
}

.foe > img {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 114, 114, 0.5);
  border-radius: 6px;
}

.foe-id {
  flex-shrink: 0;
  display: grid;
  line-height: 1.25;
}

.foe-id b {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.foe-id small {
  font-size: 11px;
  color: var(--wk-text-secondary);
}

.axes {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.axis {
  display: grid;
  gap: 5px;
}

.axis .label {
  font-size: 9px;
  letter-spacing: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Jauge en 5 crans ; --v = nombre de crans pleins. */
.axis i {
  height: 7px;
  background: linear-gradient(90deg, var(--wk-enemy) calc(var(--v) * 20%), rgba(255, 255, 255, 0.09) 0);
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 calc(20% - 3px), transparent 0 20%);
  mask: repeating-linear-gradient(90deg, #000 0 calc(20% - 3px), transparent 0 20%);
}

.timings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.timing {
  --hex-c: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 6px;
  padding: 7px 12px 8px;
}

.timing .label {
  width: 100%;
}

.timing b {
  font-size: 19px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.timing small {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--wk-text-secondary);
}

/* Carte entière (non zoomée) dans la maquette du hero. */
.hmap {
  background: url('assets/jungle.jpg') center / cover no-repeat;
}

.hmap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 16, 0.3);
}

.hmap .camp {
  width: 7.5%;
  border-width: 1.5px;
}

.hmap .camp span {
  font-size: 9px;
}

.map polyline.route {
  stroke-width: 1;
  stroke-dashoffset: 0;
  animation: none;
}

/* ===== Sections ===== */
section {
  position: relative;
  padding: 104px 0 0;
}

.head {
  margin-bottom: 36px;
  text-align: center;
}

.head h2 {
  margin-top: 10px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  text-wrap: balance;
}

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature {
  display: flex;
  flex-direction: column;
  padding: 26px 26px 24px;
  min-width: 0;
}

.feature h3 {
  margin-top: 8px;
  font-size: 22px;
  font-weight: 800;
}

.feature p {
  margin-top: 6px;
  color: var(--wk-text-secondary);
  font-size: 15px;
}

.visual {
  margin-top: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Contre-pick */
.rank {
  display: grid;
  gap: 8px;
}

.rank-row {
  --hex-c: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
}

.rank-row img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.rank-row b {
  font-size: 14px;
  font-weight: 600;
}

.rank-row .bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
}

.rank-row .bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, rgba(92, 200, 240, 0.4), var(--wk-accent));
}

.rank-row.hex-gold .bar i {
  background: linear-gradient(90deg, rgba(200, 155, 60, 0.4), var(--wk-gold-light));
}

.rank-row .pct {
  width: 52px;
  text-align: right;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.vs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.vs img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(255, 114, 114, 0.6);
}

/* Pathing */
.map {
  position: relative;
  aspect-ratio: 1000 / 712;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  overflow: hidden;
}

/* Zoom sur la jungle côté bleu : les coordonnées restent celles de la carte entière. */
.map-inner {
  position: absolute;
  inset: 0;
  background: url('assets/jungle.jpg') center / cover no-repeat;
  transform: scale(1.75);
  transform-origin: 38% 64%;
}

.map-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 16, 0.35);
}

.map svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map polyline {
  fill: none;
  stroke: var(--wk-gold-light);
  stroke-width: 0.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  filter: drop-shadow(0 0 1.2px rgba(212, 175, 91, 0.9));
  animation: trace 5s ease-in-out infinite;
}

@keyframes trace {
  0% { stroke-dashoffset: 100; }
  55%, 100% { stroke-dashoffset: 0; }
}

.camp {
  position: absolute;
  width: 5.2%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid var(--wk-gold-light);
  background: #050810;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.camp img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.camp span {
  position: absolute;
  top: -22%;
  right: -22%;
  width: 46%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font-size: 6px;
  font-weight: 800;
  color: #050810;
  background: var(--wk-gold-light);
  border-radius: 50%;
}

/* Tier list */
.tiers {
  display: grid;
  gap: 10px;
}

.tier {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tier > b {
  width: 34px;
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}

.tiles {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tile {
  position: relative;
  width: 58px;
}

.tile img {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.tile.pool img {
  border-color: var(--wk-gold-light);
  box-shadow: inset 0 0 0 1px var(--wk-gold-light);
}

.tile small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  text-align: center;
  color: var(--wk-text-secondary);
  font-variant-numeric: tabular-nums;
}

.tile em {
  position: absolute;
  top: -5px;
  right: -5px;
  padding: 0 4px;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  line-height: 15px;
  border-radius: 3px;
  background: #050810;
  border: 1px solid currentColor;
}

/* Progression */
.trend-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.trend-title b {
  font-size: 15px;
  font-weight: 700;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 128px;
  padding-bottom: 1px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.bars i {
  flex: 1;
  background: linear-gradient(180deg, rgba(92, 200, 240, 0.75), rgba(92, 200, 240, 0.18));
}

.bars i.old {
  background: linear-gradient(180deg, rgba(133, 147, 170, 0.6), rgba(133, 147, 170, 0.14));
}

.bars-legend {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
}

/* ===== Étapes ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  --hex-c: 12px;
  padding: 24px;
  counter-increment: step;
}

.step::marker {
  content: none;
}

.step .num {
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(174, 227, 251, 0.6);
}

.step h3 {
  margin-top: 14px;
  font-size: 18px;
  font-weight: 700;
}

.step p {
  margin-top: 4px;
  font-size: 15px;
  color: var(--wk-text-secondary);
}

/* ===== Téléchargement ===== */
.download {
  padding: 56px 28px;
  text-align: center;
}

.download img {
  width: 84px;
  height: 84px;
  margin: 0 auto 12px;
  filter: drop-shadow(0 0 22px rgba(92, 200, 240, 0.45));
}

.download h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
}

.download p {
  margin-top: 8px;
  color: var(--wk-text-secondary);
}

.specs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin-top: 26px;
  padding: 0;
  list-style: none;
}

.specs li {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--wk-text-muted);
}

/* ===== Pied de page ===== */
footer {
  position: relative;
  z-index: 1;
  margin-top: 104px;
  padding: 32px 0 44px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(5, 8, 16, 0.6);
}

footer .wrap {
  display: grid;
  gap: 14px;
}

footer .brand img {
  width: 26px;
  height: 26px;
}

footer .brand .wordmark {
  font-size: 15px;
}

footer p {
  max-width: 820px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--wk-text-muted);
}

/* ===== Apparition au défilement ===== */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ===== Écrans étroits ===== */
@media (max-width: 900px) {
  .analysis,
  .features,
  .steps {
    grid-template-columns: 1fr;
  }

  /* Le draft passe sur trois lignes : alliés, verdict, ennemis. */
  .draft {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .mid {
    grid-column: 1 / -1;
    padding: 6px 0;
  }
}

@media (max-width: 620px) {
  .wrap {
    padding: 0 16px;
  }

  .topnav {
    display: none;
  }

  .topbar .lang {
    margin-left: auto;
  }

  .hero {
    padding-top: 56px;
  }

  section {
    padding-top: 76px;
  }

  .app-body {
    padding: 12px;
  }

  .app-nav > .label,
  .app-nav > .tabs:last-child,
  .winctl {
    display: none;
  }

  .draft {
    gap: 5px;
  }

  .card b {
    font-size: 8px;
    letter-spacing: 0;
  }

  .panel {
    padding: 14px 12px;
  }

  .lanecards {
    grid-template-columns: 1fr;
  }

  /* Maquette allégée sur téléphone : verdicts et carte, sans le détail. */
  .tips,
  .foe {
    display: none;
  }

  .feature {
    padding: 22px 18px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .map polyline {
    animation: none;
    stroke-dashoffset: 0;
  }

  .status i {
    animation: none;
  }
}
