@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --accent: #e52e14;        /* Exact CGA Studio Vermilion hsl(8, 84%, 49%) */
  --accent-hover: #c6240d;
  --emerald: #0fa968;
  --black: #000000;
  --dark: #282828;
  --light-grey: #dad9d9;
  --off-white: #f7f7f7;
  --white: #ffffff;
  --ink: #000000;
  --muted: #4a4a4a;
  --border: #e4e4e4;
  --btn-radius: 5.2px;
  --max: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 300;
  letter-spacing: 0.03em;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4 {
  font-family: "Outfit", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.22;
}

a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
a:hover { opacity: 0.85; }
img { max-width: 100%; display: block; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 4vw;
}

/* ===== DECLUTTERED SQUARESPACE navLeft HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.header-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 82px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.nav-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
}
.nav-left > a, .nav-dropdown-btn {
  color: var(--black);
  text-decoration: none;
  font-size: 15.5px;
  font-weight: 400;
  letter-spacing: 0.02em;
  background: none;
  border: 0;
  padding: 4px 0;
  font-family: inherit;
  cursor: pointer;
  position: relative;
}
.nav-left > a:hover, .nav-left > a.active, .nav-dropdown-btn:hover {
  color: var(--accent);
  opacity: 1;
}
.nav-left > a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1.5px;
  background: var(--black);
}
.nav-left > a.nav-play-link {
  background: #fdf0ee;
  color: var(--accent);
  font-weight: 500;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid rgba(229, 46, 20, 0.25);
}
.nav-left > a.nav-play-link:hover, .nav-left > a.nav-play-link.active {
  background: var(--accent);
  color: var(--white);
}
.nav-left > a.nav-play-link.active::after { display: none; }

/* Games Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-start: 0;
  width: 480px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.14);
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
  z-index: 80;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu { display: grid; }
.nav-dropdown-menu a {
  color: var(--black);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  padding: 6px 8px;
  border-radius: 5px;
  display: block;
}
.nav-dropdown-menu a:hover {
  background: var(--off-white);
  color: var(--accent);
}

/* Center Logo */
.header-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.header-logo img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

/* Header Right: Clean Lang Picker + Vermilion Steam Button */
.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.social-circles {
  display: flex;
  align-items: center;
  gap: 8px;
}
.social-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--black);
  color: var(--black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.social-circle:hover {
  background: var(--black);
  color: var(--white);
  opacity: 1;
}
.social-circle svg { width: 15px; height: 15px; fill: currentColor; }

/* Language Switcher */
.lang-wrap { position: relative; }
.lang-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border-radius: var(--btn-radius);
  border: 1.5px solid var(--black);
  background: var(--white);
  color: var(--black);
  font: 500 13px/1 inherit;
  cursor: pointer;
}
.lang-btn:hover { background: var(--off-white); }
.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  width: 310px;
  max-height: 380px;
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  z-index: 80;
}
.lang-wrap.open .lang-menu { display: grid; }
.lang-menu a {
  display: block;
  padding: 7px 10px;
  border-radius: 5px;
  font-size: 13.5px;
  color: var(--black);
  text-decoration: none;
  font-weight: 400;
}
.lang-menu a:hover { background: var(--off-white); color: var(--accent); }
.lang-menu a.current {
  background: var(--black);
  color: var(--white);
  font-weight: 500;
}

