/* StoneVegas Kasyno — brand styles */
:root {
  --bg-deep: #140e0b;
  --bg: #1c1310;
  --bg-elev: #2a1c16;
  --bg-soft: #36241c;
  --stone: #4a3428;
  --line: rgba(255, 196, 120, 0.18);
  --text: #f6efe6;
  --muted: #c9b6a4;
  --orange: #ff8a1a;
  --orange-hot: #ff6a00;
  --gold: #ffd24a;
  --teal: #1ec8c8;
  --green: #3dd68c;
  --danger: #ff5c5c;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --max: 1180px;
  --header-h: 78px;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --ref: #ff8a1a;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(255, 138, 26, 0.16), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(30, 200, 200, 0.1), transparent 50%),
    linear-gradient(180deg, #1a120e 0%, var(--bg-deep) 40%, #120d0a 100%);
  min-height: 100vh;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.35rem);
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2.05rem);
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

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

ul,
ol {
  color: var(--muted);
  padding-left: 1.2rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(20, 14, 11, 0.86);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  flex: 0 1 auto;
  max-width: 160px;
  line-height: 0;
}

.logo img {
  width: 154px;
  height: auto;
  border-radius: 0;
  box-shadow: none;
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1rem;
}

.nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0.2rem;
}

.nav a:hover,
.nav a.is-active {
  color: var(--text);
}

.header-cta {
  display: flex;
  gap: 0.55rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.78rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-hot));
  color: #1a0f0a;
  box-shadow: 0 10px 28px rgba(255, 106, 0, 0.35);
}

.btn-primary:hover {
  color: #1a0f0a;
  box-shadow: 0 14px 34px rgba(255, 106, 0, 0.45);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.btn-teal {
  background: linear-gradient(135deg, #24d6d6, #0ea5a5);
  color: #062222;
}

.btn-teal:hover {
  color: #062222;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* Hero */
.hero {
  position: relative;
  min-height: clamp(420px, 72vh, 640px);
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.02);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

@keyframes heroDrift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.07) translate3d(-1.5%, -1%, 0); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 8, 6, 0.92) 0%, rgba(12, 8, 6, 0.72) 42%, rgba(12, 8, 6, 0.28) 100%),
    linear-gradient(180deg, rgba(12, 8, 6, 0.25) 0%, rgba(12, 8, 6, 0.88) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2.2rem, 5vw, 3.5rem);
  max-width: 640px;
}

.hero h1 {
  margin-bottom: 0.85rem;
  text-wrap: balance;
}

.hero .lead {
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  color: #eadfce;
  max-width: 34rem;
  margin-bottom: 1.4rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.age-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: rgba(201, 182, 164, 0.85);
}

/* Sections */
.section {
  padding: clamp(2.5rem, 5vw, 4.2rem) 0;
}

.section-head {
  margin-bottom: 1.6rem;
  max-width: 720px;
}

.section-head p {
  margin-bottom: 0;
}

.panel {
  background: linear-gradient(180deg, rgba(54, 36, 28, 0.75), rgba(32, 21, 16, 0.9));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.1rem, 2.5vw, 1.6rem);
  box-shadow: var(--shadow);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.feature {
  padding: 1.15rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 196, 120, 0.12);
  height: 100%;
}

.feature h3 {
  margin-bottom: 0.45rem;
}

.feature p:last-child {
  margin-bottom: 0;
}

/* Promo banners */
.promo-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.promo-tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 160px;
  isolation: isolate;
  transition: transform 0.25s ease;
}

.promo-tile:hover {
  transform: translateY(-3px);
}

.promo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 170px;
}

.promo-tile .caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.85rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(10, 7, 5, 0.92));
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--text);
}

/* Games */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.85rem;
}

.game-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 196, 120, 0.14);
  background: var(--bg-elev);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.game-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.game-card .name {
  padding: 0.55rem 0.65rem 0.7rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
}

.live-grid .game-card img,
.cat-grid .game-card img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* Stats / chips */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 210, 74, 0.08);
  border: 1px solid rgba(255, 210, 74, 0.22);
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 600;
}

