/* ==========================================================================
   Playfold — mobile replica
   Pure HTML + CSS (+ jQuery for the header menu)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Design tokens (extracted from the original site)
   -------------------------------------------------------------------------- */
:root {
  --pf-canvas: #07090e;
  --pf-surface: #0e1318;
  --pf-elevated: #151c26;
  --pf-selected: #1b2736;
  --pf-border: #273244;
  --pf-border-strong: #3a4960;
  --pf-text: #f4f7fa;
  --pf-text-secondary: #b4becc;
  --pf-text-muted: #8995a5;
  --pf-play: #2aa7ff;
  --pf-source: #ff3b9d;
  --pf-refold: #8c6cff;
  --pf-success: #28d4a2;
  --pf-warning: #f2b84b;
  --pf-error: #ff5a68;
  --pf-focus: #7acbff;
  --pf-ink: #05070a;
}

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

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  background-color: #000;
  color: var(--pf-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,
h2,
h3,
p,
dl,
dd,
dt,
ol,
ul {
  margin: 0;
  padding: 0;
}

ol,
ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

img,
svg {
  display: block;
}

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

/* --------------------------------------------------------------------------
   App shell — mobile only (centred column on larger screens)
   -------------------------------------------------------------------------- */
.shell {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 480px;
  min-height: 100dvh;
  margin-inline: auto;
  background: var(--pf-canvas);
  color: var(--pf-text);
}

.shell :focus-visible {
  outline-color: var(--pf-focus);
}

.page {
  flex: 1 1 auto;
}

.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  clip: rect(0 0 0 0);
}

.skip-link:focus {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 60;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  border-radius: 0.375rem;
  background: var(--pf-play);
  padding: 0.5rem 1rem;
  font-weight: 700;
  color: #061019;
}

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

/* --------------------------------------------------------------------------
   Icons
   -------------------------------------------------------------------------- */
.lucide {
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lucide-fill {
  fill: currentColor;
}

.icon-x {
  flex-shrink: 0;
  fill: currentColor;
  stroke: none;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Shared primitives
   -------------------------------------------------------------------------- */
.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.eyebrow--source {
  color: var(--pf-source);
}

.eyebrow--play {
  color: var(--pf-play);
}

.eyebrow--refold {
  color: var(--pf-refold);
}

.section {
  width: 100%;
  max-width: 86rem;
  margin-inline: auto;
  padding: 4rem 1rem;
}

.section--bleed {
  border-top: 1px solid var(--pf-border);
  border-bottom: 1px solid var(--pf-border);
  background: var(--pf-surface);
}

.section--bordered {
  border-top: 1px solid var(--pf-border);
}

.section-head {
  display: grid;
  gap: 1.5rem;
}

.section-head--line {
  border-bottom: 1px solid var(--pf-border);
  padding-bottom: 2rem;
}

.section-title {
  margin-top: 0.75rem;
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--pf-text);
}

.section-intro {
  max-width: 42rem;
  font-size: 0.875rem;
  line-height: 1.5rem;
  color: var(--pf-text-secondary);
}

.btn {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  padding-inline: 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  transition: filter 0.15s ease, border-color 0.15s ease,
    background-color 0.15s ease;
}

.btn-source {
  border-color: transparent;
  background: var(--pf-source);
  font-weight: 900;
  color: var(--pf-ink);
}

.btn-source:hover {
  filter: brightness(1.1);
}

.btn-outline {
  border-color: var(--pf-border-strong);
  background: var(--pf-surface);
  color: var(--pf-text);
}

.btn-outline:hover {
  border-color: var(--pf-play);
  background: var(--pf-elevated);
}

.link-play {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--pf-play);
}

.link-muted {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--pf-text-secondary);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--pf-border);
  background: color-mix(in srgb, var(--pf-canvas) 90%, transparent);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

.header-inner {
  display: flex;
  height: 4rem;
  width: 100%;
  align-items: center;
  gap: 0.75rem;
  margin-inline: auto;
  padding-inline: 1rem;
}

.brand {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.625rem;
}

.brand img {
  width: 30px;
  height: 30px;
}

