:root {
  --in-oklab: ;
  --in-oklch: ;
  --netflix-bg: #08090d;
  --netflix-red: #e50914;
  --game-accent: #e50914;
  --steam-surface: rgba(18, 21, 30, 0.78);
  --steam-elevated: rgba(28, 33, 46, 0.88);
  --steam-blue: #38bdf8;
  --steam-green: #46d369;
  --steam-text: #f8fafc;
  --steam-muted: #94a3b8;
  --steam-border: rgba(255, 255, 255, 0.11);
  --stage-margin-x: clamp(2.2rem, 5.5vw, 5.5rem);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

@supports (background: linear-gradient(in oklab, white, black)) {
  :root {
    --in-oklab: in oklab;
    --in-oklch: in oklch;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

html,
body {
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  font-family: 'Netflix Sans', 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--netflix-bg);
  color: var(--steam-text);
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   Plane Z-0: Netflix Games Multi-Layer Ambient Atmosphere & Oklab Vignette
   ========================================================================== */
.netflix-ambient-backdrop {
  position: fixed;
  inset: -60px;
  z-index: -3;
  background-size: cover;
  background-position: center;
  filter: blur(95px) saturate(2.1) brightness(0.32);
  transform: scale(1.18);
  transition: background-image 0.55s ease;
}

.netflix-ambient-aura {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(
    circle at 74% 34% var(--in-oklab),
    color-mix(in oklab, var(--game-accent) 34%, transparent) 0%,
    transparent 62%
  );
  transition: background 0.5s ease;
}

.netflix-vignette {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 34% var(--in-oklab), rgba(8, 9, 13, 0.14) 0%, rgba(8, 9, 13, 0.88) 72%),
    linear-gradient(to right var(--in-oklab), rgba(8, 9, 13, 0.96) 0%, rgba(8, 9, 13, 0.72) 45%, rgba(8, 9, 13, 0.35) 100%),
    linear-gradient(to bottom var(--in-oklab), rgba(8, 9, 13, 0.72) 0%, rgba(8, 9, 13, 0.18) 38%, rgba(8, 9, 13, 0.94) 82%, #08090d 100%);
}

/* ==========================================================================
   Console OS Shell (Fixed 100vw x 100dvh, Generous Spatial Margins)
   ========================================================================== */
.console-os-shell {
  width: 100vw;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

/* Top Netflix Games / Hawkins 2025 Spatial Navigation Bar */
.steamos-topbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding:
    calc(1.1rem + var(--safe-top))
    calc(var(--stage-margin-x) + var(--safe-right))
    0.75rem
    calc(var(--stage-margin-x) + var(--safe-left));
  background: linear-gradient(to bottom var(--in-oklab), rgba(8, 9, 13, 0.9) 0%, rgba(8, 9, 13, 0) 100%);
  z-index: 20;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  min-width: 0;
  flex: 1;
}

.netflix-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.netflix-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--netflix-red);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  box-shadow: 0 4px 18px rgba(229, 9, 20, 0.55);
}

.netflix-brand-text {
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  color: #f8fafc;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.search-pill {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  backdrop-filter: blur(16px);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.search-pill:focus-within {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
}

.search-pill input {
  background: transparent;
  border: none;
  color: var(--steam-text);
  font-size: 0.82rem;
  width: 135px;
  outline: none;
  user-select: text;
  -webkit-user-select: text;
}

.search-pill input::placeholder {
  color: var(--steam-muted);
}

.steamos-tabs {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.steamos-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: rgba(248, 250, 252, 0.62);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
}

.tab-btn.active {
  color: #ffffff;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.78rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  color: var(--steam-text);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

button.status-chip {
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

button.status-chip:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-1px);
}

.system-clock {
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(248, 250, 252, 0.82);
  letter-spacing: 0.04em;
  min-width: 46px;
  text-align: right;
}

/* ==========================================================================
   Main Spatial Stage (Generous Outer Margins + Z-Depth)
   ========================================================================== */
.bazzite-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding:
    0.25rem
    calc(var(--stage-margin-x) + var(--safe-right))
    0.5rem
    calc(var(--stage-margin-x) + var(--safe-left));
  gap: 0.75rem;
}

