/* ==========================================================================
   Teen Patti Master — "Our Partner" pages
   Teen Patti Master · Teen Patti Master Old Version · Teen Patti Gold
   Builds on style.css and pages.css.
   ========================================================================== */

.dropdown a[aria-current="page"] { color: var(--gold-300); background: rgba(217, 164, 65, .1); }

/* ---------- Split hero (shared) ---------- */
.split-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(40px, 5vw, 72px) clamp(64px, 7vw, 104px);
  background: var(--bg-1);
}
.split-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}
.split-hero__title {
  font-size: clamp(2.125rem, 1.2rem + 2.6vw, 3.375rem);
  font-weight: 700; line-height: 1.1; letter-spacing: -.02em;
  text-wrap: balance;
}
.split-hero__lead { max-width: 540px; margin-top: 18px; color: #b9c2d3; }
.split-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.split-hero .hero__badges { margin-top: 28px; }
.split-hero__streak { bottom: -48px; }

.split-hero--master {
  background:
    radial-gradient(38% 60% at 74% 48%, rgba(245, 190, 90, .16), transparent 70%),
    radial-gradient(40% 50% at 100% 0%, rgba(67, 213, 242, .09), transparent 70%),
    var(--bg-1);
}
.split-hero--archive {
  background:
    radial-gradient(42% 60% at 76% 50%, rgba(67, 213, 242, .1), transparent 70%),
    radial-gradient(40% 50% at 0% 100%, rgba(217, 164, 65, .08), transparent 70%),
    var(--bg-1);
}
.split-hero--gold {
  background:
    radial-gradient(42% 62% at 76% 48%, rgba(245, 170, 60, .24), transparent 70%),
    radial-gradient(30% 40% at 10% 10%, rgba(245, 205, 110, .08), transparent 70%),
    linear-gradient(180deg, #0a0c14, var(--bg-1));
}

/* ---------- Spotlight art (Teen Patti Master) ---------- */
.spotlight { position: relative; display: grid; place-items: center; }
.spotlight::before {
  content: ""; position: absolute;
  width: 92%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 190, 90, .32), rgba(245, 190, 90, .07) 46%, transparent 70%);
}
.spotlight__ring {
  position: absolute;
  width: 74%; aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(245, 205, 110, .35);
  box-shadow: inset 0 0 60px -12px rgba(245, 205, 110, .4);
}
.spotlight__ring--outer {
  width: 96%;
  border: 1px dashed rgba(67, 213, 242, .28);
  box-shadow: none;
  animation: spin 80s linear infinite;
}
.spotlight img { position: relative; width: 100%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55)); }
.spotlight .float-chip { z-index: 1; }
.spotlight .float-chip--a { left: 0; top: 8%; }
.spotlight .float-chip--b { right: -2%; top: 42%; animation-delay: 1.4s; }
.spotlight .float-chip--c { left: 6%; bottom: 4%; animation-delay: 2.6s; }
@keyframes spin { to { rotate: 360deg; } }

