@font-face {
  font-family: "Lilita One";
  src: url("assets/fonts/lilita-one-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("assets/fonts/nunito-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --cream: #fdfaee;
  --white: #fff;
  --ink: #2b1408;
  --sun: #ffc531;
  --line: 3px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --wrap: 72rem;
  --display: "Lilita One", system-ui, sans-serif;
  font-family: "Nunito", system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.55;
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--cream); }
h1, h2, h3, p { margin: 0; }
h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a, summary { -webkit-tap-highlight-color: #ffc53166; }
:where(a, summary, button):focus { outline: 3px solid var(--focus, var(--ink)); outline-offset: 3px; }
.wrap { width: min(var(--wrap), 92%); margin-inline: auto; }
.skip-link {
  position: fixed;
  z-index: 5;
  top: .5rem;
  left: .5rem;
  padding: .75rem 1rem;
  transform: translateY(-160%);
  background: var(--white);
  border: var(--line);
}
.skip-link:focus { transform: none; }
.site-header { position: sticky; z-index: 3; top: 0; padding-block: .75rem; background: var(--cream); }
.top-nav, .nav-links, .section-heading, .site-footer, .actions { display: flex; align-items: center; }
.top-nav {
  justify-content: space-between;
  gap: 1rem;
  padding: .3rem .4rem .3rem 1rem;
  background: var(--white);
  border: var(--line);
  border-radius: 99px;
  box-shadow: var(--shadow);
}
.brand { display: flex; flex-shrink: 0; align-items: center; min-height: 44px; }
.brand img { width: 66px; }
.nav-links { gap: .25rem; }
.nav-links a, .site-footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-width: 44px;
  min-height: 44px;
  padding-inline: .9rem;
  border-radius: 99px;
  font-weight: 900;
  text-decoration: none;
}
.nav-links a:hover, .site-footer a:hover { text-decoration: underline; text-underline-offset: .25em; }
.nav-links .nav-trailer { background: var(--ink); color: var(--sun); }
.nav-links [aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .3em; }
#games, #studio, #main { scroll-margin-top: 6.5rem; }

