/* ============================================
   GOA GAME — Premium Dark + Blue Theme
   Mobile-first | SEO-optimized | Accessible
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --blue-primary: #3b82f6;
  --blue-light: #60a5fa;
  --blue-dark: #2563eb;
  --blue-glow: #1d4ed8;
  --blue-gradient: linear-gradient(135deg, #3b82f6, #60a5fa);
  --blue-gradient-hover: linear-gradient(135deg, #60a5fa, #3b82f6);
  --cyan-accent: #0ea5e9;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f59e0b;
  --white: #ffffff;
  --font-primary: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, .1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .1);
  --shadow-blue: 0 4px 14px rgba(59, 130, 246, .15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --transition: .25s ease;
  --max-width: 1200px;
  --header-h: 64px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

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

a {
  color: var(--blue-light);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--cyan-accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
}

ul,
ol {
  list-style: none;
}

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

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
}

.section-alt {
  background: var(--bg-secondary);
}

.text-center {
  text-align: center;
}

.text-blue {
  color: var(--blue-light);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --- Typography --- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

h1 {
  font-size: 2rem;
  margin-bottom: 16px;
}

h2 {
  font-size: 1.65rem;
  margin-bottom: 14px;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

p {
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  display: inline-block;
  position: relative;
  padding-bottom: 12px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--blue-gradient);
  border-radius: 2px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: .95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.btn-primary {
  background: var(--blue-gradient);
  color: #ffffff !important;
  box-shadow: var(--shadow-blue);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .2);
}

.btn-primary:hover {
  background: var(--blue-gradient-hover);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(59, 130, 246, .35);
}

.btn-outline {
  border: 2px solid var(--blue-primary);
  color: var(--blue-primary) !important;
  background: transparent;
}

.btn-outline:hover {
  background: var(--blue-primary);
  color: #ffffff !important;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 22px;
  font-size: .85rem;
}

/* --- Header / Navbar --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--blue-primary);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  height: var(--header-h);
  transition: background var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.5px;
}

.logo span {
  color: var(--blue-light);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: rgba(255, 255, 255, .85);
  font-size: .9rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
}

.nav-cta {
  margin-left: 8px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all .3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
  padding: 120px 0 70px;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(59, 130, 246, .1) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(34, 211, 238, .06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  max-width: 650px;
}

.hero h1 {
  font-size: 2.2rem;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero h1 .highlight {
  background: var(--blue-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.08rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 560px;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-image {
  flex: 1;
  max-width: 480px;
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 14px 0;
  font-size: .82rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  margin-top: var(--header-h);
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--blue-light);
}

.breadcrumb span {
  margin: 0 6px;
}

/* --- Image Section --- */
.img-block {
  margin: 28px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
}

.img-block img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

.img-block figcaption {
  padding: 10px 16px;
  font-size: .82rem;
  color: var(--text-muted);
  text-align: center;
  background: var(--bg-card);
}

.content-img-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 28px 0;
}

/* --- Game Cards --- */
.game-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--blue-gradient);
  opacity: 0;
  transition: opacity var(--transition);
}

.game-card:hover {
  border-color: rgba(59, 130, 246, .3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-blue);
}

.game-card:hover::before {
  opacity: 1;
}

.game-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.game-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--blue-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--white);
  flex-shrink: 0;
}

.game-card-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.game-card-type {
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.game-card-details {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.game-card-detail {
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  flex: 1;
  min-width: 120px;
}

.game-card-detail-label {
  font-size: .72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 4px;
}

.game-card-detail-value {
  font-size: .95rem;
  font-weight: 600;
  color: var(--blue-light);
}

.game-card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
}

.star {
  color: var(--warning);
  font-size: .9rem;
}

.star.empty {
  color: var(--text-muted);
}

.game-card-rating span {
  font-size: .85rem;
  color: var(--text-secondary);
  margin-left: 6px;
}

/* --- Content Blocks --- */
.content-block {
  margin-bottom: 32px;
}

.content-block h2 {
  margin-bottom: 12px;
}

.content-block h3 {
  margin-bottom: 8px;
  color: var(--cyan-accent);
}

.content-block ul {
  margin: 12px 0 16px 20px;
}

.content-block ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.content-block ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--blue-light);
  font-weight: 700;
}

.content-block ol {
  margin: 12px 0 16px 20px;
  counter-reset: step;
}

.content-block ol li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  color: var(--text-secondary);
  counter-increment: step;
}

