/* VisTok's own site, as the game's phone draws the app (after vistok.tfinn.co.za): in dark mode its plum, pink,
   cream words, teal and the gold badges; in light mode the same app on cream, plum words and a deeper pink. Barlow
   Condensed in capitals for headings, IBM Plex Mono for handles, tags and captions, as the app has them. The game's
   strip, its band at the foot of the home page and its own page are the game's: Angie's hoodie teal, cream, and the
   pink of the like on her hook, whatever the mode. */
@font-face { font-family: "Barlow Condensed"; src: url(/fonts/BarlowCondensed-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(/fonts/IBMPlexMono.ttf) format("truetype"); font-weight: 400; font-display: swap; }

:root {
  --bg: #f6eee4;
  --tint: #eee2d4;
  --card: #fffaf3;
  --ink: #1e0f24;
  --ink-soft: #5e4a63;
  --rule: #dccbbf;
  --pink: #ff4b93;
  --pink-ink: #b8145c;
  --on-pink: #14081a;
  --teal: #17696b;
  --her: #ffd0e3;
  --tag: #b8145c;
  --gold: #ffd36b;
  --shadow: 0 14px 34px rgba(40, 12, 40, 0.14);
  /* The game's own. */
  --game-bg: #062a2f;
  --game-deep: #041d21;
  --game-ink: #fff6e5;
  --game-soft: #b9d6d2;
  --game-teal: #5fd6d0;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14081a;
    --tint: #1b0c22;
    --card: #22102a;
    --ink: #f6eee4;
    --ink-soft: #b39ab3;
    --rule: #3a1d40;
    --pink-ink: #ff7ab0;
    --teal: #29a3a5;
    --her: #a3164f;
    --tag: #ffd0e3;
    --shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.075rem/1.6 var(--body); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pink-ink); text-underline-offset: 0.18em; }
