/* -----------------------------------------
   LEVEL 0 — GLOBAL SCREENS
----------------------------------------- */

#screen1L0,
#screen2L0,
#screen3L0 {
  padding: 24px;
  text-align: center;
}

/* -----------------------------------------
   SPLIT LAYOUT (HIRAGANA / KATAKANA)
----------------------------------------- */

.level0-split {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 30px;
}

.level0-side {
  width: 48%;
  background: #f7f7f7;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.level0-side h3 {
  margin-bottom: 18px;
  font-size: 1.55rem;
}

/* -----------------------------------------
   DRAG TILES — BIGGER + ANIMATED
----------------------------------------- */

.kana-tiles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 24px;
}

.kanaTile {
  width: 70px;      /* original size restored */
  height: 70px;
  background: white;
  border: 2px solid #ccc;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.4rem;
  cursor: grab;
  transition: background 0.2s, border-color 0.2s, transform 0.15s ease;
}

/* Slightly shrink compounds so they fit */
/* Make kana compounds horizontal */
/* Make kana compounds fit inside the tile */
.kanaTile .kana {
  line-height: 1;
  white-space: nowrap;
  font-size: 1.8rem;   /* compounds now fit perfectly */
}






.kanaTile:hover {
  background: #e8e8e8;
  border-color: #888;
  transform: scale(1.08);
}

.kanaTile:active {
  cursor: grabbing;
  transform: scale(0.95);
}

/* -----------------------------------------
   DROP ZONES — BIGGER + CLEANER
----------------------------------------- */

.kana-drop-zone {
  width: 100%;
  height: 100px;
  border: 3px dashed #bbb;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.25rem;
  color: #666;
  transition: border-color 0.2s, background 0.2s, transform 0.15s ease;
}

.kana-drop-zone.dragover {
  border-color: #4a90e2;
  background: #eef6ff;
  transform: scale(1.02);
}

.kana-drop-zone .kanaTile {
  transform: scale(2.6);
  font-size: 5.8rem;
  transition: transform 0.2s ease, font-size 0.2s ease;
}

/* -----------------------------------------
   SUMMARY SCREEN — SLIGHTLY BIGGER TEXT
----------------------------------------- */

#screen3L0 .summary-line {
  margin: 14px 0;
  font-size: 1.3rem;
}

#L0summaryCounter {
  margin: 18px 0;
  padding: 10px 0;
  min-height: 26px;
  font-size: 1.3rem;
  font-weight: 500;
  color: #333;
}

/* -----------------------------------------
   CHOICE ROWS (SCREEN 1) — BIGGER
----------------------------------------- */

.L0choiceRow {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 24px;
}

.L0choiceBox {
  font-size: 54px;
  padding: 24px 44px;
  border: 2px solid #ccc;
  border-radius: 14px;
  background: #fafafa;
  text-align: center;
  transition: transform 0.15s ease;
}

.L0choiceBox:hover {
  transform: scale(1.05);
}

.L0meaningBox {
  margin-top: 32px;
  font-size: 26px;
  text-align: center;
}

/* -----------------------------------------
   REPLAY BUTTON (SCREEN 2)
----------------------------------------- */

#L0replayBtn {
  position: relative;
  display: inline-block;
  padding: 14px 28px;
  font-size: 1.3rem;
  margin: 40px auto 20px;
  border-radius: 10px;
  background: #4a90e2;
  color: white;
  border: none;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s, transform 0.15s ease;
}

#L0replayBtn:hover {
  background: #3578c4;
  transform: scale(1.05);
}

/* Darker section headers ONLY on Screen 2 */
#screen2L0 .level0-side h3 {
  color: #222;
  font-weight: 600;
}

/* -----------------------------------------
   CURSOR REVEAL — SHOW KANA WHEN HOVERED
----------------------------------------- */

.kana {
  opacity: 0;
  transition: opacity 0.15s ease;
}

.showKana .kana {
  opacity: 1;
}

/* -----------------------------------------
   LEVEL 0 — RESET BUTTON (MOVE UNDER SCORE)
----------------------------------------- */

#L0resetBtn {
  display: block;
  margin: 12px auto 0;      /* center under score */
  width: fit-content;
  padding: 10px 22px;
  font-size: 1.1rem;
  background: #e74c3c;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease;
}

#L0resetBtn:hover {
  background: #c0392b;
}
