/* XR Intel Game Lab: front page styles. No external fonts or assets. */
:root {
  --bg: #0a0c11;
  --bg2: #10131a;
  --surface: #151924;
  --surface2: #1b2030;
  --line: rgba(255, 255, 255, .08);
  --text: #eef1f6;
  --muted: #9ba5b4;
  --play: #3fd47a;
  --play2: #22b561;
  --play-text: #04210f;
  --accent: #5b5fc7;
  --radius: 18px;
  --wrap: 1240px;
  --pad: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(91, 95, 199, .18), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(42, 143, 138, .10), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, video { display: block; max-width: 100%; }
:focus { outline: none; }
:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 70%, transparent);
  border-radius: 12px;
}
.skip {
  position: absolute; left: 12px; top: -80px; z-index: 50;
  background: #fff; color: #000; padding: 12px 18px; border-radius: 10px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- top bar ---------- */
.topbar {
  max-width: var(--wrap); margin: 0 auto;
  padding: calc(18px + env(safe-area-inset-top, 0px)) var(--pad) 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px 28px; flex-wrap: wrap;
}
.brand { margin: 0; font-size: 1.3rem; font-weight: 600; letter-spacing: .01em; }
.brand a { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; padding: 6px 4px; }
.brand b { font-weight: 800; background: linear-gradient(90deg, #fff, #b9c2ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-mark { width: 34px; height: 34px; color: #b9c2ff; flex: none; }
.tagline { margin: 0; color: var(--muted); font-size: .98rem; max-width: 34rem; }

main { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: calc(var(--radius) + 6px);
  min-height: clamp(380px, 56vh, 560px);
  display: flex; align-items: flex-end;
  background: var(--bg2);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px var(--line);
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hm-layer { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.hm-layer.on { opacity: 1; }
.hm-layer > img, .hm-layer > video { width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 10, 15, .92) 0%, rgba(8, 10, 15, .62) 38%, rgba(8, 10, 15, 0) 72%),
    linear-gradient(0deg, rgba(8, 10, 15, .9) 0%, rgba(8, 10, 15, 0) 45%);
}
.hero-body { position: relative; padding: clamp(24px, 5vw, 56px); max-width: 44rem; }
.eyebrow {
  margin: 0 0 10px; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: color-mix(in srgb, var(--accent) 45%, #fff);
}
.hero-title {
  margin: 0; font-size: clamp(2.3rem, 6vw, 4.4rem); line-height: 1.02; font-weight: 850; letter-spacing: -.02em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .5);
}
.hero-tag { margin: 14px 0 0; font-size: clamp(1.02rem, 1.8vw, 1.25rem); color: #d7dce6; max-width: 36rem; }
.hero-extra { margin: 8px 0 0; color: var(--muted); font-size: .95rem; }
.hero .badges { margin-top: 16px; }
.hero .actions { margin-top: 24px; }
.hero-box {
  position: absolute; right: clamp(24px, 5vw, 64px); top: 50%; transform: translateY(-50%) rotate(2deg);
  width: clamp(150px, 18vw, 230px); aspect-ratio: 2 / 3; border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .12);
}
.hero-box img { width: 100%; height: 100%; object-fit: cover; }
.hero-dots {
  position: absolute; right: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px);
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end;
}
.dot {
  appearance: none; border: 1px solid rgba(255, 255, 255, .18); cursor: pointer;
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: rgba(10, 12, 17, .55); color: #cfd5df; font: inherit; font-size: .9rem; font-weight: 600;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background .2s, color .2s, border-color .2s;
}
.dot:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.dot[aria-pressed="true"] { background: #fff; color: #0a0c11; border-color: #fff; }

/* ---------- generated placeholder art ---------- */
.ph {
  position: absolute; inset: 0; overflow: hidden;
  background: linear-gradient(160deg, #1d2231 0%, #0d1016 100%);
  background:
    radial-gradient(120% 70% at 78% 18%, color-mix(in srgb, var(--accent) 55%, transparent) 0%, transparent 60%),
    radial-gradient(90% 60% at 10% 100%, color-mix(in srgb, var(--accent) 28%, transparent) 0%, transparent 65%),
    linear-gradient(160deg, color-mix(in srgb, var(--accent) 22%, #151923) 0%, #0b0d13 70%);
}
.ph::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
}
.ph::after {
  content: ""; position: absolute; width: 90%; aspect-ratio: 1; right: -30%; top: -12%;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 50%, rgba(255, 255, 255, .25));
  box-shadow: 0 0 0 26px rgba(255, 255, 255, .02), 0 0 0 60px rgba(255, 255, 255, .015),
    inset 0 0 80px color-mix(in srgb, var(--accent) 35%, transparent);
}
.ph-num {
  position: absolute; left: 8%; top: 12%;
  font-size: clamp(3rem, 9vw, 5.5rem); font-weight: 900; line-height: 1; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .22);
}
.ph-title {
  position: absolute; z-index: 2; left: 8%; right: 8%; bottom: 13%;
  font-size: clamp(1.5rem, 3.2vw, 2.2rem); font-weight: 850; line-height: 1.05; letter-spacing: -.01em;
  text-wrap: balance; text-shadow: 0 2px 20px rgba(0, 0, 0, .5);
}
.ph-big::after { width: 60%; right: -8%; top: -30%; }
.ph-big .ph-title { display: none; }
.ph-big .ph-num { left: auto; right: 6%; top: auto; bottom: 24%; font-size: clamp(6rem, 22vw, 16rem); -webkit-text-stroke-width: 2px; }

/* ---------- shelf ---------- */
.shelf-wrap { margin: clamp(28px, 5vw, 48px) 0 0; }
.shelf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 20px; flex-wrap: wrap; margin-bottom: 16px; }
.shelf-head h2 { margin: 0; font-size: 1.45rem; font-weight: 800; letter-spacing: -.01em; }
.shelf-note { margin: 0; color: var(--muted); font-size: .92rem; }
.shelf {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 28px);
}
.card {
  --accent: #5b5fc7;
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--surface2), var(--surface));
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 0 0 1px var(--line), 0 18px 40px -24px rgba(0, 0, 0, .9);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease;
}
.art {
  position: relative; display: block; aspect-ratio: 2 / 3; overflow: hidden; background: #0f1219;
}
.art > img, .art > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art > img { transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.art.is-banner > img.backdrop { filter: blur(22px) saturate(1.2) brightness(.6); transform: scale(1.25); }
.art.is-banner > img:not(.backdrop) {
  inset: auto 0; top: 38%; height: auto; aspect-ratio: 16 / 9; transform: translateY(-50%);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .8);
}
.art .preview { opacity: 0; transition: opacity .3s ease; }
.card.previewing .preview { opacity: 1; }
.art::after { /* soft fade into card body */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; pointer-events: none;
  background: linear-gradient(0deg, var(--surface2), transparent);
}
.ribbon {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: rgba(10, 12, 17, .72); color: #ffd58a; border: 1px solid rgba(255, 213, 138, .35);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.ribbon::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.ribbon-live { color: #7ff0ac; border-color: rgba(127, 240, 172, .35); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 4px 20px 20px; position: relative; }
.kicker { margin: 0; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: color-mix(in srgb, var(--accent) 40%, #c9cfda); }
.card h3 { margin: 4px 0 0; font-size: 1.35rem; line-height: 1.15; font-weight: 800; }
.card-tag { margin: 8px 0 0; color: #c3cad6; font-size: .95rem; }
.card-meta { margin: 6px 0 0; color: var(--muted); font-size: .88rem; }
.card .badges { margin-top: 12px; }
.card .actions { margin-top: auto; padding-top: 18px; flex-wrap: nowrap; }
.card .btn-play { flex: 1 1 0; min-width: 0; }
.card .btn-ghost { flex: 0 0 auto; padding: 0 16px; }
.card.is-unplayable .art { filter: saturate(.6); }

@media (hover: hover) and (pointer: fine) {
  .card:hover, .card:focus-within {
    transform: translateY(-8px);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 60%, transparent),
      0 30px 60px -24px color-mix(in srgb, var(--accent) 55%, #000);
  }
  .card:hover .art > img:not(.backdrop) { transform: scale(1.04); }
  .card:hover .art.is-banner > img:not(.backdrop) { transform: translateY(-50%) scale(1.04); }
}

/* loading skeleton (before JS has filled the shelf) */
.card.is-loading .art {
  background: linear-gradient(100deg, #141824 20%, #1c2231 40%, #141824 60%) 0 0 / 250% 100%;
  animation: shimmer 1.6s linear infinite;
}
@keyframes shimmer { to { background-position: -250% 0; } }

/* ---------- badges ---------- */
.badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.badges:empty { display: none; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px 4px 8px; border-radius: 8px; font-size: .8rem; font-weight: 600; color: #dfe4ec;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1);
}
.badge svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 12px;
  font-weight: 750; font-size: 1rem; text-decoration: none; letter-spacing: .01em;
  border: 1px solid transparent; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn-play {
  flex: 1 1 auto; max-width: 100%;
  background: linear-gradient(180deg, var(--play), var(--play2)); color: var(--play-text);
  box-shadow: 0 10px 24px -10px rgba(63, 212, 122, .65), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.hero .btn-play { flex: 0 0 auto; }
.btn-play:hover { background: linear-gradient(180deg, #5ee492, #2cc56d); }
.btn-play:active, .btn-ghost:active { transform: scale(.97); }
.btn-ghost { background: rgba(255, 255, 255, .09); color: #fff; border-color: rgba(255, 255, 255, .18); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); }
.btn-soon { flex: 1 1 auto; background: rgba(255, 255, 255, .04); color: var(--muted); border: 1px dashed rgba(255, 255, 255, .18); cursor: default; }
.btn-xl { min-height: 58px; padding: 0 34px; font-size: 1.15rem; border-radius: 14px; }
.btn-xl svg { width: 24px; height: 24px; }

/* ---------- footer ---------- */
.foot { max-width: var(--wrap); margin: 0 auto; padding: 40px var(--pad) calc(40px + env(safe-area-inset-bottom, 0px)); color: #7d8796; font-size: .88rem; }
.foot p { margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-box { display: none; }
  .hero { align-items: stretch; flex-direction: column; justify-content: flex-end; }
  .hero-shade { background: linear-gradient(0deg, rgba(8, 10, 15, .95) 0%, rgba(8, 10, 15, .7) 45%, rgba(8, 10, 15, .1) 100%); }
  .hero-dots { position: static; justify-content: flex-start; padding: 0 clamp(24px, 5vw, 56px) clamp(20px, 4vw, 32px); margin-top: -8px; }
}
@media (max-width: 720px) {
  .shelf {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px;
    margin: 0 calc(var(--pad) * -1); padding: 4px var(--pad) 18px; scroll-padding: 0 var(--pad);
    scrollbar-width: none; overscroll-behavior-x: contain;
  }
  .shelf::-webkit-scrollbar { display: none; }
  .card { flex: 0 0 min(66vw, 280px); scroll-snap-align: start; }
  .ph-big .ph-num { right: 5%; top: 6%; bottom: auto; font-size: 7.5rem; }
  .tagline { font-size: .92rem; }
  .hero { min-height: 400px; }
  .hero .actions .btn-xl { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.card-tag:empty, .hero-tag:empty { display: none; }

/* ---------- footer links, noscript (v2) ---------- */
.foot { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); } /* room for the Privacy pill */
.foot-nav { margin-top: 14px; }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.foot-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px;
  color: #d5dbe5; font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
}
.foot-links li:first-child a { margin-left: -12px; }
.foot-links a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.foot .foot-small { margin-top: 10px; color: #98a2b1; font-size: .82rem; }
.noscript { margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: #1b2030; color: #eef1f6; border: 1px solid rgba(255, 255, 255, .15); }

/* v2: keep hero text readable over key art that has its own title baked in (text-over-image contrast) */
.hero-shade {
  background:
    linear-gradient(90deg, rgba(8, 10, 15, .94) 0%, rgba(8, 10, 15, .84) 42%, rgba(8, 10, 15, .35) 70%, rgba(8, 10, 15, .1) 100%),
    linear-gradient(0deg, rgba(8, 10, 15, .9) 0%, rgba(8, 10, 15, 0) 45%);
}
@media (max-width: 900px) {
  .hero-shade { background: linear-gradient(0deg, rgba(8, 10, 15, .96) 0%, rgba(8, 10, 15, .86) 55%, rgba(8, 10, 15, .55) 100%); }
}
