/* CasinoPedia site. No web fonts and no scripts: everything is served from this folder. */

:root {
  --bg: #000;
  --surface: #121214;
  --surface-2: #1c1c1e;
  --line: rgba(255, 255, 255, 0.09);
  --label: #fff;
  --label-2: rgba(235, 235, 245, 0.66);
  --label-3: rgba(235, 235, 245, 0.4);
  --gold: #e2b659;
  --gold-soft: rgba(226, 182, 89, 0.14);
  --gutter: 16px;
  --max: 1120px;
  --radius: 22px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--label);
  font-family: -apple-system, BlinkMacSystemFont, 'Kohinoor Devanagari', 'Noto Sans Devanagari', 'Nirmala UI',
    'Mangal', 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (min-width: 720px) {
  :root {
    --gutter: 32px;
  }
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 10;
  padding: 8px 14px;
  background: var(--gold);
  color: #1a1200;
  border-radius: 10px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--label);
  font-weight: 700;
  font-size: 18px;
}

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

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.site-nav {
  display: flex;
  gap: 22px;
  font-size: 15px;
}

.site-nav a {
  color: var(--label-2);
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--label);
  text-decoration: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 56px 0 24px;
  overflow: hidden;
}

/* Warm light behind the phone, like the casino photos in the app. */
.hero::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto auto;
  width: 900px;
  height: 900px;
  background: radial-gradient(closest-side, rgba(226, 182, 89, 0.2), rgba(226, 182, 89, 0) 70%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
}

.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero {
    padding: 88px 0 56px;
  }
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 15px;
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 64px);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero h1 span {
  color: var(--gold);
}

.lead {
  max-width: 34em;
  margin: 20px 0 0;
  color: var(--label-2);
  font-size: clamp(18px, 2.2vw, 21px);
  line-height: 1.7;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 32px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 8px 22px 8px 18px;
  border-radius: 14px;
  background: var(--label);
  color: #000;
  line-height: 1.2;
}

.store-badge:hover {
  text-decoration: none;
}

.store-badge svg {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}

.store-badge small {
  display: block;
  font-size: 12px;
  font-weight: 500;
}

.store-badge strong {
  display: block;
  font-size: 19px;
  font-weight: 700;
}

/* Until the App Store link exists the badge is a label, not a link. */
span.store-badge {
  background: var(--surface-2);
  color: var(--label);
  box-shadow: inset 0 0 0 1px var(--line);
}

.cta-note {
  margin: 0;
  color: var(--label-3);
  font-size: 15px;
}

/* ---------- Phone mock ---------- */
.phone {
  position: relative;
  width: var(--phone-w, 300px);
  aspect-ratio: 393 / 852;
  padding: calc(var(--phone-w, 300px) * 0.035);
  border-radius: calc(var(--phone-w, 300px) * 0.17);
  background: #1a1a1c;
  box-shadow: inset 0 0 0 1.5px #3a3a3c, 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04);
  flex: 0 0 auto;
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--phone-w, 300px) * 0.135);
  background: #000;
}

/* Dynamic Island */
.phone::after {
  content: '';
  position: absolute;
  top: calc(var(--phone-w, 300px) * 0.063);
  left: 50%;
  width: 30%;
  height: calc(var(--phone-w, 300px) * 0.085);
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
}

