/* Seth presents: cinematic night storefront for Seth's Roblox games. */

@property --accent {
  syntax: "<color>";
  inherits: true;
  initial-value: #ffb547;
}

:root {
  color-scheme: dark;

  --bg: #06070b;
  --bg-rgb: 6 7 11;
  --surface: #10131c;
  --line: rgb(255 255 255 / 0.08);
  --line-strong: rgb(255 255 255 / 0.18);
  --text: #f5f1e8;
  --text-2: #c3c6d1;
  --text-3: #9095a6;
  --on-accent: #0a0b10;
  --brand-warm: #ffc46b;
  --brand-gradient: linear-gradient(95deg, #ffd27a 0%, #ff8a5c 55%, #ff6a7d 100%);

  --font-display: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;

  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius-s: 12px;
  --radius: 18px;
  --radius-l: 22px;
  --topbar-h: 64px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --slide-ms: 7000ms;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--topbar-h);
  -webkit-text-size-adjust: 100%;
}

html:has(.viewer[open]) {
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* A faint film grain over everything, for the cinematic feel. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

::selection {
  background: color-mix(in oklab, var(--brand-warm) 70%, transparent);
  color: var(--bg);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

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

.icon {
  width: 1em;
  height: 1em;
  flex: none;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 90;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease-out);
}

.skip-link:focus {
  transform: none;
}

/* ------------------------------------------------------------------ intro title card */

.intro {
  display: none;
}

.js .intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--bg);
  animation: intro-out 0.7s var(--ease-in-out) 1.45s forwards;
}

.js.intro-seen .intro,
.js.intro-done .intro {
  display: none;
}

.intro-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0.92;
}

.intro-seth {
  font: 800 clamp(64px, 15vw, 210px) / 0.9 var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  animation: intro-in 1s var(--ease-out) both;
}

.intro-presents,
.lockup em,
.finale h2 em {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.intro-presents {
  font: italic 400 clamp(32px, 5.4vw, 78px) / 1 var(--font-serif);
  padding-inline: 0.1em;
  animation: intro-in 1s var(--ease-out) 0.22s both;
}

@keyframes intro-in {
  from {
    opacity: 0;
    transform: translateY(26px);
    filter: blur(10px);
  }
}

@keyframes intro-out {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* ------------------------------------------------------------------ buttons */

.btn {
  --h: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--h);
  padding: 0 24px 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 700 15.5px / 1 var(--font-body);
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.2s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    background-color 0.25s,
    border-color 0.25s,
    filter 0.2s;
}

.btn .icon {
  width: 18px;
  height: 18px;
}

.btn:active {
  transform: scale(0.97);
}

.btn-play {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow:
    0 14px 34px -14px color-mix(in oklab, var(--accent) 85%, transparent),
    inset 0 1px 0 rgb(255 255 255 / 0.4);
}

.btn-ghost {
  background: rgb(255 255 255 / 0.07);
  border-color: rgb(255 255 255 / 0.2);
  color: var(--text);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.btn-light {
  background: var(--text);
  color: var(--bg);
}

.btn-sm {
  --h: 40px;
  gap: 7px;
  padding: 0 16px 0 13px;
  font-size: 14px;
}

.btn-sm .icon {
  width: 15px;
  height: 15px;
}

@media (hover: hover) {
  .btn-play:hover {
    filter: brightness(1.07) saturate(1.06);
    transform: translateY(-1px);
    box-shadow:
      0 20px 44px -14px color-mix(in oklab, var(--accent) 95%, transparent),
      inset 0 1px 0 rgb(255 255 255 / 0.4);
  }

  .btn-ghost:hover {
    background: rgb(255 255 255 / 0.13);
    border-color: rgb(255 255 255 / 0.34);
  }

  .btn-light:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px -16px rgb(255 240 220 / 0.45);
  }
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ------------------------------------------------------------------ top bar */

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgb(var(--bg-rgb) / 0.6), transparent) border-box;
  transition:
    background-color 0.35s,
    border-color 0.35s;
}

