/* ============================================================
   TEEN PATTI INK — STYLES
   Mobile-first, dark premium card-game theme.
   Accents: gold / red / green. Vanilla CSS, no frameworks.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Backgrounds */
  --bg-900: #0b0b12;
  --bg-800: #12121d;
  --bg-700: #191926;
  --bg-600: #222234;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.10);

  /* Accents */
  --gold: #f5c542;
  --gold-deep: #d4af37;
  --red: #e5484d;
  --red-deep: #c0343a;
  --green: #35c98a;
  --green-deep: #1f9d6b;

  /* Text */
  --text: #f4f4f8;
  --text-muted: #a7a7ba;
  --text-dim: #7d7d92;

  /* Effects */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-gold: 0 8px 26px rgba(245, 197, 66, 0.28);
  --ring: 0 0 0 3px rgba(245, 197, 66, 0.45);

  --maxw: 1180px;
  --gap: clamp(1rem, 3vw, 2rem);

  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset-ish ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(229, 72, 77, 0.10), transparent 60%),
    radial-gradient(1000px 500px at 0% 10%, rgba(53, 201, 138, 0.08), transparent 55%),
    linear-gradient(180deg, var(--bg-900), var(--bg-800));
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}
body.nav-locked {
  overflow: hidden;
}
img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--gold);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ---------- Focus visibility (accessibility) ---------- */
:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 6px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: #1a1a1a;
  padding: 0.6rem 1rem;
  z-index: 200;
  border-radius: 0 0 8px 0;
  font-weight: 700;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}
.section {
  padding-block: clamp(2.5rem, 7vw, 5rem);
}
.section--tight {
  padding-block: clamp(1.75rem, 5vw, 3rem);
}
.is-hidden {
  display: none !important;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4 {
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 800;
  letter-spacing: -0.01em;
}
h1 {
  font-size: clamp(2rem, 6vw, 3.4rem);
}
h2 {
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
}
h3 {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
}
p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}
.lead {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  color: var(--text);
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.text-gold {
  color: var(--gold);
}
.text-green {
  color: var(--green);
}
.text-red {
  color: var(--red);
}
.section-head {
  max-width: 720px;
  margin-bottom: clamp(1.5rem, 4vw, 2.75rem);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none;
  line-height: 1;
  font-family: inherit;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}
.btn--primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #201700;
  box-shadow: var(--shadow-gold);
}
.btn--secondary {
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  color: #04160e;
}
.btn--danger {
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: #fff;
}
.btn--ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover {
  background: var(--surface-2);
}
.btn--lg {
  padding: 1.1rem 2rem;
  font-size: 1.1rem;
}
.btn--block {
  width: 100%;
}
.btn.is-pending {
  opacity: 0.92;
  position: relative;
}
.btn .btn-sub {
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.85;
  margin-left: 0.35rem;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(11, 11, 18, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 66px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  color: var(--text);
  font-size: 1.15rem;
}
.brand:hover {
  text-decoration: none;
}
.brand__logo {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
}
.brand__name b {
  color: var(--gold);
}
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}
#primary-nav {
  position: fixed;
  inset: 66px 0 auto 0;
  background: var(--bg-800);
  border-bottom: 1px solid var(--border);
  transform: translateY(-120%);
  transition: transform 0.25s ease;
  padding: 1rem clamp(1rem, 4vw, 2rem) 1.5rem;
  box-shadow: var(--shadow);
}
#primary-nav.nav--open {
  transform: translateY(0);
}
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.nav-list a {
  display: block;
  padding: 0.7rem 0.5rem;
  color: var(--text);
  font-weight: 600;
  border-radius: 8px;
}
.nav-list a:hover {
  background: var(--surface);
  text-decoration: none;
  color: var(--gold);
}
.nav-cta {
  margin-top: 0.75rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(2.5rem, 8vw, 5.5rem);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
  align-items: center;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  margin-bottom: 1rem;
}
.hero__badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(53, 201, 138, 0.2);
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.5rem;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.75rem;
  color: var(--text-dim);
  font-size: 0.9rem;
}
.hero__meta b {
  color: var(--text);
  display: block;
  font-size: 1.05rem;
}

