/* ASCEND — Page Jeu (lots + effets) */
.game {
  --g-gold: #c9a962;
  --g-gold-soft: rgba(201, 169, 98, 0.35);
  --g-ink: #0a0a0a;
  --g-panel: #121212;
  --g-muted: #9a9a9a;
  --g-font: "Outfit", system-ui, sans-serif;
  --g-display: "Bebas Neue", "Outfit", sans-serif;
  position: relative;
  font-family: var(--g-font);
  padding: 0 0 2rem;
  overflow: visible;
}

.game .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.game__atmosphere {
  position: absolute;
  inset: -8% -5% auto;
  height: 55%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 75% 50% at 50% 0%, rgba(201, 169, 98, 0.1), transparent 72%),
    linear-gradient(180deg, #12100c 0%, transparent 100%);
}

.game__confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 40;
  display: none;
}
.game--celebrate .game__confetti { display: block; }

.game__intro,
.game-visual,
.game-prizes,
.game-play,
.game-steps {
  position: relative;
  z-index: 1;
}

/* —— Visuels transmis (pleine largeur) —— */
.game-visual {
  margin: 1.5rem 0 0;
  padding: 0;
}

.game-visual--hero {
  margin-top: 1.75rem;
  position: relative;
}

.game-visual__frame {
  position: relative;
  border: 1px solid rgba(201, 169, 98, 0.35);
  background: #0a0a0a;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(201, 169, 98, 0.08),
    0 20px 50px rgba(0, 0, 0, 0.45);
}

.game-visual--hero .game-visual__frame {
  border-color: rgba(201, 169, 98, 0.45);
  box-shadow:
    0 0 0 1px rgba(201, 169, 98, 0.1),
    0 0 28px rgba(201, 169, 98, 0.12),
    0 20px 50px rgba(0, 0, 0, 0.45);
}

.game-visual__frame img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
}

.game-visual__frame:hover img {
  transform: scale(1.02);
  filter: saturate(1.08) contrast(1.04);
}

.game-visual figcaption {
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem 0.15rem 0;
  text-align: left;
}

.game-visual__label {
  color: var(--g-gold);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}

.game-visual figcaption strong {
  font-family: var(--g-display);
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  color: #fff;
  font-weight: 400;
}

.game-visual figcaption span:last-child {
  color: var(--g-muted);
  font-size: 0.85rem;
}

.game-play__title {
  margin: 0 0 0.35rem;
  font-family: var(--g-display);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  letter-spacing: 0.06em;
  color: #fff;
}

.game-play__caption--top {
  margin-top: 0 !important;
  margin-bottom: 1.25rem;
}

.game__intro {
  text-align: center;
  padding: 1.25rem 0 0.5rem;
}

.game__eyebrow {
  margin: 0 0 0.35rem;
  color: var(--g-gold);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
}

.game__brand {
  margin: 0;
  font-family: var(--g-display);
  font-size: clamp(3.4rem, 12vw, 5.5rem);
  letter-spacing: 0.08em;
  line-height: 0.95;
  color: #fff;
  text-shadow: 0 0 40px rgba(201, 169, 98, 0.35);
}

.game__tagline {
  margin: 0.55rem 0 0;
  color: var(--g-muted);
  font-size: 1rem;
  letter-spacing: 0.02em;
}

/* —— Screen 5 : Lots —— */
.game-prizes {
  margin-top: 1.75rem;
}

.game-prizes__head {
  text-align: center;
  margin-bottom: 1.35rem;
}

.game-prizes__badge {
  display: inline-block;
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--g-gold-soft);
  color: var(--g-gold);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
  animation: game-badge-pulse 2.8s ease-in-out infinite;
}

@keyframes game-badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 169, 98, 0); }
  50% { box-shadow: 0 0 18px 0 rgba(201, 169, 98, 0.35); }
}

.game-prizes__title {
  margin: 0;
  font-family: var(--g-display);
  font-size: clamp(2.2rem, 7vw, 3.4rem);
  letter-spacing: 0.06em;
  color: #fff;
}

.game-prizes__lead {
  margin: 0.45rem auto 0;
  max-width: 28rem;
  color: var(--g-muted);
  font-size: 0.95rem;
}

.game-prizes__stage {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .game-prizes__stage {
    grid-template-columns: 1.15fr 0.925fr 0.925fr;
    align-items: stretch;
  }
  .prize--1 { transform: translateY(-8px); }
}