/* ---------- Game library ---------- */
.library { background: linear-gradient(180deg, var(--bg-1), #071022 55%, var(--bg-1)); }
.lib-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.lib-item {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 24px 12px 20px;
  border-radius: var(--radius-lg);
  text-align: center;
  background: linear-gradient(180deg, rgba(var(--tint), .15), rgba(10, 17, 33, .92) 70%);
  border: 1px solid rgba(var(--tint), .32);
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.lib-item:hover {
  transform: translateY(-5px);
  border-color: rgba(236, 196, 110, .55);
  box-shadow: 0 22px 40px -22px #000, 0 0 36px -14px rgba(var(--tint), .7);
}
.lib-item__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 16px;
  color: #fff;
  background: rgba(var(--tint), .22);
  border: 1px solid rgba(var(--tint), .5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}
.lib-item__icon .icon { width: 26px; height: 26px; }
.lib-item__icon .lib-seven { font-size: 1.5rem; font-weight: 700; line-height: 1; }
.lib-item__name { font-size: 1rem; line-height: 1.3; }
.lib-item__meta { margin-top: -6px; font-size: .75rem; color: var(--muted); }
.lib-item__tag {
  position: absolute; top: 0; left: 50%;
  translate: -50% -50%;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .625rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; line-height: 1.4; white-space: nowrap;
  color: var(--ink);
  background: var(--gold-fill);
}
.lib-item__tag--hot { color: #e9fbff; background: linear-gradient(180deg, #3fbfdf, #17799b); }

/* ---------- Zig-zag feature rows ---------- */
.zz { display: grid; gap: clamp(48px, 6vw, 88px); }
.zz-row {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.zz-row:nth-child(even) .zz-row__media { order: 2; }
.zz-row__media {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 11;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(236, 196, 110, .3);
  box-shadow: 0 40px 80px -40px #000;
}
.zz-row__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.zz-row:hover .zz-row__media img { transform: scale(1.04); }
.zz-row__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(3, 6, 13, .55), transparent 45%);
}
.zz-row__num {
  display: block;
  font-size: clamp(2.5rem, 1.8rem + 2vw, 3.5rem); font-weight: 700; line-height: 1;
  background: var(--gold-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  opacity: .9;
}
.zz-row__title { margin-top: 10px; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.125rem); line-height: 1.2; }
.zz-row__text { margin-top: 14px; color: var(--muted); }
.zz-row .checklist { margin-top: 22px; }

/* ---------- Latest vs old (Teen Patti Master) ---------- */
.vs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 20px; align-items: stretch; }
.vs__card {
  display: flex; flex-direction: column;
  padding: 28px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, .08);
}
.vs__card--hero {
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(245, 205, 110, .14), transparent 70%),
    linear-gradient(180deg, #111d36, #070d1a);
  border-color: rgba(236, 196, 110, .5);
  box-shadow: 0 30px 60px -30px #000, 0 0 50px -26px rgba(245, 205, 110, .6);
}
.vs__card .status { align-self: flex-start; }
.vs__title { margin-top: 14px; font-size: 1.375rem; }
.vs__text { margin-top: 6px; font-size: .9375rem; color: var(--muted); }
.vs__list { display: grid; gap: 10px; margin-top: 20px; }
.vs__list li { display: flex; align-items: flex-start; gap: 10px; font-size: .9375rem; line-height: 1.5; color: var(--text-2); }
.vs__list .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--gold-300); }
.vs__card:not(.vs__card--hero) .vs__list .icon { color: var(--muted); }
.vs__card .btn { align-self: flex-start; margin-top: auto; }
.vs__card .vs__list { margin-bottom: 26px; }
.vs__divider { display: grid; place-items: center; }
.vs__vs {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border: 2px solid transparent;
  border-radius: 50%;
  font-size: .875rem; font-weight: 700; color: var(--gold-300);
  background:
    radial-gradient(circle at 50% 30%, #1f2f50, #0a1224 72%) padding-box,
    var(--gold-ring) border-box;
}

/* ---------- Status pills ---------- */
.status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .6875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; line-height: 1.5; white-space: nowrap;
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status--latest { color: var(--ink); background: var(--gold-fill); }
.status--latest::before { background: var(--ink); }
.status--ok { color: #bff2ff; background: rgba(67, 213, 242, .1); border: 1px solid rgba(67, 213, 242, .45); }
.status--legacy { color: #b4bccb; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .16); }

/* ---------- Version stack (old version hero) ---------- */
.ver-stack { position: relative; width: 100%; max-width: 480px; height: 380px; margin-inline: auto; }
.ver-stack::before {
  content: ""; position: absolute; inset: 10% 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(67, 213, 242, .16), transparent 65%);
}
.ver-card {
  position: absolute; left: 6%;
  width: 88%;
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px;
  border-radius: 20px;
  background: linear-gradient(180deg, #13203b, #080f1e);
  border: 1px solid rgba(236, 196, 110, .22);
  box-shadow: 0 30px 60px -28px #000;
}
.ver-card img { width: 76px; flex: none; }
.ver-card b { display: block; font-size: 1rem; line-height: 1.3; color: var(--text); }
.ver-card small { display: block; font-size: .8125rem; color: var(--muted); }
.ver-card .status { margin-left: auto; }
.ver-card:nth-child(1) { top: 8px; rotate: -5deg; scale: .88; opacity: .5; }
.ver-card:nth-child(2) { top: 112px; rotate: 3deg; scale: .94; opacity: .78; }
.ver-card:nth-child(3) {
  top: 224px;
  border-color: rgba(236, 196, 110, .6);
  box-shadow: 0 30px 60px -24px #000, 0 0 50px -18px rgba(245, 205, 110, .55);
  animation: float 7s ease-in-out infinite;
}

/* ---------- Notice ---------- */
.notice {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  background: rgba(67, 213, 242, .06);
  border: 1px solid rgba(67, 213, 242, .3);
}
.notice__icon {
  flex: none;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--cyan);
  background: rgba(67, 213, 242, .08);
  border: 1px solid rgba(67, 213, 242, .5);
}
.notice__title { font-size: 1.0625rem; line-height: 1.35; }
.notice p { margin-top: 4px; font-size: .9375rem; color: #cdeef6; }
.notice a { color: var(--gold-300); text-decoration: underline; text-underline-offset: 3px; }
.notice--gold { background: rgba(217, 164, 65, .07); border-color: rgba(236, 196, 110, .35); }
.notice--gold .notice__icon { color: var(--gold-300); background: rgba(217, 164, 65, .1); border-color: rgba(236, 196, 110, .55); }
.notice--gold p { color: var(--text-2); }
.notice-band { position: relative; z-index: 2; padding-top: 0; margin-top: calc(var(--section-y) * -.4); }
.notice-band .notice { background-color: #07101d; }
.notice-band .notice--gold { background-color: #0d0f16; }

/* ---------- Data tables ---------- */
.data-table-wrap {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid rgba(236, 196, 110, .22);
  box-shadow: var(--shadow-card);
}
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  padding: 16px 24px;
  text-align: left;
  font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 255, 255, .03);
  border-bottom: 1px solid rgba(236, 196, 110, .16);
}
.data-table td {
  padding: 20px 24px;
  vertical-align: middle;
  font-size: .9375rem;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table .is-featured { background: linear-gradient(90deg, rgba(217, 164, 65, .11), transparent 65%); }
.data-table .btn { --h: 40px; padding: 0 16px; font-size: .8125rem; }

.release { display: flex; align-items: center; gap: 14px; }
.release__icon {
  flex: none;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 30%, #1c2a46, #0a1222);
  border: 1px solid rgba(236, 196, 110, .35);
}
.release__icon img { width: 34px; }
.release b { display: block; line-height: 1.3; color: var(--text); }
.release small { display: block; font-size: .8125rem; color: var(--muted); }

.cmp-table th:not(:first-child),
.cmp-table td:not(:first-child) { width: 24%; text-align: center; }
.cmp-table th.is-latest { color: var(--gold-300); }
.cmp-table td:first-child { font-weight: 500; color: var(--text); }
.mark { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; vertical-align: middle; }
.mark .icon { width: 14px; height: 14px; }
.mark--yes { color: var(--ink); background: var(--gold-fill); }
.mark--no { color: #8e99ae; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .14); }
.mark-text { font-size: .8125rem; color: var(--muted); }

/* ---------- Gold frame (Teen Patti Gold hero) ---------- */
.gold-frame {
  position: relative;
  max-width: 560px; margin-inline: auto;
  padding: 14px;
  border-radius: 28px;
  background: linear-gradient(145deg, #4a3510, #0b0f1a 38%, #0b0f1a 62%, #4a3510);
  box-shadow:
    0 0 0 1px rgba(245, 205, 110, .65),
    0 0 0 7px rgba(5, 9, 18, .92),
    0 0 0 8px rgba(245, 205, 110, .3),
    0 40px 80px -30px #000,
    0 0 90px -20px rgba(245, 170, 60, .5);
}
.gold-frame__img { position: relative; overflow: hidden; aspect-ratio: 4 / 3.3; border-radius: 18px; }
.gold-frame__img img { width: 100%; height: 100%; object-fit: cover; object-position: 78% center; }
.gold-frame__img::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(90% 90% at 60% 40%, transparent 55%, rgba(5, 9, 18, .55));
}
.gold-frame__suit {
  position: absolute; z-index: 1;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--gold-fill);
  box-shadow: 0 0 0 4px #0b0f1a, 0 0 0 5px rgba(245, 205, 110, .45), 0 10px 20px -4px rgba(0, 0, 0, .7);
}
.gold-frame__suit .icon { width: 20px; height: 20px; }
.gold-frame__suit--tl { top: -18px; left: -18px; }
.gold-frame__suit--tr { top: -18px; right: -18px; }
.gold-frame__suit--bl { bottom: -18px; left: -18px; }
.gold-frame__suit--br { bottom: -18px; right: -18px; }
.gold-frame__plate {
  position: absolute; left: 50%; bottom: -26px; z-index: 1;
  translate: -50% 0;
  padding: 10px 24px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink);
  background: var(--gold-fill);
  box-shadow: 0 0 0 4px #0b0f1a, 0 12px 26px -8px rgba(0, 0, 0, .8);
}

/* ---------- About partner ---------- */
.partner-about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.partner-about__body p + p { margin-top: 14px; }
.partner-about__body > p { color: var(--muted); }
.partner-about__body .partner-about__lead { margin-top: 18px; font-size: 1.125rem; line-height: 1.65; color: var(--text); }
.partner-about .perk-grid { margin-top: 0; }

/* ---------- Variations ---------- */
.variations { background: linear-gradient(180deg, var(--bg-1), #0a0f1c 55%, var(--bg-1)); }
.var-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.var-card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid rgba(236, 196, 110, .16);
  box-shadow: var(--shadow-card);
  transition: transform .35s var(--ease), border-color .35s;
}
.var-card:hover { transform: translateY(-4px); border-color: rgba(236, 196, 110, .5); }
.var-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 66px; }
.var-card__tag {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .6875rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: var(--gold-100);
  background: rgba(217, 164, 65, .12);
  border: 1px solid rgba(236, 196, 110, .35);
}
.var-card h3 { font-size: 1.125rem; }
.var-card p { font-size: .875rem; line-height: 1.6; color: var(--muted); }
.var-note { margin-top: 24px; text-align: center; font-size: .875rem; color: var(--muted); }
.var-note a { color: var(--gold-300); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Shared small helpers ---------- */
.steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps--3::before { left: 16.66%; right: 16.66%; }
.channels--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.explore .channel { height: 100%; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .split-hero__grid,
  .zz-row,
  .partner-about__grid { grid-template-columns: 1fr; }
  .split-hero__art { max-width: 560px; width: 100%; margin-inline: auto; }
  .split-hero__streak { display: none; }
  .zz-row:nth-child(even) .zz-row__media { order: 0; }
  .zz-row__media { max-width: 720px; }
  .lib-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
  .var-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .channels--3 { grid-template-columns: 1fr; }
}

@media (min-width: 641px) and (max-width: 960px) {
  .steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
}

@media (max-width: 860px) {
  .vs { grid-template-columns: 1fr; }
  .vs__divider { padding-block: 4px; }
}

@media (max-width: 760px) {
  .lib-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lib-item:last-child:nth-child(odd) { grid-column: 1 / -1; }

  /* Tables become stacked cards */
  .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table td { display: block; width: 100%; }
  .data-table tr { padding: 16px 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .data-table tbody tr:last-child { border-bottom: 0; }
  .data-table td { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 0; border: 0; text-align: right; }
  .data-table td::before {
    content: attr(data-label);
    flex: none;
    font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; text-align: left;
    color: var(--muted);
  }
  .data-table td.cell-head { display: block; padding-top: 0; text-align: left; }
  .data-table td.cell-head::before { content: none; }
  .data-table td.cell-action { display: block; padding-bottom: 0; }
  .data-table td.cell-action::before { content: none; }
  .data-table td.cell-action .btn { width: 100%; }
  .cmp-table th:not(:first-child),
  .cmp-table td:not(:first-child) { width: 100%; text-align: right; }
  .cmp-table td:first-child { font-size: 1rem; }
}

@media (max-width: 640px) {
  .steps--3 { grid-template-columns: 1fr; }
  .steps--3::before { left: 47px; right: auto; }
  .split-hero__actions .btn { flex: 1 1 auto; padding: 0 20px; }
  .spotlight .float-chip { padding: 8px 12px 8px 8px; }
  .spotlight .float-chip--b { right: 0; }
  .ver-stack { height: 300px; }
  .ver-card { left: 0; width: 100%; padding: 14px; gap: 12px; }
  .ver-card img { width: 52px; }
  .ver-card b { font-size: .9375rem; white-space: nowrap; }
  .ver-card small { white-space: nowrap; }
  .ver-card:nth-child(1) { top: 4px; }
  .ver-card:nth-child(2) { top: 92px; }
  .ver-card:nth-child(3) { top: 184px; }
  .notice { flex-direction: column; gap: 12px; padding: 18px; }
  .var-grid { grid-template-columns: 1fr; }
  .gold-frame { padding: 10px; }
  .gold-frame__suit { width: 38px; height: 38px; }
  .gold-frame__suit--tl, .gold-frame__suit--tr { top: -12px; }
  .gold-frame__suit--bl, .gold-frame__suit--br { bottom: -12px; }
  .gold-frame__suit--tl, .gold-frame__suit--bl { left: -8px; }
  .gold-frame__suit--tr, .gold-frame__suit--br { right: -8px; }
}
