/* ==========================================================================
   游戏门户 Style System
   Design: Clean Light Gaming Portal with Refined Modern Accents
   ========================================================================== */

/* 1. CSS Variables & Light Theme Setup */
:root {
  --bg-dark: #f8fafc;           /* Light Canvas Background */
  --bg-card: #ffffff;           /* Crisp White Card */
  --bg-card-hover: #f1f5f9;     /* Subtle Light Gray Hover */
  --bg-elevated: #ffffff;
  --border-subtle: #e2e8f0;      /* Border Gray */
  --border-glow: #0284c7;        /* Active Accent Border */
  
  --primary: #0284c7;            /* Ocean / Sky Blue */
  --primary-hover: #0369a1;
  --primary-glow: rgba(2, 132, 199, 0.12);
  
  --accent: #7c3aed;             /* Refined Violet */
  --accent-hover: #6d28d9;
  --gold: #d97706;               /* Amber / Gold */
  --gold-glow: rgba(217, 119, 6, 0.15);
  --success: #059669;
  --danger: #dc2626;
  
  --text-primary: #0f172a;       /* Deep Charcoal Text */
  --text-secondary: #475569;     /* Slate Gray Text */
  --text-muted: #64748b;         /* Muted Gray Text */
  
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  
  --shadow-main: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 4px 20px rgba(2, 132, 199, 0.12);
  --transition-fast: all 0.2s ease;
  --transition-normal: all 0.3s ease;
}

/* 2. Global Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: #f8fafc;
  background-image: radial-gradient(at 0% 0%, rgba(2, 132, 199, 0.06) 0px, transparent 50%),
                    radial-gradient(at 100% 0%, rgba(124, 58, 237, 0.05) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--text-primary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

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

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

button {
  cursor: pointer;
}

/* 3. Utility Classes */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-cyan { color: var(--primary); }
.text-violet { color: var(--accent); }
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }

.bg-glass {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}

.glow-box {
  box-shadow: 0 4px 25px rgba(2, 132, 199, 0.12);
  border-color: var(--primary);
}

/* 4. Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 72px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: var(--transition-normal);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-primary);
}

.site-logo .logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 20px;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.25);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: rgba(2, 132, 199, 0.08);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -16px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-download-quick {
  background: var(--primary);
  color: #fff;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
  transition: var(--transition-fast);
}

.btn-download-quick:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35);
}

.btn-login-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 50px;
  color: var(--text-primary);
  font-size: 14px;
  transition: var(--transition-fast);
}

.btn-login-status:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(2, 132, 199, 0.05);
}

.mobile-nav-toggle {
  display: none;
  font-size: 24px;
  color: var(--text-primary);
  background: none;
  padding: 4px;
}

/* Mobile Drawer Nav */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  padding: 20px 24px;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.mobile-drawer.open {
  display: flex;
}

.mobile-drawer .nav-link {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
}

/* 5. Buttons & Badges */
.btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
  transition: var(--transition-normal);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.35);
}

.btn-outline {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-normal);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(2, 132, 199, 0.05);
  color: var(--primary);
}

.btn-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.25);
  transition: var(--transition-normal);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.35);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
}

.badge-cyan {
  background: rgba(2, 132, 199, 0.1);
  color: var(--primary);
  border: 1px solid rgba(2, 132, 199, 0.25);
}

.badge-gold {
  background: rgba(217, 119, 6, 0.1);
  color: var(--gold);
  border: 1px solid rgba(217, 119, 6, 0.25);
}

.badge-violet {
  background: rgba(124, 58, 237, 0.1);
  color: var(--accent);
  border: 1px solid rgba(124, 58, 237, 0.25);
}

/* 6. Section Titles */
.section-header {
  margin-bottom: 36px;
  text-align: center;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
}

