/* VPC Apps site. Brand: purple -> pink -> peach gradient, Fredoka headings.
   Light by default (follows the system); [data-theme] on <html> overrides. */
@font-face { font-family: 'Fredoka'; src: url('/assets/fonts/fredoka.woff') format('woff'); font-weight: 300 700; font-display: swap; }

:root {
  --bg: #fff7f2; --surface: #ffffff; --surface-2: #fff0f4; --ink: #2a1630; --muted: #6b5470; --line: #f0dbe3;
  --accent: #d6336c; --accent-ink: #ffffff; --link: #b8245a; --focus: #7b4fe0;
  --grad: linear-gradient(120deg, #7b4fe0 0%, #ff5a8a 55%, #ffa070 100%);
  --shadow: 0 1px 2px rgba(60, 20, 50, .06), 0 8px 24px rgba(60, 20, 50, .08);
  --radius: 18px; --display: 'Fredoka', 'Trebuchet MS', system-ui, sans-serif;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #150f1e; --surface: #1f1729; --surface-2: #2a1f37; --ink: #f6eef8; --muted: #b9a8c2; --line: #3a2d48;
    --accent: #ff6b98; --accent-ink: #1b0f1f; --link: #ff8db0; --focus: #b79cff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #150f1e; --surface: #1f1729; --surface-2: #2a1f37; --ink: #f6eef8; --muted: #b9a8c2; --line: #3a2d48;
  --accent: #ff6b98; --accent-ink: #1b0f1f; --link: #ff8db0; --focus: #b79cff;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--body); overflow-x: hidden; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 650; line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(34px, 6vw, 56px); letter-spacing: -.01em; }
h2 { font-size: clamp(24px, 3.4vw, 30px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 28px; } }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none;
  font: 650 21px var(--display); }
.brand img { border-radius: 9px; }
.top nav { margin-left: auto; overflow-x: auto; }
.top nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.top nav a { display: block; padding: 8px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 550; font-size: 15.5px; }
.top nav a:hover { background: var(--surface-2); }
.top nav a[aria-current="page"] { color: var(--accent); }
.theme { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.theme span { width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(90deg, currentColor 50%, transparent 50%); border: 2px solid currentColor; }
@media (max-width: 620px) {
  .bar { padding-top: 8px; padding-bottom: 4px; }
  .top nav { order: 3; width: 100%; margin: 0 -6px; }
  .top nav a { padding: 6px 8px; font-size: 15px; }
  .theme { margin-left: auto; }
}

/* Buttons, chips */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: 999px;
  font: 600 16px var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.ghost { border-color: var(--accent); color: var(--link); background: transparent; }
.btn.play { background: var(--ink); color: var(--bg); }
.cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-weight: 600; font-size: 15px; }
.link { background: none; border: 0; color: var(--link); font: inherit; text-decoration: underline; cursor: pointer; padding: 0; }

/* Hero */
.hero { background: var(--grad); color: #fff; }
.hero-grid { display: grid; gap: 24px; align-items: center; padding-top: 48px; padding-bottom: 52px; }
@media (min-width: 820px) { .hero-grid { grid-template-columns: 1.4fr 1fr; padding-top: 72px; padding-bottom: 76px; } }
.hero h1 { color: #fff; text-shadow: 0 3px 0 rgba(60, 10, 60, .18); }
.hero .lead { font-size: 19px; max-width: 34em; }
.hero .btn.primary { background: #fff; color: #b8245a; }
.hero .btn.ghost { border-color: #fff; color: #fff; }
.hero-art { width: min(320px, 70vw); justify-self: center; border-radius: 32px; box-shadow: 0 20px 50px rgba(60, 10, 70, .35); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: 13px; opacity: .9; margin-bottom: 10px; }
.lead { font-size: 18.5px; color: inherit; }

/* Sections */
.section { padding-top: 40px; padding-bottom: 8px; }
.page-head { padding-top: 48px; }
.page-head .lead { color: var(--muted); max-width: 40em; }
.narrow { max-width: 820px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.split { display: grid; gap: 28px; }
@media (min-width: 860px) { .split { grid-template-columns: 1.3fr 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin: 0 0 16px; box-shadow: var(--shadow); }
.panel h2 { font-size: 22px; }
.panel p:last-child { margin-bottom: 0; }
.checks { padding-left: 0; list-style: none; }
.checks li { position: relative; padding-left: 30px; margin: 0 0 10px; }
.checks li::before { content: ''; position: absolute; left: 4px; top: .45em; width: 14px; height: 14px; border-radius: 50%; background: var(--grad); }
.prose h2 { margin-top: 1.4em; }
.prose h3 { margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }

/* Cards */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.game-card .cover { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.game-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.game-card:hover .cover img { transform: scale(1.03); }
.card-body { display: flex; gap: 14px; padding: 16px 18px 6px; align-items: flex-start; }
.card-body .icon { border-radius: 16px; flex: none; }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body h3 a:hover { color: var(--link); }
.card-body p { font-size: 15.5px; margin-bottom: 10px; }
.game-card.big { display: grid; }
@media (min-width: 860px) { .game-card.big { grid-template-columns: 1.6fr 1fr; } .game-card.big .cover { aspect-ratio: auto; height: 100%; } .game-card.big .card-body { padding: 26px; } .game-card.big h3 { font-size: 30px; } }
.game-card.big .more { color: var(--muted); }
.game-card.big .cta { margin-top: 14px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.tag.web { color: #6a3fd6; background: #efe8ff; }
.tag.android { color: #1d7a4f; background: #e1f5eb; }
:root[data-theme="dark"] .tag.web, :root[data-theme="dark"] .tag.android { background: var(--surface-2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tag.web, :root:not([data-theme="light"]) .tag.android { background: var(--surface-2); } }
:root[data-theme="dark"] .tag.web { color: #c3b0ff; } :root[data-theme="dark"] .tag.android { color: #7fe0b0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tag.web { color: #c3b0ff; } :root:not([data-theme="light"]) .tag.android { color: #7fe0b0; } }

/* Game page */
.crumbs { padding-top: 18px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.game-head { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; padding-top: 18px; }
.game-head .icon { border-radius: 22px; box-shadow: var(--shadow); }
.game-head > div { flex: 1 1 300px; }
.game-head .lead { color: var(--muted); }
.player { position: relative; border-radius: var(--radius); overflow: hidden; background: #120c1a; box-shadow: var(--shadow);
  aspect-ratio: 16 / 9; display: grid; place-items: center; }
.player > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.62); }
.player.tall { aspect-ratio: 9 / 16; max-height: 82vh; margin: 0 auto; }
@media (max-width: 700px) { .player { aspect-ratio: auto; height: min(78vh, 760px); } }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.play-btn { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 12px; min-height: 60px; padding: 14px 28px;
  border-radius: 999px; border: 0; background: #fff; color: #b8245a; font: 650 21px var(--display); cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.play-btn:hover { transform: scale(1.04); }
.play-btn .tri { width: 0; height: 0; border-left: 16px solid currentColor; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.player-note { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; color: #fff; font-size: 14px; margin: 0; text-shadow: 0 1px 3px #000; padding: 0 12px; }
.player.on > img, .player.on .play-btn, .player.on .player-note { display: none; }
.player-links { display: flex; gap: 18px; justify-content: flex-end; font-size: 15px; margin-top: 10px; }
.shots { display: flex; gap: 14px; overflow-x: auto; list-style: none; padding: 4px 2px 14px; margin: 0; scroll-snap-type: x mandatory; }
.shots li { flex: none; width: min(230px, 62vw); scroll-snap-align: start; }
.shots img { border-radius: 14px; border: 1px solid var(--line); }
.trailer { width: 100%; max-height: 70vh; border-radius: var(--radius); background: #000; }
.facts { width: 100%; border-collapse: collapse; margin-bottom: 22px; font-size: 15.5px; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.facts th { width: 38%; color: var(--muted); font-weight: 600; }
.ad-slot { margin-top: 16px; }

/* Press */
.press-card { display: flex; gap: 16px; padding: 18px; margin-bottom: 14px; align-items: flex-start; }
.press-card .icon { border-radius: 14px; flex: none; }
.press-card p { margin-bottom: 6px; }
.downloads a { white-space: nowrap; }

/* Legacy policy pages */
.legacy h1 { font-size: clamp(28px, 4.6vw, 40px); margin-top: .6em; }
.legacy h2 { font-size: 22px; margin-top: 1.4em; }
.legacy .card { padding: 16px 18px; margin: 12px 0; box-shadow: none; }

/* Footer */
.foot { margin-top: 64px; padding: 36px 0 28px; border-top: 1px solid var(--line); background: var(--surface); }
.foot-grid { display: grid; gap: 22px; grid-template-columns: 1fr; margin-bottom: 18px; }
@media (min-width: 700px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr; } }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot .brand { font-size: 19px; margin-bottom: 8px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