/* Plane Z-1: Two-Column Netflix Games Hero (Editorial Left + 3D Cover Showcase Right) */
.netflix-hero-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(320px, 1.08fr) minmax(300px, 0.92fr);
  align-items: center;
  gap: clamp(2rem, 4.5vw, 5rem);
  padding-block: clamp(0.25rem, 1.2dvh, 1.25rem);
}

.hero-editorial-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  max-width: 640px;
}

.netflix-series-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.eyebrow-n-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 3px;
  background: var(--netflix-red);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 900;
}

.eyebrow-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: rgba(248, 250, 252, 0.78);
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2rem, 1.35rem + 2.75vw, 3.65rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.04;
  color: #ffffff;
  text-shadow: 0 10px 34px rgba(0, 0, 0, 0.85);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.meta-badge {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.18rem 0.58rem;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.meta-match {
  background: transparent;
  border: none;
  padding-left: 0;
  padding-right: 0.2rem;
  color: var(--steam-green);
  font-weight: 800;
}

.meta-system {
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
  font-weight: 800;
}

.meta-hd {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  border-color: rgba(255, 255, 255, 0.28);
}

.hero-synopsis {
  font-size: clamp(0.88rem, 0.82rem + 0.28vw, 1.04rem);
  line-height: 1.52;
  font-weight: 450;
  color: rgba(241, 245, 249, 0.88);
  max-width: 56ch;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(148, 163, 184, 0.95);
}

/* Netflix Games Clean CTA Row */
.netflix-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.35rem;
}

.btn-netflix-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.78rem 1.85rem;
  border-radius: 8px;
  border: none;
  background: #ffffff;
  color: #08090d;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.55),
    0 0 28px color-mix(in oklab, var(--game-accent) 32%, transparent);
  transition: transform 0.18s cubic-bezier(0.2, 0.85, 0.25, 1), background 0.18s ease, box-shadow 0.18s ease;
}

.btn-netflix-play:hover,
.btn-netflix-play:focus-visible {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.04) translateY(-1px);
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.play-icon-triangle {
  font-size: 0.95rem;
  color: #08090d;
}

.btn-netflix-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.78rem 1.45rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(109, 109, 110, 0.42);
  backdrop-filter: blur(18px);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.btn-netflix-secondary:hover,
.btn-netflix-secondary:focus-visible {
  background: rgba(109, 109, 110, 0.65);
  border-color: rgba(255, 255, 255, 0.45);
  transform: scale(1.03) translateY(-1px);
  outline: 2px solid #ffffff;
}

/* ==========================================================================
   Dedicated Right Stage: Floating 3D Cover Art + Angled Gameplay Preview
   ("tem profundidade, dá bastante margem pro jogo e sua capa")
   ========================================================================== */
.hero-cover-showcase {
  position: relative;
  height: 100%;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 2.2dvh, 2.2rem) clamp(1.5rem, 3vw, 3.2rem);
  perspective: 1400px;
  isolation: isolate;
}

.hero-cover-glow {
  position: absolute;
  width: 68%;
  height: 72%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in oklab, var(--game-accent) 48%, rgba(255, 255, 255, 0.15)) 0%,
    transparent 72%
  );
  filter: blur(48px);
  z-index: 1;
  pointer-events: none;
}

/* Midground Z-Layer: Angled Gameplay Screenshot Card */
.hero-snap-card {
  position: absolute;
  right: clamp(0.5rem, 2vw, 2.2rem);
  width: clamp(200px, 22vw, 320px);
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  background: #0d1118;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  transform: translate3d(38px, 16px, -60px) rotateY(-15deg) rotateX(4deg) rotateZ(2.5deg);
  opacity: 0.84;
  z-index: 2;
  transition: transform 0.45s cubic-bezier(0.2, 0.85, 0.25, 1), opacity 0.35s ease;
}

.hero-snap-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: auto;
  filter: contrast(1.06) saturate(1.12) brightness(0.88);
}

.snap-card-badge {
  position: absolute;
  bottom: 8px;
  right: 10px;
  padding: 0.18rem 0.5rem;
  border-radius: 4px;
  background: rgba(8, 9, 13, 0.82);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(248, 250, 252, 0.88);
}

