* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0f172a;
    color: #e5e7eb;
}

.screen {
    display: none;
    min-height: 100dvh;
    padding: 16px;
}

.screen.active {
    display: flex;
    flex-direction: column;
}

.back-btn {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: #1e293b;
    color: white;
    border: none;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kanji {
    font-size: clamp(150px, 20vw, 196px);
    font-weight: 700;
}

.answers {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 colonnes */
  grid-template-rows: 1fr 1fr;    /* 2 lignes */
  gap: 12px;
  height: 50vh;                   /* prend la moitié de l'écran */
  padding: 12px;
}

.answers button {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 100%;
  height: 100%;           /* la case ne change jamais */
  max-height: 100%;       /* sécurité pour mobile */

  font-size: clamp(12px, 8vh, 45px); /* texte responsive mais limité */
  text-align: center;
  line-height: 1;
  overflow: hidden;        /* empêche le texte de forcer la hauteur */

  border-radius: 12px;
  border: none;
  background: #1e293b;
  color: white;
  padding: 0 8px;         /* padding horizontal seulement */
}

#brainrotAnswer {
      font-size: clamp(12px, 8vh, 45px); /* texte responsive mais limité */
}

button {
    padding: 16px;
    font-size: 16px;
    border-radius: 12px;
    border: none;
    background: #1e293b;
    color: white;
}

button:active {
    background: #334155;
}

.menu button {
    margin-bottom: 12px;
}

.correct {
    background: #16a34a !important;
    /* vert */
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.9);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.wrong {
    background: #dc2626 !important;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.9);
}

/* Header optionnel : peut même être supprimé */
.header {
  position: relative; /* ou rien */
}

/* Bouton burger fixé en haut à droite */
.burger-btn {
  position: fixed;     /* hors du flow du document */
  top: 12px;           /* distance du haut */
  right: 12px;         /* distance de la droite */
  font-size: 28px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  z-index: 1100;       /* au-dessus du panel */
}

/* Panel contextuel */
.burger-panel {
  position: fixed;
  top: 0;
  right: 0;                /* toujours aligné à droite */
  width: 200px;
  height: 100vh;
  background: #1e293b;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;

  /* On masque hors écran avec transform */
  transform: translateX(100%);   /* complètement à droite, invisible */
  transition: transform 0.3s ease;
  z-index: 1300;
}

/* Panel ouvert */
.burger-panel.open {
  transform: translateX(0%);      /* glisse à l'écran */
}
