:root {
  --paper: #fbf4e4;
  --paper-2: #fff8ec;
  --paper-3: #f0e5ca;
  --ink: #20332d;
  --ink-soft: #536861;
  --accent: #efbf42;
  --accent-deep: #d19a19;
  --mint: #8db59c;
  --mint-deep: #4a6b57;
  --rose: #de8872;
  --line: rgba(32, 51, 45, 0.12);
  --shadow: 0 18px 42px rgba(56, 45, 22, 0.14);
  --shadow-soft: 0 10px 24px rgba(56, 45, 22, 0.08);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-pill: 999px;
  --font-display: "Fredoka", "Trebuchet MS", sans-serif;
  --font-ui: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 18% 16%, rgba(239, 191, 66, 0.22), transparent 24%),
    radial-gradient(circle at 82% 14%, rgba(141, 181, 156, 0.16), transparent 20%),
    linear-gradient(180deg, #fff8eb 0%, #f9efdd 56%, #f8efdf 100%);
  color: var(--ink);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
}

a {
  color: inherit;
}

.app-shell {
  min-height: 100svh;
}

.screen {
  min-height: 100svh;
}

.hero-screen {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

.result-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 3vw, 34px);
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 4vw;
  min-height: 100svh;
  padding: clamp(20px, 2vw, 28px) clamp(22px, 4vw, 52px) clamp(28px, 4vw, 42px);
}

.result-shell {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.82fr);
  gap: clamp(18px, 3vw, 30px);
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 560px;
  gap: 18px;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.result-card,
.result-stage-panel {
  position: relative;
  overflow: hidden;
  border-radius: 40px;
  background:
    radial-gradient(circle at 90% 12%, rgba(239, 191, 66, 0.2), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 248, 226, 0.78));
  border: 1px solid rgba(32, 51, 45, 0.08);
  box-shadow: var(--shadow);
}

.result-card {
  padding: clamp(24px, 3vw, 36px);
}

.result-stage-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: clamp(22px, 3vw, 30px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark .brand-blob {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #fff6c7 0 28%, transparent 29%),
    radial-gradient(circle at 50% 50%, var(--accent) 0 62%, var(--accent-deep) 63% 100%);
  box-shadow: 0 10px 22px rgba(239, 191, 66, 0.34);
}

.brand-subtitle {
  font-size: 0.8rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.hero-title .accent-text {
  display: block;
  color: var(--accent-deep);
}

.hero-body {
  max-width: 28rem;
  margin: 0;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.7;
  color: var(--ink-soft);
}

.result-title {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.result-body {
  max-width: 36rem;
  margin: 18px 0 0;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.8;
  color: var(--ink-soft);
}

.result-sticker-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(32, 51, 45, 0.08);
  box-shadow: var(--shadow-soft);
}

.result-sticker-row strong {
  display: block;
  font-size: 1rem;
}

.result-sticker-row p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.result-sticker {
  width: 78px;
  height: 78px;
  border-radius: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: linear-gradient(180deg, #fff0b6, #f7d457);
  box-shadow: 0 14px 26px rgba(239, 191, 66, 0.26);
}

.result-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.result-stat {
  padding: 18px 18px 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(32, 51, 45, 0.08);
  box-shadow: var(--shadow-soft);
}

.result-stat-label {
  display: block;
  font-size: 0.84rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.result-stat-value {
  display: block;
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2vw, 2.2rem);
}

.result-stage-copy h2 {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1;
}

.result-stage-copy p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  line-height: 1.8;
}

.result-stage-visual {
  position: relative;
  min-height: 380px;
  border-radius: 30px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 252, 242, 0.86), rgba(252, 243, 219, 0.68)),
    radial-gradient(circle at 50% 24%, rgba(141, 181, 156, 0.2), transparent 30%);
  border: 1px solid rgba(32, 51, 45, 0.08);
}

.result-queue-track {
  position: absolute;
  inset: auto 10% 18% 10%;
  height: 110px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(239, 191, 66, 0.18), rgba(239, 191, 66, 0.06)),
    repeating-linear-gradient(
      90deg,
      rgba(32, 51, 45, 0.08) 0 1px,
      transparent 1px 72px
    );
  border: 1px solid rgba(32, 51, 45, 0.08);
}

.result-stage-visual .queue-blob {
  width: 88px;
}

.result-stage-visual .queue-blob.one {
  bottom: 22%;
  left: 12%;
}

.result-stage-visual .queue-blob.two {
  bottom: 26%;
  left: 34%;
}

.result-stage-visual .queue-blob.three {
  bottom: 32%;
  left: 58%;
}

