/* Dry Quest — matches the live app
   Dela Gothic One + Chivo / Chivo Mono
   Cream #FFFBDE · Purple #6B48FF · Sky #5D9CEC · Navy #1E1E90 */

@import url("https://fonts.googleapis.com/css2?family=Chivo+Mono:wght@400;700&family=Chivo:ital,wght@0,400;0,700;1,400&family=Dela+Gothic+One&display=swap");

:root {
  --bg: #FFFBDE;
  --purple: #6B48FF;
  --blue: #5D9CEC;
  --navy: #1E1E90;
  --gold: #FFD700;
  --yellow: #EFBD42;
  --pink: #FF5AA2;
  --coral: #FF6B6B;
  --mint: #9EE6C6;
  --orange: #E87D3E;
  --white: #FBFBFB;
  --ink: #1E1E90;
  --muted: #5D9CEC;
  --font-title: "Dela Gothic One", system-ui, sans-serif;
  --font-ui: "Chivo Mono", ui-monospace, monospace;
  --font-body: "Chivo", system-ui, sans-serif;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 2px 2px 0 var(--purple);
  --shadow-navy: 3px 3px 0 var(--navy);
  --max: 1120px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--navy);
  background: var(--bg);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--purple);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--pink);
}

:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--purple);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
  border-radius: 8px;
  font-family: var(--font-ui);
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  background: var(--bg);
  box-shadow: 0 1px 0 var(--blue);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--blue);
  font-family: var(--font-title);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.logo:hover {
  color: var(--purple);
}

.logo img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--purple);
  border-radius: var(--radius);
  padding: 0.4rem 0.8rem;
  font-family: var(--font-title);
  font-size: 0.85rem;
  color: var(--purple);
  cursor: pointer;
  box-shadow: var(--shadow);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.25rem;
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  color: var(--blue);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.88rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--purple);
}

.nav-cta {
  background: var(--purple) !important;
  color: #fff !important;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-family: var(--font-title) !important;
  font-weight: 400 !important;
  font-size: 0.85rem !important;
  box-shadow: 2px 2px 0 var(--navy);
}

.nav-cta:hover {
  background: #5a3ae6 !important;
  color: #fff !important;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--blue);
    padding: 0.75rem 1.25rem 1.2rem;
    z-index: 101;
    box-shadow: 0 16px 28px rgba(30, 30, 144, 0.1);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }

  .site-nav a {
    display: block;
    padding: 0.55rem 0;
  }

  .nav-cta {
    text-align: center;
    margin-top: 0.25rem;
  }
}

/* ========== Layout ========== */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4rem 0;
}

.section-narrow {
  max-width: 720px;
}

.section-navy {
  background: var(--navy);
  color: var(--bg);
}

.section-navy h2,
.section-navy h3 {
  color: var(--bg);
}

.section-navy p {
  color: rgba(255, 251, 222, 0.88);
}

/* ========== Type ========== */
.eyebrow {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--purple);
  margin: 0 0 0.85rem;
}

h1,
h2,
h3,
.display {
  font-family: var(--font-title);
  font-weight: 400;
  line-height: 1.15;
  color: var(--blue);
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  margin: 0 0 1rem;
  color: var(--blue);
}

h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.15rem);
  margin: 0 0 0.85rem;
}

h3 {
  font-size: 1.15rem;
  margin: 0 0 0.4rem;
  color: var(--navy);
}

.lead {
  font-size: 1.15rem;
  color: var(--navy);
  margin: 0 0 1.5rem;
  max-width: 38rem;
}

.center {
  text-align: center;
}

.center .lead {
  margin-left: auto;
  margin-right: auto;
}

/* ========== Hero ========== */
.hero {
  position: relative;
  padding: 2.5rem 0 0;
  overflow: visible;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding-bottom: 2.5rem;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
  min-width: 0;
}

.hero-knight {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 899px) {
  .hero {
    padding: 0.75rem 0 0;
  }

  .hero-grid {
    gap: 0.75rem;
    padding-bottom: 2rem;
  }

  .hero-visual {
    order: -1;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
  }

  .hero-copy h1 {
    order: 1;
    margin: 0 0 0.4rem;
    font-size: clamp(1.85rem, 8vw, 2.35rem);
  }

  .hero-copy .platforms {
    order: 2;
    margin: 0 0 0.85rem;
  }

  .hero-copy .cta-row {
    order: 3;
    margin: 0 0 24vh;
  }

  .hero-copy .lead {
    order: 4;
    margin: 0 0 1rem;
  }

  .hero-copy .cta-note {
    order: 5;
  }

  .hero-copy .buddy {
    order: 6;
  }

  .hero-knight {
    width: min(100%, 22rem);
    max-height: 42vh;
    object-fit: contain;
    margin: 0 auto;
  }
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 1.5rem;
    padding-bottom: 1rem;
  }
}

