/* ==========================================================================
   Zteam — Maritime Slate Storefront Design System
   Steam-inspired density and clarity, refined with modern typography & depth
   ========================================================================== */

:root {
  --bg-deep: hsl(212, 32%, 9%);
  --bg-base: hsl(212, 29%, 12%);
  --bg-surface: hsl(211, 26%, 16%);
  --bg-elevated: hsl(210, 24%, 20%);
  --bg-hover: hsl(209, 25%, 24%);
  --bg-header: hsl(214, 34%, 8%);

  --border-subtle: hsla(208, 45%, 82%, 0.09);
  --border-medium: hsla(208, 45%, 82%, 0.16);
  --border-strong: hsla(202, 72%, 62%, 0.42);

  --text-primary: hsl(207, 36%, 94%);
  --text-secondary: hsl(208, 22%, 72%);
  --text-muted: hsl(209, 17%, 55%);

  --accent-blue: hsl(202, 82%, 58%);
  --accent-blue-soft: hsla(202, 82%, 58%, 0.15);
  --accent-blue-hover: hsl(202, 86%, 66%);

  --action-green: hsl(84, 58%, 40%);
  --action-green-hover: hsl(84, 62%, 47%);
  --action-green-soft: hsla(84, 58%, 44%, 0.16);

  --positive: hsl(197, 78%, 62%);
  --mixed: hsl(39, 82%, 58%);
  --negative: hsl(6, 74%, 60%);
  --amber: hsl(42, 88%, 58%);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.42);
  --shadow-lg: 0 22px 54px rgba(0, 0, 0, 0.56);

  --font-sans: "Plus Jakarta Sans", "Noto Sans JP", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --max-width: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  background: radial-gradient(ellipse 90% 55% at 50% -10%, hsl(208, 36%, 18%), var(--bg-deep) 60%);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.hidden {
  display: none !important;
}

/* ---------- Header (Steam-Inspired 2-Tier Storefront Bar) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #171a21;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.header-top {
  background: #171a21;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-nav-bar {
  background: linear-gradient(90deg, rgba(62, 103, 150, 0.94) 0%, rgba(58, 120, 177, 0.88) 42%, rgb(15, 33, 110) 100%);
  border-bottom: 1px solid rgba(102, 192, 244, 0.18);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 9px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.header-nav-inner {
  padding: 7px 20px;
}

.header-utilities {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  display: block;
  width: 34px;
  height: 34px;
  padding: 0;
  margin: 0;
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid rgba(102, 192, 244, 0.35);
  flex-shrink: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-wordmark {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #ffffff;
}

.brand-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 2px;
  background: #4c6b22;
  color: #beee11;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-link {
  padding: 6px 13px;
  border-radius: 3px;
  font-size: 13.5px;
  font-weight: 600;
  color: #e5f1fa;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  transition: color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.nav-link-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
  background: linear-gradient(180deg, #75b022 0%, #588a1b 100%);
  color: #f4ffdf;
  border: 1px solid rgba(190, 238, 17, 0.28);
}

.nav-link-cta:hover,
.nav-link-cta.active {
  background: linear-gradient(180deg, #8ed629 0%, #6aa621 100%);
  color: #ffffff;
}

.header-search {
  display: flex;
  align-items: center;
  background: #316282;
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: 3px;
  overflow: hidden;
  width: 280px;
  max-width: 100%;
  flex-shrink: 0;
  box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.35);
  transition: border-color 0.16s ease, background 0.16s ease;
}

.header-search:focus-within {
  border-color: #66c0f4;
  background: #28516c;
}

.header-search input {
  width: 100%;
  border: none;
  background: transparent;
  padding: 6px 10px;
  font-size: 13px;
  color: #ffffff;
  outline: none;
}

.header-search input::placeholder {
  color: #b4d5ec;
}

.header-search button {
  border: none;
  background: linear-gradient(180deg, #66c0f4 0%, #3a8ec4 100%);
  padding: 6px 11px;
  color: #0e1c29;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.header-search button:hover {
  background: linear-gradient(180deg, #86d2ff 0%, #4ba4dc 100%);
}

.auth-slot {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
}

.user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--accent-blue), hsl(212, 60%, 42%));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--accent-blue);
  color: #081520;
}

.btn-primary:hover {
  background: var(--accent-blue-hover);
}

.btn-green {
  background: linear-gradient(180deg, hsl(84, 58%, 44%), hsl(84, 58%, 35%));
  color: #f6ffea;
  border-color: hsla(84, 70%, 60%, 0.25);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

.btn-green:hover {
  background: linear-gradient(180deg, hsl(84, 62%, 50%), hsl(84, 60%, 40%));
}

.btn-secondary {
  background: var(--bg-elevated);
  border-color: var(--border-medium);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--border-strong);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.btn-danger {
  background: hsla(6, 70%, 48%, 0.16);
  border-color: hsla(6, 74%, 58%, 0.32);
  color: hsl(6, 85%, 72%);
}

.btn-danger:hover {
  background: hsl(6, 72%, 48%);
  color: #fff;
}

.btn-lg {
  padding: 11px 20px;
  font-size: 15px;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 12.5px;
}

.btn-block {
  width: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1.35;
}

/* ---------- Main Container ---------- */
.app-main {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 20px 64px;
}

