:root {
  --sky: #e7f8ff;
  --sea: #8ed8ff;
  --sun: #ffe27a;
  --peach: #ffd2a6;
  --mint: #b8f3c9;
  --grass: #41b37a;
  --ink: #1d3557;
  --berry: #ff5d8f;
  --sand: #fff9ef;
  --cloud: #ffffff;
  --shadow: rgba(29, 53, 87, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Trebuchet MS", "Arial Rounded MT Bold", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), transparent 24%),
    radial-gradient(circle at right 20%, rgba(255, 226, 122, 0.45), transparent 22%),
    linear-gradient(180deg, var(--sky), #d9f6ff 46%, #fef3d0 100%);
  display: grid;
  place-items: center;
  padding: 24px;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  border-radius: 999px;
  pointer-events: none;
}

body::before {
  width: 180px;
  height: 180px;
  left: -50px;
  bottom: 18%;
  background: rgba(255, 255, 255, 0.45);
}

body::after {
  width: 220px;
  height: 220px;
  right: -70px;
  top: 12%;
  background: rgba(142, 216, 255, 0.35);
}

.app-shell {
  width: min(1100px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 24px;
  align-items: stretch;
}

.hero-card,
.reward-card {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(8px);
  border: 4px solid rgba(255, 255, 255, 0.85);
  border-radius: 36px;
  box-shadow: 0 22px 55px var(--shadow);
}

.hero-card {
  padding: 32px;
  text-align: center;
}

.eyebrow {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff7b54;
}

h1,
h2,
.word-card,
.hold-button,
.score-pill {
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", Arial, sans-serif;
}

h1 {
  margin: 12px 0 10px;
  font-size: clamp(2.1rem, 4vw, 3.5rem);
}

.helper-text,
.reward-note,
.status-text {
  font-size: 1.15rem;
  line-height: 1.45;
}

.helper-text {
  max-width: 28rem;
  margin: 0 auto 22px;
}

.word-card {
  min-height: 230px;
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
  padding: 24px;
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.78)),
    linear-gradient(135deg, rgba(255, 226, 122, 0.16), rgba(255, 93, 143, 0.16));
  border: 5px solid rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 -12px 28px rgba(255, 226, 122, 0.18);
}

.word-card span {
  font-size: clamp(5rem, 13vw, 8rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

.hold-button {
  width: min(100%, 430px);
  min-height: 90px;
  border: 0;
  border-radius: 999px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--cloud);
  background: linear-gradient(180deg, #ff7b54, #ff5d8f);
  box-shadow: 0 14px 0 #d94874, 0 24px 34px rgba(255, 93, 143, 0.3);
  transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
  cursor: pointer;
}

.hold-button:hover,
.hold-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 0 #d94874, 0 26px 36px rgba(255, 93, 143, 0.34);
  filter: saturate(1.05);
}

.hold-button.is-pressed {
  transform: translateY(10px) scale(0.99);
  box-shadow: 0 6px 0 #d94874, 0 12px 22px rgba(255, 93, 143, 0.26);
}

.hold-button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.1);
  opacity: 0.75;
}

.feedback-panel {
  margin-top: 24px;
  padding: 22px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 249, 239, 0.96), rgba(255, 255, 255, 0.9));
  border: 3px dashed rgba(29, 53, 87, 0.16);
}

.status-text {
  margin: 0;
  min-height: 2.9em;
  font-weight: 700;
}

.heard-panel {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.heard-label {
  font-weight: 700;
  color: #597496;
}

.heard-text {
  min-width: 110px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(142, 216, 255, 0.24);
  font-weight: 700;
  color: var(--ink);
}

.feedback-panel.listening-state {
  background: linear-gradient(180deg, rgba(234, 246, 255, 0.98), rgba(255, 255, 255, 0.9));
  border-color: rgba(142, 216, 255, 0.48);
}

.feedback-panel.success-state {
  background: linear-gradient(180deg, rgba(230, 255, 236, 0.98), rgba(255, 255, 255, 0.9));
  border-color: rgba(65, 179, 122, 0.32);
}

.feedback-panel.retry-state {
  background: linear-gradient(180deg, rgba(255, 248, 224, 0.98), rgba(255, 255, 255, 0.9));
  border-color: rgba(255, 210, 119, 0.4);
}

.reward-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.reward-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.reward-header h2 {
  margin: 0;
  font-size: 1.8rem;
}

.score-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--sun), #ffc65c);
  color: #7a4700;
  font-size: 1.15rem;
  font-weight: 700;
}

.sticker-tray {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 14px;
  margin: 24px 0;
  min-height: 150px;
}

.sticker {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 249, 239, 0.96));
  border: 4px solid rgba(255, 255, 255, 0.96);
  font-size: 2rem;
  box-shadow: 0 14px 22px rgba(29, 53, 87, 0.12);
  animation: pop-in 260ms ease-out;
}

.reward-note {
  margin: 0;
  text-align: center;
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: scale(0.55) rotate(-9deg);
  }

  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@media (max-width: 840px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .hero-card,
  .reward-card {
    padding: 24px;
  }

  .word-card {
    min-height: 190px;
  }
}

@media (max-width: 560px) {
  body {
    padding: 14px;
  }

  .hero-card,
  .reward-card {
    border-radius: 28px;
  }

  .hold-button {
    min-height: 84px;
  }
  .heard-panel {
    flex-direction: column;
  }
}