a:hover { color: var(--pink); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; letter-spacing: 0.01em; text-transform: uppercase; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
.shell { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.centre { text-align: center; }
.small { font-size: 0.92rem; }
.dim { color: var(--ink-soft); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--card); padding: 8px 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }

/* The game's strip across the top of every page. */
.game-strip { background: var(--game-deep); color: var(--game-ink); font-size: 0.92rem; border-bottom: 1px solid rgba(95, 214, 208, 0.3); }
.strip-row a { display: flex; align-items: center; gap: 12px; padding: 5px 0; color: inherit; text-decoration: none; }
.strip-row a:hover b { color: var(--game-teal); }
.strip-logo { width: 76px; flex: none; }
.strip-note { color: var(--game-soft); }

/* The header: VisTok's mark and wordmark, the tabs, the Music switch. */
.site-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.head-row { display: flex; align-items: center; gap: 24px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand .mark { width: 42px; border-radius: 50%; }
.brand b { font: 700 1.9rem/1 var(--display); letter-spacing: 0.01em; color: #ff4b93; text-shadow: 0 3px 0 #a3164f; -webkit-text-stroke: 1px #a3164f; }
@media (prefers-color-scheme: dark) { .brand b { color: #fff; } }
.site-nav { display: flex; gap: 22px; }
.site-nav a { color: var(--ink); text-decoration: none; font: 700 1.2rem var(--display); text-transform: uppercase; letter-spacing: 0.03em; padding: 6px 0; border-bottom: 3px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--ink); border-color: var(--pink); }
.menu-toggle { display: none; }
.switch { font: 400 0.82rem var(--mono); color: var(--ink); background: none; border: 1px solid var(--rule); border-radius: 999px; padding: 6px 12px; cursor: pointer; white-space: nowrap; }
.switch[aria-pressed="true"] { background: var(--pink); color: var(--on-pink); border-color: var(--pink); }
.switch.waiting b { animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0.3; } }

/* Buttons, chips, badges, kickers. */
.button { display: inline-flex; align-items: center; gap: 8px; font: 700 1.15rem var(--display); text-transform: uppercase; letter-spacing: 0.04em; padding: 11px 24px; border-radius: 14px; background: var(--pink); color: var(--on-pink); border: 2px solid var(--pink); text-decoration: none; cursor: pointer; }
.button:hover { background: #ff6fa8; border-color: #ff6fa8; color: var(--on-pink); }
.button.ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.button.ghost:hover { border-color: var(--pink); color: var(--ink); }
.button.soon { background: transparent; color: var(--ink-soft); border-color: var(--rule); cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.chips { list-style: none; padding: 0; margin: 1.2em 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
.chips a { display: block; padding: 4px 14px; border: 1px solid currentColor; border-radius: 999px; text-decoration: none; font: 400 0.9rem var(--mono); color: inherit; }
.chips .soon a { opacity: 0.75; }
.chips .note { font: 700 1rem var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--pink); padding-left: 4px; }
.vbadge { display: inline-block; vertical-align: middle; font: 700 0.62rem/1 var(--display); letter-spacing: 0.06em; color: #04090c; background: var(--gold); padding: 3px 4px 2px; border-radius: 2px; text-transform: uppercase; }
h1 .vbadge { font-size: 0.95rem; padding: 4px 6px 3px; transform: translateY(-0.4em); }
h3 .vbadge { font-size: 0.7rem; }
.kicker { font: 400 0.82rem/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--pink-ink); margin-bottom: 0.8em; }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 46em; }
.centre .lede { margin-inline: auto; }
.tags { font: 400 0.9rem var(--mono); color: var(--tag); margin: 0.4em 0 0; }
.icon { display: inline-block; width: 18px; height: 18px; vertical-align: -3px; image-rendering: pixelated; }
.avatar { border-radius: 50%; flex: none; background: var(--rule); }

/* A line someone says in the game, as a speech box. */
.said { margin: 0 0 14px; padding: 12px 16px; background: var(--card); border: 1px solid var(--rule); border-radius: 16px 16px 16px 4px; max-width: 34em; }
.said p { margin: 0; font: 400 0.98rem/1.5 var(--mono); }
.said footer { font: 700 0.95rem var(--display); text-transform: uppercase; letter-spacing: 0.04em; color: var(--teal); margin-top: 4px; }
.said.pink { border-color: var(--pink); }
.said.pink footer { color: var(--pink-ink); }

/* Her profile: the loft as the cover, her picture in the pink ring, her name, badge and counts, and her bio. */
.profile { padding-bottom: 48px; }
.cover { margin: 0; position: relative; }
.cover img { width: 100%; height: clamp(200px, 30vw, 380px); object-fit: cover; object-position: 50% 45%; }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg), transparent 45%); }
.profile-row { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: start; margin-top: -96px; position: relative; }
.avatar-big { width: 184px; height: 184px; border-radius: 50%; padding: 6px; background: var(--pink); box-shadow: 0 0 0 6px var(--bg), var(--shadow); }
.avatar-big img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #f6eee4; }
.profile-copy { padding-top: 104px; }
.profile h1 { margin-bottom: 0.1em; }
.handle { font: 400 1rem var(--mono); color: var(--ink-soft); margin-bottom: 0.8em; }
.counts { list-style: none; padding: 0; margin: 0 0 1em; display: flex; gap: 28px; flex-wrap: wrap; font: 400 0.9rem var(--mono); color: var(--ink-soft); }
.counts b { display: block; font: 700 1.9rem/1 var(--display); color: var(--ink); }
.bio { font-size: 1.15rem; max-width: 36em; }

/* Bands and sections. */
.band { padding-block: clamp(52px, 8vw, 96px); }
.band.tint { background: var(--tint); }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split.flip > figure { order: 2; }
.photo { margin: 0; }
.photo img { border-radius: 16px; box-shadow: var(--shadow); width: 100%; }
.snowy-pic { margin: 0; display: grid; place-items: center; }
.snowy-pic img { width: min(340px, 80%); filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.25)); }
.tabs { font-size: 1.4rem; display: flex; gap: 24px; border-bottom: 1px solid var(--rule); margin-bottom: 24px; }
.tabs .on { border-bottom: 3px solid var(--pink); padding-bottom: 8px; margin-bottom: -1px; }
.grid-posts { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-posts a { position: relative; display: block; border-radius: 12px; overflow: hidden; }
.grid-posts img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; transition: transform 0.3s; }
.grid-posts a:hover img { transform: scale(1.03); }
.grid-posts .likes { position: absolute; left: 8px; bottom: 8px; background: rgba(4, 9, 12, 0.55); border-radius: 999px; padding: 4px 6px; line-height: 0; }
.grid-posts p { margin: 10px 0 0; font-size: 1rem; }

