@import url('https://fonts.googleapis.com/css2?family=Motiva+Sans:wght@300;400;700;900&family=Roboto:wght@300;400;500;700;900&display=swap');

:root {
  --steam-bg-dark: #171a21;
  --steam-bg-main: #1b2838;
  --steam-bg-light: #2a475e;
  --steam-bg-card: rgba(22, 32, 45, 0.95);
  --steam-bg-card-hover: #1e354b;
  
  --steam-blue-light: #66c0f4;
  --steam-blue-accent: #1999ff;
  --steam-blue-dark: #000f18;
  
  --steam-green-btn: #5c7e10;
  --steam-green-gradient: linear-gradient(90deg, #75b022 0%, #588a1b 100%);
  --steam-green-hover: linear-gradient(90deg, #8ed629 0%, #6ba821 100%);
  
  --steam-text-bright: #ffffff;
  --steam-text-main: #c6d4df;
  --steam-text-muted: #8f98a0;
  --steam-text-highlight: #66c0f4;

  --steam-tag-bg: rgba(103, 193, 245, 0.15);
  --steam-tag-border: rgba(103, 193, 245, 0.3);

  --font-steam: 'Motiva Sans', 'Roboto', sans-serif;
  --shadow-steam: 0 0 25px rgba(0, 0, 0, 0.75);
  --radius-steam: 4px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--steam-bg-dark);
  background-image: 
    radial-gradient(circle at 50% 0%, #1c2d42 0%, #171a21 65%, #0a0e13 100%);
  background-attachment: fixed;
  color: var(--steam-text-main);
  font-family: var(--font-steam);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: var(--steam-blue-light);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #fff;
}

/* ==========================================================================
   STEAM TOP GLOBAL HEADER
   ========================================================================== */
.steam-global-header {
  background: #171a21;
  border-bottom: 1px solid #10141a;
  height: 80px;
  position: relative;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.steam-header-inner {
  max-width: 1420px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.steam-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.steam-logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #1999ff 0%, #171a21 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 0 15px rgba(25, 153, 255, 0.4);
}

.steam-brand-text h1 {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: #fff;
  text-transform: uppercase;
  line-height: 1;
}

.steam-brand-text span {
  font-size: 0.68rem;
  color: var(--steam-blue-light);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
}

/* Navigation Links */
.steam-nav-menu {
  display: flex;
  gap: 22px;
  align-items: center;
}

.steam-nav-link {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #b8b6b4;
  letter-spacing: 0.5px;
  position: relative;
  padding: 6px 0;
}

.steam-nav-link:hover, .steam-nav-link.active {
  color: #fff;
}

.steam-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--steam-blue-light);
  box-shadow: 0 0 8px var(--steam-blue-light);
}

/* Header Right: Install Button & User */
.steam-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-steam-install {
  background: var(--steam-green-gradient);
  color: #fff;
  border: none;
  border-radius: var(--radius-steam);
  padding: 7px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(117, 176, 34, 0.4);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-steam-install:hover {
  background: var(--steam-green-hover);
  box-shadow: 0 0 15px rgba(142, 214, 41, 0.6);
  transform: translateY(-1px);
}

/* Logged-in User Badge in Header */
.steam-user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.4);
  padding: 5px 12px;
  border-radius: 4px;
  border: 1px solid #2a475e;
  cursor: pointer;
  transition: all 0.2s;
}

.steam-user-badge:hover {
  border-color: var(--steam-blue-light);
  background: rgba(42, 71, 94, 0.4);
}

.steam-user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 3px;
  background: #2a475e;
  border: 1.5px solid #66c0f4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.steam-user-info {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.steam-username {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
}

.steam-user-level {
  font-size: 0.65rem;
  color: var(--steam-blue-light);
}

.btn-switch-account {
  background: #213547;
  border: 1px solid #3d5870;
  color: #c6d4df;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-switch-account:hover {
  background: var(--steam-blue-light);
  color: #111;
}

