/* Djoox Studio — feuille de style unique du site. Les polices sont auto-hébergées (aucun appel externe). */

@font-face{font-family:"Fredoka";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/fredoka-latin-ext-400-normal.fe97fe966d.woff2) format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"Fredoka";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/fredoka-latin-400-normal.9cf74f7035.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:"Fredoka";font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/fredoka-latin-ext-500-normal.e3f1383246.woff2) format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"Fredoka";font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/fredoka-latin-500-normal.7d76e44a94.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:"Fredoka";font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/fredoka-latin-ext-600-normal.d7d22ddf9d.woff2) format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"Fredoka";font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/fredoka-latin-600-normal.b62f2898de.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:"Lilita One";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/lilita-one-latin-ext-400-normal.f40903e46b.woff2) format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"Lilita One";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/lilita-one-latin-400-normal.d2575d4fa3.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 {
  color-scheme: dark;
  --bg: #0e0a22;
  --bg-2: #140f30;
  --surface: #1b1540;
  --surface-2: #241c55;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f6f3ff;
  --muted: #bdb5e2;
  --pink: #ff5ca8;
  --violet: #7b4dff;
  --gold: #ffc23d;
  --gold-ink: #2b1700;
  --cyan: #45e0e6;
  --accent: var(--pink);
  --radius: 22px;
  --radius-sm: 14px;
  --wrap: 1120px;
  --display: "Lilita One", "Fredoka", system-ui, sans-serif;
  --body: "Fredoka", system-ui, -apple-system, "Segoe UI", sans-serif;
}

:lang(ja) {
  --display: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  --body: "Fredoka", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
}
:lang(zh) {
  --display: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --body: "Fredoka", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: 0.005em;
}
:lang(ja) :is(h1, h2, h3),
:lang(zh) :is(h1, h2, h3) {
  font-weight: 800;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
}
h2 {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
}
h3 {
  font-size: 1.3rem;
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: min(100% - 32px, var(--wrap));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--gold);
  color: var(--gold-ink);
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Barre Djoox (haut de chaque site : djoox.com et sites des jeux) ---------- */

