/* ========================================
   PLAY AREA & WORDS
======================================== */
.play-area {
  position: relative;
  height: 400px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("/StarTyper/images/back.png");
  background-size: cover;
  border: 5px solid var(--bg-a);
  border-radius: 14px;
  margin-top: 6px;
  box-shadow: inset 0 -20px 60px rgba(2,6,23,0.25);
}

/* Moving Words */
.moving-word {
  position: absolute;
  left: -20%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  will-change: transform, opacity;
}

.word-bubble {
  font-family: "Poppins", "Georgia", serif;
  font-size: 44px;
  font-weight: 800;
  padding: 12px 20px;
  border-radius: 14px;
  color: var(--accent-blu);
  background: linear-gradient(90deg, #071328, #07203a);
  box-shadow: 0 18px 40px rgba(61,224,255,0.06), 0 6px 12px rgba(0,0,0,0.5);
  border: 1px solid rgba(61,224,255,0.12);
  transform-origin: center;
}

.word-bubble.golden {
  color: #331900;
  background: linear-gradient(90deg, #fff7d6, #ffd166);
  border: 1px solid rgba(255,209,102,0.8);
  box-shadow: 0 16px 44px rgba(255,209,102,0.12), 0 0 18px rgba(255,209,102,0.18);
  transform: scale(1.03);
}

.word-bubble.sentence {
  color: #001a0d;
  background: linear-gradient(90deg, #d1fae5, #4ade80);
  border: 1px solid rgba(74,222,128,0.8);
  box-shadow: 0 16px 44px rgba(74,222,128,0.12), 0 0 18px rgba(74,222,128,0.18);
  transform: scale(1.05);
  font-size: 36px;
  padding: 14px 24px;
}

/* Typed Line Display */
.typed-line {
  font-size: 22px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  color: var(--accent-emerald);
  min-width: 160px;
  text-align: center;
  transition: opacity 350ms ease;
}

.typed-line .match { 
  color: #1aa355; 
  font-weight: 900; 
}

.typed-line .mismatch { 
  color: #ff6b6b; 
  font-weight: 900; 
  text-decoration: underline; 
}

.typed-line .pending { 
  color: #b5c0d1; 
  opacity: 0.95; 
}