/* ============================================
   Dan the Man Strategy Guide - Pixel Art Retro Theme
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --d-red: #d4342e;
  --d-red-dark: #a82823;
  --d-red-light: #f04a44;
  --d-navy: #1a1a2e;
  --d-navy-light: #16213e;
  --d-gold: #f0a500;
  --d-gold-dark: #c48800;
  --d-steel: #3a3a5c;
  --d-steel-light: #4a4a6e;
  --d-bg: #0f0f23;
  --d-surface: #14142d;
  --d-surface-alt: #1c1c3a;
  --d-text: #e4e4e4;
  --d-text-muted: #8b8b8b;
  --d-text-dim: #5a5a7a;
  --d-border: #2a2a4a;
  --d-border-light: #3a3a5c;
  --d-green: #4caf50;
  --font-pixel: 'Press Start 2P', monospace;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --header-h: 64px;
  --max-w: 1280px;
  --radius: 4px;
  --radius-lg: 8px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--d-text);
  background-color: var(--d-bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

button {
  font-family: inherit; font-size: inherit; cursor: pointer;
  border: none; background: none; color: inherit;
}

.header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: linear-gradient(180deg, #1a1a2e 0%, #14142d 100%);
  border-bottom: 2px solid var(--d-red);
  z-index: 1000; display: flex; align-items: center;
}

.header-inner {
  width: 100%; max-width: var(--max-w); margin: 0 auto;
  padding: 0 24px; display: flex; align-items: center;
  justify-content: space-between; gap: 24px;
}

.header-logo {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-pixel); font-size: 11px;
  color: var(--d-gold); text-transform: uppercase;
  letter-spacing: 1px; flex-shrink: 0;
}

.header-logo-icon {
  display: none;
}

.header-logo-img,
.footer-logo-img {
  width: 36px; height: 36px; object-fit: contain;
  border: 2px solid var(--d-gold);
}

.footer-logo-img {
  width: 32px; height: 32px;
}

.header-nav {
  display: flex; gap: 4px; flex: 1; justify-content: center;
}

.header-nav a {
  padding: 8px 16px; font-size: 14px; font-weight: 500;
  color: var(--d-text-muted); border-radius: var(--radius);
  transition: all .2s;
}

.header-nav a:hover, .header-nav a.active {
  color: var(--d-gold); background: rgba(240,165,0,.08);
}

.header-search { position: relative; flex-shrink: 0; }

.header-search input {
  width: 220px; height: 38px; padding: 0 16px 0 38px;
  background: var(--d-surface); border: 1px solid var(--d-border);
  border-radius: var(--radius); color: var(--d-text);
  font-size: 14px; transition: all .2s;
}

.header-search input:focus {
  outline: none; border-color: var(--d-gold); width: 280px;
}

.header-search input::placeholder { color: var(--d-text-dim); }

.header-search-icon {
  position: absolute; left: 12px; top: 50%;
  transform: translateY(-50%); color: var(--d-text-dim); font-size: 14px;
}

.header-mobile-btn {
  display: none; width: 40px; height: 40px;
  align-items: center; justify-content: center;
  font-size: 20px; color: var(--d-text);
}

.hero {
  margin-top: var(--header-h); padding: 80px 24px 60px; text-align: center; position: relative; overflow: hidden;
  border-bottom: 1px solid var(--d-border); background: var(--d-bg);
}

.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url('./image/bg1.jpg') center/cover no-repeat;
  z-index: 0; opacity: .35;
}

.hero::after {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,.01) 2px, rgba(255,255,255,.01) 4px);
  pointer-events: none; z-index: 1;
}

.hero-badge,
.hero h1,
.hero p,
.hero-actions {
  position: relative; z-index: 2;
}

.hero-badge {
  display: inline-block; padding: 6px 16px;
  background: rgba(212,52,46,.2); border: 1px solid var(--d-red);
  color: var(--d-red-light); font-family: var(--font-pixel);
  font-size: 8px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 24px;
}

.hero h1 {
  font-family: var(--font-pixel); font-size: 28px;
  color: var(--d-gold); text-transform: uppercase;
  line-height: 1.4; margin-bottom: 16px;
  text-shadow: 3px 3px 0 rgba(0,0,0,.5);
}

.hero h1 span {
  display: block; color: var(--d-text); font-family: var(--font-body);
  font-size: 18px; font-weight: 400; text-transform: none;
  letter-spacing: 0; margin-top: 8px; text-shadow: none;
}

.hero p {
  max-width: 640px; margin: 0 auto 32px;
  color: var(--d-text-muted); font-size: 16px; line-height: 1.75;
}

.hero-actions {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; font-size: 14px; font-weight: 600;
  border-radius: var(--radius); transition: all .2s;
}

.btn-primary {
  background: var(--d-red); color: #fff;
  border: 2px solid var(--d-red-dark);
  box-shadow: 0 4px 0 var(--d-red-dark);
}

.btn-primary:hover {
  background: var(--d-red-light); transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--d-red-dark);
}

.btn-primary:active { transform: translateY(0); box-shadow: 0 2px 0 var(--d-red-dark); }

.btn-outline {
  background: transparent; color: var(--d-gold); border: 2px solid var(--d-gold);
}

.btn-outline:hover { background: rgba(240,165,0,.1); }

.stats-bar {
  max-width: var(--max-w); margin: 0 auto; padding: 32px 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}

.stat-item {
  text-align: center; padding: 20px; background: var(--d-surface);
  border: 1px solid var(--d-border); border-radius: var(--radius-lg);
}

.stat-item .stat-icon { font-size: 28px; margin-bottom: 8px; }

.stat-icon i { font-size: inherit; }

.stat-item .stat-value {
  font-family: var(--font-pixel); font-size: 14px;
  color: var(--d-gold); margin-bottom: 4px;
}

.stat-item .stat-label { font-size: 13px; color: var(--d-text-muted); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

.section { padding: 56px 0; }

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

.section-title {
  font-family: var(--font-pixel); font-size: 13px;
  color: var(--d-gold); text-transform: uppercase;
  letter-spacing: 1px; position: relative; padding-left: 16px;
}

.section-title::before {
  content: ''; position: absolute; left: 0; top: 50%;
  transform: translateY(-50%); width: 4px; height: 18px; background: var(--d-red);
}

.section-tabs {
  display: flex; gap: 4px; background: var(--d-surface);
  border: 1px solid var(--d-border); border-radius: var(--radius); padding: 3px;
}

.section-tab {
  padding: 8px 20px; font-size: 13px; font-weight: 500;
  color: var(--d-text-muted); border-radius: 2px; transition: all .2s;
}

.section-tab:hover { color: var(--d-text); }

.section-tab.active { background: var(--d-red); color: #fff; }

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

.article-card {
  background: var(--d-surface); border: 1px solid var(--d-border);
  border-radius: var(--radius-lg); overflow: hidden; transition: all .25s; cursor: pointer;
}

.article-card:hover {
  transform: translateY(-4px); border-color: var(--d-gold);
  box-shadow: 0 12px 32px rgba(240,165,0,.1);
}

.article-card-img {
  height: 160px; background: linear-gradient(135deg, var(--d-navy-light) 0%, var(--d-steel) 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}

.article-card-img i {
  font-size: 52px; color: var(--d-gold); position: relative; z-index: 1;
  transition: transform .3s ease;
}

.article-card:hover .article-card-img i {
  transform: scale(1.15);
}

.article-card-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(20,20,45,.6) 100%);
}

.article-card-icon,
.article-card-img {
  height: 160px; background: linear-gradient(135deg, var(--d-navy-light) 0%, var(--d-steel) 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}

.article-card-icon i,
.article-card-img i {
  font-size: 52px; color: var(--d-gold); position: relative; z-index: 1;
  transition: transform .3s ease;
}

.article-card:hover .article-card-icon i,
.article-card:hover .article-card-img i {
  transform: scale(1.15);
}

.article-card-icon::after,
.article-card-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(20,20,45,.6) 100%);
}

.article-card-category {
  position: absolute; top: 12px; left: 12px; padding: 4px 10px;
  background: var(--d-red); color: #fff; font-family: var(--font-pixel);
  font-size: 7px; letter-spacing: 1px; text-transform: uppercase; z-index: 1; border-radius: 2px;
}

.article-card-body { padding: 20px; }

.article-card-title {
  font-size: 16px; font-weight: 600; color: var(--d-text);
  margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4;
}

.article-card-excerpt {
  font-size: 13px; color: var(--d-text-muted);
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden; line-height: 1.6; margin-bottom: 12px;
}

.article-card-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; color: var(--d-text-dim);
  padding-top: 12px; border-top: 1px solid var(--d-border);
}

.article-card-meta span { display: flex; align-items: center; gap: 4px; }

.featured-article {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  background: linear-gradient(135deg, var(--d-navy-light) 0%, var(--d-surface) 100%);
  border: 1px solid var(--d-border); border-radius: var(--radius-lg);
  overflow: hidden; margin-bottom: 48px;
}

.featured-article-img {
  min-height: 320px; background: linear-gradient(135deg, #1a1a2e 0%, #2a1a3e 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 80px; position: relative;
}

.featured-article-img::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(15,15,35,.4) 100%);
}

.featured-article-body {
  padding: 40px 40px 40px 0; display: flex;
  flex-direction: column; justify-content: center;
}

.featured-article-badge {
  display: inline-block; padding: 4px 12px;
  background: rgba(240,165,0,.15); border: 1px solid var(--d-gold);
  color: var(--d-gold); font-family: var(--font-pixel);
  font-size: 7px; letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 16px; align-self: flex-start;
}

.featured-article-title {
  font-family: var(--font-pixel); font-size: 14px; color: var(--d-text);
  text-transform: uppercase; line-height: 1.6; margin-bottom: 12px;
}

.featured-article-excerpt {
  color: var(--d-text-muted); font-size: 15px; line-height: 1.7; margin-bottom: 24px;
}

.article-detail { margin-top: var(--header-h); padding: 48px 24px; }

.article-detail-inner { max-width: 800px; margin: 0 auto; }

.article-detail-breadcrumb {
  display: flex; gap: 8px; align-items: center;
  font-size: 13px; color: var(--d-text-dim); margin-bottom: 24px;
}

.article-detail-breadcrumb a:hover { color: var(--d-gold); }

.article-detail-category {
  display: inline-block; padding: 4px 12px;
  background: rgba(212,52,46,.15); border: 1px solid var(--d-red);
  color: var(--d-red-light); font-family: var(--font-pixel);
  font-size: 7px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px;
}

.article-detail h1 {
  font-family: var(--font-pixel); font-size: 18px;
  color: var(--d-gold); text-transform: uppercase;
  line-height: 1.5; margin-bottom: 12px;
}

.article-detail .meta {
  display: flex; gap: 16px; align-items: center;
  font-size: 13px; color: var(--d-text-dim); margin-bottom: 32px;
  padding-bottom: 24px; border-bottom: 1px solid var(--d-border);
}

.article-detail .meta span { display: flex; align-items: center; gap: 4px; }

.article-content { font-size: 16px; line-height: 1.85; color: var(--d-text); }

.article-content h2 {
  font-family: var(--font-pixel); font-size: 11px;
  color: var(--d-gold); text-transform: uppercase;
  margin: 40px 0 16px; padding-left: 12px; border-left: 3px solid var(--d-red);
}

.article-content h3 { font-size: 18px; font-weight: 600; color: var(--d-text); margin: 32px 0 12px; }

.article-content p { margin-bottom: 16px; }

.article-content ul, .article-content ol { margin-bottom: 16px; padding-left: 24px; }

.article-content ul { list-style: none; }

.article-content ul li {
  position: relative; padding-left: 16px; margin-bottom: 8px;
}

.article-content ul li::before {
  content: '\25B6'; position: absolute; left: 0; top: 0;
  font-size: 8px; color: var(--d-red); line-height: 1.85;
}

.article-content ol li { margin-bottom: 8px; }

.article-content strong { color: var(--d-gold); font-weight: 600; }

.article-content em { color: var(--d-text-muted); font-style: italic; }

.article-content .tip-box {
  background: rgba(240,165,0,.08); border: 1px solid var(--d-gold);
  border-left: 4px solid var(--d-gold); border-radius: var(--radius);
  padding: 20px 24px; margin: 24px 0;
}

.article-content .tip-box .tip-label {
  font-family: var(--font-pixel); font-size: 8px; color: var(--d-gold);
  text-transform: uppercase; margin-bottom: 8px; letter-spacing: 1px;
}

.article-content .warning-box {
  background: rgba(212,52,46,.08); border: 1px solid var(--d-red);
  border-left: 4px solid var(--d-red); border-radius: var(--radius);
  padding: 20px 24px; margin: 24px 0;
}

.article-content .warning-box .warning-label {
  font-family: var(--font-pixel); font-size: 8px; color: var(--d-red-light);
  text-transform: uppercase; margin-bottom: 8px; letter-spacing: 1px;
}

.article-content table {
  width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px;
}

.article-content th {
  background: var(--d-surface); color: var(--d-gold);
  font-family: var(--font-pixel); font-size: 8px; text-transform: uppercase;
  letter-spacing: 1px; padding: 12px 16px; text-align: left;
  border-bottom: 2px solid var(--d-red);
}

.article-content td {
  padding: 12px 16px; border-bottom: 1px solid var(--d-border); color: var(--d-text-muted);
}

.article-content tr:hover td { background: rgba(240,165,0,.03); }

.toc {
  background: var(--d-surface); border: 1px solid var(--d-border);
  border-radius: var(--radius-lg); padding: 24px; margin-bottom: 32px;
}

.toc-title {
  font-family: var(--font-pixel); font-size: 9px; color: var(--d-gold);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px;
}

.toc-list li { margin-bottom: 6px; }

.toc-list a {
  font-size: 14px; color: var(--d-text-muted); transition: color .2s;
  display: block; padding: 4px 0;
}

.toc-list a:hover { color: var(--d-gold); }

.game-info-card {
  background: linear-gradient(135deg, var(--d-navy-light) 0%, var(--d-surface) 100%);
  border: 1px solid var(--d-border); border-radius: var(--radius-lg);
  padding: 28px; margin-bottom: 48px;
}

.game-info-title {
  font-family: var(--font-pixel); font-size: 11px; color: var(--d-gold);
  text-transform: uppercase; margin-bottom: 16px;
}

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

.game-info-item {
  display: flex; align-items: center; gap: 10px; font-size: 14px;
}

.game-info-item .label { color: var(--d-text-dim); white-space: nowrap; }

.game-info-item .value { color: var(--d-text); font-weight: 500; }

.game-info-item .tag {
  display: inline-block; padding: 2px 8px; background: var(--d-surface-alt);
  border: 1px solid var(--d-border); border-radius: 2px;
  font-size: 12px; color: var(--d-text-muted);
}

.related-section {
  border-top: 1px solid var(--d-border); padding-top: 40px; margin-top: 40px;
}

.related-title {
  font-family: var(--font-pixel); font-size: 11px; color: var(--d-gold);
  text-transform: uppercase; margin-bottom: 24px;
}

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

.related-card {
  background: var(--d-surface); border: 1px solid var(--d-border);
  border-radius: var(--radius); padding: 16px; transition: all .2s; cursor: pointer;
}

.related-card:hover { border-color: var(--d-gold); }

.related-card-title { font-size: 14px; font-weight: 600; color: var(--d-text); margin-bottom: 6px; }

.related-card-meta { font-size: 12px; color: var(--d-text-dim); }

.footer {
  background: var(--d-navy); border-top: 2px solid var(--d-red);
  padding: 48px 24px 24px;
}

.footer-inner {
  max-width: var(--max-w); margin: 0 auto; display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}

.footer-brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-pixel); font-size: 10px; color: var(--d-gold); margin-bottom: 16px;
}

.footer-desc { font-size: 14px; color: var(--d-text-muted); line-height: 1.7; }

.footer-col h4 {
  font-family: var(--font-pixel); font-size: 8px; color: var(--d-gold);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px;
}

.footer-col a {
  display: block; font-size: 14px; color: var(--d-text-muted);
  margin-bottom: 10px; transition: color .2s;
}

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

.footer-bottom {
  max-width: var(--max-w); margin: 32px auto 0; padding-top: 24px;
  border-top: 1px solid var(--d-border); text-align: center;
  font-size: 13px; color: var(--d-text-dim);
}

.back-to-top {
  position: fixed; bottom: 32px; right: 32px;
  width: 44px; height: 44px; background: var(--d-red);
  border: 2px solid var(--d-red-dark); color: #fff;
  font-size: 18px; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all .3s; z-index: 999; cursor: pointer;
}

.back-to-top.visible { opacity: 1; visibility: visible; }

.back-to-top:hover { background: var(--d-red-light); }

.search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: var(--d-surface); border: 1px solid var(--d-border);
  border-radius: var(--radius-lg); max-height: 360px; overflow-y: auto;
  display: none; z-index: 100; box-shadow: 0 16px 40px rgba(0,0,0,.5);
}

.search-results.active { display: block; }

.search-result-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  border-bottom: 1px solid var(--d-border); cursor: pointer; transition: background .15s;
}

.search-result-item:hover { background: rgba(240,165,0,.06); }

.search-result-item:last-child { border-bottom: none; }

.search-result-icon { font-size: 24px; flex-shrink: 0; }

.search-result-info { min-width: 0; }

.search-result-title {
  font-size: 14px; font-weight: 500; color: var(--d-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.search-result-cat { font-size: 12px; color: var(--d-text-dim); }

.search-result-empty { padding: 24px; text-align: center; color: var(--d-text-dim); font-size: 14px; }

.loading-state, .empty-state { text-align: center; padding: 60px 20px; color: var(--d-text-dim); }

.empty-state-icon { font-size: 48px; margin-bottom: 16px; }

/* Play Features - compact 2x2 grid */
.play-features { padding: 28px 0; background: var(--d-surface); border-bottom: 1px solid var(--d-border); }
.play-features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.play-feature-card { display: flex; align-items: flex-start; gap: 14px; padding: 16px 20px; background: var(--d-bg); border: 1px solid var(--d-border); border-radius: var(--radius); transition: border-color .2s; }
.play-feature-card:hover { border-color: var(--d-gold); }
.play-feature-text { min-width: 0; }
.play-feature-icon { font-size: 28px; color: var(--d-gold); flex-shrink: 0; width: 40px; text-align: center; line-height: 1; }
.play-feature-title { font-size: 14px; font-weight: 600; color: var(--d-text); margin-bottom: 2px; }
.play-feature-card p { font-size: 13px; color: var(--d-text-muted); line-height: 1.5; margin: 0; }