/* 7. Footer */
.site-footer {
  margin-top: auto;
  background: #f1f5f9;
  border-top: 1px solid var(--border-subtle);
  padding: 36px 0 28px;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.anti-addiction-warning {
  padding: 12px 20px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  color: #991b1b;
  font-size: 13px;
  max-width: 900px;
}

/* 8. Modals System */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.modal-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  padding: 32px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  transform: scale(0.95);
  transition: transform 0.3s ease;
  color: var(--text-primary);
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: var(--transition-fast);
}

.modal-close:hover {
  background: #fee2e2;
  color: var(--danger);
}

.modal-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

/* Lightbox Modal Specific */
.lightbox-card {
  max-width: 1000px;
  padding: 16px;
  background: #ffffff;
}

.lightbox-img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

/* 9. Forms & Inputs */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 15px;
  transition: var(--transition-fast);
}

.form-input:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.form-select {
  width: 100%;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 15px;
  cursor: pointer;
}

.form-select option {
  background: #ffffff;
  color: var(--text-primary);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 88px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 280px;
  padding: 14px 20px;
  background: #ffffff;
  border: 1px solid var(--primary);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(120%);
  transition: transform 0.3s ease;
}

.toast.show {
  transform: translateX(0);
}

.toast-success { border-color: var(--success); }
.toast-danger { border-color: var(--danger); }

