/* NV Casino — brand: deep violet + gold (from banners) */
:root {
  --bg: #10081c;
  --bg-elevated: #1a102e;
  --bg-soft: #24163d;
  --surface: #2a1a45;
  --text: #f5f0ff;
  --text-muted: #c4b8d9;
  --gold: #e0b43a;
  --gold-deep: #c9971f;
  --gold-soft: #f0d070;
  --violet: #7c4dff;
  --violet-deep: #5a2fd6;
  --border: rgba(224, 180, 58, 0.28);
  --header-h: 64px;
  --radius: 6px;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  --max: 1080px;
  --gutter: 20px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (min-width: 768px) {
  :root { --gutter: 24px; }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
}

body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(124, 77, 255, 0.18), transparent 60%),
    linear-gradient(180deg, #140a22 0%, var(--bg) 40%, #0c0614 100%);
  overflow-x: hidden;
}

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

a {
  color: var(--gold-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--gold);
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: calc(var(--gutter) + env(safe-area-inset-left, 0px));
  padding-right: calc(var(--gutter) + env(safe-area-inset-right, 0px));
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  min-height: var(--header-h);
  background: rgba(16, 8, 28, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  contain: layout style;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: var(--header-h);
  max-width: var(--max);
  margin: 0 auto;
  padding-left: calc(var(--gutter) + env(safe-area-inset-left, 0px));
  padding-right: calc(var(--gutter) + env(safe-area-inset-right, 0px));
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
  line-height: 0;
}

.brand:hover {
  opacity: 0.9;
  text-decoration: none;
}

.brand__logo {
  width: 110px;
  height: 54px;
  aspect-ratio: 144 / 71;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
}

.nav-toggle__icon {
  width: 20px;
  height: 2px;
  background: currentColor;
  position: relative;
  display: block;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: currentColor;
}

.nav-toggle__icon::before { top: -6px; }
.nav-toggle__icon::after { top: 6px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
  min-width: 0;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: var(--radius);
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--gold);
  background: rgba(224, 180, 58, 0.08);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none !important;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  line-height: 1.2;
}

.btn:hover {
  text-decoration: none !important;
  transform: translateY(-1px);
}

a.btn--primary,
.btn--primary {
  background: linear-gradient(180deg, #f3d56a 0%, #e0b43a 45%, #c9971f 100%);
  color: #1a0f00 !important;
  box-shadow: 0 4px 14px rgba(224, 180, 58, 0.35);
}

a.btn--primary:hover,
.btn--primary:hover {
  color: #1a0f00 !important;
  filter: brightness(1.05);
}

a.btn--ghost,
.btn--ghost {
  background: transparent;
  color: var(--text) !important;
  border-color: var(--border);
}

a.btn--ghost:hover,
.btn--ghost:hover {
  color: var(--gold) !important;
  border-color: var(--gold);
  background: rgba(224, 180, 58, 0.08);
}

.btn--xl {
  min-height: 52px;
  padding: 0 28px;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.btn--block {
  width: 100%;
  max-width: 360px;
}

/* —— Hero banner (CLS-safe) —— */
.hero {
  position: relative;
  padding: 12px calc(var(--gutter) + env(safe-area-inset-left, 0px)) 0 calc(var(--gutter) + env(safe-area-inset-right, 0px));
}

.hero__inner {
  max-width: var(--max);
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
}

.hero__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #1a102e;
  contain: layout paint;
}

@media (min-width: 768px) {
  .hero {
    padding-top: 16px;
  }

  .hero__media {
    aspect-ratio: 16 / 5;
  }
}

.hero__media picture,
.hero__media img {
  width: 100%;
  height: 100%;
  display: block;
}

.hero__media img {
  object-fit: cover;
  object-position: center;
}

.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 112px;
  padding: 16px var(--gutter);
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  text-align: center;
  contain: layout;
}

.hero__offer {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

.hero__offer strong {
  color: var(--gold);
  font-weight: 700;
}

.final-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 28px 0 8px;
  padding: 22px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  text-align: center;
}

.final-cta__text {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.45;
  color: #ffffff;
  font-weight: 600;
}