.btn-admin-studio {
  background: linear-gradient(90deg, #9b59b6, #8e44ad);
  border: 1px solid #bb70dc;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 10px rgba(155, 89, 182, 0.4);
}

/* ==========================================================================
   STORE SUB-NAV & SEARCH BAR
   ========================================================================== */
.steam-store-subnav {
  background: linear-gradient(90deg, rgba(31, 53, 76, 0.95) 0%, rgba(20, 36, 52, 0.95) 100%);
  border-bottom: 1px solid #2a475e;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.steam-subnav-inner {
  max-width: 1420px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px;
  gap: 16px;
}

.subnav-links {
  display: flex;
  gap: 16px;
  font-size: 0.82rem;
  font-weight: 700;
}

.subnav-links a {
  color: #c6d4df;
  padding: 4px 8px;
  border-radius: 3px;
}

.subnav-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.steam-search-box {
  display: flex;
  align-items: center;
  background: #316282;
  border-radius: 3px;
  padding: 4px 10px;
  width: 300px;
  border: 1px solid #2a475e;
}

.steam-search-box input {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.85rem;
  width: 100%;
  outline: none;
  font-family: inherit;
}

.steam-search-box input::placeholder {
  color: #8da4b8;
  font-style: italic;
}

.search-icon {
  color: #8da4b8;
  font-size: 0.9rem;
}

/* ==========================================================================
   MAIN STEAM CONTAINER
   ========================================================================== */
.steam-container {
  max-width: 1420px;
  margin: 20px auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.section-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   HERO: FEATURED & RECOMMENDED CAROUSEL
   ========================================================================== */
.featured-carousel-container {
  background: #0b1015;
  box-shadow: var(--shadow-steam);
  border-radius: var(--radius-steam);
  display: flex;
  min-height: 360px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(102, 192, 244, 0.2);
}

.carousel-main-display {
  flex: 2;
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: all 0.4s ease;
}

.carousel-overlay-shadow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 16, 21, 0.1) 0%, rgba(11, 16, 21, 0.92) 100%);
  pointer-events: none;
}

.carousel-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.carousel-category-tag {
  background: var(--steam-blue-light);
  color: #111;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 2px;
  align-self: flex-start;
  text-transform: uppercase;
}

.carousel-title {
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
}

.carousel-desc {
  font-size: 0.9rem;
  color: #c6d4df;
  max-width: 700px;
  line-height: 1.4;
}

.carousel-sidebar {
  flex: 1;
  background: #101822;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: 1px solid #1e2e3e;
}

.sidebar-details h3 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 8px;
}

.sidebar-features {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0;
}

.feature-item {
  font-size: 0.78rem;
  color: #8f98a0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.feature-item span {
  color: var(--steam-blue-light);
}

.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}

.steam-tag {
  background: var(--steam-tag-bg);
  border: 1px solid var(--steam-tag-border);
  color: var(--steam-blue-light);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 2px;
}

.sidebar-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid #1c2c3c;
}

.price-tag {
  background: #000;
  color: #a4d007;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 2px;
}