.hero-splash {
  width: min(100%, 420px);
  border-radius: 24px;
  box-shadow: 6px 6px 0 var(--navy);
  border: 3px solid var(--navy);
}

.buddy {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  margin: 1.25rem 0 0.5rem;
}

.buddy img {
  width: 92px;
  height: auto;
  flex-shrink: 0;
}

.speech {
  position: relative;
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: var(--radius-lg);
  padding: 0.9rem 1rem 0.9rem 1.15rem;
  color: var(--navy);
  font-family: var(--font-ui);
  font-size: 0.92rem;
  line-height: 1.4;
  max-width: 18rem;
}

.speech::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 22px;
  width: 14px;
  height: 14px;
  background: var(--white);
  border-left: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  transform: rotate(45deg);
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue);
  margin: 0 0 0.35rem;
}

/* ========== Buttons ========== */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.8rem 1.35rem;
  border-radius: var(--radius);
  font-family: var(--font-title);
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn .fa-brands {
  font-size: 1.05em;
  line-height: 1;
}

.site-footer .fa-brands {
  width: 1.1em;
  margin-right: 0.35rem;
}

.btn-primary {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
}

.btn-primary:hover {
  background: #5a3ae6;
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--purple);
  border-color: var(--purple);
  box-shadow: var(--shadow);
}

.btn-secondary:hover {
  background: #fff;
  color: var(--purple);
}

.btn-on-navy.btn-primary {
  background: var(--yellow);
  color: var(--navy);
  border-color: var(--yellow);
}

.btn-on-navy.btn-primary:hover {
  background: var(--gold);
  color: var(--navy);
}

.btn-on-navy.btn-secondary {
  color: var(--bg);
  border-color: var(--bg);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.25);
}

.btn-on-navy.btn-secondary:hover {
  background: rgba(255, 251, 222, 0.12);
  color: var(--bg);
}

.cta-note {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--blue);
  margin: 0.35rem 0 0;
}

/* ========== World cards ========== */
.world-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-top: 1.75rem;
}

@media (min-width: 980px) {
  .world-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.15rem;
  }
}

.world-card {
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 2 / 3;
  border-radius: 18px;
  overflow: hidden;
  border: 3px solid var(--navy);
  box-shadow: var(--shadow-navy);
  background: var(--navy);
  color: var(--bg);
}

.world-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.world-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(30, 30, 144, 0.9) 0%,
    rgba(30, 30, 144, 0.55) 22%,
    rgba(30, 30, 144, 0.08) 42%,
    transparent 58%
  );
  pointer-events: none;
}

.world-card figcaption {
  position: relative;
  z-index: 1;
  padding: 1.5rem 0.75rem 0.85rem;
  background: none;
}

.world-card h3 {
  font-family: var(--font-title);
  color: var(--bg);
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  text-shadow: 0 1px 8px rgba(30, 30, 144, 0.45);
}

.world-card p {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--bg);
  line-height: 1.35;
  opacity: 0.94;
}

@media (min-width: 700px) {
  .world-card figcaption {
    padding: 2rem 1rem 1rem;
  }

  .world-card h3 {
    font-size: 1.15rem;
  }

  .world-card p {
    font-size: 0.82rem;
  }
}

/* ========== Showcase / phones ========== */
.showcase {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 860px) {
  .showcase {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.phone-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  flex-wrap: nowrap;
}

.phone {
  flex: 1 1 0;
  max-width: 280px;
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.phone img {
  width: 100%;
  height: auto;
  display: block;
}

.phone figcaption {
  padding: 0.45rem 0.5rem 0.55rem;
  text-align: center;
}

.phone--tilt-l {
  transform: rotate(-4deg);
}

.phone--tilt-r {
  transform: rotate(4deg);
}

.placeholder-note {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--blue);
  margin: 0.85rem 0 0;
}

.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
}

.feature-pills li {
  background: #fff;
  border: 2px solid var(--purple);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--purple);
  box-shadow: 2px 2px 0 var(--purple);
}

/* ========== Seasons ========== */
.season-grid {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.5rem;
}

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

.season {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 210px;
  padding: 1.35rem 1.25rem;
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  border: 3px solid var(--navy);
  box-shadow: var(--shadow-navy);
  transition: transform 0.15s ease;
}

.season:hover {
  transform: translateY(-4px);
  color: inherit;
}

.season h3 {
  font-family: var(--font-title);
  font-size: 1.25rem;
  color: inherit;
  margin: 0 0 0.5rem;
}

.season p {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  line-height: 1.45;
}

.season--jan {
  background: var(--mint);
  color: var(--navy);
}

