:root {
  --bg-color: #000000;
  --card-bg: linear-gradient(180deg, #161e2c 0%, #0c1119 100%);
  --card-hover: linear-gradient(180deg, #1b2537 0%, #101622 100%);
  --subcard-bg: linear-gradient(180deg, #121824 0%, #0a0e16 100%);
  --subcard-border: #1c2535;
  --subcard-radius: 7px;
  --subcard-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 3px 8px rgba(0, 0, 0, 0.5);
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --accent: #38bdf8;
  --accent-hover: #7dd3fc;
  --accent-glow: rgba(56, 189, 248, 0.15);
  --border: #222d3e;
  --border-light: #33435c;
  --badge-bg: #16a34a;
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 11px;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-stack);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 90%;
  max-width: 920px;
  margin: 0 auto;
  padding: 2.5rem 0;
}

/* Language Switcher - Top Right of the Page */
.lang-switch {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  display: flex;
  gap: 0.5rem;
  z-index: 100;
}

.lang-btn {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(11, 13, 17, 0.85);
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.lang-btn.active,
.lang-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-glow);
}

/* Header & Branding - Horizontally Centered & Big */
header {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0 2.5rem 0;
  margin-bottom: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.brand {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.brand h1 {
  margin: 0;
  font-size: 0;
  line-height: 0;
  display: flex;
  justify-content: center;
  width: 100%;
}

.brand-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.brand-link:hover {
  opacity: 0.92;
  transform: translateY(-2px);
}

.brand-logo {
  width: clamp(280px, 50vw, 460px);
  max-width: 100%;
  height: auto;
  aspect-ratio: 3840 / 1074;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
  margin-bottom: 2rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.back-link:hover {
  color: var(--accent-hover);
  transform: translateX(-3px);
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 3rem;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.14),
    inset 0 -1px 2px rgba(0, 0, 0, 0.9),
    0 14px 32px rgba(0, 0, 0, 0.85);
  transition: all 0.25s ease;
}

.hero:hover {
  background: var(--card-hover);
  border-color: var(--border-light);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.22),
    inset 0 -1px 2px rgba(0, 0, 0, 0.95),
    0 18px 40px rgba(0, 0, 0, 0.9);
  transform: translateY(-2px);
}

.hero h2 {
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto 2rem auto;
  line-height: 1.7;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #000000;
  padding: 0.85rem 1.8rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.25);
}

.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.6rem 1.2rem;
  box-shadow: none;
  font-size: 0.95rem;
}

.btn-secondary:hover {
  background: var(--accent);
  color: #000000;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.25);
}

.btn-playstore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--card-bg);
  color: var(--accent);
  border: 1px solid var(--border-light);
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.14),
    inset 0 -1px 2px rgba(0, 0, 0, 0.9),
    0 4px 12px rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease;
}

.btn-playstore:hover {
  background: var(--card-hover);
  color: var(--accent-hover);
  border-color: var(--accent);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.22),
    inset 0 -1px 2px rgba(0, 0, 0, 0.95),
    0 6px 16px rgba(0, 0, 0, 0.7),
    0 0 10px var(--accent-glow);
  transform: translateY(-1px);
}

/* Section Title */
.section-title {
  font-size: 1.45rem;
  margin-bottom: 1.75rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.6rem;
  color: #ffffff;
  font-weight: 700;
}

/* Game Card */
.game-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: row;
  gap: 1.8rem;
  align-items: flex-start;
  transition: all 0.25s ease;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.14),
    inset 0 -1px 2px rgba(0, 0, 0, 0.9),
    0 14px 32px rgba(0, 0, 0, 0.85);
}

.game-card:hover {
  background: var(--card-hover);
  border-color: var(--border-light);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.22),
    inset 0 -1px 2px rgba(0, 0, 0, 0.95),
    0 18px 40px rgba(0, 0, 0, 0.9);
  transform: translateY(-2px);
}

.game-icon-link {
  flex-shrink: 0;
  display: block;
  text-decoration: none;
}

.game-icon {
  width: 100px;
  height: 100px;
  border-radius: 22px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border-light);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease;
}

.game-card:hover .game-icon {
  transform: scale(1.02);
}

.game-content {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1;
}