.brand-name {
  font-size: 1.125rem;
  font-weight: 900;
  letter-spacing: -0.035em;
  color: var(--pf-text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.btn-signin {
  display: inline-flex;
  min-height: 2.75rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: var(--pf-source);
  padding-inline: 0.875rem;
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--pf-ink);
  transition: filter 0.15s ease;
}

.btn-signin:hover {
  filter: brightness(1.1);
}

/* Hamburger + dropdown */
.menu {
  position: relative;
}

.menu > summary {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--pf-border);
  border-radius: 0.5rem;
  color: var(--pf-text-secondary);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.menu > summary::-webkit-details-marker {
  display: none;
}

.menu > summary:hover {
  border-color: var(--pf-border-strong);
  color: var(--pf-text);
}

.menu-panel {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  width: min(20rem, calc(100vw - 2rem));
  border: 1px solid var(--pf-border-strong);
  background: var(--pf-surface);
  padding: 0.75rem;
  box-shadow: 0 24px 70px rgb(0 0 0 / 0.5);
}

.menu-nav {
  display: grid;
}

.menu-link {
  display: flex;
  min-height: 3rem;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--pf-border);
  padding-inline: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--pf-text-secondary);
}

.menu-link:last-child {
  border-bottom: 0;
}

.menu-link:hover {
  color: var(--pf-text);
}

.menu-footer {
  margin-top: 0.75rem;
  border-top: 1px solid var(--pf-border);
  padding-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--pf-text-muted);
}

.menu-footer-title {
  padding-inline: 0.5rem;
  font-weight: 700;
}

.menu-footer-links {
  display: grid;
  margin-top: 0.5rem;
}

.menu-footer-link {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.5rem;
  padding-inline: 0.5rem;
  font-weight: 600;
}

.menu-footer-link:hover {
  color: var(--pf-text);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  display: grid;
  gap: 2.5rem;
  width: 100%;
  max-width: 86rem;
  margin-inline: auto;
  border-bottom: 1px solid var(--pf-border);
  padding: 3.5rem 1rem;
}

.hero-title {
  font-size: 2.65rem;
  line-height: 0.94;
  font-weight: 900;
  letter-spacing: -0.065em;
  text-wrap: balance;
  color: var(--pf-text);
}

.hero-lead {
  margin-top: 1.5rem;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.75rem;
  color: var(--pf-text-secondary);
}

.hero-cta {
  margin-top: 2rem;
}

.hero-cta-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-note {
  margin-top: 1.25rem;
  font-size: 0.75rem;
  line-height: 1.25rem;
  color: var(--pf-text-muted);
}

.hero-flow {
  min-width: 0;
}

.hero-flow-label {
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--pf-text-muted);
}

.hero-flow-grid {
  display: grid;
  min-width: 0;
}

.card {
  border: 1px solid var(--pf-border);
  padding: 1rem;
}

.card-source {
  display: flex;
  min-height: 12rem;
  flex-direction: column;
  background: var(--pf-surface);
}

.card-source:hover {
  border-color: var(--pf-source);
}

.card-fold {
  display: flex;
  min-height: 12rem;
  flex-direction: column;
  background: var(--pf-elevated);
}

.card-game {
  min-height: 12rem;
  overflow: hidden;
  border: 1px solid var(--pf-border);
  background: var(--pf-surface);
}

.card-game:hover {
  border-color: var(--pf-play);
}

.source-head {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.5rem;
}

.avatar {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: 9999px;
  object-fit: cover;
}

.source-id {
  min-width: 0;
  flex: 1 1 auto;
}

.source-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--pf-text);
}

.source-handle {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.6875rem;
  color: var(--pf-text-muted);
}

.source-text {
  display: -webkit-box;
  margin-top: 1rem;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  font-size: 0.75rem;
  line-height: 1.25rem;
  color: var(--pf-text-secondary);
}

.source-tag {
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--pf-source);
}

.fold-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--pf-refold);
}

.fold-text {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.5rem;
  color: var(--pf-text);
}

.fold-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.625rem;
}

.fold-meta dt {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--pf-text-muted);
}

.fold-meta dd {
  margin-top: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
  text-transform: capitalize;
  color: var(--pf-text-secondary);
}

.flow-arrow {
  display: flex;
  min-height: 2rem;
  align-items: center;
  justify-content: center;
  color: var(--pf-text-muted);
}

.game-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--pf-elevated);
}

.game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.card-game:hover .game-thumb img {
  transform: scale(1.018);
}

.play-badge {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  display: grid;
  place-items: center;
  border-radius: 9999px;
  background: var(--pf-play);
  color: #061019;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.3),
    0 4px 6px -4px rgb(0 0 0 / 0.3);
}

.play-badge--lg {
  width: 2rem;
  height: 2rem;
}

.play-badge--sm {
  width: 1.75rem;
  height: 1.75rem;
}

.game-meta {
  display: block;
  padding: 1rem;
}

.game-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 900;
  color: var(--pf-text);
}

.game-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.25rem;
  font-size: 0.6875rem;
  color: var(--pf-text-muted);
}

.game-sub > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-sub > span:last-child {
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Source to game — steps
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  gap: 2rem;
  padding-top: 2rem;
}

.step {
  border-top: 1px solid var(--pf-border);
  padding-top: 1rem;
}