.play-story-icon { font-size: 64px; color: var(--d-gold); }

.empty-state-icon i { font-size: inherit; color: var(--d-text-dim); }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--d-bg); }
::-webkit-scrollbar-thumb { background: var(--d-steel); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--d-steel-light); }

@media (max-width: 992px) {
  .featured-article { grid-template-columns: 1fr; }
  .featured-article-body { padding: 24px; }
  .featured-article-img { min-height: 200px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .header-nav { display: none; position: fixed; top: var(--header-h); left: 0; right: 0;
    background: var(--d-navy); flex-direction: column; padding: 16px;
    border-bottom: 2px solid var(--d-red); z-index: 999; }
  .header-nav.active { display: flex; }
  .header-search { display: none; }
  .header-mobile-btn { display: flex; }
  .hero { padding: 48px 16px 40px; }
  .hero h1 { font-size: 16px; }
  .hero h1 span { font-size: 14px; }
  .hero p { font-size: 14px; }
  .articles-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  .related-grid { grid-template-columns: 1fr; }
  .game-info-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .stats-bar { padding: 24px 16px; gap: 12px; grid-template-columns: 1fr 1fr; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .section-tabs { overflow-x: auto; white-space: nowrap; width: 100%; -webkit-overflow-scrolling: touch; }
  .section-tabs::-webkit-scrollbar { height: 3px; }
  .section-tab { padding: 8px 14px; font-size: 12px; flex-shrink: 0; }
  .section { padding: 40px 0; }
  .container { padding: 0 16px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer { padding: 36px 16px 20px; }
  .article-detail h1 { font-size: 14px; }
  .article-detail { padding: 32px 16px; }
  .article-content { font-size: 15px; }
  .article-content table { display: block; overflow-x: auto; white-space: nowrap; }
  .play-hero { padding: 32px 16px 24px; }
  .play-hero h1 { font-size: 14px; }
  .play-hero p { font-size: 14px; }
  .play-game-section { padding: 16px 12px 32px; }
  .play-features { padding: 20px 0; }
  .play-features-grid { grid-template-columns: 1fr; }
  .play-feature-card { padding: 14px 16px; }
  .play-feature-icon { font-size: 24px; width: 36px; }
  .legal-page { padding: 32px 16px 40px; }
  .legal-content h1 { font-size: 14px; }
  .legal-content h2 { font-size: 9px; }
  .contact-cards { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-intro { padding: 20px; }
  .about-intro p { font-size: 14px; }
  .cookie-banner-inner { flex-direction: column; align-items: stretch; }
  .cookie-banner-actions { justify-content: flex-start; }
  .back-to-top { width: 38px; height: 38px; bottom: 20px; right: 20px; font-size: 16px; }
}

/* ============================================
   Play Game Page
   ============================================ */

.about-section {
  position: relative; overflow: hidden;
  background: var(--d-bg);
}
.about-section::before {
  content: ''; position: absolute; inset: 0;
  background: url('./image/bg2.jpg') center/cover no-repeat;
  opacity: .15; z-index: 0;
}
.about-section > .container { position: relative; z-index: 1; }

.play-page { margin-top: var(--header-h); }

.play-hero {
  padding: 48px 24px 32px; text-align: center;
  background: var(--d-bg);
  border-bottom: 1px solid var(--d-border);
  position: relative; overflow: hidden;
}

.play-hero::before {
  content: ''; position: absolute; inset: 0;
  background: url('./image/bg3.jpg') center/cover no-repeat;
  opacity: .35; z-index: 0;
}

.play-hero::after {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,.01) 2px, rgba(255,255,255,.01) 4px);
  pointer-events: none; z-index: 1;
}

.play-hero-inner { position: relative; z-index: 1; }

.play-hero h1 {
  font-family: var(--font-pixel); font-size: 24px;
  color: var(--d-gold); text-transform: uppercase;
  margin: 16px 0 8px; text-shadow: 3px 3px 0 rgba(0,0,0,.5);
}

.play-hero p { color: var(--d-text-muted); font-size: 15px; }

.play-game-section { padding: 32px 24px 48px; background: var(--d-bg); }

.play-game-container {
  max-width: 960px; margin: 0 auto;
  background: var(--d-surface); border: 1px solid var(--d-border);
  border-radius: var(--radius-lg); overflow: hidden;
}

.play-iframe-wrap {
  position: relative; width: 100%;
  aspect-ratio: 16 / 9; background: #000;
}

.play-iframe-wrap iframe {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: none;
}

.header-mobile-btn i { font-size: 20px; }

/* ============================================
   Legal Pages (Privacy, Terms, Contact, About)
   ============================================ */

.legal-page {
  margin-top: var(--header-h);
  padding: 48px 24px 56px;
  min-height: 60vh;
}

.legal-content {
  max-width: 760px;
  margin: 0 auto;
}

.legal-content h1 {
  font-family: var(--font-pixel);
  font-size: 18px;
  color: var(--d-gold);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.legal-date {
  font-size: 13px;
  color: var(--d-text-dim);
  margin-bottom: 32px;
}

.legal-content h2 {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--d-gold);
  text-transform: uppercase;
  margin: 36px 0 14px;
  padding-left: 12px;
  border-left: 3px solid var(--d-red);
}

.legal-content h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--d-text);
  margin: 24px 0 8px;
}

