:root {
  --bg: #ffffff;
  --bg-header-start: #611051;
  --bg-header-end: #e52817;
  --bg-footer: #ffffff;
  --bg-card: #ffffff;
  --bg-surf: #f8f9fa;
  --bg-surf2: #edf2f7;
  --accent: #ff0000;
  --accent2: #ff5722;
  --accent-gold: #ffcc00;
  --success: #10b981;
  --text: #2d3748;
  --text-light: #ffffff;
  --text2: #4a5568;
  --border: #e2e8f0;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

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

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: linear-gradient(90deg, var(--bg-header-start) 0%, var(--bg-header-end) 100%);
  color: var(--text-light);
  padding: 14px 0;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 10;
}

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

.logo-link { display: inline-flex; align-items: center; }
.logo-img { height: 40px; width: auto; }

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 22px;
  align-items: center;
}

.main-nav a {
  color: var(--text-light);
  font-weight: 600;
  font-size: 15px;
  padding: 6px 2px;
  transition: opacity .2s;
}
.main-nav a:hover { opacity: .85; text-decoration: none; }

.play-btn {
  display: inline-block;
  background: var(--accent);
  color: var(--text-light) !important;
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .5px;
  box-shadow: 0 4px 10px rgba(255, 0, 0, .35);
  transition: transform .15s, box-shadow .15s;
  border: none;
  cursor: pointer;
}
.play-btn:hover {
  background: #d90000;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(255, 0, 0, .45);
}

.burger-btn {
  display: none;
  background: transparent;
  border: 0;
  color: var(--text-light);
  cursor: pointer;
  padding: 6px;
  width: 40px;
  height: 40px;
}
.burger-btn span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--text-light);
  margin: 5px auto;
  border-radius: 2px;
}

.mobile-menu {
  display: none;
  background: linear-gradient(180deg, var(--bg-header-start) 0%, #4a0d3f 100%);
  color: var(--text-light);
}
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; padding: 10px 20px 20px; }
.mobile-menu li { border-bottom: 1px solid rgba(255,255,255,.12); }
.mobile-menu li:last-child { border: 0; }
.mobile-menu a {
  color: var(--text-light);
  display: block;
  padding: 12px 4px;
  font-weight: 600;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #611051 0%, #a01d3b 55%, #e52817 100%);
  color: var(--text-light);
  padding: 60px 0;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero h1 {
  font-size: 42px;
  line-height: 1.15;
  margin-bottom: 16px;
  font-weight: 800;
}
.hero p.lead {
  font-size: 18px;
  margin-bottom: 24px;
  opacity: .95;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--text-light) !important;
  border: 2px solid var(--text-light);
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 15px;
}
.btn-secondary:hover { background: rgba(255,255,255,.12); text-decoration: none; }

.hero-image img {
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,.25);
}

/* Page hero (inner pages) */
.page-hero {
  background: linear-gradient(90deg, var(--bg-header-start) 0%, var(--bg-header-end) 100%);
  color: var(--text-light);
  padding: 44px 0;
}
.page-hero h1 {
  font-size: 34px;
  margin-bottom: 10px;
  font-weight: 800;
}
.page-hero p { font-size: 17px; opacity: .95; max-width: 780px; }

/* Content */
main.content { padding: 44px 0; }
.article h1, .article h2, .article h3 {
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
}
.article h1 { font-size: 34px; margin: 0 0 18px; }
.article h2 {
  font-size: 26px;
  margin: 38px 0 14px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--accent);
  display: inline-block;
}
.article h3 { font-size: 20px; margin: 26px 0 10px; color: var(--accent2); }

.article p { margin: 0 0 14px; color: var(--text); }
.article ul, .article ol { margin: 12px 0 18px 22px; }
.article li { margin-bottom: 6px; }

.article a { color: var(--accent); font-weight: 600; }