.topbar.is-scrolled {
  background: rgb(var(--bg-rgb) / 0.74);
  border-color: var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--topbar-h);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.38em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.brand-seth {
  font: 800 14px / 1 var(--font-display);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.brand em {
  font: italic 400 21px / 1 var(--font-serif);
  color: var(--brand-warm);
}

/* The hero carries the brand at the top of the page; the bar takes it over once the hero scrolls away. */
.topbar .brand {
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition:
    opacity 0.4s var(--ease-out),
    transform 0.4s var(--ease-out);
}

.topbar.show-brand .brand {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.topnav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--text-2);
  font: 600 14px / 1 var(--font-body);
  text-decoration: none;
  transition:
    color 0.2s,
    background-color 0.2s;
}

.topnav .icon {
  width: 14px;
  height: 14px;
}

.topnav-roblox {
  border: 1px solid var(--line-strong);
}

@media (hover: hover) {
  .topnav a:hover {
    color: var(--text);
    background: rgb(255 255 255 / 0.07);
  }
}

@media (max-width: 600px) {
  .topnav a:not(.topnav-roblox) {
    display: none;
  }
}

/* ------------------------------------------------------------------ spotlight (hero) */

.spotlight {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  min-height: max(660px, 100svh);
  overflow: hidden;
  transition: --accent 0.9s var(--ease-in-out);
}

.spot-arts {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--bg);
}

.spot-art {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s var(--ease-in-out);
}

.spot-art.is-active {
  opacity: 1;
}

.spot-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  transition: transform 9s linear;
}

.spot-art.is-active img {
  transform: scale(1);
}

.spot-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgb(var(--bg-rgb) / 0.55) 0%, rgb(var(--bg-rgb) / 0) 16%),
    linear-gradient(0deg, var(--bg) 0%, rgb(var(--bg-rgb) / 0.72) 20%, rgb(var(--bg-rgb) / 0) 48%),
    linear-gradient(90deg, rgb(var(--bg-rgb) / 0.86) 0%, rgb(var(--bg-rgb) / 0.55) 34%, rgb(var(--bg-rgb) / 0) 64%),
    radial-gradient(55% 55% at 6% 92%, color-mix(in oklab, var(--accent) 26%, transparent), transparent 72%);
}

.spot-content {
  align-self: end;
  padding-top: calc(var(--topbar-h) + 48px);
  padding-bottom: 28px;
}

.lockup-row {
  text-shadow: 0 1px 14px rgb(0 0 0 / 0.65);
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 620px;
  margin-bottom: clamp(18px, 3vh, 30px);
}

.lockup {
  display: flex;
  align-items: baseline;
  gap: 0.4em;
  font-weight: 400;
  white-space: nowrap;
}

.lockup-seth {
  font: 800 15px / 1 var(--font-display);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.lockup em {
  font: italic 400 25px / 1 var(--font-serif);
  padding-right: 0.08em;
  text-shadow: none;
  filter: drop-shadow(0 1px 8px rgb(0 0 0 / 0.6));
}

.lockup-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), rgb(255 255 255 / 0.02));
}