.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.step-top .lucide {
  color: var(--pf-play);
}

.step-num {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--pf-text-muted);
}

.step-title {
  margin-top: 1.25rem;
  font-size: 1rem;
  font-weight: 900;
  color: var(--pf-text);
}

.step-text {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.5rem;
  color: var(--pf-text-muted);
}

.steps + .link-play {
  margin-top: 2.5rem;
}

/* --------------------------------------------------------------------------
   Public games
   -------------------------------------------------------------------------- */
.game-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.25rem;
}

.game-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--pf-border);
  border-radius: 0.5rem;
  background: var(--pf-surface);
}

.game-card-body {
  padding: 0.625rem 0.75rem 0.75rem;
}

.game-card-top {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.game-card-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1rem;
  color: var(--pf-text);
}

.game-card-by {
  margin-top: 0.375rem;
  font-size: 0.625rem;
  line-height: 0.875rem;
  color: var(--pf-text-muted);
}

.game-card-by p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-card-by a {
  font-weight: 600;
  color: var(--pf-text-secondary);
}

.game-card-by a.creator:hover {
  color: var(--pf-play);
}

.game-card-by a.author:hover {
  color: var(--pf-source);
}

.game-card-stats {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  font-size: 0.625rem;
  color: var(--pf-text-muted);
}

.stat {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.section-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   App tour mockup
   -------------------------------------------------------------------------- */
.app-mock {
  margin-top: 2.5rem;
  overflow: hidden;
  border: 1px solid var(--pf-border-strong);
  background: var(--pf-surface);
  box-shadow: 0 28px 80px rgb(0 0 0 / 0.28);
}

.app-mock-bar {
  display: flex;
  min-height: 3.5rem;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--pf-border);
  padding-inline: 1rem;
}

.app-mock-bar img {
  width: 24px;
  height: 24px;
}

.app-mock-name {
  font-size: 0.875rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  color: var(--pf-text);
}

.app-mock-status {
  display: inline-flex;
  margin-left: auto;
}

.dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: var(--pf-success);
}

.app-mock-native {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--pf-text-muted);
}

.app-mock-body {
  display: grid;
}

.app-col {
  display: grid;
  min-width: 0;
}

.app-col--main {
  border-bottom: 1px solid var(--pf-border);
}

.mock-block {
  display: block;
  min-width: 0;
}

.mock-block-inner {
  padding: 1.25rem;
}

.mock-divider {
  border-bottom: 1px solid var(--pf-border);
}

.mock-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--pf-text-secondary);
}

.mock-title > .lucide:first-child {
  color: var(--pf-play);
}

.mock-title .mock-arrow {
  margin-left: auto;
  color: var(--pf-text-muted);
}

.mock-text {
  margin-top: 0.75rem;
  max-width: 36rem;
  font-size: 0.875rem;
  line-height: 1.5rem;
  color: var(--pf-text-muted);
}

.mock-thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.mock-thumb {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--pf-border);
  background: var(--pf-elevated);
}

.mock-thumb-img {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
}

.mock-thumb-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mock-thumb-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--pf-text);
}

.mock-quote {
  margin-top: 1rem;
  border-left: 2px solid var(--pf-source);
  padding-left: 1rem;
}

.mock-quote-author {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--pf-text);
}

.mock-quote-text {
  display: -webkit-box;
  margin-top: 0.5rem;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 0.875rem;
  line-height: 1.5rem;
  color: var(--pf-text-muted);
}

.mock-quote-btn {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  border-radius: 0.5rem;
  background: var(--pf-source);
  padding-inline: 0.75rem;
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--pf-ink);
}

.mock-player {
  position: relative;
  aspect-ratio: 2.15 / 1;
  margin-top: 1rem;
  overflow: hidden;
  background: var(--pf-elevated);
}

.mock-player img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mock-player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgb(0 0 0 / 0.25);
}

.mock-player-play {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border-radius: 9999px;
  background: var(--pf-play);
  color: #061019;
}

.mock-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.6875rem;
  font-weight: 700;
}

.mock-tab {
  padding: 0.5rem;
  color: var(--pf-text-muted);
}

.mock-tab--active {
  border-bottom: 2px solid var(--pf-play);
  color: var(--pf-text);
}

.mock-desc {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  line-height: 1.25rem;
  color: var(--pf-text-muted);
}

.mock-pills {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.6875rem;
  font-weight: 700;
}

.mock-pill {
  border-radius: 9999px;
  background: var(--pf-selected);
  padding: 0.375rem 0.75rem;
  color: var(--pf-text);
}

.mock-pill--muted {
  padding: 0.375rem 0.5rem;
  color: var(--pf-text-muted);
}