.content-block ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  background: var(--blue-gradient);
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Steps / Guide Cards --- */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 24px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--blue-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 14px;
}

.step-card h3 {
  color: var(--text-primary);
}

.step-card p {
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* --- Info Box --- */
.info-box {
  background: var(--bg-card);
  border-left: 4px solid var(--blue-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px;
  margin: 24px 0;
}

.info-box.warning {
  border-left-color: var(--danger);
}

.info-box.success {
  border-left-color: var(--success);
}

.info-box p {
  margin-bottom: 0;
}

/* --- FAQ --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item.active {
  border-color: rgba(59, 130, 246, .3);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  background: transparent;
  cursor: pointer;
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--blue-light);
}

.faq-icon {
  width: 24px;
  height: 24px;
  border: 2px solid var(--text-muted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all var(--transition);
}

.faq-item.active .faq-icon {
  border-color: var(--blue-light);
  color: var(--blue-light);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
}

.faq-answer-inner {
  padding: 0 22px 18px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(145deg, #0f1a35 0%, #0f1320 100%);
  text-align: center;
  padding: 70px 0;
  position: relative;
  overflow: hidden;
  color: var(--white);
}

.cta-section::before {
  content: '';
  position: absolute;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, .08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section h2 {
  font-size: 1.8rem;
  margin-bottom: 14px;
  color: var(--white);
}

.cta-section p {
  max-width: 520px;
  margin: 0 auto 28px;
  color: rgba(255, 255, 255, .9);
}

.cta-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* --- Feature Grid --- */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: rgba(59, 130, 246, .2);
  transform: translateY(-3px);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 14px;
  display: inline-block;
}

.feature-card h3 {
  color: var(--text-primary);
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-secondary);
  margin-bottom: 0;
  font-size: .92rem;
}

/* --- Table --- */
.table-wrapper {
  overflow-x: auto;
  margin: 20px 0;
  border-radius: var(--radius-md);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
}

th {
  background: rgba(59, 130, 246, .12);
  color: var(--blue-light);
  font-weight: 600;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 14px 18px;
  text-align: left;
}

td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: .9rem;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: rgba(255, 255, 255, .02);
}

/* --- Footer --- */
.footer {
  background: var(--blue-primary);
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 50px 0 24px;
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-col h4 {
  color: var(--white);
  font-size: .95rem;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--white);
}

.footer-col p {
  font-size: .88rem;
  color: rgba(255, 255, 255, .8);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, .8);
  font-size: .88rem;
  transition: color var(--transition);
}

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

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .82rem;
  color: rgba(255, 255, 255, .7);
}

.footer-bottom a {
  color: var(--white);
  text-decoration: underline;
}

/* --- Page Header (inner pages) --- */
.page-header {
  padding: 100px 0 50px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.page-header p {
  max-width: 600px;
  margin: 0 auto;
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--blue-gradient);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 999;
  box-shadow: var(--shadow-blue);
}

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

.back-to-top:hover {
  transform: translateY(-3px);
  color: var(--white);
}

/* --- Disclaimer --- */
.disclaimer {
  background: rgba(239, 68, 68, .08);
  border: 1px solid rgba(239, 68, 68, .2);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 24px 0;
  font-size: .88rem;
  color: var(--text-secondary);
}

.disclaimer strong {
  color: var(--danger);
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

@media (min-width: 768px) {
  h1 {
    font-size: 2.6rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .game-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-img-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding: 80px 0;
  }

  .hero {
    padding: 140px 0 90px;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 3.4rem;
  }

  .game-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }

  .container {
    padding: 0 32px;
  }

  .hero-image {
    display: block;
  }
}

/* Mobile Nav */
@media (max-width: 767px) {
  .hamburger {
    display: flex;
  }

  .hero-image {
    display: none;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 14, 23, .98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    transform: translateX(100%);
    transition: transform .35s ease;
    z-index: 999;
  }

  .nav-menu.open {
    transform: translateX(0);
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 16px 24px;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
    text-align: center;
  }

  .nav-links a.active::after {
    display: none;
  }

  .nav-cta {
    margin: 20px 0 0;
    width: calc(100% - 48px);
    text-align: center;
  }
}

/* Lazy Loading */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity .4s ease;
}

img.loaded,
img[loading="lazy"].loaded {
  opacity: 1;
}

/* Print */
@media print {

  .header,
  .footer,
  .back-to-top,
  .hamburger {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  a {
    color: #000;
  }
}