/* Mellstroy Casino — mobile-first, SEO-friendly */

:root {
  --bg-dark: #0d0a1a;
  --bg-card: #15102a;
  --bg-card-hover: #1c1638;
  --accent-gold: #e8b923;
  --accent-gold-dim: #c9a01e;
  --accent-purple: #8b5cf6;
  --accent-pink: #ec4899;
  --accent-cyan: #22d3ee;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border: rgba(248, 250, 252, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --transition: 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 9999;
  padding: 12px 20px;
  background: var(--accent-gold);
  color: var(--bg-dark);
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 16px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 10, 26, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  min-height: 2.6em;
}
.logo-text {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: var(--bg-dark);
  padding: 80px 24px 24px;
  visibility: hidden;
  opacity: 0;
  transition: var(--transition);
}
.nav.is-open {
  visibility: visible;
  opacity: 1;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nav-list a {
  display: block;
  padding: 14px 16px;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}
.nav-list a:hover {
  background: var(--bg-card);
  color: var(--accent-gold);
}
.nav-list a.nav-link-telegram {
  color: #0088cc;
}
.nav-list a.nav-link-telegram:hover {
  color: #22d3ee;
  background: rgba(0, 136, 204, 0.15);
}

@media (max-width: 767px) {
  .nav-list .nav-section {
    display: none;
  }
  .nav-toggle {
    display: none;
  }
}

.header-actions {
  display: flex;
  gap: 8px;
}
.header-actions .btn {
  padding: 10px 16px;
  font-size: 0.9rem;
  white-space: nowrap;
  min-height: 42px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  min-height: 48px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dim));
  color: var(--bg-dark);
  box-shadow: 0 4px 16px rgba(232, 185, 35, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(232, 185, 35, 0.45);
}
.btn-outline {
  background: transparent;
  color: var(--accent-gold);
  border: 2px solid var(--accent-gold);
}
.btn-outline:hover {
  background: rgba(232, 185, 35, 0.1);
}
.btn-telegram {
  background: #0088cc;
  color: #fff;
  border: none;
}
.btn-telegram:hover {
  background: #006699;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 136, 204, 0.4);
}
.btn-lg {
  padding: 16px 32px;
  font-size: 1.1rem;
  min-height: 52px;
}

/* Main */
.main {
  padding-bottom: 48px;
}

.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 64px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(139, 92, 246, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(236, 72, 153, 0.2) 0%, transparent 45%),
    radial-gradient(ellipse 50% 30% at 20% 80%, rgba(232, 185, 35, 0.15) 0%, transparent 40%),
    var(--bg-dark);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 560px;
}

.hero-title {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 5vw, 2.25rem);
  line-height: 1.2;
  margin: 0 0 16px;
  min-height: 2.5em;
  background: linear-gradient(135deg, #fff 0%, var(--accent-gold) 50%, var(--accent-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  margin: 0 0 28px;
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.hero-cta .btn {
  min-width: 200px;
}

/* Sections */
.section {
  padding: 48px 0;
}
.section:nth-of-type(even) {
  background: rgba(21, 16, 42, 0.5);
}

.section-title {
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  margin: 0 0 20px;
  min-height: 1.3em;
  color: var(--text-primary);
}

.section-intro {
  color: var(--text-secondary);
  margin: 0 0 24px;
}

.content-block {
  color: var(--text-secondary);
}
.content-block a.anchor-highlight {
  color: var(--accent-gold);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--accent-gold);
  transition: var(--transition);
}
.content-block a.anchor-highlight:hover {
  color: var(--accent-cyan);
  border-bottom-color: var(--accent-cyan);
}
.content-block p {
  margin: 0 0 16px;
}
.content-block p:last-child {
  margin-bottom: 0;
}

.content-note {
  margin-top: 24px;
  padding: 16px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--accent-gold);
  font-size: 0.95rem;
}

/* Bonus cards */
.bonus-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.bonus-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: var(--transition);
}
.bonus-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(232, 185, 35, 0.3);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.bonus-icon {
  display: inline-block;
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.bonus-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--text-primary);
}

.bonus-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Lists */
.check-list,
.provider-list {
  margin: 0 0 16px;
  padding-left: 24px;
}
.check-list li,
.provider-list li {
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.games-popular {
  padding: 14px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.1));
  border-radius: var(--radius-sm);
}

/* Support */
.support-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.support-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}
.support-icon {
  font-size: 1.5rem;
}

/* Footer */
.footer {
  padding: 32px 20px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.logo-footer {
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  color: var(--accent-gold);
  text-decoration: none;
}

.footer-age {
  font-weight: 700;
  color: var(--accent-pink);
  margin: 0;
}

.footer-legal,
.footer-copy {
  margin: 0 0 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-copy {
  margin-bottom: 0;
}

/* Desktop: show nav inline, hide toggle */
@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .nav {
    position: static;
    visibility: visible;
    opacity: 1;
    padding: 0;
    background: transparent;
  }

  .nav-list {
    flex-direction: row;
    gap: 4px;
  }

  .nav-list a {
    padding: 8px 14px;
  }

  .header-inner {
    padding: 16px 24px;
  }

  .section {
    padding: 64px 0;
  }

  .container {
    padding: 0 24px;
  }

  .bonus-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .bonus-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-title {
    font-size: 2.5rem;
  }
}
