/* Mellstroy Casino — mobile-first, SEO-friendly */

:root {
  --bg-dark: #0d0d12;
  --bg-card: #16161f;
  --bg-card-hover: #1c1c28;
  --gold: #e8b923;
  --gold-light: #f5d654;
  --gold-dark: #c49a0f;
  --accent: #ff3366;
  --accent-soft: rgba(255, 51, 102, 0.15);
  --green: #22c55e;
  --purple: #a855f7;
  --purple-soft: rgba(168, 85, 247, 0.2);
  --text: #e8e6e3;
  --text-muted: #9ca3af;
  --border: rgba(255, 255, 255, 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: clamp(0.9375rem, 2.5vw, 1.0625rem);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--gold);
  color: var(--bg-dark);
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top var(--transition);
}
.skip-link:focus {
  top: 16px;
}

.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 13, 18, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 52px;
}

.logo {
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo-text {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--gold);
}
.logo-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: var(--transition);
}
.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;
  width: min(280px, 85vw);
  background: var(--bg-card);
  padding: 70px 24px 24px;
  transform: translateX(100%);
  transition: transform var(--transition);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.5);
}
.nav.is-open {
  transform: translateX(0);
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-list a {
  display: block;
  padding: 14px 16px;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: background var(--transition), color var(--transition);
}
.nav-list a:hover {
  background: var(--bg-card-hover);
  color: var(--gold);
}
.btn-header {
  margin-top: 12px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--bg-dark) !important;
  text-align: center;
}
.btn-header:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--bg-dark) !important;
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(48px, 12vw, 80px) 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--purple-soft), transparent),
    radial-gradient(ellipse 60% 40% at 80% 60%, var(--accent-soft), transparent),
    radial-gradient(ellipse 50% 30% at 20% 80%, rgba(232, 185, 35, 0.12), transparent);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  text-align: center;
}

.hero-title {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--text);
  max-width: 20ch;
  margin-left: auto;
  margin-right: auto;
  min-height: 2.6em;
}
.hero-title strong,
.hero-lead .highlight {
  color: var(--gold);
}

.hero-lead {
  margin: 0 0 28px;
  color: var(--text-muted);
  font-size: clamp(0.9375rem, 2.2vw, 1.0625rem);
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
  min-height: 3.2em;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--bg-dark);
  box-shadow: 0 4px 20px rgba(232, 185, 35, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232, 185, 35, 0.4);
}

.btn-telegram {
  background: #0088cc;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 136, 204, 0.4);
}
.btn-telegram:hover {
  background: #0099e0;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 136, 204, 0.5);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
  min-height: 52px;
}

/* Sections */
.section {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.section:last-of-type {
  border-bottom: none;
}

.section-title {
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  font-size: clamp(1.2rem, 3.5vw, 1.5rem);
  margin: 0 0 20px;
  color: var(--gold);
}

.text-block {
  margin: 0 0 1em;
  color: var(--text);
}
.text-block:last-child {
  margin-bottom: 0;
}

.list-features {
  margin: 16px 0 24px;
  padding-left: 1.4em;
  color: var(--text);
}
.list-features li {
  margin-bottom: 8px;
}

.list-providers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 16px 0 24px;
  padding: 0;
}
.list-providers li {
  padding: 10px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--gold-light);
  font-weight: 600;
}

/* Cards */
.cards {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color var(--transition), transform var(--transition);
}
.card:hover {
  border-color: rgba(232, 185, 35, 0.35);
  transform: translateY(-2px);
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--gold);
}
.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Sections accent */
.section.bonuses {
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.06) 0%, transparent 100%);
}
.section.payments ul {
  color: var(--text-muted);
}

/* Footer */
.footer {
  padding: 32px 20px;
  text-align: center;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.footer-text {
  margin: 0 0 8px;
  font-weight: 600;
  color: var(--text-muted);
}
.footer-copy {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  opacity: 0.8;
}

/* Desktop: show nav inline, hide toggle */
@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }

  .nav {
    position: static;
    width: auto;
    background: none;
    padding: 0;
    transform: none;
    box-shadow: none;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
  .nav-list a {
    padding: 8px 14px;
    font-size: 0.9375rem;
  }
  .btn-header {
    margin-top: 0;
    margin-left: 8px;
    padding: 10px 20px;
  }

  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .container {
    max-width: 900px;
    padding: 0 24px;
  }

  .hero-title {
    max-width: none;
  }
}

@media (min-width: 1100px) {
  .container {
    max-width: 1000px;
  }
}