.prize {
  position: relative;
  background:
    linear-gradient(165deg, rgba(201, 169, 98, 0.08), transparent 40%),
    var(--g-panel);
  border: 1px solid rgba(201, 169, 98, 0.22);
  padding: 1.1rem 1rem 1.2rem;
  text-align: center;
  transform-style: preserve-3d;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  will-change: transform;
  overflow: hidden;
}

.prize__glow {
  position: absolute;
  inset: -40% -20% auto;
  height: 70%;
  background: radial-gradient(circle, rgba(201, 169, 98, 0.22), transparent 70%);
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.prize:hover,
.prize.is-tilting {
  border-color: rgba(201, 169, 98, 0.55);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(201, 169, 98, 0.15),
    0 0 36px rgba(201, 169, 98, 0.12);
}

.prize:hover .prize__glow,
.prize.is-tilting .prize__glow {
  opacity: 1;
}

.prize--1 {
  border-color: rgba(201, 169, 98, 0.45);
  box-shadow: 0 0 0 1px rgba(201, 169, 98, 0.08), 0 12px 40px rgba(0, 0, 0, 0.35);
}

.prize--1 .prize__rank span {
  background: linear-gradient(145deg, #f0d78c, #c9a962 45%, #8a7028);
  color: #1a1408;
  animation: game-rank-glow 2.4s ease-in-out infinite;
}

.prize--2 .prize__rank span {
  background: linear-gradient(145deg, #d8d8d8, #8e8e8e);
  color: #1a1a1a;
}

.prize--3 .prize__rank span {
  background: linear-gradient(145deg, #d4a574, #8b5a2b);
  color: #1a1208;
}

@keyframes game-rank-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 169, 98, 0.2); }
  50% { box-shadow: 0 0 22px 4px rgba(201, 169, 98, 0.55); }
}

.prize__rank {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.prize__rank span {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.prize__rank em {
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--g-gold);
}

.prize__visual {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 280px;
  margin: 0 auto 0.9rem;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 40%, rgba(201, 169, 98, 0.12), transparent 60%),
    #0d0d0d;
}

.prize__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
  filter: saturate(1.05) contrast(1.05);
}

.prize__visual--product {
  background: #f4f4f4;
}

.prize__visual--product img {
  object-fit: contain;
  padding: 0.6rem;
  filter: none;
}

.prize:hover .prize__visual img {
  transform: scale(1.06);
  filter: saturate(1.15) contrast(1.08) brightness(1.05);
}

.prize__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(255, 255, 255, 0.08) 48%,
    transparent 62%
  );
  transform: translateX(-120%);
  pointer-events: none;
}

.prize:hover .prize__visual::after {
  animation: game-shimmer 1.1s ease;
}

@keyframes game-shimmer {
  to { transform: translateX(120%); }
}

.prize__name {
  margin: 0;
  font-family: var(--g-display);
  font-size: 1.55rem;
  letter-spacing: 0.05em;
  color: #fff;
}

.prize__meta {
  margin: 0.3rem 0 0;
  color: var(--g-muted);
  font-size: 0.8rem;
}

/* —— Play zone —— */
.game-play {
  margin-top: 2.75rem;
  text-align: center;
  padding: 1.5rem 0 0.5rem;
}

.game-play__hint {
  color: var(--g-muted);
  margin: 0 0 1.25rem;
}

/* —— Bouton push arcade —— */
.push-wrap {
  position: relative;
  width: min(200px, 58vw);
  height: min(200px, 58vw);
  margin: 0.5rem auto 0;
  display: grid;
  place-items: center;
}

.push-wrap__pulse {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 2px solid rgba(201, 169, 98, 0.45);
  animation: push-pulse-ring 2.2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  pointer-events: none;
}

.push-wrap__pulse--delay {
  animation-delay: 1.1s;
  border-color: rgba(180, 50, 50, 0.35);
}

.push-wrap.is-done .push-wrap__pulse {
  animation: none;
  opacity: 0.2;
  border-color: rgba(111, 159, 122, 0.4);
}

@keyframes push-pulse-ring {
  0% { transform: scale(0.85); opacity: 0.75; }
  100% { transform: scale(1.45); opacity: 0; }
}