.loading-shell {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--text-secondary);
}

.spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid var(--border-medium);
  border-top-color: var(--accent-blue);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- Value Banner (Zero-Fee Steam Alternative Strip) ---------- */
.zero-fee-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 20px;
  margin-bottom: 24px;
  background: linear-gradient(95deg, hsl(208, 34%, 17%), hsl(204, 38%, 14%));
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.zero-fee-copy h1 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.zero-fee-copy p {
  margin: 3px 0 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.zero-fee-metrics {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-shrink: 0;
}

.metric-item {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
}

.metric-value.accent {
  color: hsl(84, 72%, 64%);
}

.metric-label {
  font-size: 11px;
  color: var(--text-muted);
}

/* ---------- Section Headings ---------- */
.section-block {
  margin-bottom: 36px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.section-sub {
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- Featured Hero Carousel (Steam-style) ---------- */
.hero-carousel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr);
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0b1117;
  overflow: hidden;
  cursor: pointer;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.hero-media:hover img {
  transform: scale(1.02);
}

.hero-media-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  background: hsla(214, 38%, 8%, 0.82);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-medium);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-blue);
}

.hero-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 22px;
  background: linear-gradient(180deg, hsl(212, 30%, 15%), hsl(214, 34%, 11%));
}

.hero-title {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.hero-dev {
  font-size: 12.5px;
  color: var(--accent-blue);
  margin-bottom: 12px;
}

.hero-thumbs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.hero-thumb {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.72;
  transition: opacity 0.15s ease, border-color 0.15s ease;
  padding: 0;
  background: #0b1117;
}

.hero-thumb:hover,
.hero-thumb.active {
  opacity: 1;
  border-color: var(--accent-blue);
}

.hero-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-tagline {
  margin: 0 0 12px;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.hero-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.hero-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.hero-dot {
  width: 24px;
  height: 6px;
  border-radius: 3px;
  border: none;
  background: var(--bg-elevated);
  cursor: pointer;
  transition: background 0.16s ease, width 0.16s ease;
}

.hero-dot.active {
  width: 38px;
  background: var(--accent-blue);
}

.hero-arrow {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.hero-arrow:hover {
  border-color: var(--accent-blue);
  color: var(--text-primary);
}

/* ---------- Tags, Badges, OS Icons ---------- */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-chip {
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 3px;
  background: hsla(202, 48%, 55%, 0.14);
  color: hsl(202, 74%, 74%);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.tag-chip:hover {
  background: var(--accent-blue);
  color: #091520;
}

.price-badge-free {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 3px;
  background: var(--action-green-soft);
  color: hsl(84, 76%, 68%);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.sentiment-positive { color: var(--positive); }
.sentiment-mixed { color: var(--mixed); }
.sentiment-negative { color: var(--negative); }
.sentiment-none { color: var(--text-muted); }

.platform-list {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
}

.platform-pill {
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 1px 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
}

.platform-pill.web {
  background: hsla(202, 82%, 58%, 0.16);
  color: var(--accent-blue);
}

/* ---------- Filter Toolbar ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.genre-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill-btn {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pill-btn:hover {
  border-color: var(--border-medium);
  color: var(--text-primary);
}

.pill-btn.active {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #081520;
}

.filter-selects {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-select {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-medium);
  background: var(--bg-base);
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
}

/* ---------- Capsule Grid ---------- */
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.game-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}

.game-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.game-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0d141c;
}

.game-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.game-card:hover .game-card-media img {
  transform: scale(1.04);
}

.web-playable-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  padding: 3px 8px;
  border-radius: 3px;
  background: hsla(214, 42%, 8%, 0.86);
  border: 1px solid hsla(202, 82%, 58%, 0.45);
  color: var(--accent-blue);
  font-size: 11px;
  font-weight: 700;
}

.game-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

.game-card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.game-card-dev {
  font-size: 12px;
  color: var(--text-muted);
}

.game-card-tagline {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.game-card-foot {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}

/* ---------- Steam-style Discovery List + Right Preview ---------- */
.discovery-split {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, 0.95fr);
  gap: 16px;
  align-items: start;
}

.discovery-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.discovery-row {
  display: grid;
  grid-template-columns: 144px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 8px 14px 8px 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease;
}

.discovery-row:hover,
.discovery-row.active {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
}

.discovery-thumb {
  width: 144px;
  aspect-ratio: 16 / 9;
  border-radius: 3px;
  overflow: hidden;
  background: #0c1218;
}

.discovery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.discovery-meta h3 {
  margin: 0 0 3px;
  font-size: 15px;
  font-weight: 700;
}

.discovery-sub {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.discovery-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.discovery-dl {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
}

.preview-panel {
  position: sticky;
  top: 76px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-md);
}

.preview-panel h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
}

.preview-review-box {
  margin: 10px 0 12px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-base);
  font-size: 12.5px;
}

