/* Traîner-Frontier — ultra design system */
:root {
  --bg: #050b14;
  --panel: rgba(8, 14, 26, 0.55);
  --panel-strong: rgba(6, 12, 22, 0.78);
  --glass: rgba(8, 14, 26, 0.62);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f5f8fc;
  --muted: #9aabc2;
  --cyan: #3ecfff;
  --blue: #2f7dff;
  --blue-btn: #2f7dff;
  --green: #3dd68c;
  --discord: #5865f2;
  --font: "Outfit", system-ui, sans-serif;
  --display: "Chakra Petch", "Outfit", sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
}
body {
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: none;
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }

/* ——— Nav (full-bleed, sticky everywhere) ——— */
.site-nav {
  position: fixed !important;
  top: 0; left: 0; right: 0;
  width: 100%;
  max-width: none;
  z-index: 200;
  height: 64px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  padding: 0 clamp(12px, 2.2vw, 36px);
  background: linear-gradient(180deg, rgba(4,10,20,.86), rgba(4,10,20,.55));
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  border-bottom: 1px solid rgba(255,255,255,.06);
  isolation: isolate;
}
.brand {
  display: flex; align-items: center; gap: 0;
  z-index: 2; text-decoration: none; line-height: 0;
  flex: none; min-width: 0;
}
.brand picture, .brand .brand-logo {
  display: block; line-height: 0;
}
/* Full wordmark — never crop to circle */
.brand img,
.brand .brand-logo,
img.brand-logo {
  height: 44px; width: auto; max-width: 200px;
  object-fit: contain; object-position: left center;
  flex: none;
  border-radius: 0 !important;
  box-shadow: none;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.45));
}
@media (max-width: 720px) {
  .brand img,
  .brand .brand-logo,
  img.brand-logo { height: 34px; max-width: 148px; }
}
/* Legacy text brand (unused) */
.brand-text { display: none !important; }
.nav-links {
  display: flex; align-items: center; justify-content: center;
  gap: 0;
  min-width: 0;
  overflow: hidden;
  position: relative;
  transform: none;
  left: auto;
}
.nav-links a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px clamp(8px, 1.1vw, 14px);
  color: #c9d5e8; font-size: 13.5px; font-weight: 600;
  position: relative;
  transition: color .2s var(--ease);
  white-space: nowrap;
  flex: none;
}
.nav-links a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px; border-radius: 2px;
  background: var(--cyan);
  transform: scaleX(0); transform-origin: center;
  transition: transform .22s var(--ease);
  opacity: .95;
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after, .nav-links a.on::after { transform: scaleX(1); }
.nav-links a.on { color: #fff; }
.nav-links svg { width: 15px; height: 15px; opacity: .9; flex: none; }
.nav-actions {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 8px; z-index: 2; flex: none; min-width: 0;
}
/* Pack balance with avatar cluster on the far right (DOM: toggle → balance → avatar → user → logout) */
.nav-actions > .nav-toggle { order: 1; }
.nav-actions > .nav-avatar { order: 2; }
.nav-actions > .nav-user { order: 3; }
.nav-actions > .nav-balance { order: 4; margin-left: 2px; }
.nav-actions > .nav-logout,
.nav-actions > a.btn-blue { order: 5; }
.nav-balance {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; min-width: 64px; padding: 0 12px; border-radius: 11px;
  background: rgba(62,207,255,.12); border: 1px solid rgba(62,207,255,.35);
  font-weight: 700; font-size: 14px; color: #9ee9ff; flex: none;
}
.nav-balance #navCoins {
  min-width: 1.25ch; text-align: right; font-variant-numeric: tabular-nums; line-height: 1;
}
.nav-balance-p, img.nav-balance-p {
  width: 20px; height: 20px; flex: none; object-fit: contain; display: block;
  border-radius: 50%;
  clip-path: circle(46% at 50% 48%);
}
.nav-actions .btn-blue, .nav-actions .btn-cyan {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28);
  filter: none;
}
.nav-user {
  font-size: 13px; font-weight: 600; color: #dce5f3;
  max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  flex: none;
}
.nav-logout {
  flex: none;
  white-space: nowrap;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 20px; border-radius: 11px;
  font-weight: 700; font-size: 14px; letter-spacing: .01em;
  transition: transform .15s var(--ease), filter .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-cyan, .btn-blue {
  background: linear-gradient(180deg, #4a8fff, #2f7dff);
  color: #fff;
  /* Pas de glow large — le blur bleu « dépassait » sous le header */
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28);
  overflow: hidden;
}
.btn-cyan:hover, .btn-blue:hover {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 1px 2px rgba(0,0,0,.35);
}
.btn-ghost {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
}

/* Unified action buttons — cyan primary + glass secondary (compte / boutique strip)
   Scoped class so nav / shop buy .btn-blue stay unchanged. */
.am-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 11px;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .01em;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
  transform: none;
  transition:
    background 200ms ease,
    border-color 200ms ease,
    color 200ms ease,
    box-shadow 200ms ease,
    filter 200ms ease;
}
.am-btn:hover {
  transform: none;
  filter: brightness(1.06);
}
.am-btn:focus-visible {
  outline: 2px solid rgba(62, 207, 255, .7);
  outline-offset: 2px;
}
.am-btn:active {
  filter: brightness(.97);
}
.am-btn--primary {
  background: linear-gradient(180deg, #5ad8ff 0%, #3ecfff 48%, #2eb8e8 100%);
  color: #041018;
  border-color: rgba(122, 228, 255, .55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .35),
    0 0 0 1px rgba(62, 207, 255, .12);
}
.am-btn--primary:hover {
  border-color: rgba(158, 233, 255, .75);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .42),
    0 0 0 1px rgba(62, 207, 255, .28),
    0 8px 20px rgba(62, 207, 255, .18);
}
.am-btn--secondary {
  background: rgba(62, 207, 255, .06);
  border-color: rgba(62, 207, 255, .38);
  color: #c8f0ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.am-btn--secondary:hover {
  background: rgba(62, 207, 255, .12);
  border-color: rgba(62, 207, 255, .58);
  color: #e8f9ff;
}
@media (prefers-reduced-motion: reduce) {
  .am-btn { transition: none !important; filter: none !important; }
}