.push-btn {
  position: relative;
  z-index: 1;
  width: min(168px, 48vw);
  height: min(168px, 48vw);
  border: 0;
  border-radius: 50%;
  padding: 0;
  text-decoration: none !important;
  cursor: pointer;
  display: grid;
  place-items: center;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
  transform: translateY(0);
  transition: transform 0.12s ease;
  font-family: var(--g-display);
}

.push-btn__rim {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    linear-gradient(160deg, #3a3220 0%, #1a1510 40%, #0a0a0a 100%);
  box-shadow:
    0 10px 0 #0a0805,
    0 14px 22px rgba(0, 0, 0, 0.55),
    inset 0 2px 0 rgba(255, 230, 160, 0.15);
}

.push-btn__face {
  position: relative;
  z-index: 1;
  width: 78%;
  height: 78%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.15rem;
  background:
    radial-gradient(circle at 35% 28%, #f0d78c 0%, #c9a962 38%, #8a6028 72%, #5a3a12 100%);
  box-shadow:
    inset 0 6px 10px rgba(255, 245, 200, 0.45),
    inset 0 -10px 16px rgba(60, 30, 0, 0.45),
    0 0 28px rgba(201, 169, 98, 0.35),
    0 0 48px rgba(180, 40, 40, 0.2);
  color: #1a1208;
  transform: translateY(-5px);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.2s ease;
  animation: push-face-breathe 2.4s ease-in-out infinite;
}

@keyframes push-face-breathe {
  0%, 100% {
    box-shadow:
      inset 0 6px 10px rgba(255, 245, 200, 0.45),
      inset 0 -10px 16px rgba(60, 30, 0, 0.45),
      0 0 24px rgba(201, 169, 98, 0.3),
      0 0 40px rgba(180, 40, 40, 0.16);
  }
  50% {
    box-shadow:
      inset 0 6px 10px rgba(255, 245, 200, 0.55),
      inset 0 -10px 16px rgba(60, 30, 0, 0.4),
      0 0 40px rgba(201, 169, 98, 0.55),
      0 0 70px rgba(180, 40, 40, 0.35);
  }
}

.push-btn__logo {
  width: 40px;
  height: auto;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.25)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

.push-btn__label {
  font-size: clamp(1.05rem, 3.8vw, 1.35rem);
  letter-spacing: 0.12em;
  line-height: 1;
  font-weight: 400;
  text-shadow: 0 1px 0 rgba(255, 240, 180, 0.35);
}

.push-btn__hint {
  font-family: var(--g-font);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
  font-weight: 600;
}

.push-btn:hover .push-btn__face {
  filter: brightness(1.06);
}

.push-btn:active {
  transform: translateY(4px);
}

.push-btn:active .push-btn__face {
  transform: translateY(0);
  animation: none;
  box-shadow:
    inset 0 4px 14px rgba(40, 20, 0, 0.55),
    inset 0 -2px 4px rgba(255, 230, 160, 0.15),
    0 0 16px rgba(201, 169, 98, 0.25);
}

.push-btn:focus-visible {
  outline: 2px solid var(--g-gold);
  outline-offset: 6px;
}

/* État validé */
.push-wrap.is-done .push-btn__face {
  animation: none;
  background:
    radial-gradient(circle at 35% 28%, #a8d4b0 0%, #6f9f7a 45%, #3d6a48 100%);
  color: #0d1a10;
  box-shadow:
    inset 0 6px 10px rgba(220, 255, 230, 0.35),
    inset 0 -8px 14px rgba(20, 40, 25, 0.4),
    0 0 24px rgba(111, 159, 122, 0.35);
}

.push-btn:disabled {
  cursor: not-allowed;
}

.push-btn:disabled:active {
  transform: none;
}

.push-btn:disabled:active .push-btn__face {
  transform: translateY(-5px);
}

.game-toast {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 auto 1.25rem;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(111, 159, 122, 0.45);
  color: #8fbf9a;
  background: rgba(111, 159, 122, 0.08);
  font-size: 0.9rem;
}

.game-toast__icon {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: #6f9f7a;
  color: #0b0b0b;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.8rem;
  animation: game-pop 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes game-pop {
  0% { transform: scale(0); }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.ascend-orb__ring {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  border: 1px solid rgba(201, 169, 98, 0.25);
  animation: game-ring 2.4s ease-out infinite;
  pointer-events: none;
  z-index: 0;
}

.ascend-orb__ring--2 {
  animation-delay: 1.2s;
}

.ascend-orb.is-done .ascend-orb__ring {
  animation: none;
  opacity: 0.2;
  border-color: rgba(111, 159, 122, 0.4);
}

@keyframes game-ring {
  0% { transform: scale(0.92); opacity: 0.55; }
  100% { transform: scale(1.4); opacity: 0; }
}

.game .ascend-btn.push-btn {
  color: inherit;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: inherit;
}

.game-play__caption {
  margin: 1.25rem 0 0;
  color: var(--g-muted);
  font-size: 0.9rem;
}

.game-progress {
  max-width: 420px;
  margin: 1.5rem auto 0;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(201, 169, 98, 0.2);
  background: rgba(18, 18, 18, 0.85);
}

.game-progress__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.65rem;
  gap: 0.75rem;
}

.game-progress__top strong {
  font-family: var(--g-display);
  font-size: 1.7rem;
  letter-spacing: 0.04em;
  color: var(--g-gold);
}

.game-progress__top span {
  color: var(--g-muted);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.game-progress__track {
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.game-progress__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #8a7028, var(--g-gold), #f0d78c);
  box-shadow: 0 0 12px rgba(201, 169, 98, 0.55);
  animation: game-fill 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes game-fill {
  to { width: var(--pct, 0%); }
}

.game-progress__rest,
.game-progress__win {
  margin: 0.7rem 0 0;
  font-size: 0.85rem;
}

.game-progress__rest { color: var(--g-muted); }
.game-progress__win {
  color: #8fbf9a;
  font-weight: 600;
  animation: game-badge-pulse 2s ease-in-out infinite;
}

.game-path {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.35rem auto 0;
  max-width: 420px;
}

.game-path__node {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #555;
  font-size: 0.65rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  background: #0f0f0f;
  transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.game-path__node.is-lit {
  color: #1a1408;
  border-color: var(--g-gold);
  background: linear-gradient(145deg, #f0d78c, #c9a962);
  box-shadow: 0 0 12px rgba(201, 169, 98, 0.45);
  animation: game-node-pop 0.45s ease both;
}

.game-path__node.is-summit.is-lit {
  background: linear-gradient(145deg, #6f9f7a, #3d7a4d);
  border-color: #8fbf9a;
  color: #fff;
  box-shadow: 0 0 16px rgba(111, 159, 122, 0.55);
}

@keyframes game-node-pop {
  from { transform: scale(0.6); opacity: 0.4; }
  to { transform: scale(1); opacity: 1; }
}

.game-path__node.is-lit:nth-child(1) { animation-delay: 0.05s; }
.game-path__node.is-lit:nth-child(2) { animation-delay: 0.1s; }
.game-path__node.is-lit:nth-child(3) { animation-delay: 0.15s; }
.game-path__node.is-lit:nth-child(4) { animation-delay: 0.2s; }
.game-path__node.is-lit:nth-child(5) { animation-delay: 0.25s; }
.game-path__node.is-lit:nth-child(6) { animation-delay: 0.3s; }
.game-path__node.is-lit:nth-child(7) { animation-delay: 0.35s; }
.game-path__node.is-lit:nth-child(8) { animation-delay: 0.4s; }
.game-path__node.is-lit:nth-child(9) { animation-delay: 0.45s; }
.game-path__node.is-lit:nth-child(10) { animation-delay: 0.5s; }

.game-steps {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 720px) {
  .game-steps { grid-template-columns: repeat(4, 1fr); }
}

.game-steps li {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 18, 18, 0.7);
  padding: 0.9rem 0.75rem;
  text-align: center;
  display: grid;
  gap: 0.2rem;
}

.game-steps__ico {
  color: var(--g-gold);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.game-steps strong {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.game-steps span {
  color: var(--g-muted);
  font-size: 0.78rem;
}

@media (prefers-reduced-motion: reduce) {
  .game-prizes__badge,
  .prize--1 .prize__rank span,
  .ascend-orb__ring,
  .push-wrap__pulse,
  .push-btn__face,
  .game-progress__fill,
  .game-path__node.is-lit,
  .game-progress__win {
    animation: none !important;
  }
  .game-progress__fill { width: var(--pct, 0%); }
}
