*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Playwrite NO", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #ffffff 0, #975db9 35%, #8ef8de 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  color: #011557;
}

.game {
  background: rgba(207, 207, 207, 0.3);
  border-radius: 16px;
  max-width: 1024px;
  width: 100%;
  padding: 16px 16px 20px;
  box-shadow: inset 0 10px 20px rgba(49, 49, 49, 0.9);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.game__header h1 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 4px;
}
.game__subtitle {
  font-family: "Playfair Display", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: center;
  font-size: 0.95rem;
  color: rgb(49, 49, 49);
}
.game__main {
  font-family: "Playfair Display", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.game__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.game__wrong-count {
  font-weight: 600;
  color: #b91c1c;
}
.game__temperature {
  font-weight: 600;
  margin-top: 4px;
}
.game__used-words {
  font-size: 0.8rem;
  color: rgb(49, 49, 49);
  text-align: center;
  padding-inline: 8px;
}
.game__play {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}
.game__word-display {
  font-family: "Playwrite NO", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 2.2rem;
  letter-spacing: 0.2em;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgb(49, 49, 49);
  min-height: 3rem;
  text-align: center;
}
.game__alphabet {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  max-width: 100%;
}
.game__alphabet button {
  font-family: "Playfair Display", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  border-radius: 999px;
  border: 1px solid rgb(49, 49, 49);
  background: #ffedd5;
  padding: 8px 0;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s ease;
}
.game__alphabet button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px #011557;
  background: #ffffff;
}
.game__alphabet button:disabled {
  cursor: default;
  opacity: 0.5;
  box-shadow: none;
}
.game__alphabet button.correct {
  background: #8ef8de;
  border-color: #006952;
}
.game__alphabet button.wrong {
  background: rgb(207, 207, 207);
  border-color: #b91c1c;
}
.game__message {
  min-height: 1.5rem;
  font-weight: 600;
  text-align: center;
}
.game__message.win {
  color: #006952;
}
.game__message.lose {
  color: #b91c1c;
}
.game__button {
  font-family: "Playwrite NO", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  border-radius: 999px;
  border: none;
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: 600;
  background: #975db9;
  color: #ffffff;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.1s ease;
}
.game__button:hover {
  background: #011557;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(207, 207, 207, 0.4);
}
.game__footer {
  font-family: "Playfair Display", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  text-align: center;
  color: rgb(49, 49, 49);
}

#cake-image {
  width: 100%;
  max-width: clamp(150px, 32vw, 260px);
  height: auto;
  display: block;
  margin-inline: auto;
  -o-object-fit: contain;
     object-fit: contain;
}
#cake-image.is-changing {
  opacity: 1;
  transform: scale(1);
}

@keyframes cake-pop {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }
  60% {
    transform: scale(1.05);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
.thermometer {
  width: 220px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid #ffedd5;
  background: #ffffff;
  overflow: hidden;
  box-shadow: inset 0 10px 20px rgba(49, 49, 49, 0.9);
}
.thermometer #thermometer-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(to right, #006952, #ff6232, #b91c1c);
  transition: width 0.25s ease;
}

@media (min-width: 700px) {
  .game {
    padding: 24px 32px 32px;
  }
  .game__main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    align-items: center;
  }
  .game__header h1 {
    font-size: 2.4rem;
  }
  .game__word-display {
    font-size: 2.6rem;
  }
  .game__alphabet {
    grid-template-columns: repeat(10, minmax(0, 1fr));
    max-width: 520px;
    gap: 8px;
  }
}
@media (min-width: 1024px) {
  .game {
    max-width: 1200px;
    padding: 32px 40px 36px;
  }
  .game__header h1 {
    font-size: 3rem;
  }
  .game__subtitle {
    font-size: 1.1rem;
  }
  .game__word-display {
    font-size: 3rem;
    padding: 12px 24px;
  }
  .game__alphabet {
    grid-template-columns: repeat(13, minmax(0, 1fr));
    max-width: 620px;
    gap: 10px;
  }
  .game__alphabet button {
    padding: 10px 0;
    font-size: 1.05rem;
  }
  .game__button {
    font-size: 1.1rem;
    padding: 12px 28px;
  }
  #cake-image {
    max-width: 320px;
  }
}/*# sourceMappingURL=styles.css.map */