/* Foreground Z-Layer: Uncropped Original Box Art Pedestal with Generous Margin */
.hero-boxart-pedestal {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 2dvh, 1.65rem) clamp(1.25rem, 2.4vw, 2.2rem);
  border-radius: 20px;
  background: linear-gradient(
    145deg var(--in-oklab),
    rgba(255, 255, 255, 0.11) 0%,
    rgba(15, 18, 26, 0.68) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(22px);
  box-shadow:
    0 32px 64px -12px rgba(0, 0, 0, 0.92),
    0 12px 28px -8px rgba(0, 0, 0, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transform: translate3d(-24px, -4px, 30px) rotateY(-8deg) rotateX(3deg);
  transition: transform 0.45s cubic-bezier(0.2, 0.85, 0.25, 1);
}

.hero-cover-showcase:hover .hero-boxart-pedestal {
  transform: translate3d(-18px, -8px, 45px) rotateY(-4deg) rotateX(1.5deg) scale(1.03);
}

.hero-cover-showcase:hover .hero-snap-card {
  transform: translate3d(52px, 12px, -40px) rotateY(-11deg) rotateX(3deg) rotateZ(4deg);
  opacity: 0.96;
}

.hero-boxart-pedestal img {
  display: block;
  width: auto;
  height: auto;
  max-width: clamp(200px, 24vw, 330px);
  max-height: clamp(160px, 27dvh, 275px);
  object-fit: contain;
  border-radius: 6px;
  filter:
    drop-shadow(0 20px 32px rgba(0, 0, 0, 0.88))
    drop-shadow(0 6px 12px rgba(0, 0, 0, 0.6));
}

/* Glyphs */
.glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  background: rgba(8, 9, 13, 0.16);
  color: inherit;
}

.glyph-a {
  background: #08090d;
  color: #ffffff;
}