.hero { display: flex; flex-direction: column; align-items: center; padding-block: 2.5rem 2rem; text-align: center; }
.hero h1 { width: min(560px, 88vw); }
.tagline { max-width: 34rem; margin-top: 1.4rem; font-size: clamp(1.15rem, 2.2vw, 1.4rem); font-weight: 800; }
.actions { flex-wrap: wrap; gap: 1rem; margin-top: 1.6rem; }
.hero .actions { justify-content: center; }
.hero-cta, .button {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 48px;
  padding: .7rem 1.3rem;
  border: var(--line);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  background: var(--white);
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.hero-cta { background: var(--sun); }
.hero-cta:hover, .button:hover { transform: translate(3px, 3px); box-shadow: 3px 3px 0 var(--ink); }

.ticker { overflow: hidden; padding-block: 1.2rem; }
.ticker-band {
  margin-inline: -2rem;
  padding-block: .6rem;
  overflow: hidden;
  transform: rotate(-1.2deg);
  background: var(--ink);
  color: var(--sun);
  font: 1.3rem var(--display);
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker p { display: flex; width: max-content; animation: ticker 30s linear infinite; }
.ticker span { padding-right: .4em; }
.ticker i { font-style: normal; color: var(--cream); opacity: .75; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker p { animation: none; } }

.games { padding-block: 4rem 1rem; }
.section-heading { justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
h2 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.count {
  padding: .3rem .9rem;
  background: var(--white);
  border: var(--line);
  border-radius: 99px;
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 900;
}
.game-list { display: grid; gap: 2.6rem; }
.game {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background: var(--game-bg);
  color: var(--game-ink, var(--ink));
  border: var(--line);
  border-radius: 1.6rem;
  box-shadow: 10px 10px 0 var(--ink);
}
.game--timing-quest { --game-bg: #2a2530; --cover-bg: #080a0b; --game-ink: var(--cream); --focus: var(--sun); }
.game--turn-tennis { --game-bg: #e8642c; --cover-bg: #d4582b; }
.game--football-caps { --game-bg: var(--sun); --cover-bg: linear-gradient(90deg, #ffd340, #ffb72b); }
.cover {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--cover-bg);
  border-right: var(--line);
  border-radius: 1.4rem 0 0 1.4rem;
}
.game-copy { padding: 2rem 2rem 1.6rem; }
.genre {
  display: inline-block;
  padding: .15rem .8rem;
  background: var(--white);
  color: var(--ink);
  border: var(--line);
  border-radius: 99px;
  font-size: .85rem;
  font-weight: 900;
}
h3 { margin: .8rem 0; font-size: clamp(2rem, 3.6vw, 2.7rem); }
.game-copy > p:not(.genre) { max-width: 30rem; font-weight: 700; }
.shot {
  position: absolute;
  top: -1.6rem;
  right: -1.2rem;
  width: 150px;
  border: var(--line);
  border-radius: .8rem;
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(5deg);
}
.shot--portrait { width: 84px; }
details { margin-top: 1.4rem; }
summary {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
  font-weight: 900;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 1.5rem/1 var(--display); }
details[open] summary::after { content: "−"; }
summary:hover { text-decoration: underline; text-underline-offset: .25em; }
details p { max-width: 30rem; padding-top: .3rem; }

.videos { padding-block: 2.5rem 3rem; }
.videos h1 { font: clamp(2.8rem, 6vw, 4.4rem)/1 var(--display); }
.video-filters { display: grid; gap: .8rem; margin-bottom: 2rem; }
.video-filters[hidden] { display: none; }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.filter-label { min-width: 3.4rem; font: 1.2rem var(--display); }
.filter-row button {
  min-height: 44px;
  padding: .3rem 1rem;
  background: var(--white);
  color: var(--ink);
  border: var(--line);
  border-radius: 99px;
  box-shadow: 3px 3px 0 var(--ink);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.filter-row button[aria-pressed="true"] { background: var(--ink); color: var(--sun); }
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.2rem; }
.video-card {
  display: grid;
  align-content: start;
  overflow: hidden;
  background: var(--white);
  border: var(--line);
  border-radius: 1.6rem;
  box-shadow: 6px 6px 0 var(--ink);
}
.video-card[hidden] { display: none; }
.video-card.is-featured {
  grid-column: 1 / -1;
  grid-template-columns: 1.6fr 1fr;
  background: #2a2530;
  color: var(--cream);
  box-shadow: 10px 10px 0 var(--ink);
  --focus: var(--sun);
}
.is-featured .player { height: 100%; border-bottom: 0; border-right: var(--line); }
.is-featured .video-copy { align-self: center; padding: 2rem; }
.is-featured .video-copy h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.player {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink);
  border: 0;
  border-bottom: var(--line);
}
.player img { width: 100%; height: 100%; object-fit: cover; }
.player--short { background: #000; }
.player--short img { object-fit: contain; }
.player:focus-visible { outline: 4px solid var(--sun); outline-offset: -8px; }
.play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 4rem;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: var(--sun);
  color: var(--ink);
  border: var(--line);
  border-radius: 50%;
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 1.4rem;
  transition: transform .15s, box-shadow .15s;
}
.player:hover .play { transform: translate(calc(-50% + 2px), calc(-50% + 2px)); box-shadow: 2px 2px 0 var(--ink); }
.video-copy { padding: 1.3rem 1.4rem 1.5rem; }
.video-copy h2 { margin: .7rem 0 .4rem; font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.15; }
.video-copy .meta { font-weight: 800; }
.tag--trailer { background: var(--sun); }
.tag--short { background: #9fd8f0; }
.video-empty { padding: 2rem; border: 3px dashed var(--ink); border-radius: 1.6rem; font-weight: 900; text-align: center; }

.studio {
  margin-block: 4rem;
  padding: 2.5rem;
  background: var(--white);
  border: var(--line);
  border-radius: 1.6rem;
  box-shadow: 10px 10px 0 var(--ink);
}
.studio p { max-width: 40rem; margin-top: 1rem; font-size: 1.1rem; }
.site-footer { justify-content: space-between; gap: 1rem; min-height: 5rem; border-top: var(--line); font-weight: 900; }
.site-footer a { padding-inline: 0; }

@media (max-width: 960px) {
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .game { grid-template-columns: minmax(0, 1fr); }
  .cover { aspect-ratio: 1024 / 500; border-right: 0; border-bottom: var(--line); border-radius: 1.4rem 1.4rem 0 0; }
  .game-copy { padding: 1.5rem 1.3rem 1.2rem; }
  .shot { width: 110px; right: -.6rem; }
  .shot--portrait { width: 62px; }
  .studio { padding: 1.6rem; }
  .video-grid { grid-template-columns: minmax(0, 1fr); }
  .video-card.is-featured { grid-template-columns: minmax(0, 1fr); }
  .is-featured .player { height: auto; border-right: 0; border-bottom: var(--line); }
  .is-featured .video-copy { padding: 1.4rem; }
  .filter-label { width: 100%; }
}
@media (max-width: 480px) {
  .top-nav { padding-left: .7rem; }
  .brand img { width: 54px; }
  .nav-links { gap: 0; }
  .nav-links a:not(.nav-trailer) { padding-inline: .45rem; }
  .nav-trailer-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
