/* === Tactical Terminal Design === */
*,*::before,*::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Background layers */
  --bg-base: #0c0f17;
  --bg-surface: #131824;
  --bg-elevated: #1a2030;
  --bg-input: #0e121c;
  /* Text */
  --text-primary: #e8ecf4;
  --text-secondary: #8b95a8;
  --text-muted: #5a6270;
  /* Terminal accent */
  --accent: #00e5ff;
  --accent-glow: rgba(0,229,255,0.12);
  --accent-dim: rgba(0,229,255,0.06);
  /* Semantic */
  --success: #00e676;
  --success-bg: rgba(0,230,118,0.08);
  --warning: #ffab00;
  --warning-bg: rgba(255,171,0,0.08);
  --info: #448aff;
  --info-bg: rgba(68,138,255,0.08);
  --danger: #ff5252;
  /* Borders */
  --border: rgba(255,255,255,0.05);
  --border-hover: rgba(255,255,255,0.1);
  /* Radius */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  /* Shadows */
  --shadow: 0 2px 16px rgba(0,0,0,0.4);
  --shadow-hover: 0 4px 32px rgba(0,0,0,0.5);
  /* Fonts */
  --font-display: 'Rajdhani', 'Noto Sans SC', sans-serif;
  --font-body: 'Noto Sans SC', -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Atmospheric scanlines + glow */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 1000px 700px at 15% -5%, rgba(0,229,255,0.04), transparent),
    radial-gradient(ellipse 800px 600px at 85% 5%, rgba(100,80,255,0.03), transparent);
  pointer-events: none;
}
body::after {
  content: '';
  position: fixed; inset: 0; z-index: -1;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px
  );
  pointer-events: none;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: #66f0ff; }

/* === Navbar === */
.navbar {
  position: sticky; top: 0; z-index: 200;
  background: rgba(12,15,23,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 0;
}
.nav-container {
  max-width: 1000px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.5rem;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 700;
}
.nav-logo-icon { color: var(--accent); }
.nav-logo:hover { color: var(--accent); text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 0.3rem; }
.nav-links a {
  color: var(--text-secondary);
  font-size: 0.85rem; font-weight: 500;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text-primary);
  background: var(--bg-elevated);
  text-decoration: none;
}
.lang-switch {
  border: 1px solid var(--border-hover) !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  color: var(--accent) !important;
}
.lang-switch:hover { border-color: var(--accent) !important; background: var(--accent-dim) !important; }

/* === Container === */
.container { max-width: 1000px; margin: 0 auto; padding: 2.5rem 1.5rem; }

