@font-face {
  font-family: "Press Start 2P";
  src: url("/assets/press-start-2p.woff2") format("woff2");
  font-display: swap;
  font-weight: 400;
}
.game {
  color-scheme: light;
  --bg: #f6f1ff;
  --panel: #fffdf8;
  --stage: #171144;
  --ink: #211243;
  --muted: #534369;
  --line: #8c7aac;
  --accent: #dbff4f;
  --accent-hover: #ecff97;
  --on-accent: #20123c;
  --focus: #612cc3;
  --title-accent: #a72268;
  --kicker: #5e2a8f;
  --radius: 9px;
  --media-radius: 12px;
  --pixel: "Press Start 2P", "Courier New", monospace;
  --game-hue: 253;
  --game-saturation: 68%;
  --tracking: -.042em;
}
.game:not([data-theme]) #main { background: radial-gradient(ellipse at top right, #e2f6ff, transparent 42rem); }
.game :is(h1, h2, h3) { font-family: var(--pixel); font-weight: 400; line-height: 1.4; }
.game h2 { font-size: clamp(1.12rem, 2.45vw, 1.9rem); }
.game h3 { font-size: clamp(.89rem, 1.35vw, 1.25rem); }
.game .site-header {
  border-bottom: 2px solid var(--ink);
  background: linear-gradient(90deg, #ff719f, #ffc74e 30%, #dfff60 55%, #6ee6de 77%, #9d8eff) top / 100% 5px no-repeat, #fffaf5;
  padding-top: max(5px, env(safe-area-inset-top));
}
.game .brand { align-items: center; gap: .65rem; letter-spacing: normal; }
.game .brand img { width: 36px; height: 36px; }
.game .wordmark { font: 400 1.05rem/1.05 var(--pixel); letter-spacing: -.04em; padding-top: 2px; }
.game .studio-name {
  display: block; margin: .25rem 0 0; font: 600 .64rem/1.15 var(--body);
  color: var(--muted); letter-spacing: .035em;
}
.game .header-row { min-height: 65px; }
.game .header-row nav { gap: clamp(.55rem, 2vw, 1.65rem); }
.game .header-row nav a { font-size: .99rem; color: var(--ink); }
.game .header-row nav a[aria-current] { box-shadow: inset 0 -3px #cf4591; }
.game .header-row .icon-control { border: 2px solid var(--ink); border-radius: 9px; background: #dcd2ff; box-shadow: 2px 2px var(--ink); }
.game .eyebrow { letter-spacing: .145em; color: var(--kicker); }
.game .button { padding-inline: 1.1rem; font-weight: 700; }
.game .button.primary { border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.game .button.primary:hover { color: var(--on-accent); }
.game .button.primary:active { color: var(--on-accent); transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.game .button.secondary { border: 2px solid var(--ink); color: var(--ink); background: #fffdf9; }
.game .button.secondary:hover, .game .button.secondary:active { border-color: var(--focus); color: var(--ink); background-color: #efe6ff; }
.game .button svg, .game .card-label svg, .game .collection-tile svg { stroke-linecap: square; }
.game .site-footer { border-top: 2px solid var(--ink); background-color: #eadbff; }
.studio-tip-wrap { padding-block: 0 clamp(1.55rem, 4vw, 3.35rem); }
.game .studio-tip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem;
  padding: clamp(1rem, 2.6vw, 1.8rem); border: 2px solid var(--ink); border-radius: 12px;
  background: linear-gradient(114deg, #fff4c6, #f0dcff); box-shadow: 3px 3px var(--ink);
}
.game .studio-tip h2 { font-size: clamp(.98rem, 1.9vw, 1.4rem); }
.studio-tip p { margin: .35rem 0 0; color: var(--muted); }
.studio-tip > .button { flex: none; }
img[data-studio-src] { visibility: hidden; }

.game .studio-hero { padding-top: clamp(1.15rem, 4vw, 3.9rem); }
.game .studio-intro {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.19fr); align-items: center;
  gap: clamp(1rem, 2.75vw, 2.9rem); padding: clamp(1rem, 3.55vw, 3.8rem);
  border: 2px solid var(--ink); border-radius: 20px; box-shadow: 6px 6px 0 var(--ink);
  background: radial-gradient(ellipse at 90% 8%, #ffc1e0 0%, transparent 58%),
    linear-gradient(114deg, #fff4af, #ffe5c3 42%, #d8c4ff 82%);
}
.game .studio-copy { min-width: 0; }
.game .studio-copy .eyebrow { letter-spacing: .13em; }
.game .studio-copy h1 {
  font: 400 clamp(1.42rem, 3.28vw, 3.35rem)/1.29 var(--pixel);
  letter-spacing: -.07em; margin-block: .7rem .85rem;
}
.game .studio-copy h1 span, .game .studio-copy h1 em { display: block; }
.game .studio-copy h1 em { color: var(--title-accent); font-style: normal; }
.game .studio-copy .hero-intro { color: #48345c; max-width: 33ch; font-size: clamp(1.04rem, 1.55vw, 1.3rem); margin-block: .7rem; }
.game .studio-copy .actions { margin-top: 1.2rem; }
.hero-credit { margin: 1.05rem 0 0; color: var(--muted); font-size: .85rem; }
.arcade-window { min-width: 0; border: 2px solid var(--ink); border-radius: 13px; background: #272160; overflow: hidden; box-shadow: 4px 5px 0 #372968; }
.arcade-window-bar { display: flex; align-items: center; gap: 6px; padding: 7px 10px; border-bottom: 2px solid var(--ink); background: linear-gradient(#f0eaff, #bbaaef); }
.arcade-window-bar span { width: 10px; height: 10px; border: 1px solid #35215d; border-radius: 3px; background: #ff7daf; }
.arcade-window-bar span:nth-child(2) { background: #ffcf56; }
.arcade-window-bar span:nth-child(3) { background: #6cedc2; }
.studio-landscape, .studio-landscape img { display: block; width: 100%; aspect-ratio: 1.5; }
.studio-landscape img { height: auto; object-fit: cover; }

.game .studio-collections { padding-block: clamp(1.9rem, 4.5vw, 4.65rem); }
.game .section-head { display: flex; align-items: end; justify-content: space-between; gap: .7rem; }
.game .section-head h2, .game .page-heading h1, .game .genre-heading,
.game .discovery-collections > h2 {
  font-family: var(--pixel); font-weight: 400; letter-spacing: -.062em; line-height: 1.3; overflow-wrap: anywhere;
}
.game .section-head h2 { font-size: clamp(1.05rem, 2.4vw, 2.05rem); }
.game .section-head a { color: var(--kicker); white-space: nowrap; }
.game .section-head .eyebrow { margin-bottom: .4rem; }
.collection-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .95rem; }
.collection-tile {
  position: relative; isolation: isolate; display: flex; align-items: end; justify-content: space-between; gap: .7rem;
  --tile-color: #f3aff0;
  min-height: 140px; padding: 1rem; border: 2px solid var(--ink); border-radius: 12px; background: var(--tile-color);
  box-shadow: 3px 4px var(--ink); color: var(--ink);
}
.collection-tile:nth-child(3n+2) { --tile-color: #9ee6f8; }
.collection-tile:nth-child(3n+3) { --tile-color: #f9de72; }
.collection-tile:nth-child(4n) { --tile-color: #bfeb8c; }
.collection-tile:hover, .collection-tile:focus-visible { border-color: var(--focus); }
.collection-tile.illustrated { min-height: clamp(205px, 22vw, 300px); overflow: hidden; }
.collection-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 44%; z-index: -3; }
.collection-tile.illustrated::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, var(--tile-color) 0 44%, color-mix(in srgb, var(--tile-color) 85%, transparent) 56%, transparent 75%);
}
.collection-tile p { margin: 0 0 .22rem; color: #362748; font: 700 .75rem/1.25 var(--body); }
.collection-tile strong { display: block; font: 400 clamp(.95rem, 1.4vw, 1.38rem)/1.35 var(--pixel); letter-spacing: -.06em; overflow-wrap: anywhere; }
.collection-tile span { display: block; margin-top: .4rem; line-height: 1.35; color: #392750; }
.collection-tile svg { color: var(--ink); margin-bottom: .28rem; }

.game .studio-feature { padding-block: 0 clamp(2.5rem, 5vw, 4rem); }
.showcase {
  display: grid; grid-template-columns: minmax(0, 1.13fr) minmax(0, .87fr); border: 2px solid var(--ink);
  align-items: stretch; background: #d6c5ff; box-shadow: 5px 5px var(--ink); border-radius: 15px; overflow: clip;
}
.showcase-art { display: block; min-width: 0; width: 100%; aspect-ratio: 1.72; overflow: hidden; }
.showcase-art img { height: 100%; width: 100%; object-fit: cover; }
.showcase-copy { padding: clamp(1.25rem, 4vw, 3.35rem); align-self: center; }
.showcase-copy h2 { font: 400 clamp(1.13rem, 2vw, 1.84rem)/1.27 var(--pixel); letter-spacing: -.063em; overflow-wrap: anywhere; }
.showcase-copy > p:not(.eyebrow) { color: var(--muted); }
.game .home-shelf { padding-block: 2.1rem 3.7rem; }
.game .home-shelf .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.game .library-heading { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; }
.game .page-heading h1 { font-size: clamp(1.4rem, 3.65vw, 3.25rem); }
.game .filters { background: #e9ddff; border: 2px solid var(--ink); box-shadow: 3px 3px var(--ink); }
.game .filters input, .game .filters select { background: #fffef9; border: 1px solid #6c5b8c; }
.game .filters input::placeholder { color: #544369; }
.game .filter-drawer summary { background: #fff1c0; border-color: #6c5b8c; }
.game .filter-options { grid-template-columns: repeat(3, minmax(0,1fr)) auto; }
.game .discovery-row { background: #fffdf9; border-color: var(--ink); }
.game .discovery-row h3 { font-size: clamp(.88rem, 1.75vw, 1.4rem); overflow-wrap: anywhere; }
.game .discovery-row:hover { background: #e1f7a9; }
.discovery-collections { margin-top: 2rem; }
.discovery-collections .collection-grid { margin-top: 1.15rem; }
.genre-heading { margin-top: 2.1rem; }

.game .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.65rem, 2vw, 1.6rem); }
.game .cartridge {
  --case: hsl(var(--game-hue) var(--game-saturation) 31%);
  --case-dark: hsl(var(--game-hue) var(--game-saturation) 20%);
  --case-light: hsl(var(--game-hue) var(--game-saturation) 54%);
  --case-ink: hsl(var(--game-hue) var(--game-saturation) 86%);
  --case-paper: hsl(var(--game-hue) var(--game-saturation) 94%);
  --case-accent: hsl(var(--game-hue) 48% 27%);
}
.game .cartridge a {
  display: grid; grid-template-rows: 1fr auto;
  border: 2px solid var(--ink); border-radius: 12px;
  background: linear-gradient(165deg, var(--case-ink), var(--case-paper) 69%);
  box-shadow: 3px 4px 0 var(--ink); isolation: isolate;
}
.game .cartridge a:hover, .game .cartridge a:focus-visible { border-color: var(--focus); }
.cartridge-shell {
  position: relative;
  display: grid;
  margin: clamp(.45rem, 1.4vw, 1.15rem) clamp(.4rem, 1.6vw, 1.6rem) 0;
  padding: clamp(1.02rem, 2.45vw, 1.84rem) clamp(.32rem, 1.2vw, .84rem) clamp(.49rem, 1.4vw, .93rem);
  background:
    linear-gradient(90deg, transparent 11%, #ffffff25 11% 12%, transparent 12% 88%, #0005 88% 89%, transparent 89%),
    linear-gradient(145deg, var(--case-light), var(--case) 41%, var(--case-dark) 100%);
  clip-path: polygon(0 13px, 7% 13px, 7% 4px, 10% 0, 90% 0, 93% 4px, 93% 13px, 100% 13px,
                     100% calc(100% - 7px), 95% calc(100% - 7px), 95% 100%, 5% 100%,
                     5% calc(100% - 7px), 0 calc(100% - 7px));
  box-shadow: inset 0 2px #ffffff71, inset -3px -5px #0005, inset 3px 0 #fff3;
}
.cartridge-ribs {
  position: absolute; top: 4px; height: clamp(.55rem, 1.35vw, 1.05rem); left: 14%; right: 14%;
  background: repeating-linear-gradient(0deg, #0006 0 2px, #ffffff24 2px 3px, transparent 3px 5px);
}
.cartridge-face {
  container-type: inline-size;
  display: grid;
  grid-template-rows: 1fr auto auto;
  border: 1px solid #080812;
  background: var(--case-dark);
  box-shadow: 0 1px #ffffff55, 0 2px 5px #0505147a;
  color: #fffaf3;
}
.cartridge-identification {
  display: grid;
  align-content: start;
  gap: .31rem;
  padding: clamp(.52rem, 4cqi, 1.04rem);
  background: linear-gradient(124deg, var(--case-dark), hsl(var(--game-hue) var(--game-saturation) 13%) 83%);
  border-block-end: 1px solid var(--case-light);
}
.game .cartridge .cartridge-title {
  display: block;
  margin: 0;
  overflow-wrap: anywhere;
  font: 400 clamp(.67rem, 4.7cqi, 1.32rem)/1.42 var(--pixel);
  letter-spacing: -.045em;
  text-transform: uppercase;
  text-wrap: pretty;
  color: inherit;
}
.cartridge-tagline {
  margin: 0;
  color: var(--case-ink);
  font: 600 clamp(.72rem, 4.3cqi, .99rem)/1.25 var(--body);
  text-wrap: pretty;
}
.game .cartridge .card-media {
  aspect-ratio: 1.6;
  border-radius: 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: repeating-linear-gradient(0deg, #0002 0 1px, transparent 1px 4px), var(--case-dark);
}
.game .cartridge .card-media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.cartridge-imprint {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 1.55rem;
  gap: .5rem;
  padding: .34rem .47rem;
  border-block-start: 1px solid var(--case-light);
  background: var(--case-dark);
  color: #fffaf3;
  font: 400 clamp(.6rem, 3.2cqi, .81rem)/1 var(--pixel);
  letter-spacing: .03em;
}
.cartridge-imprint::before {
  content: "";
  flex: 1;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--case-light) 0 8px, transparent 8px 12px);
}
.game .cartridge .card-label { padding: .65rem .75rem .71rem; min-height: 3.2rem; gap: .4rem; }
.game .cartridge .card-label .eyebrow { color: var(--case-accent); margin: 0; }
.game .cartridge .card-label svg, .game .cartridge .card-label > span { color: var(--case-accent); }
.game .cartridge a:hover .card-label, .game .cartridge a:focus-visible .card-label { background: #fffefacc; border-radius: 0 0 10px 10px; }

.game[data-theme] { 
  --accent: hsl(var(--game-hue) var(--game-saturation) 81%);
  --accent-hover: hsl(var(--game-hue) var(--game-saturation) 91%);
  --kicker: hsl(var(--game-hue) 51% 26%);
  --tinted-panel: hsl(var(--game-hue) 70% 94%);
}
.game[data-theme] #main {
  background:
    radial-gradient(ellipse at 88% 0%, hsl(var(--game-hue) var(--game-saturation) 79% / .72), transparent 38rem),
    linear-gradient(145deg, #fff9ef 0%, #f6f0ff 46rem);
}
.game[data-theme] .detail h1 {
  font: 400 clamp(1.43rem, 3.2vw, 3rem)/1.3 var(--pixel);
  letter-spacing: -.065em; overflow-wrap: anywhere; text-wrap: pretty;
}
.game[data-theme] .detail .button.primary { box-shadow: 3px 3px var(--ink); }
.game .detail { grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); }
.game .detail .cabinet-preview {
  display: grid; place-items: center; align-content: center; border: 2px solid hsl(var(--game-hue) 45% 53%);
  padding: .45rem .85rem; height: clamp(180px, 31vw, 370px); background: hsl(var(--game-hue) 44% 18%);
  box-shadow: inset 0 0 0 4px hsl(var(--game-hue) 38% 13%), 5px 5px 0 #09091a;
}
.game .cabinet-preview .cartridge-shell { width: min(100%, 560px); margin: 0; }
.game .cabinet-preview .card-media { max-height: 16.5rem; }
.game .cartridge.cabinet-preview .card-media > img {
  object-fit: contain; min-height: 0;
}
.game .cartridge-product > .crumb { color: var(--kicker); }
.game .cartridge-product .detail {
  --ink: #fff6eb;
  --muted: hsl(var(--game-hue) 32% 89%);
  --kicker: hsl(var(--game-hue) 74% 84%);
  --line: hsl(var(--game-hue) 38% 65%);
  --focus: hsl(var(--game-hue) 83% 81%);
  --hero-ground: hsl(var(--game-hue) 48% 13%);
  --hero-light: hsl(var(--game-hue) var(--game-saturation) 25%);
  --hero-shade: hsl(calc(var(--game-hue) + 24) 44% 20%);
  align-items: center;
  gap: clamp(1rem, 4vw, 3.6rem);
  padding: clamp(.85rem, 3.6vw, 3.4rem);
  color: var(--ink);
  border: 2px solid hsl(var(--game-hue) 49% 52%);
  border-radius: clamp(.95rem, 2vw, 1.6rem);
  background-color: var(--hero-ground);
  background-image:
    radial-gradient(ellipse 80% 105% at 92% 4%, var(--hero-light), transparent 76%),
    linear-gradient(134deg, var(--hero-ground) 17%, var(--hero-shade) 100%);
  background-repeat: no-repeat;
  background-size: 133% 126%, 100% 100%;
  background-position: 55% 38%, center;
  box-shadow: 0 1.4rem 3rem -2rem var(--hero-ground);
}
.game .cartridge-product .detail .button.primary { box-shadow: 3px 3px 0 var(--hero-ground); }
.game .cartridge-product .detail .button.primary:active { box-shadow: 1px 1px 0 var(--hero-ground); }
.game .cartridge-product .detail .button.secondary {
  border-color: var(--line);
  background: #fffdf90a;
}
.game .cartridge-product .detail .button.secondary:is(:hover, :active) {
  border-color: var(--focus);
  background: #fffdf91a;
}
@media (prefers-reduced-motion: no-preference) {
  .game .cartridge-product .detail { animation: cartridge-hero-light 16s ease-in-out infinite alternate; }
}
@keyframes cartridge-hero-light {
  to { background-position: 88% 80%, center; }
}
.cartridge-pitch { max-width: 55ch; margin: .9rem 0 0; color: var(--ink); font-size: clamp(1rem, 1.5vw, 1.16rem); }
.development-credit { max-width: 55ch; margin: .7rem 0 0; color: var(--muted); font-size: .9rem; }
.game .cartridge-product .cabinet-preview {
  height: auto;
  gap: .54rem;
  padding: clamp(.65rem, 1.75vw, 1.35rem);
  border: 1px solid hsl(var(--game-hue) 39% 48%);
  background:
    var(--cabinet-pattern, repeating-linear-gradient(135deg, transparent 0 8px, #ffffff0c 8px 9px)),
    linear-gradient(140deg, hsl(var(--game-hue) var(--game-saturation) 34%) 0%, hsl(var(--game-hue) 47% 15%) 96%);
  box-shadow: inset 2px 2px 0 #ffffff24, 6px 6px 0 #080913a1;
}
.cartridge-cabinet { width: 100%; display: grid; place-items: center; }
.cabinet-label { margin: 0; color: #fffdf8; font: 650 .8rem/1.3 var(--body); }
.cartridge-product:is([data-genre="puzzle"], [data-genre="strategy"], [data-genre="cards-dice"]) {
  --cabinet-pattern: repeating-conic-gradient(#ffffff0e 0 25%, transparent 0 50%) 0 0 / 18px 18px;
}
.cartridge-product:is([data-genre="sports"], [data-genre="arcade"], [data-genre="platformer"]) {
  --cabinet-pattern: repeating-linear-gradient(0deg, transparent 0 5px, #ffffff14 5px 6px);
}
.cartridge-product:is([data-genre="adventure"], [data-genre="simulation"], [data-genre="horror"]) {
  --cabinet-pattern: radial-gradient(circle, #ffffff26 1px, transparent 1.6px) 0 0 / 14px 14px;
}
.cartridge-story {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.7rem, 2vw, 1.55rem); margin-top: clamp(1.4rem, 3vw, 2.75rem);
}
.cartridge-story > div {
  padding: clamp(1rem, 3vw, 2rem);
  border: 2px solid var(--ink); border-radius: 12px;
  background: var(--panel); box-shadow: 3px 3px var(--ink);
}
.cartridge-story > div:nth-child(2) { background: var(--tinted-panel); }
.cartridge-story h2 { font-size: clamp(.97rem, 2.2vw, 1.65rem); }
.cartridge-story p { margin: .62rem 0 0; color: var(--muted); max-width: 62ch; }
.cartridge-controls { margin-block: 1rem 0; border-block: 1px solid hsl(var(--game-hue) 27% 40%); }
.cartridge-controls summary {
  cursor: pointer; display: list-item; list-style: disclosure-closed;
  padding: .85rem .5rem .85rem 1.4rem; font-size: 1.05rem; font-weight: 700; color: var(--kicker);
}
.cartridge-controls[open] summary { list-style-type: disclosure-open; }
.cartridge-controls .facts { max-width: 64ch; }
.cartridge-product .gameplay-teaser {
  margin-block: clamp(1.1rem, 3vw, 2.5rem);
  background: var(--tinted-panel); border: 2px solid var(--ink); border-radius: 12px;
  padding: clamp(.8rem, 2vw, 1.5rem);
}
.cartridge-product .gameplay-teaser h2 { font-size: clamp(1.07rem, 2.3vw, 1.7rem); }
.discovery-moods { margin-top: 1.65rem; }
.game .discovery-moods h2 { font: 400 clamp(1.15rem, 2.2vw, 1.9rem)/1.3 var(--pixel); letter-spacing: -.062em; }
.game[data-theme] .game-guide { border-color: hsl(var(--game-hue) 35% 40%); }
.game .game-tags { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1rem; }
.game-tags a {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: .72rem;
  font-weight: 700; background: #fff7d6; border: 1px solid #6c5b8c; border-radius: 8px;
}
.game-tags a:hover { border-color: var(--focus); background: #f8e5ff; }
.game-support {
  display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); gap: 1.2rem;
  margin-block: 2rem; border: 1px solid hsl(var(--game-hue) 42% 54%);
  background: hsl(var(--game-hue) 37% 20%); padding: clamp(1rem, 3vw, 2rem);
}
.game-support h2 { font: 400 clamp(1.07rem, 2vw, 1.8rem)/1.3 var(--pixel); letter-spacing: -.062em; }
.game-support h2 + p { color: #eae6f6; margin-bottom: 0; max-width: 53ch; }
.support-label { margin: 0; font-size: .91rem; }
.support-help { margin: .48rem 0 0; font-size: .86rem; color: var(--muted); }
.support-amounts { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; margin: .45rem 0 .8rem; }
.support-amounts li { padding: .42rem .8rem; background: #141426; font-weight: 700; border: 1px solid #8b83ad; color: var(--kicker); }
.game .player-bar { background: #1c1b34; }
.game .cartridge .card-label > .cartridge-price {
  width: auto; min-width: max-content; font-size: .75rem; font-weight: 750; padding: .26rem .36rem;
  color: #19162b; background: var(--case-ink); border-radius: 2px; white-space: nowrap;
}
.sale-status { color: var(--muted); margin: 0; }
.sale-status strong { color: var(--accent); font-size: 1.1rem; display: block; }
.cartridge-sale > p { margin: .65rem 0 0; font-size: .9rem; color: var(--muted); }
.edition-extras {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  margin-top: 2rem; padding: clamp(.95rem, 3vw, 2rem);
  background: var(--tinted-panel); border: 2px solid var(--ink); border-radius: 12px;
  box-shadow: 3px 3px var(--ink);
}
.edition-extras h2 { font-size: clamp(1rem, 2.7vw, 1.8rem); }
.pack-in-list { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; padding: 0; margin: .75rem 0; }
.pack-in-list li {
  padding: .32rem .56rem; background: #fffdf9; color: var(--kicker);
  border: 1px solid var(--line); border-radius: 5px; font-size: .94rem;
}
.edition-extra-copy > p { color: var(--muted); margin: .75rem 0 0; }
.edition-insert {
  max-width: 59ch; padding: .8rem 1rem; margin: 1rem 0;
  border-inline-start: 4px solid var(--kicker); background: #fffdf9;
}
.edition-insert h3 { font-size: clamp(.84rem, 1.7vw, 1.2rem); margin: 0; }
.edition-insert p { color: var(--muted); margin: .35rem 0 0; }
.gameplay-teaser video { width: min(100%, 780px); max-height: min(72vh, 530px); background: #0b0a1b; }
.collection-masthead {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end;
  gap: clamp(.85rem, 3vw, 2.6rem); padding: clamp(1rem, 4vw, 3rem);
  border: 2px solid var(--ink); border-radius: 15px; box-shadow: 5px 5px var(--ink);
  background: radial-gradient(ellipse at 95% 0%, #ffe2a0 0, transparent 65%),
    repeating-linear-gradient(0deg, #fff0 0 4px, #fff4 4px 5px),
    linear-gradient(110deg, #bcedfb 0, #dfd5ff 42%, #ffd0e8 100%);
}
.game .collection-masthead h1 { max-width: 19ch; font-size: clamp(1.36rem, 4.1vw, 3.29rem); }
.collection-masthead p { max-width: 48ch; margin: .7rem 0 0; color: #43315d; }
.collection-totals { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; }
.collection-totals div {
  display: flex; flex-direction: column-reverse; gap: .35rem; justify-content: center;
  padding: .6rem .72rem; min-width: 0; min-height: 68px; border: 2px solid var(--ink);
  border-radius: 9px; background: #fff9f0; box-shadow: 2px 2px var(--ink);
}
.collection-totals div:nth-child(2) { background: #eae2ff; }
.collection-totals dt { color: #4e3863; font-size: .79rem; font-weight: 700; line-height: 1.25; }
.collection-totals dd { margin: 0; font: 400 clamp(.84rem, 1.8vw, 1.18rem)/1.35 var(--pixel); letter-spacing: -.05em; }
.collection-controls {
  display: flex; align-items: center; justify-content: space-between; gap: .55rem; flex-wrap: wrap;
  padding: .55rem; border: 2px solid var(--ink); border-radius: 11px;
  background: linear-gradient(#f8f0ff, #e6dcff); box-shadow: 3px 3px var(--ink);
}
.collection-filters { display: flex; gap: .35rem; flex-wrap: wrap; }
.collection-filters button {
  min-height: 44px; padding: .42rem .68rem; border: 1px solid #8875ac;
  border-radius: 7px; background: #fffaf8; color: var(--ink); font-weight: 750;
}
.collection-filters button[aria-pressed="true"] {
  border-color: var(--ink); box-shadow: inset 0 -3px #34205238; background: #dcff70;
}
.collection-filters button:hover { border-color: var(--focus); }
.collection-search {
  display: flex; align-items: center; gap: .55rem; flex: 0 1 15.25rem; min-width: 0;
  padding-inline: .62rem; border: 1px solid #8875ac; border-radius: 7px; background: #fffdfb;
}
.collection-search:focus-within { outline: 2px solid var(--focus); outline-offset: 3px; }
.collection-search input {
  width: 100%; min-width: 0; min-height: 44px; padding: .38rem 0; border: 0; background: transparent; font-size: 1rem;
}
.collection-search input:focus-visible { outline: none; }
.collection-status { margin: .92rem 0 .7rem; color: var(--muted); font-size: .88rem; }
.collection-shelf {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start; gap: clamp(.64rem, 1.9vw, 1.32rem); list-style: none; margin: 0; padding: 0;
}
.collection-item {
  min-width: 0; border: 2px solid #7b6c9c; border-radius: 12px;
  background: linear-gradient(164deg, #e5dcef, #f6effa 68%); box-shadow: 2px 3px #7b6c9c;
}
.collection-item[data-ownership="owned"] {
  border-color: var(--ink); background: linear-gradient(164deg, #dbcbff, #fff2fa 68%);
  box-shadow: 3px 4px var(--ink);
}
.collection-game { display: grid; border-radius: 10px; overflow: hidden; }
.collection-game:hover .collection-action { text-decoration: underline; text-underline-offset: .21em; }
.collection-cover .cartridge-shell { margin: clamp(.42rem, 1.15vw, .85rem) clamp(.42rem, 1.2vw, .9rem) 0; }
.collection-item[data-ownership="unowned"] .collection-cover { --game-saturation: 23%; }
.collection-item[data-ownership="unowned"] .collection-cover img { opacity: .54; filter: saturate(.48); }
.collection-item[data-ownership="unowned"] .cartridge-ribs { opacity: .64; }
.collection-game-footer {
  display: flex; align-items: center; justify-content: space-between; gap: .25rem .38rem; flex-wrap: wrap;
  min-height: 44px; margin: .42rem .58rem .3rem; padding: 0 0 .15rem;
}
.collection-state {
  border-radius: 3px; padding: .18rem .36rem; color: #4e3e67; background: #eee7f5;
  font-size: .68rem; line-height: 1.25; font-weight: 750; letter-spacing: .025em; text-transform: uppercase;
}
[data-ownership="owned"] .collection-state { background: #dcff70; color: #292440; }
.collection-action { color: #422871; font-size: .79rem; font-weight: 760; }
.collection-collectibles { padding: .56rem .58rem .65rem; border-top: 1px dashed #8c75ab; }
.collection-collectibles-label {
  margin: 0 0 .35rem; color: #4c386c; font-size: .71rem; font-weight: 750; letter-spacing: .03em;
}
.collection-collectibles ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.collection-mini {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center;
  gap: .44rem; min-height: 44px; padding: .28rem .35rem; border: 1px solid #79679b;
  border-radius: 5px; background: linear-gradient(132deg, #fff5d7, #fff8f9 65%); line-height: 1.3;
}
.collection-mini:hover { border-color: var(--focus); background: #fffdf2; }
.collection-mini-art {
  width: 23px; height: 21px; display: grid; place-content: center; flex: none;
  color: #36214f; background: #d7bfff; border: 1px solid currentColor; border-radius: 3px; box-shadow: inset 0 -2px #311a5033;
}
.collection-mini-art.collectible-thumbnail {
  display: grid; width: 32px; height: 27px; place-content: stretch; overflow: hidden;
  background: #332551; box-shadow: none;
}
.collection-mini-art.collectible-thumbnail::after { display: none; }
.collection-mini-art img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.collection-mini-art::after {
  content: ""; width: 11px; height: 11px; background: currentColor;
  clip-path: polygon(36% 0, 64% 0, 64% 20%, 82% 20%, 82% 38%, 100% 38%, 100% 62%,
    82% 62%, 82% 82%, 64% 82%, 64% 100%, 36% 100%, 36% 82%, 18% 82%, 18% 62%, 0 62%, 0 38%,
    18% 38%, 18% 20%, 36% 20%);
}
.collection-mini-art[data-form="ticket"] { background: #ffca7f; }
.collection-mini-art[data-form="ticket"]::after {
  clip-path: polygon(0 10%, 100% 10%, 100% 32%, 82% 32%, 82% 68%, 100% 68%, 100% 90%,
    0 90%, 0 68%, 18% 68%, 18% 32%, 0 32%);
}
.collection-mini-art[data-form="post"] { background: #ffbbd4; }
.collection-mini-art[data-form="post"]::after {
  background: linear-gradient(36deg, transparent 42%, #36214f 43% 55%, transparent 57%) left top / 50% 65% no-repeat,
    linear-gradient(-36deg, transparent 42%, #36214f 43% 55%, transparent 57%) right top / 50% 65% no-repeat;
  border: 1px solid currentColor; clip-path: none; height: 8px;
}
.collection-mini-art[data-form="packet"] { background: #b8efd0; }
.collection-mini-art[data-form="packet"]::after {
  clip-path: polygon(26% 0, 74% 0, 74% 27%, 86% 27%, 86% 100%, 14% 100%, 14% 27%, 26% 27%);
}
.collection-mini-copy { display: grid; gap: .082rem; overflow-wrap: anywhere; }
.collection-mini-copy strong { font-size: .79rem; line-height: 1.25; }
.collection-mini-form { color: #5e4675; font-size: .68rem; }
@media (max-width: 1000px) {
  .collection-shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .collection-masthead { grid-template-columns: minmax(0, 1fr); }
  .collection-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .game .cartridge .card-label { align-items: flex-start; flex-wrap: wrap; }
  .collection-search { flex: 1 0 100%; }
  .collection-totals div { min-height: 58px; }
  .collection-game-footer { margin-inline: .4rem; }
  .collection-collectibles { padding-inline: .38rem; }
  .collection-mini { gap: .3rem; padding-inline: .22rem; }
  .collection-mini-art.collectible-thumbnail { width: 24px; height: 22px; }
}

@media (max-width: 760px) {
  .game .wrap { padding-inline: max(16px, env(safe-area-inset-left), env(safe-area-inset-right)); }
  .game .header-row { min-height: auto; padding-top: .2rem; }
  .game .header-row nav { border-color: #414169; }
  .game .cards, .game .home-shelf .cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .game .collection-grid { grid-template-columns: 1fr; }
  .collection-tile.illustrated { min-height: 170px; }
  .collection-tile img { object-position: 50% 49%; }
  .game .cartridge .card-label { padding: .6rem .52rem .65rem; align-items: end; }
  .game .cartridge .card-label svg { width: 15px; }
  .game .detail { grid-template-columns: minmax(0,1fr); }
  .game .detail .cabinet-preview { height: auto; }
  .game .filter-options { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 700px) and (orientation: portrait) {
  .game .studio-intro { grid-template-columns: minmax(0, 1fr); padding: .95rem; box-shadow: 4px 5px var(--ink); }
  .game .studio-copy h1 { font-size: clamp(1.33rem, 6.1vw, 2.65rem); margin-block: .56rem .6rem; }
  .game .studio-copy .hero-intro { margin: .65rem 0; max-width: 36ch; line-height: 1.37; }
  .game .studio-copy .actions { margin-top: .72rem; gap: .45rem; }
  .game .studio-copy .button { min-height: 44px; padding-inline: .66rem; }
  .game .studio-copy .button svg { width: 16px; }
  .hero-credit { margin-top: .72rem; }
  .showcase { grid-template-columns: minmax(0,1fr); }
  .game .library-heading .button { min-height: 44px; padding: .35rem .55rem; }
  .game .content { padding-top: 1.12rem; }
  .game-support { grid-template-columns: minmax(0,1fr); }
  .cartridge-story { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 385px) and (orientation: portrait) {
  .game .studio-copy h1 { font-size: clamp(1.25rem, 6.1vw, 1.7rem); }
  .game .cartridge .card-label .eyebrow { font-size: .62rem; }
  .game[data-theme] .cartridge-product h1 { font-size: clamp(1.11rem, 5.9vw, 1.43rem); }
  .game .cartridge-product { padding-top: .6rem; }
  .game .cartridge-product .eyebrow { margin-bottom: .5rem; }
  .cartridge-pitch { margin-top: .64rem; line-height: 1.53; }
  .game .cartridge-sale .actions { margin-top: .8rem; gap: .5rem; }
  .game .cartridge-sale .button { padding-inline: .64rem; }
}
@media (max-width: 365px) {
  .game .cards, .game .home-shelf .cards { grid-template-columns: minmax(0, 1fr); }
}
@media (orientation: landscape) and (max-height: 450px) {
  .game .header-row { grid-template-columns: minmax(0,1fr) auto auto; min-height: 47px; padding-top: 0; }
  .game .studio-hero { padding-top: .72rem; }
  .game .studio-intro { padding: .82rem; }
  .game .studio-copy h1 { font-size: clamp(1.11rem, 3.1vw, 2.5rem); margin-block: .4rem .6rem; }
  .game .studio-copy .hero-intro { line-height: 1.3; margin-block: .55rem .6rem; }
  .game .studio-copy .actions { margin-top: .55rem; }
  .hero-credit { margin-top: .55rem; }
  .game .detail { grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); gap: .7rem; }
  .game .cartridge-product .detail { gap: .85rem; padding: .85rem; }
  .game[data-theme] .detail h1 { font-size: clamp(1.25rem, 3.5vw, 2.25rem); }
  .game .detail .cabinet-preview { height: auto; }
  .game .cabinet-preview .card-media { max-height: 34dvh; }
  .cartridge-pitch { margin-top: .4rem; font-size: .9rem; line-height: 1.4; }
  .game .content { padding-top: .3rem; }
}
@media (orientation: landscape) and (max-width: 620px) and (max-height: 450px) {
  .game .studio-name { display: none; }
  .game .header-row { gap: .25rem; }
  .game .header-row nav { gap: .3rem; }
  .game .studio-copy h1 { font-size: clamp(1.05rem, 2.95vw, 1.85rem); }
}

[data-theme="yard-after-yard"] { --game-hue: 228; --game-saturation: 55%; }
[data-theme="wild-cue"] { --game-hue: 215; --game-saturation: 48%; }
[data-theme="void-forge"] { --game-hue: 196; --game-saturation: 48%; }
[data-theme="unit-13-mobile"] { --game-hue: 306; --game-saturation: 48%; }
[data-theme="thousand-dice"] { --game-hue: 221; --game-saturation: 48%; }
[data-theme="the-wild-after"] { --game-hue: 168; --game-saturation: 48%; }
[data-theme="the-unwritten-crown"] { --game-hue: 34; --game-saturation: 56%; }
[data-theme="the-last-thaw"] { --game-hue: 206; --game-saturation: 48%; }
[data-theme="the-golden-confluence"] { --game-hue: 180; --game-saturation: 50%; }
[data-theme="the-extraordinary-child"] { --game-hue: 28; --game-saturation: 57%; }
[data-theme="the-echoes-of-the-past"] { --game-hue: 210; --game-saturation: 48%; }
[data-theme="sugar-service"] { --game-hue: 279; --game-saturation: 48%; }
[data-theme="still-shift"] { --game-hue: 38; --game-saturation: 63%; }
[data-theme="starshot"] { --game-hue: 229; --game-saturation: 62%; }
[data-theme="somewhere-after"] { --game-hue: 34; --game-saturation: 57%; }
[data-theme="soft-signal"] { --game-hue: 209; --game-saturation: 48%; }
[data-theme="snowball-rally-mobile"] { --game-hue: 180; --game-saturation: 77%; }
[data-theme="skylight-commons"] { --game-hue: 351; --game-saturation: 48%; }
[data-theme="skylight-03"] { --game-hue: 247; --game-saturation: 48%; }
[data-theme="scrap-flag"] { --game-hue: 33; --game-saturation: 48%; }
[data-theme="reverse-zoo"] { --game-hue: 39; --game-saturation: 59%; }
[data-theme="putter-worlds"] { --game-hue: 257; --game-saturation: 48%; }
[data-theme="push-your-luck-dice"] { --game-hue: 232; --game-saturation: 48%; }
[data-theme="puff-parade"] { --game-hue: 23; --game-saturation: 48%; }
[data-theme="pocket-wyrms"] { --game-hue: 16; --game-saturation: 48%; }
[data-theme="pocket-ricochet"] { --game-hue: 261; --game-saturation: 48%; }
[data-theme="petal-post"] { --game-hue: 40; --game-saturation: 48%; }
[data-theme="open-form"] { --game-hue: 6; --game-saturation: 48%; }
[data-theme="offside-elsewhere"] { --game-hue: 63; --game-saturation: 48%; }
[data-theme="mirrorball-lanes"] { --game-hue: 30; --game-saturation: 53%; }
[data-theme="lumen-atlas"] { --game-hue: 240; --game-saturation: 48%; }
[data-theme="lucky-midway"] { --game-hue: 52; --game-saturation: 61%; }
[data-theme="lucid-wing"] { --game-hue: 333; --game-saturation: 54%; }
[data-theme="liminal-bowling"] { --game-hue: 35; --game-saturation: 48%; }
[data-theme="lighthouse-billiards"] { --game-hue: 206; --game-saturation: 73%; }
[data-theme="last-ticket"] { --game-hue: 249; --game-saturation: 48%; }
[data-theme="lantern-lines"] { --game-hue: 36; --game-saturation: 49%; }
[data-theme="keep-court"] { --game-hue: 194; --game-saturation: 48%; }
[data-theme="islands-of-scale"] { --game-hue: 188; --game-saturation: 48%; }
[data-theme="imagined-hope"] { --game-hue: 40; --game-saturation: 75%; }
[data-theme="hushwild-bellkeepers-pact"] { --game-hue: 190; --game-saturation: 48%; }
[data-theme="how-to-be-free"] { --game-hue: 34; --game-saturation: 60%; }
[data-theme="how-consciousness-waves"] { --game-hue: 249; --game-saturation: 48%; }
[data-theme="graveyard-match"] { --game-hue: 240; --game-saturation: 48%; }
[data-theme="farwake"] { --game-hue: 188; --game-saturation: 75%; }
[data-theme="eternal-night-arcade"] { --game-hue: 291; --game-saturation: 48%; }
[data-theme="emotion-carnival"] { --game-hue: 354; --game-saturation: 48%; }
[data-theme="emberwood-almanac"] { --game-hue: 3; --game-saturation: 48%; }
[data-theme="drive-thru-philosophy"] { --game-hue: 249; --game-saturation: 48%; }
[data-theme="dream-suburbia"] { --game-hue: 18; --game-saturation: 82%; }
[data-theme="doughdrops"] { --game-hue: 32; --game-saturation: 64%; }
[data-theme="donut-shift"] { --game-hue: 16; --game-saturation: 53%; }
[data-theme="dinosaur-safari"] { --game-hue: 42; --game-saturation: 48%; }
[data-theme="dead-relay"] { --game-hue: 247; --game-saturation: 82%; }
[data-theme="dead-letter-terminal"] { --game-hue: 171; --game-saturation: 48%; }
[data-theme="cosmic-dining-voyage"] { --game-hue: 232; --game-saturation: 48%; }
[data-theme="coral-reef-arcade"] { --game-hue: 216; --game-saturation: 48%; }
[data-theme="collectible-toothbrushes"] { --game-hue: 171; --game-saturation: 48%; }
[data-theme="cloudborne"] { --game-hue: 32; --game-saturation: 66%; }
[data-theme="cinematic-vinyl-listening-rooms"] { --game-hue: 240; --game-saturation: 48%; }
[data-theme="christmas-on-tape"] { --game-hue: 338; --game-saturation: 48%; }
[data-theme="channel-86"] { --game-hue: 43; --game-saturation: 48%; }
[data-theme="cedar-signal"] { --game-hue: 33; --game-saturation: 48%; }
[data-theme="carnival-sleepover"] { --game-hue: 16; --game-saturation: 72%; }
[data-theme="bubble-theaters"] { --game-hue: 232; --game-saturation: 48%; }
[data-theme="bouncy-castle"] { --game-hue: 43; --game-saturation: 82%; }
[data-theme="bounce-orbit"] { --game-hue: 199; --game-saturation: 48%; }
[data-theme="boulder-opal-collector"] { --game-hue: 352; --game-saturation: 48%; }
[data-theme="blackjack-below-deck"] { --game-hue: 333; --game-saturation: 48%; }
[data-theme="bit-foundry"] { --game-hue: 240; --game-saturation: 48%; }
[data-theme="authentic-self-labyrinth"] { --game-hue: 238; --game-saturation: 48%; }
[data-theme="arthur-dawn-crown"] { --game-hue: 238; --game-saturation: 77%; }
[data-theme="arcade-taxi"] { --game-hue: 248; --game-saturation: 48%; }
[data-theme="arcade-express"] { --game-hue: 251; --game-saturation: 48%; }
[data-theme="angels"] { --game-hue: 32; --game-saturation: 48%; }
[data-theme="alien-word-search"] { --game-hue: 244; --game-saturation: 48%; }
[data-theme="afterlight"] { --game-hue: 229; --game-saturation: 60%; }
[data-theme="afterglow-video-club"] { --game-hue: 324; --game-saturation: 48%; }
[data-theme="aero-orchard"] { --game-hue: 210; --game-saturation: 82%; }
[data-theme="adclick"] { --game-hue: 215; --game-saturation: 69%; }