.legal-content p {
  font-size: 15px;
  color: var(--d-text-muted);
  line-height: 1.8;
  margin-bottom: 14px;
}

.legal-content strong {
  color: var(--d-text);
  font-weight: 600;
}

.legal-content a {
  color: var(--d-gold);
  text-decoration: underline;
}

.legal-content a:hover {
  color: var(--d-gold-dark);
}

.legal-content ul {
  list-style: none;
  margin-bottom: 16px;
  padding: 0;
}

.legal-content ul li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  font-size: 15px;
  color: var(--d-text-muted);
  line-height: 1.7;
}

.legal-content ul li::before {
  content: '\25B6';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 8px;
  color: var(--d-red);
  line-height: 1.7;
}

/* Contact Cards */

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 32px 0;
}

.contact-card {
  background: var(--d-surface);
  border: 1px solid var(--d-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color .2s;
}

.contact-card:hover {
  border-color: var(--d-gold);
}

.contact-card-icon {
  font-size: 32px;
  color: var(--d-gold);
  margin-bottom: 12px;
}

.contact-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--d-text);
  margin-bottom: 6px;
}

.contact-card p {
  font-size: 13px;
  color: var(--d-text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.contact-card a {
  font-size: 14px;
  color: var(--d-gold);
  font-weight: 500;
}

.contact-response {
  background: var(--d-surface);
  border: 1px solid var(--d-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 32px;
}

.contact-response h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--d-text);
  margin-bottom: 6px;
}

.contact-response h3 i {
  color: var(--d-gold);
}

.contact-response p {
  font-size: 14px;
  color: var(--d-text-muted);
  margin: 0;
}

/* About Page */

.about-intro {
  background: var(--d-surface);
  border: 1px solid var(--d-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 36px;
}

.about-intro p {
  font-size: 16px;
  color: var(--d-text);
  line-height: 1.8;
  margin: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 20px 0 36px;
}

.about-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--d-surface);
  border: 1px solid var(--d-border);
  border-radius: var(--radius);
}

