:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --ink: #1c2b2d;
  --muted: #697779;
  --line: #e7eeec;
  --accent: #3eab98;
  --accent-2: #ff6412;
  --accent-3: #ffc845;
  --danger: #b91c1c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background: var(--bg);
  color: var(--ink);
}

a {
  color: var(--accent);
  text-decoration: none;
}

.wrap {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
}

.site-header .wrap,
.top-nav,
.actions,
.meta,
.action-row,
.stats-row,
.tool-row,
.session-meta {
  display: flex;
  gap: 12px;
}

.site-header .wrap {
  justify-content: flex-start;
  align-items: center;
  padding: 14px 0;
}

.play-page .top-nav {
  display: none !important;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}

.brand-logo {
  width: 42px;
  height: 42px;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-text {
  display: inline-block;
  transform: translateY(1px);
}

.top-nav a {
  padding: 8px 12px;
}

.top-nav-landing {
  margin-left: auto;
  align-items: center;
}

.top-nav-landing a {
  color: var(--ink);
  opacity: 0.82;
}

.top-nav-landing a:hover {
  color: var(--accent-2);
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 34px rgba(28, 43, 45, 0.16);
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner__text {
  display: grid;
  gap: 6px;
}

.cookie-banner__text strong {
  font-size: 18px;
}

.cookie-banner__text span {
  color: var(--muted);
  line-height: 1.5;
}

.cookie-banner__button {
  flex: 0 0 auto;
  min-width: 220px;
}

main.wrap {
  padding: 32px 0 48px;
}

.hero,
.grid.two-up {
  display: grid;
  gap: 20px;
}

.hero,
.grid.two-up {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card,
.stat-card,
.flow-card,
.notice {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(28, 43, 45, 0.06);
}

.card,
.notice {
  padding: 24px;
}

.hero {
  margin-bottom: 24px;
  align-items: start;
}

.hero h1,
.play-card h1,
.admin-header h1 {
  margin: 8px 0 12px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 0.98;
}

.hero-panel h3,
.card h2,
.card h3,
.flow-card h4 {
  margin-top: 0;
}

.eyebrow {
  color: var(--accent-2);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.plain-list {
  padding-left: 18px;
  margin: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: white;
  font: inherit;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(62, 171, 152, 0.2);
}

.button.secondary,
.button.ghost {
  background: transparent;
  color: var(--accent-2);
  border: 1px solid rgba(255, 100, 18, 0.26);
}

.button.secondary:hover,
.button.ghost:hover {
  background: #111;
  color: #fff;
  border-color: #111;
  box-shadow: none;
}

.stack-form {
  display: grid;
  gap: 14px;
}

.rich-field {
  display: grid;
  gap: 10px;
}

.rich-label {
  color: var(--muted);
  font-size: 14px;
}

.rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rich-toolbar .button.ghost {
  padding: 8px 12px;
  font-size: 13px;
}

.rich-toolbar select {
  width: auto;
  min-width: 130px;
  border-radius: 12px;
  padding: 8px 10px;
}

.rich-editor {
  min-height: 180px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  background: #fff;
  line-height: 1.5;
}

.rich-editor:focus {
  outline: none;
  border-color: var(--accent-3);
  box-shadow: 0 0 0 3px rgba(255, 200, 69, 0.22);
}

.rich-source {
  display: none;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  font: inherit;
  background: white;
  color: var(--ink);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent-3);
  box-shadow: 0 0 0 3px rgba(255, 200, 69, 0.22);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.meta {
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}

.meta.vertical {
  flex-direction: column;
}

.stat-card {
  padding: 18px;
  min-width: 160px;
  flex-direction: column;
}

.stat-card strong {
  font-size: 32px;
}

.quest-card p,
.flow-card p {
  color: var(--muted);
}

.admin-header,
.actions,
.action-row {
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.flow-card {
  padding: 18px;
  position: relative;
}

.flow-code {
  font-size: 12px;
  color: var(--muted);
}

.flow-arrow {
  margin-top: 12px;
  color: var(--accent);
}

.flow-start {
  border-color: rgba(62, 171, 152, 0.38);
}

.flow-question {
  border-color: rgba(255, 100, 18, 0.32);
}

.flow-finish {
  border-color: rgba(255, 200, 69, 0.55);
}

.step-image {
  width: 100%;
  max-height: 62vh;
  object-fit: contain;
  background: #fbfbfb;
  border-radius: 18px;
  margin: 12px 0 20px;
}

.step-media {
  margin: 18px 0 20px;
}

.step-media figcaption {
  margin-top: -8px;
  color: var(--muted);
  font-size: 14px;
}

.step-body {
  line-height: 1.6;
}

.step-body p {
  margin: 0 0 12px;
}

.flash {
  margin-bottom: 20px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(62, 171, 152, 0.1);
  border: 1px solid rgba(62, 171, 152, 0.22);
}

.notice {
  margin: 18px 0;
  border-left: 6px solid var(--accent-3);
  background: #fffdf7;
}

.play-card {
  max-width: 920px;
  margin: 0 auto;
}

.landing-page main.wrap {
  padding-top: 48px;
}

.landing-page.reveal-ready .reveal-item {
  opacity: 0;
  transform: translateY(28px) scale(0.99);
  filter: blur(2px);
  transition:
    opacity 560ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 640ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 520ms ease;
  will-change: opacity, transform, filter;
}

.landing-page.reveal-ready .reveal-item.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

.landing-hero {
  display: block;
  margin-bottom: 24px;
}

.landing-copy h1 {
  margin: 10px 0 16px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.95;
  max-width: none;
}

.landing-lead {
  font-size: 20px;
  line-height: 1.55;
  color: var(--muted);
}

.landing-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.landing-points li {
  position: relative;
  padding-left: 28px;
  line-height: 1.7;
}

.landing-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.82em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: #1c2b2d;
}

.landing-banner {
  display: block;
  width: 100%;
  border-radius: 18px;
  margin: 0;
  border: 1px solid var(--line);
  background: #fffdf7;
}

.landing-banner-wide {
  width: 100%;
  margin-top: 22px;
  max-height: none;
  object-fit: cover;
}

.landing-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.landing-section {
  margin: 48px 0;
}

.section-head {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.02;
  max-width: 14ch;
}

#quest .section-head h2 {
  max-width: none;
}

#about .section-head h2 {
  max-width: none;
}

#how .section-head h2,
#faq .section-head h2 {
  max-width: none;
}

.landing-features,
.landing-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.feature-card {
  padding: 12px;
}

.feature-card h3 {
  margin: 16px 0 10px;
  font-size: 28px;
}

.feature-card p,
.step-card p,
.contact-grid p {
  color: var(--muted);
  line-height: 1.6;
}

.feature-spot {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 28px;
}

.feature-spot-teal {
  background: var(--accent);
}

.feature-spot-orange {
  background: var(--accent-2);
}

.feature-spot-yellow {
  background: var(--accent-3);
}

.feature-spot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.landing-quest {
  display: grid;
  gap: 18px;
  align-items: center;
  grid-template-columns: 1.1fr 0.9fr;
}

.step-card strong {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(255, 100, 18, 0.1);
  border: 1px solid rgba(255, 100, 18, 0.2);
  color: var(--accent-2);
  font-size: 24px;
  line-height: 1;
}

.step-card h3 {
  margin: 10px 0;
  font-size: 28px;
}

.step-card {
  text-align: center;
}

.faq-list {
  display: grid;
  gap: 16px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-size: 22px;
  font-weight: 700;
}

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

.faq-item p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.faq-bullets {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  gap: 8px;
}

.faq-bullets li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.6;
}