.preview-shots {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.preview-shots img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

/* ---------- Game Detail Page ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.breadcrumb a:hover {
  color: var(--accent-blue);
}

.detail-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.detail-header h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.gallery-main {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #0a1016;
  border: 1px solid var(--border-medium);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-strip {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.gallery-thumb {
  width: 112px;
  flex-shrink: 0;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  background: #0a1016;
  cursor: pointer;
  opacity: 0.7;
}

.gallery-thumb.active,
.gallery-thumb:hover {
  opacity: 1;
  border-color: var(--accent-blue);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-sidebar {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.sidebar-cover {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
}

.sidebar-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.sidebar-tagline {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.meta-table {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 6px 10px;
  font-size: 12.5px;
  padding: 10px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.meta-table dt {
  color: var(--text-muted);
}

.meta-table dd {
  margin: 0;
  color: var(--text-primary);
  word-break: break-word;
}

.sidebar-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.detail-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr);
  gap: 20px;
  align-items: start;
}

.panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
}

.panel-title {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.build-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}

.build-item:last-child {
  margin-bottom: 0;
}

.build-info {
  min-width: 0;
  flex: 1;
}

.build-info h4 {
  margin: 0 0 4px;
  font-size: 15px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  word-break: break-word;
}

.build-meta {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  overflow-wrap: anywhere;
}

.build-notes {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.description-prose {
  white-space: pre-wrap;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.spec-col h4 {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.spec-list {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 6px 8px;
  margin: 0;
  font-size: 13px;
}

.spec-list dt { color: var(--text-muted); }
.spec-list dd { margin: 0; color: var(--text-secondary); word-break: break-word; }

/* ---------- Reviews ---------- */
.review-form {
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 18px;
}

.vote-toggle {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.vote-btn {
  flex: 1;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-medium);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.vote-btn.active-up {
  background: hsla(197, 78%, 54%, 0.18);
  border-color: var(--positive);
  color: var(--positive);
}

.vote-btn.active-down {
  background: hsla(6, 74%, 56%, 0.18);
  border-color: var(--negative);
  color: var(--negative);
}

.review-card {
  padding: 16px;
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.review-verdict {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
}

.review-verdict.up { color: var(--positive); }
.review-verdict.down { color: var(--negative); }

.review-author {
  font-size: 12.5px;
  color: var(--text-muted);
}

.review-content {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--text-primary);
  white-space: pre-wrap;
}

.review-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

/* ---------- Forms & Publish Studio ---------- */
.publish-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr);
  gap: 24px;
  align-items: start;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field > span,
.field > label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="url"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-medium);
  background: var(--bg-base);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent-blue);
}

