﻿/* MyStake Casino — mystakes.biz */
:root {
  --bg: #12101a;
  --bg-elevated: #1a1626;
  --bg-soft: #221c32;
  --surface: #2a2438;
  --text: #f2f4f8;
  --text-muted: #a8a0b8;
  --primary: #00b4ef;
  --primary-hover: #33c8ff;
  --primary-deep: #008fc0;
  --accent: #9b5cff;
  --accent-hot: #e84dff;
  --gold: #ffc84a;
  --danger: #ff2d4a;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 10px;
  --radius-sm: 6px;
  --header-h: 64px;
  --header-h-mobile: 56px;
  --sticky-cta-h: 64px;
  --max: 1120px;
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(155, 92, 255, 0.18), transparent 60%),
    radial-gradient(900px 420px at 0% 0%, rgba(0, 180, 239, 0.12), transparent 55%),
    var(--bg);
  min-height: 100vh;
  padding-bottom: 0;
  transition: padding-bottom 0.2s ease;
}

body.is-sticky-cta {
  padding-bottom: calc(var(--sticky-cta-h) + env(safe-area-inset-bottom, 0px));
}

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

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(18, 16, 26, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 100%;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
  text-decoration: none;
}

.brand img {
  width: 148px;
  height: 50px;
  object-fit: contain;
}

.nav-desktop {
  display: none;
  flex: 1 1 auto;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.nav-desktop a {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  text-decoration: none;
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}

.nav-desktop a[aria-current="page"] {
  color: var(--primary);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--text-muted);
}

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