.season--oct {
  background: var(--orange);
  color: var(--bg);
}

.season--oct h3,
.season--july h3 {
  color: inherit;
}

.season--july {
  background: var(--pink);
  color: var(--bg);
}

.season span {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-title);
  font-size: 0.85rem;
}

/* ========== FAQ ========== */
.faq-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.faq-item {
  background: #fff;
  border: 2px solid var(--purple);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.faq-item summary {
  cursor: pointer;
  padding: 1rem 1.15rem;
  font-family: var(--font-title);
  font-size: 1rem;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--font-ui);
  font-size: 1.4rem;
  color: var(--purple);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item .faq-body {
  padding: 0 1.15rem 1.1rem;
  color: var(--navy);
  border-top: 1px solid rgba(93, 156, 236, 0.25);
}

.faq-group {
  margin-top: 2.5rem;
}

/* ========== Legal ========== */
.legal-page {
  padding: 2.5rem 0 4rem;
}

.legal-page .updated,
.breadcrumb {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--blue);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--blue);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--purple);
}

.disclaimer {
  background: #fff;
  border: 2px solid var(--yellow);
  border-left-width: 6px;
  padding: 1rem 1.15rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.95rem;
  color: var(--navy);
  margin: 1.5rem 0;
}

/* ========== Page hero ========== */
.page-hero {
  padding: 2.5rem 0 2rem;
  position: relative;
}

/* ========== CTA band ========== */
.cta-band {
  background: var(--navy);
  color: var(--bg);
  padding: 3.5rem 0;
  position: relative;
  overflow: hidden;
}

.cta-band h2 {
  color: var(--bg);
}

.cta-band p {
  color: rgba(255, 251, 222, 0.85);
  max-width: 34rem;
}

.cta-band a:not(.btn) {
  color: var(--yellow);
}

.wave {
  display: block;
  width: 100%;
  height: 64px;
  line-height: 0;
  margin-bottom: -1px;
}

.wave svg {
  width: 100%;
  height: 64px;
  display: block;
}

/* ========== Footer ========== */
.site-footer {
  background: var(--navy);
  color: rgba(255, 251, 222, 0.8);
  padding: 3rem 0 2rem;
}

.site-footer a {
  color: var(--yellow);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--bg);
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

.footer-brand {
  font-family: var(--font-title);
  font-size: 1.25rem;
  color: var(--bg);
  margin-bottom: 0.5rem;
}

.footer-disambig {
  font-size: 0.9rem;
  max-width: 28rem;
  line-height: 1.5;
}

.footer-col h3 {
  color: var(--blue);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.75rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.45rem;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 251, 222, 0.15);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
}

.party {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.party img {
  width: min(42%, 280px);
}

.party .lion {
  width: min(38%, 240px);
}

.muted {
  color: var(--blue);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

[hidden] {
  display: none !important;
}

/* ========== Download landing ========== */
.download-main {
  min-height: calc(100vh - var(--header-h) - 12rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 0 4rem;
  text-align: center;
}

.download-card {
  max-width: 36rem;
  margin: 0 auto;
}

.download-main .hero-knight {
  width: min(100%, 340px);
  height: auto;
  margin: 0 auto 1.25rem;
}

.download-main h1 {
  margin-bottom: 0.75rem;
}

.download-main .lead {
  margin-left: auto;
  margin-right: auto;
}

.download-main .cta-row {
  justify-content: center;
}

.download-main .buddy {
  justify-content: center;
  margin-top: 1.75rem;
}

.download-main .speech {
  text-align: left;
}

/* ========== Join / adventurer code ========== */
.join-code-wrap {
  margin: 1.25rem 0 0.35rem;
}

.join-code-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.join-code {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: clamp(1.1rem, 4.2vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  color: var(--navy);
  background: #fff;
  border: 2px solid var(--purple);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.7rem 1rem;
  white-space: nowrap;
}

.join-copy-btn {
  width: 3rem;
  min-width: 3rem;
  height: 3rem;
  padding: 0;
  font-size: 1.15rem;
}

.join-copy-status {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--purple);
  min-height: 1.35em;
  margin: 0.45rem 0 0;
}

.join-main .hero-knight {
  width: min(100%, 260px);
  margin-bottom: 0.85rem;
}

@media (max-width: 860px) {
  .join-main {
    padding: 1.25rem 0 3rem;
  }

  .join-main .hero-knight {
    width: min(72vw, 200px);
    max-height: 26vh;
    object-fit: contain;
  }

  .join-main h1 {
    font-size: clamp(1.55rem, 7vw, 2.1rem);
  }

  .join-main .lead {
    font-size: 1rem;
    margin-bottom: 0.85rem;
  }
}