.glyph-x {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.glyph-y {
  background: #f59e0b;
  color: #08090d;
}

.glyph-steam,
.glyph-bumper {
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

/* Live Open Rooms Floating Strip */
.live-rooms-strip {
  flex-shrink: 0;
}

.rooms-row {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.rooms-row::-webkit-scrollbar {
  display: none;
}

.room-banner-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  min-width: 280px;
  padding: 0.55rem 0.95rem;
  border-radius: 12px;
  background: linear-gradient(135deg var(--in-oklab), rgba(229, 9, 20, 0.28), rgba(16, 20, 30, 0.92));
  border: 1px solid rgba(229, 9, 20, 0.5);
  cursor: pointer;
}

/* ==========================================================================
   Plane Z-2: Netflix Games Horizontal Row (Uncropped Cover Pedestals + Depth)
   ========================================================================== */
.carousel-deck-section {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.carousel-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.carousel-section-title {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.carousel-section-title h2 {
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #f8fafc;
}

.shelf-count {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--steam-muted);
}

.carousel-nav-arrows {
  display: flex;
  gap: 0.45rem;
}

.carousel-arrow-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.carousel-arrow-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
}

.capsules-carousel {
  display: flex;
  align-items: stretch;
  gap: 1.35rem;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 1.15rem 0.75rem 1.25rem;
}

.capsules-carousel::-webkit-scrollbar {
  display: none;
}

/* Uncropped Pedestal Card with Generous Internal Margin & 2-Plane Parallax */
.capsule-card {
  position: relative;
  flex: 0 0 auto;
  width: clamp(204px, 17.5vw, 258px);
  border-radius: 16px;
  overflow: hidden;
  scroll-snap-align: center;
  background: rgba(17, 20, 29, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  opacity: 0.72;
  transform: translateY(0) scale(0.95);
  transition:
    transform 0.28s cubic-bezier(0.2, 0.85, 0.25, 1),
    opacity 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.28s ease;
  box-shadow: 0 14px 30px -8px rgba(0, 0, 0, 0.72);
}

.capsule-card:hover,
.capsule-card.focused,
.capsule-card:focus-visible {
  opacity: 1;
  transform: translateY(-11px) scale(1.05);
  z-index: 10;
  border-color: rgba(255, 255, 255, 0.78);
  outline: none;
  box-shadow:
    0 28px 54px -10px rgba(0, 0, 0, 0.95),
    0 0 34px -6px color-mix(in oklab, var(--game-accent) 48%, rgba(255, 255, 255, 0.25)),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* Pedestal Box: Gives Generous Breathing Room Around the Entire Uncropped Cover Art */
.capsule-pedestal {
  position: relative;
  width: 100%;
  height: clamp(132px, 18.5dvh, 178px);
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 35%, rgba(36, 44, 62, 0.55) 0%, rgba(10, 12, 18, 0.95) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  isolation: isolate;
}

.capsule-ambient {
  position: absolute;
  inset: -24px;
  background-size: cover;
  background-position: center;
  filter: blur(26px) saturate(1.85) brightness(0.42);
  transform: scale(1.2);
  z-index: -1;
  opacity: 0.78;
  transition: opacity 0.28s ease, filter 0.28s ease;
}

.capsule-card:hover .capsule-ambient,
.capsule-card.focused .capsule-ambient {
  opacity: 1;
  filter: blur(24px) saturate(2.1) brightness(0.56);
}

.capsule-art-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.capsule-art {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 4px;
  filter:
    drop-shadow(0 12px 18px rgba(0, 0, 0, 0.85))
    drop-shadow(0 4px 8px rgba(0, 0, 0, 0.55));
  transition: transform 0.3s cubic-bezier(0.2, 0.85, 0.25, 1), filter 0.3s ease;
}

/* 2nd-Layer Internal Parallax: The cover art lifts inside its pedestal on focus! */
.capsule-card:hover .capsule-art,
.capsule-card.focused .capsule-art {
  transform: translateY(-4px) scale(1.07);
  filter:
    drop-shadow(0 18px 26px rgba(0, 0, 0, 0.92))
    drop-shadow(0 6px 12px rgba(0, 0, 0, 0.65));
}

.capsule-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem;
  text-align: center;
  font-weight: 800;
  font-size: 0.84rem;
  color: #f8fafc;
}

/* Clean Editorial Footer Below the Cover (Zero Pollution Over the Cover Art!) */
.capsule-meta {
  padding: 0.65rem 0.9rem 0.72rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  background: linear-gradient(180deg, rgba(16, 19, 28, 0.92) 0%, rgba(11, 13, 20, 0.98) 100%);
}

.capsule-title {
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.22;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.capsule-submeta {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--steam-muted);
}

.meta-dot {
  opacity: 0.55;
}


/* ==========================================================================
   100% Edge-to-Edge Fullscreen In-Game Console Stage (Zero Web Chrome!)
   ========================================================================== */
.ingame-stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 50;
  background: #000000;
  display: flex;
  flex-direction: column;
}

.floating-steam-hud {
  position: absolute;
  top: calc(10px + var(--safe-top));
  left: calc(12px + var(--safe-left));
  right: calc(12px + var(--safe-right));
  z-index: 42;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  pointer-events: none;
  opacity: 0.42;
  transition: opacity 0.2s ease;
}

.floating-steam-hud:hover,
.floating-steam-hud:focus-within {
  opacity: 1;
}

.steam-guide-pill {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.34rem 0.72rem;
  border-radius: 999px;
  background: rgba(12, 18, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
}

.steam-guide-pill:hover,
.steam-guide-pill.active {
  background: rgba(26, 159, 255, 0.35);
  border-color: var(--steam-blue);
}

.steam-pill-exit {
  margin-left: auto;
  background: rgba(220, 38, 38, 0.42);
  border-color: rgba(248, 113, 113, 0.5);
}

.ingame-body {
  flex: 1;
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  min-height: 0;
}

.viewport-wrapper {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
  background: #000000;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.stage-screen-area {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 0;
  background: #000000;
}

.emulator-mount,
.emulator-mount iframe,
.remote-video {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  object-fit: contain;
}

.controller-only-banner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: radial-gradient(circle at 50% 40%, #162334 0%, #080c12 80%);
  text-align: center;
}

.controller-only-card {
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.guest-overlay-hint {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(12, 18, 26, 0.8);
  font-size: 0.7rem;
  color: #cbd5e1;
  pointer-events: none;
  white-space: nowrap;
}

/* Frosted Glass In-Game Overlay Drawer */
.ingame-sidebar {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(350px, 92vw);
  z-index: 46;
  background: rgba(12, 18, 26, 0.92);
  backdrop-filter: blur(26px);
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  padding: calc(1rem + var(--safe-top)) 1.15rem calc(1rem + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.85);
}

.room-pill {
  font-size: 0.74rem;
  color: var(--steam-muted);
  margin-left: 0.4rem;
}

.hud-btn {
  padding: 0.36rem 0.72rem;
  border-radius: 6px;
  border: 1px solid var(--steam-border);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.hud-btn-exit {
  background: rgba(239, 68, 68, 0.28) !important;
  border-color: rgba(239, 68, 68, 0.55) !important;
}

/* ==========================================================================
   Universal Multi-Touch Virtual Gamepad (Delta / Steam Deck / xCloud Hybrid)
   ========================================================================== */
.virtual-gamepad {
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.65rem calc(1rem + var(--safe-right)) calc(0.8rem + var(--safe-bottom)) calc(1rem + var(--safe-left));
  background: linear-gradient(180deg, rgba(16, 23, 33, 0.96) 0%, rgba(8, 12, 17, 0.99) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  gap: 0.65rem;
  z-index: 25;
}

.vpad-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.vpad-shoulders,
.vpad-system-pills {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.vpad-shoulder-btn {
  min-width: 56px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(38, 52, 71, 0.85);
  color: #e2e8f0;
  font-size: 0.78rem;
  font-weight: 800;
  touch-action: none;
  cursor: pointer;
}

.vpad-meta-btn {
  min-width: 62px;
  height: 28px;
  padding: 0 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 0.66rem;
  font-weight: 800;
  touch-action: none;
  cursor: pointer;
}

.vpad-start-btn {
  background: rgba(26, 159, 255, 0.24);
  border-color: rgba(26, 159, 255, 0.45);
  color: #ffffff;
}

.vpad-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.2rem 0.3rem;
}

.vpad-dpad {
  position: relative;
  width: 144px;
  height: 144px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(30, 42, 58, 0.92) 0%, rgba(15, 22, 32, 0.96) 100%);
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.65), 0 8px 20px rgba(0, 0, 0, 0.5);
  touch-action: none;
}

.dpad-arm {
  position: absolute;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(45, 62, 84, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 900;
  pointer-events: none;
}

.dpad-up {
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 10px 10px 4px 4px;
}

.dpad-down {
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 4px 4px 10px 10px;
}

.dpad-left {
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 10px 4px 4px 10px;
}

.dpad-right {
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 4px 10px 10px 4px;
}

.dpad-arm.active {
  background: var(--steam-blue);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(26, 159, 255, 0.75);
}

.dpad-center-nub {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  margin-top: -18px;
  margin-left: -18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  pointer-events: none;
}

.vpad-diamond {
  position: relative;
  width: 152px;
  height: 152px;
  touch-action: none;
}

.vpad-face-btn {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.24);
  font-size: 0.98rem;
  font-weight: 900;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.55);
}

.vpad-btn-x {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(145deg, #2563eb, #1d4ed8);
}

.vpad-btn-y {
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(145deg, #16a34a, #15803d);
}

.vpad-btn-a {
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(145deg, #dc2626, #b91c1c);
}

.vpad-btn-b {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(145deg, #eab308, #ca8a04);
  color: #080c11;
}

.vpad-face-btn.active,
.vpad-shoulder-btn.active,
.vpad-meta-btn.active {
  filter: brightness(1.35);
  outline: 2px solid #ffffff;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.7);
}

.viewport-wrapper.gamepad-only-mode .stage-screen-area {
  flex: 0 0 120px;
}

.viewport-wrapper.gamepad-only-mode .virtual-gamepad {
  flex: 1;
  justify-content: space-around;
}

@media (orientation: landscape) and (max-height: 600px) {
  .virtual-gamepad {
    position: absolute;
    inset: 0;
    background: transparent;
    border-top: none;
    pointer-events: none;
    padding: 2.6rem calc(0.85rem + var(--safe-right)) calc(0.55rem + var(--safe-bottom)) calc(0.85rem + var(--safe-left));
  }

  .vpad-shoulder-btn,
  .vpad-meta-btn,
  .vpad-dpad,
  .vpad-diamond,
  .vpad-face-btn {
    pointer-events: auto;
    opacity: 0.84;
  }
}

.sidebar-block h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--steam-muted);
  margin-bottom: 0.45rem;
}

.controller-slots {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.slot-item {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.76rem;
}

.slot-item.occupied {
  border-left: 3px solid var(--steam-green);
}

.chat-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  font-size: 0.76rem;
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  margin-bottom: 0.5rem;
}

.chat-form {
  display: flex;
  gap: 0.4rem;
}

.chat-form input {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--steam-border);
  border-radius: 6px;
  padding: 0.38rem 0.55rem;
  color: #fff;
  user-select: text;
  -webkit-user-select: text;
}

/* Quick Access Menu (•••) Drawer & Dialogs */
dialog.console-dialog {
  margin: auto;
  width: min(430px, 94vw);
  max-height: 88dvh;
  background: rgba(16, 24, 35, 0.96);
  backdrop-filter: blur(24px);
  color: var(--steam-text);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9);
}

dialog.console-dialog::backdrop {
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(8px);
}

.qam-content {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.qam-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.qam-header h2 {
  font-size: 1rem;
}

.qam-close {
  background: transparent;
  border: none;
  color: var(--steam-muted);
  font-size: 1.15rem;
  cursor: pointer;
}

.qam-section {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.qam-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--steam-muted);
}

.qam-input {
  background: rgba(0, 0, 0, 0.36);
  border: 1px solid var(--steam-border);
  border-radius: 8px;
  padding: 0.52rem 0.7rem;
  color: #ffffff;
  font-size: 0.86rem;
  user-select: text;
  -webkit-user-select: text;
}

.qam-btn-stack {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.qam-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.62rem 0.85rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--steam-border);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}

.qam-action-btn:hover {
  background: rgba(26, 159, 255, 0.24);
  border-color: var(--steam-blue);
}

.qam-rooms-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--steam-muted);
}