/* Responsive Rules */
@media (max-width: 992px) {
  .nav-menu { display: none; }
  .mobile-nav-toggle { display: block; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .btn-download-quick span { display: none; }
}

/* 12. Dynamic game data rendering -------------------------------------------------
   Data is injected by assets/js/game-site.js.  These helpers deliberately avoid
   depending on a particular game title or on template-local mock images. */
.game-page-main { flex: 1; padding: 48px 0 72px; }
.game-hero { padding: 76px 0; background: linear-gradient(120deg, #e0f2fe 0%, #f5f3ff 54%, #fef3c7 100%); border-bottom: 1px solid var(--border-subtle); }
.game-hero-grid, .game-detail-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: 34px; align-items: center; }
.game-hero-grid > *, .game-detail-grid > * { min-width: 0; }
.game-eyebrow { color: var(--primary); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.game-title { margin: 12px 0 14px; font-size: clamp(34px, 5vw, 58px); line-height: 1.16; letter-spacing: -.04em; }
.game-summary { color: var(--text-secondary); font-size: 17px; max-width: 720px; }
.game-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.game-meta span { padding: 6px 10px; border-radius: 999px; background: rgba(2,132,199,.1); color: var(--primary-hover); font-size: 13px; font-weight: 700; }
.game-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.game-cover, .game-card-cover { width: 100%; object-fit: cover; background: linear-gradient(135deg,#e2e8f0,#f8fafc); border: 1px solid var(--border-subtle); }
.game-cover { aspect-ratio: 16 / 10; border-radius: var(--radius-xl); box-shadow: var(--shadow-glow); }
.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.game-card { overflow: hidden; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--border-subtle); box-shadow: var(--shadow-main); transition: var(--transition-fast); }
.game-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.game-card-cover { aspect-ratio: 16 / 10; border: 0; border-radius: 0; }
.game-card-body { padding: 18px; }
.game-card-title { font-size: 18px; font-weight: 800; color: var(--text-primary); line-height: 1.35; }
.game-card-text { margin-top: 8px; color: var(--text-secondary); font-size: 14px; line-height: 1.7; }
.game-card-footer { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: 14px; color: var(--text-muted); font-size: 13px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 0 0 22px; }
.section-heading h1, .section-heading h2 { font-size: 28px; line-height: 1.25; }
.section-heading p { color: var(--text-secondary); margin-top: 6px; }
.game-empty, .game-loading, .game-error { padding: 44px 24px; text-align: center; border: 1px dashed var(--border-subtle); border-radius: var(--radius-lg); color: var(--text-secondary); background: rgba(255,255,255,.7); }
.game-error { border-color: rgba(220,38,38,.28); color: var(--danger); }
.game-detail-cover { aspect-ratio: 5 / 3; border-radius: var(--radius-xl); overflow: hidden; background: #e2e8f0; }
.game-detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.game-info-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin: 24px 0; }
.game-info-list div { border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 12px 14px; background: #fff; }
.game-info-list dt { color: var(--text-muted); font-size: 12px; }
.game-info-list dd { margin-top: 4px; font-weight: 700; word-break: break-word; }
.game-rich-text { color: var(--text-secondary); line-height: 1.9; word-break: break-word; }
.game-rich-text > * + * { margin-top: 14px; }
.game-rich-text h1, .game-rich-text h2, .game-rich-text h3, .game-rich-text h4 { color: var(--text-primary); line-height: 1.4; }
.game-rich-text ul, .game-rich-text ol { padding-left: 24px; }
.game-rich-text ul { list-style: disc; }
.game-rich-text ol { list-style: decimal; }
.game-rich-text li + li { margin-top: 6px; }
.game-rich-text a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.game-rich-text img { max-width: 100%; height: auto; margin: 18px auto; border-radius: var(--radius-md); }
.game-rich-text blockquote { padding: 12px 16px; border-left: 4px solid var(--primary); background: #f8fafc; }
.game-rich-text table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; }
.game-rich-text th, .game-rich-text td { min-width: 110px; padding: 10px 12px; border: 1px solid var(--border-subtle); text-align: left; }
.game-rich-text th { color: var(--text-primary); background: #f8fafc; }
.game-shot-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 14px; }
.game-shot-grid a { display: block; overflow: hidden; border-radius: var(--radius-md); border: 1px solid var(--border-subtle); background: #f1f5f9; }
.game-shot-grid img { width: 100%; aspect-ratio: 10 / 16; object-fit: cover; transition: transform .2s ease; }
.game-shot-grid a:hover img { transform: scale(1.04); }
.game-site-footer { margin-top: auto; background: #0f172a; color: #cbd5e1; padding: 28px 0; font-size: 13px; }
.game-site-footer .container { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; }
.game-site-footer a { color: #e0f2fe; }
.game-auth-shell { min-height: calc(100vh - 72px); display: grid; place-items: center; padding: 48px 0; }
.game-auth-card { width: min(100%, 480px); border-radius: var(--radius-xl); padding: 32px; background: #fff; border: 1px solid var(--border-subtle); box-shadow: var(--shadow-main); }
.game-form-field { display: grid; gap: 7px; margin-bottom: 16px; }
.game-form-field label { font-size: 14px; color: var(--text-secondary); font-weight: 700; }
.game-form-field input { border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); background: #fff; padding: 11px 12px; width: 100%; }
.game-form-field input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.game-auth-note { margin-top: 16px; font-size: 13px; color: var(--text-secondary); }
.game-register-hint { margin-top: 14px; padding: 10px 12px; border-radius: var(--radius-sm); background: rgba(2, 132, 199, .08); color: var(--text-secondary); line-height: 1.6; }
.game-register-hint.is-danger { background: rgba(220, 38, 38, .08); color: var(--danger); }
.game-inline-field { display: flex; align-items: stretch; gap: 8px; }
.game-inline-field input { min-width: 0; flex: 1; }
.game-inline-button { flex: 0 0 auto; min-width: 92px; padding: 0 12px; font-size: 13px; }
.game-field-hint { margin: 0; color: var(--text-muted); font-size: 12px; line-height: 1.5; }
.game-guardian-contact { margin-top: 24px; padding: 18px; border-radius: var(--radius-md); background: #f8fafc; border: 1px solid var(--border-subtle); }
.game-guardian-contact p { margin: 0 0 14px; color: var(--text-secondary); line-height: 1.75; }
#register-submit.is-disabled { opacity: .58; cursor: not-allowed; }
.game-simple-card { padding: 28px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--border-subtle); box-shadow: var(--shadow-main); }
.game-content-hero { padding: 52px 0; border-bottom: 1px solid var(--border-subtle); background: linear-gradient(120deg, #e0f2fe 0%, #f5f3ff 60%, #fff 100%); }
.game-content-hero h1 { margin: 10px 0; font-size: clamp(34px, 5vw, 52px); }
.game-content-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
.game-content-nav { position: sticky; top: 96px; padding: 18px; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-main); }
.game-content-nav strong { display: block; margin-bottom: 10px; }
.game-content-nav a { display: block; padding: 9px 10px; border-radius: var(--radius-sm); color: var(--text-secondary); }
.game-content-nav a:hover { color: var(--primary); background: var(--primary-glow); }
.game-content-main { display: grid; gap: 22px; }
.game-content-section { scroll-margin-top: 96px; padding: 28px; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-main); }
.game-content-section h2 { margin-bottom: 12px; font-size: 24px; }
.game-content-section h3 { margin: 20px 0 8px; font-size: 18px; }
.game-content-section p, .game-content-section li { color: var(--text-secondary); line-height: 1.85; }
.game-content-list { padding-left: 22px; list-style: decimal; }
.game-content-list li + li { margin-top: 8px; }
.game-content-list.is-disc { list-style: disc; }
.game-step-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 18px; counter-reset: game-step; }
.game-step-list li { padding: 18px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: #f8fafc; list-style: none; }
.game-step-list li::before { counter-increment: game-step; content: counter(game-step); display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 10px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; }
.game-notice { margin-top: 18px; padding: 16px 18px; border-left: 4px solid var(--gold); border-radius: var(--radius-sm); background: #fffbeb; color: #92400e; line-height: 1.8; }
.game-contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.game-contact-item { padding: 16px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: #f8fafc; }
.game-contact-item span { display: block; color: var(--text-muted); font-size: 12px; }
.game-contact-item strong { display: block; margin-top: 5px; color: var(--text-primary); word-break: break-word; }
.game-service-status { margin-top: 22px; padding: 20px; border: 1px solid rgba(2, 132, 199, .2); border-radius: var(--radius-md); background: rgba(2, 132, 199, .06); }
.game-list-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 24px; }
.game-list-toolbar input, .game-list-toolbar select { min-height: 40px; border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); background: #fff; padding: 0 12px; }
.game-list-toolbar input { min-width: 220px; flex: 1; }
.game-site-footer .footer-links { display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 900px) {
  .game-hero-grid, .game-detail-grid { grid-template-columns: 1fr; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-shot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .game-content-layout { grid-template-columns: 1fr; }
  .game-content-nav { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
  .game-content-nav strong { width: 100%; }
  .game-step-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  html, body, main, section { width: 100%; }
  .container { width: 100%; max-width: none; }
  .site-header { height: 64px; }
  .site-logo { flex: 0 0 auto; }
  .site-logo [data-site-name] { display: none; }
  .header-actions { flex: 0 0 auto; gap: 8px; }
  .btn-login-status, .btn-download-quick { padding: 7px 12px; white-space: nowrap; }
  .game-page-main { padding: 30px 0 48px; }
  .game-hero { padding: 44px 0; }
  .game-hero-grid, .game-detail-grid { display: block; width: 100%; }
  .game-hero-grid > *, .game-detail-grid > * { width: 100%; }
  .game-hero-grid > * + *, .game-detail-grid > * + * { margin-top: 28px; }
  .game-grid, .game-shot-grid, .game-info-list { grid-template-columns: 1fr; }
  .game-simple-card { width: 100%; padding: 22px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .game-actions > .btn-primary, .game-actions > .btn-outline { min-width: 0; }
  .game-site-footer .container { display: block; }
  .game-site-footer .footer-links { margin-top: 12px; }
  .game-content-hero { padding: 38px 0; }
  .game-content-section { padding: 22px; }
  .game-step-list, .game-contact-grid { grid-template-columns: 1fr; }
}