/* Primary Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--btn-radius);
  font-family: inherit;
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.12s ease, background 0.15s ease;
}
.btn:hover { opacity: 0.92; transform: translateY(-1px); text-decoration: none; }
.btn.accent, .btn.steam-cta, .btn.primary {
  background: var(--accent);
  color: var(--white);
}
.btn.emerald {
  background: var(--emerald);
  color: var(--white);
}
.btn.steam-cta {
  padding: 10px 20px;
  font-size: 14.5px;
}
.btn.black, .btn.play {
  background: var(--black);
  color: var(--white);
}
.btn.ios {
  background: var(--dark);
  color: var(--white);
}
.btn.outline, .btn.secondary {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}
.btn.outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.65);
}
.btn.outline-light:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ===== UPGRADE #1: FLAGSHIP HERO SPOTLIGHT ROTATOR ===== */
.hero-spotlight {
  background: var(--black);
  color: var(--white);
  padding: 28px 0 12px;
}
.spotlight-stage {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  background: #0d0f14;
  min-height: 360px;
}
.spot-slide {
  display: none;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  min-height: 360px;
}
.spot-slide.active { display: grid; }
.spot-copy {
  padding: 40px 44px;
  z-index: 2;
}
.spot-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ff806e;
  margin-bottom: 12px;
}
.spot-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.14;
}
.spot-copy p {
  margin: 0 0 22px;
  color: rgba(255,255,255,0.78);
  font-size: 16px;
  max-width: 500px;
}
.spot-media {
  position: relative;
  height: 100%;
  min-height: 320px;
  overflow: hidden;
  background: #07080c;
}
.spot-media img, .spot-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.spot-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0d0f14 0%, rgba(13,15,20,0.15) 35%, transparent 100%);
  pointer-events: none;
}
.spot-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.spot-tab {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.72);
  padding: 7px 15px;
  border-radius: 999px;
  font: 400 13px/1 inherit;
  cursor: pointer;
  transition: all 0.15s ease;
}
.spot-tab:hover { color: var(--white); border-color: rgba(255,255,255,0.45); }
.spot-tab.active {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
  font-weight: 500;
}

/* ===== HOMEPAGE GAME WALL (#000000) ===== */
.sq-gallery-wall {
  background: var(--black);
  color: var(--white);
  padding: 36px 0 68px;
}
.wall-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.wall-top h1 {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 36px);
  color: var(--white);
  font-weight: 300;
  letter-spacing: 0.03em;
}
.wall-sub {
  margin: 6px 0 0;
  color: rgba(255,255,255,0.7);
  font-size: 15.5px;
  max-width: 640px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-btn {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.28);
  background: transparent;
  color: rgba(255,255,255,0.8);
  padding: 9px 18px;
  border-radius: var(--btn-radius);
  font: 400 14px/1 inherit;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-btn:hover { border-color: var(--white); color: var(--white); }
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.wall-label {
  font-size: 12.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}

/* Poster Grid (3:4 Switch/Steam Posters) */
.grid-posters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
}

/* UPGRADE #3: App Store Featured Mobile Cards Grid */
.grid-mobile {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 22px;
}

.game-tile {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--white);
  background: #12141a;
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.game-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.38);
  box-shadow: 0 16px 36px rgba(0,0,0,0.55);
  opacity: 1;
}

/* UPGRADE #2: Hover Video Preview Layer */
.tile-media {
  position: relative;
  overflow: hidden;
  background: #090a0e;
}
.tile-media.poster { aspect-ratio: 3 / 4; }
.tile-media.wide { aspect-ratio: 16 / 9; }
.tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.25s ease;
}
.tile-media video.hover-vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.game-tile.playing .tile-media video.hover-vid { opacity: 1; }
.game-tile:hover .tile-media img { transform: scale(1.03); }

.tile-pill {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  background: var(--emerald);
  color: var(--white);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.tile-pill.soon {
  background: rgba(12, 14, 20, 0.84);
  border: 1px solid rgba(255,255,255,0.25);
}

/* App Store Card Docked Icon Row */
.app-card-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 8px;
}
.app-icon {
  width: 54px;
  height: 54px;
  border-radius: 13px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}
.app-head {
  flex: 1;
  min-width: 0;
}
.app-head h3 {
  margin: 0 0 2px;
  font-size: 17px;
  font-weight: 500;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-genre {
  font-size: 12.5px;
  color: rgba(255,255,255,0.58);
}
.app-get-pill {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  letter-spacing: 0.03em;
  transition: background 0.15s ease;
}
.app-get-pill.live {
  background: var(--emerald);
  color: var(--white);
}
.game-tile:hover .app-get-pill:not(.live) {
  background: var(--accent);
}
.app-desc {
  margin: 0;
  padding: 0 16px 16px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.68);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tile-caption {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.tile-caption h3 {
  margin: 0;
  font-size: 17.5px;
  font-weight: 400;
  color: var(--white);
}
.tile-caption p {
  margin: 0;
  font-size: 13.5px;
  color: rgba(255,255,255,0.68);
  line-height: 1.45;
  flex: 1;
}
.tile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.tile-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.78);
}