/* VisTok Charts: rows as the app draws them. */
.chart { list-style: none; padding: 0; margin: 1.4em 0; display: grid; gap: 8px; text-align: left; }
.row { display: flex; align-items: center; gap: 14px; padding: 10px 16px; background: var(--card); border: 1px solid var(--rule); border-radius: 12px; }
.row .place { font: 700 1.8rem/1 var(--display); color: var(--ink-soft); width: 1.4em; text-align: center; }
.row:nth-child(-n+3) .place { color: var(--pink-ink); }
.row .who { flex: 1; min-width: 0; }
.row .who b { display: block; font: 700 1.25rem/1.1 var(--display); text-transform: uppercase; }
.row .who small { font: 400 0.78rem var(--mono); color: var(--ink-soft); }
.row .heat { font: 700 1.5rem var(--display); white-space: nowrap; }
.row .heat span { font-size: 1rem; margin-right: 4px; }
.row.her { background: var(--her); border: 2px solid var(--pink); }
.row.her .place { color: var(--ink); }
.row.her .who small { color: var(--ink); }
.gap { text-align: center; color: var(--ink-soft); font: 700 1.4rem/0.6 var(--display); letter-spacing: 0.3em; }
.charts-head { display: flex; gap: 28px; align-items: center; }
.charts-logo { width: 120px; flex: none; }
.gold { color: var(--ink); -webkit-text-stroke: 0; }
@media (prefers-color-scheme: dark) { .gold { color: var(--gold); } }
.post-card { background: var(--card); border: 1px solid var(--rule); border-radius: 16px; padding: 20px 22px; }
.post-card header { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.post-card .who b { display: block; font: 700 1.25rem/1.1 var(--display); text-transform: uppercase; }
.post-card .who small { font: 400 0.8rem var(--mono); color: var(--ink-soft); }
.post-card > p:first-of-type { font-size: 1.15rem; }
.rail { display: flex; gap: 8px; align-items: center; font: 400 0.9rem var(--mono); color: var(--ink-soft); margin: 14px 0; }
.rail .icon:not(:first-child) { margin-left: 10px; }
.comments { list-style: none; padding: 14px 0 0; margin: 0; border-top: 1px solid var(--rule); display: grid; gap: 12px; }
.comments li { display: flex; gap: 10px; align-items: flex-start; font-size: 1rem; }
.comments small { display: block; font: 400 0.78rem var(--mono); color: var(--ink-soft); }

/* The creators: each full length on their own colour. */
.creators { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.creator { display: grid; grid-template-columns: 180px 1fr; gap: 20px; background: var(--card); border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; scroll-margin-top: 90px; }
.creator figure { margin: 0; display: flex; align-items: flex-end; justify-content: center; padding-top: 16px; background: radial-gradient(circle at 50% 70%, var(--sig, #29a3a5), transparent 72%); }
.creator figure img { max-height: 280px; width: auto; }
.creator > div { padding: 20px 20px 16px 0; }
.creator h3 { margin-bottom: 0.15em; }
.creator .meta { font: 400 0.82rem var(--mono); color: var(--ink-soft); }
.latest { display: flex; gap: 10px; align-items: center; font: 400 0.92rem/1.4 var(--mono); padding-top: 12px; border-top: 1px solid var(--rule); margin: 0; }
.creator.joenie { --sig: rgba(122, 201, 67, 0.55); }
.creator.sepia { --sig: rgba(64, 140, 220, 0.5); }
.creator.oomkob { --sig: rgba(80, 110, 170, 0.5); }
.creator.nishi { --sig: rgba(232, 92, 60, 0.45); }
.creator.volante { --sig: rgba(190, 30, 50, 0.45); }
.creator.seraph { --sig: rgba(242, 201, 76, 0.55); }
.notice { margin-top: 40px; text-align: center; font: 700 1.5rem var(--display); text-transform: uppercase; letter-spacing: 0.03em; }

/* Discover: the places as the game paints them. */
.places { display: grid; gap: 44px; }
.place { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(22px, 4vw, 48px); align-items: center; scroll-margin-top: 90px; }
.place figure { margin: 0; position: relative; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.place figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.place figure .tags { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 40px 16px 12px; color: #ffd0e3; background: linear-gradient(0deg, rgba(10, 4, 14, 0.8), transparent); }
.finds { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.finds li { font: 400 0.85rem var(--mono); border: 1px solid var(--rule); background: var(--card); border-radius: 999px; padding: 4px 12px; }
.tips { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.tips li { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 16px 18px; }
.tips b { display: block; font: 700 1.3rem var(--display); text-transform: uppercase; color: var(--pink-ink); }
.shot-wide { margin: 0; }
.shot-wide img { border-radius: 14px; box-shadow: var(--shadow); }

/* The game's band: the game's own colours. */
.game-band { background: radial-gradient(ellipse at 50% 0%, #0d4a50, var(--game-bg) 60%, var(--game-deep)); color: var(--game-ink); }
.game-band h2 { margin: 0 auto 0.6em; max-width: 620px; }
.game-band .lede { color: var(--game-ink); font-size: 1.3rem; max-width: 34em; }
.game-band .chips .note, .game-page .chips .note { color: var(--game-teal); }
.game-band .button, .game-page .button:not(.soon) { background: var(--pink); border-color: var(--pink); color: #14081a; }

/* Inner pages. */
.page { padding-block: 48px 88px; }
.page-head { margin-bottom: 40px; }
.section { margin-top: 64px; }
.section.two, .two { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.panel { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 24px 28px; }
.grid { display: grid; gap: 22px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid + .small { margin-top: 14px; }
.card { background: var(--card); border-radius: 14px; overflow: hidden; border: 1px solid var(--rule); }
.card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.card-body { padding: 16px 20px 6px; }
.card-body .kicker { margin-bottom: 0.3em; }

/* The game's page: the game's own colours, whatever the mode. */
.game-page { background: linear-gradient(180deg, var(--game-bg), var(--game-deep)); color: var(--game-ink); --ink: var(--game-ink); --ink-soft: var(--game-soft); --rule: rgba(95, 214, 208, 0.25); --card: #0a363b; --pink-ink: #ff8dbb; }
.game-page h2, .game-page h3 { color: var(--game-teal); }
.game-logo { width: min(620px, 100%); margin: 0 auto 1em; }
.shot-big { margin: 0; }
.shot-big img, .shots img { border-radius: 10px; border: 1px solid rgba(95, 214, 208, 0.3); }
.stores { list-style: none; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.store-badge { display: block; line-height: 0; }
.badge-img { display: block; max-width: 100%; height: auto; }
.badge-img.apple { width: 120px; height: 40px; margin: 10px; }
.badge-img.google { width: 155px; height: auto; }
.trademarks { max-width: 60em; font-size: 0.75rem; }
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.shots a { display: block; }

.faq > div { padding: 14px 0; border-top: 1px solid var(--rule); }
.faq dt { font: 700 1.3rem var(--display); text-transform: uppercase; color: var(--pink-ink); }
.faq dd { margin: 4px 0 0; }
.about { text-align: center; }
.about img { width: min(460px, 100%); margin: 0 auto 10px; }
.about p { font-family: var(--mono); }
.about .about-tfinn { width: 150px; margin-top: 28px; border-radius: 12px; }
@media (prefers-color-scheme: light) { .about img { background: #14081a; border-radius: 18px; padding: 10px; } .about .about-tfinn { padding: 6px; } }
.credits { padding: 0; list-style: none; margin-top: 40px; }
.credits li { padding: 10px 0; border-top: 1px solid var(--rule); }
.prose h2 { font-size: 1.7rem; margin-top: 1.4em; color: var(--pink-ink); }
.lost { text-align: center; }
.lost .lede, .lost p { margin-inline: auto; }

/* The footer. */
.site-foot { background: #0e0512; color: #d9c9d9; padding-block: 40px 76px; font-size: 0.95rem; border-top: 1px solid #3a1d40; }
.site-foot a { color: #ff7ab0; }
.foot-row { display: flex; gap: 32px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.studio { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.studio img { width: 64px; }
.studio strong { display: block; color: #f6eee4; }
.studio small { color: #b39ab3; }
.site-foot nav { display: flex; gap: 18px; margin-bottom: 6px; }
.site-foot .dim { color: #9c879c; }

/* The screenshots' lightbox. */
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(10, 4, 14, 0.94); display: grid; place-items: center; padding: 16px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 82vh; width: auto; border-radius: 8px; }
.lightbox-bar { display: flex; gap: 10px; justify-content: center; margin-top: 12px; color: #f6eee4; align-items: center; font-family: var(--mono); }
.lightbox-bar button { font: 400 0.9rem var(--mono); background: none; color: #ff7ab0; border: 1px solid rgba(255, 75, 147, 0.5); border-radius: 999px; padding: 6px 14px; cursor: pointer; }

/* Snowy, walking along the foot of the window. */
.snowy-layer { position: fixed; left: 0; right: 0; bottom: 0; height: 64px; pointer-events: none; z-index: 30; overflow: hidden; }
.snowy-layer img { position: absolute; left: 0; bottom: 2px; height: 56px; width: auto; will-change: transform; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3)); }
.snowy-layer img.loaf { height: 44px; }

/* A phone. */
@media (max-width: 860px) {
  .head-row { flex-wrap: wrap; gap: 10px; min-height: 58px; padding-block: 8px; }
  .switch .word { display: none; }
  .js .menu-toggle { display: block; font: 400 0.85rem var(--mono); background: none; border: 1px solid var(--rule); color: var(--ink); border-radius: 999px; padding: 6px 14px; order: 2; }
  .switch { order: 1; }
  .site-nav { order: 3; width: 100%; flex-direction: column; gap: 0; }
  .js .site-nav:not(.open) { display: none; }
  .site-nav a { padding: 10px 0; border-top: 1px solid var(--rule); border-bottom: none; }
  .brand .mark { width: 36px; }
  .brand b { font-size: 1.6rem; }
  .strip-note { display: none; }
  .profile-row { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 12px; margin-top: -84px; }
  .avatar-big { width: 156px; height: 156px; }
  .profile-copy { padding-top: 0; }
  .counts, .profile .actions { justify-content: center; }
  .bio { margin-inline: auto; }
  .split, .section.two, .two, .creators, .place, .grid.three, .shots { grid-template-columns: 1fr; }
  .split.flip > figure { order: 0; }
  .grid-posts { grid-template-columns: 1fr 1fr; gap: 12px; }
  .grid-posts p { font-size: 0.92rem; }
  .creator { grid-template-columns: 120px 1fr; gap: 14px; }
  .creator figure img { max-height: 210px; }
  .creator > div { padding: 16px 16px 14px 0; }
  .charts-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .charts-logo { width: 84px; }
  .row { padding: 8px 12px; gap: 10px; }
  .row .avatar { width: 38px; height: 38px; }
}
@media (max-width: 420px) {
  .grid-posts { grid-template-columns: 1fr; }
  .creator { grid-template-columns: 1fr; }
  .creator figure img { max-height: 240px; }
  .creator > div { padding: 0 18px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
