/* ═══ Crossy Road — design system jeux.html ═══ */
.jeu-v-wrap { max-width: 480px; margin: 0 auto; }
#game-content { overflow: hidden; }

/* ── Board ── */
.cr-board {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 11 / 13;
  max-height: min(64vh, 530px);
  min-height: 280px;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid rgba(240,192,64,.38);
  background:
    radial-gradient(circle at top, rgba(240,192,64,.07), transparent 34%),
    linear-gradient(180deg, #04080f 0%, #020510 100%);
  box-shadow: 0 0 32px rgba(240,192,64,.1), inset 0 0 70px rgba(0,0,0,.4);
  display: grid;
  place-items: center;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

#wrapper {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 0 0 2px rgba(240,192,64,.55), 0 12px 40px rgba(0,0,0,.4);
  touch-action: none;
}

canvas {
  display: block;
  touch-action: none;
}

/* ── Overlays écrans démarrage / fin ── */
.jvcr-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  background: var(--cd, #fff);
  overflow: hidden;
}
.jvcr-overlay.hidden { display: none; }

.jvcr-overlay > .snk-screen {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.jvcr-overlay .snk-screen {
  justify-content: center;
  align-items: center;
  padding-top: 14px;
  padding-bottom: 14px;
  width: 100%;
  min-height: 100%;
  box-sizing: border-box;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .jeu-v-wrap { max-width: none; }
  .cr-board { min-height: 240px; border-radius: 14px; }
  .cr-btn { width: 46px; height: 46px; font-size: 1.1rem; border-radius: 10px; }
}
