/* Martin Casino — Global Styles */
:root {
  --bg: #0c0e17;
  --bg-header: #090b12;
  --bg-footer: #090b12;
  --bg-card: #141926;
  --bg-surf: #1b2234;
  --bg-surf2: #242e47;
  --accent: #ff9f00;
  --accent2: #3b51f1;
  --accent-gold: #ffcc00;
  --neon: #2b66ff;
  --success: #10b981;
  --text: #ffffff;
  --text-light: #ffffff;
  --text2: #8a94a6;
  --border: rgba(138, 148, 166, 0.15);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
  --radius: 12px;
  --radius-sm: 8px;
  --container: 1200px;
}

* { 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, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent-gold); }

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

/* ---------- HEADER ---------- */
.site-header {
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo-link { display: inline-flex; align-items: center; }
.logo-img { height: 40px; width: auto; display: block; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  transition: color .2s ease;
}
.main-nav a:hover { color: var(--accent); }

.play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 26px;
  background: linear-gradient(135deg, var(--accent) 0%, #ff8500 100%);
  color: #0c0e17 !important;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: .5px;
  font-size: 14px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(255, 159, 0, .35);
  transition: transform .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.play-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(255, 159, 0, .5);
  color: #0c0e17 !important;
}

.burger-btn {
  display: none;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}
.burger-btn span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.burger-btn.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger-btn.open span:nth-child(2) { opacity: 0; }
.burger-btn.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu {
  display: none;
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
}
.mobile-menu.open { display: block; }
.mobile-menu ul {
  list-style: none;
  padding: 8px 20px 20px;
}
.mobile-menu li { border-bottom: 1px solid var(--border); }
.mobile-menu li:last-child { border-bottom: none; }
.mobile-menu a {
  display: block;
  color: var(--text);
  padding: 14px 4px;
  font-size: 16px;
  font-weight: 500;
}

/* ---------- HERO ---------- */
.hero {
  padding: 48px 0 40px;
  background:
    radial-gradient(circle at 15% 20%, rgba(59, 81, 241, .18), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(255, 159, 0, .12), transparent 45%),
    var(--bg);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero-text h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #fff 0%, #ffcc00 60%, #ff9f00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-text p { color: var(--text2); font-size: 17px; margin-bottom: 14px; }
.hero-cta { margin-top: 22px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn-secondary {
  padding: 11px 22px;
  background: var(--accent2);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .5px;
  transition: background .2s ease;
}
.btn-secondary:hover { background: #4a60ff; color: #fff; }
.hero-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

/* ---------- SECTIONS ---------- */
.section { padding: 44px 0; }
.section-alt { background: var(--bg-card); }

h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}
h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  margin: 36px 0 16px;
  color: var(--text);
  line-height: 1.25;
}
h2::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 22px;
  background: var(--accent);
  margin-right: 12px;
  border-radius: 3px;
  vertical-align: middle;
}
h3 {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  margin: 26px 0 12px;
  color: var(--accent-gold);
}

p { margin-bottom: 14px; color: #d5d9e3; }
p strong { color: var(--text); }

ul, ol { margin: 14px 0 20px 22px; color: #d5d9e3; }
li { margin-bottom: 8px; }

/* Tables */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 20px 0 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  min-width: 480px;
}
th, td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
th {
  background: var(--bg-surf);
  color: var(--accent-gold);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: .4px;
}
tr:last-child td { border-bottom: none; }
td { color: #d5d9e3; }

/* Cards / grids */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 24px 0;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}
.card h3 { margin-top: 0; color: var(--accent); }
.card p { font-size: 14px; margin-bottom: 0; }

/* FAQ */
.faq { margin: 28px 0; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-q {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 16px;
}
.faq-q::after {
  content: "+";
  color: var(--accent);
  font-size: 22px;
  font-weight: 300;
  transition: transform .2s ease;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  color: #d5d9e3;
  font-size: 15px;
}
.faq-item.open .faq-a { padding: 0 20px 18px; max-height: 500px; }

/* Final CTA */
.final-cta {
  padding: 50px 0;
  background: linear-gradient(135deg, rgba(59, 81, 241, .15), rgba(255, 159, 0, .10)), var(--bg-card);
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.final-cta h2 {
  border: none;
  margin-bottom: 14px;
  font-size: clamp(24px, 3vw, 34px);
}
.final-cta h2::before { display: none; }
.final-cta p { max-width: 600px; margin: 0 auto 24px; color: var(--text2); font-size: 16px; }
.final-cta .play-btn { font-size: 16px; padding: 15px 40px; }

/* Info block / highlights */
.highlight {
  background: var(--bg-surf);
  border-left: 4px solid var(--accent);
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  margin: 22px 0;
  color: #e5e7ec;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--border);
  padding: 40px 0 20px;
  margin-top: 40px;
  color: var(--text2);
  font-size: 14px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.footer-brand img { height: 42px; width: auto; margin-bottom: 14px; }
.footer-brand p { font-size: 13px; color: var(--text2); }
.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
}
.footer-nav a { color: var(--text2); font-size: 14px; padding: 4px 0; display: block; }
.footer-nav a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--text2);
}
.age-badge {
  display: inline-block;
  background: var(--accent);
  color: #0c0e17;
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 12px;
  margin-right: 8px;
}

/* 404 */
.err-wrap {
  text-align: center;
  padding: 80px 20px;
}
.err-code {
  font-size: clamp(90px, 18vw, 180px);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 14px;
}
.err-wrap h1 { font-size: 32px; margin-bottom: 12px; border: none; }
.err-wrap h1::before { display: none; }
.err-wrap p { color: var(--text2); max-width: 500px; margin: 0 auto 26px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding: 32px 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-nav { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .burger-btn { display: block; }
  .header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
  }
  .logo-link { justify-self: start; }
  .play-btn { justify-self: center; padding: 9px 18px; font-size: 13px; }
  .burger-btn { justify-self: end; }
  .section { padding: 32px 0; }
  h2 { font-size: 22px; margin-top: 28px; }
  h3 { font-size: 18px; }
  th, td { padding: 10px 12px; font-size: 14px; }
  .final-cta { padding: 36px 0; }
  .footer-nav { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: left; }
}

@media (max-width: 420px) {
  .container { padding: 0 14px; }
  .play-btn { padding: 8px 12px; font-size: 12px; letter-spacing: .3px; }
  .logo-img { height: 34px; }
  .hero-text h1 { font-size: 26px; }
  .btn-secondary { padding: 10px 16px; font-size: 13px; }
}