.mock-links {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.5rem;
  row-gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.875rem;
}

.mock-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--pf-text-secondary);
}

/* --------------------------------------------------------------------------
   Difference
   -------------------------------------------------------------------------- */
.difference-grid {
  display: grid;
  gap: 2.5rem;
}

.difference-lead {
  margin-top: 1.25rem;
  max-width: 36rem;
  font-size: 0.875rem;
  line-height: 1.5rem;
  color: var(--pf-text-secondary);
}

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

.feature {
  border-top: 1px solid var(--pf-border);
  padding-top: 1.25rem;
}

.feature > .lucide {
  color: var(--pf-refold);
}

.feature-title {
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: 900;
  color: var(--pf-text);
}

.feature-text {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.5rem;
  color: var(--pf-text-muted);
}

/* --------------------------------------------------------------------------
   Support
   -------------------------------------------------------------------------- */
.support-grid {
  display: grid;
  gap: 2.5rem;
}

.support-text {
  margin-top: 1.25rem;
  max-width: 42rem;
  font-size: 0.875rem;
  line-height: 1.5rem;
  color: var(--pf-text-secondary);
}

.btn-support {
  margin-top: 1.75rem;
}

.support-aside {
  border-left: 2px solid var(--pf-refold);
  padding-left: 1.5rem;
}

.support-aside-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--pf-text-muted);
}

.support-aside-title {
  margin-top: 0.75rem;
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 900;
  color: var(--pf-text);
}

.support-aside-text {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5rem;
  color: var(--pf-text-muted);
}

.support-links {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.25rem;
  row-gap: 0.5rem;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
}

.support-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.5rem;
  color: var(--pf-text-secondary);
}

.support-link.link-play {
  color: var(--pf-play);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--pf-border);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  width: 100%;
  max-width: 86rem;
  margin-inline: auto;
  padding: 3rem 1rem;
}

.footer-brand {
  max-width: 36rem;
}

.footer-brand .brand img {
  width: 26px;
  height: 26px;
}

.footer-desc {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.5rem;
  color: var(--pf-text-muted);
}

.footer-sub {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--pf-text-secondary);
}

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--pf-text-muted);
}

.footer-nav {
  display: grid;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--pf-text-secondary);
}

.footer-link {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  gap: 0.5rem;
}

.footer-link:hover {
  color: var(--pf-text);
}

.footer-bottom {
  border-top: 1px solid var(--pf-border);
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  max-width: 86rem;
  margin-inline: auto;
  padding: 1.25rem 1rem;
  font-size: 0.75rem;
  color: var(--pf-text-muted);
}

/* --------------------------------------------------------------------------
   Boot / loading screen (simulated 15s homepage load)
   -------------------------------------------------------------------------- */
html.pf-is-loading,
html.pf-is-loading body {
  overflow: hidden;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 2rem;
  background:
    radial-gradient(circle at 50% 28%, #2aa7ff1f, transparent 24rem),
    radial-gradient(circle at 50% 118%, #ff3b9d14, transparent 22rem),
    var(--pf-canvas);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  display: flex;
  width: min(17rem, 82vw);
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.preloader-logo {
  display: grid;
  width: 5rem;
  height: 5rem;
  place-items: center;
  border: 1px solid var(--pf-border);
  border-radius: 1.5rem;
  background: var(--pf-elevated);
  animation: pf-boot-pulse 1.8s ease-out infinite;
}

.preloader-logo img {
  width: 3rem;
  height: 3rem;
}

@keyframes pf-boot-pulse {
  0% {
    box-shadow: 0 0 0 0 rgb(42 167 255 / 0.45);
  }
  70% {
    box-shadow: 0 0 0 1.35rem rgb(42 167 255 / 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgb(42 167 255 / 0);
  }
}

.preloader-wordmark {
  margin-top: 1.5rem;
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--pf-text);
}

.preloader-tagline {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--pf-text-muted);
}

.preloader-status {
  margin-top: 2rem;
  min-height: 1.25rem;
  font-size: 0.8125rem;
  line-height: 1.25rem;
  color: var(--pf-text-secondary);
}

.preloader-bar {
  position: relative;
  width: 100%;
  height: 4px;
  margin-top: 0.875rem;
  overflow: hidden;
  border-radius: 9999px;
  background: var(--pf-selected);
}

.preloader-bar-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--pf-source), var(--pf-play));
  transition: width 0.18s linear;
}

.preloader-percent {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--pf-text-muted);
  font-variant-numeric: tabular-nums;
}

/* Reduced-motion users get a static logo instead of a pulsing one. */
@media (prefers-reduced-motion: reduce) {
  .preloader-logo {
    animation: none;
  }
}