.qam-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
}

.progress-box {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.76rem;
}

.progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--steam-blue);
}

/* Subtle Bottom Console Controller Hints */
.steamos-bottombar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding:
    0.5rem
    calc(var(--stage-margin-x) + var(--safe-right))
    calc(0.55rem + var(--safe-bottom))
    calc(var(--stage-margin-x) + var(--safe-left));
  background: linear-gradient(to top var(--in-oklab), rgba(8, 9, 13, 0.96) 0%, rgba(8, 9, 13, 0.65) 100%);
  backdrop-filter: blur(18px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 30;
}

.bottom-left,
.bottom-right {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.bottom-prompt {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  background: transparent;
  border: none;
  color: rgba(226, 232, 240, 0.78);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.16s ease;
}

.bottom-prompt:hover {
  color: #ffffff;
}

@media (max-width: 860px) {
  :root {
    --stage-margin-x: 1.25rem;
  }

  .steamos-topbar {
    flex-wrap: wrap;
    gap: 0.55rem;
    padding-top: calc(0.6rem + var(--safe-top));
    padding-bottom: 0.4rem;
  }

  .netflix-hero-grid {
    grid-template-columns: 1fr 165px;
    gap: 1rem;
  }

  .hero-snap-card {
    display: none;
  }

  .hero-boxart-pedestal {
    padding: 0.65rem 0.85rem;
    transform: rotateY(-6deg) rotateX(2deg);
  }

  .hero-boxart-pedestal img {
    max-width: 135px;
    max-height: 145px;
  }

  .hero-synopsis {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.8rem;
  }

  .search-pill input {
    width: 86px;
  }

  .system-clock,
  .desktop-only-prompt {
    display: none;
  }

  .capsule-card {
    width: 176px;
  }

  .capsule-pedestal {
    height: 122px;
    padding: 12px 14px;
  }
}