/* Hero visual — CSS-generated card fan */
.card-fan {
  position: relative;
  height: clamp(260px, 60vw, 380px);
  display: grid;
  place-items: center;
}
.play-card {
  position: absolute;
  width: clamp(120px, 30vw, 170px);
  aspect-ratio: 5 / 7;
  border-radius: 14px;
  background: linear-gradient(160deg, #fdfdfd, #e9e9ef);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: grid;
  place-items: center;
  transform-origin: bottom center;
}
.play-card::before {
  content: attr(data-rank);
  position: absolute;
  top: 8px;
  left: 10px;
  font-weight: 800;
  font-size: 1.1rem;
}
.play-card::after {
  content: attr(data-rank);
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  transform: rotate(180deg);
}
.play-card .pip {
  font-size: clamp(2.5rem, 9vw, 4rem);
  line-height: 1;
}
.play-card--red {
  color: var(--red-deep);
}
.play-card--black {
  color: #16161c;
}
.play-card:nth-child(1) {
  transform: rotate(-16deg) translateX(-46px) translateY(12px);
}
.play-card:nth-child(2) {
  transform: rotate(0deg) translateY(-14px);
  z-index: 2;
}
.play-card:nth-child(3) {
  transform: rotate(16deg) translateX(46px) translateY(12px);
}
.hero__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(closest-side, rgba(245, 197, 66, 0.18), transparent);
  filter: blur(10px);
  z-index: -1;
}

/* ---------- Cards / grids ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 1.75rem);
}
.grid {
  display: grid;
  gap: var(--gap);
}
.grid--2 {
  grid-template-columns: 1fr;
}
.grid--3 {
  grid-template-columns: 1fr;
}
.grid--4 {
  grid-template-columns: 1fr;
}

/* Feature card */
.feature {
  transition: transform 0.18s ease, border-color 0.2s ease;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 197, 66, 0.4);
}
.feature__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(245, 197, 66, 0.18), rgba(229, 72, 77, 0.12));
  border: 1px solid var(--border);
  font-size: 1.5rem;
}
.feature h3 {
  margin-bottom: 0.4rem;
}
.feature p {
  margin: 0;
  font-size: 0.95rem;
}

/* ---------- Info table ---------- */
.info-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.info-table th,
.info-table td {
  text-align: left;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.98rem;
}
.info-table tr:last-child th,
.info-table tr:last-child td {
  border-bottom: none;
}
.info-table th {
  color: var(--text-muted);
  font-weight: 600;
  width: 45%;
  background: var(--surface);
}
.info-table td {
  color: var(--text);
  font-weight: 600;
}

/* ---------- Steps ---------- */
.steps {
  counter-reset: step;
  display: grid;
  gap: 1rem;
  padding: 0;
  list-style: none;
  margin: 0;
}
.steps li {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.1rem 1.1rem 3.6rem;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1.1rem;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #201700;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
}
.steps li h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}
.steps li p {
  margin: 0;
  font-size: 0.94rem;
}

/* ---------- Screenshots gallery ---------- */
.shots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.shot {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-700);
  aspect-ratio: 9 / 16;
  position: relative;
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shot__tag {
  position: absolute;
  bottom: 0.6rem;
  left: 0.6rem;
  background: rgba(0, 0, 0, 0.6);
  color: var(--text);
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
}

/* ---------- FAQ ---------- */
.faq-list {
  display: grid;
  gap: 0.75rem;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.02rem;
  padding: 1.1rem 3rem 1.1rem 1.1rem;
  cursor: pointer;
  position: relative;
  font-family: inherit;
}
.faq-question::after {
  content: "+";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--gold);
  transition: transform 0.2s ease;
}
.faq-question[aria-expanded="true"]::after {
  content: "\2212"; /* minus */
}
.faq-answer {
  padding: 0 1.1rem 1.2rem;
}
.faq-answer p {
  margin: 0;
}

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  background:
    linear-gradient(135deg, rgba(245, 197, 66, 0.12), rgba(229, 72, 77, 0.10)),
    var(--bg-700);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 6vw, 3.5rem);
}
.cta-band .btn {
  margin-top: 0.5rem;
}

