@font-face {
  font-family: "Nunito";
  src: url("./assets/nunito-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: "Nunito", ui-rounded, "Segoe UI", sans-serif;
  color: #eeeef0;
  background: #191a1d;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  --muted: #a0a0a8;
  --brand: #c8b8e4;
  --ease: cubic-bezier(.2,.75,.25,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-width: 280px;
  min-height: 100svh;
  background-image: url("./assets/chirp-pattern.svg");
  background-size: 560px 440px;
  background-position: center top;
  background-repeat: repeat;
}
.background-glow {
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.background-glow-light {
  position: absolute;
  top: 0;
  left: 0;
  width: 1100px;
  height: 900px;
  background: radial-gradient(ellipse, rgb(131 113 167 / 16%) 0%, rgb(131 113 167 / 6%) 35%, transparent 70%);
  transform: translate3d(max(100px, calc(50vw - 490px)), 56px, 0) translate(-50%, -50%);
}
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
::selection { background: #b8aad5; color: #17181b; }
.page-shell { width: min(1100px, calc(100% - 96px)); margin: 0 auto; }
.skip-link { position: fixed; z-index: 10; top: 12px; left: 12px; padding: 12px 20px; background: #eeeef0; color: #191a1d; border-radius: 10px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
a:focus-visible { outline: 2px solid #d5c5f9; outline-offset: 7px; border-radius: 8px; }

.masthead { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; padding: 32px 0 30px; }
.wordmark { --wordmark-color: #b0b0b7; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; max-width: 100%; margin: 0; font-weight: 900; }
.wordmark-name { font-family: "Nunito", ui-rounded, "Segoe UI", sans-serif; font-size: clamp(3rem, 4.6vw, 4rem); font-weight: 900; letter-spacing: -.025em; line-height: 1; white-space: nowrap; }
/* Muted gray faces match GAMES, with darker sides to preserve the depth. */
.wordmark-letter {
  --letter-face: var(--wordmark-color);
  --letter-shadow: .015em .015em 0 #686873,
    .03em .03em 0 #55555f,
    .045em .045em 0 #43434d,
    .08em .08em .07em rgb(0 0 0 / 18%);
  display: inline-block;
  color: var(--letter-face);
  transform: translate(-.06em, -.06em);
  text-shadow: var(--letter-shadow);
  animation: letter-raise 1s ease both;
}
.wordmark-letter:nth-child(1) { animation-delay: .05s; }
.wordmark-letter:nth-child(2) { animation-delay: .1s; }
.wordmark-letter:nth-child(3) { animation-delay: .15s; }
.wordmark-letter:nth-child(4) { animation-delay: .2s; }
.wordmark-letter:nth-child(5) { animation-delay: .25s; }
.wordmark-letter:nth-child(6) { animation-delay: .3s; }
.wordmark-letter:nth-child(7) { animation-delay: .35s; }
@keyframes letter-raise {
  from { transform: translate(.06em, .06em); color: #43434d; text-shadow: none; }
  to { transform: translate(-.06em, -.06em); color: var(--letter-face); text-shadow: var(--letter-shadow); }
}
.wordmark-games { color: var(--wordmark-color); font-size: .75rem; font-weight: 700; letter-spacing: .25em; padding-bottom: 6px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.section-heading h2 { margin: 0; font-size: .875rem; font-weight: 600; color: #c0c0c6; }
.section-heading > span { font-size: .75rem; color: #92929c; font-variant-numeric: tabular-nums; letter-spacing: .06em; }

.games-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 30px 24px; }
.game { min-width: 0; border-radius: 20px; animation: arrive .8s var(--ease) both; }
.game:nth-child(2) { animation-delay: .07s; }
.game:nth-child(3) { animation-delay: .14s; }
.game:nth-child(4) { animation-delay: .21s; }
.game:nth-child(5) { animation-delay: .28s; }
.game-featured { grid-column: span 3; }
.game-small { grid-column: span 2; }
.game-art { position: relative; overflow: hidden; isolation: isolate; border-radius: 20px; aspect-ratio: 1.6; background: #25262b; box-shadow: 8px 10px 23px #0004, -4px -4px 14px #ffffff03; transform: translateZ(0); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.game-art::after { content: ""; pointer-events: none; position: absolute; z-index: 3; inset: 0; border-radius: inherit; border: 1px solid #ffffff10; box-shadow: inset 0 1px 0 #ffffff05; }
.game-art > img, .game-art > video { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform 1.2s var(--ease), opacity .45s ease; }
.game-art > video { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.game-art.is-playing > video { opacity: 1; }
.game-art.is-playing > img { opacity: 0; }
.game-castle .game-art { background: #302736; }
.game-golf .game-art { background: #25352f; }
.game-drawblins .game-art { background: #dedce2; }
.game-virus .game-art { background: #26283c; }
.game-virus .game-art > img { object-position: center top; }
.game-communion .game-art { background: #373739; }
.game-communion .game-art > img { object-fit: contain; padding: 17px; }
.coming-soon { flex-shrink: 0; margin-top: 1px; padding: 6px 10px; border: 1px solid #ffffff13; border-radius: 100px; background: #ffffff03; color: #b9b5c2; font-size: .75rem; line-height: 1.35; font-weight: 600; white-space: nowrap; }
.game-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 4px 0; }
.game-caption h3 { margin: 0; font-size: 1.125rem; font-weight: 750; letter-spacing: -.025em; line-height: 1.3; }
.game-caption p { margin: 5px 0 0; color: var(--muted); font-size: .8125rem; }
.game-featured .game-caption { min-height: 69px; align-items: flex-start; flex-wrap: wrap; gap: 8px 12px; }
.game-featured .game-caption h3 { font-size: 1.3125rem; }
.link-arrow { display: grid; place-items: center; flex: 0 0 29px; height: 29px; font-family: "Segoe UI", sans-serif; font-size: 1.125rem; color: #aaaab4; border: 1px solid #ffffff0c; border-radius: 50%; transition: color .3s ease, background .3s ease, transform .5s var(--ease); }
.play-label { position: absolute; z-index: 2; bottom: 14px; right: 14px; display: flex; align-items: center; gap: 20px; padding: 8px 13px; border-radius: 100px; background: #17181dbb; backdrop-filter: blur(14px); border: 1px solid #ffffff15; font-size: .8125rem; opacity: 0; transform: translateY(5px); transition: opacity .35s ease, transform .5s var(--ease); }
.play-label > span { font-size: 1rem; }
.game:focus-visible .game-art { transform: translateY(-4px); }
.game:focus-visible .play-label { opacity: 1; transform: translateY(0); }
footer { display: flex; align-items: center; justify-content: space-between; margin-top: 64px; padding: 26px 0 30px; border-top: 1px solid #ffffff09; font-size: .75rem; color: #93939d; }
.footer-mark { color: var(--brand); font-size: 1.125rem; font-weight: 900; letter-spacing: -.075em; }

@media (hover: hover) and (pointer: fine) {
  .game:hover .game-art { transform: translateY(-5px); box-shadow: 9px 16px 28px #0005, -4px -4px 14px #ffffff04; }
  .game:hover .game-art > img { transform: scale(1.035); }
  .game:hover .play-label { opacity: 1; transform: translateY(0); }
  .game:hover .link-arrow { color: #eee5f7; background: #ffffff08; transform: translate(1px, -1px); }
}

@keyframes arrive { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 800px) {
  .page-shell { width: calc(100% - 56px); }
  .masthead { padding: 28px 0; }
  .games-grid { gap: 25px 18px; }
  .game-small .game-caption h3 { font-size: 1rem; }
  .game-small .game-caption { gap: 4px; }
  .link-arrow { flex-basis: 24px; height: 24px; }
}

@media (max-width: 600px) {
  .page-shell { width: calc(100% - 40px); }
  .masthead { padding: 24px 0; align-items: center; }
  .wordmark { gap: 12px; }
  .wordmark-name { font-size: 2.75rem; }
  .section-heading { margin-bottom: 17px; }
  .games-grid { grid-template-columns: 1fr; gap: 29px; }
  .game-featured, .game-small { grid-column: auto; }
  .game-art { border-radius: 17px; aspect-ratio: 1.6; }
  .game-caption { padding-top: 14px; }
  .game-featured .game-caption { min-height: 0; }
  .game-featured .game-caption h3, .game-small .game-caption h3 { font-size: 1.1875rem; }
  .game-small .link-arrow { flex-basis: 29px; height: 29px; }
  footer { margin-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .game:hover .game-art, .game:hover .game-art > img, .game:focus-visible .game-art { transform: none; }
}
