/* Teen Patti Nexus — the public pages (privacy, terms, account deletion).
   Burgundy and gold like the game; long-form reading comes first. */
:root {
  --burgundy: #4a0f1f;
  --burgundy-deep: #2a0712;
  --gold: #d4a53a;
  --gold-bright: #f2cb63;
  --ink: #2b1a1f;
  --muted: #6d5a60;
  --paper: #fbf7f0;
  --card: #ffffff;
  --rule: #e8dccb;
  --link: #8c1d3a;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f3e9dc;
    --muted: #bba9a0;
    --paper: #1c0a10;
    --card: #2a1017;
    --rule: #4a2530;
    --link: #f2cb63;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}
.wrap { max-width: 780px; margin: 0 auto; padding: 0 16px; }
a { color: var(--link); }
code { font-size: 0.86em; word-break: break-all; }

.band {
  background: linear-gradient(180deg, #6b1830 0%, var(--burgundy) 55%, var(--burgundy-deep) 100%);
  border-bottom: 3px solid var(--gold);
  color: #f7ecd6;
}
.band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { color: var(--gold-bright); font-weight: 800; font-size: 1.15rem; letter-spacing: 0.02em; text-decoration: none; }
.brand span { color: #f7ecd6; font-weight: 600; }
.band nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.band nav a { color: #f7ecd6; text-decoration: none; font-size: 0.95rem; }
.band nav a[aria-current="page"] { color: var(--gold-bright); border-bottom: 2px solid var(--gold); }

.doc { padding-top: 28px; padding-bottom: 48px; }
.doc h1 { font-size: clamp(1.7rem, 5vw, 2.3rem); line-height: 1.2; margin: 0 0 6px; }
.doc h2 { font-size: 1.25rem; margin: 34px 0 8px; padding-top: 10px; border-top: 1px solid var(--rule); }
.doc h3 { font-size: 1.02rem; margin: 20px 0 4px; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin: 6px 0; }
.meta { color: var(--muted); font-size: 0.9rem; margin: 0 0 18px; }
.lead { font-size: 1.05rem; }
.note {
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--gold);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 18px 0;
}
.steps { counter-reset: step; list-style: none; padding-left: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 42px; margin: 12px 0; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--burgundy); color: var(--gold-bright);
  display: grid; place-items: center; font-weight: 700; font-size: 0.9rem;
}
table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--rule); }
th { color: var(--muted); font-weight: 600; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 20px 0; }
.cards a { display: block; background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 14px 16px; text-decoration: none; color: var(--ink); }
.cards strong { display: block; color: var(--link); margin-bottom: 4px; }

.foot { border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.88rem; padding: 18px 0 28px; }

/* The landing page: the download first, then the game. */
.hero {
  position: relative; overflow: hidden; color: #f7ecd6; isolation: isolate;
  background: radial-gradient(120% 90% at 70% 10%, #7a1d38 0%, var(--burgundy) 45%, var(--burgundy-deep) 100%);
  border-bottom: 2px solid var(--gold);
}
/* The game's own art behind the hero, blurred to a glow so no lettering
   competes with the heading. An <img> rather than a CSS background: the
   picture is content (the Website page sets it) and inline styles are not
   allowed by the page's CSP. */
.hero-bg {
  position: absolute; inset: -40px; z-index: -1; width: calc(100% + 80px); height: calc(100% + 80px);
  object-fit: cover; object-position: center 30%;
  filter: blur(18px) saturate(1.2); opacity: 0.45; pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(42, 7, 18, 0.35) 0%, rgba(28, 6, 13, 0.85) 100%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center; padding-top: 32px; padding-bottom: 40px; }
.wrap.hero-grid { max-width: 1180px; }
@media (min-width: 940px) { .hero-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px; padding-top: 52px; padding-bottom: 60px; } }
.hero-head { display: flex; align-items: center; gap: 16px; }
.app-icon { width: 88px; height: 88px; object-fit: cover; flex: 0 0 auto; border-radius: 22px; border: 2px solid var(--gold); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55); display: block; }
.hero h1 { color: var(--gold-bright); font-size: clamp(1.9rem, 5.5vw, 2.8rem); line-height: 1.08; margin: 0; letter-spacing: 0.01em; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); }
.hero h1 span { display: block; color: #f7ecd6; font-size: 0.48em; font-weight: 600; margin-top: 6px; letter-spacing: 0.03em; }
.hero-lead { font-size: 1.1rem; margin: 18px 0 22px; color: #f3e3cf; }
.hero-note { font-size: 0.86rem; color: #d9c3b4; margin: 12px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.chips li { border: 1px solid rgba(242, 203, 99, 0.55); background: rgba(0, 0, 0, 0.28); color: var(--gold-bright); border-radius: 999px; padding: 4px 12px; font-size: 0.85rem; font-weight: 600; }

/* Google's own badge, as its guidelines ask: unaltered, with clear space. */
.play-badge { display: inline-block; line-height: 0; border-radius: 12px; transition: transform 0.15s ease, filter 0.15s ease; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.55)); }
.play-badge img { height: 64px; width: auto; display: block; }
.play-badge:hover, .play-badge:focus-visible { transform: translateY(-3px) scale(1.03); filter: drop-shadow(0 10px 22px rgba(242, 203, 99, 0.35)); }
.play-badge:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 4px; }

