/* Sortlight website. The look is the Play listing's ("Follow the light"): one sky that goes from night at the top of
   the page to first light at its foot, a strand of light beads running through it, the game's dark screens as cards. */
@font-face { font-family: "Raleway"; src: url("raleway.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --ink: #fff;
  --soft: rgba(255, 255, 255, .9);
  --mute: rgba(255, 255, 255, .74);
  --dusk: #1b0f4f;                         /* the ink used on the first-light bands */
  --panel: rgba(22, 11, 62, .94);
  --line: rgba(255, 255, 255, .2);
  --card: #05060c;
  --w: 1120px;
  --pad: clamp(20px, 5.4vw, 44px);
  --gap: clamp(72px, 13vw, 132px);
  --shade: 0 2px 18px rgba(8, 4, 40, .5), 0 1px 2px rgba(8, 4, 40, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: #100a40; color: var(--ink);
  font: 450 1.0625rem/1.68 "Raleway", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-feature-settings: "lnum", "pnum"; letter-spacing: .012em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video, svg { max-width: 100%; }
img, video { display: block; height: auto; }
a { color: inherit; }
p { margin: 0 0 1.05em; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
:focus-visible { outline: 3px solid #fff; outline-offset: 4px; border-radius: 6px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.defs { position: absolute; }
.wrap { width: min(100% - 2 * var(--pad), var(--w)); margin-inline: auto; position: relative; }

/* ------------------------------------------------------------------ the sky: one band per section, each ending
   on the colour the next begins with, so the page is one gradient and the text on it always has its contrast */
.band { position: relative; padding-block: var(--gap); background: linear-gradient(180deg, var(--a), var(--b)); }
.band::before {                             /* motes of light */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("motes.svg") var(--mx, 0) var(--my, 0) / 760px 980px; opacity: .55;
}
/* a band's content sits above every band's sky, so a card's glow is never cut off where two bands meet */
.band > * { position: relative; z-index: 1; }
.b1  { --a: #0f093c; --b: #2a1a8a; }
.b2  { --a: #2a1a8a; --b: #4a2ac0; --mx: 210px; --my: 130px; }
.b3  { --a: #4a2ac0; --b: #6a28c4; --mx: 480px; --my: 610px; }
.b4  { --a: #6a28c4; --b: #8a2cb8; --mx: 90px;  --my: 320px; }
.b5  { --a: #8a2cb8; --b: #a83296; --mx: 350px; --my: 770px; }
.b6  { --a: #a83296; --b: #b83a8a; --mx: 610px; --my: 60px; }
.b7  { --a: #b83a8a; --b: #c8409a; --mx: 150px; --my: 450px; }
.b8  { --a: #c8409a; --b: #d8506a; --mx: 430px; --my: 240px; }
.b9  { --a: #d8506a; --b: #e46a4c; --mx: 30px;  --my: 690px; }
.b10 { --a: #e46a4c; --b: #ee8640; --mx: 560px; --my: 380px; }
.b11 { --a: #ee8640; --b: #fbb844; --mx: 280px; --my: 840px; }
.b12 { --a: #fbb844; --b: #ffd866; --mx: 120px; --my: 200px; }
/* short pages take the same sky in fewer steps */
.s1 { --a: #0f093c; --b: #3a22a6; }
.s2 { --a: #3a22a6; --b: #8a2cb8; --mx: 300px; --my: 420px; }
.s3 { --a: #8a2cb8; --b: #c8409a; --mx: 520px; --my: 150px; }
.fsub { background: linear-gradient(180deg, #c8409a 0, #ee8640 36%, #fbb844 64%, #ffd866 100%); --mx: 80px; --my: 640px; }
.foot.fsub { padding-top: 150px; }

/* ------------------------------------------------------------------ the strand of light beads */
.strand { position: absolute; left: 0; top: 0; width: 100%; translate: 0 -50%; pointer-events: none; overflow: visible; z-index: 2; }
.strand.in-flow { position: relative; translate: none; display: block; }
.thread { fill: none; stroke: rgba(255, 250, 240, .8); stroke-width: 2.4; filter: drop-shadow(0 0 5px rgba(255, 255, 255, .55)); }
.unlit { fill: rgba(255, 255, 255, .2); stroke: rgba(255, 255, 255, .75); stroke-width: 2; }
.strand-dim .thread { stroke: rgba(255, 255, 255, .55); stroke-width: 2; filter: none; }
/* with script, a strand's beads come on one after another as it scrolls into view; without, they are simply lit */
.js .bead { opacity: .16; transition: opacity .6s ease calc(var(--i) * 85ms); }
.js .on .bead { opacity: 1; }

/* ------------------------------------------------------------------ header */
.top { position: absolute; inset: 0 0 auto 0; z-index: 5; padding-block: 16px; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.top .home { display: flex; align-items: center; gap: 12px; text-decoration: none; min-height: 48px; }
.top .home img { width: 40px; height: 40px; border-radius: 22%; box-shadow: 0 4px 16px rgba(4, 2, 30, .5); }
.top .home svg { height: 30px; width: auto; filter: drop-shadow(0 0 8px rgba(200, 170, 255, .5)); }
.top nav { display: flex; gap: clamp(4px, 2vw, 22px); }
.top nav a {
  display: inline-flex; align-items: center; min-height: 48px; padding-inline: 10px; text-decoration: none;
  font-weight: 600; font-size: .9375rem; letter-spacing: .04em; color: var(--soft); text-shadow: var(--shade); white-space: nowrap;
}
@media (max-width: 520px) { .top .home svg { display: none; } }
.top nav a:hover, .top nav a[aria-current] { color: #fff; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

/* ------------------------------------------------------------------ hero */
.hero { padding-top: 96px; padding-bottom: clamp(84px, 14vw, 130px); overflow: hidden; }
.hero .strand.top-thread { top: 116px; }
.hero-grid { display: grid; gap: 34px; justify-items: center; text-align: center; padding-top: 74px; }
.wordmark { display: block; width: min(86vw, 520px); height: auto; overflow: visible;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, .5)) drop-shadow(0 0 26px rgba(170, 130, 255, .6)); }
.wordmark path { fill: none; stroke-width: 26; stroke-linejoin: round; }
h1.genre { margin-top: 20px; font-size: clamp(.9375rem, 3.6vw, 1.375rem); font-weight: 500; letter-spacing: .42em; margin-right: -.42em;
  text-transform: none; text-shadow: var(--shade); }
.lead { margin: 26px auto 0; max-width: 21em; font-size: clamp(1.25rem, 4.8vw, 1.625rem); line-height: 1.42; font-weight: 500; text-shadow: var(--shade); }
.get { margin-top: 26px; display: grid; justify-items: center; gap: 6px; }
.badge { display: inline-block; border-radius: 14px; line-height: 0; transition: transform .2s ease, filter .2s ease; }
.badge img { width: 232px; height: auto; }
.badge:hover { transform: translateY(-2px); filter: drop-shadow(0 8px 22px rgba(4, 2, 30, .55)); }
.get small { font-size: .9375rem; font-weight: 500; letter-spacing: .05em; color: var(--soft); text-shadow: var(--shade); }
.get small i { font-style: normal; opacity: .6; margin-inline: .5em; }

.phone {
  position: relative; width: min(64vw, 290px); aspect-ratio: 9 / 20; padding: 7px; border-radius: 34px; background: #0a0b14;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .26), 0 0 0 5px rgba(8, 6, 30, .55), 0 40px 90px rgba(4, 2, 30, .6), 0 0 130px rgba(80, 150, 255, .5);
}
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 27px; overflow: hidden; background: var(--card); }
.phone img, .phone video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone video { opacity: 0; transition: opacity .5s ease; }
.phone video.playing { opacity: 1; }

@media (min-width: 760px) {
  .hero { padding-top: 120px; }
  .hero .strand.top-thread { top: 132px; }
  .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center; justify-items: start; text-align: left; gap: 56px; padding-top: 96px; }
  .wordmark { width: min(46vw, 560px); }
  .lead { margin-left: 0; }
  .get { justify-items: start; }
  .badge { margin-left: -12px; }             /* the badge file carries its own clear space */
  .get small { padding-left: 6px; }
  .hero .phone { width: min(34vw, 300px); justify-self: center; rotate: 4deg; }
}

/* ------------------------------------------------------------------ captions (the listing's two lines: the second one lit) */
.cap { font-size: clamp(2.125rem, 8.4vw, 3.5rem); line-height: 1.12; letter-spacing: .004em; text-shadow: 0 4px 26px rgba(8, 4, 40, .55), 0 1px 3px rgba(8, 4, 40, .5); }
.cap b { display: block; font-weight: 700; color: var(--lit, #fff); text-shadow: 0 0 30px var(--glow, #fff), 0 0 80px var(--glow, #fff), 0 3px 14px rgba(8, 4, 40, .55); }
.lit-cyan    { --lit: #6bf8ff; --glow: rgba(0, 243, 255, .8); }
.lit-azure   { --lit: #a4d0fb; --glow: rgba(10, 125, 243, .95); }
.lit-amber   { --lit: #fbc880; --glow: rgba(246, 145, 0, .85); }
.lit-magenta { --lit: #ffd3f3; --glow: rgba(255, 146, 226, .85); }
.lit-citron  { --lit: #fdfe8c; --glow: rgba(251, 252, 0, .6); }
.lit-mint    { --lit: #9df5c3; --glow: rgba(6, 158, 71, .95); }
.eyebrow { display: block; margin-bottom: 14px; font-size: .875rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--soft); text-shadow: var(--shade); }

/* ------------------------------------------------------------------ feature rows */
.row { display: grid; gap: 34px; justify-items: center; text-align: center; }
.row .say { max-width: 34rem; }
.row .say p { margin-top: 22px; font-size: 1.125rem; text-shadow: 0 1px 12px rgba(8, 4, 40, .45); }
.row .say p + p { margin-top: 0; }
.row .say .aside { font-size: 1rem; color: var(--soft); }
.shot { margin: 0; width: min(100%, 420px); }
.card {
  border-radius: clamp(20px, 6vw, 30px); overflow: hidden; background: var(--card);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .22), 0 0 110px var(--halo, rgba(120, 150, 255, .5)), 0 34px 80px rgba(4, 2, 30, .55), 0 10px 26px rgba(4, 2, 30, .45);
}
.card img { width: 100%; }
.shot.tall { width: min(68vw, 290px); }
.pair { position: relative; width: min(100%, 440px); aspect-ratio: 100 / 155; margin: 0; }
.pair .card { position: absolute; }
.pair .early { width: 56%; left: 0; top: 6%; rotate: -5deg; }
.pair .late { width: 78%; right: 0; bottom: 0; rotate: 3deg; }
.pill {
  position: absolute; z-index: 2; white-space: nowrap; padding: 6px 14px 7px; border-radius: 30px; font-size: .875rem; font-weight: 600; letter-spacing: .03em;
  background: rgba(22, 10, 58, .8); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .3), 0 8px 20px rgba(4, 2, 30, .4);
}
.pill i { font-style: normal; font-weight: 500; opacity: .78; margin-right: 8px; letter-spacing: .16em; text-transform: uppercase; font-size: .8125rem; }
.pair .pill.p1 { left: 3%; top: 1.5%; rotate: -5deg; }
.pair .pill.p2 { left: 25%; top: 28.6%; rotate: 3deg; }

@media (min-width: 760px) {
  .row { grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(40px, 7vw, 96px); text-align: left; justify-items: start; }
  .row .shot, .row .pair { justify-self: center; }
  .row.flip .say { order: 2; }
  .row .cap { font-size: clamp(2rem, 4.7vw, 3.5rem); }
  .row .say p { font-size: 1.3125rem; line-height: 1.6; }
  .row .say .aside { font-size: 1.0625rem; }
  .center .sub { font-size: 1.3125rem; line-height: 1.6; max-width: 40rem; }
}

/* ------------------------------------------------------------------ worlds */
.center { text-align: center; }
.center .sub { max-width: 36rem; margin: 22px auto 0; font-size: 1.125rem; text-shadow: 0 1px 12px rgba(8, 4, 40, .45); }
.worlds { list-style: none; margin: 54px auto 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 38px 18px; max-width: 980px; }
.worlds li { display: grid; justify-items: center; gap: 4px; }
.medal { width: min(100%, 200px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--card); margin-bottom: 14px;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .88), 0 0 0 9px rgba(255, 255, 255, .22), 0 0 70px var(--halo), 0 24px 50px rgba(4, 2, 30, .5); }
.medal img { width: 100%; height: 100%; object-fit: cover; }
.worlds .num { font-size: .875rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--soft); text-shadow: var(--shade); }
.worlds .name { font-size: 1.375rem; font-weight: 600; line-height: 1.2; text-shadow: var(--shade); }
@media (min-width: 760px) { .worlds { grid-template-columns: repeat(4, 1fr); gap: 28px; } }

.village { margin-top: clamp(76px, 12vw, 120px); display: grid; justify-items: center; gap: 30px; text-align: center; }
.village .medal { width: min(74vw, 340px); margin: 0; box-shadow: 0 0 0 4px rgba(255, 255, 255, .9), 0 0 0 12px rgba(255, 255, 255, .25), 0 0 110px rgba(255, 240, 190, .85), 0 30px 60px rgba(4, 2, 30, .5); }
.village .ring { position: relative; }
.village .pill { left: 50%; bottom: -16px; translate: -50% 0; font-size: 1rem; padding: 8px 18px 9px; }
.village .pill i { font-size: .875rem; }

/* ------------------------------------------------------------------ trailer */
.film { width: min(100%, 460px); margin: 44px auto 0; }
.film video { width: 100%; aspect-ratio: 4 / 5; background: var(--card); }

/* ------------------------------------------------------------------ panels: facts, questions */
.panel { background: var(--panel); border-radius: 28px; padding: clamp(26px, 6vw, 52px); box-shadow: 0 0 0 1.5px var(--line), 0 30px 70px rgba(40, 6, 40, .32);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.panel h2 { font-size: clamp(1.75rem, 6vw, 2.5rem); line-height: 1.15; }
.panel > :last-child, .panel .faq article:last-child { margin-bottom: 0; }
.panel .faq article:last-child { padding-bottom: 0; }
.panel .note { margin: 12px 0 0; color: var(--mute); font-size: 1rem; }
.facts { margin: 30px 0 0; display: grid; grid-template-columns: 1fr; }
.facts > div { display: grid; gap: 2px 24px; padding-block: 15px; border-top: 1px solid rgba(255, 255, 255, .14); }
.facts dt { font-size: .875rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.facts dd { margin: 0; font-size: 1.0625rem; font-weight: 500; }
.facts a, .faq a, .prose a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; text-decoration-color: rgba(255, 255, 255, .55); }
.facts a:hover, .faq a:hover, .prose a:hover { text-decoration-color: #fff; }
@media (min-width: 700px) { .facts > div { grid-template-columns: 13rem 1fr; align-items: baseline; } }

.faq { margin-top: 12px; display: grid; gap: 0 56px; }
.faq article { padding-block: 24px; border-top: 1px solid rgba(255, 255, 255, .14); }
.faq article:first-child { border-top: 0; }
.faq h3 { font-size: 1.1875rem; line-height: 1.35; font-weight: 650; }
.faq p { margin: 10px 0 0; color: var(--soft); }
@media (min-width: 900px) { .faq { grid-template-columns: 1fr 1fr; } .faq article:nth-child(2) { border-top: 0; } }

/* ------------------------------------------------------------------ first light: the last call and the footer */
.dawn { color: var(--dusk); text-align: center; }
.dawn .cap { text-shadow: none; font-size: clamp(1.875rem, 7.2vw, 3rem); max-width: 17em; margin-inline: auto; font-weight: 650; }
.dawn .get { margin-top: 30px; }
.dawn .get small { color: var(--dusk); text-shadow: none; font-weight: 600; }
.foot { padding-block: 40px 56px; color: var(--dusk); font-size: 1rem; font-weight: 550; }
.foot .wrap { display: grid; gap: 20px; justify-items: center; text-align: center; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 48px; padding-inline: 12px; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; text-decoration-color: rgba(27, 15, 79, .4); }
.foot nav a:hover { text-decoration-color: currentColor; }
.foot p { margin: 0; max-width: 46rem; }
.foot .legal { font-size: .875rem; font-weight: 500; opacity: .86; }

/* ------------------------------------------------------------------ the phone's bar: the store link stays in reach once the hero has gone by */
.dock {
  position: fixed; inset: auto 0 0 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom)) 16px; background: #0d0830; box-shadow: 0 -1px 0 rgba(255, 255, 255, .16), 0 -18px 40px rgba(4, 2, 30, .45);
  translate: 0 110%; transition: translate .35s ease; visibility: hidden;
}
.dock.show { translate: 0 0; visibility: visible; }
.dock .who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dock .who img { width: 40px; height: 40px; border-radius: 22%; flex: none; }
.dock .who span { font-weight: 600; font-size: .9375rem; line-height: 1.25; }
.dock .who small { display: block; font-weight: 500; font-size: .875rem; color: var(--mute); }
.dock .badge img { width: 156px; }
@media (min-width: 900px) { .dock { display: none; } }
@media (max-width: 899px) { body.has-dock { padding-bottom: 0; } .foot { padding-bottom: 104px; } }

/* ------------------------------------------------------------------ the inner pages */
.head { padding-top: 150px; padding-bottom: clamp(56px, 9vw, 84px); }
.head .cap { max-width: 14em; }
.head .intro { margin: 24px 0 0; max-width: 38rem; font-size: 1.1875rem; text-shadow: 0 1px 12px rgba(8, 4, 40, .45); }
.crumbs { margin: 0 0 22px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0 10px; font-size: .9375rem; font-weight: 600; letter-spacing: .04em; color: var(--soft); }
.crumbs li { display: flex; align-items: center; }
.crumbs li + li::before { content: "›"; margin-right: 10px; opacity: .7; }
.crumbs a { display: inline-block; padding-block: 12px; text-underline-offset: 5px; }
.prose { max-width: 44rem; }
.prose h2 { font-size: clamp(1.5rem, 5.4vw, 2rem); line-height: 1.2; margin: 0 0 14px; }
.prose h3 { font-size: 1.1875rem; margin: 26px 0 8px; font-weight: 650; }
.prose ul, .prose ol { margin: 0 0 1.05em; padding-left: 1.3em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--mute); font-weight: 600; }
.prose .panel + .panel { margin-top: 28px; }
.steps { display: grid; gap: 28px; }
@media (min-width: 900px) { .split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: start; } .split .shot { position: sticky; top: 32px; } }
.split .shot { margin: 40px auto 0; }
@media (min-width: 900px) { .split .shot { margin-top: 0; } }
.copybox { margin: 14px 0 0; padding: 18px 20px; border-radius: 16px; background: rgba(6, 3, 24, .5); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); font-size: 1rem; }
.copybox p:last-child { margin: 0; }
.prose .files { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 18px; }
.files li { margin: 0; }
.files a { display: block; text-decoration: none; font-size: .875rem; font-weight: 600; text-align: center; }
.files img { width: 100%; border-radius: 14px; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .22), 0 14px 30px rgba(4, 2, 30, .45); margin-bottom: 8px; background: var(--card); }
.files a:hover img { box-shadow: 0 0 0 2px #fff, 0 14px 30px rgba(4, 2, 30, .45); }
.files .wide { grid-column: span 2; }
.logo-tile { display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 14px; background: #0d0830; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .22); margin-bottom: 8px; padding: 14%; }
.logo-tile.light { background: #f4f1ff; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 30px; font-weight: 650; text-decoration: none; background: #fff; color: var(--dusk); box-shadow: 0 10px 26px rgba(4, 2, 30, .35); }
.btn:hover { background: #f1ecff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .bead { opacity: 1; transition: none; }
  .badge, .dock, .phone video { transition: none; }
}
