/* Teen Patti Master — lightweight mobile-first stylesheet */
:root {
  --bg:#070b12;
  --surface:#0d131d;
  --surface-2:#111a26;
  --surface-3:#162131;
  --text:#f6f8fb;
  --muted:#aab5c5;
  --muted-2:#7f8b9c;
  --line:rgba(255,255,255,.09);
  --gold:#f5c84b;
  --gold-soft:#ffe89a;
  --red:#d9364a;
  --blue:#6bc9ff;
  --max:1120px;
  --radius:18px;
  --shadow:0 18px 50px rgba(0,0,0,.28)
}
* {
  box-sizing:border-box
}
html {
  scroll-behavior:smooth
}
body {
  margin:0;
  overflow-x:hidden;
  background:var(--bg);
  color:var(--text);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  line-height:1.65;
  -webkit-font-smoothing:antialiased
}
body:before {
  content:"";
  position:fixed;
  z-index:-1;
  inset:0;
  background:radial-gradient(650px 360px at 50% -180px,rgba(31,72,119,.42),transparent 72%)
}
img {
  display:block;
  max-width:100%;
  height:auto
}
a {
  color:inherit;
  text-decoration:none
}
button {
  font:inherit
}
.container {
  width:min(calc(100% - 28px),var(--max));
  margin-inline:auto
}
.skip {
  position:absolute;
  left:-9999px
}
.skip:focus {
  left:12px;
  top:12px;
  z-index:999;
  background:#fff;
  color:#000;
  padding:10px 12px;
  border-radius:8px
}
.header {
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(7,11,18,.92);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(12px)
}
.nav {
  min-height:70px;
  display:flex;
  align-items:center;
  gap:18px
}
.brand {
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:850;
  letter-spacing:-.025em;
  white-space:nowrap
}
.brand img {
  width:42px;
  height:42px;
  object-fit:contain
}
.brand span {
  font-size:1rem
}
.nav-links {
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:2px
}
.nav-links a {
  padding:9px 11px;
  color:#cbd4e2;
  border-radius:9px;
  font-size:.92rem
}
.nav-links a:hover,.nav-links a[aria-current=page] {
  background:rgba(255,255,255,.06);
  color:#fff
}
.menu {
  display:none;
  margin-left:auto;
  width:42px;
  height:42px;
  padding:0;
  border:1px solid var(--line);
  border-radius:9px;
  background:transparent;
  color:#fff;
  font-size:1.55rem;
  line-height:1;
  font-weight:900;
  align-items:center;
  justify-content:center
}
.top-download {
  margin-left:5px
}
.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:11px 17px;
  border-radius:11px;
  border:1px solid transparent;
  font-weight:850;
  line-height:1.1;
  transition:transform .15s ease,box-shadow .15s ease,background .15s ease
}
.btn:hover {
  transform:translateY(-1px)
}
.btn:focus-visible,.nav-links a:focus-visible,.menu:focus-visible {
  outline:3px solid rgba(107,201,255,.35);
  outline-offset:2px
}
.btn-primary {
  background:var(--gold);
  color:#17130a;
  box-shadow:0 8px 24px rgba(245,200,75,.14)
}
.btn-secondary {
  background:rgba(255,255,255,.035);
  border-color:var(--line);
  color:#fff
}
.hero {
  padding:54px 0 36px
}
.hero-grid {
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(270px,.8fr);
  gap:44px;
  align-items:center
}
.kicker {
  color:var(--gold-soft);
  font-size:.76rem;
  font-weight:850;
  letter-spacing:.13em;
  text-transform:uppercase
}
.hero h1 {
  font-size:clamp(2.25rem,5.4vw,4.25rem);
  line-height:1.02;
  letter-spacing:-.055em;
  margin:12px 0 18px;
  max-width:760px
}
.hero h1 em {
  font-style:normal;
  color:var(--gold-soft)
}
.lead {
  font-size:1.08rem;
  color:#b5c0cf;
  max-width:720px;
  margin:0
}
.actions {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:24px
}
.fine {
  margin-top:12px;
  color:var(--muted-2);
  font-size:.83rem
}
.hero-art {
  display:flex;
  justify-content:center
}
.logo-frame {
  width:min(290px,72vw);
  aspect-ratio:1;
  border-radius:30px;
  background:linear-gradient(145deg,#111c2a,#080d15);
  border:1px solid rgba(255,255,255,.1);
  box-shadow:var(--shadow);
  display:grid;
  place-items:center;
  padding:20px
}
.hero-logo {
  width:100%;
  height:100%;
  object-fit:contain
}
.quick {
  display:grid;
  grid-template-columns:repeat(5,1fr);
  border:1px solid var(--line);
  border-radius:16px;
  overflow:hidden;
  background:rgba(13,19,29,.72)
}
.quick-item {
  padding:17px 13px;
  border-right:1px solid var(--line);
  text-align:center
}
.quick-item:last-child {
  border-right:0
}
.quick strong {
  display:block;
  font-size:1rem
}
.quick span {
  display:block;
  color:var(--muted-2);
  font-size:.76rem;
  margin-top:2px
}
.section {
  padding:52px 0
}
.section.alt {
  background:rgba(255,255,255,.018);
  border-block:1px solid rgba(255,255,255,.04)
}
.section-head {
  max-width:760px;
  margin-bottom:24px
}
.section-head h2 {
  font-size:clamp(1.65rem,3.4vw,2.35rem);
  line-height:1.15;
  letter-spacing:-.035em;
  margin:0 0 9px
}
.section-head p {
  margin:0;
  color:var(--muted)
}
.grid-2 {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px
}
.grid-3 {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px
}
.card {
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:21px
}
.card h3 {
  margin:0 0 7px;
  font-size:1.08rem;
  line-height:1.35
}
.card p {
  margin:0;
  color:var(--muted)
}
.icon {
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  border-radius:10px;
  background:rgba(245,200,75,.09);
  color:var(--gold-soft);
  font-weight:900;
  margin-bottom:13px
}
.muted {
  color:var(--muted)
}
.app-panel {
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(280px,.95fr);
  gap:18px
}
.facts {
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:10px
}
.fact {
  padding:16px;
  border:1px solid var(--line);
  border-radius:13px;
  background:rgba(255,255,255,.025)
}
.fact span {
  display:block;
  color:var(--muted-2);
  font-size:.78rem
}
.fact strong {
  display:block;
  margin-top:3px;
  font-size:1.03rem
}
.table-wrap {
  overflow:auto;
  border:1px solid var(--line);
  border-radius:15px
}
.table {
  width:100%;
  border-collapse:collapse;
  min-width:460px
}
.table th,.table td {
  padding:13px 15px;
  text-align:left;
  border-bottom:1px solid var(--line)
}
.table th {
  width:38%;
  background:rgba(255,255,255,.025);
  color:#dce4ef
}
.table tr:last-child th,.table tr:last-child td {
  border-bottom:0
}
.steps {
  display:grid;
  gap:0
}
.step {
  display:grid;
  grid-template-columns:40px 1fr;
  gap:14px;
  padding:17px 0;
  border-bottom:1px solid var(--line)
}
.step:last-child {
  border-bottom:0
}
.step-no {
  width:36px;
  height:36px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:rgba(245,200,75,.1);
  color:var(--gold-soft);
  font-weight:900
}
.step h3 {
  margin:0 0 4px;
  font-size:1rem
}
.step p {
  margin:0;
  color:var(--muted)
}
.checklist {
  display:grid;
  gap:10px;
  padding:0;
  margin:0;
  list-style:none
}
.checklist li {
  position:relative;
  padding-left:25px;
  color:#c2ccd9
}
.checklist li:before {
  content:"✓";
  position:absolute;
  left:0;
  color:var(--gold-soft);
  font-weight:900
}
.callout {
  padding:25px;
  border:1px solid rgba(245,200,75,.2);
  border-radius:18px;
  background:linear-gradient(135deg,rgba(245,200,75,.07),rgba(107,201,255,.025))
}
.callout h2 {
  margin:0 0 7px
}
.callout p {
  margin:0 0 16px;
  color:var(--muted)
}
.link-row {
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  margin-top:17px
}
.text-link {
  color:var(--blue);
  font-weight:750
}
.text-link:hover {
  text-decoration:underline;
  text-underline-offset:3px
}
.breadcrumbs {
  padding-top:18px;
  color:var(--muted-2);
  font-size:.84rem
}
.breadcrumbs a {
  color:#c7d1df
}
.page-head {
  padding:40px 0 20px
}
.page-head h1 {
  font-size:clamp(2rem,4.5vw,3.35rem);
  line-height:1.05;
  letter-spacing:-.045em;
  margin:8px 0 12px
}
.page-head p {
  max-width:780px;
  margin:0;
  color:var(--muted)
}
.article {
  max-width:850px
}
.article h2 {
  font-size:1.65rem;
  line-height:1.2;
  margin:38px 0 10px
}
.article h3 {
  font-size:1.16rem;
  line-height:1.3;
  margin:26px 0 7px
}
.article p,.article li {
  color:#c4cedc
}
.article p {
  margin:0 0 13px
}
.article ul,.article ol {
  padding-left:22px
}
.article a {
  color:var(--blue);
  text-decoration:underline;
  text-underline-offset:3px
}
.notice {
  padding:16px;
  border:1px solid rgba(107,201,255,.15);
  border-radius:14px;
  background:rgba(107,201,255,.04);
  color:#c7d2df
}
.pill {
  display:inline-block;
  padding:5px 9px;
  border:1px solid var(--line);
  border-radius:999px;
  color:#c1ccda;
  font-size:.76rem
}
.article-card {
  height:100%;
  display:flex;
  flex-direction:column
}
.article-card .pill {
  width:max-content
}
.article-card h3 {
  margin:10px 0 8px
}
.article-card p {
  margin-bottom:15px
}
.article-card .more {
  margin-top:auto;
  color:var(--blue);
  font-weight:800
}
.faq details {
  border:1px solid var(--line);
  border-radius:13px;
  background:var(--surface);
  padding:15px 16px;
  margin:9px 0
}
.faq summary {
  cursor:pointer;
  font-weight:800
}
.faq p {
  margin:10px 0 0;
  color:var(--muted)
}
.footer {
  margin-top:38px;
  border-top:1px solid var(--line);
  background:#060a10
}
.footer-grid {
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr;
  gap:30px;
  padding:40px 0
}
.footer h3 {
  font-size:.95rem;
  margin:0 0 10px
}
.footer p,.footer a {
  color:#8793a5;
  font-size:.88rem
}
.footer .brand span {
  color:#fff
}
.footer-links {
  display:grid;
  gap:7px
}
.footer a:hover {
  color:#fff
}
.copyright {
  display:flex;
  justify-content:space-between;
  gap:15px;
  padding:15px 0;
  border-top:1px solid var(--line);
  color:#697588;
  font-size:.78rem
}
@media(max-width:900px) {
  .hero-grid,.app-panel {
    grid-template-columns:1fr
  }
  .hero-art {
    order:-1
  }
  .logo-frame {
    width:220px
  }
  .quick {
    grid-template-columns:repeat(3,1fr)
  }
  .quick-item:nth-child(3) {
    border-right:0
  }
  .quick-item:nth-child(n+4) {
    border-top:1px solid var(--line)
  }
  .grid-3 {
    grid-template-columns:1fr 1fr
  }
  .footer-grid {
    grid-template-columns:1fr 1fr
  }
}
@media(max-width:720px) {
  .nav {
    min-height:64px
  }
  .menu {
    display:block
  }
  .nav-links {
    display:none;
    position:absolute;
    top:64px;
    left:12px;
    right:12px;
    padding:8px;
    background:#0b111a;
    border:1px solid var(--line);
    border-radius:13px;
    box-shadow:var(--shadow);
    flex-direction:column;
    align-items:stretch
  }
  .nav-links.open {
    display:flex
  }
  .nav-links a {
    padding:11px
  }
  .top-download {
    display:inline-flex;
    margin-left:0;
    min-height:42px;
    padding:9px 13px
  }
  .hero {
    padding:38px 0 28px
  }
  .hero-art {
    order:-1
  }
  .logo-frame {
    width:190px;
    border-radius:24px;
    padding:14px
  }
  .hero h1 {
    font-size:2.55rem
  }
  .actions .btn {
    flex:1 1 190px
  }
  .section {
    padding:42px 0
  }
  .grid-2,.grid-3 {
    grid-template-columns:1fr
  }
  .facts {
    grid-template-columns:1fr 1fr
  }
  .footer-grid {
    grid-template-columns:1fr
  }
  .copyright {
    flex-direction:column
  }
  .page-head {
    padding:34px 0 16px
  }
}
@media(max-width:430px) {
  .container {
    width:calc(100% - 22px)
  }
  .brand span {
    font-size:.93rem
  }
  .brand img {
    width:38px;
    height:38px
  }
  .hero h1 {
    font-size:2.2rem
  }
  .lead {
    font-size:1rem
  }
  .quick {
    grid-template-columns:1fr 1fr
  }
  .quick-item:nth-child(2),.quick-item:nth-child(4) {
    border-right:0
  }
  .quick-item:nth-child(n+3) {
    border-top:1px solid var(--line)
  }
  .facts {
    grid-template-columns:1fr
  }
  .actions .btn {
    width:100%;
    flex-basis:100%
  }
}
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto
  }
  .btn {
    transition:none
  }
}
/* v5 content modules */
.toc {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:18px 0 0
}
.toc a {
  padding:8px 11px;
  border:1px solid var(--line);
  border-radius:999px;
  color:#c9d3e0;
  font-size:.82rem
}
.toc a:hover {
  border-color:rgba(245,200,75,.35);
  color:#fff
}
.prose-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px
}
.prose-grid .card {
  height:100%
}
.rule-table {
  width:100%;
  border-collapse:collapse
}
.rule-table th,.rule-table td {
  padding:12px 13px;
  text-align:left;
  border-bottom:1px solid var(--line);
  vertical-align:top
}
.rule-table th {
  color:#dce4ef;
  background:rgba(255,255,255,.025)
}
.rule-table tr:last-child th,.rule-table tr:last-child td {
  border-bottom:0
}
.mini-label {
  display:block;
  color:var(--gold-soft);
  font-size:.72rem;
  font-weight:850;
  letter-spacing:.11em;
  text-transform:uppercase;
  margin-bottom:7px
}
.notice.warning {
  border-color:rgba(245,200,75,.2);
  background:rgba(245,200,75,.045)
}
.number-list {
  counter-reset:item;
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:12px
}
.number-list li {
  counter-increment:item;
  display:grid;
  grid-template-columns:34px 1fr;
  gap:12px;
  align-items:start
}
.number-list li:before {
  content:counter(item);
  width:30px;
  height:30px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:rgba(245,200,75,.1);
  color:var(--gold-soft);
  font-weight:900
}
.stat-strip {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px
}
.stat {
  padding:16px;
  border:1px solid var(--line);
  border-radius:13px;
  background:rgba(255,255,255,.025)
}
.stat strong {
  display:block;
  font-size:1.05rem
}
.stat span {
  display:block;
  color:var(--muted-2);
  font-size:.78rem;
  margin-top:3px
}
@media(max-width:720px) {
  .prose-grid {
    grid-template-columns:1fr
  }
  .stat-strip {
    grid-template-columns:1fr 1fr
  }
}
@media(max-width:430px) {
  .stat-strip {
    grid-template-columns:1fr
  }
}
/* Mobile header and small-screen layout */
@media(max-width:720px) {
  .nav {
    min-height:64px;
    gap:8px;
    overflow:visible
  }
  .brand {
    flex:1 1 auto;
    min-width:0;
    overflow:visible
  }
  .brand img {
    flex:0 0 auto;
    width:40px;
    height:40px
  }
  .brand span {
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis
  }
  .top-download {
    order:2;
    flex:0 0 auto;
    margin-left:auto;
    min-height:42px;
    padding:9px 14px;
    white-space:nowrap
  }
  .menu {
    order:3;
    display:flex;
    flex:0 0 42px;
    width:42px;
    height:42px;
    margin-left:0;
    align-items:center;
    justify-content:center;
    padding:0;
    font-size:1.35rem;
    line-height:1
  }
  .nav-links {
    top:64px
  }
  .hero-grid,.hero-grid>div {
    min-width:0
  }
  .hero h1,.lead {
    max-width:100%;
    overflow-wrap:anywhere;
    word-break:normal
  }
}
@media(max-width:430px) {
  .container {
    width:calc(100% - 22px)
  }
  .brand {
    flex:1 1 40px;
    max-width:calc(100% - 128px)
  }
  .brand img {
    width:38px;
    height:38px
  }
  .brand span {
    font-size:.9rem
  }
  .top-download {
    font-size:.9rem;
    padding-inline:12px
  }
  .menu {
    width:40px;
    height:40px;
    flex-basis:40px;
    font-size:1.25rem
  }
  .hero h1 {
    font-size:2.15rem;
    letter-spacing:-.045em;
    line-height:1.06;
    overflow-wrap:anywhere
  }
  .hero {
    padding-top:30px
  }
}
@media(prefers-reduced-motion:reduce) {
  .btn {
    transition:none
  }
}
/* v12 responsive integrity fixes: keep brand visible and prevent content overflow */
.header .container.nav {
  min-width:0;
}
.brand {
  min-width:0;
  flex:1 1 auto;
}
.brand span {
  min-width:0;
  overflow:visible;
  text-overflow:clip;
}
.top-download {
  flex:0 0 auto;
  white-space:nowrap;
}
.menu {
  flex:0 0 auto;
}
.hero-grid,.app-panel,.grid-2,.grid-3,.prose-grid,.article,.card,.callout,.section-head,.page-head,.facts,.fact,.step,.step>div {
  min-width:0;
}
.article,.card,.callout,.page-head,.section-head,.lead,.fine,.notice,.fact,.step,.step p,.step h3,.footer p,.footer a {
  overflow-wrap:anywhere;
  word-break:normal;
}
.table-wrap {
  width:100%;
  max-width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
}
.table,.rule-table {
  max-width:100%;
}
@media(max-width:720px) {
  .nav {
    gap:6px;
  }
  .brand {
    flex:1 1 auto;
    min-width:0;
    max-width:none;
  }
  .brand img {
    flex:0 0 auto;
    width:42px;
    height:42px;
  }
  .brand span {
    display:block;
    white-space:nowrap;
    font-size:.92rem;
    letter-spacing:-.035em;
    line-height:1.1;
  }
  .top-download {
    margin-left:0;
    padding:9px 11px;
    min-height:40px;
    font-size:.84rem;
  }
  .menu {
    width:40px;
    height:40px;
    flex-basis:40px;
    font-size:1.25rem;
  }
  .nav-links {
    top:64px;
  }
  .footer .brand {
    gap:8px;
  }
  .footer .brand img {
    width:46px;
    height:46px;
  }
  .footer .brand span {
    color:#fff;
    font-size:1.05rem;
    line-height:1.15;
  }
  .table-wrap {
    border-radius:12px;
  }
  .table,.rule-table {
    min-width:0;
    width:100%;
    table-layout:fixed;
  }
  .table th,.table td,.rule-table th,.rule-table td {
    padding:10px 9px;
    font-size:.84rem;
    overflow-wrap:anywhere;
    word-break:break-word;
  }
  .table th,.rule-table th {
    width:auto;
  }
}
@media(max-width:360px) {
  .nav {
    gap:5px;
  }
  .brand {
    gap:6px;
  }
  .brand img {
    width:38px;
    height:38px;
  }
  .brand span {
    font-size:.82rem;
    letter-spacing:-.04em;
  }
  .top-download {
    padding-inline:9px;
    font-size:.78rem;
  }
  .footer .brand img {
    width:42px;
    height:42px;
  }
  .footer .brand span {
    font-size:.98rem;
  }
  .menu {
    width:38px;
    height:38px;
    flex-basis:38px;
    font-size:1.18rem;
  }
}
@media(max-width:330px) {
  .brand img {
    width:36px;
    height:36px;
  }
  .brand span {
    font-size:.76rem;
  }
  .top-download {
    padding-inline:8px;
    font-size:.75rem;
  }
  .menu {
    width:36px;
    height:36px;
    flex-basis:36px;
  }
  .footer .brand img {
    width:40px;
    height:40px;
  }
  .footer .brand span {
    font-size:.94rem;
  }
}
.responsible-note {
  max-width:1000px;
  margin:0 auto;
  padding:12px 0 16px;
  border-top:1px solid var(--line);
  color:#8793a5;
  font-size:.82rem;
  line-height:1.55
}
.responsible-note strong {
  color:#c4cedc
}
