:root {
  --bg: #040506;
  --bg-soft: #08110f;
  --felt: #0d3329;
  --panel: rgba(11, 17, 16, 0.9);
  --panel-2: rgba(17, 25, 22, 0.78);
  --line: rgba(232, 178, 87, 0.28);
  --line-cool: rgba(122, 240, 193, 0.2);
  --text: #fff5dd;
  --muted: #c9c2b7;
  --faint: #8e877e;
  --gold: #e1a449;
  --amber: #ffbf5c;
  --green: #7af0c1;
  --ruby: #bd3135;
  --cyan: #5cd8ff;
  --radius: 8px;
  --shadow: 0 28px 76px rgba(0, 0, 0, 0.55);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 82% 8%, rgba(225, 164, 73, .18), transparent 28rem),
    radial-gradient(circle at 18% 20%, rgba(122, 240, 193, .12), transparent 26rem),
    linear-gradient(180deg, #020304 0%, #08110f 48%, #040506 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .28;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.82), transparent 72%);
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { color: var(--muted); line-height: 1.72; font-size: 1.03rem; }
h1, h2, h3 { margin: 0; line-height: 1.04; letter-spacing: 0; }
h1 { font-size: clamp(3.1rem, 7.2vw, 7rem); }
h2 { font-size: clamp(2.05rem, 4.5vw, 4.35rem); }
h3 { font-size: 1.16rem; }
main { overflow: hidden; }

.shell {
  width: min(1160px, calc(100% - 42px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(4, 5, 6, .76);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  transition: transform .18s ease, filter .18s ease;
}

.brand img {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  box-shadow: 0 0 24px rgba(225, 164, 73, .25);
}

.brand:hover {
  transform: translateY(-1px);
  filter: drop-shadow(0 0 14px rgba(122, 240, 193, .28));
}

.brand span {
  display: block;
  font-weight: 950;
  font-size: 1.13rem;
}

.brand small {
  display: block;
  color: var(--faint);
  font-weight: 780;
  text-transform: uppercase;
  font-size: .7rem;
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.nav-links a {
  padding: 11px 12px;
  border-radius: var(--radius);
  color: #ede4d2;
  font-weight: 820;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
}

.nav-links a:hover,
.nav-links a.active {
  transform: translateY(-1px);
  background: linear-gradient(135deg, rgba(225, 164, 73, .22), rgba(122, 240, 193, .11));
  box-shadow: inset 0 0 0 1px rgba(225, 164, 73, .42), 0 10px 26px rgba(0,0,0,.22);
  color: #fff;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--text);
  border-radius: var(--radius);
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.menu-button:hover {
  border-color: rgba(122,240,193,.65);
  background: rgba(122,240,193,.12);
  box-shadow: 0 0 0 3px rgba(122,240,193,.08);
}

.eyebrow {
  display: inline-block;
  color: var(--green);
  font-size: .78rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero {
  padding: 42px 0 34px;
}

.hero-board {
  display: grid;
  grid-template-columns: minmax(500px, .95fr) 1.05fr;
  min-height: 600px;
  border: 1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(90deg, rgba(4,5,6,.94), rgba(4,5,6,.76) 38%, rgba(4,5,6,.08)),
    url("/assets/images/teen-patti-table-hero.png") center right / cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-board::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(4,5,6,.55), transparent 36%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 42px 0 42px 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 680px;
}

.hero-copy h1 {
  max-width: 700px;
  font-size: clamp(3.1rem, 4.25vw, 4.85rem);
  line-height: .98;
}

.hero-copy p {
  margin: 22px 0 0;
  max-width: 560px;
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.button {
  min-height: 48px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-weight: 950;
  border: 1px solid rgba(255,255,255,.12);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

.button:hover {
  transform: translateY(-3px);
  border-color: rgba(122, 240, 193, .7);
  box-shadow: 0 18px 44px rgba(122, 240, 193, .18), 0 0 0 3px rgba(122,240,193,.08);
}

.button.primary {
  color: #07110d;
  background: linear-gradient(135deg, #f1b456, #fff0c7 52%, #7af0c1);
  box-shadow: 0 18px 44px rgba(225, 164, 73, .2);
}

.button.primary:hover {
  background: linear-gradient(135deg, #ffd06f, #fff7dd 48%, #8dffd0);
}

.button.ghost {
  background: rgba(255,255,255,.045);
}

.button.ghost:hover {
  background: rgba(122,240,193,.1);
  color: #fff;
}

.table-meter {
  position: absolute;
  z-index: 2;
  right: 28px;
  bottom: 28px;
  width: min(560px, calc(100% - 56px));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.meter-cell {
  padding: 16px;
  border-radius: 8px;
  background: rgba(5, 8, 8, .72);
  border: 1px solid rgba(225, 164, 73, .2);
  backdrop-filter: blur(12px);
}

.meter-cell b { display: block; color: var(--text); }
.meter-cell span { color: var(--muted); font-size: .9rem; }

.section { padding: 58px 0; }

.section-heading {
  display: grid;
  grid-template-columns: .9fr 1fr;
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
}

.section-heading p { margin: 0; }

.section-heading h2 {
  font-size: clamp(1.9rem, 3.6vw, 3.25rem);
}

.panel h2,
.content-card h2 {
  font-size: clamp(1.55rem, 2.7vw, 2.45rem);
}

.rank-ribbon {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.rank-card {
  min-height: 150px;
  padding: 18px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)),
    rgba(13, 22, 19, .86);
  border: 1px solid rgba(225,164,73,.18);
  position: relative;
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.rank-card:hover {
  transform: translateY(-5px);
  border-color: rgba(122,240,193,.55);
  box-shadow: 0 18px 38px rgba(0,0,0,.34), inset 0 0 0 1px rgba(225,164,73,.22);
  background:
    linear-gradient(180deg, rgba(122,240,193,.12), rgba(255,255,255,.025)),
    rgba(13, 22, 19, .92);
}

.rank-card::after {
  content: attr(data-symbol);
  position: absolute;
  right: 14px;
  bottom: -4px;
  color: rgba(225,164,73,.16);
  font-size: 4.6rem;
  font-weight: 900;
}

.rank-card b {
  display: block;
  color: var(--green);
  margin-bottom: 36px;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 18px;
}

.panel, .route-card, .question, .legal-card {
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.09);
  box-shadow: 0 20px 50px rgba(0,0,0,.24);
}

.panel { padding: 28px; }

.seat-map {
  min-height: 430px;
  background:
    radial-gradient(ellipse at center, rgba(21, 78, 60, .9), rgba(7, 12, 11, .92) 65%),
    var(--panel);
  position: relative;
  overflow: hidden;
}

.seat-map::before {
  content: "";
  position: absolute;
  inset: 44px;
  border: 2px solid rgba(225,164,73,.32);
  border-radius: 50%;
}

.seat {
  position: absolute;
  width: 96px;
  height: 48px;
  border: 1px solid rgba(122,240,193,.25);
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(4,5,6,.42);
  color: var(--text);
  font-weight: 900;
}

.seat.one { top: 42px; left: calc(50% - 48px); }
.seat.two { top: 45%; right: 28px; }
.seat.three { bottom: 42px; left: calc(50% - 48px); }
.seat.four { top: 45%; left: 28px; }

.center-hand {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.cards {
  display: flex;
  gap: 8px;
  transform: rotate(-4deg);
}

.mini-card {
  width: 58px;
  height: 82px;
  border-radius: 8px;
  background: #fff4df;
  color: #15110c;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 950;
  box-shadow: 0 12px 30px rgba(0,0,0,.42);
}

.mini-card.red { color: var(--ruby); }

.check-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 12px;
}

.check-list li {
  color: var(--muted);
  padding: 14px 14px 14px 42px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.035);
  border-radius: 8px;
  position: relative;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 16px rgba(225,164,73,.85);
}

.routes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.route-card {
  min-height: 210px;
  padding: 22px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.route-card:hover {
  transform: translateY(-5px);
  border-color: rgba(122,240,193,.55);
  background: linear-gradient(180deg, rgba(122,240,193,.11), rgba(255,255,255,.035)), var(--panel);
  box-shadow: 0 22px 46px rgba(0,0,0,.36), 0 0 0 3px rgba(122,240,193,.07);
}

.route-card b {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  color: #07110d;
  background: linear-gradient(135deg, var(--gold), #fff0c7);
  margin-bottom: 34px;
}

.question-list { display: grid; gap: 12px; }
details.question { overflow: hidden; }
details.question {
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
details.question:hover {
  border-color: rgba(122,240,193,.45);
  background: rgba(16, 30, 26, .94);
  box-shadow: 0 18px 34px rgba(0,0,0,.28);
}
details summary {
  cursor: pointer;
  padding: 19px 22px;
  font-weight: 950;
  list-style: none;
}
details summary::-webkit-details-marker { display: none; }
details p { margin: 0; padding: 0 22px 22px; }

.subhero {
  padding: 72px 0 36px;
}

.subhero-inner {
  min-height: 370px;
  padding: 42px;
  border-radius: 8px;
  display: grid;
  align-content: end;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background:
    linear-gradient(90deg, rgba(4,5,6,.94), rgba(4,5,6,.46)),
    url("/assets/images/teen-patti-table-hero.png") center right / cover;
}

.subhero h1 { font-size: clamp(2.8rem, 6vw, 5.8rem); }
.subhero p { max-width: 760px; font-size: 1.14rem; }

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.content-card {
  padding: 24px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.09);
  background: var(--panel-2);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.content-card:hover {
  transform: translateY(-4px);
  border-color: rgba(122,240,193,.45);
  box-shadow: 0 18px 36px rgba(0,0,0,.28);
}

.content-card strong {
  display: inline-block;
  color: var(--green);
  margin-bottom: 16px;
}

.wide-card { grid-column: 1 / -1; }
.legal-card { padding: 28px; }
.legal-card h2 { font-size: 1.75rem; margin-top: 24px; }
.legal-card h2:first-child { margin-top: 0; }

.contact-box {
  display: grid;
  grid-template-columns: 1fr .82fr;
  gap: 18px;
}

.site-footer {
  margin-top: 56px;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(3,4,5,.76);
}

.footer-inner {
  padding: 34px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: var(--muted);
}

.footer-links a {
  transition: color .18s ease, text-shadow .18s ease;
}

.footer-links a:hover {
  color: var(--green);
  text-shadow: 0 0 18px rgba(122,240,193,.35);
}

.copyright {
  border-top: 1px solid rgba(255,255,255,.08);
  color: var(--faint);
  text-align: center;
  padding: 18px 0;
  font-size: .92rem;
}

@media (max-width: 980px) {
  .shell { width: min(100% - 28px, 760px); }
  .menu-button { display: inline-grid; place-items: center; }
  .nav { min-height: 74px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 74px;
    left: 14px;
    right: 14px;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    border-radius: 8px;
    background: rgba(5, 7, 7, .96);
    border: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .hero-board, .split, .section-heading, .content-grid, .contact-box, .footer-inner {
    grid-template-columns: 1fr;
  }
  .hero-board {
    min-height: 660px;
    background-position: center;
  }
  .hero-copy {
    padding: 34px 28px 230px;
    max-width: 100%;
  }
  .hero-copy h1 {
    max-width: 560px;
    font-size: clamp(3rem, 10vw, 4.8rem);
  }
  .rank-ribbon { grid-template-columns: repeat(3, 1fr); }
  .routes { grid-template-columns: 1fr; }
  .table-meter { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .shell { width: min(100% - 20px, 520px); }
  h1 { font-size: clamp(2.55rem, 14vw, 4.2rem); }
  h2 { font-size: clamp(2rem, 9vw, 3rem); }
  .hero { padding-top: 30px; }
  .hero-board { min-height: 640px; }
  .hero-copy { padding: 28px 20px 238px; }
  .hero-copy h1 {
    font-size: clamp(2.65rem, 13vw, 3.75rem);
    line-height: 1;
  }
  .hero-copy p { font-size: 1rem; }
  .table-meter { left: 16px; right: 16px; bottom: 16px; width: auto; }
  .rank-ribbon { grid-template-columns: 1fr; }
  .seat { width: 74px; height: 40px; font-size: .82rem; }
  .seat.two { right: 14px; }
  .seat.four { left: 14px; }
  .subhero-inner { min-height: 320px; padding: 28px; }
}
