.hqt-shell {
  --hqt-navy: #082f4f;
  --hqt-blue: #126ca3;
  --hqt-sky: #e9f7fc;
  --hqt-coral: #e8644a;
  --hqt-gold: #f2b640;
  --hqt-ink: #173447;
  --hqt-muted: #557080;
  --hqt-line: #cfe0e8;
  background:
    radial-gradient(circle at 92% 7%, rgba(242, 182, 64, 0.2), transparent 24%),
    radial-gradient(circle at 5% 94%, rgba(18, 108, 163, 0.15), transparent 30%),
    #f7fcfe;
  border: 1px solid #c7e0ea;
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(8, 47, 79, 0.12);
  color: var(--hqt-ink);
  margin: 28px auto 34px;
  max-width: 920px;
  overflow: hidden;
  position: relative;
}

.hqt-shell *,
.hqt-shell *::before,
.hqt-shell *::after {
  box-sizing: border-box;
}

.hqt-shell [hidden] {
  display: none !important;
}

.hqt-shell button,
.hqt-shell a {
  -webkit-tap-highlight-color: transparent;
}

.hqt-shell button:focus-visible,
.hqt-shell a:focus-visible,
.hqt-shell [tabindex="-1"]:focus-visible {
  outline: 3px solid #ffcf5a;
  outline-offset: 3px;
}

.hqt-masthead {
  align-items: center;
  background:
    linear-gradient(120deg, rgba(8, 47, 79, 0.98), rgba(18, 108, 163, 0.94)),
    url("https://cdn.hawaiiguide.io/images/jcogs_img/cache/hawaii-events-flowers_-_abcdef_-_739108d97cc37df9f40f6972d15c3875db4a319c_-_abcdef_-_a48bfc2017e1796084b1f776f65cc3ea14574e1c.jpg") center/cover;
  color: #fff;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 200px;
  padding: 30px 34px;
  position: relative;
}

.hqt-masthead::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.hqt-masthead-copy,
.hqt-daily-seal {
  position: relative;
  z-index: 1;
}

.hqt-shell p.hqt-eyebrow,
.hqt-shell p.hqt-result-kicker {
  color: #ffd87d !important;
  font-size: 12px !important;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.hqt-masthead h2 {
  color: #fff;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.02;
  margin: 0 0 10px;
}

.hqt-masthead p:last-child {
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
  line-height: 1.55;
  margin: 0;
  max-width: 620px;
}

.hqt-daily-seal {
  align-items: center;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  display: flex;
  flex: 0 0 118px;
  flex-direction: column;
  height: 118px;
  justify-content: center;
  text-align: center;
  transform: rotate(3deg);
}

.hqt-daily-seal i {
  color: #ffd87d;
  font-size: 26px;
  margin-bottom: 5px;
}

.hqt-daily-seal strong {
  color: #fff;
  font-size: 13px;
  line-height: 1.25;
  max-width: 90px;
}

.hqt-body {
  padding: 30px 34px 34px;
}

.hqt-shell p.hqt-intro {
  color: var(--hqt-ink) !important;
  font-size: 16px !important;
  line-height: 1.65;
  margin: 0 auto 24px;
  max-width: 760px;
  text-align: center;
}

.hqt-start-actions {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 760px;
}

.hqt-mode-button {
  align-items: center;
  background: #fff;
  border: 2px solid var(--hqt-line);
  border-radius: 16px;
  color: var(--hqt-ink);
  cursor: pointer;
  display: flex;
  gap: 14px;
  min-height: 92px;
  padding: 16px 18px;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
  width: 100%;
}

.hqt-mode-button:hover {
  border-color: #7ab9d7;
  box-shadow: 0 10px 22px rgba(8, 47, 79, 0.11);
  transform: translateY(-2px);
}

.hqt-mode-button-primary {
  background: linear-gradient(140deg, #0f689f, #0a456e);
  border-color: #0a5d91;
  color: #fff;
}

.hqt-mode-icon {
  align-items: center;
  background: var(--hqt-sky);
  border-radius: 13px;
  color: var(--hqt-blue);
  display: inline-flex;
  flex: 0 0 48px;
  font-size: 21px;
  height: 48px;
  justify-content: center;
}

.hqt-mode-button-primary .hqt-mode-icon {
  background: rgba(255, 255, 255, 0.15);
  color: #ffd87d;
}

.hqt-mode-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.hqt-mode-copy strong {
  color: inherit;
  font-size: 18px;
  line-height: 1.25;
  margin-bottom: 3px;
}

.hqt-mode-copy small {
  color: var(--hqt-muted);
  font-size: 13px;
  line-height: 1.4;
}

.hqt-mode-button-primary .hqt-mode-copy small {
  color: rgba(255, 255, 255, 0.8);
}

.hqt-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 22px 0 0;
}

.hqt-stat {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--hqt-line);
  border-radius: 999px;
  color: var(--hqt-muted);
  font-size: 12px;
  padding: 7px 11px;
  white-space: nowrap;
}