.btn-steam-primary {
  background: linear-gradient(90deg, #2a475e 0%, #1e354b 100%);
  border: 1px solid var(--steam-blue-light);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-steam-primary:hover {
  background: var(--steam-blue-light);
  color: #111;
  box-shadow: 0 0 10px var(--steam-blue-light);
}

.carousel-indicators {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  justify-content: center;
}

.indicator-dot {
  width: 16px;
  height: 7px;
  background: #2a475e;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s;
}

.indicator-dot.active {
  background: var(--steam-blue-light);
  width: 28px;
}

/* ==========================================================================
   CATEGORY TABS & PROJECTS GRID
   ========================================================================== */
.steam-category-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid #2a475e;
  padding-bottom: 8px;
  flex-wrap: wrap;
}

.cat-tab-btn {
  background: rgba(42, 71, 94, 0.4);
  border: 1px solid transparent;
  color: #c6d4df;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.cat-tab-btn:hover {
  background: #2a475e;
  color: #fff;
}

.cat-tab-btn.active {
  background: var(--steam-blue-light);
  color: #111;
  font-weight: 900;
  box-shadow: 0 0 12px rgba(102, 192, 244, 0.4);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.steam-product-card {
  background: var(--steam-bg-card);
  border: 1px solid #233748;
  border-radius: var(--radius-steam);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.steam-product-card:hover {
  transform: translateY(-4px);
  border-color: var(--steam-blue-light);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7), 0 0 12px rgba(102, 192, 244, 0.3);
  background: var(--steam-bg-card-hover);
}

.card-banner {
  height: 130px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  border-bottom: 1px solid #1a2a38;
}

.card-category-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 2px;
}

.card-body {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.card-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.card-short-desc {
  font-size: 0.75rem;
  color: #8f98a0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid #1e3040;
}

.platform-icons {
  display: flex;
  gap: 6px;
  font-size: 0.75rem;
  color: #8f98a0;
}

.review-badge {
  font-size: 0.68rem;
  color: #66c0f4;
  font-weight: 700;
}

/* ==========================================================================
   2-COLUMN LOWER SECTION
   ========================================================================== */
.steam-community-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 20px;
  align-items: start;
}

.left-community-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.steam-profile-box {
  background: linear-gradient(135deg, #1b2838 0%, #101822 100%);
  border: 1px solid #2a475e;
  border-radius: var(--radius-steam);
  padding: 20px;
  display: flex;
  gap: 20px;
  box-shadow: var(--shadow-steam);
}

.profile-large-avatar {
  width: 80px;
  height: 80px;
  min-width: 80px;
  border: 2px solid var(--steam-blue-light);
  border-radius: 4px;
  background: #171a21;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  box-shadow: 0 0 15px rgba(102, 192, 244, 0.4);
}

.profile-info h2 {
  font-size: 1.3rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.level-badge {
  border: 2px solid #9b59b6;
  border-radius: 16px;
  min-width: 30px;
  height: 30px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  background: #171a21;
  box-sizing: border-box;
}

.level-badge.level-max {
  border: 2px solid #f1c40f;
  background: linear-gradient(135deg, #3d1c5a, #171a21);
  color: #f1c40f;
  box-shadow: 0 0 10px rgba(241, 196, 15, 0.6), inset 0 0 6px rgba(155, 89, 182, 0.7);
  font-weight: 900;
  letter-spacing: 0.5px;
}

.profile-bio {
  font-size: 0.82rem;
  color: #8f98a0;
  line-height: 1.4;
  margin: 6px 0;
}

.profile-achievements {
  display: flex;
  gap: 8px;
}

.achievement-icon {
  width: 32px;
  height: 32px;
  background: #171a21;
  border: 1px solid #2a475e;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.achievement-icon:hover {
  border-color: var(--steam-blue-light);
  transform: scale(1.1);
}

.player-cloud-box {
  background: #131c26;
  border: 1.5px solid #2a475e;
  border-radius: var(--radius-steam);
  padding: 20px;
  box-shadow: var(--shadow-steam);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cloud-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #203345;
  padding-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.player-live-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.player-live-title h3 {
  font-size: 1.15rem;
  color: #fff;
}

.cloud-sync-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #2ecc71;
  font-weight: 700;
  background: rgba(46, 204, 113, 0.15);
  border: 1px solid rgba(46, 204, 113, 0.3);
  padding: 4px 10px;
  border-radius: 12px;
}

.xp-tracker-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.xp-bar-bg {
  width: 100%;
  height: 8px;
  background: #0d141b;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #25394d;
}

.xp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #1999ff, #66c0f4);
  box-shadow: 0 0 8px #66c0f4;
  transition: width 0.4s ease;
}

.stats-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.game-stat-card {
  background: #172433;
  border: 1px solid #2b4259;
  border-radius: 4px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.2s;
}

.game-stat-card:hover {
  border-color: var(--steam-blue-light);
  background: #1b2c3f;
}

.stat-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
}

.stat-metric-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #8f98a0;
}

.stat-metric-row b {
  color: #c6d4df;
}

.software-simulator-panel {
  background: #0e1620;
  border: 1px dashed #35506a;
  border-radius: 4px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-simulate-sync {
  background: linear-gradient(90deg, #1999ff 0%, #1066aa 100%);
  border: 1px solid #66c0f4;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 10px rgba(25, 153, 255, 0.4);
  transition: all 0.2s;
}

.btn-simulate-sync:hover {
  filter: brightness(1.2);
  transform: scale(1.02);
}

.right-community-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.leaderboard-box {
  background: #131c26;
  border: 1px solid #2a475e;
  border-radius: var(--radius-steam);
  padding: 16px;
  box-shadow: var(--shadow-steam);
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  margin-top: 8px;
}

.leaderboard-table th {
  text-align: left;
  color: var(--steam-blue-light);
  padding: 6px;
  border-bottom: 1px solid #2a475e;
}

.leaderboard-table td {
  padding: 7px 6px;
  border-bottom: 1px solid #1a2838;
}

.leaderboard-table tr.active-user-row {
  background: rgba(102, 192, 244, 0.15);
  font-weight: 700;
  color: #fff;
}

.steam-contact-box {
  background: #131c26;
  border: 1px solid #2a475e;
  border-radius: var(--radius-steam);
  padding: 16px;
  box-shadow: var(--shadow-steam);
}

.steam-form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.steam-form-group label {
  font-size: 0.75rem;
  color: #8f98a0;
  font-weight: 700;
}

.steam-form-group input, .steam-form-group select, .steam-form-group textarea {
  width: 100%;
  background: #0d141c;
  border: 1px solid #253b50;
  color: #fff;
  padding: 8px 10px;
  border-radius: 3px;
  outline: none;
  font-family: inherit;
  font-size: 0.82rem;
}

.steam-form-group input:focus, .steam-form-group select:focus, .steam-form-group textarea:focus {
  border-color: var(--steam-blue-light);
}

/* ==========================================================================
   INTERACTIVE WEBSITE SIMULATOR VIEWPORT
   ========================================================================== */
.web-simulator-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 16, 0.98);
  backdrop-filter: blur(10px);
  z-index: 3000;
  display: none;
  flex-direction: column;
}

.web-simulator-overlay.active {
  display: flex;
}

.simulator-top-bar {
  background: #171a21;
  border-bottom: 2px solid #2a475e;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.btn-simulator-back {
  background: linear-gradient(90deg, #c0392b, #e74c3c);
  border: 1px solid #ff7675;
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 6px 16px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 10px rgba(231, 76, 60, 0.4);
}

.btn-simulator-back:hover {
  filter: brightness(1.2);
}

.simulator-url-pill {
  flex: 1;
  max-width: 600px;
  background: #0b1218;
  border: 1px solid #2a475e;
  border-radius: 20px;
  padding: 5px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #66c0f4;
}

.simulator-device-controls {
  display: flex;
  gap: 6px;
}

.device-btn {
  background: #213547;
  border: 1px solid #3d5870;
  color: #c6d4df;
  font-size: 0.75rem;
  padding: 5px 10px;
  border-radius: 3px;
  cursor: pointer;
}

.device-btn.active {
  background: var(--steam-blue-light);
  color: #111;
  font-weight: 800;
}

.simulator-frame-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #080d12;
  padding: 10px;
  overflow: hidden;
}

#simulatorIframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
  transition: width 0.3s ease;
}