.result-arch {
  position: absolute;
  right: 12%;
  top: 16%;
  width: 136px;
  height: 170px;
  border-radius: 80px 80px 26px 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background:
    linear-gradient(180deg, #ffd665, #efbf42);
  box-shadow: 0 20px 34px rgba(209, 154, 25, 0.28);
}

.result-arch::before {
  content: "";
  position: absolute;
  inset: 16px 18px 42px;
  border-radius: 60px 60px 20px 20px;
  background: rgba(255, 255, 255, 0.42);
}

.result-arch span {
  position: relative;
  z-index: 1;
}

.result-ribbon {
  position: absolute;
  inset: auto 14% 12% 14%;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(32, 51, 45, 0.08);
  box-shadow: var(--shadow-soft);
  color: var(--ink-soft);
  font-weight: 700;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.option-btn,
.chip-btn,
.tile-btn,
.mini-btn {
  border-radius: var(--radius-pill);
  transition:
    transform 140ms ease,
    background-color 140ms ease,
    border-color 140ms ease,
    color 140ms ease,
    box-shadow 140ms ease;
}

.primary-btn,
.secondary-btn,
.ghost-btn {
  padding: 14px 22px;
  font-size: 1rem;
  font-weight: 700;
}

.primary-btn {
  color: var(--ink);
  background: var(--accent);
  box-shadow: 0 12px 24px rgba(239, 191, 66, 0.34);
}

.primary-btn:hover,
.option-btn:hover,
.tile-btn:hover,
.chip-btn:hover {
  transform: translateY(-1px);
}

.secondary-btn {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(32, 51, 45, 0.12);
  box-shadow: var(--shadow-soft);
}

.ghost-btn {
  color: var(--ink-soft);
  background: transparent;
  border: 1px dashed rgba(32, 51, 45, 0.24);
}

.queue-stage {
  position: relative;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.queue-stage::before {
  content: "";
  position: absolute;
  inset: 10% 4% 8%;
  border-radius: 46px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.82), rgba(255, 245, 210, 0.74)),
    linear-gradient(90deg, transparent 0 18%, rgba(239, 191, 66, 0.08) 18% 82%, transparent 82%);
  box-shadow: var(--shadow);
}

.queue-illustration {
  position: relative;
  width: min(92%, 600px);
  aspect-ratio: 0.88;
  z-index: 2;
}

.queue-track {
  position: absolute;
  inset: 7% 12% 10%;
  border-radius: 42px;
  background:
    linear-gradient(180deg, rgba(239, 191, 66, 0.18), rgba(239, 191, 66, 0.06)),
    repeating-linear-gradient(
      180deg,
      rgba(32, 51, 45, 0.08) 0 1px,
      transparent 1px 78px
    );
  border: 1px solid rgba(32, 51, 45, 0.08);
}

.lane-mark {
  position: absolute;
  left: 50%;
  width: 24px;
  height: calc(100% - 32px);
  margin-left: -12px;
  top: 16px;
  border-radius: 999px;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.94) 0 22px,
      rgba(255, 255, 255, 0) 22px 44px
    );
  opacity: 0.7;
}

.gate-house {
  position: absolute;
  top: 4%;
  right: 10%;
  width: clamp(170px, 24vw, 240px);
  aspect-ratio: 1.1;
  border-radius: 32px 32px 24px 24px;
  background:
    linear-gradient(180deg, #ffe68f 0%, var(--accent) 74%, var(--accent-deep) 100%);
  box-shadow: 0 22px 28px rgba(209, 154, 25, 0.28);
  transform: rotate(5deg);
}

.gate-house::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 12%;
  top: 28%;
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.86), transparent 34%),
    linear-gradient(180deg, #fff9dc, #fff2c0);
  border: 5px solid rgba(32, 51, 45, 0.12);
}

.gate-stamp {
  position: absolute;
  top: 18%;
  left: 14%;
  padding: 10px 16px;
  border-radius: 18px;
  background: rgba(32, 51, 45, 0.1);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(-8deg);
}

