:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #1d2433;
  --muted: #687286;
  --primary: #173d8f;
  --primary-2: #0d60d8;
  --line: #dce3f0;
  --green: #149a55;
  --yellow: #c88b00;
  --red: #cf3b3b;
  --shadow: 0 12px 35px rgba(17, 30, 68, 0.08);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  background: linear-gradient(180deg, #f7f9fd 0%, #edf2fb 100%);
  color: var(--text);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(220,227,240,0.7);
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; font-size: 22px;
  box-shadow: var(--shadow);
}
.brand strong { display: block; font-size: 16px; }
.brand small { color: var(--muted); font-size: 12px; }
.main-nav { display: flex; flex-wrap: wrap; gap: 18px; }
.main-nav a { color: var(--muted); font-weight: 600; font-size: 14px; }
.main-nav a:hover { color: var(--primary-2); }

.hero { padding: 42px 0 24px; }
.hero-grid {
  display: grid; grid-template-columns: 1.3fr .9fr; gap: 28px; align-items: stretch;
}
.hero-copy, .hero-card, .content-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
}
.hero-copy { padding: 34px; }
.eyebrow {
  display: inline-block; margin-bottom: 14px; font-size: 12px; font-weight: 800;
  color: var(--primary-2); letter-spacing: .08em;
}
.hero-copy h1 { margin: 0 0 14px; font-size: clamp(30px, 4vw, 48px); line-height: 1.05; }
.hero-copy p { margin: 0; font-size: 17px; line-height: 1.7; color: #41506a; }
.hero-meta {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0 22px;
}
.hero-meta > div {
  padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: #f8faff;
}
.meta-label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  border: 0; border-radius: 16px; padding: 14px 20px; font-weight: 800; cursor: pointer; font-size: 15px;
}
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; }
.btn-secondary { background: #eef4ff; color: var(--primary); }

.hero-card { padding: 24px; display: flex; flex-direction: column; }
.hero-card-top { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.pill {
  display: inline-flex; align-items: center; padding: 8px 12px; border-radius: 999px;
  background: #edf3ff; color: var(--primary); font-size: 12px; font-weight: 800;
}
.pill-alt { background: #eef9f2; color: var(--green); }
.hero-image { border-radius: 18px; border: 1px solid var(--line); background: #f8faff; }
.hero-card-content { margin-top: 18px; }
.hero-card-content p { color: #495872; line-height: 1.7; }
.hero-card-content ul { margin: 14px 0 0; padding-left: 18px; color: #495872; line-height: 1.8; }

.article-intro {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 24px; padding: 6px 0 34px;
}
.feature-image-box, .intro-text {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px;
}
.feature-image { border-radius: 18px; border: 1px solid var(--line); }
.intro-text p { margin: 0 0 14px; line-height: 1.9; color: #43516b; }
.intro-text p:last-child { margin-bottom: 0; }

.panel-section { padding: 8px 0 24px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 20px; }
.section-head h2 { margin: 6px 0 0; font-size: 32px; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-weight: 600; font-size: 13px; }
.dot { width: 10px; height: 10px; display: inline-block; border-radius: 999px; margin-right: 6px; }
.dot-green { background: var(--green); }
.dot-yellow { background: var(--yellow); }
.dot-red { background: var(--red); }

.games-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.game-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  border: 1px solid rgba(220,227,240,.6);
}
.game-header {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 18px 20px 14px; border-bottom: 1px solid var(--line);
}
.game-title { margin: 0; font-size: 18px; }
.risk-badge {
  padding: 8px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; color: #fff;
}
.risk-low { background: var(--green); }
.risk-medium { background: var(--yellow); }
.risk-high { background: var(--red); }
.game-body { padding: 18px 20px 20px; }
.teams-line { font-size: 15px; color: #3b4860; margin-bottom: 14px; }
.prob-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.prob-box {
  padding: 14px 10px; border-radius: 18px; text-align: center; background: #f8faff; border: 1px solid var(--line);
}
.prob-box span { display: block; color: var(--muted); font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.prob-box strong { font-size: 24px; display: block; }
.prob-box.highlight-1 { background: #eef9f2; border-color: rgba(20,154,85,.25); }
.prob-box.highlight-x { background: #fff9eb; border-color: rgba(200,139,0,.25); }
.prob-box.highlight-2 { background: #fff1f1; border-color: rgba(207,59,59,.2); }
.analysis-note {
  margin-top: 16px; padding: 14px 16px; border-radius: 16px; background: #f3f7ff; color: #3f4f69; line-height: 1.7;
}
.analysis-note strong { color: var(--primary); }

.lower-grid, .editorial-section {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; padding: 8px 0 24px;
}
.content-card { padding: 26px; }
.content-card h3 { margin-top: 0; margin-bottom: 16px; font-size: 26px; }
.price-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px;
}
.price-item {
  background: #f8faff; border: 1px solid var(--line); border-radius: 18px; padding: 18px;
}
.price-item span, .price-item small { display: block; color: var(--muted); }
.price-item strong { display: block; margin: 8px 0 6px; font-size: 24px; color: var(--primary); }
.content-card p { margin: 0; color: #43516b; line-height: 1.85; }
.strategy-list { margin: 0 0 18px; padding-left: 18px; color: #44546d; line-height: 1.9; }
.generated-box {
  margin-top: 16px; padding: 18px; border-radius: 18px; background: linear-gradient(180deg, #f8fbff 0%, #edf4ff 100%);
  border: 1px solid var(--line);
}
.generated-box h4 { margin: 0 0 8px; font-size: 18px; }
.notice-box {
  margin-top: 16px; padding: 16px 18px; border-radius: 18px; background: #fff7e9; color: #6c4b00; border: 1px solid #f2d99b;
}

.site-footer {
  margin-top: 18px; padding: 28px 0 42px; border-top: 1px solid rgba(220,227,240,.8);
}
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.site-footer p { color: #58647b; line-height: 1.7; }
code { background: #eef4ff; color: var(--primary); padding: 2px 8px; border-radius: 8px; }

@media (max-width: 980px) {
  .hero-grid, .article-intro, .lower-grid, .editorial-section, .footer-grid { grid-template-columns: 1fr; }
  .games-grid { grid-template-columns: 1fr; }
  .section-head { align-items: start; flex-direction: column; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .hero-copy, .hero-card, .feature-image-box, .intro-text, .content-card { padding: 20px; }
  .hero-meta, .price-grid { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: 32px; }
  .section-head h2, .content-card h3 { font-size: 24px; }
}