.final-cta__text strong {
  color: var(--gold-soft);
  font-weight: 800;
}

.final-cta .btn {
  width: 100%;
  max-width: 360px;
  color: #1a0f00 !important;
}

/* —— TOC —— */
.toc {
  margin: 24px 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elevated);
  overflow: hidden;
  contain: layout;
}

.toc__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 12px 16px;
  background: transparent;
  border: 0;
  color: var(--gold);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.toc__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.toc[data-open] .toc__icon {
  transform: rotate(180deg);
}

.toc__panel {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.toc[data-open] .toc__panel {
  display: block;
}

.toc ol {
  margin: 12px 0 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.toc li {
  margin: 6px 0;
}

.toc a {
  color: var(--text-muted);
  text-decoration: none;
}

.toc a:hover {
  color: var(--gold);
}

/* —— Article —— */
.article {
  padding-top: 16px;
  padding-bottom: 40px;
}

.article h1 {
  font-size: clamp(1.6rem, 4vw, 2.15rem);
  line-height: 1.25;
  margin: 0 0 16px;
  color: var(--gold);
  font-weight: 800;
  min-height: 1.25em;
}

.article h2 {
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  line-height: 1.3;
  margin: 2rem 0 0.85rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid rgba(224, 180, 58, 0.35);
  color: var(--text);
  font-weight: 700;
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.article h3 {
  font-size: 1.1rem;
  margin: 1.4rem 0 0.5rem;
  color: var(--gold-soft);
  font-weight: 700;
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.article p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.article p strong,
.article li strong {
  color: var(--text);
}

.article ul,
.article ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.article li {
  margin: 0.4rem 0;
}

.article a {
  color: var(--gold);
}

/* Tables — CLS-friendly horizontal scroll */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 1.25rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-elevated);
}

.article table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.article th,
.article td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: top;
}

.article th {
  background: var(--surface);
  color: var(--gold);
  font-weight: 700;
}

.article td {
  color: var(--text-muted);
}

.article tr:last-child td {
  border-bottom: 0;
}

.article tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}

/* —— FAQ —— */
.faq {
  margin: 32px 0 16px;
}

.faq__title {
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  margin: 0 0 16px;
  color: var(--text);
  border-bottom: 2px solid rgba(224, 180, 58, 0.35);
  padding-bottom: 0.4rem;
}

.faq__item {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-elevated);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 14px 16px;
  background: transparent;
  border: 0;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq__trigger:hover {
  color: var(--gold);
}

.faq__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq__item[data-open] .faq__icon {
  transform: rotate(180deg);
}

.faq__panel {
  display: none;
  padding: 0 16px 16px;
  color: var(--text-muted);
}

.faq__item[data-open] .faq__panel {
  display: block;
}

.faq__panel p {
  margin: 0;
}

/* —— Footer —— */
.site-footer {
  margin-top: 24px;
  padding: 28px 0 20px;
  background: #0a0512;
  border-top: 1px solid var(--border);
}

.site-footer__grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.site-footer__brand {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  line-height: 0;
}

.site-footer__brand img {
  width: 120px;
  height: 59px;
  aspect-ratio: 144 / 71;
  object-fit: contain;
  object-position: left center;
}

.site-footer p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.site-footer h3 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: var(--text);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin: 6px 0;
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
}

.site-footer a:hover {
  color: var(--gold);
}

.site-footer__bottom {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

/* —— Mobile nav —— */
@media (max-width: 899px) {
  .nav-toggle {
    display: inline-flex;
    order: 3;
  }

  .header-actions {
    order: 2;
    margin-left: auto;
  }

  .brand {
    order: 1;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(16, 8, 28, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 8px;
    gap: 2px;
    z-index: 99;
  }

  .site-header[data-nav-open] .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: var(--radius);
  }

  .header-actions .btn {
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.8125rem;
  }

  .header-actions .btn--ghost {
    display: none;
  }
}

@media (min-width: 900px) {
  :root {
    --header-h: 72px;
  }

  .brand__logo {
    width: 130px;
    height: 64px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn,
  .toc__icon,
  .faq__icon {
    transition: none;
  }
}
