/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 100%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #0f0f1a;
  color: #e0e0e0;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4 { line-height: 1.2; color: #f0f0f0; }
h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); margin-bottom: 1.5rem; position: relative; display: inline-block; }
h2::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #9b5de5, #f15bb5);
  border-radius: 2px;
}
h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }
a { color: #b983ff; text-decoration: none; transition: color 0.2s; }
a:hover { color: #d4b8ff; }

/* Header */
.site-header {
  background: rgba(20, 20, 35, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #2a2a3e;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: #f0f0f0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.main-nav a {
  font-weight: 500;
  color: #b0b0cc;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.main-nav a.active,
.main-nav a:hover {
  color: #f0f0f0;
  border-bottom-color: #9b5de5;
}

/* Hero */
.hero {
  padding: 4rem 0 2rem;
  text-align: center;
  background: radial-gradient(circle at 20% 30%, #1e1e3a, #0f0f1a);
}
.subtitle {
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  color: #b0b0cc;
}

/* Tool Section */
.tool-section {
  padding: 3rem 0;
}
.tool-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  align-items: start;
}
.game-inputs {
  background: #1a1a2e;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid #2a2a3e;
}
.input-group {
  margin-bottom: 1.2rem;
}
.input-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #c0c0dd;
  font-size: 0.9rem;
}
.input-group input[type="text"],
.input-group select {
  width: 100%;
  padding: 0.7rem 0.8rem;
  background: #111122;
  border: 1px solid #3a3a5a;
  border-radius: 8px;
  color: #f0f0f0;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}
.input-group input[type="text"]:focus,
.input-group select:focus {
  outline: none;
  border-color: #9b5de5;
}
.input-group input[type="range"] {
  width: 100%;
  accent-color: #9b5de5;
}
.range-value {
  display: inline-block;
  margin-left: 0.5rem;
  font-weight: 600;
  color: #f15bb5;
  min-width: 40px;
}
.btn {
  padding: 0.7rem 1.4rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  font-size: 0.95rem;
}
.btn.primary {
  background: linear-gradient(135deg, #9b5de5, #f15bb5);
  color: #fff;
}
.btn.primary:hover {
  background: linear-gradient(135deg, #b07cf0, #f582c0);
  transform: translateY(-1px);
}
.btn.secondary {
  background: #2a2a3e;
  color: #e0e0e0;
  border: 1px solid #3a3a5a;
}
.btn.secondary:hover {
  background: #3a3a5a;
}

/* Matrix */
.matrix-container {
  background: #1a1a2e;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid #2a2a3e;
}
.matrix-header h3 {
  margin-bottom: 0.2rem;
}
.matrix-subtitle {
  color: #8888aa;
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}
.matrix-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 0.8rem;
}
.quadrant {
  background: #111122;
  border-radius: 10px;
  padding: 1rem;
  border: 1px solid #2a2a3e;
  min-height: 120px;
}
.quadrant h4 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
  color: #c0c0dd;
}
.quadrant-desc {
  font-size: 0.8rem;
  color: #8888aa;
  margin-bottom: 0.8rem;
}
.game-list {
  list-style: none;
  font-size: 0.85rem;
}
.game-list li {
  padding: 0.3rem 0;
  border-bottom: 1px solid #2a2a3e;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.game-list li:last-child { border-bottom: none; }
.remove-game {
  background: none;
  border: none;
  color: #f15bb5;
  cursor: pointer;
  font-size: 0.8rem;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background 0.2s;
}
.remove-game:hover {
  background: #2a2a3e;
}
.recommendation-box {
  margin-top: 1.5rem;
  background: linear-gradient(135deg, #2a1a3e, #1a1a2e);
  border: 1px solid #9b5de5;
  border-radius: 12px;
  padding: 1.2rem;
  text-align: center;
}
.recommendation-box h3 {
  color: #f15bb5;
}
#top-pick-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: #f0f0f0;
}
.reset-section {
  margin-top: 1.5rem;
  text-align: center;
}

/* How It Works & Why Use */
.how-it-works,
.why-use {
  padding: 3rem 0;
  background: #14142a;
}
.steps,
.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.step,
.benefit {
  background: #1a1a2e;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid #2a2a3e;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #9b5de5, #f15bb5);
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  color: #fff;
}

/* Footer */
.site-footer {
  background: #0a0a14;
  padding: 2rem 0;
  margin-top: auto;
  border-top: 1px solid #2a2a3e;
  text-align: center;
}
.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}
.footer-nav {
  display: flex;
  gap: 1.5rem;
}
.footer-nav a {
  color: #b0b0cc;
  font-size: 0.9rem;
}
.footer-nav a:hover {
  color: #d4b8ff;
}

/* Responsive */
@media (max-width: 800px) {
  .tool-layout {
    grid-template-columns: 1fr;
  }
  .matrix-grid {
    grid-template-columns: 1fr;
  }
  .site-header .container {
    flex-direction: column;
    gap: 0.5rem;
  }
  .main-nav ul {
    justify-content: center;
  }
}

@media (max-width: 500px) {
  .container {
    padding: 0 1rem;
  }
  .hero {
    padding: 2.5rem 0 1.5rem;
  }
}



/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