/* Section 2: White-Bold Studio About Section */
.sq-about-section {
  background: var(--white);
  color: var(--black);
  padding: 76px 0;
  border-top: 1px solid var(--border);
}
.about-split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-copy .kicker {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 10px;
}
.about-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 300;
}
.about-copy p {
  margin: 0 0 16px;
  font-size: 17.5px;
  color: var(--dark);
}
.about-art img {
  width: 100%;
  border-radius: 8px;
}

/* ===== CONTACT US ===== */
.sq-black-hero {
  background-color: var(--black);
  background-size: cover;
  background-position: center;
  padding: 96px 0 72px;
  text-align: center;
}
.sq-black-hero h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 300;
  letter-spacing: 0.05em;
}

.sq-black-section {
  background: var(--black);
  color: var(--white);
  padding: 48px 0 80px;
}
.sq-faq-heading {
  text-align: center;
  font-size: clamp(28px, 3.6vw, 40px);
  margin: 0 0 36px;
  color: var(--white);
  letter-spacing: 0.06em;
}
.sq-accordion { border-top: 1px solid rgba(255, 255, 255, 0.3); }
.sq-acc-item { border-bottom: 1px solid rgba(255, 255, 255, 0.3); }
.sq-acc-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 4px;
  font-size: 19px;
  font-weight: 300;
  letter-spacing: 0.03em;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.sq-acc-item summary::-webkit-details-marker { display: none; }
.sq-acc-item summary::after {
  content: "+";
  font-size: 26px;
  font-weight: 300;
  line-height: 1;
  color: var(--white);
}
.sq-acc-item[open] summary::after { content: "−"; }
.sq-acc-body {
  padding: 0 4px 24px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 16.5px;
  line-height: 1.65;
}
.sq-acc-body p { margin: 0 0 14px; }
.sq-acc-body p:last-child { margin-bottom: 0; }
.sq-acc-body a { color: var(--accent); }

.sq-white-section {
  background: var(--white);
  color: var(--black);
  padding: 76px 0;
}
.sq-publish-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}
.sq-publish-info h2 {
  margin: 0 0 16px;
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.04em;
}
.sq-publish-info p {
  margin: 0 0 14px;
  font-size: 16.5px;
  color: var(--dark);
}
.sq-form { display: flex; flex-direction: column; gap: 18px; }
.sq-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sq-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 400;
  color: var(--black);
}
.sq-form label span { color: var(--muted); font-size: 12.5px; }
.sq-form input, .sq-form textarea {
  font: 300 15.5px/1.4 inherit;
  padding: 12px 14px;
  border: 1px solid #a8a8a8;
  border-radius: 0;
  background: #fafafa;
  color: var(--black);
}
.sq-form input:focus, .sq-form textarea:focus {
  outline: 1.5px solid var(--black);
  background: var(--white);
}

/* ===== GAME SHOWCASE PAGES + UPGRADE #5 UNIFORM GALLERY & LIGHTBOX ===== */
.game-top {
  background: var(--black);
  color: var(--white);
  padding: 48px 0;
}
.game-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: center;
}
.game-art {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.16);
}
.game-art img { width: 100%; height: auto; }
.game-info h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 44px);
  color: var(--white);
}
.game-info .lead {
  margin: 0 0 22px;
  color: rgba(255,255,255,0.82);
  font-size: 17.5px;
}
.game-meta {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.16);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
}
.game-meta a { color: rgba(255,255,255,0.8); }
.game-meta a:hover { color: var(--accent); }

