* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(145deg, #1e1b2f 0%, #2a2540 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  /* padding: 1.5rem; */
  margin: 0;
}

.game-container {
  max-width: 600px;
  width: 100%;
  background: rgba(255, 248, 250, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: linear-gradient(135deg, rgba(255, 240, 245, 0.15) 0%, rgba(240, 240, 255, 0.1) 100%);
  border-radius: 3.5rem;
  padding: 2.2rem 1.8rem;
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.7), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: all 0.2s ease;
}

h1 {
  text-align: center;
  font-weight: 600;
  font-size: 2.6rem;
  letter-spacing: -0.5px;
  color: #fbe9f0;
  text-shadow: 0 4px 15px rgba(180, 130, 255, 0.7);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

h1 span {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.2rem 1rem;
  border-radius: 4rem;
  font-size: 1.8rem;
  backdrop-filter: blur(10px);
}

.stats-panel {
  display: flex;
  justify-content: space-between;
  background: rgba(10, 8, 20, 0.5);
  backdrop-filter: blur(12px);
  border-radius: 3rem;
  padding: 0.8rem 1.8rem;
  margin: 1.3rem 0 1.8rem;
  color: #e0d7ff;
  font-weight: 500;
  border: 1px solid rgba(255, 220, 255, 0.25);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #ffddaa;
  text-shadow: 0 0 12px #ffaa80;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
}

.achievement-badge {
  background: #f7c978;
  color: #1e1330;
  font-weight: 700;
  padding: 0.25rem 1rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  box-shadow: 0 0 20px #ffbb4d;
}

.jumble-card {
  background: #ffffff10;
  border-radius: 2.5rem;
  padding: 2rem 1.2rem;
  margin: 1.2rem 0;
  text-align: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.scrambled-word {
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  color: #f3e8ff;
  text-shadow: 0 0 25px #c084fc;
  word-break: break-all;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.8rem 0.6rem;
  border-radius: 2rem;
  margin-bottom: 1.5rem;
  transition: 0.2s;
}

.input-area {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.guess-input {
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: 3rem;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  font-size: 1.4rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.8px;
  color: #1e1330;
  outline: 2px solid transparent;
  transition: 0.2s;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.guess-input:focus {
  outline: 2px solid #fbbf24;
  background: #ffffff;
}

.action-buttons {
  display: flex;
  width: 100%;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  padding: 0.9rem 1.6rem;
  border-radius: 3rem;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: white;
  transition: all 0.2s ease;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  flex: 1 1 auto;
}

.btn-primary {
  background: #f59e0b;
  color: #0f0a1a;
  font-weight: 700;
  border: 1px solid #ffd966;
  box-shadow: 0 0 25px #fbbf24;
}

.btn-primary:hover {
  background: #fbbf24;
  box-shadow: 0 0 35px #fcd34d;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.btn:active {
  transform: translateY(2px);
}

.message {
  margin-top: 1.2rem;
  min-height: 2.4rem;
  font-weight: 500;
  color: #ffdbb5;
  text-align: center;
  font-size: 1rem;
}

.achievement-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 0.2rem;
}

@media (max-width: 400px) {
  .game-container {
    padding: 1.5rem 1rem;
  }

  .scrambled-word {
    font-size: 2.5rem;
    letter-spacing: 0.2em;
  }
}