.password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.field .password-wrap input[type="password"],
.field .password-wrap input[type="text"] {
  padding-right: 44px;
}

.password-toggle-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color 0.15s ease, background 0.15s ease;
}

.password-toggle-btn:hover,
.password-toggle-btn:focus-visible {
  color: var(--accent-blue);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.field-hint {
  font-size: 12px;
  color: var(--text-muted);
}

.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.checkbox-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-base);
  border: 1px solid var(--border-medium);
  font-size: 13px;
  cursor: pointer;
}

.dropzone {
  border: 1.5px dashed var(--border-medium);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
  background: var(--bg-base);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.dropzone:hover {
  border-color: var(--accent-blue);
  background: hsla(202, 40%, 20%, 0.28);
}

.divider-or {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
  margin: 6px 0;
}

.divider-or::before,
.divider-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

.form-error {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: hsla(6, 72%, 48%, 0.16);
  border: 1px solid hsla(6, 74%, 58%, 0.36);
  color: hsl(6, 86%, 76%);
  font-size: 13px;
}

.preview-sticky {
  position: sticky;
  top: 76px;
}

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(6, 11, 17, 0.78);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 44px 24px 24px;
  box-shadow: var(--shadow-lg);
}

.modal-card-wide {
  max-width: 580px;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  display: grid;
  place-items: center;
}

.modal-close:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: var(--bg-base);
  padding: 4px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
}

