/* ============================================
   DRAG RACE NO LIMIT - CSS Simple
   Rouge & Blanc
   Version 2.5.0
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Russo+One&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --red: #e63946;
  --red-dark: #c1121f;
  --red-glow: rgba(230, 57, 70, 0.4);
  --white: #ffffff;
  --black: #0a0a0f;
  --black-light: #12121a;
  --gray-dark: #1a1a24;
  --gray: #2a2a3a;
  --gray-light: #8888aa;
  --green: #2ecc71;
  
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-title: 'Russo One', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }

body {
  font-family: var(--font-main);
  background: linear-gradient(180deg, var(--black) 0%, var(--black-light) 100%);
  color: var(--white);
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* === CONTAINER === */
.game-container,
.page-container {
  min-height: 100vh;
  min-height: 100dvh;
  background: linear-gradient(180deg, var(--black) 0%, var(--black-light) 100%);
  padding: 20px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
  max-width: 500px;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

@media (min-width: 500px) {
  body {
    background: var(--black-light);
  }
}

.game-container {
  display: flex;
  flex-direction: column;
}

/* === LOGO === */
.game-logo {
  text-align: center;
  padding: 30px 0;
}

.game-logo__title {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 8px;
}

.game-logo__title span {
  color: var(--red);
}

.game-logo__subtitle {
  font-size: 0.9rem;
  color: var(--gray-light);
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* === INFO BAR === */
.game-info-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--gray-dark);
  border: 1px solid var(--gray);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 15px auto;
  max-width: 400px;
  width: 100%;
}

.game-info-bar__vehicle {
  font-size: 0.85rem;
  color: var(--gray-light);
}

.game-info-bar__vehicle--has-vehicle .game-info-bar__text {
  color: var(--white);
}

.game-info-bar__credits {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green);
}

/* === MENU === */
.main-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
  margin: 0 auto;
  width: 100%;
}

.main-menu__btn {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px 20px;
  background: var(--gray-dark);
  border: 1px solid var(--gray);
  border-radius: 10px;
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.2s;
}

.main-menu__btn svg {
  width: 24px;
  height: 24px;
  stroke: var(--red);
  stroke-width: 2;
  flex-shrink: 0;
}

.main-menu__btn:active {
  background: var(--gray);
  transform: scale(0.98);
}

/* Bouton COURSE */
.main-menu__btn--primary {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.main-menu__btn--primary svg {
  stroke: var(--white);
}

.main-menu__btn--primary:active {
  background: var(--red-dark);
}

/* Bouton Quitter */
.main-menu__btn--support {
  background: transparent;
  border: 1px solid #e63946;
  color: #e63946;
  margin-top: 10px;
}

.main-menu__btn--support svg {
  stroke: #e63946;
  fill: #e63946;
}

.main-menu__btn--support:active {
  background: rgba(230, 57, 70, 0.2);
}

.main-menu__btn--quit {
  background: transparent;
  border: 1px solid var(--gray);
  color: var(--gray-light);
  margin-top: 10px;
}

.main-menu__btn--quit svg {
  stroke: var(--gray-light);
}

/* === VERSION === */
.game-version {
  text-align: center;
  color: var(--gray-light);
  font-size: 0.75rem;
  margin-top: 30px;
}

/* === PAGE HEADER === */
.page-header {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid var(--gray);
  margin-bottom: 20px;
}

.page-header__back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--gray-dark);
  border: 1px solid var(--gray);
  border-radius: 8px;
}

.page-header__back svg {
  width: 20px;
  height: 20px;
  stroke: var(--white);
}

.page-header__back:active {
  background: var(--red);
}

.page-header__title {
  font-family: var(--font-title);
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.page-content {
  flex: 1;
}

/* === DESKTOP OVERLAY === */
.desktop-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--black);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 10000;
  padding: 20px;
}

.desktop-overlay__icon {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
}

.desktop-overlay__icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--red);
}

.desktop-overlay h1 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.desktop-overlay p {
  color: var(--gray-light);
}

/* === BOUTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 8px;
  border: none;
  transition: all 0.2s;
}

.btn--primary {
  background: var(--red);
  color: var(--white);
}

.btn--primary:active {
  background: var(--red-dark);
}

.btn--secondary {
  background: var(--gray-dark);
  border: 1px solid var(--gray);
  color: var(--white);
}

.btn--danger {
  background: transparent;
  border: 1px solid var(--red);
  color: var(--red);
}

.btn--block {
  width: 100%;
}

/* === OPTIONS === */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
  margin: 0 auto;
}

.options-btn {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px 20px;
  background: var(--gray-dark);
  border: 1px solid var(--gray);
  border-radius: 10px;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 500;
  width: 100%;
}

.options-btn svg {
  width: 22px;
  height: 22px;
  stroke: var(--red);
}

.options-btn:active {
  background: var(--gray);
}

.options-btn--danger {
  color: var(--red);
}

.options-btn--danger svg {
  stroke: var(--red);
}

/* === COMING SOON === */
.coming-soon {
  text-align: center;
  padding: 60px 20px;
}

.coming-soon svg {
  width: 60px;
  height: 60px;
  stroke: var(--gray-light);
  margin-bottom: 20px;
}

.coming-soon h2 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.coming-soon p {
  color: var(--gray-light);
}

/* === TRAFFIC LIGHT === */
.traffic-light {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #222;
  padding: 15px;
  border-radius: 12px;
  border: 3px solid #333;
}

.traffic-light__bulb {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #1a1a1a;
}

.traffic-light__bulb--red.active {
  background: #e63946;
  box-shadow: 0 0 20px #e63946;
}

.traffic-light__bulb--yellow.active {
  background: #f4a261;
  box-shadow: 0 0 20px #f4a261;
}

.traffic-light__bulb--green.active {
  background: #2ecc71;
  box-shadow: 0 0 20px #2ecc71;
}

/* === UTILITIES === */
.text-center { text-align: center; }
.text-red { color: var(--red); }
.text-green { color: var(--green); }
.text-muted { color: var(--gray-light); }
.mt-md { margin-top: 15px; }
.mt-lg { margin-top: 25px; }
.mb-md { margin-bottom: 15px; }
.mb-lg { margin-bottom: 25px; }

/* === RESPONSIVE === */
@media (max-width: 360px) {
  .game-logo__title { font-size: 2rem; }
  .main-menu__btn { padding: 14px 16px; font-size: 0.9rem; }
}

/* === SCROLL HINT === */
.scroll-hint {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  pointer-events: none;
  z-index: 100;
  transition: opacity 0.3s;
}

.scroll-hint svg {
  width: 28px;
  height: 28px;
  stroke: #e63946;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}
