/* Thème « Antropiik Destin » : police du pack Antropiik-Destin, sanctuaire bronze et turquoise en fond.
   Chargé après styles.css : ne fait que redéfinir couleurs, polices et décor, sans toucher à la mise en page. */
@font-face {
  font-family: "Antropiik Destin";
  src: url("/fonts/AntropiikDestin-Regular.woff2") format("woff2"),
       url("/fonts/AntropiikDestin-Regular.woff") format("woff"),
       url("/fonts/AntropiikDestin-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #02070f;
  --panel: rgba(4, 13, 24, .82);
  --panel-edge: rgba(185, 138, 70, .45);
  --glow: #54cbd4;
  --cyan: #54cbd4;
  --ink: #efe6d2;
  --muted: #a4a08f;
  --gold: #e6c77a;
  --bronze: #b98a46;
  --bronze-deep: #6b4a1f;
  --turq-soft: rgba(84, 203, 212, .35);
  /* Police du pack pour les titres, menus et boutons ; police de lecture prévue par le pack pour les textes. */
  --title: "Antropiik Destin", Georgia, serif;
  --ui: Georgia, "Times New Roman", serif;
  --gold-grad: linear-gradient(180deg, #fff2c2 0%, #e9c66d 24%, #bd8330 47%, #f9df91 55%, #c5903b 77%, #78501e 100%);
}

/* La police n'a qu'une graisse : pas de faux gras flou. */
html { font-synthesis: none; }
body { background: var(--bg); font-size: 17px; }

/* Fond : le sanctuaire du destin, fixe derrière tout le site */
.starfield {
  background:
    radial-gradient(ellipse 60% 55% at 50% 45%, rgba(2, 7, 15, .15), rgba(2, 7, 15, .55) 100%),
    url("/assets/fond-sanctuaire.png") center top / cover no-repeat,
    var(--bg);
}
.starfield::after { opacity: .35; }

/* Fond vivant (theme-destin.js) : la scène reprend le cadrage « cover » de l'image
   pour que la lueur des joyaux tombe exactement sur les piliers, quelle que soit la taille d'écran. */
.starfield:has(.sanctuary) { background: var(--bg); overflow: hidden; }
.starfield:has(.sanctuary)::after { display: none; }
.sanctuary {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: max(100vw, calc(100vh * 1672 / 941)); aspect-ratio: 1672 / 941;
  background: url("/assets/fond-sanctuaire.png") 0 0 / 100% 100% no-repeat;
}
.sanctuary::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 55% at 50% 45%, rgba(2, 7, 15, .1), rgba(2, 7, 15, .5) 100%);
}
.sanctuary > * { position: absolute; pointer-events: none; }

