/* TeenPattiMaster.im — Linen + Forest + Gold (matches portal template) */
:root {
  --linen-50: #FDFBF7;
  --linen-100: #FBF9F5;
  --linen-200: #F4EFE6;
  --linen-300: #E8DFC8;
  --forest-950: #07180F;
  --forest-900: #0D2818;
  --forest-800: #143B25;
  --forest-700: #1E5234;
  --gold-400: #E5CD82;
  --gold-500: #C5A059;
  --gold-600: #A8833E;
  --ink-900: #121A15;
  --ink-700: #334439;
  --ink-600: #4D6153;
  --bg: var(--linen-100);
  --bg-soft: var(--linen-200);
  --card: #fffefb;
  --border: var(--linen-300);
  --text: var(--ink-900);
  --muted: var(--ink-600);
  --primary: var(--forest-900);
  --primary-dark: var(--forest-950);
  --radius: 1rem;
  --shadow: 0 2px 8px -2px rgba(13, 40, 24, 0.06);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--forest-800); text-decoration: none; font-weight: 600; }
a:hover { color: var(--gold-600); }
.container { width: min(1120px, 100% - 2rem); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--forest-900);
  border-bottom: 1px solid rgba(197,160,89,0.3);
  color: var(--linen-100);
}
.header-inner {
  width: min(1120px, 100% - 2rem);
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
}
.logo {
  display: flex; align-items: center; gap: 0.65rem;
  color: #fff; font-weight: 800; font-size: 1.15rem; text-decoration: none;
}
.logo-mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--gold-500); color: var(--forest-950);
  display: flex; align-items: center; justify-content: center; font-size: 1.25rem;
}
.logo span { color: var(--gold-400); }
.nav { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.nav a {
  color: var(--linen-200); font-size: 0.85rem; font-weight: 700;
  padding: 0.4rem 0.75rem; border-radius: 10px; text-decoration: none;
}
.nav a:hover, .nav a.active { color: var(--gold-400); background: var(--forest-800); }
.lang-switch {
  display: flex; background: var(--forest-950); border: 1px solid rgba(197,160,89,0.3);
  border-radius: 10px; padding: 3px; font-size: 0.75rem; font-weight: 800;
}
.lang-switch a {
  padding: 0.35rem 0.6rem; border-radius: 8px; color: var(--linen-300); text-decoration: none;
}
.lang-switch a.active { background: var(--gold-500); color: var(--forest-950); }

.top-bar {
  background: var(--forest-950); color: var(--linen-200);
  font-size: 0.8rem; padding: 0.55rem 1rem; border-bottom: 1px solid rgba(197,160,89,0.2);
  text-align: center;
}
.top-bar strong {
  background: var(--gold-500); color: var(--forest-950);
  padding: 0.15rem 0.45rem; border-radius: 4px; font-size: 0.7rem; margin-right: 0.4rem;
}

.hero {
  background: var(--forest-900); color: var(--linen-100);
  padding: 2.5rem 1rem 2rem; text-align: center;
  border-bottom: 1px solid rgba(197,160,89,0.3);
}
.hero h1 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.5rem); font-weight: 900; margin: 0.5rem 0; line-height: 1.15; }
.hero-sub { color: var(--linen-200); max-width: 36rem; margin: 0 auto; font-weight: 500; }
.badge-row { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; }
.badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.35rem 0.85rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700;
  background: var(--forest-800); border: 1px solid rgba(197,160,89,0.35); color: var(--gold-300, #F5E6B8);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0.7rem 1.2rem; border-radius: 12px;
  font-weight: 800; font-size: 0.9rem; border: none; cursor: pointer; text-decoration: none;
  background: linear-gradient(135deg, #C5A059, #B28D46); color: var(--forest-950) !important;
}
.btn:hover { filter: brightness(1.05); }
.btn-outline {
  background: var(--forest-900) !important; color: var(--linen-100) !important;
  border: 1px solid rgba(197,160,89,0.4);
}
.btn-outline:hover { background: var(--forest-800) !important; color: #fff !important; }

.section { padding: 2rem 0; }
.section-tight { padding: 1.5rem 0; }
.section-title {
  font-size: 1.4rem; font-weight: 900; color: var(--forest-950);
  margin: 0 0 0.35rem; border-left: 4px solid var(--gold-500); padding-left: 0.75rem;
}
.section-sub { color: var(--muted); font-size: 0.9rem; margin: 0 0 1rem; padding-left: 0.9rem; }

.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem;
}
.card {
  background: var(--linen-200); border: 1px solid var(--linen-300);
  border-radius: 1rem; padding: 1.15rem; box-shadow: var(--shadow);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.card:hover { border-color: var(--gold-500); box-shadow: 0 12px 24px -6px rgba(13,40,24,0.08); }
.card h3 { margin: 0 0 0.4rem; font-size: 1.05rem; color: var(--forest-950); font-weight: 800; }
.card p { margin: 0 0 0.75rem; color: var(--ink-600); font-size: 0.9rem; }
.card-tags { margin-bottom: 0.45rem; }
.tag {
  display: inline-block; font-size: 0.7rem; font-weight: 800;
  padding: 0.2rem 0.5rem; border-radius: 6px;
  background: rgba(197,160,89,0.2); color: var(--gold-600);
}

.page-header {
  background: var(--forest-900); color: var(--linen-100);
  padding: 1.75rem 0 1.25rem; border-bottom: 1px solid rgba(197,160,89,0.3);
}
.page-header h1 { margin: 0.35rem 0; font-size: 1.65rem; color: #fff; font-weight: 900; }
.page-meta { color: var(--linen-200); font-size: 0.88rem; margin: 0; }
.breadcrumb { font-size: 0.8rem; color: var(--linen-300); }
.breadcrumb a { color: var(--gold-400); }

.content-wrap {
  width: min(800px, 100% - 2rem); margin: 1.75rem auto 2.5rem;
}
.content-wrap h2 {
  color: var(--forest-950); font-size: 1.25rem; font-weight: 900;
  border-left: 4px solid var(--gold-500); padding-left: 0.65rem; margin-top: 1.75rem;
}
.content-wrap h3 { color: var(--forest-800); font-size: 1.05rem; }
.content-wrap p, .content-wrap li { color: var(--ink-700); }

.alert {
  padding: 0.9rem 1rem; border-radius: 12px; margin: 1rem 0; font-size: 0.9rem;
  border: 1px solid var(--linen-300); background: var(--linen-200);
}
.alert-info { border-color: rgba(42,111,72,0.3); background: rgba(42,111,72,0.08); }
.alert-warning { border-color: rgba(197,160,89,0.5); background: rgba(197,160,89,0.12); }
.alert-danger { border-color: rgba(180,80,60,0.4); background: rgba(180,80,60,0.08); color: #7f1d1d; }

.checklist {
  background: var(--linen-200); border: 1px solid var(--linen-300);
  border-radius: 1rem; padding: 1rem 1.15rem; margin: 1rem 0;
}
.checklist h3 { margin-top: 0; color: var(--forest-900); }

.faq-item {
  background: var(--linen-200); border: 1px solid var(--linen-300);
  border-radius: 12px; margin-bottom: 0.5rem; overflow: hidden;
}
.faq-q {
  width: 100%; text-align: left; background: transparent; border: none;
  color: var(--forest-950); font-weight: 800; font-size: 0.92rem;
  padding: 0.9rem 1rem; cursor: pointer; font-family: inherit;
}
.faq-a {
  display: none; padding: 0 1rem 0.9rem; color: var(--ink-600); font-size: 0.88rem;
  border-top: 1px solid var(--linen-300);
}
.faq-item.open .faq-a { display: block; padding-top: 0.75rem; }

.site-footer {
  background: var(--forest-950); color: var(--linen-300);
  padding: 2rem 1rem 2.5rem; font-size: 0.85rem;
  border-top: 1px solid rgba(197,160,89,0.25);
}
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem; margin-bottom: 1.25rem; width: min(1120px, 100% - 2rem); margin-inline: auto;
}
.footer-grid strong { color: var(--gold-400); }
.footer-grid a { color: var(--linen-200); }
.footer-bottom { text-align: center; width: min(720px, 100% - 2rem); margin: 0 auto; }
.disclaimer-box {
  padding: 0.9rem 1rem; border-radius: 12px;
  background: rgba(13,40,24,0.5); border: 1px solid rgba(197,160,89,0.25);
  font-size: 0.8rem; line-height: 1.5; text-align: left; color: var(--linen-300);
}

.legal-callout {
  max-width: 960px; margin: 1rem auto; padding: 0.85rem 1.1rem;
  background: rgba(197,160,89,0.12); border: 1px solid rgba(197,160,89,0.4);
  border-left: 4px solid var(--gold-500); border-radius: 10px;
  font-size: 0.85rem; color: var(--ink-700); line-height: 1.5;
}
.rank-strip { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; margin-top: 1rem; }
.rank-chip {
  display: inline-flex; align-items: center; background: var(--linen-200);
  border: 1px solid var(--linen-300); border-radius: 999px;
  padding: 0.3rem 0.65rem; font-size: 0.75rem; font-weight: 700; color: var(--forest-900);
}
.rank-chip span { color: var(--gold-600); margin-right: 0.25rem; font-weight: 900; }
.download-meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.6rem; margin-bottom: 1rem; font-size: 0.85rem;
}



img.logo-mark, .logo-mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--gold-500); color: var(--forest-950);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 900; flex-shrink: 0;
}
.logo { gap: 0.65rem; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.88rem;
  background: var(--card, #fffefb);
  border: 1px solid var(--border, #E8DFC8);
  border-radius: 12px;
  overflow: hidden;
}
.data-table th, .data-table td {
  border: 1px solid var(--border, #E8DFC8);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}
.data-table th {
  background: var(--forest-900, #0D2818);
  color: #FBF9F5;
  font-weight: 800;
}
.data-table tr:nth-child(even) td { background: rgba(244,239,230,0.6); }
.data-table .tier-s { color: #8a672b; font-weight: 800; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1rem 0; }

/* Mobile nav drawer */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid rgba(197,160,89,0.4);
  border-radius: 10px;
  background: var(--forest-950, #07180F);
  color: var(--gold-400, #E5CD82);
  font-size: 1.25rem;
  cursor: pointer;
  align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-drawer-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(7,24,15,0.55);
  z-index: 90;
}
.nav-drawer-backdrop.open { display: block; }
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .header-inner { min-height: 60px; }
  .site-header .nav {
    display: none;
    position: fixed;
    top: 0; right: 0;
    width: min(320px, 88vw);
    height: 100vh;
    height: 100dvh;
    background: var(--forest-900, #0D2818);
    border-left: 1px solid rgba(197,160,89,0.35);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4.5rem 1rem 1.5rem;
    z-index: 100;
    box-shadow: -8px 0 24px rgba(0,0,0,0.25);
    overflow-y: auto;
  }
  .site-header .nav.open { display: flex; }
  .site-header .nav a {
    padding: 0.85rem 1rem;
    font-size: 1rem;
    border-radius: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .page-header { padding: 1.25rem 0 1rem; }
  .page-header h1 { font-size: 1.35rem; line-height: 1.25; }
  .content-wrap { margin: 1.15rem auto 2rem; width: min(800px, 100% - 1.5rem); }
  .content-wrap h2 { font-size: 1.1rem; }
  .data-table { font-size: 0.8rem; }
  .data-table th, .data-table td { padding: 0.5rem 0.55rem; }
  .btn { min-height: 48px; width: 100%; max-width: 100%; }
  .cards-grid { gap: 0.85rem; }
  .top-bar { font-size: 0.72rem; padding: 0.45rem 0.75rem; line-height: 1.4; }
  .logo { font-size: 1rem; }
  .lang-switch { font-size: 0.7rem; }
}
@media (max-width: 400px) {
  .logo span:last-of-type { /* keep */ }
  .header-inner { gap: 0.5rem; }
}
body.nav-open { overflow: hidden; }
