:root {
  --bg: #050505;
  --surface: #0F0F0F;
  --text: #FAFAFA;
  --muted: #A3A3A3;
  --primary: #EAB308;
  --secondary: #CA8A04;
  --accent: #22C55E;
  --border: rgba(250, 250, 250, 0.14);
  --style-keywords: organic, natural, blob shapes, fluid, soft gradients, playful;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(234, 179, 8, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(34, 197, 94, 0.06) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, #0a0a0a 50%, var(--bg) 100%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 25%, rgba(234, 179, 8, 0.04) 0%, transparent 25%),
    radial-gradient(circle at 85% 75%, rgba(34, 197, 94, 0.03) 0%, transparent 20%);
  pointer-events: none;
  z-index: 0;
}

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

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

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

.disclosure-banner {
  position: relative;
  z-index: 100;
  width: 100%;
  background: #0a0a0a;
  color: #22c55e;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  text-align: center;
  padding: 6px 16px;
  line-height: 1.5;
}

.disclosure-banner::before {
  content: "> ";
  color: #eab308;
}

.navbar-wrap {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  height: 50px;
  display: flex;
  align-items: center;
  padding: 0 20px;
}

.navbar-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.navbar-logo img {
  height: 32px;
  width: auto;
}

.navbar-links {
  display: none;
  list-style: none;
  align-items: center;
  gap: 20px;
}

.navbar-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: opacity 0.2s;
  color: var(--text);
}

.navbar-links a:hover {
  opacity: 1;
  color: var(--primary);
}

.navbar-links svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.burger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
}

.burger-btn span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: background 0.2s;
}

.burger-btn:hover span {
  background: var(--primary);
}

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 5, 5, 0.97);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mobile-overlay.open {
  display: flex;
}

.mobile-overlay ul {
  list-style: none;
  text-align: center;
}

.mobile-overlay a {
  display: block;
  padding: 14px 24px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.overlay-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 28px;
  cursor: pointer;
}

.footer {
  position: relative;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 24px 32px;
  margin-top: 48px;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
  opacity: 0.5;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  margin-bottom: 32px;
}

.footer-logo img {
  height: 36px;
  width: auto;
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--muted);
  max-width: 280px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-links a {
  font-size: 13px;
  color: var(--muted);
}

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

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}

.footer-badges a {
  display: block;
}

.footer-badges img {
  height: 40px;
  width: auto;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.footer-badges a:hover img {
  opacity: 1;
}

.footer-disclosure {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 900px;
  margin-bottom: 16px;
}

.footer-copy {
  font-size: 12px;
  color: rgba(163, 163, 163, 0.7);
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.visible {
  display: flex;
}

.modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  max-width: 440px;
  width: 100%;
  text-align: center;
}

.modal-box h2 {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--text);
}

.modal-box p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.modal-btn {
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, background 0.15s;
}

.modal-btn-accept {
  background: var(--primary);
  color: var(--bg);
}

.modal-btn-accept:hover {
  background: var(--secondary);
}

.modal-btn-decline {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}

.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 250;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
}

.cookie-banner.visible {
  display: block;
}

.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-inner p {
  font-size: 13px;
  color: var(--muted);
  flex: 1;
  min-width: 200px;
}

.cookie-actions {
  display: flex;
  gap: 10px;
}

.page-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.page-content h1 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text);
  border-radius: 8px;
}

.page-content h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 28px 0 12px;
  color: var(--primary);
}

.page-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 20px 0 8px;
  color: var(--text);
}

.page-content p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.7;
}

.page-content ul {
  margin: 12px 0 16px 20px;
  color: var(--muted);
}

.page-content li {
  margin-bottom: 8px;
  font-size: 15px;
}

.page-content a {
  color: var(--primary);
}

.contact-form {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-error {
  display: none;
  font-size: 13px;
  color: #ef4444;
  margin-top: 6px;
}

.form-error.visible {
  display: block;
}

.btn-submit {
  align-self: flex-start;
  padding: 14px 28px;
  background: var(--primary);
  color: var(--bg);
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-submit:hover {
  background: var(--secondary);
}

.form-success {
  display: none;
  padding: 24px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 16px;
  margin-top: 24px;
}

.form-success.visible {
  display: block;
}

.form-success p {
  color: var(--text);
  margin-bottom: 8px;
}

.redirect-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  background: var(--bg);
}

.ad-label {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 24px;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 24px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.redirect-page p {
  color: var(--muted);
  font-size: 15px;
  max-width: 480px;
  margin-bottom: 12px;
}

.redirect-notes {
  font-size: 12px !important;
  color: rgba(163, 163, 163, 0.7) !important;
}

.redirect-notes a {
  color: var(--accent);
}

.error-page {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
}

.error-page h1 {
  font-size: 72px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
}

.error-page p {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 32px;
}

.error-page a {
  padding: 14px 28px;
  background: var(--primary);
  color: var(--bg);
  border-radius: 12px;
  font-weight: 600;
}

@media (min-width: 900px) {
  .navbar-links {
    display: flex;
  }

  .burger-btn {
    display: none;
  }
}

@media (max-width: 375px) {
  .hero-collage,
  .deco-wrap,
  .sub-sidebar,
  .sub-sidebar-img,
  .sub-poker-img-rail,
  .sub-poker-img-rail img,
  .sub-roulette-hero {
    max-width: 100%;
    overflow: hidden;
  }

  .deco-wrap img,
  .sub-sidebar-img,
  .sub-poker-img-rail img {
    max-width: 100%;
    max-height: 200px;
    width: 100%;
    height: auto;
  }

  .hero-img {
    max-width: 140px;
    max-height: 110px;
  }
}

.sub-roulette-hero {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  padding: 48px 24px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.sub-roulette-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--bg) 0%, rgba(5, 5, 5, 0.6) 50%, rgba(5, 5, 5, 0.3) 100%);
}

.sub-roulette-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.sub-roulette-hero h1 {
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8);
  margin-bottom: 8px;
}

.sub-roulette-hero p {
  font-size: 16px;
  color: var(--muted);
  max-width: 560px;
}

.sub-roulette-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.sub-stat-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.sub-stat {
  text-align: center;
  padding: 28px 16px;
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--border);
}

.sub-stat-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  display: block;
  margin-bottom: 6px;
}

.sub-stat-label {
  font-size: 13px;
  color: var(--muted);
}

.sub-roulette-body h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  margin: 36px 0 14px;
}

.sub-roulette-body p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 16px;
}

.sub-roulette-body h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin: 24px 0 10px;
}

.sub-pull-quote {
  border-left: 4px solid var(--accent);
  padding: 20px 24px;
  margin: 28px 0;
  background: rgba(34, 197, 94, 0.06);
  border-radius: 0 16px 16px 0;
}

.sub-pull-quote p {
  font-size: 17px;
  font-style: italic;
  color: var(--text);
  margin-bottom: 0;
}

@media (max-width: 699px) {
  .sub-stat-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 375px) {
  .sub-roulette-hero {
    min-height: 220px;
    background-size: cover;
    background-position: center;
  }
}
