@font-face {
  font-family: PlayDisplay;
  src: url("/assets/games/LilitaOne-Regular.ttf") format("truetype");
  font-display: swap;
  font-weight: 400;
}
.games-hub {
  --ink: #222044;
  --paper: #fffdf6;
  --violet: #6a40ce;
  background: var(--paper);
  color: var(--ink);
  padding-bottom: 80px;
}
.games-hub [hidden] {
  display: none !important;
}
.games-hub h1,
.games-hub h2,
.games-hub h3 {
  font-family: PlayDisplay, "DM Sans", sans-serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.04;
}
.games-hub :focus-visible {
  outline: 3px solid #326bca;
  outline-offset: 6px;
}
.games-hub .container {
  max-width: 1200px;
}
.games-hero {
  background: #f0e9ff;
  position: relative;
  overflow: hidden;
  padding: 70px 0 16px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 40px;
}
.games-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  margin: 0 0 24px;
}
.games-kicker > span {
  display: inline-block;
  font-size: 30px;
  vertical-align: middle;
  margin-right: 8px;
  color: #7144d1;
}
.games-hub h1 {
  font-size: clamp(52px, 6.7vw, 90px);
  margin: 0 0 24px;
}
.games-hub h1 span {
  color: #7144d1;
}
.hero-intro {
  font-size: 18px;
  line-height: 1.7;
  max-width: 465px;
  color: #504962;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.hub-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 100px;
  padding: 17px 25px;
  background: var(--ink);
  color: white;
  font-size: 15px;
  font-weight: 700;
  min-height: 50px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.hub-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 0 #22204425;
}
.hero-live {
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 5px;
  font-weight: 600;
}
.hero-note {
  font-size: 13px;
  color: #675d79;
  margin-top: 30px;
}
.play-scene {
  height: 470px;
  position: relative;
}
.scene-ring {
  position: absolute;
  inset: 30px 0 5px;
  border: 2px dashed #cab9ed;
  border-radius: 50%;
  transform: rotate(-20deg);
}
.floating-game {
  position: absolute;
  padding: 13px;
  border-radius: 30px;
  background: #fff;
  box-shadow:
    0 15px 0 #3d2b6510,
    0 20px 50px #42306b15;
  display: grid;
  justify-items: center;
  gap: 10px;
  animation: play-bob 5s ease-in-out infinite;
  transition: box-shadow 0.2s;
}
.floating-game img {
  width: 100%;
  height: auto;
  border-radius: 22px;
}
.floating-game span {
  font-size: 12px;
  font-weight: 700;
  padding: 0 5px 5px;
}
.floating-game:hover,
.floating-game:focus-visible {
  box-shadow:
    0 0 0 5px #fff,
    0 25px 55px #42306b35;
  animation-play-state: paused;
}
.float-arrow {
  width: 175px;
  left: 0;
  top: 22px;
  rotate: -12deg;
}
.float-sudoku {
  width: 160px;
  right: 10px;
  top: 2px;
  rotate: 12deg;
  animation-delay: -2s;
}
.float-party {
  width: 208px;
  left: 31%;
  top: 230px;
  rotate: -4deg;
  animation-delay: -3s;
}
.scene-star {
  position: absolute;
  font-size: 55px;
  color: #f09a3c;
}
.star-one {
  top: 160px;
  left: 48%;
}
.star-two {
  bottom: 20px;
  left: 30px;
  color: #398f7c;
}
.scene-label {
  position: absolute;
  bottom: 0;
  right: 5px;
  rotate: -8deg;
  font-size: 12px;
  font-weight: 700;
}
.motion-row {
  display: flex;
  justify-content: flex-end;
}
.motion-control {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 12px;
  min-height: 44px;
  text-decoration: underline;
  cursor: pointer;
  color: #514863;
}
.motion-paused .floating-game {
  animation-play-state: paused;
}
.play-ribbon {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 28px;
  padding: 21px 24px;
  background: #ffcd57;
  border-block: 1px solid #222044;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  overflow: hidden;
  white-space: nowrap;
}
.games-library {
  padding-top: 80px;
  scroll-margin-top: 100px;
}
.library-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;
}
.library-heading .games-kicker {
  margin-bottom: 14px;
  color: #665c7d;
}
.games-hub h2 {
  font-size: clamp(34px, 4vw, 52px);
  margin: 0;
}
.game-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 5px;
  border: 1px solid #ddd7e6;
  border-radius: 50px;
}
.game-filters button {
  border: 0;
  background: transparent;
  padding: 12px 17px;
  border-radius: 50px;
  font: inherit;
  font-size: 13px;
  min-height: 44px;
  color: var(--ink);
  cursor: pointer;
}
.game-filters button[aria-pressed="true"] {
  background: var(--ink);
  color: white;
}
.filter-result {
  font-size: 14px;
  color: #6b627a;
  margin: 24px 0 30px;
}
.games-lineup {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.game-release {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid #e4deea;
  scroll-margin-top: 100px;
  background: #fff;
}
.release-art {
  position: relative;
  min-height: 270px;
  overflow: hidden;
  background: #ffddcd;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.violet .release-art {
  background: #ded4fc;
}
.yellow .release-art {
  background: #ffdf7b;
}
.art-tag {
  position: absolute;
  left: 28px;
  top: 25px;
  font-size: 10px;
  letter-spacing: 0.12em;
  font-weight: 700;
  z-index: 2;
}
.art-orbit {
  position: absolute;
  width: 270px;
  height: 270px;
  border-radius: 50%;
  border: 32px solid #ffffff50;
  left: 14%;
  top: 65px;
}
.phone-shot {
  height: 215px;
  width: 155px;
  object-fit: cover;
  object-position: top;
  border: 7px solid white;
  border-radius: 25px 25px 0 0;
  box-shadow: 0 12px 35px #36294d20;
  transform: rotate(-8deg);
  margin-bottom: 25px;
}
.violet .phone-shot {
  width: 117px;
  height: 235px;
  transform: rotate(8deg);
}
.release-icon {
  position: absolute;
  width: 74px;
  height: 74px;
  left: 65%;
  top: 90px;
  border: 5px solid white;
  border-radius: 25px;
  rotate: 12deg;
  box-shadow: 0 12px 30px #35264a20;
}
.art-caption {
  position: absolute;
  bottom: 13px;
  left: 24px;
  right: 20px;
  font-size: 10px;
  color: #554759;
}
.party-art {
  width: 205px;
  max-width: 75%;
  border-radius: 34px;
  rotate: -8deg;
  align-self: center;
  box-shadow: 0 12px 30px #6d531e18;
}
.party-pill {
  position: absolute;
  bottom: 38px;
  right: 24px;
  background: #fff;
  padding: 12px 20px;
  border-radius: 50px;
  rotate: 5deg;
  font-family: PlayDisplay;
  font-size: 18px;
}
.release-copy {
  padding: 26px 28px 28px;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.release-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #f0ecf7;
  color: #614e7d;
  padding: 7px 12px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
}
.release-status.is-live {
  background: #e1f6dc;
  color: #286335;
}
.release-category {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #746b82;
  margin: 18px 0 10px;
}
.games-hub h3 {
  font-size: 36px;
  margin: 0 0 17px;
}
.release-copy > p:not(.release-category):not(.release-footnote) {
  font-size: 16px;
  line-height: 1.8;
  color: #62586f;
}
.release-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: auto;
  padding-top: 10px;
}
.store-badge {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  border-radius: 8px;
}
.store-badge img {
  display: block;
  width: auto;
  height: 62px;
  max-width: 100%;
  object-fit: contain;
}
.apple-button {
  padding: 10px 0;
}
.apple-button img {
  height: 42px;
}
.store-badge:hover {
  opacity: 0.86;
}
.game-details {
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 5px;
  font-weight: 600;
}
/* Stretch the existing native details link across the card. Store links sit above it. */
.game-release .game-details::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}
.game-release:has(.game-details:focus-visible) {
  outline: 3px solid #326bca;
  outline-offset: 4px;
}
.game-release:has(.game-details):hover {
  border-color: var(--violet);
}