.spot-count {
  font: 600 12px / 1 var(--font-display);
  letter-spacing: 0.14em;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.spot-count-now {
  color: var(--text);
}

.slides {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.slide {
  grid-area: 1 / 1;
  align-self: end;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.45s var(--ease-out),
    visibility 0s linear 0.45s;
}

.slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s var(--ease-out) 0.2s;
}

.slide-logo {
  width: auto;
  height: clamp(110px, 21vh, 236px);
  max-width: min(520px, 82vw);
  object-fit: contain;
  object-position: left bottom;
  filter: drop-shadow(0 14px 30px rgb(0 0 0 / 0.55));
}

.slide-hook {
  max-width: 34ch;
  margin: 20px 0 16px;
  font: 600 clamp(18px, 1.75vw, 24px) / 1.38 var(--font-body);
  text-wrap: balance;
  text-shadow: 0 2px 18px rgb(0 0 0 / 0.5);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.chips li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid rgb(255 255 255 / 0.15);
  border-radius: 999px;
  background: rgb(var(--bg-rgb) / 0.5);
  font: 600 13px / 1 var(--font-body);
  color: var(--text);
}

.chips .icon {
  width: 15px;
  height: 15px;
  color: var(--accent);
}

@media (prefers-reduced-motion: no-preference) {
  .slide.is-active > * {
    animation: rise 0.85s var(--ease-out) backwards;
  }

  .slide.is-active > :nth-child(1) {
    animation-delay: 0.15s;
  }

  .slide.is-active > :nth-child(2) {
    animation-delay: 0.25s;
  }

  .slide.is-active > :nth-child(3) {
    animation-delay: 0.33s;
  }

  .slide.is-active > :nth-child(4) {
    animation-delay: 0.41s;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

/* The rail: one thumbnail per game, with a bar that fills while that game is on show. */

.spot-rail {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: clamp(18px, 3.5vh, 34px);
}

.rail-pause {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgb(var(--bg-rgb) / 0.55);
  color: var(--text);
  cursor: pointer;
  transition:
    background-color 0.2s,
    border-color 0.2s;
}

.rail-pause .icon {
  width: 15px;
  height: 15px;
}

.rail-pause .icon-resume,
.spotlight.is-stopped .rail-pause .icon-pause {
  display: none;
}

.spotlight.is-stopped .rail-pause .icon-resume {
  display: block;
}

.rail {
  position: relative;
  display: flex;
  flex: 1;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 6px;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.rail::-webkit-scrollbar {
  display: none;
}

.rail li {
  flex: 1 0 104px;
  max-width: 150px;
  scroll-snap-align: center;
}

.rail-item {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--text-3);
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.rail-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  opacity: 0.5;
  filter: saturate(0.8);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.12);
  transition:
    opacity 0.35s,
    filter 0.35s,
    box-shadow 0.35s,
    transform 0.35s var(--ease-out);
}

.rail-item.is-active .rail-thumb {
  opacity: 1;
  filter: none;
  box-shadow:
    0 0 0 2px var(--accent),
    0 10px 26px -10px color-mix(in oklab, var(--accent) 80%, transparent);
}

.rail-name {
  overflow: hidden;
  font: 600 12px / 1.2 var(--font-body);
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color 0.3s;
}

.rail-item.is-active .rail-name {
  color: var(--text);
}

.rail-bar {
  position: relative;
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: rgb(255 255 255 / 0.12);
}

.rail-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

.rail-item.is-active .rail-bar::after {
  animation: progress var(--slide-ms) linear forwards;
}

.spotlight.is-held .rail-item.is-active .rail-bar::after,
.spotlight.is-stopped .rail-item.is-active .rail-bar::after {
  animation-play-state: paused;
}

@keyframes progress {
  to {
    transform: scaleX(1);
  }
}

@media (hover: hover) {
  .rail-item:hover .rail-thumb {
    opacity: 0.9;
    filter: none;
    transform: translateY(-2px);
  }

  .rail-item:hover .rail-name {
    color: var(--text-2);
  }

  .rail-pause:hover {
    background: rgb(255 255 255 / 0.12);
    border-color: rgb(255 255 255 / 0.34);
  }
}

@media (max-width: 1024px) {
  .spot-scrim {
    background:
      linear-gradient(180deg, rgb(var(--bg-rgb) / 0.6) 0%, rgb(var(--bg-rgb) / 0) 18%),
      linear-gradient(0deg, var(--bg) 0%, rgb(var(--bg-rgb) / 0.88) 40%, rgb(var(--bg-rgb) / 0.55) 66%, rgb(var(--bg-rgb) / 0.15) 100%),
      radial-gradient(80% 45% at 10% 95%, color-mix(in oklab, var(--accent) 22%, transparent), transparent 72%);
  }
}

@media (max-width: 720px) {
  .slide-logo {
    height: clamp(96px, 17vh, 150px);
  }

  .slide-hook {
    margin: 14px 0 14px;
  }

  .chips {
    margin-bottom: 20px;
  }

  .spotlight .actions .btn-play {
    flex: 1 1 auto;
  }

  .rail li {
    flex-basis: 92px;
  }
}

/* ------------------------------------------------------------------ section heads */

.section-head {
  max-width: 780px;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 700 12px / 1 var(--font-display);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
}

.kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-gradient);
}