.queue-blob {
  position: absolute;
  width: clamp(80px, 12vw, 108px);
  aspect-ratio: 1;
  border-radius: 45% 46% 42% 48%;
  background:
    radial-gradient(circle at 36% 28%, rgba(255, 255, 255, 0.9) 0 14%, transparent 15%),
    linear-gradient(180deg, #fff7cc 0%, #f6d96c 46%, #eca92b 100%);
  box-shadow: 0 18px 26px rgba(236, 169, 43, 0.2);
  animation: blob-bob 2.8s ease-in-out infinite;
}

.queue-blob::before,
.queue-blob::after {
  content: "";
  position: absolute;
  top: 34%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(32, 51, 45, 0.65);
}

.queue-blob::before {
  left: 28%;
}

.queue-blob::after {
  right: 28%;
}

.queue-blob .smile {
  position: absolute;
  left: 50%;
  bottom: 24%;
  width: 28%;
  height: 14%;
  margin-left: -14%;
  border-bottom: 4px solid rgba(32, 51, 45, 0.6);
  border-radius: 0 0 24px 24px;
}

.queue-blob.one {
  bottom: 12%;
  left: 14%;
  transform: rotate(-8deg);
}

.queue-blob.two {
  bottom: 26%;
  left: 33%;
  animation-delay: 0.2s;
}

.queue-blob.three {
  bottom: 42%;
  left: 20%;
  transform: rotate(-5deg);
  animation-delay: 0.45s;
}

.queue-blob.four {
  bottom: 56%;
  left: 42%;
  animation-delay: 0.65s;
}

.queue-blob.five {
  top: 16%;
  left: 28%;
  width: clamp(92px, 14vw, 124px);
  animation-delay: 0.85s;
}

.queue-shadow {
  position: absolute;
  inset: auto 18% 10% 18%;
  height: 16px;
  border-radius: 999px;
  background: rgba(32, 51, 45, 0.12);
  filter: blur(10px);
}

.progress-overview {
  padding: clamp(18px, 2vw, 24px) clamp(22px, 4vw, 52px) 30px;
}

.stats-strip,
.route-strip,
.reward-band,
.inline-banner,
.progress-panel,
.feedback-box {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(32, 51, 45, 0.08);
  box-shadow: var(--shadow-soft);
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 18px 20px;
  border-radius: var(--radius-xl);
}

.stat-label {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.route-strip {
  margin-top: 18px;
  padding: 18px 20px 22px;
  border-radius: var(--radius-xl);
}

.section-label {
  margin: 0;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.section-title {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw, 2rem);
}

.route-track {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.route-dot {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: rgba(32, 51, 45, 0.6);
  background: rgba(32, 51, 45, 0.08);
  border: 1px solid rgba(32, 51, 45, 0.08);
}

.route-dot.done {
  color: var(--ink);
  background: rgba(239, 191, 66, 0.88);
}

.route-dot.active {
  color: var(--ink);
  background: rgba(141, 181, 156, 0.38);
  border-color: rgba(74, 107, 87, 0.22);
  transform: scale(1.06);
}

.route-legend {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.legend-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legend-dot::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(32, 51, 45, 0.16);
}

.legend-dot.done::before {
  background: var(--accent);
}

.legend-dot.active::before {
  background: rgba(141, 181, 156, 0.9);
}

.reward-band,
.inline-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
}

.reward-copy strong,
.inline-banner strong {
  display: block;
  font-size: 1rem;
}

.reward-copy span,
.inline-banner span {
  display: block;
  margin-top: 4px;
  color: var(--ink-soft);
}

.sticker-cluster {
  display: flex;
  gap: 10px;
}

.sticker {
  width: 52px;
  height: 52px;
  border-radius: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #fff0b6, #f7d457);
  box-shadow: 0 10px 20px rgba(239, 191, 66, 0.22);
  font-size: 1.25rem;
}

.practice-screen,
.gate-screen {
  min-height: 100svh;
  padding: 18px clamp(18px, 3vw, 34px) 28px;
}

.practice-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.header-side {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mini-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(32, 51, 45, 0.08);
  color: var(--ink-soft);
}

.mini-chip strong {
  color: var(--ink);
}

.mini-btn {
  padding: 10px 14px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(32, 51, 45, 0.08);
}

.workspace {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: clamp(18px, 2.8vw, 30px);
  min-height: calc(100svh - 110px);
}

.workspace--solo {
  grid-template-columns: minmax(0, 1fr);
}

.route-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 8px;
}

.route-column .section-label {
  margin-bottom: 4px;
}

.rung-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rung {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(32, 51, 45, 0.08);
}

.rung::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(32, 51, 45, 0.12);
}

.rung.done::before {
  background: var(--accent);
}

.rung.active {
  background: rgba(239, 191, 66, 0.18);
  border-color: rgba(239, 191, 66, 0.34);
}

.rung-title {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.gate-main {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  border-radius: 42px;
  padding: clamp(22px, 3vw, 34px);
  background:
    radial-gradient(circle at 90% 12%, rgba(239, 191, 66, 0.22), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 249, 230, 0.8));
  border: 1px solid rgba(32, 51, 45, 0.08);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.gate-main::before {
  content: "";
  position: absolute;
  inset: auto -4% -12% 46%;
  width: 46%;
  height: 48%;
  border-radius: 50%;
  background: rgba(141, 181, 156, 0.12);
  filter: blur(8px);
}

.gate-main::after {
  content: "";
  position: absolute;
  inset: 12% 6% auto auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 191, 66, 0.28) 0 34%, transparent 35%);
}

.gate-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.gate-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  background: rgba(239, 191, 66, 0.18);
  color: var(--ink);
  font-weight: 700;
}

.gate-label .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-deep);
}