.soon-note {
  font-size: 14px;
  font-weight: 600;
  color: #60546e;
}
html[data-theme="dark"] .games-hub {
  --paper: #151221;
  --ink: #eee6ff;
}
html[data-theme="dark"] .games-hero {
  background: #281e42;
}
html[data-theme="dark"] .hero-intro,
html[data-theme="dark"] .hero-note,
html[data-theme="dark"] .motion-control,
html[data-theme="dark"] .filter-result,
html[data-theme="dark"] .library-heading .games-kicker {
  color: #c4b9d7;
}
html[data-theme="dark"] .games-hub h1 span {
  color: #bd9aff;
}
html[data-theme="dark"] .floating-game {
  color: #222044;
}
html[data-theme="dark"] .hub-button,
html[data-theme="dark"] .game-filters button[aria-pressed="true"] {
  color: #221a34;
}
html[data-theme="dark"] .play-ribbon {
  color: #222044;
}
html[data-theme="dark"] .game-release {
  background: #211a30;
  border-color: #433750;
}
html[data-theme="dark"]
  .release-copy
  > p:not(.release-category):not(.release-footnote),
html[data-theme="dark"] .release-category,
html[data-theme="dark"] .soon-note,
html[data-theme="dark"] .release-footnote {
  color: #c9bdd7;
}
@keyframes play-bob {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -10px;
  }
}
@media (max-width: 1000px) {
  .games-hub h1 {
    font-size: 64px;
  }
  .play-scene {
    scale: 0.85;
    transform-origin: center;
  }
  .release-copy {
    padding: 32px;
  }
  .library-heading {
    display: block;
  }
  .game-filters {
    width: fit-content;
    margin-top: 24px;
  }
  .release-icon {
    left: 65%;
    width: 80px;
    height: 80px;
  }
}
@media (max-width: 700px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .games-hero {
    padding-top: 40px;
  }
  .games-hub h1 {
    font-size: 59px;
  }
  .hero-intro {
    font-size: 17px;
  }
  .hero-actions {
    gap: 20px;
  }
  .play-scene {
    height: 425px;
    scale: 0.9;
    max-width: 440px;
    width: 100%;
    margin: auto;
  }
  .float-arrow {
    left: 0;
  }
  .float-sudoku {
    right: 0;
  }
  .float-party {
    top: 210px;
    left: 26%;
  }
  .scene-label {
    bottom: -4px;
  }
  .scene-ring {
    inset: 30px 0;
  }
  .games-library {
    padding-top: 48px;
  }
  .games-lineup {
    grid-template-columns: 1fr;
  }
  .release-art {
    min-height: 260px;
  }
  .release-copy {
    padding: 29px;
  }
  .games-hub h3 {
    font-size: 34px;
  }
  .games-hub {
    padding-bottom: 40px;
  }
  .play-ribbon {
    justify-content: flex-start;
  }
  .art-orbit {
    left: 10%;
  }
}
@media (max-width: 380px) {
  .games-hub h1 {
    font-size: 48px;
  }
  .play-scene {
    scale: 0.8;
    margin-top: -25px;
    margin-bottom: -35px;
  }
  .float-party {
    left: 22%;
  }
  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }
  .game-filters button {
    padding-inline: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .games-hub * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