.section-head h2 {
  margin: 18px 0 16px;
  font: 700 clamp(30px, 4.4vw, 56px) / 1.06 var(--font-display);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.lede {
  max-width: 56ch;
  color: var(--text-2);
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.6;
}

/* ------------------------------------------------------------------ the lineup */

.lineup {
  padding-top: clamp(72px, 10vw, 140px);
  padding-bottom: clamp(56px, 8vw, 110px);
}

.moods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 34px 0 28px;
}

.mood {
  height: 40px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font: 600 14px / 1 var(--font-body);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color 0.25s,
    color 0.25s,
    border-color 0.25s,
    transform 0.2s var(--ease-out);
}

.mood:active {
  transform: scale(0.96);
}

.mood[aria-pressed="true"] {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}

@media (hover: hover) {
  .mood:not([aria-pressed="true"]):hover {
    border-color: rgb(255 255 255 / 0.34);
    color: var(--text);
  }
}

html:not(.js) .moods {
  display: none;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 20px);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 720px) {
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1240px) {
  .cards {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
  transition:
    transform 0.5s var(--ease-out),
    border-color 0.4s,
    box-shadow 0.5s var(--ease-out);
}

.card[hidden] {
  display: none;
}

.card-media {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: calc(var(--radius-l) - 1px) calc(var(--radius-l) - 1px) 0 0;
}

.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--surface) 0%, rgb(16 19 28 / 0.6) 30%, rgb(16 19 28 / 0) 58%);
}

.card-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}

.card-logo {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 5%;
  width: 76%;
  height: 40%;
  object-fit: contain;
  object-position: center bottom;
  transform: translateX(-50%);
  filter: drop-shadow(0 8px 18px rgb(0 0 0 / 0.6));
  transition: transform 0.6s var(--ease-out);
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 6px 18px 18px;
}

.card-genre {
  color: var(--accent);
  font: 700 10.5px / 1.3 var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card-line {
  flex: 1;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.45;
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
}

.card-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 4px;
  color: var(--text-2);
  font: 600 14px / 1 var(--font-body);
  text-decoration: none;
  transition: color 0.2s;
}

.card-more .icon {
  width: 14px;
  height: 14px;
}

@media (hover: hover) {
  .card:hover {
    transform: translateY(-6px);
    border-color: color-mix(in oklab, var(--accent) 45%, transparent);
    box-shadow: 0 34px 60px -34px color-mix(in oklab, var(--accent) 75%, transparent);
  }

  .card:hover .card-art {
    transform: scale(1.06);
  }

  .card:hover .card-logo {
    transform: translateX(-50%) translateY(-4px) scale(1.03);
  }

  .card-more:hover {
    color: var(--text);
  }
}

@media (max-width: 560px) {
  .card-body {
    gap: 8px;
    padding: 4px 12px 14px;
  }

  .card-line {
    font-size: 13.5px;
  }

  .card-more,
  .card-players {
    display: none;
  }

  .card-actions .btn {
    flex: 1;
  }
}

::view-transition-group(*) {
  animation-duration: 0.45s;
  animation-timing-function: var(--ease-out);
}

/* ------------------------------------------------------------------ one section per game */

.games-head {
  padding-bottom: clamp(8px, 2vw, 24px);
}

.game {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: min(100svh, 1000px);
  overflow: clip;
  --scrim-dir: 90deg;
  --glow-x: 12%;
}

.game--right {
  --scrim-dir: 270deg;
  --glow-x: 88%;
}

.game-art {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.game-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus) 40%;
}

