:root {
  --bg: #070b14;
  --bg-elev: #0e1628;
  --card: rgba(16, 25, 46, 0.82);
  --card-hover: rgba(22, 34, 62, 0.95);
  --border: rgba(148, 163, 184, 0.16);
  --border-glow: rgba(34, 197, 94, 0.45);
  --accent: #22c55e;
  --accent-dark: #16a34a;
  --cyan: #38bdf8;
  --purple: #a855f7;
  --amber: #f59e0b;
  --text: #f8fafc;
  --muted: #94a3b8;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 15% 10%, rgba(34, 197, 94, 0.14) 0%, transparent 40%),
    radial-gradient(circle at 85% 15%, rgba(56, 189, 248, 0.14) 0%, transparent 42%),
    radial-gradient(circle at 50% 80%, rgba(168, 85, 247, 0.09) 0%, transparent 48%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 1.28rem;
  letter-spacing: 0.6px;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.35);
}

.brand-accent {
  background: linear-gradient(90deg, #22c55e, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 700;
  font-size: 0.95rem;
}

.nav-center a {
  color: var(--muted);
  transition: color 0.2s, transform 0.2s;
  padding: 6px 10px;
  border-radius: 8px;
}

.nav-center a:hover,
.nav-center a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

/* Language Switcher */
.lang-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border);
  padding: 4px;
  border-radius: 999px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 9px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.lang-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--accent), #10b981);
  color: #04130a;
  box-shadow: 0 2px 10px rgba(34, 197, 94, 0.35);
}

/* Hero Section */
.hero {
  padding: 46px 0 36px;
  text-align: center;
  position: relative;
}

.hero-logo {
  width: 150px;
  height: 150px;
  border-radius: 30px;
  margin: 0 auto 18px;
  display: block;
  border: 2px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.65), 0 0 32px rgba(34, 197, 94, 0.25);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #4ade80;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 880px;
  margin: 0 auto 18px;
  background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto 30px;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 13px;
  font-weight: 800;
  font-size: 0.96rem;
  transition: transform 0.16s, box-shadow 0.16s, background 0.16s;
  cursor: pointer;
  border: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, #22c55e 0%, #10b981 100%);
  color: #04120a;
  box-shadow: 0 10px 26px rgba(34, 197, 94, 0.32);
}

.btn-cyan {
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  color: #041320;
  box-shadow: 0 10px 26px rgba(56, 189, 248, 0.3);
}

.btn-secondary {
  background: rgba(30, 41, 59, 0.85);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(51, 65, 85, 0.9);
}

/* Stats Strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 980px;
  margin: 0 auto;
}

.stat-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 14px;
  text-align: center;
}

.stat-val {
  font-size: 1.5rem;
  font-weight: 900;
  background: linear-gradient(90deg, #4ade80, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-lbl {
  font-size: 0.83rem;
  color: var(--muted);
  font-weight: 600;
  margin-top: 2px;
}

/* Section Headers */
.section {
  padding: 46px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 34px;
}

.section-tag {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-header h2 {
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  font-weight: 900;
  margin-bottom: 8px;
}

.section-header p {
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto;
}

/* Dual Flagship Game Cards */
.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.game-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

.game-card:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 26px 55px rgba(0, 0, 0, 0.6), 0 0 30px rgba(34, 197, 94, 0.12);
}

.game-card-banner {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: #0a101f;
}

.game-card-banner img.cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.live-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(5, 18, 12, 0.88);
  border: 1px solid rgba(34, 197, 94, 0.55);
  color: #4ade80;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.game-card-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.game-head-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.game-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.game-head-info h3 {
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.2;
}

.game-genre {
  font-size: 0.85rem;
  color: var(--cyan);
  font-weight: 700;
}

.game-desc {
  color: var(--muted);
  font-size: 0.96rem;
  margin-bottom: 18px;
}

.feature-list {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.9rem;
  color: #e2e8f0;
}

.feature-list li {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 600;
}

.game-card-actions {
  margin-top: auto;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.game-card-actions .btn {
  flex: 1;
  min-width: 160px;
}

/* Screenshot Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 16px;
}

.shot-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}

.shot-card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
}

.shot-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
}

/* Why Section */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.why-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px;
}

.why-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.why-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.why-card p {
  color: var(--muted);
  font-size: 0.93rem;
}

/* Playable Game Theater Page */
.theater-section {
  padding: 26px 0 50px;
}

.theater-top {
  text-align: center;
  margin-bottom: 18px;
}

.theater-top h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  margin-bottom: 4px;
}

.theater-top p {
  color: var(--muted);
  font-size: 0.94rem;
}

.theater-toolbar {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.tool-btn {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s;
}

.tool-btn:hover {
  border-color: var(--cyan);
  background: rgba(30, 41, 59, 0.95);
}

.game-frame-wrap {
  width: 100%;
  max-width: 470px;
  height: 820px;
  margin: 0 auto 32px;
  border-radius: 26px;
  overflow: hidden;
  border: 2px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.72), 0 0 40px rgba(34, 197, 94, 0.12);
  background: #000;
  transition: max-width 0.25s ease, height 0.25s ease;
}

.game-frame-wrap.wide-mode {
  max-width: 980px;
  height: 840px;
}

.game-frame-wrap:fullscreen {
  max-width: 100vw;
  height: 100vh;
  border-radius: 0;
  border: none;
}

.game-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.info-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  max-width: 900px;
  margin: 0 auto 28px;
}

.info-box h2 {
  font-size: 1.35rem;
  margin-bottom: 14px;
  color: var(--text);
}

.info-box ul {
  padding-left: 20px;
  color: var(--muted);
  display: grid;
  gap: 10px;
}

/* Footer */
footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 30px 0;
  color: var(--muted);
  font-size: 0.9rem;
  background: rgba(5, 8, 15, 0.9);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a:hover {
  color: var(--text);
}

@media (max-width: 900px) {
  .games-grid {
    grid-template-columns: 1fr;
  }
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .nav {
    justify-content: center;
  }
  .game-frame-wrap {
    max-width: 100%;
    height: 760px;
    border-radius: 18px;
  }
}