.showcase-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 4vw 72px;
}
.showcase-section { margin-bottom: 48px; }
.showcase-banner { border-radius: 10px; overflow: hidden; margin-bottom: 28px; }
.showcase-text { max-width: 800px; margin: 24px auto; }
.showcase-text h1, .showcase-text h2 { font-size: 28px; margin: 28px 0 12px; }
.showcase-text p, .showcase-text li { font-size: 17px; color: var(--dark); line-height: 1.68; }
.showcase-fig {
  margin: 24px auto;
  border-radius: 10px;
  overflow: hidden;
  background: var(--off-white);
  border: 1px solid var(--border);
  cursor: zoom-in;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.showcase-fig:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.1);
}
.showcase-fig img { width: 100%; height: auto; }
.showcase-fig figcaption {
  padding: 10px 14px;
  font-size: 13.5px;
  color: var(--muted);
  text-align: center;
  background: var(--white);
  border-top: 1px solid var(--border);
}
/* Uniform 16:9 thumbnail grid in galleries */
.showcase-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
  margin: 28px 0;
}
.showcase-gallery .showcase-fig {
  margin: 0;
  display: flex;
  flex-direction: column;
}
.showcase-gallery .showcase-fig img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin: 28px 0;
}
.feature-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px;
}
.feature-card h2, .feature-card h3 { margin: 0 0 10px; font-size: 21px; font-weight: 400; }
.feature-card p { margin: 0 0 8px; font-size: 15.5px; color: var(--dark); }
.feature-card p:last-child { margin-bottom: 0; }
.showcase-embed { margin: 28px auto; max-width: 780px; }
.showcase-embed.steam-widget iframe { width: 100%; height: 195px; border: 0; }
.showcase-embed.video-embed { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; }
.showcase-embed.video-embed iframe { width: 100%; height: 100%; border: 0; }