.game::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, var(--bg) 0%, rgb(var(--bg-rgb) / 0) 24%, rgb(var(--bg-rgb) / 0) 58%, var(--bg) 100%),
    linear-gradient(var(--scrim-dir), rgb(var(--bg-rgb) / 0.95) 0%, rgb(var(--bg-rgb) / 0.8) 30%, rgb(var(--bg-rgb) / 0.12) 60%, rgb(var(--bg-rgb) / 0) 74%),
    radial-gradient(45% 55% at var(--glow-x) 72%, color-mix(in oklab, var(--accent) 20%, transparent), transparent 70%);
}

.game-inner {
  display: grid;
  gap: clamp(32px, 4vw, 48px);
  padding-top: clamp(120px, 18vh, 220px);
  padding-bottom: clamp(48px, 6vw, 84px);
}

.game-copy {
  max-width: 540px;
}

.game--right .game-copy {
  margin-left: auto;
}

.game-index {
  font: 700 12px / 1 var(--font-display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}

.game-index span:first-child {
  color: var(--accent);
}

.game-logo {
  width: auto;
  height: clamp(110px, 14vw, 190px);
  max-width: 100%;
  margin: 16px 0 6px;
  object-fit: contain;
  object-position: left bottom;
  filter: drop-shadow(0 12px 28px rgb(0 0 0 / 0.55));
}

.game-hook {
  margin: 16px 0 14px;
  font: 700 clamp(20px, 1.9vw, 27px) / 1.22 var(--font-display);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.game-desc {
  margin-bottom: 22px;
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.62;
}

.game-highlights {
  display: grid;
  gap: 11px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.game-highlights li {
  position: relative;
  padding-left: 26px;
  font-size: 15.5px;
  line-height: 1.45;
}

.game-highlights li::before {
  content: "";
  position: absolute;
  top: 0.42em;
  left: 2px;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg);
  box-shadow: 0 0 14px color-mix(in oklab, var(--accent) 80%, transparent);
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
  margin: 0 0 28px;
  padding: 16px 0;
  border-block: 1px solid var(--line);
}

.facts dt {
  margin-bottom: 7px;
  font: 700 10.5px / 1 var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

.facts dd {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.devices {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.devices .icon {
  width: 20px;
  height: 20px;
  color: var(--text-2);
}

.gallery {
  display: grid;
  grid-auto-columns: minmax(200px, 1fr);
  grid-auto-flow: column;
  gap: 12px;
  margin: 0 -6px;
  padding: 6px;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.gallery li {
  scroll-snap-align: start;
}

.shot {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-s);
  background: var(--surface);
  cursor: zoom-in;
  transition:
    transform 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease-out);
}

.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12);
  pointer-events: none;
}

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

.shot:active {
  transform: scale(0.98);
}

@media (hover: hover) {
  .shot:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 40px -22px color-mix(in oklab, var(--accent) 80%, transparent);
  }
}

@media (max-width: 899px) {
  .game {
    display: block;
    min-height: 0;
  }

  .game-art {
    inset: 0 0 auto;
    height: 68vw;
  }

  .game-art img {
    object-position: var(--focus) 50%;
  }

  .game::before {
    background:
      linear-gradient(180deg, var(--bg) 0%, rgb(var(--bg-rgb) / 0) 16%, rgb(var(--bg-rgb) / 0) 34vw, var(--bg) 68vw),
      radial-gradient(70% 40% at 20% 60vw, color-mix(in oklab, var(--accent) 18%, transparent), transparent 70%);
  }

  .game-inner {
    padding-top: 44vw;
  }

  .game--right .game-copy {
    margin-left: 0;
  }

  .game-desc {
    font-size: 16px;
  }

  .gallery {
    grid-auto-columns: clamp(240px, 72%, 360px);
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
  }
}

/* ------------------------------------------------------------------ finale */

.finale {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: clamp(96px, 13vw, 180px);
  padding-bottom: clamp(80px, 10vw, 140px);
  text-align: center;
}

.finale h2 {
  font: 800 clamp(38px, 6.6vw, 92px) / 1 var(--font-display);
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.finale h2 em {
  padding-right: 0.06em;
  font: italic 400 1.1em / 1 var(--font-serif);
  letter-spacing: 0;
}

.logo-wall {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 1040px;
  margin: clamp(40px, 6vw, 64px) 0 36px;
  padding: 0;
  list-style: none;
}

.logo-wall a {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition:
    transform 0.4s var(--ease-out),
    border-color 0.3s,
    background-color 0.3s,
    box-shadow 0.4s var(--ease-out);
}

.logo-wall img {
  position: absolute;
  inset: 12%;
  width: 76%;
  height: 76%;
  object-fit: contain;
  transition: transform 0.4s var(--ease-out);
}

@media (hover: hover) {
  .logo-wall a:hover {
    transform: translateY(-4px);
    border-color: color-mix(in oklab, var(--accent) 50%, transparent);
    background: radial-gradient(90% 90% at 50% 120%, color-mix(in oklab, var(--accent) 28%, transparent), transparent 70%), var(--surface);
    box-shadow: 0 26px 50px -30px color-mix(in oklab, var(--accent) 80%, transparent);
  }

  .logo-wall a:hover img {
    transform: scale(1.05);
  }
}

@media (max-width: 720px) {
  .logo-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.finale-note {
  max-width: 44ch;
  margin-bottom: 28px;
  color: var(--text-2);
  font-size: 17px;
}

/* ------------------------------------------------------------------ footer */

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

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 28px 36px;
  color: var(--text-3);
  font-size: 13.5px;
}

.footer-inner p:last-child {
  max-width: 70ch;
}

.brand--small .brand-seth {
  font-size: 12px;
}

.brand--small em {
  font-size: 18px;
}

/* ------------------------------------------------------------------ picture and video viewer */

.viewer {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
}

.viewer::backdrop {
  background: rgb(3 4 7 / 0.88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.viewer-frame {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 16px;
  height: 100%;
  padding: clamp(56px, 7vh, 80px) clamp(16px, 4vw, 56px) clamp(16px, 3vh, 32px);
}

.viewer-media {
  display: grid;
  place-items: center;
  min-height: 0;
}

.viewer-media img,
.viewer-media video {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 40px 100px -30px rgb(0 0 0 / 0.8);
}

.viewer-media video {
  width: min(100%, 1280px);
  aspect-ratio: 16 / 9;
}

.viewer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
}

.viewer-caption {
  color: var(--text-2);
  font-weight: 600;
}

.viewer-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.viewer-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.06);
  color: var(--text);
  cursor: pointer;
  transition:
    background-color 0.2s,
    transform 0.2s var(--ease-out);
}

.viewer-btn .icon {
  width: 20px;
  height: 20px;
}

.viewer-btn:active {
  transform: scale(0.94);
}

@media (hover: hover) {
  .viewer-btn:hover {
    background: rgb(255 255 255 / 0.14);
  }
}

.viewer-close {
  position: absolute;
  top: 12px;
  right: 12px;
}

.viewer.is-video .viewer-prev,
.viewer.is-video .viewer-next {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .viewer[open] .viewer-frame {
    animation: viewer-in 0.32s var(--ease-out);
  }

  .viewer[open]::backdrop {
    animation: fade-in 0.32s var(--ease-out);
  }
}

@keyframes viewer-in {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

/* ------------------------------------------------------------------ scroll reveals */

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal]:not(.is-in) {
    opacity: 0;
  }

  .js [data-reveal].is-in {
    animation: rise 0.9s var(--ease-out) var(--reveal-delay, 0ms) backwards;
  }
}

/* ------------------------------------------------------------------ less motion */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .intro {
    display: none;
  }

  .spot-art,
  .slide,
  .slide.is-active {
    transition-duration: 0.01s;
  }

  .spot-art img,
  .spot-art.is-active img {
    transform: none;
    transition: none;
  }

  .card,
  .card-art,
  .card-logo,
  .shot,
  .logo-wall a,
  .logo-wall img {
    transition-property: border-color, box-shadow, background-color;
  }

  ::view-transition-group(*) {
    animation: none;
  }
}
