* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent !important;
  outline: none !important;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

html, body {
  width: 100%;
  height: 100%;
  background: hsl(50, 85%, 80%);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

#fullscreenBtn {
  width: 30px;
  height: 40px;
  color: white;
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

.game-container {
  width: 100%;
  height: 100%;
  max-width: 400px;
  max-height: 600px;
  background: hsl(160, 50%, 75%);
  border-radius: 10px;
  border: 3px solid hsl(50, 85%, 50%);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

h1 {
  font-size: 18px;
  text-align: center;
  color: #1e293b;
  transform: skewX(-15deg);
}

.score {
  font-size: 14px;
  font-weight: 600;
  color: white;
  text-align: left;
}

/* 单词卡片 */
.word-card {
  background: hsl(70, 99%, 95%);
  border-radius: 16px;
  border: 3px solid hsl(150, 60%, 30%);
  padding: 20px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* New inline row for IPA + sound button */
.ipa-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.word-en {
  font-size: 28px;
  font-weight: bold;
  color: hsl(150, 50%, 5%);
  transform: scaleY(1.1);
}

.stress-dots {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}
.stress-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: red;
}
.stress-dot.unstressed {
  width: 10px;
  height: 10px;
  background: black;
}

.ipa {
  font-size: 16px;
  color: #444;
}

.play-audio-btn {
  padding: 4px 10px;
  font-size: 14px;
  font-weight: bold;
  background: hsl(150, 60%, 40%);
  color: white;
  border: 2px solid hsl(150, 50%, 25%);
  border-radius: 10px;
  cursor: pointer;
  margin-top: 0;
}

/* 选项网格 */
.letter-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
}

.letter-card {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid hsl(150, 60%, 30%);
  color: #1e293b;
  background: hsl(70, 99%, 95%);
  border-radius: 16px;
  transition: all 0.15s ease;
  cursor: pointer;
  padding: 10px;
  text-align: center;
  font-size: 20px;
}

.letter-card.correct {
  background: hsl(150, 50%, 50%) !important;
  color: white !important;
}

.letter-card.wrong {
  background: hsl(0, 50%, 60%) !important;
  color: white !important;
}

/* 导航栏 */
.nav-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 0 auto;
}

.custom-dropdown {
  position: relative;
  max-width: 100px;
}

.dropdown-trigger {
  height:40px;
  width:80px;
  display:flex;
  text-align: center;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border: 2px solid hsl(150, 50%, 15%);
  border-radius: 10px;
  background: hsl(150, 60%, 40%);
  color: white;
  cursor: pointer;
}

.dropdown-menu {
  position: absolute;
  top: 110%;
  left: 0;
  right: 0;
  background: hsl(150, 50%, 40%);
  border: 2.5px solid hsl(150, 50%, 15%);
  border-radius: 12px;
  overflow: hidden;
  display: none;
  z-index: 999;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-item {
  padding: 6px 0;
  text-align: center;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

.dropdown-item:hover {
  background: hsl(150, 50%, 50%);
}

.next-btn {
  height:40px;
  width:50px;
  font-size: 22px;
  border: 2px solid hsl(150, 50%, 15%);
  border-radius: 10px;
  background: hsl(150, 60%, 40%);
  color: white;
  cursor: pointer;
  transition: transform 0.2s;
}

.next-btn:active {
  transform: scale(0.95);
}
/* 模式切换按钮 */
.mode-btn {
  height: 40px;
  width: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border: 2px solid hsl(150, 50%, 15%);
  border-radius: 10px;
  background: hsl(150, 60%, 40%);
  color: white;
  cursor: pointer;
  transition: transform 0.2s;
}
.mode-btn:active {
  transform: scale(0.95);
}
/* Favorite Star Button */
.favorite-btn {
  height: 40px;
  width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border: 2px solid hsl(150, 50%, 15%);
  border-radius: 10px;
  background: hsl(150, 60%, 40%);
  color: white;
  cursor: pointer;
  transition: all 0.2s;
}
.favorite-btn.active {
  background: #ffcc00;
  color: #886a00;
}
.favorite-btn:active {
  transform: scale(0.95);
}