/* piruzgame.com on the Redline system (tokens.css + components.css from the brand pack).
   Layout: the kit's launcher. Desktop = fixed left rail (brand, Discover / My library / About, theme) beside
   the content; phones = brand bar with tabs. Home = "Make room for play." intro, one burgundy featured card
   with the game playing in a phone, numbered game cards, series, a metallic brand band. */
:root { --rail: 280px; --pg-gutter-x: max(var(--pg-gutter), env(safe-area-inset-left, 0px)); }
html { background: var(--pg-bg); -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { min-height: 100vh; }
h1, h2, h3 { font-family: var(--pg-font-display); font-weight: 700; line-height: 1.02; margin: 0; letter-spacing: .005em; text-wrap: balance; }
p { margin: 0; }
img, video { display: block; max-width: 100%; }
.pg-icon { width: 20px; height: 20px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--pg-muted); }
.eyebrow.red { color: var(--pg-accent-text); }

/* ---------- app shell ---------- */
.app { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); min-height: 100vh; }
.rail { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 28px; padding: 28px 16px 20px;
  border-right: 1px solid var(--pg-border); background: var(--pg-bg); }
.brand { display: flex; align-items: center; justify-content: center; text-decoration: none; color: var(--pg-text); min-height: 44px; }
.brand img { width: 240px; height: auto; }
.brand b { display: block; font: 700 25px/0.95 var(--pg-font-display); letter-spacing: .02em; }
.brand small { display: block; font: 600 13px/1.2 var(--pg-font-display); letter-spacing: .32em; color: var(--pg-muted); margin-top: 3px; }
.railnav { display: grid; gap: 6px; }
.railnav a { position: relative; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 12px 14px; border-radius: 7px; color: var(--pg-muted);
  text-decoration: none; font-size: 15px; font-weight: 500; }
.railnav a:hover { background: var(--pg-raised); color: var(--pg-text); }
.railnav a[aria-current="page"] { background: var(--pg-raised); color: var(--pg-text); }
.railnav a[aria-current="page"]::before { content: ""; position: absolute; left: -16px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--pg-red); }
.railnav a[aria-current="page"] .pg-icon { color: var(--pg-accent-text); }
.rail-foot { margin-top: auto; display: grid; gap: 12px; padding: 0 6px; }
.rail-foot p { color: var(--pg-muted); font-size: 13px; line-height: 1.45; }
.theme-btn { justify-content: flex-start; width: 100%; color: var(--pg-muted); }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 14px var(--pg-gutter-x);
  background: color-mix(in srgb, var(--pg-bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--pg-border); }
.topbar .mbrand { display: none; }
.search { flex: 1; max-width: 460px; }
.search .pg-input { min-height: 44px; padding-top: 9px; padding-bottom: 9px; background: var(--pg-surface); }
.search .pg-input-wrap > .pg-icon { top: 12px; }
.top-tabs { display: none; }
.content { width: 100%; max-width: var(--pg-max-width); margin: 0 auto; padding: 32px var(--pg-gutter-x) 0; flex: 1; }
@media (max-width: 960px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .rail { display: none; }
  .topbar { flex-wrap: wrap; gap: 10px 12px; padding-top: calc(10px + env(safe-area-inset-top, 0px)); }
  .topbar .mbrand { display: flex; }
  .topbar { position: relative; }
  .topbar .mbrand img { width: 220px; }
  .topbar .mbrand b { font-size: 21px; } .topbar .mbrand small { font-size: 11px; }
  .topbar .theme-btn { width: 44px; margin-left: auto; justify-content: center; }
  .topbar .theme-btn span { display: none; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .top-tabs { display: flex; order: 4; flex-basis: 100%; gap: 2px; margin: 0 calc(-1 * var(--pg-gutter-x)); padding: 0 var(--pg-gutter-x); border-bottom: 0; overflow-x: auto; }
  .top-tabs a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; color: var(--pg-muted); text-decoration: none; font-size: 14px; font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; }
  .top-tabs a[aria-current="page"] { color: var(--pg-text); border-bottom-color: var(--pg-red); }
  .content { padding-top: 22px; }
}