/* Lightbox Modal */
.lb-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 7, 12, 0.92);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 28px;
}
.lb-backdrop.open { display: flex; }
.lb-inner {
  max-width: min(1100px, 92vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.lb-inner img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.lb-cap {
  color: rgba(255,255,255,0.88);
  font-size: 15px;
  text-align: center;
}
.lb-btn {
  position: fixed;
  appearance: none;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(20, 22, 30, 0.8);
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lb-btn:hover { background: var(--accent); border-color: var(--accent); }
.lb-close { top: 20px; right: 24px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ===== UPGRADE #6: INSTANT ARCADE PORTAL (/play & /play/<slug>) ===== */
.portal-hero {
  background: radial-gradient(ellipse 80% 70% at 50% 0%, #1a2436 0%, var(--black) 75%);
  color: var(--white);
  padding: 52px 0 38px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.portal-hero h1 {
  margin: 10px auto 12px;
  font-size: clamp(32px, 4.6vw, 48px);
  color: var(--white);
}
.portal-hero p {
  margin: 0 auto 20px;
  max-width: 660px;
  color: rgba(255,255,255,0.78);
  font-size: 17px;
}
.arcade-perks {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
  padding: 9px 20px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  font-size: 13px;
  color: rgba(255,255,255,0.85);
}
.portal-live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px;
}

.player-section { padding: 28px 0 56px; background: var(--black); color: var(--white); }
.player-shell {
  background: #141414;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  overflow: hidden;
}
.player-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: #1c1c1c;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.player-title { display: flex; align-items: center; gap: 12px; }
.player-title img { width: 38px; height: 38px; border-radius: 9px; object-fit: cover; }
.player-title h1 { margin: 0; font-size: 19px; color: var(--white); }
.player-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-btn {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.28);
  background: transparent;
  color: var(--white);
  padding: 8px 14px;
  border-radius: var(--btn-radius);
  font: 400 13.5px/1 inherit;
  text-decoration: none;
  cursor: pointer;
}
.tool-btn:hover { background: var(--accent); border-color: var(--accent); opacity: 1; }
.player-stage { background: #050505; display: flex; justify-content: center; align-items: center; }
.player-frame-wrap { width: 100%; aspect-ratio: 16 / 9; max-height: 78vh; }
.player-frame-wrap.portrait {
  max-width: 440px;
  aspect-ratio: 9 / 16;
  max-height: 82vh;
  margin: 16px auto;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.2);
}
.player-frame-wrap iframe { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.player-foot {
  padding: 18px 20px;
  background: #1c1c1c;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Paper Legal Pages */
.prose-paper {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.68;
  color: #222;
  background: var(--white);
  max-width: 44rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  letter-spacing: 0;
}
.prose-paper h1 { font-size: 1.85rem; margin: 0 0 1rem; font-family: "Outfit", sans-serif; font-weight: 400; }
.prose-paper h2 { font-size: 1.25rem; margin-top: 2rem; font-family: "Outfit", sans-serif; font-weight: 500; }
.prose-paper h3 { font-size: 1.08rem; margin-top: 1.5rem; font-family: "Outfit", sans-serif; font-weight: 500; }

.verbatim-wrap { padding: 20px 0 44px; letter-spacing: 0; }

/* ===== FOOTER ===== */
.site-footer {
  margin-top: auto;
  background: var(--white);
  color: var(--black);
  border-top: 1px solid var(--border);
  padding: 56px 0 48px;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px;
  align-items: start;
}
.footer-col h4 {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-col p, .footer-col li { margin: 0 0 8px; font-size: 15px; color: var(--dark); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col a { color: var(--black); text-decoration: underline; }
.footer-col a:hover { color: var(--accent); }

@media (max-width: 960px) {
  .header-grid { grid-template-columns: 1fr auto; }
  .header-logo { order: -1; justify-content: flex-start; }
  .header-logo img { height: 42px; }
  .nav-left { grid-column: 1 / -1; gap: 14px; padding-top: 8px; border-top: 1px solid var(--border); }
  .spot-slide { grid-template-columns: 1fr; }
  .spot-copy { padding: 28px 24px; order: 2; }
  .spot-media { min-height: 210px; order: 1; }
  .spot-media::after { background: linear-gradient(0deg, #0d0f14 0%, transparent 60%); }
  .about-split, .sq-publish-grid, .game-layout, .footer-cols { grid-template-columns: 1fr; gap: 28px; }
  .sq-form-row { grid-template-columns: 1fr; }
  .nav-dropdown-menu { width: 300px; grid-template-columns: 1fr; }
}

/* ===== SITE-WIDE SHARED CGA ECONOMY PILL, BAR & MOBILE-FIRST MODAL ===== */
.cga-header-wallet {
  appearance: none;
  border: 1.5px solid rgba(229, 46, 20, 0.35);
  background: #141418;
  color: #ffffff;
  height: 38px;
  padding: 0 7px 0 12px;
  border-radius: 999px;
  font: 600 14px/1 inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
  white-space: nowrap;
}
.cga-header-wallet:hover { border-color: var(--accent); transform: translateY(-1px); }
.cga-header-wallet .cga-coin-ic { color: #ffbe3b; font-weight: 700; }
.cga-header-wallet .cga-plus {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center; font-size: 15px; font-weight: 700;
}
.cga-vip-pill {
  display: none;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #fde047);
  color: #1f1300;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.cga-portal-econ-strip {
  margin: 22px auto 0;
  max-width: 820px;
  background: rgba(255, 190, 59, 0.1);
  border: 1px solid rgba(255, 190, 59, 0.35);
  border-radius: 14px;
  padding: 12px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
}
.cga-quick-item {
  border-color: rgba(255, 190, 59, 0.55) !important;
  background: rgba(255, 190, 59, 0.14) !important;
  color: #ffe299 !important;
  font-weight: 500 !important;
}
.cga-quick-item:hover {
  background: #ffbe3b !important;
  color: #1a1000 !important;
}

.cga-econ-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 220;
  background: rgba(8, 10, 16, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.cga-econ-backdrop.open { display: flex; }
.cga-econ-modal {
  width: 100%;
  max-width: 740px;
  max-height: 90vh;
  overflow-y: auto;
  background: #141724;
  color: #f6f7fb;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 20px;
  padding: 24px 26px;
  box-shadow: 0 28px 80px rgba(0,0,0,0.7);
  letter-spacing: 0.01em;
}
.cga-econ-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.cga-econ-head h2 { margin: 0; font-size: 22px; font-weight: 600; color: #fff; }
.cga-econ-close {
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06);
  color: #fff;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
}
.cga-econ-balbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 190, 59, 0.1);
  border: 1px solid rgba(255, 190, 59, 0.3);
  margin-bottom: 12px;
}
.cga-daily-btn {
  appearance: none;
  border: 1px solid rgba(255, 190, 59, 0.55);
  background: #ffbe3b;
  color: #1e1200;
  padding: 9px 14px;
  border-radius: 999px;
  font: 600 13px/1 inherit;
  cursor: pointer;
}
.cga-daily-btn.claimed {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  color: #9ba3b8;
  cursor: default;
}
.cga-quest-bar {
  padding: 10px 14px;
  border-radius: 11px;
  background: rgba(15, 169, 104, 0.14);
  border: 1px solid rgba(15, 169, 104, 0.4);
  color: #d1fae5;
  font-size: 13px;
  margin-bottom: 14px;
}
.cga-modal-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: rgba(255,255,255,0.05);
  padding: 5px;
  border-radius: 12px;
  margin-bottom: 16px;
}
.cga-modal-tab {
  appearance: none;
  border: 0;
  border-radius: 9px;
  padding: 10px 12px;
  background: transparent;
  color: #a5adbe;
  font: 600 13.5px/1.2 inherit;
  cursor: pointer;
}
.cga-modal-tab.active { background: var(--accent); color: #fff; }

.cga-packs-grid, .cga-items-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.cga-pack-card, .cga-item-card {
  background: #1c2033;
  border: 1.5px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cga-pack-card.featured, .cga-item-card.current-game {
  border-color: #ffbe3b;
  background: linear-gradient(160deg, rgba(255,190,59,0.13), #1c2033 65%);
}
.cga-pack-badge {
  align-self: flex-start;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
}
.cga-pack-coins { font-size: 20px; font-weight: 700; color: #ffbe3b; }
.cga-pack-title, .cga-item-name { font-size: 14.5px; font-weight: 600; color: #fff; }
.cga-pack-desc, .cga-item-desc { font-size: 12.5px; color: #a7b0c4; flex: 1; line-height: 1.4; }
.cga-item-top { display: flex; align-items: center; gap: 10px; }
.cga-item-icon { font-size: 24px; }
.cga-item-game { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: #ffbe3b; font-weight: 600; }

.cga-buy-pack, .cga-buy-item {
  appearance: none;
  border: 0;
  border-radius: 9px;
  height: 38px;
  margin-top: 6px;
  font: 600 13.5px/1 inherit;
  cursor: pointer;
}
.cga-buy-pack { background: var(--accent); color: #fff; }
.cga-buy-pack:hover { background: var(--accent-hover); }
.cga-buy-item { background: #ffbe3b; color: #1f1300; }
.cga-buy-item:hover { filter: brightness(1.07); }

.cga-ledger-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 7px;
  background: rgba(255,255,255,0.04);
  font-size: 12.5px;
  margin-top: 5px;
}
.cga-ledger-row b.pos { color: #34d399; }
.cga-ledger-row b.neg { color: #f87171; }

.cga-site-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 300;
  background: #161a2b;
  border: 1.5px solid #ffbe3b;
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: 0 14px 36px rgba(0,0,0,0.55);
  display: none;
}
.cga-site-toast.show { display: block; }

@media (max-width: 680px) {
  .steam-cta { display: none !important; }
  .nav-actions { gap: 8px; }
  .cga-packs-grid, .cga-items-grid { grid-template-columns: 1fr; }
  .cga-econ-backdrop { padding: 0; align-items: flex-end; }
  .cga-econ-modal {
    max-height: 92dvh;
    border-radius: 20px 20px 0 0;
    padding: 18px 16px 26px;
  }
  .cga-modal-tab { font-size: 12.5px; padding: 9px 8px; }
  .cga-site-toast { left: 12px; right: 12px; bottom: 14px; text-align: center; }
}