/* Tables — no horizontal scroll */
.table-wrap {
  width: 100%;
  overflow: visible;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.data-table th,
.data-table td {
  padding: 0.85rem 0.75rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 196, 120, 0.12);
  word-wrap: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.data-table th {
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  background: rgba(255, 138, 26, 0.08);
}

.data-table td {
  color: var(--muted);
  font-size: 0.95rem;
}

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

@media (max-width: 720px) {
  .data-table,
  .data-table thead,
  .data-table tbody,
  .data-table th,
  .data-table td,
  .data-table tr {
    display: block;
    width: 100%;
  }

  .data-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
  }

  .data-table tr {
    margin-bottom: 0.85rem;
    border: 1px solid rgba(255, 196, 120, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.35rem 0;
  }

  .data-table td {
    border-bottom: 1px solid rgba(255, 196, 120, 0.08);
    padding: 0.65rem 0.9rem 0.65rem 0.9rem;
  }

  .data-table td:last-child {
    border-bottom: 0;
  }

  .data-table td::before {
    content: attr(data-label);
    display: block;
    color: var(--gold);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.82rem;
    margin-bottom: 0.2rem;
  }
}

/* Steps */
.steps {
  counter-reset: step;
  display: grid;
  gap: 0.85rem;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 196, 120, 0.12);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--orange), var(--gold));
  color: #1a0f0a;
  font-weight: 800;
  font-family: var(--font-display);
}

.step h3 {
  margin-bottom: 0.3rem;
}

.step p {
  margin: 0;
}

/* FAQ */
.faq details {
  border: 1px solid rgba(255, 196, 120, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 0.65rem;
  padding: 0.15rem 0;
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.1rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--text);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  color: var(--orange);
  font-weight: 800;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  padding: 0 1.1rem 1rem;
  margin: 0;
}

/* CTA band */
.cta-band {
  position: relative;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 220px;
  display: grid;
  align-items: center;
}

.cta-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-band .cta-inner {
  position: relative;
  z-index: 1;
  padding: clamp(1.4rem, 4vw, 2.2rem);
  background: linear-gradient(90deg, rgba(12, 8, 6, 0.92), rgba(12, 8, 6, 0.55) 70%, rgba(12, 8, 6, 0.2));
  max-width: 560px;
}

.cta-band h2 {
  margin-bottom: 0.5rem;
}

.cta-band p {
  color: #eadfce;
}

/* Payments */
.pay-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pay-list span {
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 196, 120, 0.12);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
}

/* Page hero compact */
.page-hero {
  padding: clamp(2rem, 4vw, 3rem) 0 0.5rem;
}

.page-hero .crumbs {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
}

.page-hero .crumbs a {
  color: var(--muted);
}

.page-hero .crumbs a:hover {
  color: var(--gold);
}

.page-hero h1 {
  margin-bottom: 0.7rem;
}

.content-block + .content-block {
  margin-top: 1.5rem;
}

.prose ul {
  margin-top: 0;
}

.prose li {
  margin-bottom: 0.35rem;
}

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

/* Footer */
.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background: #100c0a;
  padding: 2.4rem 0 1.4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
}

.footer-brand {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

.footer-brand img {
  width: clamp(64px, 16vw, 88px);
  height: auto;
  border-radius: 0;
}

.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 0.7rem;
  color: var(--gold);
}

.footer-col a {
  display: block;
  color: var(--muted);
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 196, 120, 0.1);
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.2rem;
  justify-content: space-between;
  color: rgba(201, 182, 164, 0.75);
  font-size: 0.88rem;
}

.responsible {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.badge-18 {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--danger);
  color: var(--danger);
  font-weight: 800;
  font-size: 0.8rem;
}

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Mobile nav */
@media (max-width: 960px) {
  .header-inner {
    gap: 0.55rem;
  }

  .menu-toggle,
  .header-cta {
    flex-shrink: 0;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .logo {
    flex: 0 1 auto;
    max-width: calc(100% - 168px);
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(16, 12, 10, 0.97);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.85rem 1rem 1.1rem;
    gap: 0.15rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .nav.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 0.75rem 0.4rem;
    border-bottom: 1px solid rgba(255, 196, 120, 0.08);
  }

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

  .grid-2,
  .grid-3,
  .promo-rail,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 1.25rem, var(--max));
  }

  .logo {
    flex: 0 0 auto;
    max-width: 120px;
  }

  .logo img {
    width: 116px;
  }

  .header-cta .btn {
    padding: 0.65rem 0.9rem;
    font-size: 0.88rem;
  }

  .hero {
    min-height: 520px;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(12, 8, 6, 0.35) 0%, rgba(12, 8, 6, 0.88) 55%, rgba(12, 8, 6, 0.95) 100%),
      linear-gradient(90deg, rgba(12, 8, 6, 0.7), rgba(12, 8, 6, 0.35));
  }

  .grid-4,
  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

/* Utility */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* StoneVegas logo: original supplied artwork, cropped SVG viewBox; no CSS upscaling beyond source raster */
.logo img { max-width: 100%; object-fit: contain; }
