/* VowelPlay — long-form text pages (/privacy, /support, /press)
   ---------------------------------------------------------------------------
   Loaded after tokens.css + site.css. Same two surfaces as the landing page:
   a short blue page-glow header (top bar + title) and the game's white page
   for the reading column. Depth = hard lips, never borders. Dark mode comes
   for free from the tokens.
   --------------------------------------------------------------------------- */

/* Text pages are for reading: undo the landing page's app-like no-select. */
html, body {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

/* ---------- Header (glow) ---------- */
.vp-pagehead {
  padding: 0 20px 48px;
}
.vp-pagehead__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}

.vp-topbar {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: calc(18px + env(safe-area-inset-top)) 0 18px;
}

.vp-topbar__home {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--vp-font-brand);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--vp-page-ink);
  text-shadow: 0 0.06em 0 var(--vp-page-ink-shadow);
  border-radius: 12px;
  transition: transform var(--vp-dur-press) ease-out;
}
.vp-topbar__home:active { transform: scale(0.96); }
.vp-topbar__home img {
  width: 34px;
  height: 34px;
  border-radius: 22.5%;
  box-shadow: 0 3px 0 var(--vp-page-ink-shadow);
}

.vp-topbar__nav {
  display: flex;
  gap: 4px;
  font-size: 14px;
  font-weight: 700;
}
.vp-topbar__nav a {
  padding: 8px 12px;
  border-radius: var(--vp-radius-pill);
  color: var(--vp-page-ink-soft);
  transition: background var(--vp-dur-press) ease-out, color var(--vp-dur-press) ease-out;
}
.vp-topbar__nav a:hover { background: var(--vp-page-translucent); color: var(--vp-page-ink); }
.vp-topbar__nav a[aria-current="page"] {
  background: var(--vp-page-translucent);
  box-shadow: inset 0 0 0 1px var(--vp-page-ring);
  color: var(--vp-page-ink);
}

.vp-pagehead__eyebrow {
  margin: 28px 0 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--vp-live);
}

.vp-pagehead__title {
  margin: 0 0 14px;
  font-family: var(--vp-font-brand);
  font-weight: 900;
  font-size: clamp(40px, 10vw, 68px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 0.06em 0 var(--vp-page-ink-shadow);
  text-wrap: balance;
}

.vp-pagehead__lede {
  margin: 0;
  max-width: 560px;
  font-size: clamp(17px, 4vw, 19px);
  line-height: 1.5;
  font-weight: 500;
  color: var(--vp-page-ink-soft);
  text-wrap: pretty;
}

/* ---------- Reading column ---------- */
.vp-page {
  padding: 48px 20px 80px;
}

.vp-prose {
  max-width: 760px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.65;
  font-weight: 500;
  color: var(--vp-ink);
}

.vp-prose > * + * { margin-top: 1em; }
.vp-prose p, .vp-prose ul, .vp-prose ol { margin-bottom: 0; }
.vp-prose p { text-wrap: pretty; }

.vp-prose h2 {
  margin: 2.4em 0 0;
  font-family: var(--vp-font-brand);
  font-weight: 900;
  font-size: clamp(24px, 5.4vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--vp-heading);
  scroll-margin-top: 24px;
}
.vp-prose h2:first-child { margin-top: 0; }
.vp-prose h2 + * { margin-top: 0.6em; }

.vp-prose h3 {
  margin: 1.8em 0 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--vp-heading);
}
.vp-prose h3 + * { margin-top: 0.4em; }

.vp-prose ul, .vp-prose ol { padding-left: 1.3em; }
.vp-prose li + li { margin-top: 0.45em; }
.vp-prose li::marker { color: var(--vp-accent); font-weight: 800; }

.vp-prose strong { font-weight: 800; color: var(--vp-heading); }

.vp-prose a {
  color: var(--vp-accent);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--vp-accent) 35%, transparent);
  transition: text-decoration-color var(--vp-dur-press) ease-out;
}
.vp-prose a:hover { text-decoration-color: currentColor; }

.vp-prose code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.88em;
  padding: 0.1em 0.4em;
  border-radius: 6px;
  background: var(--vp-inset-row);
}

.vp-muted { color: var(--vp-ink-secondary); }
.vp-small { font-size: 14px; }

/* ---------- Cards ---------- */
.vp-card {
  padding: 22px 22px 24px;
  border-radius: var(--vp-radius-group);
  background: var(--vp-card);
  box-shadow:
    inset 0 1px 0 var(--vp-card-top-edge),
    0 0 0 1px var(--vp-card-hairline),
    0 5px 0 var(--vp-card-lip),
    0 18px 32px -22px var(--vp-card-ambient);
}
.vp-card > :first-child { margin-top: 0; }
.vp-card > * + * { margin-top: 0.75em; }

.vp-card--short h2 { margin-top: 0; }

/* Contact card — the yellow "play today" accent marks the one action. */
.vp-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
}
.vp-contact__text { flex: 1 1 260px; }
.vp-contact__text p { margin: 0; }
.vp-contact__text p + p { margin-top: 0.35em; }
.vp-contact__label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vp-accent);
}