.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  color: #dce5f3;
  transition: background .15s, border-color .15s;
}
.icon-btn:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); }

/* Avatar joueur (bonhomme) — injecté par site.js uniquement si connecté */
.nav-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
  overflow: hidden;
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(62,207,255,.45);
  box-shadow: 0 0 0 1px rgba(0,0,0,.35);
  color: #dce5f3;
  transition: border-color .15s, transform .15s;
}
.nav-avatar:hover { border-color: rgba(62,207,255,.85); transform: translateY(-1px); }
.nav-avatar img {
  width: 100%; height: 100%; display: block;
  object-fit: fill; /* pas de contain/cover modes */
  image-rendering: pixelated;
}
.nav-avatar--fallback { background: rgba(47,125,255,.18); }

.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: 12px;
  background: rgba(255,255,255,.06); border: 1px solid var(--line);
}

/* ——— Bottom bar (full-bleed) ——— */
.bottom-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  transform: none;
  z-index: 40;
  width: 100%;
  max-width: none;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr);
  height: 70px;
  background: rgba(6, 12, 22, 0.82);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  border: 0;
  border-top: 1px solid rgba(255,255,255,.12);
  border-radius: 0;
  box-shadow: 0 -12px 40px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.06);
  padding: 0 clamp(12px, 3vw, 48px);
}
.bb-cell {
  display: flex; align-items: center; gap: 13px;
  padding: 0 22px;
  min-width: 0;
}
.bb-cell + .bb-cell {
  border-left: 1px solid rgba(255,255,255,.1);
}
.bb-cell .ico {
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center; flex: none;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  color: #cfe0f5;
}
.bb-cell .lab {
  font-size: 11.5px; color: var(--muted);
  display: flex; align-items: center; gap: 6px;
  letter-spacing: .02em;
}
.bb-cell .val {
  font-weight: 700; font-size: 16px; margin-top: 2px; letter-spacing: .01em;
}
.dot-online {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 10px var(--green); display: inline-block; flex: none;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .55; }
}
.ip-badge {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #4a9dff, #2563eb);
  color: #fff; font-weight: 800; font-size: 12px;
  letter-spacing: .04em;
  box-shadow: 0 6px 16px rgba(37,99,235,.45);
}
.ip-row { display: flex; align-items: center; gap: 8px; }
.copy-btn {
  width: 30px; height: 30px; border-radius: 8px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.06); border: 1px solid var(--line);
  color: #cfd8e6;
  transition: background .15s, color .15s;
}
.copy-btn:hover { background: rgba(47,125,255,.22); color: #fff; }
.bb-discord {
  justify-content: space-between;
  transition: background .15s;
  border-radius: 0;
}
.bb-discord:hover { background: rgba(88,101,242,.14); }
.bb-discord .go {
  color: #fff; font-weight: 700; font-size: 14px;
  white-space: nowrap;
}
.bb-discord .ico {
  background: rgba(88,101,242,.22);
  border-color: rgba(88,101,242,.45);
  color: #a5b4ff;
}

/* ——— Boutique-style atmosphere (inner pages, full-bleed) ——— */
.shop-shell-body,
.boutique-body {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: none;
  background: var(--bg);
}
.shop-atmosphere {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.shop-atmosphere img,
.shop-atmosphere picture {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
}
.shop-atmosphere img {
  object-fit: cover;
  object-position: center 35%;
  filter: blur(18px) saturate(1.15) brightness(.55);
  transform: scale(1.08);
}
.shop-atmosphere-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5,11,20,.55) 0%, rgba(5,11,20,.72) 40%, rgba(5,11,20,.92) 100%),
    radial-gradient(ellipse 70% 45% at 50% -8%, rgba(47,125,255,.22), transparent 55%),
    radial-gradient(ellipse 40% 35% at 100% 10%, rgba(62,207,255,.1), transparent 50%);
}
.shop-shell-page {
  position: relative; z-index: 1;
  background: transparent !important;
  padding-bottom: 80px;
}
.shop-kicker {
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 8px;
}