/* Brume turquoise et souffles de vent qui passent entre l'arche et les piliers */
.sanctuary .mist {
  inset: -10% -20%; opacity: .55; mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(90deg, transparent 4%, #000 14%, #000 86%, transparent 96%);
          mask-image: linear-gradient(90deg, transparent 4%, #000 14%, #000 86%, transparent 96%);
}
.sanctuary .m1 { background: radial-gradient(ellipse 28% 18% at 30% 30%, rgba(40, 140, 160, .32), transparent 70%), radial-gradient(ellipse 22% 14% at 75% 70%, rgba(30, 110, 150, .28), transparent 70%); animation: mist-drift 38s ease-in-out infinite alternate; }
.sanctuary .m2 { background: radial-gradient(ellipse 30% 16% at 65% 25%, rgba(60, 170, 185, .22), transparent 70%), radial-gradient(ellipse 26% 20% at 20% 75%, rgba(25, 95, 130, .3), transparent 70%); animation: mist-drift 52s ease-in-out -20s infinite alternate-reverse; }
.sanctuary .m3 { background: radial-gradient(ellipse 18% 12% at 50% 55%, rgba(185, 138, 70, .14), transparent 70%); animation: mist-drift 64s ease-in-out -10s infinite alternate; }
@keyframes mist-drift {
  0% { transform: translate3d(-6%, 1%, 0) scale(1); }
  50% { transform: translate3d(3%, -2%, 0) scale(1.08); }
  100% { transform: translate3d(7%, 2%, 0) scale(1.02); }
}
/* Vent : filets d'air fins qui filent d'un pilier à l'autre */
.sanctuary .gust {
  position: absolute; left: 0; width: var(--w); height: var(--h); border-radius: 50%; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(150, 235, 240, .55) 35%, rgba(230, 252, 255, .9) 55%, rgba(150, 235, 240, .4) 75%, transparent);
  box-shadow: 0 0 6px rgba(120, 220, 230, .35);
  animation: gust var(--dur) cubic-bezier(.45, .05, .55, .95) var(--delay) infinite;
}
@keyframes gust {
  0% { transform: translateX(-40%) rotate(var(--tilt)) scaleX(.4); opacity: 0; }
  15% { opacity: var(--op); }
  50% { transform: translateX(200%) translateY(-6px) rotate(calc(var(--tilt) * -1)) scaleX(1); }
  80% { opacity: calc(var(--op) * .6); }
  100% { transform: translateX(430%) translateY(4px) rotate(var(--tilt)) scaleX(.6); opacity: 0; }
}
/* Poussières lumineuses emportées par le vent */
.sanctuary .mote {
  position: absolute; left: 0; width: var(--size); height: var(--size); border-radius: 50%; opacity: 0;
  background: #d9fbff; box-shadow: 0 0 6px #7fe3ec;
  animation: mote var(--dur) linear var(--delay) infinite;
}
@keyframes mote {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: var(--op); }
  35% { transform: translate(35vw, calc(var(--rise) * .6)); }
  65% { transform: translate(65vw, calc(var(--rise) * -.4)); }
  90% { opacity: var(--op); }
  100% { transform: translate(100vw, var(--rise)); opacity: 0; }
}
/* Étoiles filantes (créées par theme-destin.js) */
.sanctuary .shooting {
  position: absolute; width: var(--len); height: 2px; border-radius: 2px;
  transform-origin: 100% 50%; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(160, 235, 245, .35) 55%, #fff);
  filter: drop-shadow(0 0 4px #bff6ff);
  animation: shoot var(--dur) ease-in forwards;
}
@keyframes shoot {
  0% { transform: rotate(var(--angle)) translateX(0) scaleX(.2); opacity: 0; }
  15% { opacity: 1; }
  70% { opacity: 1; }
  100% { transform: rotate(var(--angle)) translateX(var(--dist)) scaleX(1); opacity: 0; }
}
/* Vent et poussières dans les deux sens */
.sanctuary .gust.rev { left: auto; right: 0; animation-name: gust-rev; }
@keyframes gust-rev {
  0% { transform: translateX(40%) rotate(var(--tilt)) scaleX(.4); opacity: 0; }
  15% { opacity: var(--op); }
  50% { transform: translateX(-200%) translateY(6px) rotate(calc(var(--tilt) * -1)) scaleX(1); }
  80% { opacity: calc(var(--op) * .6); }
  100% { transform: translateX(-430%) translateY(-4px) rotate(var(--tilt)) scaleX(.6); opacity: 0; }
}
.sanctuary .mote.rev { left: auto; right: 0; animation-name: mote-rev; }
@keyframes mote-rev {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: var(--op); }
  35% { transform: translate(-35vw, calc(var(--rise) * .6)); }
  65% { transform: translate(-65vw, calc(var(--rise) * -.4)); }
  90% { opacity: var(--op); }
  100% { transform: translate(-100vw, var(--rise)); opacity: 0; }
}