.auth-tab {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  padding: 8px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.auth-tab.active {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.modal-title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
}

.modal-subtitle {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* ---------- Empty State & Toast ---------- */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.empty-state h2,
.empty-state h3 {
  margin: 0 0 8px;
}

.empty-state p {
  margin: 0 0 18px;
  color: var(--text-secondary);
  font-size: 14px;
}

.toast-container {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  animation: toastIn 0.2s ease;
}

.toast.error {
  border-color: var(--negative);
  color: hsl(6, 86%, 78%);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Steam-Style Storefront Additions (matching image_2.png) ---------- */
.promo-hero-banner {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 26px;
  min-height: 210px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(102, 192, 244, 0.22);
  box-shadow: var(--shadow-lg);
}

.promo-hero-scrim {
  width: 100%;
  padding: 26px 28px;
  background: linear-gradient(
    90deg,
    rgba(13, 21, 31, 0.94) 0%,
    rgba(18, 32, 47, 0.82) 55%,
    rgba(18, 32, 47, 0.45) 100%
  );
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.promo-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #66c0f4;
  margin-bottom: 6px;
}

.promo-hero-copy {
  max-width: 640px;
}

.promo-hero-copy h1 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.promo-hero-copy p {
  margin: 0;
  font-size: 14px;
  color: #c7d5e0;
}

.promo-hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* Iconic Steam "-100% | FREE" Price Block */
.steam-price-block {
  display: inline-flex;
  align-items: stretch;
  border-radius: 2px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}

.steam-discount {
  background: #4c6b22;
  color: #beee11;
  padding: 5px 7px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.steam-price-free {
  background: #344654;
  color: #beee11;
  padding: 5px 9px;
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* Mid-Page Creator Callout Banner (Steam Discovery Queue style) */
.mid-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px 24px;
  margin-bottom: 32px;
  border-radius: 5px;
  background: linear-gradient(100deg, #1b3650 0%, #10253b 52%, #193c5c 100%);
  border: 1px solid rgba(102, 192, 244, 0.25);
  box-shadow: var(--shadow-md);
}

.mid-banner-copy h2 {
  margin: 4px 0 6px;
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
}

.mid-banner-copy p {
  margin: 0;
  font-size: 13.5px;
  color: #b7d2e6;
  max-width: 680px;
}

.btn-steam-blue {
  background: linear-gradient(180deg, #47bfff 0%, #1a44c2 100%);
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  font-weight: 700;
  border-radius: 3px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.btn-steam-blue:hover {
  background: linear-gradient(180deg, #66ccff 0%, #2659de 100%);
}

/* Steam Discovery Tabs Bar */
.steam-tabs {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin-bottom: 12px;
  border-bottom: 2px solid #2a475e;
  overflow-x: auto;
}

.steam-tab {
  border: none;
  background: transparent;
  color: #7ea6c4;
  font-size: 13.5px;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 3px 3px 0 0;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.14s ease, color 0.14s ease;
}

.steam-tab:hover {
  color: #ffffff;
  background: rgba(102, 192, 244, 0.1);
}

.steam-tab.active {
  background: #2a475e;
  color: #ffffff;
}

/* Browse by Category Visual Cards (image_2.png style) */
.category-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.category-tile {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  padding: 0;
  background: #14212e;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.category-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.15);
  transition: transform 0.3s ease;
}

.category-tile:hover img {
  transform: scale(1.06);
}

.category-tile-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px 8px;
}

.category-tile-label {
  background: rgba(255, 255, 255, 0.94);
  color: #101b27;
  font-size: 12.5px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 3px;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

/* ---------- Steam-Style Multi-Column Footer ---------- */
.site-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #171a21;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 34px 20px 30px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.footer-col h4 {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8f98a0;
}

.footer-col a {
  font-size: 13px;
  color: #c6d4df;
}

.footer-col a:hover {
  color: #66c0f4;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo-img {
  border-radius: 4px;
}

.footer-note {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: #8f98a0;
}

.footer-note-sub {
  margin: 0;
  font-size: 12px;
  color: #6b7680;
}

/* ---------- Language Switcher (Steam-Style 30 Languages + SVG Flags) ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lang-picker {
  position: relative;
  flex-shrink: 0;
}

.lang-picker-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-medium);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.lang-picker-btn:hover,
.lang-picker-btn:focus-visible,
.lang-picker.open .lang-picker-btn {
  border-color: var(--accent-blue);
  background: #232b36;
}

.lang-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.flag-svg {
  display: block;
  width: 21px;
  height: 14px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.lang-caret {
  color: var(--text-muted);
  transition: transform 0.15s ease;
}

.lang-picker.open .lang-caret {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 345px;
  max-width: min(345px, calc(100vw - 24px));
  max-height: min(74vh, 620px);
  overflow-y: auto;
  background: #2b2f38;
  border: 1px solid #3f4654;
  border-radius: 6px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.72);
  padding: 6px 0;
  z-index: 1200;
}

.lang-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border: none;
  background: transparent;
  color: #e4e8ee;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.lang-menu-item:hover,
.lang-menu-item:focus-visible {
  background: #3d4450;
  color: #ffffff;
  outline: none;
}

.lang-menu-item.active {
  background: rgba(102, 192, 244, 0.16);
  color: #66c0f4;
  font-weight: 700;
}

.lang-item-text {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}

.lang-item-sub {
  color: #b4bcc8;
  font-weight: 400;
}

.lang-menu-item.active .lang-item-sub {
  color: #9ad5f8;
}

.lang-beta-badge {
  display: inline-block;
  padding: 2px 7px;
  margin-left: 6px;
  border-radius: 3px;
  background: #f59e0b;
  color: #15181e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  vertical-align: middle;
}

/* ---------- Comparison Table & FAQ (AEO/GEO/AIO) ---------- */
.comparison-wrap {
  overflow-x: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.comparison-table th,
.comparison-table td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table thead th {
  background: var(--bg-elevated);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody th {
  font-weight: 600;
  color: var(--text-primary);
}

.comparison-table td.col-steam {
  color: var(--text-muted);
}

.comparison-table td.col-zteam {
  color: #beee11;
  font-weight: 700;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  transition: border-color 0.15s ease;
}

.faq-item[open] {
  border-color: var(--border-strong);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--accent-blue);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  margin: 10px 0 2px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.verify-notice {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: hsla(202, 72%, 52%, 0.14);
  border: 1px solid hsla(202, 72%, 58%, 0.32);
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.55;
}

.ssr-hydrated {
  opacity: 0.92;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-carousel,
  .detail-hero-grid,
  .detail-body-grid,
  .discovery-split,
  .publish-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .preview-panel {
    display: none;
  }

  .zero-fee-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .zero-fee-metrics {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 14px 20px;
  }

  .metric-item {
    text-align: left;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: relative;
  }

  .app-main {
    padding: 14px 12px 48px;
  }

  /* Compact 2-row top bar: Row 1 = Brand + Language, Row 2 = Auth + optional PWA install */
  .header-top-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 10px;
    padding: 8px 12px;
  }

  .header-utilities {
    display: contents;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    gap: 8px;
  }

  .brand-mark {
    width: 28px;
    height: 28px;
  }

  .brand-wordmark {
    font-size: 17px;
    letter-spacing: 0.08em;
  }

  .lang-picker {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    max-width: 100%;
  }

  .lang-picker-btn {
    padding: 5px 8px;
    font-size: 12px;
    gap: 6px;
    max-width: 165px;
  }

  .lang-current-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .lang-menu {
    position: fixed;
    left: 12px;
    right: 12px;
    width: auto;
    max-width: 420px;
    margin: 0 auto;
    max-height: calc(100dvh - 140px);
  }

  .auth-slot {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
  }

  .header-top-inner:has(#btn-install-pwa.hidden) .auth-slot {
    grid-column: 1 / -1;
  }

  #btn-install-pwa {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    padding: 5px 10px;
    font-size: 12px;
  }

  .auth-slot .btn {
    padding: 5px 11px;
    font-size: 12.5px;
  }

  .user-pill {
    padding: 4px 8px;
    font-size: 12px;
    max-width: 175px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Nav bar wraps cleanly so all 5 links (including green Publish CTA) are visible without clipping */
  .header-nav-inner {
    padding: 8px 12px;
    gap: 8px;
  }

  .main-nav {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    overflow-x: visible;
    gap: 6px;
  }

  .nav-link {
    padding: 6px 10px;
    font-size: 12.5px;
  }

  .nav-link-cta {
    margin-left: 0;
  }

  .header-search {
    width: 100%;
  }

  /* Promo Hero */
  .promo-hero-banner {
    min-height: auto;
    margin-bottom: 20px;
  }

  .promo-hero-scrim {
    padding: 18px 14px;
    gap: 14px;
  }

  .promo-hero-copy h1 {
    font-size: 20px;
    line-height: 1.3;
    text-wrap: balance;
  }

  .promo-hero-copy p {
    font-size: 13px;
  }

  .promo-hero-actions {
    width: 100%;
    gap: 12px 18px;
  }

  .promo-hero-actions .btn-lg {
    width: 100%;
    padding: 10px 16px;
    font-size: 14px;
  }

  /* Section & Detail Headers */
  .section-block {
    margin-bottom: 26px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .detail-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .detail-header h1 {
    font-size: 22px;
    line-height: 1.25;
  }

  /* Hero Carousel */
  .hero-info {
    padding: 14px;
  }

  .hero-title {
    font-size: 20px;
  }

  .hero-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .hero-footer > div:last-child {
    width: 100%;
    flex-wrap: wrap;
  }

  .hero-footer > div:last-child .btn {
    flex: 1 1 auto;
  }

  /* Mid Banner */
  .mid-banner {
    padding: 16px 14px;
    gap: 14px;
    margin-bottom: 24px;
  }

  .mid-banner-copy h2 {
    font-size: 17px;
  }

  .mid-banner .btn-steam-blue {
    width: 100%;
  }

  /* Filter Toolbar */
  .filter-bar {
    padding: 10px;
    gap: 10px;
  }

  .filter-selects {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .filter-select {
    width: 100%;
    min-width: 0;
    font-size: 12.5px;
    padding: 6px 8px;
  }

  .game-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .game-card-foot {
    flex-wrap: wrap;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Discovery Tabs & Full-Width Vertical Capsule Stack */
  .steam-tabs {
    flex-wrap: wrap;
    overflow-x: visible;
    gap: 4px;
  }

  .steam-tab {
    padding: 7px 11px;
    font-size: 12.5px;
  }

  .discovery-row {
    grid-template-columns: minmax(0, 1fr);
    padding: 0;
    overflow: hidden;
    gap: 0;
  }

  .discovery-thumb {
    width: 100%;
    border-radius: 0;
  }

  .discovery-meta {
    padding: 10px 12px 4px;
  }

  .discovery-right {
    padding: 4px 12px 12px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  /* Game Detail Panels, Builds & Reviews */
  .panel {
    padding: 14px;
    margin-bottom: 16px;
  }

  .build-item {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px;
  }

  .build-item > .btn {
    width: 100%;
  }

  .review-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .vote-toggle {
    flex-direction: column;
    gap: 8px;
  }

  /* Comparison Table & FAQ */
  .comparison-table {
    font-size: 12.5px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 10px 8px;
    line-height: 1.45;
  }

  /* Modals & Toasts */
  .modal-backdrop {
    padding: 12px;
  }

  .modal-card {
    padding: 40px 16px 18px;
  }

  .auth-tab {
    font-size: 12px;
    padding: 8px 6px;
  }

  .toast-container {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .form-row-2,
  .specs-grid,
  .footer-columns {
    grid-template-columns: minmax(0, 1fr);
  }
}

.file-picker-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex-wrap: wrap;
}

.dropzone .file-picker-row {
  justify-content: center;
}

.file-picker-btn {
  pointer-events: none;
}

.file-picker-name {
  font-size: 13px;
  color: var(--text-secondary);
  word-break: break-all;
}

.price-config-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: rgba(15, 22, 32, 0.45);
}

.price-mode-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.provider-badges-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.provider-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  transition: all 0.15s ease;
}

.provider-chip.active {
  color: #fff;
  background: rgba(102, 192, 244, 0.22);
  border-color: var(--accent-blue);
}

.steam-price-block.paid {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 24, 34, 0.92);
  border: 1px solid rgba(102, 192, 244, 0.32);
  border-radius: 3px;
  padding: 3px 8px;
}

.steam-store-provider {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--accent-blue);
  background: rgba(102, 192, 244, 0.14);
  padding: 1px 5px;
  border-radius: 2px;
  letter-spacing: 0.02em;
}

.steam-orig-currency {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.steam-price-paid {
  font-size: 13px;
  font-weight: 700;
  color: #e5f4ff;
  font-family: var(--font-mono);
}


