/* ==========================================================================
   汉正游戏中心 · 游戏门户样式系统
   Design: Clean Light Gaming Portal — Warm Orange Edition
   ========================================================================== */

/* 1. CSS Variables & Light Theme Setup */
:root {
  --bg-page: #fff8f1;            /* Warm Light Canvas */
  --bg-card: #ffffff;            /* Crisp White Card */
  --bg-card-hover: #fff5ec;      /* Warm Tint Hover */
  --bg-elevated: #ffffff;
  --border-subtle: #f3e5d7;      /* Warm Border */
  --border-strong: #ead9c3;

  --primary: #ea580c;            /* Brand Orange */
  --primary-hover: #c2410c;
  --primary-glow: rgba(234, 88, 12, 0.12);

  --accent: #d97706;             /* Amber Accent */
  --accent-hover: #b45309;
  --gold-glow: rgba(217, 119, 6, 0.15);
  --success: #059669;
  --danger: #dc2626;

  --text-primary: #1c1917;       /* Deep Charcoal */
  --text-secondary: #57534e;     /* Warm Gray */
  --text-muted: #a8a29e;         /* Muted Gray */

  --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(120, 53, 15, 0.07);
  --shadow-glow: 0 4px 20px rgba(234, 88, 12, 0.14);
  --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-page);
  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: var(--bg-page);
  background-image: radial-gradient(at 0% 0%, rgba(234, 88, 12, 0.07) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(217, 119, 6, 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-orange { color: var(--primary); }
.text-gold { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }

.glow-box {
  box-shadow: 0 4px 25px rgba(234, 88, 12, 0.14);
  border-color: var(--primary);
}

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

.site-header.scrolled {
  background: rgba(255, 251, 247, 0.98);
  box-shadow: 0 4px 20px rgba(120, 53, 15, 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);
  white-space: nowrap;
}

.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(234, 88, 12, 0.28);
}

.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;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: var(--primary-glow);
}

.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: 12px; }

.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(234, 88, 12, 0.28);
  transition: var(--transition-fast);
}

.btn-download-quick:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.36);
}

.btn-login-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-card);
  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: var(--primary-glow);
}

.member-chip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 50px;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}

.member-chip .avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.member-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 132px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-main);
  padding: 6px;
  display: none;
  flex-direction: column;
}

.member-chip.open .member-dropdown { display: flex; }

.member-dropdown button,
.member-dropdown a {
  padding: 8px 12px;
  font-size: 14px;
  text-align: left;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  display: block;
}

.member-dropdown button:hover,
.member-dropdown a:hover {
  background: var(--bg-card-hover);
  color: var(--primary);
}

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

.mobile-drawer {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
  padding: 20px 24px;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
  box-shadow: 0 12px 24px rgba(120, 53, 15, 0.1);
}

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

.mobile-drawer a {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
}

.mobile-drawer a:hover, .mobile-drawer a.active {
  background: var(--primary-glow);
  color: var(--primary);
}

/* 5. Hero */
.game-page-main { flex: 1; }

.game-hero { padding: 64px 0 48px; }

.game-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.game-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}

.game-eyebrow::before {
  content: '';
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.hero-title {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.hero-title .grad {
  background: linear-gradient(120deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.game-summary {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 560px;
  text-wrap: pretty;
  margin-bottom: 28px;
}

.game-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--primary), #f97316);
  color: #fff;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.32);
  transition: var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.4);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--bg-card);
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition-fast);
}

.btn-outline:hover {
  background: var(--primary-glow);
  transform: translateY(-2px);
}

.game-simple-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-main);
  padding: 20px;
  display: flex;
  gap: 18px;
  align-items: stretch;
}

.game-simple-card .spot-cover {
  width: 132px;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: var(--bg-card-hover);
  flex-shrink: 0;
}

.spot-body { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.spot-body h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 4px 0 8px;
}

.spot-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }

.game-loading {
  padding: 32px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

/* 6. Section & Game Grid */
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1px;
}

.section-heading p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

.text-cyan { color: var(--primary); font-size: 14px; font-weight: 600; }
.text-cyan:hover { color: var(--primary-hover); }

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 24px;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-main);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  border-color: var(--primary);
}

.game-card .cover-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-card-hover);
}

.game-card .cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

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

.game-card .status-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50px;
}

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

.game-card h3 {
  font-size: 17px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }

.tag {
  padding: 2px 10px;
  font-size: 12px;
  color: var(--accent-hover);
  background: var(--gold-glow);
  border-radius: 50px;
  white-space: nowrap;
}

.tag.plain {
  color: var(--text-secondary);
  background: var(--bg-card-hover);
}

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

.empty-result {
  grid-column: 1 / -1;
  padding: 48px 20px;
  text-align: center;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
}

/* 7. List Toolbar */
.game-list-toolbar {
  display: flex;
  gap: 12px;
  margin: 20px 0 32px;
  flex-wrap: wrap;
}

.search-input {
  flex: 1;
  min-width: 220px;
  max-width: 480px;
  padding: 12px 18px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: 50px;
  font-size: 15px;
  transition: var(--transition-fast);
}

.search-input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-glow); }

/* 8. Game Detail */
.detail-hero {
  position: relative;
  padding: 48px 0 56px;
  overflow: hidden;
}

.detail-banner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  filter: saturate(0.9);
}

.detail-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 248, 241, 0.2) 0%, var(--bg-page) 100%);
}

.detail-hero .container { position: relative; z-index: 2; }

.detail-layout {
  display: flex;
  gap: 28px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.detail-cover {
  width: 200px;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  object-fit: cover;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-main);
  flex-shrink: 0;
}

.detail-info { flex: 1; min-width: 260px; padding-bottom: 4px; }

.detail-info h1 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 900;
  margin: 8px 0 12px;
}

