@font-face {
  font-family: Ultra;
  src: url('/arcade-assets/Ultra-Regular-9ee63cffbc37.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --page: #0e1722;
  --ink: #0c1520;
  --row: #152430;
  --text: #fcf0dc;
  --muted: #bdbab6;
  --line: #526872;
  --gold: #f6bb5d;
  --gold-hover: #ffce82;
  --body: Georgia, 'Times New Roman', serif;
  --display: Ultra, Georgia, serif;
  background: var(--page);
  color: var(--text);
  font-family: var(--body);
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
h1, h2, h3, p, ul { margin: 0; }

.shell { width: calc(100% - clamp(36px, 9vw, 138px)); max-width: 1400px; margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 12px; padding: 12px 16px; z-index: 2; background: var(--gold); color: var(--ink); opacity: 0; pointer-events: none; }
.skip-link:focus { opacity: 1; pointer-events: auto; }

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #d5ccbc;
}

.brand { display: inline-flex; gap: 20px; align-items: center; font-size: clamp(27px, 2.48vw, 38px); font-weight: 700; letter-spacing: -.035em; }
.brand img { width: clamp(30px, 2.8vw, 42px); height: auto; image-rendering: pixelated; }
.site-header nav a { font-size: clamp(18px, 1.6vw, 25px); font-weight: 700; }
.site-header nav a:hover { color: var(--gold); }

.feature {
  --feature-gutter: clamp(14px, 2.6vw, 38px);
  --controls-bottom: clamp(10px, 1.5vw, 22px);
  --caption-bottom: var(--feature-gutter);
  position: relative;
  margin-top: 29px;
  overflow: hidden;
  border-radius: clamp(12px, 1.4vw, 20px);
  background: var(--ink);
  color: #fff;
}

.feature[aria-roledescription="carousel"] {
  --caption-bottom: calc(var(--controls-bottom) + 49px);
}

.feature__track {
  position: relative;
  height: clamp(250px, min(27vw, 46svh), 365px);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  overflow-anchor: none;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.feature__track::-webkit-scrollbar { display: none; }
.feature__track.is-moving { scroll-snap-type: none; }

.feature__rail {
  position: relative;
  display: flex;
  height: 100%;
}

.feature__slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
}

.feature__slide.feature__crossfade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.feature__link {
  position: relative;
  isolation: isolate;
  display: flex;
  height: 100%;
  align-items: flex-end;
  padding: var(--feature-gutter) var(--feature-gutter) var(--caption-bottom);
}

.feature__link:focus-visible { outline-offset: -6px; }
.feature__track.is-moving .feature__link { pointer-events: none; }

.feature__art,
.feature__link::before {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.feature__art { width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; }
.feature__slide[data-game="pebble-pup-sky-run"] .feature__art { object-position: 46% 20%; }

.feature__link::before {
  content: '';
  z-index: 0;
  background: linear-gradient(0deg, rgb(12 21 32 / .97) 0%, rgb(12 21 32 / .84) 15%, rgb(12 21 32 / .31) 39%, transparent 66%);
}

.feature__title {
  position: relative;
  font-family: var(--display);
  font-size: clamp(25px, 3vw, 43px);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -.026em;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 12px rgb(0 0 0 / .35);
}

.feature__controls {
  position: absolute;
  inset: auto auto var(--controls-bottom) calc(var(--feature-gutter) - 12px);
  display: flex;
  max-width: calc(100% - var(--feature-gutter) - var(--feature-gutter) + 12px);
  overflow-x: auto;
  scrollbar-width: none;
}

.feature__controls[hidden] { display: none; }

.feature__dot {
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.feature__dot:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.feature__dot::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgb(255 255 255 / .52);
  transition: background-color 220ms ease, transform 220ms ease;
}
.feature__dot:hover::before { background: rgb(255 255 255 / .82); }
.feature__dot[aria-current]::before { transform: scale(1.65); background: #fff; }

.feature__status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.arrow { width: 27px; height: 27px; flex: none; }

.library { margin-top: clamp(30px, 3vw, 46px); scroll-margin-top: 24px; }
.library h2 { font-size: clamp(31px, 2.9vw, 44px); line-height: 1.15; letter-spacing: -.027em; }
.library ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: clamp(16px, 2vw, 28px);
  padding: 0;
  margin-top: clamp(18px, 1.8vw, 27px);
  list-style: none;
}

.game-card {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  background: var(--row);
  border: 1px solid var(--line);
  transition: background-color 160ms ease, border-color 160ms ease;
}

.game-card:hover, .game-card:focus-visible { background: #1d3340; border-color: #b9a67d; }
.game-card__art { aspect-ratio: 195 / 92; overflow: hidden; background: var(--ink); }
.game-card__art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }

.game-card__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: clamp(16px, 2vw, 26px);
}

.game-card h3 { font-size: clamp(22px, 2.35vw, 36px); line-height: 1.13; letter-spacing: -.027em; }
.game-card p { margin-top: 6px; color: var(--muted); font-size: clamp(16px, 1.45vw, 22px); }
.game-card__play {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: clamp(17px, 1.45vw, 22px);
  font-weight: 700;
}
.game-card__play .arrow { width: 22px; height: 22px; transition: transform 160ms ease; }
.game-card:hover .arrow, .game-card:focus-visible .arrow { transform: translateX(3px); }

.site-footer { margin-top: clamp(34px, 3.5vw, 53px); padding: 18px 0 26px; color: #a7a9ad; border-top: 1px solid #bcb9b3; font-size: clamp(17px, 1.48vw, 23px); font-weight: 700; }

@media (max-width: 680px) {
  .site-header { min-height: 70px; }
  .brand { gap: 11px; }
  .feature { margin-top: 20px; }
  .feature__track { height: clamp(180px, 54vw, 240px); }
  .feature__art { object-position: 65% 41%; }
  .feature__slide[data-game="pebble-pup-sky-run"] .feature__art { object-position: 42% 50%; }
  .arrow { width: 21px; height: 21px; }
  .game-card h3 { font-size: clamp(19px, 5.2vw, 27px); }
  .game-card p { margin-top: 4px; font-size: 15px; }
}

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