/* ============================================================
   EZLove — стили для страниц игр
   ============================================================ */

:root {
  --bg: #0b0e1a;
  --bg-deep: #05070f;
  --surface: #13182b;
  --surface-2: #1a2036;
  --fg: #e8eaf0;
  --muted: #9aa0b4;
  --accent: #00f0ff;
  --accent-2: #ff00b8;
  --border: #232838;
  --radius: 16px;
}

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

body {
  background: var(--bg-deep);
  color: var(--fg);
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ============================================================
   Container
   ============================================================ */

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

/* ============================================================
   Header
   ============================================================ */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.header a {
  color: var(--fg);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
}

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

.header .badge {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================================
   Hero (иконка + H1)
   ============================================================ */

.hero {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.game-icon {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b0e1a;
  flex-shrink: 0;
  box-shadow: 0 8px 32px rgba(0, 240, 255, 0.2);
}

.hero-text {
  flex: 1;
  min-width: 240px;
}

h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 8px;
}

.hero-subtitle {
  font-size: 15px;
  color: var(--muted);
}

/* ============================================================
   Intro
   ============================================================ */

.intro {
  font-size: 17px;
  color: var(--fg);
  margin-bottom: 40px;
  padding: 20px 24px;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
}

/* ============================================================
   Section
   ============================================================ */

.section {
  margin-bottom: 40px;
}

.section h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.section h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border-radius: 2px;
  margin-right: 12px;
  vertical-align: middle;
  transform: translateY(-2px);
}

/* ============================================================
   Card
   ============================================================ */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.card p {
  color: var(--muted);
  font-size: 15px;
}

/* ============================================================
   Ordered list (Как найти)
   ============================================================ */

.howto {
  list-style: none;
  counter-reset: step;
}

.howto li {
  counter-increment: step;
  position: relative;
  padding: 16px 20px 16px 64px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--fg);
}

.howto li::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b0e1a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}

/* ============================================================
   Pros / Cons
   ============================================================ */

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .pros-cons {
    grid-template-columns: 1fr;
  }
}

.pros,
.cons {
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.pros {
  background: rgba(0, 240, 255, 0.05);
  border-color: rgba(0, 240, 255, 0.2);
}

.cons {
  background: rgba(255, 0, 184, 0.05);
  border-color: rgba(255, 0, 184, 0.2);
}

.pros h3,
.cons h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.pros h3 {
  color: var(--accent);
}

.cons h3 {
  color: var(--accent-2);
}

.pros p,
.cons p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* ============================================================
   Tip
   ============================================================ */

.tip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
}

.tip::before {
  content: '💡';
  font-size: 24px;
  display: block;
  margin-bottom: 12px;
}

.tip p {
  font-size: 15px;
  color: var(--fg);
  margin: 0;
}

/* ============================================================
   CTA
   ============================================================ */

.cta {
  display: block;
  margin: 40px 0;
  padding: 24px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(255, 0, 184, 0.1));
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: var(--radius);
  text-align: center;
  text-decoration: none;
  color: var(--fg);
  transition: transform 0.2s, box-shadow 0.2s;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 240, 255, 0.15);
}

.cta-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.cta-subtitle {
  font-size: 14px;
  color: var(--muted);
}

.cta-btn {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 28px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #0b0e1a;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
}

/* ============================================================
   Related games
   ============================================================ */

.related {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.related h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 600px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}

.related-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--fg);
  transition: border-color 0.2s, transform 0.2s;
}

.related-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.related-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b0e1a;
  flex-shrink: 0;
}

.related-name {
  font-size: 14px;
  font-weight: 600;
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.footer a {
  color: var(--accent);
  text-decoration: none;
  margin: 0 8px;
}

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

/* ============================================================
   Cards grid (maps, roles)
   ============================================================ */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (max-width: 600px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.info-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--accent);
}

.info-card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

/* ============================================================
   FAQ
   ============================================================ */

.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
}

.faq-item h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--fg);
}

.faq-item p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}