/* === Hero === */
.hero {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--accent-dim);
  border: 1px solid rgba(0,229,255,0.2);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 1.2rem;
  animation: fadeInDown 0.5s ease;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--success);
  animation: pulse-dot 2s ease infinite;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
  color: #fff;
  text-shadow: 0 0 40px rgba(0,229,255,0.15);
  animation: fadeInUp 0.6s ease;
}
.hero-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 1.8rem;
  animation: fadeInUp 0.7s ease;
}
.hero-stats {
  display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap;
  animation: fadeInUp 0.8s ease;
}
.hero-stat {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.8rem 1.4rem;
  min-width: 100px;
  transition: all 0.2s;
}
.hero-stat:hover { transform: translateY(-2px); border-color: var(--border-hover); }
.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 700;
  color: var(--accent);
}
.hero-stat span { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* === Hero Search === */
.hero-search {
  max-width: 520px; margin: 1.5rem auto 0;
  position: relative;
  animation: fadeInUp 0.9s ease;
}
.hero-search input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.8rem 1rem 0.8rem 2.8rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: var(--font-body);
  transition: all 0.2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%2300e5ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 1rem center;
}
.hero-search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.hero-search input::placeholder { color: var(--text-muted); }
.search-results {
  position: absolute; top: calc(100% + 0.5rem);
  left: 0; right: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  max-height: 400px;
  overflow-y: auto;
  z-index: 100;
  display: none;
}
.search-results.show { display: block; }
.search-result-item {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.8rem 1.2rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-primary);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--bg-surface); text-decoration: none; }
.search-result-game {
  font-size: 0.72rem; font-weight: 600;
  color: var(--card-color, var(--accent));
  white-space: nowrap;
}
.search-result-code {
  font-family: var(--font-mono);
  font-size: 0.88rem; font-weight: 600;
  color: var(--accent);
}
.search-result-reward {
  font-size: 0.75rem; color: var(--text-muted);
  margin-left: auto;
  max-width: 150px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.search-no-result {
  padding: 1.5rem; text-align: center;
  color: var(--text-muted); font-size: 0.85rem;
}

/* === Section Title === */
.section-title {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 700;
  margin-bottom: 1.2rem;
  display: flex; align-items: center; gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* === Section Divider === */
.section-divider {
  display: flex; align-items: center; gap: 1rem;
  margin: 2.5rem 0 1.5rem;
}
.section-divider::before, .section-divider::after {
  content: '';
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
}
.section-divider span {
  font-family: var(--font-display);
  font-size: 0.8rem; font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.12em;
}

/* === Latest Codes === */
.latest-section { margin-bottom: 2.5rem; }
.latest-section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem;
}
.latest-section-title {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 700;
  display: flex; align-items: center; gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.latest-section-title .pulse-icon {
  width: 7px; height: 7px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--success);
  animation: pulse-dot 2s ease infinite;
}
.latest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.7rem;
}
.latest-code-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  overflow: hidden;
}
.latest-code-card::before {
  content: '';
  position: absolute; top: 0; left: 0; bottom: 0; width: 3px;
  background: var(--card-color, var(--accent));
}
.latest-code-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow);
}
.latest-code-game {
  font-size: 0.7rem; font-weight: 600;
  color: var(--card-color, var(--accent));
  margin-bottom: 0.4rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.latest-code-value {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 0.3rem;
}
.latest-code-text {
  font-family: var(--font-mono);
  font-size: 0.95rem; font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.03em;
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.latest-code-copy {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.7rem; font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.latest-code-copy:hover {
  background: var(--accent);
  color: var(--bg-base);
  border-color: var(--accent);
}
.latest-code-copy.copied {
  background: var(--success);
  color: var(--bg-base);
  border-color: var(--success);
}
.latest-code-reward {
  font-size: 0.75rem; color: var(--text-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* === Games Grid === */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.8rem;
  margin-bottom: 3rem;
}

/* === Game Card === */
.game-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  display: block;
  color: var(--text-primary);
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  overflow: hidden;
}
.game-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--card-color, var(--accent));
  opacity: 0.5;
  transition: opacity 0.25s;
}
.game-card::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 200px 100px at 50% 0%, var(--card-color, var(--accent)), transparent);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.game-card:hover {
  transform: translateY(-2px);
  border-color: var(--card-color, var(--accent));
  box-shadow: 0 4px 24px rgba(0,0,0,0.3), 0 0 0 1px var(--card-color, var(--accent));
  text-decoration: none;
}
.game-card:hover::before { opacity: 1; }
.game-card:hover::after { opacity: 0.05; }
.game-card-header {
  display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.7rem;
}
.game-card-icon { font-size: 1.8rem; line-height: 1; }
img.game-card-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.game-card-icon-fallback {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.game-card-info { flex: 1; min-width: 0; }
.game-card-name {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  letter-spacing: 0.02em;
}
.game-card-dev { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.game-card-count {
  background: var(--bg-elevated);
  color: var(--card-color, var(--accent));
  font-family: var(--font-display);
  font-size: 0.8rem; font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  min-width: 28px; text-align: center;
  border: 1px solid var(--border);
}
.game-card-count.zero { color: var(--text-muted); }
.game-card-latest {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.7rem;
  margin-bottom: 0.7rem;
}
.latest-row { display: flex; align-items: center; gap: 0.4rem; }
.latest-label {
  font-size: 0.6rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--warning);
  background: var(--warning-bg);
  padding: 2px 6px; border-radius: 3px;
  white-space: nowrap;
}
.latest-code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.02em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.latest-reward {
  font-size: 0.72rem; color: var(--text-muted);
  margin-top: 0.25rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.game-card-footer {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.78rem;
}
.game-card-redeem {
  color: var(--accent);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}
.game-card-redeem:hover { text-decoration: underline; }
.game-card-redeem-note { color: var(--text-muted); font-size: 0.68rem; }
.game-card-arrow { color: var(--text-muted); transition: all 0.2s; }
.game-card:hover .game-card-arrow { color: var(--card-color, var(--accent)); transform: translateX(3px); }
.hot-badge {
  position: absolute; top: 0.6rem; right: 0.6rem;
  background: linear-gradient(135deg, #ff5252, #ff1744);
  color: #fff;
  font-size: 0.55rem; font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
  text-transform: uppercase; letter-spacing: 0.08em;
  box-shadow: 0 2px 8px rgba(255,23,68,0.3);
  animation: hot-pulse 2s ease infinite;
}

/* === Code Section === */
.code-section { margin-bottom: 2rem; }
.code-section-title {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 700;
  margin-bottom: 0.3rem;
  display: flex; align-items: center; gap: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.code-section-desc { color: var(--text-muted); font-size: 0.78rem; margin-bottom: 0.8rem; }

/* === Code Card === */
.code-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
  margin-bottom: 0.6rem;
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
}
.code-card:hover { border-color: var(--border-hover); transform: translateX(2px); }
.code-card.is-new {
  border-left: 3px solid var(--info);
  background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(68,138,255,0.03) 100%);
}
.code-card-top {
  display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.5rem;
}
.code-badge {
  font-size: 0.6rem; font-weight: 700;
  padding: 2px 8px; border-radius: 3px;
  text-transform: uppercase; letter-spacing: 0.05em;
  white-space: nowrap;
}
.code-badge.permanent { background: var(--success-bg); color: var(--success); }
.code-badge.limited { background: var(--warning-bg); color: var(--warning); }
.code-badge.new {
  background: var(--info-bg); color: var(--info);
  animation: pulse-badge 2s ease infinite;
}
.code-text {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
  flex: 1;
  letter-spacing: 0.04em;
  word-break: break-all;
  cursor: pointer;
  transition: color 0.2s;
}
.code-text:hover { color: #66f0ff; }
.copy-btn {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem; font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.copy-btn:hover {
  background: var(--accent);
  color: var(--bg-base);
  border-color: var(--accent);
}
.copy-btn.copied {
  background: var(--success);
  color: var(--bg-base);
  border-color: var(--success);
}
.code-card-info {
  display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.4rem;
}
.code-reward { font-size: 0.85rem; color: var(--text-primary); }
.code-note { font-size: 0.78rem; color: var(--text-muted); }
.code-card-meta {
  display: flex; gap: 1rem; align-items: center; flex-wrap: wrap;
  font-size: 0.7rem; color: var(--text-muted);
}
.code-source { display: flex; align-items: center; gap: 0.2rem; }
.code-redeem-link {
  margin-left: auto;
  color: var(--accent);
  font-weight: 500;
  font-size: 0.78rem;
}
.code-redeem-link:hover { text-decoration: underline; }

/* === Copy All Bar === */
.copy-all-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.8rem;
  gap: 1rem; flex-wrap: wrap;
}
.code-count-badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.25rem 0.7rem;
  font-size: 0.72rem; font-weight: 600;
  color: var(--text-secondary);
}
.copy-all-btn {
  background: var(--accent-dim);
  border: 1px solid rgba(0,229,255,0.25);
  color: var(--accent);
  font-size: 0.78rem; font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.copy-all-btn:hover {
  background: var(--accent);
  color: var(--bg-base);
  border-color: var(--accent);
}
.copy-all-btn.copied {
  background: var(--success);
  color: var(--bg-base);
  border-color: var(--success);
}

/* === Filter Bar === */
.filter-bar {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  margin-bottom: 1.2rem;
  align-items: center;
}
.filter-search {
  flex: 1; min-width: 200px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.55rem 1rem 0.55rem 2.4rem;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: var(--font-body);
  transition: border-color 0.2s, box-shadow 0.2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238b95a8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0.8rem center;
}
.filter-search:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.filter-search::placeholder { color: var(--text-muted); }
.filter-chip {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.75rem; font-weight: 500;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.filter-chip:hover { border-color: var(--border-hover); color: var(--text-primary); }
.filter-chip.active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

/* === Game Header === */
.breadcrumb {
  margin-bottom: 1.2rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.breadcrumb a { color: var(--accent); }
.breadcrumb span { color: var(--text-muted); }
.game-header {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.3rem 1.6rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}
.game-header::before {
  content: '';
  position: absolute; top: 0; left: 0; bottom: 0; width: 3px;
  background: var(--game-color, var(--accent));
}
.game-header::after {
  content: '';
  position: absolute; top: 0; right: 0; width: 200px; height: 100%;
  background: radial-gradient(ellipse at right, var(--game-color, var(--accent)), transparent);
  opacity: 0.05;
  pointer-events: none;
}
.game-header-icon { font-size: 2.5rem; line-height: 1; }
img.game-header-icon {
  width: 72px; height: 72px;
  border-radius: 14px;
  object-fit: cover;
  border: 2px solid var(--game-color, var(--accent));
  flex-shrink: 0;
}
.game-header-icon-fallback {
  width: 72px; height: 72px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: var(--bg-elevated);
  border: 2px solid var(--game-color, var(--accent));
  flex-shrink: 0;
}
.game-header-title {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 700;
  letter-spacing: 0.02em;
}
.game-header-sub { color: var(--text-secondary); font-size: 0.82rem; margin-top: 0.15rem; }

/* === Redeem Box === */
.redeem-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
}
.redeem-box h3 {
  font-family: var(--font-display);
  font-size: 0.9rem; font-weight: 700;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.redeem-box p { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 0.25rem; }
.redeem-box a { font-weight: 500; }

/* === Empty State === */
.empty-state {
  text-align: center; padding: 3rem 1rem;
  color: var(--text-muted);
}
.empty-state-icon { font-size: 2.5rem; margin-bottom: 0.6rem; opacity: 0.5; }
.empty-hint { font-size: 0.78rem; margin-top: 0.3rem; }

/* === Back Link === */
.back-link {
  margin-top: 2rem; text-align: center;
  padding: 1rem;
  border-top: 1px solid var(--border);
}
.back-link a {
  color: var(--text-secondary);
  font-size: 0.82rem;
  transition: color 0.2s;
}
.back-link a:hover { color: var(--accent); }

/* === FAQ === */
.faq-section { margin-top: 3rem; }
.faq-list { display: grid; gap: 0.6rem; }
.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  transition: border-color 0.2s;
}
.faq-item:hover { border-color: var(--border-hover); }
.faq-item h3 {
  font-family: var(--font-display);
  font-size: 0.92rem; font-weight: 700;
  margin-bottom: 0.3rem;
  letter-spacing: 0.02em;
}
.faq-item p { font-size: 0.82rem; color: var(--text-secondary); }

/* === About === */
.page-title {
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 700;
  margin-bottom: 1.2rem;
  letter-spacing: 0.02em;
}
.about-content { max-width: 640px; }
.about-content h2 {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 700;
  margin: 1.5rem 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.about-content p, .about-content ul { color: var(--text-secondary); margin-bottom: 0.6rem; font-size: 0.88rem; }
.about-content ul { padding-left: 1.4rem; }
.about-content li { margin-bottom: 0.25rem; }

/* === Footer === */
.footer {
  border-top: 1px solid var(--border);
  padding: 1.8rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.78rem;
}
.footer-note { font-size: 0.68rem; margin-top: 0.3rem; }
.footer-update {
  font-size: 0.68rem; margin-top: 0.25rem;
  color: var(--accent);
}

/* === Back to Top === */
.back-to-top {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  width: 40px; height: 40px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-hover);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transition: all 0.3s;
  z-index: 250;
  color: var(--accent);
  font-size: 1.1rem;
  box-shadow: var(--shadow);
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover {
  background: var(--accent);
  color: var(--bg-base);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* === Toast === */
.toast {
  position: fixed; bottom: 2rem; left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-elevated);
  border: 1px solid var(--success);
  color: var(--success);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  font-size: 0.82rem; font-weight: 600;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  z-index: 300;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* === Animations === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
@keyframes pulse-badge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(68,138,255,0.4); }
  50% { box-shadow: 0 0 0 4px rgba(68,138,255,0); }
}
@keyframes hot-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* === Mobile === */
@media (max-width: 640px) {
  .container { padding: 1.5rem 1rem; }
  .hero-title { font-size: 1.6rem; }
  .hero-subtitle { font-size: 0.85rem; }
  .hero-stats { gap: 0.5rem; }
  .hero-stat { padding: 0.6rem 0.8rem; min-width: 80px; }
  .hero-stat strong { font-size: 1.2rem; }
  .games-grid { grid-template-columns: 1fr; }
  .latest-grid { grid-template-columns: 1fr; }
  .game-header { padding: 1rem; gap: 0.7rem; }
  .game-header-title { font-size: 1.2rem; }
  .game-header-icon { font-size: 2rem; }
  img.game-header-icon { width: 56px; height: 56px; }
  .game-header-icon-fallback { width: 56px; height: 56px; }
  img.game-card-icon { width: 42px; height: 42px; }
  .game-card-icon-fallback { width: 42px; height: 42px; }
  .code-text { font-size: 0.95rem; }
  .copy-btn { padding: 0.3rem 0.6rem; font-size: 0.72rem; }
  .nav-container { padding: 0 1rem; }
  .nav-logo-text { font-size: 1rem; }
  .nav-links a { padding: 0.3rem 0.5rem; font-size: 0.75rem; }
  .code-card-top { flex-wrap: wrap; }
  .code-card-meta { font-size: 0.65rem; gap: 0.5rem; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-search { width: 100%; }
  .back-to-top { bottom: 1rem; right: 1rem; width: 36px; height: 36px; }
  .search-result-reward { display: none; }
  .copy-all-bar { flex-direction: column; align-items: stretch; }
  .section-title { font-size: 1rem; }
}