.callout {
  background: var(--bg-surf);
  border-left: 4px solid var(--accent2);
  padding: 18px 22px;
  border-radius: 6px;
  margin: 22px 0;
  box-shadow: var(--shadow);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 26px 0;
}
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 22px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: transform .2s;
}
.info-card:hover { transform: translateY(-3px); }
.info-card .num {
  display: inline-block;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent2) 100%);
  color: var(--text-light);
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  margin-bottom: 10px;
}
.info-card h3 { margin: 0 0 8px; color: var(--text); font-size: 18px; }

.table-wrapper { width: 100%; overflow-x: auto; margin: 20px 0; }
.article table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  min-width: 500px;
}
.article th, .article td {
  padding: 12px 14px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.article th {
  background: linear-gradient(90deg, var(--bg-header-start) 0%, var(--bg-header-end) 100%);
  color: var(--text-light);
  font-weight: 700;
}
.article tr:nth-child(even) td { background: var(--bg-surf); }

.article .image-block { margin: 24px 0; }
.article .image-block img { border-radius: 10px; box-shadow: var(--shadow); }

.cta-block {
  background: linear-gradient(135deg, var(--bg-header-start) 0%, var(--bg-header-end) 100%);
  color: var(--text-light);
  padding: 40px 30px;
  border-radius: 12px;
  text-align: center;
  margin: 40px 0;
  box-shadow: 0 10px 24px rgba(97, 16, 81, .35);
}
.cta-block h2 { color: var(--text-light); border: 0; display: block; margin-bottom: 14px; }
.cta-block p { font-size: 17px; margin-bottom: 22px; opacity: .95; }
.cta-block .play-btn { padding: 14px 32px; font-size: 16px; background: var(--accent-gold); color: var(--text) !important; box-shadow: 0 6px 14px rgba(255, 204, 0, .4); }
.cta-block .play-btn:hover { background: #ffdb33; color: var(--text) !important; }

/* FAQ */
.faq { margin: 32px 0; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
  padding: 18px 22px;
  box-shadow: var(--shadow);
}
.faq-item h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 17px;
}
.faq-item p { margin: 0; color: var(--text2); }

/* Footer */
.site-footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--border);
  padding: 30px 0 20px;
  color: var(--text2);
  font-size: 14px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
}
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  gap: 10px 22px;
}
.footer-nav a { color: var(--text2); font-weight: 500; }
.footer-nav a:hover { color: var(--accent); text-decoration: none; }
.footer-disclaimer {
  max-width: 900px;
  font-size: 13px;
  color: var(--text2);
  line-height: 1.55;
  padding: 14px 18px;
  background: var(--bg-surf);
  border-radius: 8px;
}
.footer-copy { font-size: 13px; }

/* 404 */
.err-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}
.err-code {
  font-size: 120px;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(90deg, var(--bg-header-start) 0%, var(--bg-header-end) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 10px;
}
.err-title { font-size: 30px; margin-bottom: 12px; }
.err-msg { max-width: 520px; margin: 0 auto 22px; color: var(--text2); }

/* Play redirect page */
.redirect-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}
.spinner {
  width: 46px;
  height: 46px;
  border: 4px solid var(--bg-surf2);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 0 auto 22px;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Responsive */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .burger-btn { display: inline-flex; align-items: center; justify-content: center; }
  .hero-inner { grid-template-columns: 1fr; text-align: left; }
  .hero h1 { font-size: 30px; }
  .info-grid { grid-template-columns: 1fr; }
  .header-inner { gap: 8px; }
  .play-btn { padding: 8px 16px; font-size: 14px; }
  .logo-img { height: 36px; }
  .page-hero h1 { font-size: 26px; }
  .article h1 { font-size: 26px; }
  .article h2 { font-size: 22px; }
  .article h3 { font-size: 18px; }
  .err-code { font-size: 88px; }
}

@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .hero { padding: 40px 0; }
  .hero h1 { font-size: 26px; }
  .play-btn { padding: 8px 14px; font-size: 13px; letter-spacing: .3px; }
  .cta-block { padding: 28px 18px; }
  .cta-block h2 { font-size: 22px; }
}
