* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-focus-ring-color: transparent !important;
  outline: none !important;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

button, .letter-card {
  -webkit-tap-highlight-color: transparent !important;
  outline: none !important;
}

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;
}

.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;
}

h1 {
  font-size: 18px;
  text-align: center;
  color: #1e293b;
  padding:0;
  margin:0;
  transform:skewX(-15deg)
}

.score {
  font-size: 14px;
  font-weight: 600;
  color: white;
  text-align: left;
}

.nav-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.nav-buttons button {
  flex: 1;
  padding: 0px 5px;
  font-size: 18px;
  border: 2px solid hsl(150, 50%, 25%);
  border-radius: 10px;
  background: hsl(150, 60%, 40%) ;
  color: white;
  transition: transform 0.2s;
}

.nav-buttons button:active {
  transform: scale(0.95);
}

.letter-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
}

.letter-card {
  margin-top:5px;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border:3px solid hsl(150, 60%, 30%);
  text-align: center;
  line-height: 1.2;
  font-weight: bold;
  color: #1e293b;
  background:hsl(70, 99%, 95%);
  border-radius: 16px;
  transition: background 0.15s ease;
  overflow:hidden;
}

/* 👇 FIXED: When CORRECT, ALL TEXT INSIDE TURNS WHITE */
.letter-card.correct {
  background: hsl(150,50%, 50%);
}
.letter-card.correct * {
  color: white !important;
}

/* 👇 FIXED: When WRONG, ALL TEXT INSIDE TURNS WHITE */
.letter-card.wrong {
  background: hsl(0, 50%, 60%);
}
.letter-card.wrong * {
  color: white !important;
}

.word-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.word-en {
  font-family: verdana;
  font-weight: bold;
  color: hsl(150, 50%, 5%);
  transform: scaleY(1.1);
  text-align: center;
  line-height: 1.4;
  padding: 0 6px;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

.word-cn {
  font-size: 18px;
  font-weight: bold;
  color: #1e293b; /* DEFAULT COLOR (normal state) */
  text-align: center;
  padding: 5px 0;
  line-height: 1.4;
  width: 100%;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  flex-shrink: 0;
  min-height: 22px;
}

.word-cn.show {
  opacity: 1;
}

.custom-dropdown {
  position: relative;
  width: 100%;
  max-width: 100px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
}

.dropdown-trigger {
  width: 100%;
  padding: 5px 5px;
  font-size: 18px;
  border: 2px solid hsl(150, 50%, 15%);
  border-radius: 10px;
  background: hsl(150, 60%, 40%) !important;
  color: white;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.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: 5px 0px;
  text-align: center;
  color: white;
  font-size: 18px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.dropdown-item:hover {
  background: hsl(150, 50%, 45%);
}

.dropdown-item:active {
  background: hsl(150, 50%, 60%);
}