.gate-kicker {
  margin: 20px 0 6px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hint-title {
  margin: 0;
  max-width: 14ch;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 0.96;
}

.hint-subtitle {
  margin: 14px 0 0;
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: clamp(0.98rem, 1.6vw, 1.12rem);
  line-height: 1.8;
}

.question-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 26px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(32, 51, 45, 0.08);
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.option-btn {
  display: flex;
  align-items: center;
  min-height: 76px;
  padding: 16px 18px;
  text-align: left;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(32, 51, 45, 0.08);
  box-shadow: var(--shadow-soft);
}

.option-btn strong {
  display: block;
  font-size: clamp(1rem, 1.3vw, 1.16rem);
  color: var(--ink);
  word-break: break-word;
}

.option-btn.is-correct {
  background: rgba(141, 181, 156, 0.24);
  border-color: rgba(74, 107, 87, 0.28);
}

.option-btn.is-wrong {
  background: rgba(222, 136, 114, 0.18);
  border-color: rgba(222, 136, 114, 0.24);
}

.build-stage,
.fix-stage,
.sentence-stage {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.assembled-answer,
.mutated-word,
.sentence-row {
  min-height: 90px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 18px 20px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(32, 51, 45, 0.08);
}

.assembled-answer.is-empty {
  color: rgba(32, 51, 45, 0.42);
}

.assembled-token,
.assembled-complete,
.fix-tile,
.sentence-blank,
.sentence-answer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 52px;
  padding: 10px 14px;
  border-radius: 18px;
  font-weight: 700;
  background: rgba(239, 191, 66, 0.18);
}

.sentence-blank {
  min-width: 132px;
  background: rgba(239, 191, 66, 0.26);
  animation: breath 1.6s ease-in-out infinite;
}

.sentence-answer {
  background: rgba(141, 181, 156, 0.2);
}

.assembled-complete {
  background: rgba(141, 181, 156, 0.22);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  letter-spacing: 0.02em;
}

.tile-bank {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tile-btn,
.chip-btn {
  min-height: 56px;
  padding: 12px 16px;
  font-weight: 700;
}

.tile-btn {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(32, 51, 45, 0.08);
  box-shadow: var(--shadow-soft);
}

.chip-btn {
  color: var(--ink);
  background: linear-gradient(180deg, #ffd96b 0%, #efbf42 100%);
  border: 1px solid rgba(209, 154, 25, 0.46);
  box-shadow: 0 12px 24px rgba(239, 191, 66, 0.28);
}

.tile-btn.is-used {
  opacity: 0.35;
  pointer-events: none;
}

.chip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.feedback-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 4px;
  padding: 16px 18px;
  border-radius: 24px;
}

.feedback-box strong {
  display: block;
  margin-bottom: 6px;
}

.feedback-box p {
  margin: 0;
  color: var(--ink-soft);
}

.feedback-box.success {
  background: rgba(141, 181, 156, 0.22);
}

.feedback-box.error {
  background: rgba(222, 136, 114, 0.18);
}

.loading-screen,
.error-screen,
.empty-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.status-panel {
  width: min(680px, 100%);
  padding: 30px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(32, 51, 45, 0.08);
  box-shadow: var(--shadow);
}

.status-panel h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.status-panel p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  line-height: 1.8;
}

.status-panel code {
  display: block;
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(32, 51, 45, 0.08);
  color: var(--ink);
  overflow-x: auto;
}

.status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.footer-note {
  margin-top: 14px;
  font-size: 0.84rem;
  color: var(--ink-soft);
}

@keyframes blob-bob {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(2deg);
  }
}

@keyframes breath {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 191, 66, 0.16);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 0 0 10px rgba(239, 191, 66, 0);
  }
}

@media (max-width: 980px) {
  .result-shell,
  .hero-shell,
  .workspace {
    grid-template-columns: 1fr;
  }

  .hero-shell {
    gap: 28px;
    min-height: auto;
  }

  .queue-stage {
    min-height: 360px;
  }

  .route-column {
    order: 2;
  }

  .option-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hero-shell {
    padding: 18px 18px 24px;
  }

  .progress-overview,
  .result-screen,
  .practice-screen,
  .gate-screen {
    padding-left: 16px;
    padding-right: 16px;
  }

  .result-stats,
  .stats-strip {
    grid-template-columns: 1fr;
  }

  .practice-header,
  .result-sticker-row,
  .reward-band,
  .inline-banner,
  .feedback-box,
  .brand-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .result-stage-visual {
    min-height: 320px;
  }

  .workspace {
    min-height: auto;
  }

  .route-track {
    padding-bottom: 2px;
  }

  .hint-title {
    max-width: none;
    font-size: clamp(2rem, 10vw, 3.1rem);
  }

  .sentence-row,
  .assembled-answer,
  .mutated-word {
    min-height: 78px;
  }
}
