/* Portail de l'écosystème : choisir entre Khonamis Game et Dice Game (maquette du 2026-10-27). */
:root {
  --fond: #060b1a;
  --or: #ffc20e;
  --texte: #ffffff;
  --doux: #a1aabb;
  --violet: #7c5cff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--fond);
  color: var(--texte);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Stade en haut, lumières bleues, fondu vers le fond. */
.stade {
  position: fixed;
  inset: 0 0 auto 0;
  height: 70vh;
  background:
    linear-gradient(180deg, rgba(6, 11, 26, 0) 0%, rgba(6, 11, 26, 0.35) 50%, var(--fond) 100%),
    radial-gradient(120% 70% at 50% 0%, rgba(40, 110, 255, 0.45), transparent 70%),
    url("assets/stade.webp") center top / cover no-repeat;
  pointer-events: none;
}

.page {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: calc(28px + env(safe-area-inset-top)) 16px calc(28px + env(safe-area-inset-bottom));
}

/* « — CHOISIS TON JEU — » */
.titre {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 4px 0;
}
.titre h1 {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: clamp(20px, 5.6vw, 28px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}
.trait {
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--or));
}
.trait:last-child {
  background: linear-gradient(90deg, var(--or), transparent);
}

/* Cartes des jeux : toute la carte est cliquable. */
.jeux {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.carte {
  display: block;
  border-radius: 18px;
  transition: transform 0.15s ease, filter 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.carte img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}
a.carte:hover {
  filter: brightness(1.08);
}
a.carte:active {
  transform: scale(0.985);
}
a.carte:focus-visible {
  outline: 3px solid var(--or);
  outline-offset: 3px;
}

/* « Prochainement » : même gabarit que les cartes, en violet, non cliquable. */
.bientot {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 0.9fr;
  align-items: center;
  gap: 14px;
  min-height: 150px;
  padding: 18px 18px 18px 22px;
  overflow: hidden;
  border: 2px solid rgba(124, 92, 255, 0.75);
  background:
    radial-gradient(90% 120% at 85% 60%, rgba(124, 92, 255, 0.28), transparent 60%),
    linear-gradient(135deg, #12133a 0%, #0c0f2a 60%, #0a0d22 100%);
  box-shadow: 0 0 24px rgba(124, 92, 255, 0.35), inset 0 0 30px rgba(124, 92, 255, 0.12);
  cursor: default;
}
.bientot-texte {
  text-align: center;
}
.bientot-titre {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: clamp(18px, 5vw, 24px);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.bientot-sous {
  margin: 8px 0 0;
  font-size: clamp(12.5px, 3.4vw, 15px);
  line-height: 1.35;
  color: var(--doux);
}
.vague {
  display: block;
  width: 64%;
  margin: 8px auto 0;
  fill: none;
  stroke: var(--or);
  stroke-width: 2.5;
  stroke-linecap: round;
}
.separateur {
  width: 1px;
  align-self: stretch;
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.25), transparent);
}
.bientot-visuel {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 110px;
}
.manette {
  width: 100%;
  max-width: 150px;
  fill: rgba(124, 92, 255, 0.45);
  filter: drop-shadow(0 0 14px rgba(124, 92, 255, 0.55));
}
.manette .detail {
  fill: none;
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 1.6;
  stroke-linecap: round;
}
.pastille {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(40, 46, 80, 0.85);
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cfd5e4;
}

/* Atouts : trois titres, icônes or. */
.atouts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
.atouts li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 6px 4px;
  text-align: center;
}
.atouts li + li {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}
.atouts svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--or);
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.atouts svg .plein {
  fill: var(--or);
  stroke: none;
}
.atouts span {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: clamp(11.5px, 3.3vw, 14px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
  .carte {
    transition: none;
  }
}