/* ---------- Note / callout ---------- */
.callout {
  border-left: 3px solid var(--gold);
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.25rem;
}
.callout--warn {
  border-left-color: var(--red);
}
.callout--ok {
  border-left-color: var(--green);
}
.callout p:last-child {
  margin-bottom: 0;
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--text-dim);
  padding-block: 1rem 0;
}
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0;
  margin: 0;
}
.breadcrumbs li::after {
  content: "/";
  margin-left: 0.4rem;
  color: var(--text-dim);
}
.breadcrumbs li:last-child::after {
  content: "";
}
.breadcrumbs a {
  color: var(--text-muted);
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  padding-block: clamp(2rem, 6vw, 3.5rem);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-800), transparent);
}

/* ---------- Prose (legal/content pages) ---------- */
.prose {
  max-width: 820px;
}
.prose h2 {
  margin-top: 2.2rem;
}
.prose h3 {
  margin-top: 1.6rem;
}
.prose ul,
.prose ol {
  color: var(--text-muted);
  padding-left: 1.3rem;
}
.prose li {
  margin-bottom: 0.5rem;
}
.prose a {
  text-decoration: underline;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: 1rem;
}
.contact-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-card .feature__icon {
  margin: 0;
  flex: 0 0 auto;
}
.contact-card h3 {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
}
.contact-card p {
  margin: 0;
  font-size: 0.95rem;
  word-break: break-word;
}

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 0.7rem clamp(1rem, 4vw, 1.5rem);
  background: rgba(11, 11, 18, 0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  transform: translateY(120%);
  transition: transform 0.25s ease;
}
.sticky-cta--visible {
  transform: translateY(0);
}
.sticky-cta .btn {
  width: 100%;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translate(-50%, 20px);
  background: var(--bg-600);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  font-size: 0.9rem;
  max-width: 90vw;
  text-align: center;
}
.toast--show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-900);
  padding-block: clamp(2.5rem, 6vw, 3.5rem) 6.5rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
.footer-col h4 {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.9rem;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.footer-col a {
  color: var(--text-muted);
  font-size: 0.92rem;
}
.footer-col a:hover {
  color: var(--gold);
}
.footer-about p {
  font-size: 0.92rem;
  max-width: 34ch;
}
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.footer-disclaimer {
  font-size: 0.82rem;
  color: var(--text-dim);
  max-width: 70ch;
}

/* ---------- Age badge ---------- */
.age-badge {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--red);
  color: var(--red);
  font-weight: 800;
  font-size: 0.9rem;
  flex: 0 0 auto;
}

/* ============================================================
   RESPONSIVE — tablet & up
   ============================================================ */
@media (min-width: 600px) {
  .shots {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 820px) {
  .nav-toggle {
    display: none;
  }
  #primary-nav {
    position: static;
    transform: none;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }
  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
  }
  .nav-list a {
    padding: 0.5rem 0.7rem;
    font-size: 0.95rem;
  }
  .nav-cta {
    margin-top: 0;
  }
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero__inner {
    grid-template-columns: 1.1fr 0.9fr;
  }
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
  /* Sticky CTA is for mobile only */
  .sticky-cta {
    display: none;
  }
  .site-footer {
    padding-bottom: 3.5rem;
  }
}

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

/* ============================================================
   PHASE 2 — MULTI-GAME COMPONENTS
   ============================================================ */

/* ---------- Per-game theming tokens ----------
   Apply .theme-teenpatti or .theme-aviator on a section/body to
   retint accent-driven elements (hero glow, badges, buttons).  */
.theme-aviator {
  --game-a: #3aa0ff;   /* sky blue */
  --game-b: #ff7a1a;   /* sunset orange */
  --game-c: #e5484d;   /* alert red */
}
.theme-teenpatti {
  --game-a: #f5c542;   /* gold */
  --game-b: #35c98a;   /* green */
  --game-c: #e5484d;   /* red */
}