.vp-mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 18px;
  background: var(--vp-live);
  color: var(--vp-play-glyph) !important;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none !important;
  box-shadow: 0 5px 0 var(--vp-live-lip), 0 16px 26px -16px rgba(120, 53, 15, 0.55);
  transition: transform var(--vp-dur-press) ease-out, filter var(--vp-dur-press) ease-out;
}
.vp-mail:hover { filter: brightness(1.04); }
.vp-mail:active { transform: scale(0.96) translateY(2px); }
.vp-mail svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- Short-version list (privacy) ---------- */
.vp-checks { list-style: none; padding-left: 0 !important; }
.vp-checks li {
  position: relative;
  padding-left: 36px;
}
.vp-checks li::before,
.vp-checks li::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 22px;
  height: 22px;
  border-radius: 7px;
}
.vp-checks li::before {
  background: var(--vp-mint);
  box-shadow: 0 2px 0 var(--vp-mint-lip);
}
.vp-checks li::after {
  background: var(--vp-mint-ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---------- Tables ---------- */
.vp-table-wrap {
  overflow-x: auto;
  border-radius: var(--vp-radius-group);
  background: var(--vp-card);
  box-shadow:
    0 0 0 1px var(--vp-card-hairline),
    0 5px 0 var(--vp-card-lip);
}
.vp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}
.vp-table th, .vp-table td {
  text-align: left;
  vertical-align: top;
  padding: 13px 18px;
  border-top: 1px solid var(--vp-card-hairline);
}
.vp-table tr:first-child th, .vp-table tr:first-child td { border-top: 0; }
.vp-table th {
  width: 34%;
  font-weight: 800;
  color: var(--vp-ink-secondary);
  font-size: 14px;
}
.vp-table td { font-weight: 600; }

/* ---------- FAQ accordion ---------- */
.vp-faq { display: grid; gap: 14px; }
.vp-faq details {
  border-radius: var(--vp-radius-group);
  background: var(--vp-card);
  box-shadow:
    inset 0 1px 0 var(--vp-card-top-edge),
    0 0 0 1px var(--vp-card-hairline),
    0 4px 0 var(--vp-card-lip);
}
.vp-faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-weight: 800;
  font-size: 17px;
  line-height: 1.35;
  color: var(--vp-heading);
  border-radius: var(--vp-radius-group);
  -webkit-user-select: none;
  user-select: none;
}
.vp-faq summary::-webkit-details-marker { display: none; }
.vp-faq__chev {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  padding: 7px;
  border-radius: 10px;
  background: var(--vp-header-btn);
  color: var(--vp-header-btn-ink);
  stroke-width: 2.6;
  transition: transform 200ms var(--vp-ease-out);
}
.vp-faq details[open] .vp-faq__chev { transform: rotate(180deg); }
.vp-faq__body {
  padding: 0 20px 20px;
}
.vp-faq__body > :first-child { margin-top: 0; }
.vp-faq__body > * + * { margin-top: 0.8em; }

/* How-to-play steps */
.vp-steps {
  list-style: none;
  padding-left: 0 !important;
  counter-reset: step;
  display: grid;
  gap: 12px;
}
.vp-steps li {
  counter-increment: step;
  position: relative;
  margin: 0 !important;
  padding: 12px 14px 12px 58px;
  border-radius: 16px;
  background: var(--vp-inset-row);
}
.vp-steps li::before {
  content: counter(step);
  position: absolute;
  left: 12px;
  top: 12px;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  background: var(--vp-board);
  color: var(--vp-board-ink);
  box-shadow: 0 3px 0 var(--vp-board-lip);
}
.vp-steps strong { display: block; }

/* ---------- Press: icon + asset grid + share sample ---------- */
.vp-press-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
}
.vp-press-intro img {
  width: 112px;
  height: 112px;
  border-radius: 22.5%;
  box-shadow: 0 6px 0 var(--vp-card-lip), 0 18px 30px -16px var(--vp-card-ambient);
}
.vp-press-intro p { flex: 1 1 320px; margin: 0; }

.vp-assets {
  list-style: none;
  padding-left: 0 !important;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}
.vp-assets li { margin: 0 !important; }
.vp-assets a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--vp-card);
  color: var(--vp-ink) !important;
  text-decoration: none !important;
  box-shadow:
    0 0 0 1px var(--vp-card-hairline),
    0 4px 0 var(--vp-card-lip);
  transition: transform var(--vp-dur-press) ease-out;
}
.vp-assets a:active { transform: scale(0.97); }
.vp-assets a:hover .vp-assets__name { text-decoration: underline; text-underline-offset: 3px; }
.vp-assets__name { font-weight: 800; color: var(--vp-accent); }
.vp-assets__meta { font-size: 14px; font-weight: 600; color: var(--vp-ink-secondary); }
.vp-assets__thumb {
  width: 56px;
  height: 56px;
  border-radius: 22.5%;
  margin-bottom: 8px;
}

.vp-share-sample {
  margin: 0;
  display: inline-block;
  padding: 18px 22px;
  border-radius: 18px;
  background: var(--vp-inset-row);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 18px;
  line-height: 1.6;
  color: var(--vp-ink);
  white-space: pre;
}

.vp-boiler {
  position: relative;
}
.vp-boiler__count {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vp-accent);
}

/* ---------- Larger screens ---------- */
@media (min-width: 640px) {
  .vp-pagehead { padding: 0 24px 64px; }
  .vp-page { padding: 64px 24px 104px; }
  .vp-card { padding: 26px 28px 28px; }
}

@media (max-width: 479px) {
  .vp-topbar__nav { display: none; }
  .vp-table th { width: 40%; }
  .vp-table th, .vp-table td { padding: 12px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .vp-faq__chev { transition: none; }
}
