/* ===========================================
   PAGE: THOTH (loaded after style.css)
   The hero is a round of the game: a portrait in a gold ring that runs down
   from 15 seconds, four names, and the next face after each answer. The app's
   own colours: deep navy, gold, warm paper text.
   =========================================== */

.th-hero {
  --gold: #F3C35B;
  --gold-deep: #D9A23A;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + var(--space-10)) var(--gutter) var(--space-12);
  background:
    radial-gradient(ellipse 60% 55% at 70% 42%, #1E3E68 0%, transparent 70%),
    #0B1A2E;
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.th-hero__inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}

.th-hero__copy {
  text-align: center;
  position: relative;
  z-index: 2;
}

.th-hero__title { margin: 0 0 var(--space-6); }

.th-hero__title img {
  width: min(78vw, 360px);
  height: auto;
  display: inline-block;
}

.th-hero__lead {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  line-height: 1.15;
  color: #F4EFE3;
  margin: 0 0 var(--space-4);
}

.th-hero__lead em {
  font-style: normal;
  color: var(--gold);
}

.th-hero__desc {
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: rgba(244, 239, 227, 0.8);
  max-width: 460px;
  margin: 0 auto var(--space-8);
}

.th-hero .store-badges { justify-content: center; }

.th-hero__links {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
  font-size: var(--text-sm);
}

.th-hero__links a,
.th-hero__links span { color: rgba(244, 239, 227, 0.7); }

.th-hero__links a:hover { color: #fff; }

/* ----- The playable round ----- */

.th-round {
  width: min(100%, 400px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.th-round__top {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 239, 227, 0.75);
}

.th-round__score {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(243, 195, 91, 0.35);
  color: var(--gold);
  letter-spacing: 0.02em;
}

.th-portrait {
  position: relative;
  width: min(70vw, 260px);
  aspect-ratio: 1;
}

.th-portrait__img {
  position: absolute;
  inset: 14px;
  width: calc(100% - 28px);
  height: calc(100% - 28px);
  border-radius: 50%;
  object-fit: cover;
  background: #122640;
  box-shadow: 0 0 0 4px rgba(243, 195, 91, 0.25);
}

.th-portrait__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  filter: drop-shadow(0 0 10px rgba(243, 195, 91, 0.45));
}

.th-portrait__ring circle {
  fill: none;
  stroke-width: 7;
  stroke-linecap: round;
}

.th-portrait__track { stroke: rgba(255, 255, 255, 0.08); }

.th-portrait__time {
  stroke: var(--gold);
  transition: stroke 0.2s ease;
}

.th-portrait[data-state="right"] .th-portrait__time { stroke: #3DD68C; }
.th-portrait[data-state="wrong"] .th-portrait__time { stroke: #F26B5B; }

.th-portrait__secs {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #0B1A2E;
  border: 3px solid var(--gold);
  color: #fff;
  font-weight: 900;
  font-size: 18px;
  line-height: 40px;
  text-align: center;
}

.th-round__ask {
  margin: var(--space-5) 0 var(--space-4);
  font-size: var(--text-xl, 24px);
  font-weight: 900;
  color: var(--gold);
}

.th-options {
  width: 100%;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.th-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #152B4A;
  color: #F4EFE3;
  font: inherit;
  font-size: var(--text-md);
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.th-option:hover:not(:disabled) { border-color: rgba(243, 195, 91, 0.6); }
.th-option:active:not(:disabled) { transform: scale(0.98); }

.th-option:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.th-option__key {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(#F7D98C, var(--gold-deep));
  color: #1D1609;
  font-size: 13px;
  font-weight: 900;
  line-height: 28px;
  text-align: center;
}

.th-option:disabled { cursor: default; }
.th-option.is-dim { opacity: 0.45; }

.th-option.is-right {
  background: #17573A;
  border-color: #3DD68C;
  opacity: 1;
}

.th-option.is-wrong {
  background: #5A2128;
  border-color: #F26B5B;
  opacity: 1;
}

.th-round__foot {
  min-height: 56px;
  margin-top: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  text-align: center;
  font-size: var(--text-sm);
  color: rgba(244, 239, 227, 0.8);
}

.th-next {
  padding: 10px 22px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(#F7D98C, var(--gold-deep));
  color: #1D1609;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.th-next:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 899px) {
  .th-hero { padding-top: calc(var(--nav-height) + var(--space-6)); }
}

@media (min-width: 900px) {
  .th-hero__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
  }

  .th-hero__copy { text-align: left; }
  .th-hero__desc { margin-left: 0; }

  .th-hero .store-badges,
  .th-hero__links { justify-content: flex-start; }
}

/* ----- Below the hero: the same navy, quieter ----- */

.th-wrap {
  max-width: 1080px;
  margin: 0 auto;
}

.th-heading {
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
  text-align: center;
  margin: 0 0 var(--space-12);
}

.th-wrap--narrow { max-width: 760px; }

.th-heading--tight { margin-bottom: var(--space-6); }

/* The one-paragraph answer search engines and assistants quote. */
.th-about {
  padding: var(--space-16) var(--gutter);
  background: #0E1F36;
}

.th-about__text {
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: rgba(244, 239, 227, 0.82);
  text-align: center;
  margin: 0;
}

.th-how {
  padding: var(--space-20) var(--gutter);
  background: #07111F;
}

.th-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-16);
}

.th-step {
  text-align: center;
  max-width: 320px;
  margin: 0 auto;
}

.th-step__phone {
  width: 220px;
  max-width: 100%;
  height: auto;
  margin: 0 auto var(--space-6);
  display: block;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.55));
}

.th-step__num {
  width: 32px;
  height: 32px;
  margin: 0 auto var(--space-3);
  border-radius: 50%;
  background: #F3C35B;
  color: #1D1609;
  font-weight: 900;
  font-size: 15px;
  line-height: 32px;
}

.th-step__title {
  font-size: var(--text-lg);
  font-weight: 800;
  color: #fff;
  margin: 0 0 var(--space-2);
}

.th-step__text {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: rgba(244, 239, 227, 0.7);
  margin: 0;
}

.th-inside {
  padding: var(--space-20) var(--gutter);
  background: #0E1F36;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.th-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8) var(--space-12);
}

.th-list li {
  padding-left: var(--space-5);
  border-left: 3px solid #F3C35B;
}

.th-list h3 {
  font-size: var(--text-md);
  font-weight: 800;
  color: #fff;
  margin: 0 0 var(--space-2);
}

.th-list p {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: rgba(244, 239, 227, 0.7);
  margin: 0;
}

.th-list a { color: #F3C35B; }

@media (min-width: 760px) {
  .th-steps { grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
  .th-list { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  .th-list { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .th-portrait__time, .th-option { transition: none; }
}

/* A lighter film grain than the studio's default, as on the BiteMap page:
   at full strength it sat on top of the portraits and phone screens. */
.grain { opacity: 0.05; }