/* ---------- intro + featured ---------- */
.intro { display: grid; gap: 8px; margin-bottom: 22px; }
.intro h1 { font-size: clamp(38px, 5vw, 58px); }
.intro p { color: var(--pg-muted); font-size: 17px; }
.featured { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center;
  min-height: 330px; padding: 34px; border: 1px solid #4F2734; border-radius: 10px; color: #F5F7FA;
  background: radial-gradient(120% 140% at 85% 30%, #6d0f22 0%, #3a0a17 38%, #160a10 75%), #14090e; }
.featured::before { content: ""; position: absolute; z-index: -1; right: -6%; top: 50%; width: 62%; aspect-ratio: 2.2 / 1; transform: translateY(-50%) rotate(-14deg);
  border-radius: 50%; border: 14px solid rgba(229, 9, 36, .55); box-shadow: 0 0 0 1px rgba(255, 120, 140, .25), inset 0 0 0 1px rgba(255, 120, 140, .25); }
.featured::after { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 50%; height: 1px; background: linear-gradient(90deg, transparent, rgba(240, 68, 93, .45) 40%, transparent); }
.featured .copy { display: grid; gap: 14px; justify-items: start; max-width: 560px; }
.featured .pg-badge { color: #F0445D; border-color: currentColor; }
.featured h2 { font-size: clamp(54px, 7vw, 96px); line-height: .9; }
.featured .tagline { font-size: clamp(17px, 2vw, 20px); color: #E7EAF0; max-width: 34ch; }
.featured .meta { color: #B7C0CD; font-size: 14px; }
.featured .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.featured .pg-btn--secondary { color: #F5F7FA; border-color: #8A6670; }
.featured .pg-btn--secondary:hover { background: rgba(255, 255, 255, .08); }
.phone { width: 236px; aspect-ratio: 9 / 16; border-radius: 26px; padding: 7px; background: #05060a; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 28px 60px rgba(0, 0, 0, .55);
  transform: rotate(4deg); margin-right: 26px; }
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; background: #000; }
@media (max-width: 760px) {
  .featured { grid-template-columns: minmax(0, 1fr); padding: 0; min-height: 0; align-items: end; }
  .featured .phonewrap { order: -1; display: flex; justify-content: center; padding: 26px 0 0; }
  .featured .phone { width: 200px; margin: 0; transform: rotate(3deg); }
  .featured .copy { padding: 18px 20px 24px; }
  .featured::before { width: 120%; right: -40%; top: 30%; }
}

/* ---------- shelf + game cards ---------- */
.shelf { margin-top: 44px; }
.shelf-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.shelf-head h2 { font-size: clamp(28px, 3.2vw, 36px); }
.shelf-head .count { color: var(--pg-muted); font-size: 13px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip { appearance: none; min-height: 40px; padding: 8px 14px; border-radius: 6px; border: 1px solid var(--pg-border); background: var(--pg-surface); color: var(--pg-muted); font-size: 13px; font-weight: 600; }
.chip:hover { color: var(--pg-text); border-color: var(--pg-control-border); }
.chip[aria-pressed="true"] { color: var(--pg-text); border-color: var(--pg-red); box-shadow: inset 0 -2px 0 var(--pg-red); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.gcard { position: relative; min-width: 0; border: 1px solid var(--pg-border); border-radius: 9px; overflow: hidden; background: var(--pg-surface);
  transition: border-color var(--pg-fast) var(--pg-ease), transform var(--pg-duration) var(--pg-ease); }
.gcard .glink { display: flex; flex-direction: column; height: 100%; color: var(--pg-text); text-decoration: none; }
.gcard:not(.soon):hover { border-color: var(--pg-control-border); transform: translateY(-2px); }
.gcard .glink:focus-visible { outline-offset: -3px; }
.gcard .cover { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--pg-raised); }
.gcard .cover img, .gcard .cover video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }
.gcard .cover video { opacity: 0; transition: opacity var(--pg-emphasis) var(--pg-ease); }
.gcard .cover video.on { opacity: 1; }
.gcard .cover::after { content: ""; position: absolute; inset: auto 0 0; height: 55%; background: linear-gradient(0deg, rgba(9, 11, 15, .82), transparent); pointer-events: none; }
.gcard .num { position: absolute; left: 14px; bottom: 2px; z-index: 2; font: 700 64px/1 var(--pg-font-display); color: rgba(245, 247, 250, .16); letter-spacing: -.01em; pointer-events: none; }
.gcard .flag { position: absolute; left: 12px; top: 12px; z-index: 2; background: var(--pg-red); color: #fff; border: 0; }
.heart { position: absolute; right: 10px; top: 10px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .28); background: rgba(9, 11, 15, .55); color: #F5F7FA; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.heart:hover { background: rgba(9, 11, 15, .8); }
.heart[aria-pressed="true"] { color: #fff; background: var(--pg-red); border-color: var(--pg-red); }
.heart[aria-pressed="true"] svg { fill: currentColor; }
.gcard .body { display: grid; gap: 8px; padding: 14px 14px 12px; flex: 1; align-content: start; }
.gcard .kicker { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--pg-muted); }
.gcard h3 { font-size: 26px; }
.gcard .sub { color: var(--pg-muted); font-size: 14px; line-height: 1.4; }
.gcard .bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 6px; }
.gcard .bottom .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.gcard .bottom .pg-icon { color: var(--pg-muted); }
.gcard:not(.soon):hover .bottom .pg-icon { color: var(--pg-accent-text); transform: translateX(3px); transition: transform var(--pg-fast) var(--pg-ease); }
.gcard.soon { opacity: .9; }
.gcard.soon .cover img { filter: grayscale(.65) brightness(.75); }
.gcard.mini h3 { font-size: 20px; }
.gcard.mini .sub, .gcard.mini .bottom, .gcard.mini .num { display: none; }
.gcard.mini .cover { aspect-ratio: 1 / 1; }
.empty { color: var(--pg-muted); padding: 20px 0; }
@media (max-width: 560px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .gcard h3 { font-size: 21px; } .gcard .sub { display: none; } .gcard .num { font-size: 46px; } .gcard .cover { aspect-ratio: 4 / 5; } }

/* library */
.library { margin-top: 32px; }
.library .grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }

/* series */
.series { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.serie { display: grid; gap: 10px; align-content: start; }
.serie h3 { font-size: 24px; }
.serie p { color: var(--pg-muted); font-size: 14px; }
.serie .members { display: flex; flex-wrap: wrap; gap: 8px; }
.serie .members a, .serie .members span { font-size: 13px; font-weight: 600; text-decoration: none; color: var(--pg-text); background: var(--pg-raised); border-radius: 6px; padding: 7px 10px; min-height: 32px; }
.serie .members a:hover { color: var(--pg-accent-text); }
.serie .members span { color: var(--pg-muted); }

/* brand band: the metallic logo on graphite */
.band { margin-top: 56px; border-radius: 12px; border: 1px solid var(--pg-border); overflow: hidden; position: relative; isolation: isolate;
  background: radial-gradient(70% 120% at 50% 50%, #1b1f27 0%, #0b0d12 70%), #090B0F; padding: 44px 24px; display: grid; justify-items: center; gap: 18px; text-align: center; }
.band::before { content: ""; position: absolute; z-index: -1; left: 8%; right: 8%; top: 50%; height: 1px; background: linear-gradient(90deg, transparent, rgba(229, 9, 36, .65), transparent); }
.band img { width: min(560px, 92%); height: auto; }
.band p { color: #B7C0CD; max-width: 52ch; font-size: 15px; }
:root[data-theme=light] .band { background: radial-gradient(70% 120% at 50% 50%, #ffffff 0%, #e9edf3 75%); }
:root[data-theme=light] .band p { color: var(--pg-muted); }

/* ---------- game page ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--pg-muted); font-size: 13px; margin-bottom: 16px; }
.crumbs a { color: var(--pg-muted); text-decoration: none; } .crumbs a:hover { color: var(--pg-text); }
.gp { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px; align-items: start; }
.gp.wide { grid-template-columns: minmax(0, 1fr); }
.player { position: relative; overflow: hidden; border-radius: 12px; border: 1px solid var(--pg-border); background: #05060a; }
.gp.tall .player { height: min(80vh, 840px); aspect-ratio: 9 / 16; max-width: 100%; }
.gp.wide .player { aspect-ratio: 16 / 9; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.player .cover { position: absolute; inset: 0; display: grid; place-items: center; }
.player .cover img, .player .cover video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.player .cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(9, 11, 15, .75), rgba(9, 11, 15, .1) 55%); }
.player .cover .pg-btn { position: relative; z-index: 2; }
.player .note { position: absolute; z-index: 2; left: 0; right: 0; bottom: 18px; text-align: center; color: #D9DEE6; font-size: 13px; padding: 0 16px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.toolbar .pg-btn[aria-pressed="true"] { border-color: var(--pg-red); color: var(--pg-accent-text); }
.toolbar .pg-btn[aria-pressed="true"] svg { fill: currentColor; }
.side { display: grid; gap: 16px; min-width: 0; align-content: start; }
.side h1 { font-size: clamp(46px, 5.5vw, 76px); line-height: .92; }
.side .tagline { font-size: 19px; }
.side .badges { display: flex; flex-wrap: wrap; gap: 8px; }
.side .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.store-note { color: var(--pg-muted); font-size: 14px; }
.mobile-only { display: none; }
.prose { display: grid; gap: 12px; max-width: 70ch; }
.prose p { color: var(--pg-text); opacity: .92; }
.sec { display: grid; gap: 14px; }
.sec h2 { font-size: 30px; }
.howto { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.howto .pg-card { padding: 16px; display: grid; gap: 4px; }
.howto b { font: 700 21px var(--pg-font-display); }
.howto span { color: var(--pg-muted); font-size: 14px; }
.tips { margin: 0; padding-left: 20px; display: grid; gap: 8px; max-width: 70ch; }
.tips li::marker { color: var(--pg-accent-text); }
.faq { display: grid; gap: 10px; max-width: 78ch; }
.faq details { border: 1px solid var(--pg-border); border-radius: var(--pg-radius); background: var(--pg-surface); padding: 2px 16px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 12px 0; min-height: 44px; }
.faq details[open] summary { color: var(--pg-accent-text); }
.faq details p { color: var(--pg-muted); padding-bottom: 14px; }
.cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px; margin-top: 44px; }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 18px; margin: 0; font-size: 14px; }
.facts dt { color: var(--pg-muted); }
.facts dd { margin: 0; min-width: 0; }
.aside { display: grid; gap: 16px; align-content: start; }
.aside .pg-card { display: grid; gap: 12px; }
.aside h2 { font-size: 24px; }
.report textarea { min-height: 96px; resize: vertical; }
@media (max-width: 960px) {
  .gp, .gp.tall { grid-template-columns: minmax(0, 1fr); }
  .gp.tall .player { height: auto; width: 100%; aspect-ratio: 4 / 5; }
  .cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) and (pointer: coarse) { .mobile-only { display: inline-flex; } }

/* simple pages */
.page { display: grid; gap: 16px; max-width: 780px; padding-bottom: 20px; }
.page h1 { font-size: clamp(40px, 5vw, 60px); }
.page h2 { font-size: 26px; margin-top: 12px; }
.page p, .page li { opacity: .92; }
.page .logo-hero { width: min(520px, 100%); height: auto; margin: 8px 0; }

/* footer */
.foot { margin-top: 56px; border-top: 1px solid var(--pg-border); }
.foot .in { max-width: var(--pg-max-width); margin: 0 auto; padding: 24px var(--pg-gutter-x) calc(28px + env(safe-area-inset-bottom, 0px)); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; color: var(--pg-muted); font-size: 13px; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { color: var(--pg-muted); text-decoration: none; } .foot a:hover { color: var(--pg-text); }
.foot .wm { height: 22px; width: auto; }

/* logo variants per theme (the brand pack supplies light/dark artwork; never filter or invert the logo) */
.on-light { display: none !important; }
:root[data-theme=light] .on-light { display: block !important; }
:root[data-theme=light] .on-dark { display: none !important; }

/* top bar: search on the left on desktop (the rail holds the theme switch); filters scroll sideways on phones */
@media (min-width: 961px) { .topbar .mtheme { display: none; } .search { flex: 0 1 520px; } }
@media (max-width: 640px) {
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--pg-gutter-x)) 16px; padding: 0 var(--pg-gutter-x) 4px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
}

/* ================= art-led layer (key art, app icons, spotlight) ================= */
.appicon { display: block; width: 56px; height: 56px; border-radius: 22%; object-fit: cover; background: var(--pg-raised);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 8px 22px rgba(0, 0, 0, .45); flex: none; }
.appicon.lg { width: 76px; height: 76px; }
.appicon.xl { width: 88px; height: 88px; border-radius: 22%; }

/* spotlight carousel */
.spot { position: relative; margin-bottom: 26px; }
.spot-stage { position: relative; height: clamp(420px, 58vh, 600px); border-radius: 14px; overflow: hidden; border: 1px solid #3a1c24; background: #0b0d12; isolation: isolate; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 600ms var(--pg-ease), visibility 0s linear 600ms; color: #F5F7FA; }
.slide.is-on { opacity: 1; visibility: visible; transition: opacity 600ms var(--pg-ease); }
.slide-bg { position: absolute; inset: 0; z-index: -2; }
.slide-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.slide.is-on .slide-bg img, .slide.is-on .slide-bg.blur { animation: kb 9s var(--pg-ease) both; }
@keyframes kb { from { transform: scale(1.08); } to { transform: scale(1); } }
.slide-bg.blur { background-size: cover; background-position: center 30%; filter: blur(26px) saturate(1.35) brightness(.55); transform: scale(1.2); }
.slide::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(9, 11, 15, .92) 0%, rgba(9, 11, 15, .72) 34%, rgba(9, 11, 15, .1) 64%, rgba(9, 11, 15, 0) 100%),
              linear-gradient(0deg, rgba(9, 11, 15, .7), transparent 40%); }
.slide-poster { position: absolute; z-index: -1; right: 6%; top: 50%; height: 88%; width: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 12px;
  transform: translateY(-50%) rotate(3deg); box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 30px 70px rgba(0, 0, 0, .65), 0 0 90px color-mix(in srgb, var(--accent) 35%, transparent); }
.slide.is-on .slide-poster { animation: posterIn 700ms var(--pg-ease) both; }
@keyframes posterIn { from { opacity: 0; transform: translateY(-46%) rotate(6deg) scale(.96); } to { opacity: 1; transform: translateY(-50%) rotate(3deg); } }
.slide-copy { position: absolute; left: 0; bottom: 0; top: 0; width: min(560px, 58%); padding: 30px 44px 104px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.slide.is-on .slide-copy > * { animation: rise 520ms var(--pg-ease) both; }
.slide.is-on .slide-copy > :nth-child(2) { animation-delay: 60ms; } .slide.is-on .slide-copy > :nth-child(3) { animation-delay: 110ms; }
.slide.is-on .slide-copy > :nth-child(4) { animation-delay: 160ms; } .slide.is-on .slide-copy > :nth-child(5) { animation-delay: 200ms; } .slide.is-on .slide-copy > :nth-child(6) { animation-delay: 240ms; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.slide-copy .pg-badge { color: #ffd0d6; border-color: rgba(255, 208, 214, .5); align-self: flex-start; background: rgba(9, 11, 15, .35); }
.slide-copy h2 { font-size: clamp(50px, 6.4vw, 92px); line-height: .88; text-shadow: 0 4px 30px rgba(0, 0, 0, .6); }
.slide-copy .tagline { font-size: clamp(16px, 1.7vw, 20px); color: #E7EAF0; max-width: 34ch; text-shadow: 0 2px 12px rgba(0, 0, 0, .7); }
.slide-copy .badges { display: flex; gap: 6px; flex-wrap: wrap; }
.slide-copy .badges .pg-badge { color: #D9DEE6; border-color: rgba(255, 255, 255, .25); }
.slide-copy .ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.slide-copy .pg-btn--secondary { color: #F5F7FA; border-color: rgba(255, 255, 255, .4); background: rgba(9, 11, 15, .35); }
.slide-copy .pg-btn--secondary:hover { background: rgba(255, 255, 255, .1); }
.spot-tabs { position: absolute; left: 44px; right: 44px; bottom: 18px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; z-index: 3; }
.spot-tab { appearance: none; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px 10px; padding: 8px 10px 10px; min-height: 44px;
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 10px; background: rgba(9, 11, 15, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: #B7C0CD; text-align: left; font-size: 13px; font-weight: 600; }
.spot-tab .appicon { width: 34px; height: 34px; box-shadow: none; }
.spot-tab .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spot-tab .bar { grid-column: 1 / -1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.spot-tab .bar i { display: block; height: 100%; width: 0; background: var(--pg-red); }
.spot-tab[aria-selected="true"] { color: #F5F7FA; border-color: rgba(229, 9, 36, .65); background: rgba(40, 8, 16, .65); }
.spot-tab[aria-selected="true"] .bar i { animation: fill 7s linear forwards; }
.spot.paused .spot-tab[aria-selected="true"] .bar i, .spot.no-auto .spot-tab[aria-selected="true"] .bar i { animation-play-state: paused; }
.spot.no-auto .spot-tab[aria-selected="true"] .bar i { animation: none; width: 100%; }
@keyframes fill { from { width: 0; } to { width: 100%; } }
@media (max-width: 760px) {
  .spot-stage { height: auto; aspect-ratio: 4 / 5.2; border-radius: 12px; }
  .slide::after { background: linear-gradient(0deg, rgba(9, 11, 15, .97) 0%, rgba(9, 11, 15, .82) 34%, rgba(9, 11, 15, .1) 66%, rgba(9, 11, 15, 0)); }
  .slide-bg img { object-position: 72% 50%; }
  .slide-poster { right: 50%; top: 6%; height: 52%; transform: translateX(50%) rotate(3deg); }
  @keyframes posterIn { from { opacity: 0; transform: translateX(50%) translateY(4%) rotate(6deg); } to { opacity: 1; transform: translateX(50%) rotate(3deg); } }
  .slide-copy { width: auto; right: 0; top: auto; padding: 0 18px 22px; gap: 10px; }
  .slide-copy .appicon.xl { width: 60px; height: 60px; }
  .slide-copy h2 { font-size: 48px; }
  .slide-copy .badges { display: none; }
  .spot-tabs { position: static; display: flex; overflow-x: auto; margin-top: 10px; scrollbar-width: none; }
  .spot-tabs::-webkit-scrollbar { display: none; }
  .spot-tab { flex: 0 0 auto; background: var(--pg-surface); border-color: var(--pg-border); color: var(--pg-muted); }
  .spot-tab .t { max-width: 110px; }
  .spot-tab[aria-selected="true"] { background: var(--pg-raised); color: var(--pg-text); }
}

/* icon dock: every game as an app icon, like a phone home screen */
.dock { margin: 6px 0 8px; }
.dock-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 14px 8px; }
.dock-item { position: relative; display: grid; justify-items: center; gap: 8px; padding: 8px 4px; border-radius: 12px; text-decoration: none; color: var(--pg-text); font-size: 13px; font-weight: 600; text-align: center; }
.dock-item span { line-height: 1.2; max-width: 92px; }
a.dock-item:hover { background: var(--pg-raised); }
a.dock-item:hover .appicon { transform: translateY(-3px) scale(1.04); box-shadow: 0 0 0 1px rgba(255, 255, 255, .2), 0 14px 30px color-mix(in srgb, var(--accent) 45%, transparent); }
.dock-item .appicon { transition: transform var(--pg-duration) var(--pg-ease), box-shadow var(--pg-duration) var(--pg-ease); }
.dock-item .dot { position: absolute; top: 4px; right: calc(50% - 44px); width: 12px; height: 12px; border-radius: 50%; background: var(--pg-red); box-shadow: 0 0 0 2px var(--pg-bg); }
.dock-item.soon { color: var(--pg-muted); }
.dock-item.soon .appicon { filter: grayscale(.8) brightness(.7); }
.dock-item em { font-style: normal; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--pg-accent-text); margin-top: -4px; }
@media (max-width: 760px) {
  .dock-row { display: flex; overflow-x: auto; gap: 4px; margin: 0 calc(-1 * var(--pg-gutter-x)); padding: 0 var(--pg-gutter-x) 6px; scrollbar-width: none; }
  .dock-row::-webkit-scrollbar { display: none; }
  .dock-item { flex: 0 0 84px; }
  .dock-item .appicon.lg { width: 64px; height: 64px; }
}

/* poster cards */
.grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px 18px; }
.gcard { overflow: visible; border: 0; background: transparent; transform-style: preserve-3d; perspective: 900px; }
.gcard:not(.soon):hover { transform: none; }
.gcard .glink { display: flex; flex-direction: column; gap: 0; }
.gcard .cover { aspect-ratio: 2 / 3; border-radius: 12px; border: 1px solid var(--pg-border); overflow: hidden; background: var(--pg-raised);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 260ms var(--pg-ease), box-shadow 260ms var(--pg-ease), border-color 260ms; will-change: transform; }
.gcard .cover .art { object-position: 50% 0; }
.gcard .cover video { object-position: 50% 40%; }
.gcard .cover::after { height: 30%; background: linear-gradient(0deg, rgba(9, 11, 15, .55), transparent); }
.gcard:not(.soon):hover .cover, .gcard:not(.soon):focus-within .cover { border-color: color-mix(in srgb, var(--accent) 70%, var(--pg-border));
  box-shadow: 0 18px 44px rgba(0, 0, 0, .45), 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent), 0 0 60px color-mix(in srgb, var(--accent) 28%, transparent); }
.gcard .shine { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity 260ms;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 30%), rgba(255, 255, 255, .22), transparent 60%); }
.gcard:hover .shine { opacity: 1; }
.gcard .flag { left: 10px; top: 10px; }
.gcard .flag.soon { background: rgba(9, 11, 15, .75); color: var(--pg-accent-text); border: 1px solid currentColor; }
.gcard .body { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; padding: 0 2px; margin-top: -30px; z-index: 3; }
.gcard .body > .appicon { grid-row: span 2; width: 60px; height: 60px; border-radius: 22%; box-shadow: 0 0 0 3px var(--pg-bg), 0 10px 24px rgba(0, 0, 0, .5); }
.gcard .txt { padding-top: 34px; display: grid; gap: 3px; min-width: 0; }
.gcard .kicker { font-size: 10.5px; }
.gcard h3 { font-size: 24px; line-height: 1; }
.gcard .sub { font-size: 13.5px; }
.gcard .bottom { grid-column: 1 / -1; padding-top: 8px; }
.gcard .heart { top: 10px; right: 10px; }
.gcard.mini .body { margin-top: -18px; grid-template-columns: minmax(0, 1fr); }
.gcard.mini .body > .appicon { width: 40px; height: 40px; grid-row: auto; }
.gcard.mini .txt { padding-top: 0; }
.gcard.mini .cover { aspect-ratio: 2 / 3; }
.gcard.soon .cover .art { filter: grayscale(.55) brightness(.7); }
@media (max-width: 560px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .gcard .body { grid-template-columns: minmax(0, 1fr); margin-top: -24px; }
  .gcard .body > .appicon { width: 46px; height: 46px; grid-row: auto; }
  .gcard .txt { padding-top: 2px; }
  .gcard h3 { font-size: 20px; }
  .gcard .cover { aspect-ratio: 2 / 3; }
}

/* game page: art backdrop, identity row, gallery */
.gp-stage { position: relative; isolation: isolate; margin: -32px calc(-1 * var(--pg-gutter-x)) 0; padding: 26px var(--pg-gutter-x) 34px; }
.gp-stage::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--backdrop) center 30% / cover no-repeat; filter: blur(18px) saturate(1.3) brightness(.45); transform: scale(1.06); }
.gp-stage::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(9, 11, 15, .35) 0%, rgba(9, 11, 15, .6) 55%, var(--pg-bg) 100%); }
.gp-stage, .gp-stage .crumbs a, .gp-stage .crumbs { color: #E7EAF0; }
.gp-stage .side h1 { color: #F5F7FA; }
.gp-stage .side .tagline, .gp-stage .prose p { color: #E7EAF0; }
.gp-stage .shelf-head h2 { color: #F5F7FA; }
.gp-stage .eyebrow.red { color: #ff8a9b; }
.gp-stage .pg-badge { color: #D9DEE6; border-color: rgba(255, 255, 255, .28); }
.gp-stage .pg-badge--accent { color: #ff8a9b; border-color: currentColor; }
.gp-stage .pg-btn--secondary { color: #F5F7FA; border-color: rgba(255, 255, 255, .4); }
.gp-stage .pg-btn--ghost { color: #F5F7FA; }
.gp-stage .store-note { color: #C9D0DA; }
.gp-stage .gcard .txt, .gp-stage .gcard h3 { color: #F5F7FA; }
.gp-stage .gcard .kicker, .gp-stage .gcard .sub { color: #C9D0DA; }
.gp-stage .gcard .body > .appicon { box-shadow: 0 0 0 3px rgba(9, 11, 15, .8), 0 10px 24px rgba(0, 0, 0, .5); }
.idrow { display: flex; align-items: center; gap: 18px; }
.idrow .appicon.xl { width: 96px; height: 96px; }
.idrow h1 { margin-top: 4px; }
@media (max-width: 960px) { .gp-stage { margin-top: -22px; } .idrow .appicon.xl { width: 72px; height: 72px; } }
:root[data-theme=light] .gp-stage::after { background: linear-gradient(180deg, rgba(9, 11, 15, .35) 0%, rgba(9, 11, 15, .62) 60%, var(--pg-bg) 100%); }
.gallery { margin-top: 30px; }
.shots { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.shot { appearance: none; flex: 0 0 auto; width: 168px; aspect-ratio: 9 / 16; padding: 0; border: 1px solid var(--pg-border); border-radius: 10px; overflow: hidden; background: var(--pg-raised); scroll-snap-align: start; cursor: zoom-in; }
.shot:first-child { aspect-ratio: 2 / 3; width: 200px; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--pg-duration) var(--pg-ease); }
.shot:hover img { transform: scale(1.04); }
.lightbox { width: min(560px, calc(100% - 32px)); padding: 14px; background: #05060a; }
.lightbox img { width: 100%; max-height: 76vh; object-fit: contain; border-radius: 8px; }
.lb-bar { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce) { .slide-bg img, .slide-bg.blur, .slide-poster, .slide-copy > * { animation: none !important; } .gcard .cover { transform: none !important; } }