/* The slider: a swipeable strip; site.js adds arrows, dots and autoplay. */
.slider { position: relative; border-radius: 18px; padding: 6px; background: linear-gradient(180deg, var(--gold-bright), #9b7424 50%, var(--gold)); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.6); }
.track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; border-radius: 13px; background: #12040a; scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; display: flex; flex-direction: column; }
.slide img { width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; display: block; }
.slide figcaption {
  padding: 10px 16px 11px; background: linear-gradient(180deg, #2a0712, #12040a);
  border-top: 1px solid rgba(242, 203, 99, 0.45);
  color: var(--gold-bright); font-weight: 700; font-size: clamp(0.9rem, 2.2vw, 1.05rem); text-align: center; letter-spacing: 0.01em;
}
.slider-nav { display: none; }
.slider.ready .slider-nav {
  display: grid; place-items: center; position: absolute; top: calc(50% - 20px); transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--gold); cursor: pointer;
  background: rgba(42, 7, 18, 0.78); color: var(--gold-bright); font-size: 1.4rem; line-height: 1;
}
.slider.ready .slider-nav:hover { background: var(--burgundy); }
.slider-nav.prev { left: 14px; }
.slider-nav.next { right: 14px; }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; min-height: 10px; }
.dots button { width: 10px; height: 10px; padding: 0; border-radius: 999px; border: 0; background: rgba(247, 236, 214, 0.35); cursor: pointer; transition: width 0.2s ease, background 0.2s ease; }
.dots button[aria-current="true"] { width: 28px; background: var(--gold-bright); }
@media (max-width: 520px) { .slider.ready .slider-nav { width: 36px; height: 36px; font-size: 1.1rem; } .slider-nav.prev { left: 8px; } .slider-nav.next { right: 8px; } }

.wrap.doc { max-width: 1080px; }
.doc h2.sec { border-top: 0; padding-top: 0; margin-top: 40px; font-size: 1.5rem; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.features div { background: var(--card); border: 1px solid var(--rule); border-top: 3px solid var(--gold); border-radius: 12px; padding: 14px 16px; }
.features strong { display: block; color: var(--link); margin-bottom: 4px; font-size: 1.02rem; }
.ranks li strong { color: var(--link); }
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  margin: 36px 0 8px; padding: 22px; border-radius: 16px;
  background: var(--burgundy-deep);
  border: 2px solid var(--gold); color: #f7ecd6; min-height: 150px;
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(42, 7, 18, 0.95) 0%, rgba(74, 15, 31, 0.75) 60%, rgba(74, 15, 31, 0.2) 100%);
}
.cta-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: right center; pointer-events: none; }
.cta p { margin: 0; font-size: 1.15rem; max-width: 420px; }
.cta strong { color: var(--gold-bright); display: block; font-size: 1.4rem; }
.foot a { color: var(--muted); }

/* The Website page's preview of a draft (D143). Never on the live page. */
.preview-ribbon { position: sticky; top: 0; z-index: 10; background: #f2cb63; color: #2a0712; text-align: center; font-weight: 800; letter-spacing: 0.04em; padding: 6px 12px; font-size: 0.9rem; }
