/* ========================================================================== 
   teen patti Web — polished responsive stylesheet
   Keeps the existing HTML class names and forest-green visual identity.
   ========================================================================== */

:root {
  color-scheme: light;
  --primary-color: #087f5b;
  --primary-dark: #075c45;
  --accent-color: #21b981;
  --bg-color: #fffefa;
  --bg-alt: #f4f8f5;
  --text-main: #12251e;
  --text-muted: #53645c;
  --border-color: #dce7df;
  --danger-color: #b42332;
  --warning-bg: #fff7e6;
  --radius: 16px;
  --radius-sm: 10px;
  --max-width: 1160px;
  --shadow-soft: 0 10px 30px rgba(17, 45, 32, .07);
  --shadow-card: 0 16px 42px rgba(17, 45, 32, .09);
  --focus-ring: 0 0 0 4px rgba(33, 185, 129, .25);
}

html { box-sizing: border-box; scroll-behavior: smooth; scroll-padding-top: 24px; }
*, *::before, *::after { box-sizing: inherit; }
body {
  margin: 0;
  color: var(--text-main);
  background: var(--bg-color);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--primary-color); text-underline-offset: .2em; }
a:hover { color: var(--primary-dark); }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 5px; }
::selection { background: #b8f2d6; color: #123629; }
.wrap { width: min(100%, var(--max-width)); margin-inline: auto; padding-inline: 20px; }

/* Age notice */
.age-ribbon {
  min-height: 38px;
  padding: 8px 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: #eef8f1;
  background: #132b22;
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
}
.age-dot { width: 8px; height: 8px; border-radius: 50%; background: #62d6a2; box-shadow: 0 0 0 4px rgba(98,214,162,.12); }
.age-ribbon strong, .badge-age, .badge-18, .note-icon {
  color: #fff;
  background: var(--danger-color);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .04em;
  padding: 3px 8px;
}

/* Notice / first CTA */
.tpm-verified-alert {
  margin: 24px auto 18px;
  padding: 20px 22px;
  border: 1px solid #cde7d8;
  border-left: 4px solid var(--accent-color);
  border-radius: var(--radius);
  background: linear-gradient(110deg, #f0fbf5 0%, #fbfefa 72%);
  box-shadow: var(--shadow-soft);
}
.alert-layout { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.alert-icon-shield { display: flex; flex: 0 0 auto; }
.alert-icon-shield svg { width: 38px; height: 38px; }
.alert-content { flex: 1 1 360px; min-width: 0; }
.alert-kicker-badge { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 7px; }
.badge-status { color: var(--primary-dark); font-size: 10px; font-weight: 800; letter-spacing: .09em; }
#tpm-alert-title { margin: 0 0 5px; font-size: clamp(17px, 2vw, 21px); line-height: 1.3; letter-spacing: -.025em; }
.alert-text { max-width: 68ch; margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.65; }
.alert-action-area { display: flex; flex: 0 1 220px; flex-direction: column; align-items: stretch; gap: 9px; }
.tpm-primary-btn, .button-primary {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 19px;
  border: 1px solid #08754f;
  border-radius: 999px;
  color: #fff !important;
  background: linear-gradient(135deg, #12a56d, #08714f);
  box-shadow: 0 8px 18px rgba(8,127,91,.2);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  text-decoration: none !important;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.tpm-primary-btn:hover, .button-primary:hover { color: #fff !important; transform: translateY(-2px); filter: saturate(1.08); box-shadow: 0 12px 24px rgba(8,127,91,.28); }
.alert-link-sec { color: var(--text-muted); font-size: 12px; font-weight: 650; text-align: center; text-decoration: none; }
.alert-link-sec:hover { color: var(--primary-dark); text-decoration: underline; }

/* Three-item trust / scope bar */
.trust-strip { margin-bottom: 24px; border-block: 1px solid var(--border-color); background: #f5f8f5; }
.trust-strip-inner { display: grid; grid-template-columns: 1fr; gap: 0; padding-block: 8px; }
.trust-strip-inner > div { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 6px; }
.trust-strip-inner > div + div { border-top: 1px solid var(--border-color); }
.trust-symbol { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border: 1px solid #c4e6d2; border-radius: 11px; color: var(--primary-dark); background: #e7f7ed; font-size: 11px; font-weight: 850; }
.trust-strip p { margin: 0; font-size: 13px; font-weight: 750; line-height: 1.35; }
.trust-strip small { display: block; margin-top: 3px; color: var(--text-muted); font-size: 11px; font-weight: 500; }

/* Hero */
.hero.wrap { display: grid; grid-template-columns: 1fr; align-items: center; gap: 34px; padding-block: 34px 48px; }
.hero-copy { max-width: 650px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--primary-dark); font-size: 10px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow-line { width: 25px; height: 2px; border-radius: 2px; background: var(--accent-color); }
.hero-age { margin: 12px 0 11px; color: var(--text-muted); font-size: 10px; font-weight: 750; letter-spacing: .045em; }
#page-title { max-width: 760px; margin: 0 0 17px; color: #11271e; font-size: clamp(34px, 8vw, 58px); font-weight: 850; letter-spacing: -.055em; line-height: 1.04; }
#page-title em { color: var(--primary-color); font-style: normal; }
.hero-intro { max-width: 62ch; margin: 0 0 22px; color: var(--text-muted); font-size: 15px; line-height: 1.78; }
.hero-actions { display: flex; flex-direction: column; gap: 10px; margin-bottom: 17px; }
.button-quiet { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 11px 18px; border: 1px solid var(--border-color); border-radius: 999px; color: var(--text-main) !important; background: #fff; font-size: 13px; font-weight: 750; text-decoration: none; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.button-quiet:hover { transform: translateY(-1px); border-color: #a8cdb6; background: var(--bg-alt); }
.hero-trustline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--primary-dark); font-size: 10px; font-weight: 700; }
.hero-trustline i { width: 4px; height: 4px; border-radius: 50%; background: #9eb5a6; }
.hero-visual { position: relative; min-width: 0; }
.visual-frame { overflow: hidden; border: 1px solid #d9e8dd; border-radius: 22px; background: #eef7f0; box-shadow: var(--shadow-card); }
.visual-frame img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.visual-caption { display: flex; align-items: center; gap: 9px; padding: 12px 16px; color: #effaf2; background: #17392b; font-size: 10px; font-weight: 800; letter-spacing: .07em; }
.visual-caption span:first-child { color: #68d8a4; font-size: 16px; }
.floating-note { position: absolute; right: 10px; bottom: -14px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--border-color); border-radius: 13px; background: #fff; box-shadow: var(--shadow-soft); color: var(--text-muted); font-size: 10px; line-height: 1.45; }
.floating-note strong { color: var(--text-main); font-size: 11px; }
.note-icon { font-size: 10px; }

/* Section rhythm, headings, column layout */
.section { padding-block: 54px; border-bottom: 1px solid var(--border-color); }
.section-layout, .intro-grid, .money-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.section-aside { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 9px; }
.section-index { color: var(--primary-dark); font-size: 10px; font-weight: 850; letter-spacing: .11em; }
.aside-rule { width: 22px; height: 2px; border-radius: 2px; background: var(--accent-color); }
.aside-note { color: #738078; font-size: 11px; }
.kicker { margin: 0 0 8px; color: var(--primary-dark); font-size: 10px; font-weight: 850; letter-spacing: .12em; line-height: 1.4; text-transform: uppercase; }
.section-main h2, .download-copy h2 { margin: 0 0 13px; color: var(--text-main); font-size: clamp(24px, 4vw, 34px); font-weight: 820; letter-spacing: -.04em; line-height: 1.17; }
.section-main p { margin: 0 0 14px; color: var(--text-muted); font-size: 14px; line-height: 1.78; }
.section-main p:last-child { margin-bottom: 0; }
.section-lede { max-width: 72ch; }
.section-main strong { color: #263e32; }

/* Overview panel */
.intro-grid { align-items: start; }
.definition-card, .money-aside, .source-card { border: 1px solid var(--border-color); border-radius: var(--radius); background: linear-gradient(150deg, #f6faf6, #edf6ef); }
.definition-card { position: relative; overflow: hidden; padding: 24px; }
.definition-card::after { position: absolute; top: -35px; right: -30px; width: 120px; height: 120px; border: 1px solid rgba(8,127,91,.1); border-radius: 50%; content: ""; box-shadow: 0 0 0 15px rgba(8,127,91,.035), 0 0 0 30px rgba(8,127,91,.025); }
.definition-mark, .strategy-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 13px; color: white; background: linear-gradient(135deg, #18a874, #08714f); font-size: 14px; font-weight: 850; }
.definition-mark { margin-bottom: 17px; }
.definition-label { margin: 0 0 5px !important; color: var(--primary-dark) !important; font-size: 9px !important; font-weight: 850; letter-spacing: .12em; }
.definition-card h3 { margin: 0 0 9px; font-size: 21px; letter-spacing: -.03em; line-height: 1.25; }
.definition-card p:not(.definition-label) { margin: 0; font-size: 13px; }
.text-link { display: inline-flex; margin-top: 13px; color: var(--primary-dark); font-size: 12px; font-weight: 800; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Download panel */
.section-download.wrap { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-block: 34px; padding: 28px 22px; border: 1px solid #cbe8d5; border-radius: 20px; background: radial-gradient(ellipse at 5% 0%, #e0f6e8 0, transparent 45%), linear-gradient(115deg, #f3fbf5, #fffefa); box-shadow: var(--shadow-soft); text-align: center; }
.download-emblem { flex: 0 0 auto; }
.download-emblem img { display: block; width: 62px; height: 62px; }
.download-copy { flex: 1; max-width: 640px; }
.download-copy h2 { color: #174a35; font-size: clamp(22px, 3vw, 29px); }
.download-copy p { margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.7; }
.download-copy code { padding: 2px 6px; border-radius: 5px; color: var(--primary-dark); background: #dcf4e4; font-size: 12px; }
.download-action { display: flex; flex: 0 0 auto; flex-direction: column; align-items: center; gap: 10px; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid #c7e9d3; border-radius: 999px; color: #176444; background: #e8f8ed; font-size: 9px; font-weight: 850; letter-spacing: .045em; }
.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: #25aa70; }
.button-outline { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 10px 16px; border: 1px solid #5caf82; border-radius: 999px; color: var(--primary-dark) !important; background: #fff; font-size: 12px; font-weight: 800; text-decoration: none; transition: background .18s ease, transform .18s ease, box-shadow .18s ease; }
.button-outline:hover { transform: translateY(-1px); background: #eaf8ee; box-shadow: 0 5px 14px rgba(8,127,91,.1); }
.download-action small { max-width: 220px; color: var(--text-muted); font-size: 10px; line-height: 1.45; }

/* Safety checklist */
.safety-list { display: flex; flex-direction: column; gap: 11px; margin: 22px 0 0; padding: 0; list-style: none; counter-reset: safety; }
.safety-list li { display: flex; gap: 14px; padding: 17px; border: 1px solid var(--border-color); border-radius: 13px; background: #fff; box-shadow: 0 4px 15px rgba(17,45,32,.035); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.safety-list li:hover { transform: translateY(-2px); border-color: #bfdac9; box-shadow: var(--shadow-soft); }
.safety-list li > span { display: grid; width: 31px; height: 31px; flex: 0 0 auto; place-items: center; border-radius: 10px; color: var(--primary-dark); background: #e6f6eb; font-size: 10px; font-weight: 850; }
.safety-list h3 { margin: 0 0 4px; color: var(--text-main); font-size: 14px; line-height: 1.4; }
.safety-list p { margin: 0 !important; font-size: 12px !important; line-height: 1.65 !important; }

/* Strategy cards */
.strategy-section { position: relative; overflow: hidden; background: linear-gradient(180deg, #f4f8f4 0%, #fbfcfa 100%); }
.strategy-section::before { position: absolute; top: -100px; right: -85px; width: 240px; height: 240px; border: 1px solid rgba(8,127,91,.08); border-radius: 50%; content: ""; box-shadow: 0 0 0 24px rgba(8,127,91,.025), 0 0 0 48px rgba(8,127,91,.018); pointer-events: none; }
.strategy-section .wrap { position: relative; }
.strategy-cards { display: grid; grid-template-columns: 1fr; gap: 13px; margin-top: 22px; }
.strategy-cards article { min-width: 0; padding: 21px; border: 1px solid var(--border-color); border-radius: 15px; background: rgba(255,255,255,.9); box-shadow: 0 5px 20px rgba(17,45,32,.045); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.strategy-cards article:hover { transform: translateY(-3px); border-color: #b9dcc7; box-shadow: var(--shadow-soft); }
.strategy-icon { width: 36px; height: 36px; margin-bottom: 15px; font-size: 13px; }
.strategy-cards h3 { margin: 0 0 7px; color: var(--text-main); font-size: 15px; line-height: 1.35; }
.strategy-cards p { margin: 0 !important; font-size: 12px !important; line-height: 1.7 !important; }

/* Payments and legal */
.money-grid { align-items: start; }
.money-aside { padding: 20px; text-align: center; }
.money-aside img { display: block; width: 120px; max-height: 112px; object-fit: contain; margin: 0 auto 10px; }
.money-aside h3 { margin: 0 0 11px; font-size: 14px; }
.money-aside ul { display: flex; flex-direction: column; gap: 7px; margin: 0; padding: 0; color: var(--text-muted); font-size: 12px; list-style: none; text-align: left; }
.money-aside li::before { margin-right: 6px; color: var(--primary-color); content: "✓"; font-weight: 850; }
.law-inline { margin-top: 17px !important; padding: 13px 15px; border: 1px solid #f0dfb6; border-radius: 10px; color: #75531a !important; background: var(--warning-bg); font-size: 12px !important; }
.law-inline strong { color: #62440f; }
.section-law { background: #fbfcfa; }
.source-card { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; padding: 19px; }
.source-card h3 { margin: 0; font-size: 15px; }
.source-card ul { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; font-size: 12px; list-style: none; }
.source-card li { margin: 0; }
.source-card a { color: var(--primary-dark); font-weight: 700; text-decoration: none; }
.source-card a:hover { text-decoration: underline; }

/* Accessible native FAQ disclosure */
.faq-list { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.faq-list details { overflow: hidden; border: 1px solid var(--border-color); border-radius: 13px; background: #f7f9f7; transition: border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.faq-list details[open] { border-color: #9bc9ad; background: #fff; box-shadow: 0 7px 20px rgba(17,45,32,.055); }
.faq-list summary { display: flex; min-height: 54px; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 17px; color: var(--text-main); cursor: pointer; font-size: 13px; font-weight: 760; line-height: 1.45; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::marker { content: ""; }
.faq-list summary span { display: grid; width: 25px; height: 25px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: var(--primary-dark); background: #e6f6eb; font-size: 15px; font-weight: 750; transition: transform .18s ease; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list summary:focus-visible { outline: 3px solid rgba(33,185,129,.42); outline-offset: -3px; }
.faq-answer { margin: 0 17px; padding: 12px 0 15px; border-top: 1px solid var(--border-color); }
.faq-answer p { margin: 0 !important; color: var(--text-muted); font-size: 12px !important; line-height: 1.7 !important; }
.faq-answer a { font-weight: 750; }

/* Footer */
.site-footer { width: 100%; max-width: none; margin-top: 48px; padding: 38px 20px; color: #c3d2c9; background: #12291f; text-align: center; font-size: 11px; }
.footer-content { display: flex; max-width: 820px; flex-direction: column; gap: 10px; margin: 0 auto; }
.footer-content p { margin: 0; line-height: 1.75; }
.footer-content strong { color: #f5fcf7; }

/* Responsive refinements */
@media (min-width: 600px) {
  .wrap { padding-inline: 28px; }
  .trust-strip-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-block: 10px; }
  .trust-strip-inner > div { padding: 10px 12px; }
  .trust-strip-inner > div + div { border-top: 0; border-left: 1px solid var(--border-color); }
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
  .section-download.wrap { padding: 30px; }
  .source-card { flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (min-width: 768px) {
  .hero.wrap { grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: 44px; padding-block: 52px 66px; }
  .section { padding-block: 68px; }
  .section-layout { grid-template-columns: 155px minmax(0, 1fr); gap: 38px; }
  .intro-grid { grid-template-columns: minmax(0, 1.35fr) minmax(230px, .65fr); gap: 30px; }
  .money-grid { grid-template-columns: minmax(0, 1fr) minmax(230px, .38fr); gap: 34px; }
  .section-aside { flex-direction: column; align-items: flex-start; gap: 9px; padding-top: 5px; }
  .section-download.wrap { flex-direction: row; justify-content: space-between; gap: 24px; padding: 28px 30px; text-align: left; }
  .download-action { align-items: flex-end; }
  .download-action small { text-align: right; }
  .strategy-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .wrap { padding-inline: 32px; }
  .hero.wrap { gap: 62px; }
  .section-layout { grid-template-columns: 175px minmax(0, 1fr); gap: 48px; }
  .section { padding-block: 76px; }
}
@media (max-width: 420px) {
  .wrap { padding-inline: 16px; }
  .tpm-verified-alert { margin-top: 16px; padding: 16px; }
  .alert-icon-shield { display: none; }
  .alert-content { flex-basis: 100%; }
  .hero.wrap { padding-top: 27px; }
  #page-title { font-size: clamp(32px, 10vw, 40px); }
  .hero-trustline { gap: 6px; font-size: 9px; }
  .floating-note { right: 7px; bottom: -12px; padding: 8px 10px; }
  .section { padding-block: 44px; }
  .section-download.wrap { padding: 23px 16px; }
  .source-card { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
