/* Minimal, elegant style for the standalone arcade page */
:root{
  --bg: #0b0b0b;
  --panel: #111213;
  --panel-2: #151618;
  --text: #e8e8ea;
  --muted: #a5a8ad;
  --accent: #5eead4; /* teal-ish accent */
  --border: rgba(255,255,255,0.08);
}

*{ box-sizing: border-box; }

html, body{ height: 100%; }
body{
  margin: 0;
  color: var(--text);
  background: #0a0a0a;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden; /* pas de scroll */
  min-height: 100dvh; /* support dynamic viewport */
  -webkit-user-select: none; user-select: none; /* pas de sélection */
  -webkit-touch-callout: none; /* pas de callout iOS */
  -webkit-tap-highlight-color: rgba(0,0,0,0); /* pas de surlignage */
}

.wrap{
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

.arcade-header{
  padding: 32px 0 12px;
}
.arcade-header h1{
  margin: 0 0 2px 0;
  font-size: 24px;
  letter-spacing: 0.2px;
}
.arcade-header .subtitle{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.arcade-main{
  padding: 10px 0 60px;
}

.game-card{
  position: relative;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 14px 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35), inset 0 0 0 1px rgba(255,255,255,0.02);
}

.stage{
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: #0b0b0b; /* plein écran noir */
}

.hud{
  position: absolute;
  z-index: 2;
  left: 16px;
  right: 16px;
  top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  pointer-events: none;
}

.hearts { display:flex; gap:8px; align-items:center; }
.hearts .heart { position: relative; width:6px; height:6px; background: transparent; image-rendering: pixelated; filter: drop-shadow(0 1px 0 rgba(0,0,0,0.35)); }
/* pixel heart built from box-shadows (each 6px pixel) */
.hearts .heart::after {
  content:"";
  position:absolute;
  width:6px; height:6px; background:#ff6b7a;
  box-shadow:
    6px 0 #ff6b7a, 12px 0 #ff6b7a,
    0 6px #ff6b7a, 6px 6px #ff6b7a, 12px 6px #ff6b7a, 18px 6px #ff6b7a,
    0 12px #ff6b7a, 6px 12px #ff6b7a, 12px 12px #ff6b7a, 18px 12px #ff6b7a,
    6px 18px #ff6b7a, 12px 18px #ff6b7a;
}

/* Emoji hearts styling */
.hearts .heart-emoji { font-size: 16px; line-height: 1; display:inline-block; transform: translateY(1px); }

.title-logo{ width:min(44vw,320px); height:auto; display:block; margin: 0 auto 6px; }

.canvas-wrap{
  position: relative;
  margin-top: 22px;
  margin-bottom: 12px;
}

#game{ position: relative; }

#game{
  display: block;
  width: auto; /* sera dimensionné en JS pour remplir au mieux l'écran */
  height: auto;
  background: #0b0b0c;
  outline: none;
  touch-action: none; /* we'll handle touches */
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

.overlay{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 3; /* au-dessus du HUD et du canvas */
}
.overlay.hidden{ display: none; }

.overlay-card{
  width: min(92vw, 560px);
  background: rgba(14,14,16,0.9);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 18px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.02);
  backdrop-filter: blur(8px);
}
.overlay-card h2{ margin: 0 0 6px; font-size: 22px; }
.overlay-card p{ margin: 6px 0; }
.overlay-card .bonus{ margin-top: 10px; color: var(--accent); font-weight: 600; }
.btn{
  appearance: none;
  border: 1px solid var(--border);
  background: #121314;
  color: var(--text);
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
}
.btn:hover{ filter: brightness(1.08); }

/* Anciennes sections supprimées (header/rules) — conservées vides pour compat */


/* Centered bonus HUD (countdown) */
.bonus-hud{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  pointer-events: none;
}