/* Status bar drawn over the blank top of the screenshot */
.phone .status {
  position: absolute;
  top: calc(var(--phone-w, 300px) * 0.077);
  left: calc(var(--phone-w, 300px) * 0.14);
  right: calc(var(--phone-w, 300px) * 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: calc(var(--phone-w, 300px) * 0.046);
  font-weight: 600;
  line-height: 1;
  pointer-events: none;
}

.phone .status svg {
  height: calc(var(--phone-w, 300px) * 0.04);
  width: auto;
}

.hero-phones {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 420px;
}

.hero-phones .phone:first-child {
  --phone-w: min(300px, 64vw);
  z-index: 1;
}

.hero-phones .phone + .phone {
  --phone-w: min(260px, 54vw);
  position: absolute;
  top: 9%;
  left: 50%;
  margin-left: 4%;
  opacity: 0.9;
  transform: rotate(5deg);
}

.hero-phones .phone:first-child {
  margin-right: 28%;
}

@media (min-width: 900px) {
  .hero-phones .phone:first-child {
    margin-right: 30%;
  }
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 40px 0 0;
  border-top: 0.5px solid var(--line);
  border-bottom: 0.5px solid var(--line);
}

@media (min-width: 720px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat {
  padding: 22px 8px;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.2;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.stat dd {
  margin: 0;
}

.stat span {
  color: var(--label-2);
  font-size: 15px;
}

/* ---------- Sections ---------- */
.section {
  padding: 72px 0 0;
}

.section-title {
  margin: 0;
  font-size: clamp(30px, 4.6vw, 44px);
  line-height: 1.3;
  font-weight: 800;
}

.section-lead {
  max-width: 40em;
  margin: 12px 0 0;
  color: var(--label-2);
  font-size: 18px;
}

/* ---------- Features ---------- */
.features {
  display: grid;
  gap: 14px;
  margin-top: 32px;
}

@media (min-width: 640px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 0.5px var(--line);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--gold-soft);
  color: var(--gold);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature h3 {
  margin: 18px 0 0;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 700;
}

.feature p {
  margin: 6px 0 0;
  color: var(--label-2);
  font-size: 16px;
  line-height: 1.7;
}

/* ---------- Screenshots ---------- */
.screens {
  display: flex;
  gap: 28px;
  margin-top: 36px;
  padding: 10px var(--gutter) 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
}

.screens::-webkit-scrollbar {
  display: none;
}

@media (min-width: 1184px) {
  .screens {
    padding-inline: calc((100vw - var(--max)) / 2 + var(--gutter));
    scroll-padding: 0 calc((100vw - var(--max)) / 2 + var(--gutter));
  }
}

.screens figure {
  margin: 0;
  scroll-snap-align: start;
}

.screens .phone {
  --phone-w: 236px;
  box-shadow: inset 0 0 0 1.5px #3a3a3c, 0 18px 40px rgba(0, 0, 0, 0.5);
}

.screens figcaption {
  margin-top: 14px;
  color: var(--label-2);
  font-size: 15px;
  text-align: center;
}

/* ---------- Privacy promise ---------- */
.promise {
  display: grid;
  gap: 32px;
  padding: 36px 24px;
  border-radius: 28px;
  background: linear-gradient(160deg, #1d1810 0%, #121214 60%);
  box-shadow: inset 0 0 0 0.5px rgba(226, 182, 89, 0.25);
}

@media (min-width: 900px) {
  .promise {
    grid-template-columns: 1fr 1fr;
    padding: 48px;
    align-items: center;
  }
}

.promise ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}

.promise li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 17px;
}

.promise li svg {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  margin-top: 3px;
  color: var(--gold);
}

.promise li strong {
  display: block;
}

.promise li span {
  color: var(--label-2);
  font-size: 15px;
}

.text-link {
  display: inline-block;
  margin-top: 20px;
  font-weight: 600;
}

/* ---------- Notice ---------- */
.notice {
  margin-top: 72px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--label-2);
  font-size: 15px;
  line-height: 1.75;
  box-shadow: inset 0 0 0 0.5px var(--line);
}

.notice strong {
  color: var(--label);
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 72px;
  padding: 28px 0 40px;
  border-top: 0.5px solid var(--line);
  color: var(--label-3);
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}

.site-footer nav {
  display: flex;
  gap: 20px;
}

.site-footer a {
  color: var(--label-2);
}

/* ---------- Document pages (privacy, 404) ---------- */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px var(--gutter) 0;
}

.doc h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 48px);
  line-height: 1.3;
  font-weight: 800;
}

.doc .updated {
  margin: 10px 0 0;
  color: var(--label-3);
  font-size: 15px;
}

.doc .intro {
  margin: 28px 0 0;
  padding: 20px 22px;
  border-radius: 18px;
  background: var(--gold-soft);
  font-size: 18px;
  line-height: 1.75;
}

.doc h2 {
  margin: 44px 0 0;
  font-size: 23px;
  line-height: 1.4;
  font-weight: 700;
}

.doc p,
.doc li {
  color: var(--label-2);
  font-size: 17px;
  line-height: 1.8;
}

.doc p {
  margin: 12px 0 0;
}

.doc ul {
  margin: 12px 0 0;
  padding-left: 1.3em;
}

.doc li + li {
  margin-top: 4px;
}

.doc li::marker {
  color: var(--gold);
}

/* After `.doc p` so the intro keeps full-strength text. */
.doc .intro {
  color: var(--label);
}

.doc .note {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 0.5px solid var(--line);
  color: var(--label-3);
  font-size: 15px;
}