.detail-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }

.detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
  color: var(--text-secondary);
}

.detail-stats b { color: var(--text-primary); font-weight: 700; }

.game-content-section { margin-bottom: 32px; }

.game-content-section h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.game-content-section h2::before {
  content: '';
  width: 6px;
  height: 22px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
}

.game-content-section h3 { font-size: 17px; font-weight: 700; margin: 16px 0 8px; }

.game-content-section p {
  color: var(--text-secondary);
  margin-bottom: 10px;
  text-wrap: pretty;
}

.game-content-section ul.game-dot-list { margin: 8px 0 12px; }

.game-dot-list li {
  position: relative;
  padding-left: 20px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.game-dot-list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

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

.screenshot-grid img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  transition: var(--transition-fast);
}

.screenshot-grid img:hover { transform: translateY(-3px); box-shadow: var(--shadow-glow); }

.screenshot-grid.landscape img { aspect-ratio: 16 / 9; }

/* 9. Content Pages (About / Guardian / Recharge) */
.game-content-hero { padding: 56px 0 8px; }

.game-content-hero h1 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 900; margin: 8px 0 12px; }

.game-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  padding-top: 32px;
  padding-bottom: 64px;
  align-items: start;
}

.game-content-main {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-main);
  padding: 32px 36px;
}

.game-content-aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 96px;
}

.aside-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-main);
  padding: 22px 24px;
}

.aside-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 12px; }

.aside-card .game-contact-item { padding: 8px 0; border-bottom: 1px dashed var(--border-subtle); }

.aside-card .game-contact-item:last-child { border-bottom: none; padding-bottom: 0; }

.game-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin: 16px 0;
}

.game-contact-item {
  background: var(--bg-card-hover);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.game-contact-item .label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
  letter-spacing: 1px;
}

.game-contact-item .value { font-size: 15px; font-weight: 600; color: var(--text-primary); word-break: break-all; }

.game-notice {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 14px;
  margin: 16px 0;
  text-wrap: pretty;
}

.game-service-status {
  background: var(--bg-card-hover);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  font-size: 14px;
  color: var(--text-secondary);
  margin: 14px 0;
}

.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 14px 18px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  background: var(--bg-card-hover);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.faq-item summary::after { content: '+'; color: var(--primary); font-size: 18px; font-weight: 800; }

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

.faq-item .faq-body { padding: 14px 18px; color: var(--text-secondary); font-size: 14px; text-wrap: pretty; }

.step-list { counter-reset: step; margin: 12px 0; }

.step-list li {
  counter-increment: step;
  position: relative;
  padding: 12px 16px 12px 52px;
  background: var(--bg-card-hover);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  color: var(--text-secondary);
}

.step-list li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 10. Footer */
.site-footer {
  margin-top: 64px;
  background: #23160c;
  color: #d6c8bb;
  padding: 48px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 800; color: #fff; }

.footer-brand .logo-icon {
  width: 36px;
  height: 36px;
  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: 18px;
}

.footer-col h4 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 14px; }

.footer-col li { margin-bottom: 8px; font-size: 14px; }

.footer-col a:hover { color: var(--primary); }

.footer-bottom {
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: #8a7a6c;
  line-height: 1.8;
}

.footer-bottom a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom a:hover { color: var(--primary); }

/* 11. Auth Modal */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 23, 0.55);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-mask.open { display: flex; }

.auth-modal {
  width: 100%;
  max-width: 400px;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 64px rgba(28, 25, 23, 0.3);
  padding: 32px 28px;
  position: relative;
  animation: modal-in 0.24s ease;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.auth-modal .modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-card-hover);
  color: var(--text-secondary);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-modal .modal-close:hover { color: var(--danger); }

.auth-modal h2 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }

.auth-modal .auth-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 22px; }

.field { margin-bottom: 16px; }

.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }

.field .control { display: flex; gap: 10px; }

.field input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-card-hover);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 15px;
  transition: var(--transition-fast);
}

.field input:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px var(--primary-glow); }

.btn-send-code {
  flex-shrink: 0;
  padding: 12px 16px;
  background: var(--primary-glow);
  color: var(--primary);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  min-width: 108px;
}

.btn-send-code:hover { background: rgba(234, 88, 12, 0.2); }

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

.field-error { color: var(--danger); font-size: 13px; margin-top: 6px; display: none; }

.field-error.show { display: block; }

.auth-submit {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--primary), #f97316);
  color: #fff;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.3);
  transition: var(--transition-fast);
}

.auth-submit:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(234, 88, 12, 0.4); }

.auth-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.auth-tip { font-size: 12px; color: var(--text-muted); text-align: center; margin-top: 14px; line-height: 1.7; }

/* 12. Toast */
.toast-wrap {
  position: fixed;
  top: 24px;
  left: 50%;
  z-index: 3000;
  transform: translate(-50%, -12px);
  opacity: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #14532d;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  font-size: 14px;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast-wrap.error { background: #fef2f2; border-color: #fca5a5; color: #7f1d1d; }

.toast-wrap.is-visible { transform: translate(-50%, 0); opacity: 1; }

.toast-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toast-wrap.error .toast-icon { background: var(--danger); }

/* 13. Responsive */
@media (max-width: 960px) {
  .game-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .game-content-layout { grid-template-columns: 1fr; }
  .game-content-aside { position: static; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .mobile-nav-toggle { display: block; }
  .header-inner .btn-download-quick { display: none; }
  .game-hero { padding: 40px 0 32px; }
  .game-simple-card { flex-direction: column; }
  .game-simple-card .spot-cover { width: 100%; aspect-ratio: 16 / 9; }
  .detail-layout { align-items: stretch; flex-direction: column; }
  .detail-cover { width: 160px; }
  .game-content-main { padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
