/* Teen Patti Master — website styles
   Plain CSS, mobile-first, no framework, no external fonts. */

:root {
  --bg: #0f1c17;
  --bg-elevated: #16281f;
  --surface: #1c3327;
  --surface-2: #234034;
  --border: #2f5040;
  --text: #eef4f0;
  --text-muted: #a9c3b6;
  --accent: #f0c04a;
  --accent-strong: #e0a92e;
  --accent-ink: #2b2000;
  --felt: #0b3d2c;
  --danger: #ff6b6b;
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f3ea;
    --bg-elevated: #ffffff;
    --surface: #ffffff;
    --surface-2: #f0ede0;
    --border: #ddd6c2;
    --text: #1e2621;
    --text-muted: #566;
    --text-muted: #5a6b62;
    --felt: #0b6b4a;
    --accent-ink: #2b2000;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 { line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); margin: 0 0 .5rem; }
h2 { font-size: clamp(1.4rem, 3.5vw, 2rem); margin: 0 0 1rem; }
h3 { font-size: 1.15rem; margin: 0 0 .4rem; }

p { margin: 0 0 1rem; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}
.section:first-of-type { border-top: 0; }

.section-lead {
  color: var(--text-muted);
  max-width: 60ch;
  margin-bottom: 2rem;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  font-size: 1.05rem;
}
.brand img { width: 34px; height: 34px; }

.nav-links {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 600;
}
.nav-links a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 1rem;
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 8px 20px 16px;
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { border-top: 1px solid var(--border); }
  .nav-links a { display: block; padding: 12px 0; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 64px;
  background:
    radial-gradient(60% 120% at 50% 0%, color-mix(in srgb, var(--felt) 55%, transparent), transparent 70%);
  text-align: center;
}
.hero-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 18px;
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.hero .tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0 auto 1rem;
  max-width: 46ch;
}
.hero .intro { max-width: 54ch; margin: 0 auto 1.5rem; }

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}
.badges li {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: .85rem;
  font-weight: 600;
}

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.card h3 { color: var(--text); }
.card p { margin: 0; color: var(--text-muted); font-size: .96rem; }

/* ---------- How to play ---------- */
.rank-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
}
.rank-list li { margin-bottom: .35rem; }
.rank-list strong { color: var(--text); }

/* ---------- Screenshots ---------- */
.shots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}
.shots img {
  width: 200px;
  height: auto;
  aspect-ratio: 1080 / 2400;
  object-fit: contain;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}
@media (max-width: 480px) {
  .shots img { width: 44%; }
}

/* ---------- Callout ---------- */
.callout {
  background: var(--surface);
  border: 1px solid var(--accent);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px;
}
.callout h2 { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 18px;
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 14px 0;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 700;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] summary { border-bottom: 1px solid var(--border); }
.faq details p {
  color: var(--text-muted);
  padding: 14px 0 6px;
  margin: 0;
}

/* ---------- Contact ---------- */
.contact-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.contact-box a { font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 40px 0;
  color: var(--text-muted);
  font-size: .9rem;
}
.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
}
.site-footer .footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
}
.site-footer .footer-links a:hover { color: var(--text); }
.site-footer .owner { color: var(--text); font-weight: 600; }

/* ---------- Legal pages ---------- */
.legal { padding: 48px 0 72px; }
.legal .container { max-width: 780px; }
.legal h1 { margin-bottom: .25rem; }
.legal .effective { color: var(--text-muted); font-size: .9rem; margin-bottom: 2rem; }
.legal h2 {
  font-size: 1.25rem;
  margin-top: 2.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
}
.legal ul { color: var(--text-muted); padding-left: 1.2rem; }
.legal li { margin-bottom: .5rem; }
.legal .back { display: inline-block; margin-top: 2.5rem; font-weight: 600; }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