/* ---------- Game cards (homepage + games directory) ---------- */
.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}
.game-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-700);
  overflow: hidden;
}
.game-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.game-card:hover .game-card__media img {
  transform: scale(1.04);
}
.game-card__body {
  padding: clamp(1.1rem, 3vw, 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}
.game-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.game-card h3 {
  margin: 0;
}
.game-card p {
  margin: 0;
  font-size: 0.95rem;
  flex: 1;
}
.game-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.4rem;
}
/* Large, touch-friendly targets (>=48px tall) */
.game-card__actions .btn {
  flex: 1 1 8rem;
  min-height: 48px;
  padding: 0.85rem 1.1rem;
  font-size: 0.95rem;
}

/* Bonus badge — the offer, shown prominently on every card */
.bonus-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  align-self: flex-start;
  margin: 0;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.25;
  color: #201700;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  box-shadow: var(--shadow-gold);
}
.bonus-badge__ico {
  font-size: 1rem;
}

/* Compliance note under each card's buttons */
.game-card__note {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--text-dim);
}

/* Availability + category badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
}
.badge--category {
  color: var(--gold);
  border-color: rgba(245, 197, 66, 0.35);
}
.badge--available {
  color: var(--green);
  border-color: rgba(53, 201, 138, 0.4);
}
.badge--soon {
  color: var(--text-muted);
}
.badge .badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

/* Placeholder "future game" card */
.game-card--placeholder {
  border-style: dashed;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 220px;
  color: var(--text-dim);
}
.game-card--placeholder .plus {
  font-size: 2.5rem;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

/* ---------- Games directory controls ---------- */
.games-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}
.games-search {
  position: relative;
  flex: 1 1 240px;
  max-width: 420px;
}
.games-search input {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 2.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}
.games-search input::placeholder {
  color: var(--text-dim);
}
.games-search .search-ico {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
}
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chip {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.chip:hover {
  color: var(--text);
}
.chip.is-active {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #201700;
  border-color: transparent;
}
.games-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-dim);
}

/* ---------- Aviator sky / flight visual (original CSS art) ---------- */
.sky {
  position: relative;
  height: clamp(240px, 55vw, 360px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 20% 110%, rgba(58, 160, 255, 0.35), transparent 60%),
    linear-gradient(180deg, #0a1830, #0c1020 60%, #141024);
  border: 1px solid var(--border);
}
.sky__stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 70% 20%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 45% 60%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1.5px 1.5px at 85% 55%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 30% 80%, rgba(255, 255, 255, 0.5), transparent);
}
/* rising multiplier curve */
.sky__curve {
  position: absolute;
  inset: 0;
}
.sky__multiplier {
  position: absolute;
  top: 14%;
  right: 8%;
  font-weight: 800;
  font-size: clamp(1.6rem, 6vw, 2.6rem);
  color: #fff;
  text-shadow: 0 2px 18px rgba(255, 122, 26, 0.55);
}
.sky__plane {
  position: absolute;
  left: 12%;
  bottom: 16%;
  width: clamp(46px, 12vw, 74px);
  color: var(--game-b, #ff7a1a);
  filter: drop-shadow(0 6px 14px rgba(255, 122, 26, 0.45));
  animation: fly 6s ease-in-out infinite alternate;
}
@keyframes fly {
  from { transform: translate(0, 0) rotate(-4deg); }
  to   { transform: translate(clamp(60px, 22vw, 150px), calc(-1 * clamp(60px, 20vw, 130px))) rotate(-10deg); }
}

/* ---------- Related games strip ---------- */
.related-grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: 1fr;
}

/* ---------- Risk / warning emphasis ---------- */
.risk-band {
  border: 1px solid rgba(229, 72, 77, 0.4);
  background: linear-gradient(135deg, rgba(229, 72, 77, 0.10), transparent);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 1.75rem);
}
.risk-band h3 {
  color: var(--red);
  margin-top: 0;
}

/* ---------- Responsive: game grids ---------- */
@media (min-width: 600px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
  .sky__plane {
    animation: none !important;
  }
}