.hqt-stat strong {
  color: var(--hqt-navy);
}

.hqt-play {
  margin: 0 auto;
  max-width: 760px;
}

.hqt-play-top {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 8px;
}

.hqt-mode-label {
  color: var(--hqt-blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hqt-progress-text {
  color: var(--hqt-muted);
  font-size: 13px;
  white-space: nowrap;
}

.hqt-progress {
  background: #dcebf1;
  border-radius: 999px;
  height: 8px;
  margin-bottom: 26px;
  overflow: hidden;
}

.hqt-progress span {
  background: linear-gradient(90deg, var(--hqt-gold), var(--hqt-coral));
  border-radius: inherit;
  display: block;
  height: 100%;
  transition: width 220ms ease;
}

.hqt-category {
  color: var(--hqt-coral);
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.hqt-question {
  color: var(--hqt-navy);
  font-size: clamp(23px, 4vw, 32px);
  line-height: 1.24;
  margin: 0 0 22px;
}

.hqt-options {
  display: grid;
  gap: 10px;
}

.hqt-option {
  align-items: center;
  background: #fff;
  border: 2px solid #cbdde5;
  border-radius: 13px;
  color: var(--hqt-ink);
  cursor: pointer;
  display: flex;
  font-size: 16px;
  gap: 12px;
  min-height: 56px;
  padding: 10px 14px;
  text-align: left;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
  width: 100%;
}

.hqt-option:not(:disabled):hover {
  background: #eff9fd;
  border-color: #6cb1d2;
  transform: translateX(3px);
}

.hqt-option:disabled {
  color: var(--hqt-ink);
  cursor: default;
  opacity: 1;
}

.hqt-option-letter {
  align-items: center;
  background: #e6f2f7;
  border-radius: 9px;
  color: var(--hqt-blue);
  display: inline-flex;
  flex: 0 0 34px;
  font-size: 13px;
  font-weight: 800;
  height: 34px;
  justify-content: center;
}

.hqt-option.is-correct {
  background: #edf9f0;
  border-color: #49a868;
}

.hqt-option.is-correct .hqt-option-letter {
  background: #49a868;
  color: #fff;
}

.hqt-option.is-wrong {
  background: #fff1ee;
  border-color: #db725f;
}

.hqt-option.is-wrong .hqt-option-letter {
  background: #db725f;
  color: #fff;
}

.hqt-feedback {
  background: #fff;
  border: 1px solid var(--hqt-line);
  border-left: 5px solid #49a868;
  border-radius: 12px;
  margin-top: 16px;
  padding: 16px 17px;
}

.hqt-feedback.is-wrong {
  border-left-color: #db725f;
}

.hqt-feedback p {
  color: var(--hqt-ink);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 10px;
}

.hqt-feedback .hqt-verdict {
  color: #277b43 !important;
  font-size: 16px !important;
  font-weight: 800;
  margin-bottom: 5px;
}

.hqt-feedback.is-wrong .hqt-verdict {
  color: #b24634 !important;
}

.hqt-reveal-links {
  align-items: flex-start;
  border-top: 1px solid #e3edf1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
  justify-content: space-between;
  padding-top: 10px;
}

.hqt-reveal-links a {
  color: var(--hqt-blue);
  font-size: 12px;
  line-height: 1.45;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hqt-reveal-links a span {
  color: var(--hqt-muted);
}

.hqt-reveal-links .hqt-guide-link {
  font-weight: 800;
  text-decoration: none;
}

.hqt-next {
  background: var(--hqt-navy);
  border: 0;
  border-radius: 11px;
  color: #fff;
  cursor: pointer;
  display: block;
  font-size: 15px;
  font-weight: 800;
  margin: 16px 0 0 auto;
  min-height: 46px;
  padding: 11px 20px;
}

.hqt-result {
  margin: 0 auto;
  max-width: 650px;
  text-align: center;
}

.hqt-result-icon {
  align-items: center;
  background: linear-gradient(145deg, #fff0b9, #ffd46b);
  border-radius: 50%;
  color: #8c5a00;
  display: flex;
  font-size: 28px;
  height: 70px;
  justify-content: center;
  margin: 0 auto 14px;
  transform: rotate(-4deg);
  width: 70px;
}

.hqt-shell p.hqt-result-kicker {
  color: var(--hqt-coral) !important;
}

.hqt-score {
  color: var(--hqt-navy);
  font-size: clamp(52px, 10vw, 76px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  margin: 3px 0 8px;
}

.hqt-shell p.hqt-result-message {
  color: var(--hqt-ink);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 14px;
}

.hqt-shell p.hqt-result-grid {
  font-size: 25px;
  letter-spacing: 3px;
  line-height: 1.5;
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}

.hqt-shell p.hqt-result-note {
  color: var(--hqt-muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 auto 20px;
  max-width: 520px;
}

.hqt-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.hqt-action {
  align-items: center;
  border: 0;
  border-radius: 11px;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  gap: 7px;
  justify-content: center;
  min-height: 46px;
  padding: 11px 17px;
  white-space: nowrap;
}

.hqt-action-primary {
  background: var(--hqt-navy);
  color: #fff;
}

.hqt-action-secondary {
  background: #e6f3f8;
  color: var(--hqt-blue);
}

.hqt-back {
  background: transparent;
  border: 0;
  color: var(--hqt-muted);
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  gap: 5px;
  margin-top: 17px;
  min-height: 42px;
  padding: 10px;
}

.hqt-shell p.hqt-source-note {
  border-top: 1px solid rgba(8, 47, 79, 0.1);
  color: var(--hqt-muted) !important;
  font-size: 12px !important;
  line-height: 1.5;
  margin: 26px 0 0;
  padding-top: 16px;
  text-align: center;
}

@media (max-width: 680px) {
  .hqt-shell {
    border-radius: 18px;
    margin-left: -3px;
    margin-right: -3px;
  }

  .hqt-masthead {
    align-items: flex-start;
    min-height: 0;
    padding: 25px 22px 27px;
  }

  .hqt-masthead h2 {
    font-size: 34px;
  }

  .hqt-masthead p:last-child {
    font-size: 15px;
  }

  .hqt-daily-seal {
    flex-basis: 84px;
    height: 84px;
  }

  .hqt-daily-seal i {
    font-size: 20px;
  }

  .hqt-daily-seal strong {
    font-size: 11px;
    max-width: 68px;
  }

  .hqt-body {
    padding: 24px 18px 27px;
  }

  .hqt-shell p.hqt-intro {
    font-size: 15px !important;
    text-align: left;
  }

  .hqt-start-actions {
    grid-template-columns: 1fr;
  }

  .hqt-mode-button {
    min-height: 82px;
  }

  .hqt-question {
    font-size: 24px;
  }

  .hqt-reveal-links {
    display: grid;
  }

  .hqt-next {
    width: 100%;
  }

  .hqt-result-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hqt-action {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .hqt-masthead {
    display: block;
  }

  .hqt-daily-seal {
    display: none;
  }

  .hqt-play-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .hqt-option {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hqt-shell *,
  .hqt-shell *::before,
  .hqt-shell *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