.badge {
  display: inline-block;
  background: var(--badge-bg);
  color: #ffffff;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  align-self: flex-start;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.game-card h4,
.game-panel-title {
  font-size: 1.5rem;
  color: #ffffff;
  font-weight: 700;
}

.game-title-link {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.game-title-link:hover {
  color: var(--accent);
}

.game-content p {
  color: var(--text-main);
  font-size: 1.05rem;
  line-height: 1.6;
}

.game-meta {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.game-meta strong {
  color: var(--text-main);
}

.game-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Dedicated Game Panels */
.game-panel {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem;
  margin-bottom: 2.5rem;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.14),
    inset 0 -1px 2px rgba(0, 0, 0, 0.9),
    0 14px 32px rgba(0, 0, 0, 0.85);
  transition: all 0.25s ease;
}

.game-panel:hover {
  background: var(--card-hover);
  border-color: var(--border-light);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.22),
    inset 0 -1px 2px rgba(0, 0, 0, 0.95),
    0 18px 40px rgba(0, 0, 0, 0.9);
  transform: translateY(-2px);
}

.panel-title {
  font-size: 1.35rem;
  color: #ffffff;
  margin-bottom: 1.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
}

/* Panel 2: Screenshot & Details */
.game-details-layout {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}

.game-screenshot-container {
  flex: 0 0 280px;
  max-width: 300px;
}

.game-screenshot {
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  display: block;
}

.game-details-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.detail-item {
  background: var(--subcard-bg);
  border: 1px solid var(--subcard-border);
  border-radius: var(--subcard-radius);
  padding: 1.2rem 1.4rem;
  box-shadow: var(--subcard-shadow);
}

.detail-item h4 {
  font-size: 1.15rem;
  color: #ffffff;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.detail-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Panel 3: In-Game Credits */
.credits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.credit-item {
  background: var(--subcard-bg);
  border: 1px solid var(--subcard-border);
  border-radius: var(--subcard-radius);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  box-shadow: var(--subcard-shadow);
}

.credit-role {
  color: var(--accent);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.credit-name {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
}

.credit-name a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

.credit-name a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.credit-name a.credit-highlight {
  color: #fbbf24;
}

.credit-name a.credit-highlight:hover {
  color: #fde68a;
}

/* Contact */
.contact-section {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  margin-bottom: 3rem;
  text-align: center;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.14),
    inset 0 -1px 2px rgba(0, 0, 0, 0.9),
    0 14px 32px rgba(0, 0, 0, 0.85);
  transition: all 0.25s ease;
}

.contact-section:hover {
  background: var(--card-hover);
  border-color: var(--border-light);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.22),
    inset 0 -1px 2px rgba(0, 0, 0, 0.95),
    0 18px 40px rgba(0, 0, 0, 0.9);
  transform: translateY(-2px);
}

.contact-section p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.contact-links {
  margin-top: 1.8rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--subcard-border);
  border-radius: var(--subcard-radius);
  background: var(--subcard-bg);
  box-shadow: var(--subcard-shadow);
  transition: all 0.2s ease;
}

.contact-link:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
  transform: translateY(-1px);
}

/* Privacy Article */
.policy-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin-bottom: 3rem;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.14),
    inset 0 -1px 2px rgba(0, 0, 0, 0.9),
    0 14px 32px rgba(0, 0, 0, 0.85);
}

.policy-card h3 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  color: #ffffff;
  font-weight: 700;
}

.policy-card h3:first-of-type {
  margin-top: 0;
}

.policy-card p {
  margin-bottom: 1.2rem;
  color: var(--text-main);
}

.policy-card ul {
  margin-left: 1.8rem;
  margin-bottom: 1.2rem;
}

.policy-card li {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.policy-card a {
  color: var(--accent);
  text-decoration: none;
}

.policy-card a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-nav a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.legal-box {
  line-height: 1.6;
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
  padding-top: 1.2rem;
}

.legal-box p {
  margin-bottom: 0.4rem;
}

/* Responsive */
@media (max-width: 768px) {
  .game-details-layout {
    flex-direction: column;
    align-items: center;
  }

  .game-screenshot-container {
    max-width: 260px;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 1.5rem 0;
  }

  .lang-switch {
    top: 1rem;
    right: 1rem;
  }

  header {
    padding-top: 2.5rem;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
  }

  .brand-logo {
    width: clamp(220px, 75vw, 300px);
  }

  .hero {
    padding: 2.5rem 1.2rem;
  }

  .hero h2 {
    font-size: 1.7rem;
  }

  .game-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
  }

  .game-icon {
    width: 80px;
    height: 80px;
  }

  .game-panel {
    padding: 1.5rem;
  }
}