/* ==========================================================================
   GAME PAGE DETAILS, LEADERBOARD & COMMENTS
   ========================================================================== */
.game-leaderboard-box {
  background: #111a24;
  border: 1px solid #23374d;
  border-radius: 4px;
  padding: 12px;
  margin-top: 10px;
}

.game-comments-box {
  margin-top: 16px;
  border-top: 1px solid #23374d;
  padding-top: 12px;
}

.comments-feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
  margin-top: 8px;
}

.comment-item {
  background: #111a24;
  border: 1px solid #203345;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 0.78rem;
}

.comment-author-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3px;
  font-weight: 700;
  color: var(--steam-blue-light);
}

/* 2FA PIN Input Box */
.twofa-pin-container {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 12px 0;
}

.twofa-pin-input {
  width: 44px;
  height: 48px;
  background: #0e1620;
  border: 1.5px solid var(--steam-blue-light);
  border-radius: 4px;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 900;
  text-align: center;
  outline: none;
}

/* Modal Styling */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.active {
  display: flex;
}

.steam-modal {
  background: #1b2838;
  border: 1px solid var(--steam-blue-light);
  border-radius: var(--radius-steam);
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.9), 0 0 15px rgba(102, 192, 244, 0.4);
  display: flex;
  flex-direction: column;
  position: relative;
  animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  background: #171a21;
  border-bottom: 1px solid #2a475e;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 1.15rem;
  color: #fff;
  font-weight: 700;
}

.modal-close-btn {
  background: none;
  border: none;
  color: #8f98a0;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close-btn:hover {
  color: #fff;
}

.modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.steam-game-purchase-box {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 100%);
  border: 1px solid #2a475e;
  border-radius: 3px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.purchase-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.btn-play-game {
  background: var(--steam-green-gradient);
  color: #fff;
  border: none;
  padding: 8px 18px;
  font-weight: 800;
  font-size: 0.85rem;
  border-radius: 2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 10px rgba(117, 176, 34, 0.4);
}

.btn-play-game:hover {
  background: var(--steam-green-hover);
}

.quick-accounts-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.quick-acc-chip {
  background: #14202c;
  border: 1px solid #2a475e;
  color: #c6d4df;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.quick-acc-chip:hover {
  border-color: var(--steam-blue-light);
  background: #1b2e40;
  color: #fff;
}

.quick-acc-chip.admin-chip {
  border-color: #9b59b6;
  background: rgba(155, 89, 182, 0.2);
  color: #e0b0ff;
}

.installer-box {
  background: #111a24;
  border: 1px solid #23374d;
  border-radius: 4px;
  padding: 16px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.installer-icon {
  font-size: 3rem;
}

.installer-info h4 {
  font-size: 1.1rem;
  color: #fff;
}

.installer-meta {
  font-size: 0.8rem;
  color: #8f98a0;
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.steam-footer {
  background: #171a21;
  border-top: 1px solid #10141a;
  padding: 24px 20px;
  margin-top: 40px;
  font-size: 0.75rem;
  color: #8f98a0;
  text-align: center;
}

.footer-inner {
  max-width: 1420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

@media (max-width: 980px) {
  .steam-community-grid {
    grid-template-columns: 1fr;
  }
  .featured-carousel-container {
    flex-direction: column;
  }
  .carousel-sidebar {
    border-left: none;
    border-top: 1px solid #1e2e3e;
  }
}