/* ——— Inner pages ——— */
.page {
  min-height: 100vh;
  padding: 100px 22px 100px;
  background:
    radial-gradient(ellipse 70% 45% at 50% -8%, rgba(47,125,255,.16), transparent 55%),
    radial-gradient(ellipse 40% 35% at 100% 10%, rgba(233,30,99,.08), transparent 50%),
    var(--bg);
}
.page-inner { width: min(1080px, 100%); margin: 0 auto; }
.page h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.85rem);
  letter-spacing: .04em;
  margin-bottom: 10px;
}
.page .lead { color: var(--muted); font-size: 1.05rem; line-height: 1.55; max-width: 60ch; }
.card-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px; margin-top: 28px;
}
.card {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px rgba(0,0,0,.25);
}
.card h2 {
  font-family: var(--display);
  font-size: 1.15rem;
  margin: 12px 0 8px;
}
.card p { color: var(--muted); font-size: .95rem; line-height: 1.5; }
.card .os {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(47,125,255,.14); border: 1px solid rgba(47,125,255,.3);
  font-size: 22px;
}
.steps { margin-top: 14px; display: grid; gap: 10px; }
.step {
  display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start;
  color: #dce5f3; font-size: .92rem; line-height: 1.45;
}
.step b {
  width: 28px; height: 28px; border-radius: 999px;
  display: grid; place-items: center;
  background: linear-gradient(180deg, #4a8fff, #2f7dff);
  color: #fff; font-size: 12px;
}
.toast {
  position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(8px);
  padding: 10px 16px; border-radius: 12px;
  background: rgba(12,18,28,.95); border: 1px solid rgba(47,125,255,.45);
  color: #9ec5ff; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; z-index: 80;
}
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 1280px) {
  .nav-user { display: none; }
  .nav-links a { padding: 8px 9px; font-size: 13px; gap: 5px; }
  .nav-links svg { width: 14px; height: 14px; }
}
@media (max-width: 1180px) {
  .site-nav {
    display: flex;
    justify-content: space-between;
    gap: 10px;
  }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: fixed; left: 12px; right: 12px; top: 74px;
    padding: 10px; border-radius: 16px;
    background: rgba(8,14,24,.98); border: 1px solid var(--line);
    transform: none; max-height: calc(100vh - 90px); overflow: auto;
    z-index: 210;
    box-shadow: 0 18px 48px rgba(0,0,0,.45);
  }
  .nav-links.open a {
    padding: 12px 14px;
    font-size: 14.5px;
  }
  .nav-links.open a::after { display: none; }
  .nav-toggle { display: grid; place-items: center; order: -1; margin-right: auto; }
  .nav-actions { gap: 8px; }
  .nav-actions > .nav-balance { margin-left: 0; }
}
@media (max-width: 720px) {
  .nav-logout {
    width: 40px; min-width: 40px; padding: 0;
    font-size: 0; letter-spacing: 0; gap: 0;
    position: relative;
  }
  .nav-logout::before {
    content: "";
    width: 18px; height: 18px;
    display: block;
    background: center / contain no-repeat
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dce5f3' stroke-width='2'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' y1='12' x2='9' y2='12'/%3E%3C/svg%3E");
  }
  .nav-balance { min-width: 56px; padding: 0 10px; font-size: 13px; }
}
@media (max-width: 980px) {
  .bottom-bar {
    grid-template-columns: 1fr;
    height: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 0;
  }
  .bb-cell {
    padding: 12px 16px;
    min-height: 54px;
  }
  .bb-cell + .bb-cell {
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,.08);
  }
  .bb-discord { border-radius: 0; }
  .card-grid { grid-template-columns: 1fr; }
  .page { padding-bottom: 240px; }
}