.djoox-bar {
  position: relative;
  z-index: 60;
  background: #08061a;
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
}
.djoox-bar ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 14px;
  list-style: none;
  margin: 0;
  padding: 0;
  min-height: 34px;
}
.djoox-bar a,
.djoox-bar summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}
.djoox-bar a:hover,
.djoox-bar summary:hover,
.djoox-bar a:focus-visible,
.djoox-bar summary:focus-visible {
  color: var(--text);
  background: var(--surface);
}
.djoox-bar .djoox-bar-brand {
  color: var(--text);
  font-weight: 600;
}
.djoox-bar-brand img {
  width: 20px;
  height: 20px;
}
.djoox-bar-games {
  position: relative;
}
.djoox-bar-games summary {
  list-style: none;
  cursor: pointer;
}
.djoox-bar-games summary::-webkit-details-marker {
  display: none;
}
.djoox-bar-games summary::after {
  content: "";
  width: 5px;
  height: 5px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.djoox-bar-games ul {
  display: block;
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  min-width: 180px;
  min-height: 0;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.djoox-bar-games li a {
  display: block;
  padding: 8px 12px;
  color: var(--text);
}
.djoox-bar-games li a:hover,
.djoox-bar-games li a[aria-current="true"] {
  background: var(--surface-2);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}
.brand img {
  width: 40px;
  height: 40px;
}
/* Site d'un jeu : icône arrondie et nom du jeu à la place du logo du studio. */
.brand-game img {
  border-radius: 10px;
}
.brand-name {
  font-family: "Lilita One", var(--display);
  font-size: 1.6rem;
  line-height: 1;
  letter-spacing: 0.01em;
}
.brand-name small {
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: 4px;
}

.main-nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  color: var(--muted);
}
.main-nav a:hover {
  color: var(--text);
  background: var(--surface);
}

.lang {
  position: relative;
}
.lang summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
}
.lang summary::-webkit-details-marker {
  display: none;
}
.lang summary svg {
  width: 18px;
  height: 18px;
}
.lang ul {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 190px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.lang li a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
}
.lang li a:hover,
.lang li a[aria-current="true"] {
  background: var(--surface-2);
}
.lang li span {
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .main-nav {
    display: none;
  }
  .brand-name small {
    display: none;
  }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: linear-gradient(180deg, #ffd768, var(--gold));
  color: var(--gold-ink);
  box-shadow: 0 6px 0 #b86a00, 0 14px 30px rgba(255, 178, 30, 0.25);
}
.btn-primary:hover {
  box-shadow: 0 8px 0 #b86a00, 0 18px 36px rgba(255, 178, 30, 0.3);
}
.btn-ghost {
  border: 1.5px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
}
.btn svg {
  width: 20px;
  height: 20px;
}

/* ---------- Accueil : héros ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 72px;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 140%;
  z-index: -1;
  background:
    radial-gradient(40% 45% at 15% 25%, rgba(123, 77, 255, 0.45), transparent 70%),
    radial-gradient(35% 40% at 85% 30%, rgba(255, 92, 168, 0.35), transparent 70%),
    radial-gradient(30% 35% at 60% 90%, rgba(69, 224, 230, 0.18), transparent 70%);
}
.stars {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.55;
  background-image:
    radial-gradient(1.5px 1.5px at 20px 30px, #fff, transparent),
    radial-gradient(1px 1px at 120px 80px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 200px 160px, #ffe7a8, transparent),
    radial-gradient(1px 1px at 280px 40px, #fff, transparent),
    radial-gradient(1px 1px at 60px 200px, #bfe9ff, transparent);
  background-size: 320px 240px;
}
.hero .wrap {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero {
    padding: 88px 0 104px;
  }
  .hero .wrap {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 20px;
}
.kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.lead {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  color: var(--muted);
  max-width: 36em;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
}
.phone {
  position: relative;
  width: min(260px, 70vw);
  border-radius: 38px;
  padding: 10px;
  background: linear-gradient(160deg, #3a2f7a, #1a1440);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), inset 0 0 0 1.5px rgba(255, 255, 255, 0.12);
}
.phone img {
  border-radius: 29px;
  aspect-ratio: 540 / 1140;
  object-fit: cover;
  width: 100%;
}
.phone.tilt-left {
  transform: rotate(-6deg);
}
.phone.back {
  position: absolute;
  width: min(220px, 58vw);
  transform: translate(-58%, 8%) rotate(-12deg);
  opacity: 0.85;
  filter: saturate(0.9);
}
.hero-art .phone.front {
  transform: translate(18%, 0) rotate(5deg);
}
.float {
  position: absolute;
  width: 64px;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
  animation: bob 6s ease-in-out infinite;
}
.float.f1 {
  top: 4%;
  left: 6%;
}
.float.f2 {
  bottom: 8%;
  right: 2%;
  width: 78px;
  animation-delay: -2s;
}
.float.f3 {
  top: 10%;
  right: 6%;
  width: 52px;
  animation-delay: -4s;
}
@keyframes bob {
  50% {
    transform: translateY(-12px) rotate(6deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .float {
    animation: none;
  }
  .btn {
    transition: none;
  }
}

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

.section {
  padding: 72px 0;
}
.section-alt {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}
.section-head {
  max-width: 44em;
  margin-bottom: 36px;
}
.section-head p {
  color: var(--muted);
  font-size: 1.15rem;
}
.section-head a,
.prose a {
  color: var(--gold);
  text-underline-offset: 3px;
  font-weight: 500;
}

/* Carte de jeu (accueil) */
.games {
  display: grid;
  gap: 24px;
}
@media (min-width: 900px) {
  .games {
    grid-template-columns: 2fr 1fr;
  }
}
.game-card {
  position: relative;
  display: grid;
  gap: 24px;
  padding: 28px;
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(232, 53, 138, 0.28), transparent 70%),
    radial-gradient(60% 80% at 0% 100%, rgba(69, 224, 230, 0.16), transparent 70%),
    linear-gradient(160deg, #241c5c, #150f36);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
@media (min-width: 640px) {
  .game-card {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}
.game-card .game-id {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.game-card .game-id img {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}
.game-card h3 {
  font-size: 2rem;
  margin: 0;
}
.genre {
  color: var(--cyan);
  font-weight: 600;
  font-size: 0.95rem;
}
.facts {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}
.game-card .shots {
  display: flex;
  gap: 12px;
}
.game-card .shots img {
  width: 120px;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.12);
}
.game-card .shots img:nth-child(2) {
  margin-top: 28px;
}
@media (max-width: 639px) {
  .game-card .shots {
    justify-content: center;
  }
}
.next-card {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 28px;
  border-radius: calc(var(--radius) + 6px);
  border: 2px dashed rgba(255, 255, 255, 0.16);
  color: var(--muted);
  text-align: center;
}
.next-card .badge {
  width: 64px;
  height: 64px;
  margin: 0 auto 8px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: var(--surface);
  font-family: "Lilita One", var(--display);
  font-size: 2rem;
  color: var(--pink);
}
.next-card h3 {
  color: var(--text);
}

/* Valeurs du studio */
.values {
  display: grid;
  gap: 18px;
}
@media (min-width: 640px) {
  .values {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1000px) {
  .values {
    grid-template-columns: repeat(4, 1fr);
  }
}
.value {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.value p {
  color: var(--muted);
  margin: 0;
}
.value .ico {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  margin-bottom: 14px;
}
.value .ico svg {
  width: 26px;
  height: 26px;
}
.value:nth-child(1) .ico {
  background: rgba(69, 224, 230, 0.14);
  color: var(--cyan);
}
.value:nth-child(2) .ico {
  background: rgba(255, 194, 61, 0.14);
  color: var(--gold);
}
.value:nth-child(3) .ico {
  background: rgba(255, 92, 168, 0.14);
  color: var(--pink);
}
.value:nth-child(4) .ico {
  background: rgba(123, 77, 255, 0.2);
  color: #b39dff;
}

/* Contact */
.contact {
  display: grid;
  gap: 20px;
  padding: 36px;
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(120deg, rgba(255, 92, 168, 0.2), rgba(123, 77, 255, 0.2));
  border: 1px solid var(--line);
}
@media (min-width: 760px) {
  .contact {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}
.contact h2 {
  margin-bottom: 0.2em;
}
.contact p {
  color: var(--muted);
  margin: 0;
}
.mail {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-weight: 600;
  word-break: break-all;
}

/* ---------- Page de jeu ---------- */

.theme-zertyzzle {
  --bg: #120d2e;
  --bg-2: #181140;
  --surface: #1e1748;
  --surface-2: #261e5c;
  --muted: #c3baee;
  --accent: #ffb21e;
}

.crumbs {
  padding-top: 20px;
  font-size: 0.95rem;
  color: var(--muted);
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.crumbs li + li::before {
  content: "›";
  margin-right: 6px;
  opacity: 0.6;
}
.crumbs a {
  text-decoration: none;
}
.crumbs a:hover {
  text-decoration: underline;
}

.game-hero {
  padding-top: 24px;
}
.game-title {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}
.game-title img {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
}
.tagline {
  font-family: "Lilita One", var(--display);
  font-size: 1.4rem;
  background: linear-gradient(90deg, #ffb21e, #e8358a, #45e0e6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
}
.game-hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 8px 20px 8px 16px;
  border-radius: 16px;
  background: #000;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  text-decoration: none;
  line-height: 1.15;
}
.store svg {
  width: 26px;
  height: 26px;
  flex: none;
}
.store small {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  opacity: 0.85;
}
.store strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 600;
}
a.store:hover {
  border-color: #fff;
}
/* Version PC à télécharger (Windows) : bouton principal quand le jeu en a une. */
.store.store-pc {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border-color: transparent;
}
a.store.store-pc:hover {
  filter: brightness(1.1);
  border-color: transparent;
}
/* « Jouer en ligne » : le bouton principal, avant les magasins. */
.store.web-play {
  background: linear-gradient(135deg, #ffb21e, #ff7a1a);
  border-color: transparent;
  color: #1a1030;
}
.store.web-play small {
  opacity: 0.9;
}
a.store.web-play:hover {
  filter: brightness(1.08);
  border-color: transparent;
}
.nav-play {
  font-weight: 700;
  color: var(--gold, #ffb21e);
}
/* Menu « Jouer en ligne » de l'en-tête (plusieurs jeux jouables) : même panneau que le choix de langue. */
.play-menu {
  position: relative;
}
.play-menu summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
}
.play-menu summary::-webkit-details-marker {
  display: none;
}
.play-menu summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.play-menu summary:hover,
.play-menu[open] summary {
  background: var(--surface);
}
.main-nav .play-menu ul {
  display: block;
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 5;
  min-width: 190px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.main-nav .play-menu li a {
  border-radius: 10px;
  color: var(--text);
}
.main-nav .play-menu li a:hover {
  background: var(--surface-2);
}
.store.is-soon {
  background: rgba(255, 255, 255, 0.05);
  border-style: dashed;
  color: var(--muted);
}
.soon-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Règles */
.rules {
  display: grid;
  gap: 18px;
  counter-reset: rule;
}
@media (min-width: 800px) {
  .rules {
    grid-template-columns: repeat(3, 1fr);
  }
}
.rule {
  position: relative;
  padding: 26px 24px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.rule::before {
  counter-increment: rule;
  content: counter(rule);
  position: absolute;
  top: -14px;
  left: 22px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--gold-ink);
  font-family: "Lilita One", var(--display);
  font-size: 1.1rem;
}
.rule p {
  color: var(--muted);
  margin: 0;
}
.tiers {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: 8px 4px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.tiers li {
  display: grid;
  justify-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.95rem;
}
.tiers li img {
  width: 64px;
  height: 64px;
}
.tiers li:last-child img {
  width: 84px;
  height: 84px;
}
.tiers .arrow {
  align-self: center;
  color: var(--accent);
  font-size: 1.6rem;
  padding: 0 6px 28px;
}

/* Galerie */
.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(240px, 68vw);
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 18px;
  margin: 0;
  list-style: none;
  scrollbar-color: var(--surface-2) transparent;
}
.gallery figure {
  margin: 0;
  scroll-snap-align: start;
}
.gallery img {
  border-radius: 24px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  aspect-ratio: 540 / 1140;
  object-fit: cover;
  width: 100%;
}
.gallery figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

/* Fonctionnalités */
.features {
  display: grid;
  gap: 18px;
}
@media (min-width: 640px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1000px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}
.feature {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.feature h3 {
  color: var(--accent);
}
.feature p {
  color: var(--muted);
  margin: 0;
}

/* FAQ */
.faq {
  display: grid;
  gap: 12px;
  max-width: 820px;
}
.faq details {
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 56px 18px 22px;
  position: relative;
  font-weight: 600;
  font-size: 1.1rem;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  color: var(--accent);
  line-height: 1;
}
.faq details[open] summary::after {
  content: "−";
}
.faq details p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--muted);
}

/* Téléchargement */
.download {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 24px;
  padding: 36px;
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(60% 90% at 100% 0%, rgba(255, 178, 30, 0.22), transparent 70%),
    linear-gradient(160deg, #2a2068, #170f3c);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
@media (min-width: 860px) {
  .download {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}
.download .stores {
  margin-top: 0;
}
.download p {
  color: var(--muted);
  margin: 0;
}
.small-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.95rem;
  text-underline-offset: 3px;
}

/* ---------- Pages simples (mentions légales, 404) ---------- */

.prose {
  max-width: 760px;
  padding: 48px 0 72px;
}
.prose h2 {
  font-size: 1.5rem;
  margin-top: 1.6em;
}
.prose p,
.prose li {
  color: var(--muted);
}
.updated {
  color: var(--muted);
  font-size: 0.95rem;
}

.notfound {
  text-align: center;
  padding: 96px 0 120px;
}
.notfound img {
  width: 96px;
  margin: 0 auto 24px;
}
.notfound p {
  color: var(--muted);
  max-width: 32em;
  margin: 0 auto 28px;
}

.chooser {
  min-height: 100vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 40px 16px;
}
.chooser img {
  width: 88px;
  margin: 0 auto 16px;
}
.chooser ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 200px));
  gap: 10px;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}
.chooser a {
  display: block;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 600;
}
.chooser a:hover {
  background: var(--surface-2);
}

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

.site-footer {
  border-top: 1px solid var(--line);
  background: #0a0719;
  padding: 48px 0 32px;
  font-size: 0.97rem;
}
.footer-grid {
  display: grid;
  gap: 32px;
}
@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  }
}
.footer-grid p {
  color: var(--muted);
  max-width: 24em;
  margin-top: 12px;
}
.footer-grid h2 {
  font-family: var(--body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.footer-grid a {
  text-decoration: none;
}
.footer-grid a:hover {
  text-decoration: underline;
}
.footer-langs {
  grid-template-columns: repeat(2, auto);
  justify-content: start;
  column-gap: 20px !important;
}
.copyright {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Plusieurs jeux ---------- */

.dev-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(255, 194, 61, 0.14);
  border: 1px solid rgba(255, 194, 61, 0.45);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  vertical-align: 2px;
  white-space: nowrap;
}

.float.dragon {
  width: 170px;
  bottom: 2%;
  right: -4%;
}

/* Accueil : un jeu par ligne, puis l'encart « prochain jeu ». */
@media (min-width: 900px) {
  .games {
    grid-template-columns: 1fr 1fr;
  }
  .games .next-card {
    grid-column: 1 / -1;
  }
}
.next-card {
  grid-template-columns: auto 1fr;
  align-items: center;
  text-align: left;
  gap: 20px;
  padding: 22px 28px;
}
.next-card .badge {
  margin: 0;
}
.next-card h3,
.next-card p {
  margin: 0;
}
.next-card h3 {
  margin-bottom: 4px;
}
.game-card {
  grid-template-columns: 1fr;
}
@media (min-width: 640px) and (max-width: 899px), (min-width: 1100px) {
  .game-card {
    grid-template-columns: 1fr auto;
  }
}
.game-card .shots img {
  width: 104px;
}

.dragons {
  display: grid;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 640px) {
  .dragons {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1000px) {
  .dragons {
    grid-template-columns: repeat(4, 1fr);
  }
}
.dragons li {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
}
.dragons img {
  height: 150px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto 12px;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.5));
}
.dragons h3 {
  margin-bottom: 4px;
}
.dragons p {
  color: var(--muted);
  margin: 0;
}
.dragon-aurvhal h3 { color: #9fd4ff; }
.dragon-ardrak h3 { color: #ff8a4c; }
.dragon-tonnvir h3 { color: #c9a6ff; }
.dragon-grundal h3 { color: #b7d07a; }

/* ---------- Blog ---------- */

.posts {
  display: grid;
  gap: 18px;
}
@media (min-width: 760px) {
  .posts {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}
.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.post-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}
.post-card h3 {
  margin: 4px 0 0;
  font-size: 1.3rem;
  line-height: 1.25;
}
.post-card h3 a {
  text-decoration: none;
}
/* Toute la carte est cliquable, le lien reste celui du titre. */
.post-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.post-card p {
  color: var(--muted);
  margin: 0;
}
.post-card .post-more {
  margin-top: auto;
  padding-top: 8px;
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
}
.post-card-game {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
}
.post-meta {
  font-size: 0.9rem;
  color: var(--muted);
}
.post-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(69, 224, 230, 0.12);
  color: var(--cyan);
  font-weight: 600;
  font-size: 0.8rem;
}
.blog-head {
  padding-top: 24px;
}
.blog-head h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.post {
  padding: 32px 0 56px;
  max-width: 760px;
}
.post header h1 {
  font-size: clamp(1.9rem, 5vw, 3rem);
  margin-top: 10px;
}
.post-body {
  max-width: none;
  padding: 8px 0 0;
}
.post-body h2 {
  font-size: 1.6rem;
  margin-top: 1.8em;
}
.post-body h3 {
  font-size: 1.25rem;
  margin-top: 1.4em;
}
.post-body p,
.post-body li {
  color: #ddd6f7;
  font-size: 1.08rem;
}
.post-body strong {
  color: var(--text);
}
.post-body ul,
.post-body ol {
  padding-left: 1.3em;
}
.post-body li {
  margin-bottom: 0.4em;
}
.post-body li::marker {
  color: var(--accent);
}
.post-body a {
  color: var(--gold);
}

/* ---------- Dossiers et guides (cocons) ---------- */

/* Mention « Marques citées » (charte SEO §3.2) : lisible, taille proche du corps de texte, jamais grisée. */
.trademarks {
  padding: 36px 0;
}
.trademarks h2 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.trademarks p {
  max-width: 48em;
  font-size: 0.98rem;
  line-height: 1.55;
}
.cocoon h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin-bottom: 20px;
}
.cocoon-list {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 760px) {
  .cocoon-list {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}
.cocoon-list a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: border-color 0.15s ease;
}
.cocoon-list a:hover {
  border-color: rgba(255, 255, 255, 0.28);
}
.cocoon-list .post-tag {
  align-self: flex-start;
  margin-bottom: 4px;
}
.cocoon-list strong {
  font-weight: 600;
  line-height: 1.3;
}
.cocoon-list span:not(.post-tag) {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}
.post .post-body h3 {
  color: var(--text);
}
.download .game-id {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.download .game-id img {
  width: 64px;
  height: 64px;
  border-radius: 18px;
}
.download .game-id h2 {
  margin: 0;
}

/* ---------- Astrakeep : nuit violette, cristal turquoise, or des légendaires ---------- */

.theme-astrakeep {
  --bg: #120f2e;
  --bg-2: #171339;
  --surface: #1e1846;
  --surface-2: #2a2160;
  --muted: #c4bdf0;
  --accent: #45e0e6;
  --cyan: #45e0e6;
}
.theme-astrakeep .hero::before {
  background:
    radial-gradient(40% 45% at 15% 25%, rgba(69, 224, 230, 0.28), transparent 70%),
    radial-gradient(35% 40% at 85% 30%, rgba(155, 92, 255, 0.35), transparent 70%),
    radial-gradient(30% 35% at 60% 90%, rgba(255, 194, 61, 0.16), transparent 70%);
}
.theme-astrakeep .tagline {
  background: linear-gradient(90deg, #45e0e6, #9b5cff, #ffc23d);
  -webkit-background-clip: text;
  background-clip: text;
}
.theme-astrakeep .phone img {
  aspect-ratio: 540 / 1170;
}
.theme-astrakeep .phone {
  background: linear-gradient(160deg, #3b2f86, #160f3a);
}
.theme-astrakeep .float {
  width: 92px;
}
.theme-astrakeep .float.f2 {
  width: 116px;
}
/* Galerie : illustrations carrées et captures, présentées sans recadrage. */
.theme-astrakeep .gallery img {
  aspect-ratio: 9 / 16;
  object-fit: contain;
  background: radial-gradient(circle at 50% 40%, #2a2160, #120f2e 75%);
}
.theme-astrakeep .rule::before {
  color: #0b1424;
}
.card-astrakeep {
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(155, 92, 255, 0.32), transparent 70%),
    radial-gradient(60% 80% at 0% 100%, rgba(69, 224, 230, 0.18), transparent 70%),
    linear-gradient(160deg, #241c5c, #120f2e);
}
.card-astrakeep .genre {
  color: #45e0e6;
}
.heroes li h3 {
  font-size: 1.15rem;
}
.hero-rare h3 { color: #7fd0ff; }
.hero-epic h3 { color: #c49bff; }
.hero-legendary h3 { color: #ffc23d; }
.hero-legendary {
  border-color: rgba(255, 194, 61, 0.35) !important;
}

/* ---------- Astrakeep : l'éveil des héros ---------- */

.awakening {
  background:
    radial-gradient(50% 60% at 50% 0%, rgba(255, 194, 61, 0.14), transparent 70%),
    var(--bg);
}
.heroes li.awakened {
  padding-top: 44px;
  position: relative;
  border-color: rgba(255, 194, 61, 0.4);
  background: linear-gradient(180deg, rgba(255, 194, 61, 0.08), var(--surface) 55%);
}
.heroes li.awakened img {
  filter: drop-shadow(0 0 18px rgba(255, 194, 61, 0.35)) drop-shadow(0 12px 20px rgba(0, 0, 0, 0.5));
}
.awaken-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(255, 194, 61, 0.16);
  border: 1px solid rgba(255, 194, 61, 0.5);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
}
.awaken-power {
  color: var(--gold) !important;
  font-weight: 600;
  margin-bottom: 4px !important;
}

/* Animation d'éveil au survol (ou au toucher / focus) : règles générées par buildCss, au marqueur ci-dessous. */
.hero-portrait {
  position: relative;
  display: block;
  height: 150px;
  margin: 0 auto 12px;
}
.hero-portrait img {
  display: block;
  margin: 0 auto;
  height: 150px;
}
.awaken-anim {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 210px;
  height: 210px;
  max-width: 100%;
  transform: translate(-50%, -50%);
  border-radius: 20px;
  background: center / cover no-repeat;
  box-shadow: 0 0 28px rgba(255, 194, 61, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.heroes li:hover .awaken-anim,
.heroes li:focus-within .awaken-anim {
  opacity: 1;
}
.heroes li:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.anim-hint {
  color: var(--gold);
  font-size: 0.9rem;
}
.hero-stats {
  width: 100%;
  margin: 14px 0 0;
  border-collapse: collapse;
  font-size: 0.78rem;
  text-align: right;
}
.hero-stats caption {
  color: var(--muted);
  font-weight: 600;
  padding-bottom: 4px;
}
.hero-stats th,
.hero-stats td {
  padding: 3px 4px;
  border-top: 1px solid var(--line);
  font-weight: 500;
}
.hero-stats thead th,
.hero-stats thead td {
  border-top: 0;
  color: var(--gold);
  white-space: nowrap;
}
.hero-stats tbody th {
  text-align: left;
  color: var(--muted);
}
.hero-stats td {
  font-variant-numeric: tabular-nums;
}
@media (prefers-reduced-motion:no-preference){li:hover>.hero-portrait>.anim-archere,li:focus-within>.hero-portrait>.anim-archere{background-image:url(/assets/games/astrakeep/awakening/archere.a19151e342.webp)}
li:hover>.hero-portrait>.anim-mage,li:focus-within>.hero-portrait>.anim-mage{background-image:url(/assets/games/astrakeep/awakening/mage.321fcf45a5.webp)}
li:hover>.hero-portrait>.anim-chevalier,li:focus-within>.hero-portrait>.anim-chevalier{background-image:url(/assets/games/astrakeep/awakening/chevalier.b741604eb6.webp)}
li:hover>.hero-portrait>.anim-givre,li:focus-within>.hero-portrait>.anim-givre{background-image:url(/assets/games/astrakeep/awakening/givre.967d5031a3.webp)}
li:hover>.hero-portrait>.anim-artificier,li:focus-within>.hero-portrait>.anim-artificier{background-image:url(/assets/games/astrakeep/awakening/artificier.4f22a8a50f.webp)}
li:hover>.hero-portrait>.anim-paladin,li:focus-within>.hero-portrait>.anim-paladin{background-image:url(/assets/games/astrakeep/awakening/paladin.6a22a1a920.webp)}
li:hover>.hero-portrait>.anim-imperatrice,li:focus-within>.hero-portrait>.anim-imperatrice{background-image:url(/assets/games/astrakeep/awakening/imperatrice.d684b84791.webp)}
li:hover>.hero-portrait>.anim-jinhou,li:focus-within>.hero-portrait>.anim-jinhou{background-image:url(/assets/games/astrakeep/awakening/jinhou.3c064f388c.webp)}
li:hover>.hero-portrait>.anim-varek,li:focus-within>.hero-portrait>.anim-varek{background-image:url(/assets/games/astrakeep/awakening/varek.88325b7d93.webp)}}

/* ---------- Kit presse et créateurs : visuels à télécharger ---------- */

.press-assets {
  display: grid;
  gap: 16px;
  list-style: none;
  margin: 18px 0 28px;
  padding: 0;
}
.post-body .press-assets {
  padding-left: 0;
}
.press-logos {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.press-shots {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.press-assets li {
  margin: 0;
}
.press-assets figure {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  margin: 0;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
}
.press-assets img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}
.press-logos img {
  height: 120px;
  object-fit: contain;
}
.press-shots img {
  aspect-ratio: 9 / 16;
  object-fit: cover;
}
.press-assets figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.95rem;
}
.press-dl small {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}
p.press-link {
  margin-top: 14px;
}

.btn-play {
  background: linear-gradient(135deg, #ffb21e, #ff7a1a);
  color: #1a1030;
  border-color: transparent;
}
.btn-play:hover {
  filter: brightness(1.08);
}

/* Bandeau « jouer en ligne » des articles du blog. */
.play-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  margin: 24px 0;
  padding: 18px 22px;
  border-radius: 18px;
  background: rgba(255, 178, 30, 0.1);
  border: 1.5px solid rgba(255, 178, 30, 0.45);
}
.play-banner strong {
  display: block;
  font-size: 1.1rem;
}
.play-banner p {
  margin: 4px 0 0;
  color: var(--muted);
}

/* ---------- Kingdrake : bleu royal brodé d'or, comme l'interface du jeu ---------- */
.card-kingdrake {
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(240, 192, 64, 0.26), transparent 70%),
    radial-gradient(60% 80% at 0% 100%, rgba(232, 72, 52, 0.18), transparent 70%),
    linear-gradient(160deg, #1f3d93, #0e1c4f);
}
.card-kingdrake .genre {
  color: #ffd56b;
}
.theme-kingdrake {
  --bg: #0b1638;
  --bg-2: #0f1c46;
  --surface: #162a63;
  --surface-2: #1f3a82;
  --muted: #c3cdf0;
  --accent: #ffc94a;
  --cyan: #8fc4ff;
}
.theme-kingdrake .hero::before {
  background:
    radial-gradient(40% 45% at 15% 25%, rgba(70, 120, 255, 0.4), transparent 70%),
    radial-gradient(35% 40% at 85% 30%, rgba(255, 201, 74, 0.25), transparent 70%),
    radial-gradient(30% 35% at 60% 90%, rgba(232, 72, 52, 0.18), transparent 70%);
}
.theme-kingdrake .tagline {
  background: linear-gradient(90deg, #ffc94a, #fff0b8, #ff8a5c);
  -webkit-background-clip: text;
  background-clip: text;
}
.theme-kingdrake .gallery img,
.theme-kingdrake .phone img {
  aspect-ratio: 9 / 16;
}
.theme-kingdrake .phone {
  background: linear-gradient(160deg, #2a4fae, #0e1c4f);
}
.theme-kingdrake .float {
  width: 80px;
}
.theme-kingdrake .float.f2 {
  width: 96px;
}
.theme-kingdrake .download {
  background:
    radial-gradient(60% 90% at 100% 0%, rgba(255, 201, 74, 0.2), transparent 70%),
    linear-gradient(160deg, #1f3d93, #0e1c4f);
}
.theme-kingdrake .dragons img {
  object-fit: contain;
}
.dragon-bonus {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
  font-size: 0.88rem;
  color: var(--accent);
}
@media (min-width: 1100px) {
  .theme-kingdrake .dragons {
    grid-template-columns: repeat(5, 1fr);
  }
}
.dragon-feu h3 { color: #ff7a52; }
.dragon-givre h3 { color: #a8dcff; }
.dragon-foret h3 { color: #9be06a; }
.dragon-orage h3 { color: #b99bff; }
.dragon-soleil h3 { color: #ffd54a; }
.dragons .dragon-bonus li {
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  text-align: center;
}

/* ---------- Blasonia ---------- */
.theme-blasonia .gallery img,
.theme-blasonia .phone img {
  aspect-ratio: 540 / 960;
}
.theme-blasonia .phone {
  background: linear-gradient(160deg, #2b4fa8, #14203f);
}
.card-blasonia {
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(255, 201, 60, 0.28), transparent 70%),
    radial-gradient(60% 80% at 0% 100%, rgba(90, 169, 255, 0.22), transparent 70%),
    linear-gradient(160deg, #1f2f6b, #14203f);
}
.card-blasonia .genre {
  color: #ffc93c;
}
.card-blasonia .shots img {
  aspect-ratio: 540 / 960;
  object-fit: cover;
}
.pc-shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pc-shots figure {
  margin: 0;
}
.pc-shots img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.12);
}
.pc-shots figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}
.pc-req {
  margin-top: 26px;
  padding: 18px 22px;
  border-radius: 18px;
  background: var(--surface-2, rgba(255, 255, 255, 0.06));
}
.pc-req h3 {
  margin: 0 0 8px;
}
.pc-req ul {
  margin: 0;
  padding-left: 1.2em;
}
.pc-req li {
  margin: 4px 0;
}
.pc-req .small-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Guide Blasonia : blocs visuels (scripts/blasonia-guide.mjs), mêmes emblèmes et couleurs que le jeu ---------- */
.bl-ic {
  width: 20px;
  height: 20px;
  flex: none;
}
.bl-hex,
.bl-hex-in {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.bl-hex {
  flex: none;
  width: 52px;
  height: 60px;
  background: #0e1630;
}
.bl-hex-in {
  width: 44px;
  height: 51px;
  background: linear-gradient(#4a5878, #2b3654);
}
.bl-hex.gold .bl-hex-in {
  background: linear-gradient(#fff3a6, #ee9c16);
}
.bl-hex .bl-ic {
  width: 28px;
  height: 28px;
}
.bl-syns,
.bl-heroes,
.bl-items,
.bl-augs {
  display: grid;
  gap: 14px;
  margin: 18px 0 26px;
  padding: 0;
  list-style: none;
}
.bl-syns {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
}
.bl-syn {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 4px 14px;
  align-items: center;
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(255, 201, 60, 0.22);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(43, 79, 168, 0.32), rgba(20, 32, 63, 0.6));
}
.bl-syn h3 {
  margin: 0;
  font-size: 1.15rem;
}
.bl-syn h3 small {
  display: block;
  color: #ffc93c;
  font-size: 0.85rem;
  font-weight: 600;
}
.bl-tiers,
.bl-syn-heroes {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.bl-tiers li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin: 6px 0;
  line-height: 1.45;
}
.bl-tiers b {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(#f3bd86, #a5622c);
  color: #1a1206;
  font-size: 0.9rem;
}
.bl-tiers li + li b {
  background: linear-gradient(#fff3a6, #ee9c16);
}
.bl-syn-heroes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.bl-syn-heroes li {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 64px;
  font-size: 0.75rem;
  line-height: 1.2;
  text-align: center;
  color: var(--muted);
}
.bl-portrait {
  display: block;
  width: 48px;
  height: 48px;
  margin-bottom: 4px;
  border: 3px solid #9aa6bf;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 30%, #c9d4e8, #7d8db0 75%);
  object-fit: cover;
}
.bl-portrait.cost-2 { border-color: #3fae55; background: radial-gradient(circle at 50% 30%, #b7f59a, #3fae55 75%); }
.bl-portrait.cost-3 { border-color: #3b7ff0; background: radial-gradient(circle at 50% 30%, #a9dbff, #3576e0 75%); }
.bl-portrait.cost-4 { border-color: #9a5cf0; background: radial-gradient(circle at 50% 30%, #e3bcff, #8a4fe6 75%); }
.bl-portrait.cost-5 { border-color: #f0a020; background: radial-gradient(circle at 50% 30%, #fff0a6, #f0a020 75%); }
.bl-cost-h {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
}
.bl-cost-h::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: #9aa6bf;
}
.bl-cost-h.cost-2::before { background: #3fae55; }
.bl-cost-h.cost-3::before { background: #3b7ff0; }
.bl-cost-h.cost-4::before { background: #9a5cf0; }
.bl-cost-h.cost-5::before { background: #f0a020; }
.bl-heroes {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
}
.bl-hero {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 2px 12px;
  margin: 0;
  padding: 14px;
  border-radius: 16px;
  background: var(--surface-2, rgba(255, 255, 255, 0.06));
}
.bl-hero .bl-portrait {
  grid-row: span 3;
  width: 72px;
  height: 72px;
  margin: 0;
}
.bl-hero h4 {
  margin: 0;
  font-size: 1.05rem;
}
.bl-hero p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.35;
}
.bl-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
}
.bl-traits span,
.bl-awake {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.bl-hex.mini {
  width: 20px;
  height: 23px;
}
.bl-hex.mini .bl-hex-in {
  width: 17px;
  height: 19px;
}
.bl-hex.mini .bl-ic {
  width: 13px;
  height: 13px;
}
/* Dans le texte d'une page (.post-body) : ni retrait ni puce ni marge de liste sur les blocs du guide. */
.post-body .bl-syns,
.post-body .bl-heroes,
.post-body .bl-items,
.post-body .bl-augs,
.post-body .bl-tiers,
.post-body .bl-syn-heroes {
  padding-left: 0;
}
.post-body .bl-syn,
.post-body .bl-hero,
.post-body .bl-items li,
.post-body .bl-augs li,
.post-body .bl-syn-heroes li {
  margin: 0;
  font-size: 1rem;
}
.post-body .bl-syn-heroes li {
  font-size: 0.75rem;
}
.bl-pos {
  color: var(--muted);
}
.bl-paths,
.bl-awake {
  grid-column: 1 / -1;
}
.bl-hero .bl-paths {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 8px;
}
.bl-paths b {
  display: inline-block;
  min-width: 18px;
  margin-right: 2px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.14);
  text-align: center;
}
.bl-awake {
  color: #ffc93c;
}
/* Objets : gemme du composant (couleur du jeu), objet complet dans un écrin doré. */
.bl-item {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 2px solid rgba(0, 0, 0, 0.35);
  border-radius: 10px;
  background: radial-gradient(circle at 40% 30%, rgba(255, 255, 255, 0.5), transparent 60%), var(--gem);
}
.bl-item.full {
  border: 2px solid #ffd23f;
  background: radial-gradient(circle at 40% 30%, rgba(255, 255, 255, 0.4), transparent 60%), linear-gradient(135deg, var(--gem) 50%, var(--gem2) 50%);
  box-shadow: 0 0 0 1px #6b4a06;
}
.bl-item .bl-ic {
  width: 22px;
  height: 22px;
}
.bl-item.full .bl-ic {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
}
.bl-item.full .bl-ic.second {
  top: auto;
  left: auto;
  right: 3px;
  bottom: 3px;
}
.bl-recipes {
  width: auto;
  margin: 18px auto 24px;
  border-collapse: separate;
  border-spacing: 4px;
}
.bl-recipes caption {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}
.bl-recipes th,
.bl-recipes td {
  padding: 4px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  text-align: center;
}
.bl-recipes thead td {
  background: none;
}
.bl-items {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
.bl-items li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 2px 12px;
  align-items: center;
  margin: 0;
  padding: 12px;
  border-radius: 14px;
  background: var(--surface-2, rgba(255, 255, 255, 0.06));
}
.bl-items li > .bl-item {
  grid-row: span 3;
  align-self: start;
}
.bl-components li > .bl-item {
  grid-row: span 2;
}
.bl-items li > small,
.bl-items li > span:not(.bl-item) {
  font-size: 0.85rem;
  line-height: 1.35;
}
.bl-items li > small {
  color: var(--muted);
}
.bl-odds {
  width: 100%;
  margin: 18px 0 24px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.bl-odds caption {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: left;
}
.bl-odds th,
.bl-odds td {
  padding: 7px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}
.bl-odds thead th {
  font-size: 0.85rem;
  line-height: 1.2;
}
.bl-odds thead th small {
  display: block;
  font-weight: 400;
  color: var(--muted);
}
.bl-odds thead th.cost-1 { color: #c9d4e8; }
.bl-odds thead th.cost-2 { color: #7fdc8f; }
.bl-odds thead th.cost-3 { color: #7fb0ff; }
.bl-odds thead th.cost-4 { color: #c9a0ff; }
.bl-odds thead th.cost-5 { color: #ffc35a; }
.bl-odds td.zero {
  color: rgba(255, 255, 255, 0.25);
}
.bl-odds td.cost-2 { background: rgba(63, 174, 85, 0.1); }
.bl-odds td.cost-3 { background: rgba(59, 127, 240, 0.12); }
.bl-odds td.cost-4 { background: rgba(154, 92, 240, 0.14); }
.bl-odds td.cost-5 { background: rgba(240, 160, 32, 0.16); }
.bl-aug-h {
  margin-top: 22px;
}
.bl-augs {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
.bl-augs li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 2px 12px;
  align-items: center;
  margin: 0;
  padding: 12px;
  border-radius: 14px;
  background: var(--surface-2, rgba(255, 255, 255, 0.06));
}
.bl-augs .bl-hex {
  grid-row: span 2;
  width: 40px;
  height: 46px;
}
.bl-augs .bl-hex-in {
  width: 34px;
  height: 39px;
}
.bl-augs .bl-hex .bl-ic {
  width: 22px;
  height: 22px;
}
.bl-augs li > span:not(.bl-hex) {
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--muted);
}
/* Tableaux du texte des pages de Blasonia : défilement horizontal en dernier recours (langues longues, petits écrans). */
.theme-blasonia .post-body table:not([class]) {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}
@media (max-width: 400px) {
  .bl-odds th,
  .bl-odds td {
    padding: 6px 2px;
    font-size: 0.82rem;
  }
  .bl-odds thead th small {
    font-size: 0.7rem;
    overflow-wrap: anywhere;
    -webkit-hyphens: auto;
    hyphens: auto;
  }
  .bl-recipes {
    border-spacing: 2px;
  }
  .bl-recipes th,
  .bl-recipes td {
    padding: 2px;
  }
  .bl-recipes .bl-item {
    width: 36px;
    height: 36px;
  }
}