.about-item-icon {
  font-size: 28px;
  color: var(--d-gold);
  width: 40px;
  text-align: center;
  flex-shrink: 0;
  line-height: 1.2;
}

.about-item h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--d-text);
  margin-bottom: 4px;
}

.about-item p {
  font-size: 13px;
  color: var(--d-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Cookie Consent Banner */

#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--d-navy);
  border-top: 2px solid var(--d-gold);
  z-index: 9999;
  padding: 16px 24px;
  transition: opacity .3s, transform .3s;
}

.cookie-banner-hidden {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}

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

.cookie-banner-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 200px;
}

.cookie-banner-text strong {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--d-gold);
  text-transform: uppercase;
}

.cookie-banner-text span {
  font-size: 13px;
  color: var(--d-text-muted);
  line-height: 1.5;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .2s;
}

.cookie-btn-accept {
  background: var(--d-red);
  color: #fff;
  border: 2px solid var(--d-red-dark);
}

.cookie-btn-accept:hover {
  background: var(--d-red-light);
}

.cookie-btn-reject {
  background: transparent;
  color: var(--d-text-muted);
  border: 2px solid var(--d-border);
}

.cookie-btn-reject:hover {
  border-color: var(--d-text-muted);
  color: var(--d-text);
}

.cookie-link {
  font-size: 12px;
  color: var(--d-text-dim);
  text-decoration: underline;
  white-space: nowrap;
}