/* ——— Traîner-Frontier scrollbars ——— */
html {
  scrollbar-width: thin;
  scrollbar-color: #3b82f6 #0a0f18;
}
* {
  scrollbar-width: thin;
  scrollbar-color: #3b82f6 #121822;
}
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
::-webkit-scrollbar-track {
  background: #0a0f18;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #60a5fa, #3b82f6 45%, #2563eb);
  border-radius: 999px;
  border: 3px solid #0a0f18;
  min-height: 48px;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #93c5fd, #60a5fa 40%, #3b82f6);
  border: 3px solid #0a0f18;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:active {
  background: #3ecfff;
  border: 3px solid #0a0f18;
  background-clip: padding-box;
}
::-webkit-scrollbar-corner {
  background: #0a0f18;
}

/* ——— Error modal (site.js showErrorModal) ——— */
.am-error-modal {
  position: fixed; inset: 0; z-index: 200;
  display: none; place-items: center;
  padding: 24px;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(6px);
}
.am-error-modal.open { display: grid; }
.am-error-panel {
  width: min(480px, 100%);
  background: #121822;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,.55);
  overflow: hidden;
}
.am-error-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.02);
}
.am-error-head .mark {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(145deg, #60a5fa, #2f7dff);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800; color: #fff; flex: none;
}
.am-error-head strong {
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
}
.am-error-x {
  margin-left: auto; width: 32px; height: 32px; border-radius: 8px;
  background: rgba(255,255,255,.06); color: #c9d5e8; font-size: 18px;
}
.am-error-x:hover { background: rgba(255,255,255,.12); color: #fff; }
.am-error-body { padding: 18px 18px 20px; }
.am-error-body h2 { font-size: 1.2rem; margin-bottom: 8px; }
.am-error-body p { color: var(--muted); line-height: 1.55; font-size: 14.5px; margin-bottom: 8px; }
.am-error-detail {
  margin-top: 12px; padding: 12px 14px; border-radius: 10px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.1);
  border-left: 3px solid #eab308;
  color: #f5e7b5;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px; line-height: 1.45;
  word-break: break-word; white-space: pre-wrap;
  max-height: 180px; overflow: auto;
}
.am-error-actions {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px;
}

/* ——— Vote page ——— */
.vote-page .vote-inner { max-width: 920px; }
.vote-hero { margin-bottom: 28px; }
.vote-hero .lead strong { color: #c4b5fd; font-weight: 600; }
.vote-pseudo-row {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px;
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--glass);
  border: 1px solid rgba(62,207,255,.2);
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
}
.vote-avatar-wrap {
  width: 72px; height: 72px; border-radius: 14px; overflow: hidden; flex: none;
  box-shadow: 0 0 0 2px rgba(62,207,255,.35), 0 10px 24px rgba(0,0,0,.35);
  background: #0a1220;
}
.vote-avatar { width: 72px; height: 72px; image-rendering: pixelated; }
.vote-pseudo-field {
  flex: 1 1 200px; display: flex; flex-direction: column; gap: 6px;
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.vote-pseudo-field input {
  font-family: var(--display); font-size: 1.15rem; letter-spacing: .04em;
  padding: 12px 14px; border-radius: 12px;
  background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.14);
  color: #fff; outline: none;
}
.vote-pseudo-field input:focus {
  border-color: rgba(62,207,255,.55);
  box-shadow: 0 0 0 3px rgba(47,125,255,.2);
}
.vote-pseudo-hint {
  margin-top: 10px; font-size: 13.5px; color: var(--muted);
}
.vote-pseudo-hint.is-error { color: #fbbf24; }
.vote-section-title {
  font-family: var(--display); font-size: 1.05rem; letter-spacing: .06em;
  text-transform: uppercase; margin: 8px 0 14px; color: #dbe7f7;
}
.vote-cards {
  display: grid; gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .vote-cards { grid-template-columns: 1fr 1fr 1fr; }
}
.vote-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 16px;
  border-radius: 16px;
  background: var(--glass);
  border: 1px solid rgba(62,207,255,.16);
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 16px 36px rgba(0,0,0,.28);
  min-height: 220px;
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
}
.vote-card:hover {
  transform: translateY(-2px);
  border-color: rgba(62,207,255,.4);
  box-shadow: 0 20px 48px rgba(47,125,255,.16);
}
.vote-card.is-done { border-color: rgba(61,214,140,.45); }
.vote-card.is-disabled { opacity: .72; }
.vote-card-logo {
  width: 52px; height: 52px; border-radius: 12px;
  background: rgba(255,255,255,.06);
  display: grid; place-items: center; overflow: hidden;
}
.vote-card-logo img { width: 40px; height: 40px; object-fit: contain; }
.vote-card-body { flex: 1; }
.vote-card-body strong {
  display: block; font-family: var(--display); font-size: 1.05rem; letter-spacing: .03em;
}
.vote-card-body small { color: var(--muted); font-size: 12.5px; }
.vote-card-reward { margin: 10px 0 8px; }
.vote-key-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
  background: linear-gradient(135deg, rgba(167,139,250,.28), rgba(47,125,255,.22));
  border: 1px solid rgba(196,181,253,.35);
  color: #e9d5ff;
}
.vote-status { display: block; font-size: 13px; margin-top: 4px; }
.vote-status.ok { color: var(--green); }
.vote-status.wait { color: #fbbf24; }
.vote-status.cool { color: var(--cyan); }
.vote-status.ready { color: var(--muted); }
.vote-status.warn { color: #f87171; }
.vote-card-actions .btn { width: 100%; justify-content: center; }
.vote-card-actions .btn:disabled { opacity: .55; cursor: not-allowed; }

/* Shared full-width panels (explainer + classement) */
.vote-panel,
.vote-board-full {
  width: 100%;
  margin-top: 28px;
  margin-bottom: 0;
  padding: 22px 22px 18px;
  border-radius: 18px;
  background: var(--glass);
  border: 1px solid rgba(62,207,255,.16);
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 18px 44px rgba(0,0,0,.28);
  box-sizing: border-box;
}
.vote-board-full { margin-bottom: 56px; }
.vote-explain p { color: var(--muted); line-height: 1.55; margin-bottom: 10px; font-size: 14.5px; }
.vote-explain p strong { color: #e8eef8; }
.vote-explain-list {
  margin: 12px 0 0 18px; color: var(--muted); font-size: 13.5px; line-height: 1.55;
}
.vote-explain-list li { margin-bottom: 6px; }

/* ——— Vote leaderboard (monthly) ——— */
.vote-board-head {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
  gap: 14px; margin-bottom: 16px;
}
.vote-board-head .vote-section-title { margin: 4px 0 0; }
.vote-board-head .shop-kicker { margin-bottom: 0; }
.vote-reset {
  text-align: right;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.08);
}
.vote-reset-label {
  display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.vote-reset strong {
  font-family: var(--display); font-size: 1.05rem; color: var(--cyan); letter-spacing: .04em;
}
.vote-lb-toolbar {
  display: flex; flex-wrap: wrap; gap: 12px 18px;
  align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.vote-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.vote-chip {
  padding: 7px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--muted);
  transition: border-color .15s, color .15s, background .15s;
}
.vote-chip:hover { color: #fff; border-color: rgba(62,207,255,.35); }
.vote-chip.on {
  color: #fff;
  background: linear-gradient(135deg, rgba(47,125,255,.35), rgba(62,207,255,.18));
  border-color: rgba(62,207,255,.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.vote-podium {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 12px;
  align-items: end;
  margin-bottom: 20px;
}
.vote-pod-slot {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 12px 14px;
  border-radius: 16px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.08);
  text-align: center;
  min-height: 160px;
}
.vote-pod-slot.is-empty { opacity: .25; min-height: 120px; }
.vote-pod-slot.place-1 {
  border-color: rgba(250,204,21,.45);
  background: linear-gradient(180deg, rgba(250,204,21,.12), rgba(0,0,0,.28));
  transform: translateY(-8px);
}
.vote-pod-slot.place-2 { border-color: rgba(148,163,184,.4); }
.vote-pod-slot.place-3 { border-color: rgba(205,127,50,.4); }
.vote-pod-medal {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--display); font-size: 13px; font-weight: 700;
  background: rgba(255,255,255,.1);
}
.place-1 .vote-pod-medal { background: #fbbf24; color: #111; }
.place-2 .vote-pod-medal { background: #94a3b8; color: #111; }
.place-3 .vote-pod-medal { background: #c67b3a; color: #111; }
.vote-pod-slot img {
  width: 64px; height: 64px; border-radius: 12px; image-rendering: pixelated;
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
}
.vote-pod-name { font-size: 14px; font-weight: 700; }
.vote-pod-votes { font-size: 12.5px; color: var(--cyan); }
.vote-pod-break { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.vote-lb-tag {
  display: inline-block; padding: 2px 7px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .03em;
  background: rgba(47,125,255,.18); border: 1px solid rgba(62,207,255,.25); color: #cfe8ff;
}
.vote-lb-table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid rgba(255,255,255,.08); }
.vote-lb-table {
  width: 100%; border-collapse: collapse; font-size: 14px;
}
.vote-lb-table th {
  text-align: left; padding: 10px 12px;
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  background: rgba(0,0,0,.28); border-bottom: 1px solid rgba(255,255,255,.08);
}
.vote-lb-table td {
  padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.06);
  vertical-align: middle;
}
.vote-lb-table tr.is-top td { background: rgba(62,207,255,.04); }
.vote-lb-rank { font-family: var(--display); color: var(--cyan); width: 48px; }
.vote-lb-player {
  display: flex; align-items: center; gap: 10px; font-weight: 600;
}
.vote-lb-player img {
  width: 28px; height: 28px; border-radius: 6px; image-rendering: pixelated;
}
.vote-lb-votes strong { font-family: var(--display); letter-spacing: .04em; }
.vote-lb-break { white-space: nowrap; }
.vote-lb-empty { color: var(--muted); text-align: center; padding: 22px 12px !important; }
.vote-lb-footnote {
  margin-top: 12px; font-size: 12.5px; color: var(--muted); line-height: 1.45;
}
@media (max-width: 720px) {
  .vote-podium { grid-template-columns: 1fr; }
  .vote-pod-slot.place-1 { transform: none; order: -1; }
  .vote-lb-break { display: none; }
  .vote-lb-table th.vote-lb-break { display: none; }
}


/* ——— Footer site (.am-footer) — compact glass, cyan-bordered ——— */
.am-footer {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-top: 1.25rem;
  padding: 0.75rem clamp(12px, 2.2vw, 28px) max(0.75rem, env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  background: transparent;
}
.am-footer__shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.9rem 1.15rem 0.7rem;
  border-radius: 16px;
  border: 1px solid rgba(62, 207, 255, 0.32);
  background:
    linear-gradient(165deg, rgba(12, 24, 42, 0.9) 0%, rgba(6, 14, 26, 0.94) 100%);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(62, 207, 255, 0.08),
    inset 0 1px 0 rgba(125, 223, 255, 0.12);
}
.am-footer__inner {
  display: grid;
  gap: 1rem 1.5rem;
  align-items: start;
}
.am-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem 1.25rem;
}
@media (min-width: 860px) {
  .am-footer__inner {
    grid-template-columns: minmax(180px, 1.15fr) minmax(0, 2.4fr);
    gap: 1rem 2rem;
    align-items: start;
  }
}
@media (max-width: 599px) {
  .am-footer {
    padding-top: 0.5rem;
    padding-left: 10px;
    padding-right: 10px;
  }
  .am-footer__shell {
    padding: 0.75rem 0.85rem 0.55rem;
    border-radius: 14px;
  }
  .am-footer__inner { gap: 0.85rem; }
  .am-footer__cols {
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem 0.75rem;
  }
  .am-footer__cols .am-footer__col:last-child {
    grid-column: 1 / -1;
  }
  .am-footer__brand p {
    font-size: 0.82rem;
    line-height: 1.4;
    max-width: 42ch;
  }
}
.am-footer__brand-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  border-radius: 8px;
  transition: opacity 0.2s ease, filter 0.2s ease;
}
.am-footer__brand-link:hover {
  opacity: 0.92;
  filter: drop-shadow(0 0 10px rgba(62, 207, 255, 0.35));
}
.am-footer__logo {
  width: auto;
  height: 42px;
  max-width: 160px;
  object-fit: contain;
  object-position: left center;
}
.am-footer__brand p {
  color: #b8cce2;
  font-size: 0.84rem;
  line-height: 1.45;
  margin-top: 0.45rem;
  max-width: 30ch;
}
.am-footer__label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7be9ff;
  margin-bottom: 0.45rem;
  font-weight: 800;
  text-shadow: 0 0 18px rgba(62, 207, 255, 0.35);
}
.am-footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}
.am-footer__col a {
  color: #e8f1fb;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.3;
  min-height: 28px;
  padding: 0.15rem 0;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  cursor: pointer;
  transition: color 0.18s ease, text-shadow 0.18s ease;
}
.am-footer__col a:hover {
  color: #9aefff;
  text-shadow: 0 0 12px rgba(62, 207, 255, 0.4);
}
.am-footer__col a:focus-visible {
  outline: 2px solid rgba(62, 207, 255, 0.7);
  outline-offset: 2px;
  border-radius: 4px;
}
.am-footer__copy {
  color: #a9bdd4;
  font-size: 0.78rem;
  text-align: center;
  margin: 0.75rem 0 0;
  padding: 0.6rem 0.25rem 0;
  border-top: 1px solid rgba(62, 207, 255, 0.18);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.25rem 0.45rem;
  line-height: 1.4;
}
.am-footer__copy-line { display: inline; color: #c5d6ea; }
.am-footer__copy-sep { color: #5ecfff; opacity: 0.85; }
@media (prefers-reduced-motion: reduce) {
  .am-footer__col a,
  .am-footer__brand-link { transition: none; }
}

/* ——— Scroll to top (global) ——— */
.am-back-to-top {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  z-index: 180;
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(62, 207, 255, 0.45);
  background: linear-gradient(160deg, rgba(12, 28, 48, 0.96), rgba(6, 14, 26, 0.98));
  color: #7be9ff;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(62, 207, 255, 0.12),
    inset 0 1px 0 rgba(125, 223, 255, 0.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}
.am-back-to-top.is-visible,
.am-back-to-top.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.am-back-to-top:hover {
  color: #e8f9ff;
  border-color: rgba(123, 233, 255, 0.7);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.45),
    0 0 20px rgba(62, 207, 255, 0.22),
    inset 0 1px 0 rgba(125, 223, 255, 0.2);
}
.am-back-to-top:focus-visible {
  outline: 2px solid rgba(62, 207, 255, 0.75);
  outline-offset: 3px;
}
.am-back-to-top[hidden] { display: none !important; }
.am-back-to-top svg { display: block; }
@media (prefers-reduced-motion: reduce) {
  .am-back-to-top { transition: opacity 0.15s ease, visibility 0.15s ease; transform: none; }
}

/* ——— Pages légales (.am-legal) ——— */
.am-legal {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 96px 20px 48px;
}
.am-legal .am-legal__kicker,
.am-legal .shop-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 10px;
}
.am-legal h1 {
  font-family: var(--display);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
  color: #eef5ff;
}
.am-legal__date {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
}
.am-legal__disclaimer {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(62, 207, 255, 0.14);
  background: rgba(8, 16, 28, 0.55);
  margin-bottom: 1.75rem;
}
.am-legal__block {
  margin: 0 0 1.5rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.am-legal__block:last-of-type { border-bottom: 0; }
.am-legal__block h2 {
  font-family: var(--display);
  font-size: 1.15rem;
  color: #e8f4ff;
  margin-bottom: 0.55rem;
  letter-spacing: 0.02em;
}
.am-legal__block p,
.am-legal__block li {
  color: #c5d2e4;
  line-height: 1.6;
  font-size: 0.95rem;
}
.am-legal__block p + p { margin-top: 0.65rem; }
.am-legal__block ul {
  margin: 0.55rem 0 0 1.15em;
}
.am-legal__block li { margin: 0.3rem 0; }
.am-legal__block a { color: var(--cyan); }
.am-legal__block a:hover { text-decoration: underline; }
.shop-shell-page .am-footer,
.boutique-page ~ .am-footer,
.login-main ~ .am-footer {
  margin-top: 0.85rem;
}