.breadcrumbs a:hover {
  color: var(--primary);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

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

.btn-primary {
  color: #041018;
  background: linear-gradient(135deg, var(--primary) 0%, #5ae0ff 100%);
  box-shadow: 0 0 0 1px rgba(0, 180, 239, 0.25), 0 6px 18px rgba(0, 180, 239, 0.28);
}

.btn-primary:hover {
  color: #041018;
  background: linear-gradient(135deg, var(--primary-hover) 0%, #7eebff 100%);
}

.btn-secondary {
  color: var(--text);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-secondary:hover {
  color: var(--text);
  border-color: var(--primary);
  background: rgba(0, 180, 239, 0.08);
}

.btn-accent {
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hot) 100%);
  box-shadow: 0 6px 18px rgba(155, 92, 255, 0.35);
}

.btn-accent:hover {
  color: #fff;
  filter: brightness(1.08);
}

.btn-lg {
  min-height: 48px;
  padding: 0 22px;
  font-size: 15px;
  border-radius: 10px;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  flex: 0 0 auto;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

.nav-mobile {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 10px 16px 14px;
}

.nav-mobile.is-open {
  display: block;
}

.nav-mobile a {
  display: block;
  color: var(--text);
  padding: 12px 8px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  text-decoration: none;
}

.nav-mobile a:last-child {
  border-bottom: 0;
}

/* —— Hero —— */
.hero {
  position: relative;
  background: #0b0912;
  overflow: hidden;
}

.hero-media {
  position: relative;
  width: 100%;
  /* Reserve space to prevent CLS — mobile default */
  aspect-ratio: 800 / 1000;
  background: #0b0912;
}

.hero-media picture,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-overlay {
  position: relative;
  padding: 14px 14px 16px;
  background: linear-gradient(180deg, rgba(18, 16, 26, 0.96), rgba(18, 16, 26, 1));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero-kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-title {
  margin: 0;
  font-size: clamp(1.25rem, 4.2vw, 1.75rem);
  line-height: 1.2;
  font-weight: 800;
  color: #fff;
  max-width: 20ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  width: 100%;
  max-width: 420px;
}

.hero-cta .btn {
  flex: 1 1 140px;
}

.bonus-strip {
  background: linear-gradient(90deg, rgba(155, 92, 255, 0.22), rgba(0, 180, 239, 0.18));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* —— Games lobby —— */
.games-lobby {
  padding: 28px 0 8px;
  background: linear-gradient(180deg, rgba(26, 22, 38, 0.65), transparent);
}

.games-lobby-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px 8px;
}

.games-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 12px;
}

.games-head-title {
  margin: 0;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.games-more {
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.games-more:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.games-grid {
  display: grid;
  gap: 10px;
}

.games-grid--portrait {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.games-grid--square {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.game-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.games-grid--portrait .game-card {
  aspect-ratio: 348 / 468;
}

.games-grid--square .game-card {
  aspect-ratio: 1 / 1;
}

.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.game-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 180, 239, 0.45);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  text-decoration: none;
}

.games-cta {
  display: flex;
  justify-content: center;
  padding: 22px 0 10px;
}

@media (min-width: 600px) {
  .games-grid--portrait {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }

  .games-grid--square {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (min-width: 980px) {
  .games-grid--portrait {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .games-grid--square {
    grid-template-columns: repeat(10, minmax(0, 1fr));
  }
}

.bonus-strip-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bonus-strip p {
  margin: 0;
  font-size: 14px;
  color: var(--text);
}

.bonus-strip strong {
  color: var(--gold);
  font-size: 15px;
}

/* —— Content —— */
.main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 16px 48px;
}

.article h1 {
  margin: 0 0 16px;
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  line-height: 1.25;
  font-weight: 800;
}

.footer-col-title {
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  font-weight: 700;
}

.article h2 {
  margin: 36px 0 12px;
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  line-height: 1.3;
  font-weight: 700;
  color: #fff;
  padding-left: 12px;
  border-left: 3px solid var(--primary);
}

.article h3 {
  margin: 24px 0 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.article p {
  margin: 0 0 14px;
  color: #d8d2e6;
}

.article ul,
.article ol {
  margin: 0 0 16px;
  padding-left: 1.25rem;
  color: #d8d2e6;
}

.article li {
  margin-bottom: 8px;
}

.article li strong {
  color: #fff;
}

.article hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 32px 0 16px;
}

.article small {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

.article table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  font-size: 14px;
}

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

.article th {
  background: var(--bg-soft);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}

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

.article td {
  color: #d8d2e6;
}

.faq-block h3 {
  margin-top: 20px;
}

.mid-cta {
  margin: 28px 0;
  padding: 18px 16px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(0, 180, 239, 0.12), rgba(155, 92, 255, 0.16)),
    var(--bg-elevated);
  border: 1px solid rgba(0, 180, 239, 0.25);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.mid-cta p {
  margin: 0;
  color: var(--text);
  font-weight: 600;
  max-width: 48ch;
}

.mid-cta .btn {
  flex: 0 0 auto;
}

/* —— Footer —— */
.site-footer {
  background: #0c0a12;
  border-top: 1px solid var(--border);
  padding: 36px 16px 28px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.footer-brand img {
  width: 132px;
  height: 44px;
  object-fit: contain;
  margin-bottom: 10px;
}

.footer-brand p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  max-width: 36ch;
}

.footer-col .footer-col-title {
  margin: 0 0 12px;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 14px;
  padding: 5px 0;
  text-decoration: none;
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.55;
}

.footer-bottom p {
  margin: 0 0 8px;
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--danger);
  color: var(--danger);
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 10px;
}

/* Sticky mobile CTA — appears after scroll */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  height: var(--sticky-cta-h);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(12, 10, 18, 0.96);
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
}

.sticky-cta.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.sticky-cta .btn {
  flex: 1 1 0;
  max-width: 280px;
  min-height: 44px;
}

/* —— Responsive —— */
@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }

  .sticky-cta {
    display: none;
  }

  .hero-media {
    aspect-ratio: 1920 / 600;
  }

  .hero-overlay {
    position: absolute;
    inset: 0;
    border-bottom: 0;
    background: linear-gradient(90deg, rgba(8, 6, 14, 0.78) 0%, rgba(8, 6, 14, 0.35) 48%, rgba(8, 6, 14, 0.15) 100%);
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    padding: 0 7%;
  }

  .hero-title {
    max-width: 16ch;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
  }

  .hero-cta {
    justify-content: flex-start;
    max-width: 440px;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

@media (min-width: 980px) {
  .menu-toggle {
    display: none;
  }

  .nav-desktop {
    display: flex;
  }

  .nav-mobile,
  .nav-mobile.is-open {
    display: none;
  }

  .header-actions .btn {
    min-height: 42px;
    padding: 0 16px;
    font-size: 14px;
  }
}

/* Small phones: prevent header collision */
@media (max-width: 420px) {
  :root {
    --header-h: 54px;
  }

  .brand img {
    width: 112px;
    height: 38px;
  }

  .header-actions {
    gap: 6px;
  }

  .header-actions .btn {
    min-height: 36px;
    padding: 0 10px;
    font-size: 12px;
  }

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

  .menu-toggle {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 360px) {
  .brand img {
    width: 96px;
    height: 32px;
  }

  .header-actions .btn-primary {
    padding: 0 8px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