.faq-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.82em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: #1c2b2d;
}

.contact-shell {
  border-color: rgba(62, 171, 152, 0.18);
}

.payment-shell {
  border-color: rgba(255, 100, 18, 0.18);
  background:
    radial-gradient(circle at top left, rgba(255, 200, 69, 0.12), transparent 26%),
    #ffffff;
}

.payment-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

.payment-copy {
  display: grid;
  align-content: start;
  gap: 16px;
}

.payment-copy h2 {
  margin: 0;
  max-width: none;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 0.98;
}

.payment-copy .landing-lead {
  margin: 0;
}

.purchase-form {
  align-self: start;
  margin-top: 0;
  width: 100%;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fffdf9;
}

.purchase-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.purchase-form .button {
  width: min(420px, 100%);
  min-height: 52px;
  font-size: 18px;
  font-weight: 700;
  justify-self: center;
}

.legal-note {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.payment-legal-note {
  margin-top: 22px;
  max-width: 52ch;
}

.legal-note a {
  color: var(--accent-2);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.check-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.check-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 4px;
}

.pay-status-card {
  max-width: 720px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.contact-copy {
  display: grid;
  align-content: start;
  gap: 12px;
  grid-column: 1 / -1;
}

.contact-copy h2 {
  margin: 0;
  max-width: none;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 0.98;
}

.contact-card {
  align-self: start;
  width: 100%;
  justify-self: stretch;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  display: grid;
  gap: 10px;
  background: #fffdf7;
}

.contact-card a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.contact-card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}

.social-card {
  gap: 14px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.social-link:hover {
  color: var(--accent-2);
}

.social-icon {
  display: inline-block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.session-strip {
  display: grid;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.session-strip strong {
  display: block;
  font-size: 24px;
  margin-top: 6px;
}

.session-meta {
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}

.tool-row {
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
}

.tool-row form {
  margin: 0;
}

.play-actions {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.primary-action {
  display: flex;
  justify-content: center;
  margin-top: 0;
}

.primary-action form {
  width: min(440px, 100%);
}

.primary-action .stack-form {
  gap: 12px;
}

.primary-action input[type="text"] {
  text-align: center;
}

.primary-action .button {
  width: 100%;
  min-height: 56px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: var(--accent);
  box-shadow: 0 18px 28px rgba(62, 171, 152, 0.2);
}

.blitz-row .button.ghost {
  color: #fff;
}

.blitz-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}

.blitz-row .button {
  width: 100%;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

pre {
  white-space: pre-wrap;
}

@media (max-width: 860px) {
  .session-strip {
    gap: 14px;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner__button {
    min-width: 0;
    width: 100%;
  }

  .blitz-row {
    grid-template-columns: 1fr;
  }

  .purchase-fields {
    grid-template-columns: 1fr;
  }

  .landing-hero,
  .landing-features,
  .landing-steps,
  .landing-quest,
  .contact-grid,
  .payment-grid {
    grid-template-columns: 1fr;
  }

  .top-nav-landing {
    display: none;
  }

  .feature-spot {
    width: 120px;
    height: 120px;
    font-size: 34px;
  }

  #about .section-head {
    margin-bottom: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-page.reveal-ready .reveal-item,
  .landing-page.reveal-ready .reveal-item.is-visible {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}
