* {
  margin:0; padding:0; box-sizing:border-box;
  -webkit-tap-highlight-color: transparent;
}
html,body { height:100%; }
body {
  font-family: Arial, sans-serif;
  background: hsl(50, 85%, 80%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
}
#title {
  font-size: 16px;
  font-weight: bold;
  transform:skewX(-15deg);
  color: hsl(175, 30%, 15%);
  margin: 10px 0;
}
.mobile-wrapper {
  width: 100%;
  max-width: 380px;
  background: white;
  border-radius: 24px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}
.screen {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.hidden { display: none !important; }

.phoneme-box {
  padding-top:10px;
  border-radius: 12px;
  min-height: 100px;
  text-align: center;
}
.phoneme-box h2 {
  font-size: 30px;
  margin-bottom: 8px;
}
.phoneme-box p {
  font-size: 20px;
  line-height: 1.4;
}

.vowel-theme {
  background: #fff9e6;
}

.consonant-theme {
  background: hsl(155, 50%, 75%);
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  align-content: start;
}

.phoneme-btn {
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: bold;
  padding: 12px 4px;
  cursor: pointer;
}
.vowel-btn {
  background: hsl(50, 80%, 80%);
  color: hsl(175, 30%, 15%);
  padding:20px;
}
.consonant-btn {
  background: hsl(155, 50%, 75%);
  color: hsl(155, 50%, 5%);
  padding:15px;
}

.quiz-box {
  height: 100px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.vowel-quiz-theme { background: hsl(45, 90%, 80%); }
.consonant-quiz-theme { background: hsl(155, 50%, 75%); }

#vowel-draggable,
#consonant-draggable {
  font-size: 30px;
  font-weight: bold;
  padding: 8px 16px;
  background: #fff;
  border-radius: 8px;
  user-select: none;
  touch-action: none;
  cursor: grab;
}
#vowel-draggable:active,
#consonant-draggable:active {
  cursor: grabbing;
}

.quiz-box button {
  width: 45px;
  height: 55px;
  font-size: 20px;
  border: none;
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
}

.folder {
  height: 44px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  position: relative;
}
.vowel-folder {
  background: hsl(45, 90%, 80%);
  color: hsl(175, 30%, 5%);
}
.consonant-folder {
  background: hsl(155, 50%, 75%);
  color: hsl(155, 50%,15%);
}
.folder.correct { background: #86efac !important; color: #065f46 !important; }
.folder.wrong { background: #fca5a5 !important; color: #7f1d1d !important; }

.nav {
  display: flex;
  gap: 8px;
  margin-top: auto;
}
.nav-btn {
  flex: 1;
  padding: 12px 0;
  border: none;
  border-radius: 12px;
  background: #eee;
  font-weight: bold;
  cursor: pointer;
}
.nav-btn.active {
  background: #444;
  color: #fff;
}
.folder {
  min-height: 52px;
  font-size: 16px;
}
#vowel-draggable, #consonant-draggable {
  transition: all 0.15s ease;
}