/* Étoiles qui scintillent dans le ciel, sous l'arche */
/* Le ciel suit la courbe intérieure de l'arche et va jusqu'au bord des piliers */
.sanctuary .sky {
  inset: 0;
  -webkit-mask-image: radial-gradient(ellipse 45.5% 120% at 50% 85%, #000 93%, transparent 100%);
          mask-image: radial-gradient(ellipse 45.5% 120% at 50% 85%, #000 93%, transparent 100%);
}
/* Braises dorées et turquoise qui s'élèvent le long des piliers */
.sanctuary .ember {
  position: absolute; bottom: 0; width: var(--size); height: var(--size); border-radius: 50%; opacity: 0;
  background: var(--tint); box-shadow: 0 0 8px var(--tint), 0 0 2px #fff;
  animation: ember var(--dur) ease-in-out var(--delay) infinite;
}
@keyframes ember {
  0% { transform: translate(0, 0) scale(.6); opacity: 0; }
  12% { opacity: var(--op); }
  50% { transform: translate(var(--sway), -45vh) scale(1); }
  85% { opacity: calc(var(--op) * .5); }
  100% { transform: translate(calc(var(--sway) * -.5), -95vh) scale(.4); opacity: 0; }
}
/* Constellations dorées qui s'allument doucement */
.sanctuary .constellations { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sanctuary .constellations g { opacity: 0; transition: opacity 1.8s ease-in-out; }
.sanctuary .constellations g.on { opacity: .85; }
.sanctuary .constellations polyline { fill: none; stroke: #d9b46a; stroke-width: 1.3; stroke-opacity: .8; stroke-dasharray: 5 4; stroke-linejoin: round; stroke-linecap: round; }
.sanctuary .constellations circle { fill: #fff3d0; filter: drop-shadow(0 0 3px #e6c77a); }
/* Figures (lion, Dofus, dragon, Pikachu) et grand A : traits pleins qui se dessinent étoile par étoile */
.sanctuary .constellations g.is-theme polyline, .sanctuary .constellations g.is-a polyline {
  stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.6s ease-out;
}
.sanctuary .constellations g.on.is-theme polyline, .sanctuary .constellations g.on.is-a polyline { stroke-dashoffset: 0; }
.sanctuary .constellations g.is-theme polyline { stroke: #e9c67c; stroke-width: 1.5; stroke-opacity: .9; }
.sanctuary .constellations g.is-theme.on { opacity: .95; }
/* Le A d'Antropiik : or vif, halo, étoiles turquoise et joyau au sommet */
.sanctuary .constellations g.is-a.on { opacity: 1; }
.sanctuary .constellations g.is-a polyline { stroke: #f8e2a6; stroke-opacity: 1; stroke-width: 2.4; filter: drop-shadow(0 0 4px rgba(233, 198, 109, .9)) drop-shadow(0 0 10px rgba(186, 131, 35, .5)); }
.sanctuary .constellations g.is-a circle { fill: #effeff; r: 3px; filter: drop-shadow(0 0 5px #7fe3ec); }
.sanctuary .constellations g.on.is-a { animation: a-glow 3.2s ease-in-out 2.6s infinite; }
@keyframes a-glow { 0%, 100% { filter: none; } 50% { filter: drop-shadow(0 0 8px rgba(249, 223, 145, .55)); } }
/* Couleurs particulières */
.sanctuary .constellations polyline.gemme { stroke: #7fe3ec !important; filter: drop-shadow(0 0 5px #54cbd4) !important; }
.sanctuary .constellations circle.gemme { fill: #c8fbff; }
.sanctuary .constellations polyline.feu { stroke: #ff9a3c !important; filter: drop-shadow(0 0 4px #ff6a1a); }
.sanctuary .constellations circle.feu { fill: #ffd27a; filter: drop-shadow(0 0 4px #ff7a2a); }
.sanctuary .constellations polyline.eclair { stroke: #ffe45c !important; filter: drop-shadow(0 0 4px #ffd21a); }
.sanctuary .constellations circle.eclair { fill: #fff6b0; }
.sanctuary .constellations polyline.joue { stroke: #ff7a6a !important; }
.sanctuary .constellations circle.joue { fill: #ffb3a6; filter: drop-shadow(0 0 3px #ff5a4a); }
.sanctuary .star {
  position: absolute; width: var(--size); height: var(--size); border-radius: 50%;
  background: var(--tint); box-shadow: 0 0 calc(var(--size) * 3) var(--tint);
  opacity: .15; animation: twinkle var(--dur) ease-in-out var(--delay) infinite;
}
.sanctuary .star.big::before, .sanctuary .star.big::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: calc(var(--size) * 6); height: 1px;
  background: linear-gradient(90deg, transparent, var(--tint), transparent); transform: translate(-50%, -50%);
}
.sanctuary .star.big::after { transform: translate(-50%, -50%) rotate(90deg); }
@keyframes twinkle {
  0%, 100% { opacity: .12; transform: scale(.7); }
  50% { opacity: var(--max); transform: scale(1.15); }
}

/* Joyaux bleus des piliers : lueur bleu clair qui scintille */
.sanctuary .gem {
  width: var(--s); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(235, 255, 255, .95) 0%, rgba(150, 240, 248, .65) 14%, rgba(70, 200, 220, .28) 38%, transparent 70%);
  mix-blend-mode: screen; animation: gem-glow var(--dur) ease-in-out var(--delay) infinite;
}
.sanctuary .gem::before, .sanctuary .gem::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 170%; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(225, 255, 255, .95), transparent);
  transform: translate(-50%, -50%) rotate(0deg); animation: gem-flare var(--dur) ease-in-out var(--delay) infinite;
}
.sanctuary .gem::after { width: 2px; height: 210%; background: linear-gradient(180deg, transparent, rgba(225, 255, 255, .95), transparent); }
@keyframes gem-glow {
  0%, 100% { opacity: .35; transform: translate(-50%, -50%) scale(.75); }
  45% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
  55% { opacity: .85; transform: translate(-50%, -50%) scale(1.05); }
}
@keyframes gem-flare {
  0%, 30%, 70%, 100% { opacity: 0; }
  45% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .sanctuary *, .sanctuary *::before, .sanctuary *::after { animation: none !important; }
  .sanctuary .star { opacity: .5; }
}

a { color: var(--cyan); }
.eyebrow { color: var(--cyan); letter-spacing: .24em; font-size: 14px; }

/* Lettrage doré du pack (classe antropiik-gold) */
.wordmark, .hero h1, .game-hero h1, .section-title, h1.section-title, .profile-head h3, .wallet-balance {
  background-image: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wordmark { filter: drop-shadow(0 2px 1px #281806) drop-shadow(0 0 13px rgba(186, 131, 35, .17)); letter-spacing: .14em; }
.topbar .wordmark { letter-spacing: .12em; font-size: 24px; }
.hero h1, .game-hero h1 { text-shadow: none; filter: drop-shadow(0 2px 1px #281806) drop-shadow(0 0 16px rgba(186, 131, 35, .25)); letter-spacing: .05em; font-weight: 400; }
.section-title { font-weight: 400; letter-spacing: .14em; }
.section-title span { -webkit-text-fill-color: var(--muted); }
.section-title::after { background: linear-gradient(90deg, rgba(185, 138, 70, .75), rgba(84, 203, 212, .25) 60%, transparent); }

/* Titres et libellés : même police, sans faux gras */
h1, h2, h3, .nav a, .tabs button, .chips button, .slide-tabs button, .btn-play, .btn-ghost, .btn-danger,
.form label, .meta dt, .hero-status, .state, .back-link, .discover, .atp-amount, .dropdown-head b, .accounts b,
.tile h3, .shop-body h3, .game-body h3, .guide-title, .news h2, .delivery h2, .category-back h2 { font-weight: 400; }
.form small { font-family: var(--ui); }

/* Barre du haut */
.topbar {
  border-color: rgba(185, 138, 70, .55);
  background: linear-gradient(180deg, rgba(8, 18, 30, .93), rgba(3, 9, 18, .93));
  box-shadow: 0 10px 40px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(249, 223, 145, .12);
}
.brand .brand-emblem { filter: drop-shadow(0 0 6px rgba(84, 203, 212, .35)); }
.nav a { color: #d9cdb0; font-size: 14px; letter-spacing: .08em; }
.nav a:hover, .nav a.active, .tabs button.active {
  color: #fff3d0; border-color: rgba(214, 170, 92, .8);
  background: linear-gradient(180deg, rgba(70, 48, 18, .85), rgba(24, 16, 6, .85));
  box-shadow: 0 0 16px rgba(84, 203, 212, .22), inset 0 0 10px rgba(230, 199, 122, .15);
}
.icon-btn, .avatar-btn { color: #d9cdb0; }
.icon-btn:hover, .icon-btn[aria-expanded="true"], .avatar-btn:hover, .avatar-btn[aria-expanded="true"] {
  border-color: rgba(214, 170, 92, .8); background: rgba(70, 48, 18, .55); box-shadow: 0 0 14px rgba(84, 203, 212, .25); color: #fff3d0;
}
.avatar { border-color: rgba(214, 170, 92, .8); box-shadow: 0 0 12px rgba(84, 203, 212, .3); background: radial-gradient(circle at 30% 25%, #6fd8de, #1d5f68 50%, #07141e); }
.presence { border-color: #07111c; }
.dropdown { border-color: rgba(185, 138, 70, .7); background: linear-gradient(180deg, rgba(8, 18, 30, .98), rgba(3, 9, 18, .98)); box-shadow: 0 18px 50px rgba(0, 0, 0, .6), 0 0 22px rgba(84, 203, 212, .15); }
.dropdown-head, .dropdown .danger { border-color: rgba(185, 138, 70, .3); }
.dropdown a:hover, .dropdown a:focus-visible, .dropdown button:hover, .dropdown button:focus-visible { background: rgba(70, 48, 18, .85); }

/* Cadres et panneaux : liseré bronze, éclat turquoise */
.hero-frame, .game-hero { border-color: rgba(214, 170, 92, .65); box-shadow: 0 0 0 1px rgba(84, 203, 212, .1), 0 0 40px rgba(0, 0, 0, .5); }
.hero-frame::after { background: linear-gradient(90deg, rgba(2, 7, 15, .92) 0%, rgba(2, 7, 15, .55) 38%, transparent 65%), linear-gradient(0deg, rgba(2, 7, 15, .7), transparent 35%); }
.game-hero::after { background: linear-gradient(90deg, rgba(2, 7, 15, .92) 0%, rgba(2, 7, 15, .55) 45%, transparent 75%), linear-gradient(0deg, rgba(2, 7, 15, .75), transparent 45%); }
.panel, .game-card, .shop-item { border-color: rgba(185, 138, 70, .45); box-shadow: inset 0 1px 0 rgba(249, 223, 145, .08); }
.game-card:hover, .shop-item:hover, .tile:hover, .category-card:hover, .category-card:focus-visible, .game-hero:hover {
  border-color: #d6aa5c; box-shadow: 0 0 0 1px rgba(214, 170, 92, .35), 0 0 26px rgba(84, 203, 212, .22);
}
.tile-art { border-bottom-color: rgba(185, 138, 70, .45); }
.tile-art::after { background: linear-gradient(180deg, transparent 55%, rgba(3, 9, 18, .6)); }
.tile-art-trio span + span { border-left-color: rgba(214, 170, 92, .7); }
.tile-art-trio img { filter: drop-shadow(0 0 14px rgba(84, 203, 212, .7)); }
.slide-tabs button, .chips button { border-color: rgba(185, 138, 70, .5); background: rgba(3, 9, 18, .75); color: #d9cdb0; }
.slide-tabs button.active, .chips button.active { color: #fff3d0; border-color: var(--gold); box-shadow: 0 0 14px rgba(84, 203, 212, .3); }
.tabs button { color: #d9cdb0; }

/* Bouton JOUER : métal doré et cœur turquoise */
.btn-play {
  color: #fff3d0; border-color: #d6aa5c;
  background: linear-gradient(180deg, rgba(92, 64, 24, .96), rgba(30, 20, 8, .96));
  box-shadow: inset 0 0 22px rgba(230, 199, 122, .25), 0 0 22px rgba(84, 203, 212, .25);
  letter-spacing: .1em; text-shadow: 0 1px 1px #281806;
}
.btn-play:hover { box-shadow: inset 0 0 28px rgba(249, 223, 145, .35), 0 0 32px rgba(84, 203, 212, .45); }
.tri { border-left-color: var(--cyan); filter: drop-shadow(0 0 6px var(--cyan)); }
.chev { color: var(--cyan); }
.btn-ghost { border-color: rgba(185, 138, 70, .55); background: rgba(3, 9, 18, .65); }
.btn-ghost:hover { border-color: var(--gold); color: #fff3d0; }
.btn-ghost.danger { color: #ff8a8a; border-color: rgba(255, 92, 92, .55); }

/* Champs de formulaire */
.form label { color: #d9cdb0; letter-spacing: .08em; }
.form input, .delivery select { border-color: rgba(185, 138, 70, .5); background: rgba(2, 7, 15, .88); }
.form input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(84, 203, 212, .2); }
.result, .accounts li, .realm code { border-color: rgba(185, 138, 70, .35); }
.accounts li { background: rgba(2, 7, 15, .6); }
.ledger li { border-top-color: rgba(185, 138, 70, .2); }

/* Boutique et visuels */
.tag { background: rgba(3, 9, 18, .82); border-color: rgba(185, 138, 70, .55); }
.shop-art.brand-art { background: radial-gradient(circle at 30% 20%, rgba(84, 203, 212, .35), transparent 55%), radial-gradient(circle at 80% 90%, rgba(185, 138, 70, .4), transparent 55%), #03101a; }
.item-art { background: radial-gradient(circle at 50% 40%, rgba(84, 203, 212, .18), rgba(3, 9, 18, .95) 70%); }
.atp-amount { font-weight: 400; }

/* Pied de page et fenêtres */
.footer { border-top-color: rgba(185, 138, 70, .35); }
.delivery { background: linear-gradient(180deg, rgba(8, 18, 30, .98), rgba(3, 9, 18, .98)); border: 1px solid rgba(185, 138, 70, .6); }
.delivery fieldset { border-color: rgba(185, 138, 70, .45); }
.back-link:hover { text-shadow: 0 0 12px rgba(84, 203, 212, .6); }

@media (max-width: 900px) {
  .starfield { background-position: center top; }
  .topbar .wordmark { font-size: 20px; }
}
@media (max-width: 480px) {
  .topbar .wordmark { font-size: 16px; letter-spacing: .06em; }
  .brand { gap: 8px; }
  .brand .brand-emblem { width: 38px; height: 38px; }
}

/* Titre d'accueil entre la barre du haut et la bannière */
.welcome {
  display: flex; align-items: center; justify-content: center; gap: 22px;
  margin: 6px 0 22px; text-align: center;
}
.welcome-text {
  font: 400 clamp(22px, 3.2vw, 40px)/1.15 var(--title); letter-spacing: .06em;
  background-image: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 1px #281806) drop-shadow(0 0 16px rgba(186, 131, 35, .3));
}
/* Ornements : filet doré qui s'efface et joyau turquoise */
.welcome-orn {
  position: relative; flex: 1; max-width: 220px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(214, 170, 92, .9));
}
.welcome-orn:last-child { background: linear-gradient(270deg, transparent, rgba(214, 170, 92, .9)); }
.welcome-orn::after {
  content: ""; position: absolute; top: 50%; width: 10px; height: 10px; right: -5px;
  transform: translateY(-50%) rotate(45deg); border: 1px solid #d6aa5c;
  background: radial-gradient(circle, #c8fbff, #54cbd4 55%, #1d5f68);
  box-shadow: 0 0 10px rgba(84, 203, 212, .8); animation: welcome-gem 3.4s ease-in-out infinite;
}
.welcome-orn:last-child::after { right: auto; left: -5px; }
@keyframes welcome-gem { 0%, 100% { box-shadow: 0 0 6px rgba(84, 203, 212, .5); } 50% { box-shadow: 0 0 16px rgba(160, 240, 248, 1); } }
@media (max-width: 600px) { .welcome { gap: 12px; } .welcome-orn { max-width: 50px; } }
@media (prefers-reduced-motion: reduce) { .welcome-orn::after { animation: none; } }

/* Météores de la pluie : tête chaude orangée, traînée dorée puis turquoise */
.sanctuary .shooting.meteor {
  height: 2.5px;
  background: linear-gradient(90deg, transparent, rgba(84, 203, 212, .25) 35%, rgba(233, 198, 109, .6) 75%, #fff4d6 94%, #fff);
  filter: drop-shadow(0 0 5px rgba(255, 196, 110, .9)) drop-shadow(0 0 10px rgba(255, 150, 60, .45));
}

/* Logos des actualités : médaillon à gauche de chaque article (assets/news, tools/make-news-logos.py) */
.news { position: relative; padding-left: 168px; min-height: 172px; }
.news::before {
  content: ""; position: absolute; left: 24px; top: 26px; width: 120px; height: 120px;
  background: var(--news-logo, url("/assets/news/launcher.png")) center / contain no-repeat;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .55));
}
.news[data-game="dofus-retro"] { --news-logo: url("/assets/news/dofus.png"); }
.news[data-game="world-of-warcraft"] { --news-logo: url("/assets/news/wow.png"); }
.news[data-game="pokemon-shield"] { --news-logo: url("/assets/news/pokemon.png"); }
.news[data-logo="roue"] { --news-logo: url("/assets/news/roue.png"); }
.news[data-logo="roue"]::before { animation: news-wheel 40s linear infinite; }
@keyframes news-wheel { to { transform: rotate(360deg); } }
@media (max-width: 700px) {
  .news { padding-left: 28px; padding-top: 112px; }
  .news::before { left: 50%; top: 18px; width: 84px; height: 84px; margin-left: -42px; }
}
@media (prefers-reduced-motion: reduce) { .news[data-logo="roue"]::before { animation: none; } }

/* Logo Antropiik de la barre du haut : le logo carré d'origine du launcher, un peu plus grand */
.brand .brand-emblem {
  width: 58px; height: 58px; object-fit: cover; border-radius: 6px;
  border: 1px solid rgba(214, 170, 92, .7);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 0 12px rgba(84, 203, 212, .25);
  filter: none;
}
@media (max-width: 480px) { .brand .brand-emblem { width: 44px; height: 44px; } }

/* Page Télécharger : le visuel du launcher (logo carré d'origine) à droite du panneau */
.panel.download { position: relative; padding-right: min(340px, 34%); min-height: 330px; }
.panel.download::after {
  content: ""; position: absolute; right: 44px; top: 50%; width: 250px; height: 250px; transform: translateY(-50%);
  background: url("/assets/launcher-logo-carre.png") center / cover no-repeat; border-radius: 10px;
  border: 1px solid rgba(214, 170, 92, .75);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 12px 40px rgba(0, 0, 0, .6), 0 0 34px rgba(84, 203, 212, .22);
}
@media (max-width: 900px) {
  .panel.download { padding-right: 28px; padding-top: 220px; }
  .panel.download::after { top: 24px; left: 28px; right: auto; width: 170px; height: 170px; transform: none; }
}

/* Boutons : cadre continu (plus de coins coupés par le clip-path du thème d'origine) */
.btn-play { clip-path: none; border-radius: 10px; }

/* Fenêtres (livraison Dofus, merci, suppression, jet maximum) : la police de lecture est plus large
   que l'ancienne, on élargit un peu et on laisse tout passer à la ligne au lieu de déborder. */
dialog.delivery { width: min(560px, calc(100vw - 32px)); max-width: calc(100vw - 32px); overflow-x: hidden; }
dialog.delivery * { min-width: 0; }
.delivery select, .delivery input { width: 100%; max-width: 100%; }
.delivery input[type="radio"], .delivery input[type="checkbox"] { width: auto; }
.delivery .options { flex-wrap: wrap; gap: 8px 18px; }
.delivery .radio { white-space: nowrap; }
.delivery .dialog-actions { flex-wrap: wrap; }
.delivery h2 { overflow-wrap: anywhere; }

/* Téléchargement du launcher réservé aux comptes (2026-11-11) : bouton visible mais grisé et inactif pour un visiteur. */
[data-launcher-link].is-locked, #download-btn.is-locked { opacity: .45; filter: grayscale(.85); pointer-events: none; cursor: not-allowed; }

/* Barre du haut (2026-11-11) : avec « Roue du destin » le menu sur une ligne débordait du cadre doré (avatar à
   l'extérieur, défilement horizontal). Le logo et les outils ne rétrécissent plus, le menu se resserre et passe sur deux lignes, centré, quand la place manque encore (.topbar .nav : plus fort que wheel.css, chargé après). */
.brand, .topbar-tools { flex-shrink: 0; }
@media (min-width: 1101px) {
  .topbar .nav { flex: 1 1 auto; min-width: 0; flex-wrap: wrap; justify-content: center; row-gap: 4px; }
}
@media (min-width: 1101px) {
  .topbar .wordmark { letter-spacing: .08em; font-size: 21px; }
  .topbar .nav a { padding: 8px 7px; letter-spacing: .03em; font-size: 13.5px; }
}

/* Captcha anti-robot du formulaire « Créer un compte » */
.captcha { display: grid; gap: 10px; padding: 14px 16px; border: 1px solid rgba(185, 138, 70, .45); border-radius: 10px; background: rgba(2, 7, 15, .6); }
.captcha-title { font: 700 13px var(--title); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.captcha-row { display: flex; align-items: center; gap: 12px; }
.captcha-row img { width: 220px; max-width: 100%; height: auto; aspect-ratio: 22 / 7; border-radius: 8px; border: 1px solid rgba(185, 138, 70, .5); background: #02070f; }
.captcha-refresh { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid rgba(185, 138, 70, .6); background: rgba(2, 7, 15, .88); color: var(--gold); font-size: 22px; cursor: pointer; }
.captcha-refresh:hover, .captcha-refresh:focus-visible { border-color: var(--cyan); color: var(--cyan); outline: none; }
.captcha input { text-transform: uppercase; letter-spacing: .3em; max-width: 220px; }
.form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