.cookie-link:hover {
  color: var(--d-gold);
}

/* Small phone screens */
@media (max-width: 480px) {
  .hero { padding: 36px 12px 32px; }
  .hero h1 { font-size: 13px; }
  .hero h1 span { font-size: 13px; }
  .hero p { font-size: 13px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-actions .btn { justify-content: center; }
  .stats-bar { grid-template-columns: 1fr 1fr; padding: 20px 12px; gap: 10px; }
  .stat-item { padding: 14px 10px; }
  .stat-item .stat-value { font-size: 11px; }
  .articles-grid { grid-template-columns: 1fr; }
  .featured-article-body { padding: 20px; }
  .article-card-img { height: 140px; }
  .article-card-body { padding: 16px; }
  .article-card-title { font-size: 15px; }
  .section-tab { padding: 6px 12px; font-size: 11px; }
  .play-hero { padding: 28px 12px 20px; }
  .play-hero h1 { font-size: 12px; }
  .play-hero p { font-size: 13px; }
  .play-game-section { padding: 12px 8px 24px; }
  .game-info-grid { grid-template-columns: 1fr; }
  .game-info-item { font-size: 13px; }
  .legal-page { padding: 24px 12px 32px; }
  .legal-content h1 { font-size: 13px; }
  .legal-content h2 { font-size: 8px; }
  .legal-content p { font-size: 14px; }
  .contact-response { padding: 14px 16px; }
  .cookie-btn { padding: 8px 16px; font-size: 12px; }
}
