/* Embedded viewport & responsive layout optimization */
:root {
  --stage-bottom: 22px !important;
}
.hero {
  top: clamp(34px, 8.5%, 72px) !important;
}
.hero .hero-word {
  font-size: clamp(44px, 8.5vw, 82px) !important;
  letter-spacing: .04em;
}
.hero .open-label {
  font-size: 12px !important;
  letter-spacing: .16em !important;
  top: -20px !important;
}
.hero .tagline {
  font-size: clamp(16px, 2vw, 21px) !important;
  margin: 8px 0 0 !important;
}
.hero .subline {
  font-size: clamp(14px, 1.6vw, 17px) !important;
  margin-top: 6px !important;
}
.intro {
  bottom: 18px !important;
  gap: 8px !important;
}
.begin-btn {
  font-size: clamp(20px, 4vw, 25px) !important;
  padding: 11px 28px 10px !important;
}
.prompt-card {
  top: 17% !important;
}
.answer-dock {
  bottom: 20px !important;
}
.landing {
  top: 24% !important;
}
.next-wrap {
  bottom: 22px !important;
}
.sample-note {
  max-width: 500px;
  margin: 4px auto 0 !important;
  font-size: 13px !important;
  line-height: 1.2;
  color: #a6bdd7;
}
.intro-links {
  font-size: 14px;
}
.result-header .result-brand {
  font-size: 18px;
}
.logbook-line, .practice-score-note {
  font-size: 16px;
  color: #a6bdd7;
}
.source-note {
  font-size: 16px;
  line-height: 1.4;
  color: #a6bdd7;
}
.source-note a {
  color: #4de3ff;
}
.timer-hot #answer-status {
  color: #fff;
}
@media (max-width: 480px) {
  .hero .hero-word { font-size: 48px !important; }
  .hero .open-label { font-size: 10px !important; }
  .subline { font-size: 14px !important; }
  .sample-note { max-width: 290px; font-size: 12px !important; }
  .intro-links { font-size: 13px; }
}

body[data-phase="done"] .hero,
body[data-phase="done"] .hud {
  display: none;
}
.storage-warning {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  max-width: 220px;
  padding: 6px 10px;
  background: #30220f;
  color: #ffdc9a;
  font-size: 14px;
  text-align: center;
}
.scoring-note {
  font-size: 15px;
  color: #a6bdd7;
  line-height: 1.2;
  margin: 8px 0 0;
  letter-spacing: 0;
}
