:root {
  --tt88-crimson: #9a0909;
  --tt88-crimson-deep: #580406;
  --tt88-vermilion: #d71920;
  --tt88-gold: #f6c94c;
  --tt88-gold-soft: #ffe8a3;
  --tt88-ivory: #fff9ec;
  --tt88-ink: #281612;
  --tt88-jade: #0d7a5f;
  --tt88-shadow: 0 18px 48px rgba(69, 3, 4, 0.2);
}

html {
  scroll-padding-top: 1rem;
}

body.tt88-branded {
  --tt88-site-accent: var(--tt88-crimson);
  margin: 0;
  color: var(--tt88-ink);
  background:
    radial-gradient(circle at 12% -4%, rgba(246, 201, 76, 0.25), transparent 31rem),
    linear-gradient(180deg, #fffaf0 0, #fff 34rem, #fff8e9 100%) !important;
  font-family: "Segoe UI", "Noto Sans", Arial, sans-serif !important;
  line-height: 1.65;
}

body.tt88-branded[data-tt88-theme="2"] { --tt88-site-accent: #a31322; }
body.tt88-branded[data-tt88-theme="3"] { --tt88-site-accent: #7e1714; }
body.tt88-branded[data-tt88-theme="4"] { --tt88-site-accent: #b3261e; }
body.tt88-branded[data-tt88-theme="5"] { --tt88-site-accent: #8c1233; }
body.tt88-branded[data-tt88-theme="6"] { --tt88-site-accent: #a7430f; }
body.tt88-branded[data-tt88-theme="7"] { --tt88-site-accent: #6f1018; }
body.tt88-branded[data-tt88-theme="8"] { --tt88-site-accent: #b61a12; }
body.tt88-branded[data-tt88-theme="9"] { --tt88-site-accent: #851d28; }
body.tt88-branded[data-tt88-theme="10"] { --tt88-site-accent: #9f1b12; }
body.tt88-branded[data-tt88-theme="11"] { --tt88-site-accent: #74121f; }

body.tt88-branded *,
body.tt88-branded *::before,
body.tt88-branded *::after {
  box-sizing: border-box;
}

.tt88-skip-link {
  position: fixed;
  z-index: 2147483647;
  top: 0.5rem;
  left: 0.5rem;
  transform: translateY(-180%);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  color: #fff !important;
  background: var(--tt88-crimson-deep);
  text-decoration: none;
}

.tt88-skip-link:focus {
  transform: translateY(0);
}

.tt88-brand-layer {
  position: relative;
  z-index: 2147480000;
  isolation: isolate;
  width: 100%;
  color: #fff;
  background: linear-gradient(112deg, var(--tt88-crimson-deep), var(--tt88-site-accent) 56%, #c26e11);
  border-bottom: 3px solid var(--tt88-gold);
  box-shadow: 0 10px 34px rgba(52, 0, 3, 0.22);
  font-family: "Segoe UI", "Noto Sans", Arial, sans-serif;
}

.tt88-brand-layer::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(88, 4, 6, 0.88), rgba(88, 4, 6, 0.16) 48%, rgba(88, 4, 6, 0.82)),
    url("assets/header.webp") center / cover no-repeat;
  opacity: 0.88;
}

.tt88-brand-layer__utility {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2rem;
  padding: 0.25rem max(1rem, calc((100% - 1240px) / 2));
  color: #5a2204;
  background: linear-gradient(90deg, #fff1b5, #ffd76b 52%, #fff2b8);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.tt88-brand-layer__utility strong {
  color: #8e0b10;
  text-transform: uppercase;
}

.tt88-brand-layer__main {
  display: grid;
  grid-template-columns: minmax(190px, 300px) 1fr auto;
  align-items: center;
  gap: 1.2rem;
  width: min(1240px, calc(100% - 2rem));
  min-height: 96px;
  margin: 0 auto;
  padding: 0.75rem 0;
}

.tt88-brand-layer__logo {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  text-decoration: none !important;
}

.tt88-brand-layer__logo img {
  display: block;
  width: min(280px, 100%);
  max-height: 76px;
  object-fit: contain;
  filter: drop-shadow(0 3px 3px rgba(53, 0, 0, 0.5));
}

.tt88-brand-layer__promise {
  min-width: 0;
}

.tt88-brand-layer__promise span {
  display: block;
  margin-bottom: 0.18rem;
  color: var(--tt88-gold-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.tt88-brand-layer__promise strong {
  display: block;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 2vw, 1.55rem);
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(42, 0, 0, 0.7);
}

.tt88-brand-layer__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.tt88-brand-layer__actions a,
.tt88-seo-footer__cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid rgba(255, 232, 163, 0.85);
  border-radius: 999px;
  padding: 0.62rem 1rem;
  color: #fff !important;
  background: linear-gradient(180deg, #d71c22, #84080c);
  box-shadow: 0 6px 14px rgba(52, 0, 2, 0.28), inset 0 1px rgba(255, 255, 255, 0.25);
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1;
  text-align: center;
  text-decoration: none !important;
  text-transform: uppercase;
  transition: transform 160ms ease, filter 160ms ease;
}

.tt88-brand-layer__actions a.tt88-action--register {
  color: #59170a !important;
  background: linear-gradient(180deg, #fff0a8, #f0b626);
}

.tt88-brand-layer__actions a:hover,
.tt88-seo-footer__cta a:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.tt88-brand-nav {
  border-top: 1px solid rgba(255, 226, 132, 0.36);
  background: rgba(68, 0, 3, 0.8);
  backdrop-filter: blur(9px);
}

.tt88-brand-nav__toggle {
  display: none;
  width: calc(100% - 2rem);
  min-height: 44px;
  margin: 0.45rem auto;
  border: 1px solid rgba(255, 232, 163, 0.58);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
  font-weight: 800;
}

.tt88-brand-nav__links {
  display: flex;
  align-items: stretch;
  gap: 0.15rem;
  width: min(1240px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.3rem 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.tt88-brand-nav__links a {
  flex: 0 0 auto;
  padding: 0.62rem 0.78rem;
  border-radius: 6px;
  color: #fff !important;
  font-size: 0.83rem;
  font-weight: 750;
  text-decoration: none !important;
  white-space: nowrap;
}

.tt88-brand-nav__links a:hover,
.tt88-brand-nav__links a[aria-current="page"] {
  color: #5f1a0a !important;
  background: var(--tt88-gold-soft);
}

.tt88-breadcrumb {
  width: min(1240px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.45rem 0 0.55rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.75rem;
}

.tt88-breadcrumb a {
  color: var(--tt88-gold-soft) !important;
  text-decoration: none !important;
}

body.tt88-branded :where(h1, h2, h3) {
  color: var(--tt88-site-accent);
  text-wrap: balance;
}

body.tt88-branded :where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--tt88-jade) !important;
  outline-offset: 3px;
}

body.tt88-branded :where(button, input[type="button"], input[type="submit"], .button, .btn, [class*="button"], [class*="cta"]) {
  border-radius: 8px;
}

body.tt88-branded :where(button, .button, .btn, [class*="button"], [class*="cta"]):not(.tt88-brand-nav__toggle) {
  border-color: #bd6f18 !important;
}

body.tt88-branded :where(article, .card, [class*="card"], .box, [class*="content-box"]) {
  border-color: rgba(187, 117, 27, 0.36);
}

body.tt88-branded img {
  height: auto;
  max-width: 100% !important;
}

/* Several source themes hard-code 1600–1960px hero/catfish media widths.
   Keep those assets fluid inside the branded static shell so they cannot
   widen the document on desktop or mobile. */
html:has(body.tt88-branded),
body.tt88-branded {
  max-width: 100%;
  overflow-x: clip;
}

body.tt88-branded :where(
  main,
  section,
  article,
  figure,
  picture,
  [class*="hero-image-background"],
  #catfish
) {
  max-width: 100% !important;
}

body.tt88-branded :where(video, canvas, iframe) {
  max-width: 100% !important;
}

body.tt88-branded img[data-tt88-brand-image="true"] {
  object-fit: cover;
  object-position: center;
}

body.tt88-branded img[data-tt88-brand-kind="logo"] {
  object-fit: contain;
}

/* The THANTAI88 shell owns global identity/navigation.  Hide only legacy
   chrome, never article/main content, so each source layout stays usable
   without showing a second brand header or footer. */
body.tt88-branded > :where(header, footer):not(.tt88-brand-layer):not(.tt88-seo-footer),
body.tt88-branded :where(#masthead, #header, .site-header, .header-wrapper, .js-header, #footer, .site-footer, .js-bottom-tab-navigation):not(.tt88-brand-layer):not(.tt88-seo-footer) {
  display: none !important;
}

body.tt88-branded :where(
  [class*="bottom-bar" i],
  [class*="fixed-footer" i],
  [class*="mobile-bar" i],
  [class*="sticky-action" i]
) {
  border-color: var(--tt88-gold) !important;
  color: #fff !important;
  background: linear-gradient(180deg, var(--tt88-site-accent), var(--tt88-crimson-deep)) !important;
}

body.tt88-branded :where(
  [class*="site-logo" i],
  [class*="header-logo" i],
  [class*="brand-logo" i],
  [id="logo" i],
  [id*="site-logo" i]
) {
  background-image: url("assets/logo.png") !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
}

.tt88-editor-note {
  width: min(1180px, calc(100% - 2rem));
  margin: 1rem auto;
  border: 1px solid #e5bd5b;
  border-left: 5px solid var(--tt88-site-accent);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  color: #633017;
  background: rgba(255, 249, 230, 0.96);
  box-shadow: 0 8px 25px rgba(88, 28, 5, 0.09);
  font-size: 0.86rem;
}

.tt88-editor-note strong {
  color: var(--tt88-site-accent);
}

.tt88-seo-footer {
  position: relative;
  z-index: 2147479000;
  clear: both;
  width: 100%;
  margin-top: 2rem;
  color: #fff;
  background:
    radial-gradient(circle at 82% 5%, rgba(246, 201, 76, 0.2), transparent 24rem),
    linear-gradient(135deg, #3d0205, var(--tt88-crimson-deep));
  border-top: 4px solid var(--tt88-gold);
  font-family: "Segoe UI", "Noto Sans", Arial, sans-serif;
}

.tt88-seo-footer__inner {
  display: grid;
  grid-template-columns: minmax(210px, 0.8fr) minmax(280px, 1.4fr) minmax(220px, 0.8fr);
  gap: 2rem;
  width: min(1240px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 1.25rem;
}

.tt88-seo-footer__brand img {
  width: min(240px, 100%);
  max-height: 72px;
  object-fit: contain;
}

.tt88-seo-footer h2,
.tt88-seo-footer h3 {
  margin: 0 0 0.65rem;
  color: var(--tt88-gold-soft) !important;
  font-size: 1rem;
}

.tt88-seo-footer p {
  margin: 0.55rem 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
}

.tt88-seo-footer__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 0.75rem;
}

.tt88-seo-footer__links a,
.tt88-seo-footer__social a {
  color: #fff !important;
  font-size: 0.82rem;
  text-decoration: none !important;
}

.tt88-seo-footer__links a:hover,
.tt88-seo-footer__social a:hover {
  color: var(--tt88-gold-soft) !important;
  text-decoration: underline !important;
}

.tt88-seo-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.tt88-seo-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  border: 1px solid rgba(255, 232, 163, 0.46);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.tt88-seo-footer__social img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.tt88-seo-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: min(1240px, calc(100% - 2rem));
  margin: 0 auto;
  border-top: 1px solid rgba(255, 232, 163, 0.25);
  padding: 0.75rem 0 1rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.73rem;
}

.tt88-trust-strip {
  width: min(1240px, calc(100% - 2rem));
  margin: 1.25rem auto 0;
  border-top: 1px solid rgba(255, 232, 163, 0.28);
  padding-top: 1rem;
}

.tt88-trust-strip h3 {
  margin: 0 0 0.7rem;
  color: var(--tt88-gold-soft) !important;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-align: center;
}

.tt88-trust-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.tt88-trust-strip__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 56px;
  border: 1px solid rgba(255, 232, 163, 0.22);
  border-radius: 10px;
  padding: 0.35rem 0.5rem;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(38, 0, 2, 0.24);
  font-size: 0.78rem;
  font-weight: 750;
  text-align: center;
}

.tt88-trust-strip__item img {
  flex: 0 0 auto;
  width: 42px !important;
  height: 42px !important;
  object-fit: contain;
}

@media (max-width: 860px) {
  .tt88-brand-layer__main {
    grid-template-columns: minmax(160px, 240px) 1fr;
  }

  .tt88-brand-layer__promise {
    display: none;
  }

  .tt88-brand-nav__toggle {
    display: block;
  }

  .tt88-brand-nav__links {
    display: none;
    flex-direction: column;
    padding: 0.15rem 0 0.65rem;
    overflow: visible;
  }

  .tt88-brand-nav[data-open="true"] .tt88-brand-nav__links {
    display: flex;
  }

  .tt88-seo-footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tt88-seo-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .tt88-brand-layer__utility {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
    padding-block: 0.35rem;
  }

  .tt88-brand-layer__main {
    grid-template-columns: 1fr;
    gap: 0.7rem;
    padding: 0.65rem 0 0.8rem;
  }

  .tt88-brand-layer__logo {
    justify-content: center;
  }

  .tt88-brand-layer__logo img {
    width: min(250px, 80vw);
    max-height: 68px;
  }

  .tt88-brand-layer__actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
  }

  .tt88-brand-layer__actions a {
    min-height: 42px;
    padding: 0.52rem 0.35rem;
    font-size: 0.75rem;
  }

  .tt88-seo-footer__inner {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .tt88-seo-footer__brand {
    grid-column: auto;
  }

  .tt88-seo-footer__links {
    grid-template-columns: 1fr;
  }

  .tt88-seo-footer__bottom {
    flex-direction: column;
    gap: 0.25rem;
  }

  .tt88-trust-strip__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tt88-trust-strip__item {
    flex-direction: column;
    gap: 0.1rem;
    padding-block: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tt88-brand-layer__actions a,
  .tt88-seo-footer__cta a {
    transition: none;
  }
}

/* THANTAI88 visual system v2: one official hero, stronger reading hierarchy. */
:root {
  --tt88-crimson: #a40f18;
  --tt88-crimson-deep: #4a070b;
  --tt88-vermilion: #d52a2f;
  --tt88-gold: #f2c14e;
  --tt88-gold-soft: #ffe9a6;
  --tt88-ivory: #fff8ea;
  --tt88-paper: #fffdf8;
  --tt88-ink: #201a17;
  --tt88-muted: #6b5b52;
  --tt88-jade: #087f6b;
  --tt88-line: rgba(92, 35, 23, 0.16);
  --tt88-shadow: 0 20px 52px rgba(67, 20, 10, 0.14);
}

body.tt88-branded {
  color: var(--tt88-ink) !important;
  background:
    linear-gradient(90deg, rgba(164, 15, 24, 0.035) 1px, transparent 1px) 0 0 / 38px 38px,
    linear-gradient(180deg, #f6efe4 0, #fffdf8 32rem, #f4ede2 100%) !important;
  font-family: Inter, "Segoe UI Variable", "Segoe UI", "Noto Sans", Arial, sans-serif !important;
  font-size: 17px;
  line-height: 1.72;
  padding-top: 0 !important;
}

.tt88-brand-layer {
  color: #fff;
  background: linear-gradient(112deg, #340307, var(--tt88-crimson-deep) 48%, #7f0b11);
  border-bottom-color: var(--tt88-gold);
  box-shadow: 0 12px 34px rgba(42, 3, 5, 0.2);
}

.tt88-brand-layer::before {
  background:
    linear-gradient(118deg, transparent 0 47%, rgba(242, 193, 78, 0.12) 47% 49%, transparent 49%),
    radial-gradient(circle at 78% 15%, rgba(242, 193, 78, 0.2), transparent 21rem),
    linear-gradient(90deg, rgba(0, 0, 0, 0.16), transparent 48%, rgba(0, 0, 0, 0.16));
  opacity: 1;
}

.tt88-brand-layer__utility {
  min-height: 30px;
  padding-block: 0.22rem;
  color: #51200b;
  background: linear-gradient(90deg, #fff0b4, #f2c14e 52%, #ffecaa);
  font-size: 0.74rem;
}

.tt88-brand-layer__main {
  grid-template-columns: minmax(180px, 250px) 1fr auto;
  min-height: 82px;
  padding-block: 0.55rem;
}

.tt88-brand-layer__logo img {
  width: min(235px, 100%);
  max-height: 64px;
}

.tt88-brand-layer__promise span {
  margin-bottom: 0.2rem;
  color: var(--tt88-gold);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
}

.tt88-brand-layer__promise strong {
  max-width: 31rem;
  font-family: Inter, "Segoe UI Variable Display", "Segoe UI", sans-serif;
  font-size: clamp(1.12rem, 2vw, 1.55rem);
  font-weight: 850;
  letter-spacing: -0.025em;
}

.tt88-brand-layer__actions a,
.tt88-seo-footer__cta a {
  min-height: 42px;
  border-radius: 7px;
  box-shadow: 0 6px 16px rgba(31, 1, 3, 0.28);
  letter-spacing: 0.035em;
}

.tt88-brand-nav {
  border-top-color: rgba(255, 230, 151, 0.22);
  background: rgba(39, 2, 5, 0.9);
}

.tt88-brand-nav__links {
  display: grid;
  /* Navigation differs by site; automatic columns keep a ninth item from
     becoming a stray second row on desktop. */
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  align-items: stretch;
  gap: 0.2rem;
  padding-block: 0.38rem;
  overflow: visible;
}

.tt88-brand-nav__links a {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  min-width: 0;
  min-height: 42px;
  padding: 0.45rem 0.38rem;
  font-size: 0.75rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
}

.tt88-breadcrumb {
  display: block;
  padding-block: 0.45rem 0.55rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.76rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tt88-editor-note {
  width: min(1120px, calc(100% - 2rem));
  margin-block: 1rem;
  border: 1px solid rgba(164, 15, 24, 0.16);
  border-left: 5px solid var(--tt88-crimson);
  border-radius: 6px;
  padding: 0.8rem 1rem;
  color: #4d382d;
  background: #fffaf0;
  box-shadow: 0 8px 22px rgba(75, 31, 18, 0.07);
  font-size: 0.88rem;
}

body.tt88-branded main[data-tt88-main="true"] {
  display: block;
  width: 100%;
  max-width: none !important;
  min-height: 25rem;
  margin: 0 auto;
  color: var(--tt88-ink) !important;
  background: var(--tt88-paper) !important;
}

body.tt88-branded main[data-tt88-main="true"] :where(.section-bg, .bg-fill) {
  background-image: none !important;
}

body.tt88-branded main[data-tt88-main="true"] :where(section, .section, .section-content, .page-wrapper) {
  color: inherit !important;
  background-color: transparent !important;
}

body.tt88-branded main[data-tt88-main="true"] :where(.section-bg) {
  display: none !important;
}

.tt88-reading-flow {
  display: flow-root;
  width: 100%;
  color: var(--tt88-ink);
}

.tt88-page-intro {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  border-bottom: 1px solid var(--tt88-line);
  border-left: 7px solid var(--tt88-gold);
  padding: 1.35rem 0 1.25rem 1.2rem;
  background: linear-gradient(90deg, rgba(242, 193, 78, 0.13), transparent 62%);
}

.tt88-page-intro__eyebrow {
  margin: 0 0 0.35rem;
  color: var(--tt88-crimson);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

body.tt88-branded .tt88-page-intro h1 {
  max-width: 920px;
  margin: 0 !important;
  color: var(--tt88-ink) !important;
  font-family: Inter, "Segoe UI Variable Display", "Segoe UI", sans-serif !important;
  font-size: clamp(2rem, 4.4vw, 3.75rem) !important;
  font-weight: 900 !important;
  letter-spacing: -0.045em;
  line-height: 1.04 !important;
  text-wrap: balance;
}

.tt88-official-hero {
  width: min(1120px, calc(100% - 2rem));
  margin: 1.15rem auto 1.75rem;
  border: 1px solid rgba(93, 29, 17, 0.18);
  border-radius: 12px;
  overflow: hidden;
  background: #4a070b;
  box-shadow: var(--tt88-shadow);
}

body.tt88-branded .tt88-official-hero img {
  display: block;
  width: 100% !important;
  aspect-ratio: 1600 / 426;
  object-fit: cover;
  object-position: center;
}

body.tt88-branded main[data-tt88-main="true"] :where(h2, h3, h4) {
  font-family: Inter, "Segoe UI Variable Display", "Segoe UI", sans-serif !important;
  font-weight: 850 !important;
  letter-spacing: -0.025em;
  line-height: 1.22 !important;
  text-wrap: balance;
}

body.tt88-branded main[data-tt88-main="true"] h2 {
  margin-block: 2.2rem 0.75rem !important;
  color: #7e0d14 !important;
  font-size: clamp(1.65rem, 3vw, 2.35rem) !important;
}

body.tt88-branded main[data-tt88-main="true"] h3 {
  margin-block: 1.7rem 0.55rem !important;
  color: #35251e !important;
  font-size: clamp(1.25rem, 2vw, 1.6rem) !important;
}

body.tt88-branded main[data-tt88-main="true"] :where(p, li, td, th) {
  color: #3b312b !important;
  font-size: 1.03rem;
  line-height: 1.76;
}

body.tt88-branded main[data-tt88-main="true"] p {
  margin-block: 0.72rem 1rem;
}

body.tt88-branded main[data-tt88-main="true"] .sub-title {
  color: #7e0d14 !important;
  font-size: 1.22rem;
  font-weight: 800;
}

body.tt88-branded main[data-tt88-main="true"] a:not(.button):not(.btn) {
  color: #95131b !important;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(149, 19, 27, 0.35);
  text-underline-offset: 0.18em;
}

body.tt88-branded main[data-tt88-main="true"] :where(figure, .wp-caption) {
  max-width: min(900px, 100%) !important;
  margin: 1.4rem auto 1.8rem !important;
}

body.tt88-branded main[data-tt88-main="true"] img[data-tt88-image-topic] {
  display: block;
  width: auto;
  max-width: 100% !important;
  margin-inline: auto;
  border: 1px solid rgba(62, 25, 16, 0.16);
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(56, 22, 13, 0.12);
}

body.tt88-branded main[data-tt88-main="true"] :where(figcaption, .wp-caption-text) {
  margin-top: 0.55rem;
  color: var(--tt88-muted) !important;
  font-size: 0.86rem !important;
  font-style: normal;
  text-align: center;
}

body.tt88-branded main[data-tt88-main="true"] :where(table) {
  width: 100% !important;
  height: auto !important;
  margin-block: 1.2rem 1.8rem;
  border-collapse: collapse;
  background: #fff;
}

body.tt88-branded main[data-tt88-main="true"] :where(th, td) {
  height: auto !important;
  border: 1px solid #e1d5ca !important;
  padding: 0.72rem 0.85rem !important;
  vertical-align: top;
}

body.tt88-branded main[data-tt88-main="true"] th,
body.tt88-branded main[data-tt88-main="true"] tr:first-child td {
  color: #fff !important;
  background: #721017 !important;
  font-weight: 800;
}

body.tt88-branded main[data-tt88-main="true"] :where(.col-banner.hide-for-medium, [class*="side-banner" i]) {
  display: none !important;
}

.tt88-keyword-context {
  width: min(860px, calc(100% - 2rem));
  margin: 0.75rem auto 1.5rem !important;
  border-left: 4px solid var(--tt88-gold);
  padding: 0.85rem 1rem;
  color: #44362e !important;
  background: #fff7e5;
  font-size: 0.98rem !important;
}

.tt88-wordmark {
  color: #fff;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 950;
  letter-spacing: -0.055em;
  line-height: 1;
}

.tt88-wordmark span {
  color: var(--tt88-gold);
}

.tt88-seo-footer {
  margin-top: 0;
  background:
    radial-gradient(circle at 82% 8%, rgba(242, 193, 78, 0.18), transparent 23rem),
    linear-gradient(135deg, #2f0306, #5a080d);
}

@media (max-width: 860px) {
  .tt88-brand-layer__main {
    grid-template-columns: minmax(150px, 210px) 1fr;
  }

  .tt88-brand-nav__links {
    display: none;
    grid-template-columns: 1fr;
  }

  .tt88-brand-nav[data-open="true"] .tt88-brand-nav__links {
    display: grid;
  }

  body.tt88-branded main[data-tt88-main="true"] :where(table) {
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }
}

@media (max-width: 560px) {
  body.tt88-branded {
    font-size: 16.5px;
  }

  .tt88-brand-layer__utility {
    align-items: center;
    flex-direction: row;
    gap: 0.5rem;
    min-height: 27px;
    padding-block: 0.18rem;
    font-size: 0.66rem;
  }

  .tt88-brand-layer__utility span {
    margin-left: auto;
    text-align: right;
  }

  .tt88-brand-layer__main {
    grid-template-columns: minmax(125px, 0.7fr) minmax(0, 1.3fr);
    gap: 0.55rem;
    min-height: 78px;
    padding-block: 0.5rem;
  }

  .tt88-brand-layer__logo {
    justify-content: flex-start;
  }

  .tt88-brand-layer__logo img {
    width: min(175px, 100%);
    max-height: 52px;
  }

  .tt88-brand-layer__actions {
    gap: 0.3rem;
  }

  .tt88-brand-layer__actions a {
    min-height: 42px;
    padding: 0.45rem 0.22rem;
    font-size: 0.68rem;
  }

  .tt88-brand-nav__toggle {
    margin-block: 0.32rem;
    border-radius: 6px;
  }

  .tt88-breadcrumb {
    font-size: 0.7rem;
  }

  .tt88-editor-note {
    width: calc(100% - 1.25rem);
    margin-block: 0.65rem;
    padding: 0.65rem 0.75rem;
  }

  .tt88-page-intro {
    width: calc(100% - 1.25rem);
    border-left-width: 5px;
    padding: 1rem 0 0.95rem 0.85rem;
  }

  body.tt88-branded .tt88-page-intro h1 {
    font-size: clamp(1.75rem, 8vw, 2.35rem) !important;
    line-height: 1.08 !important;
  }

  .tt88-official-hero {
    width: calc(100% - 1.25rem);
    margin-block: 0.8rem 1.15rem;
    border-radius: 8px;
  }

  body.tt88-branded main[data-tt88-main="true"] h2 {
    font-size: 1.55rem !important;
  }

  body.tt88-branded main[data-tt88-main="true"] h3 {
    font-size: 1.25rem !important;
  }

  body.tt88-branded main[data-tt88-main="true"] :where(p, li, td, th) {
    font-size: 1rem;
  }
}

/* THANTAI88 structural layouts v3: one brand system, eleven information architectures. */
body.tt88-branded[data-tt88-layout] .tt88-brand-layer__main,
body.tt88-branded[data-tt88-layout] .tt88-breadcrumb,
body.tt88-branded[data-tt88-layout] .tt88-brand-nav__links {
  width: min(1240px, calc(100% - 2rem));
}

body.tt88-branded[data-tt88-layout] main[data-tt88-main="true"] > :where(section, article),
body.tt88-branded[data-tt88-layout] .tt88-reading-flow {
  position: relative;
}

body.tt88-branded[data-tt88-layout] :where(
  .tt88-account-lead,
  .tt88-royal-lead,
  .tt88-ranked-lead,
  .tt88-lobby-lead,
  .tt88-split-lead,
  .tt88-stream-lead,
  .tt88-promo-lead,
  .tt88-wall-lead,
  .tt88-editorial-cover,
  .tt88-editorial-directory,
  .tt88-index-lead,
  .tt88-index-directory
) {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

body.tt88-branded[data-tt88-layout] :where(
  .tt88-account-lead,
  .tt88-royal-lead,
  .tt88-ranked-lead,
  .tt88-lobby-lead,
  .tt88-split-lead,
  .tt88-stream-lead,
  .tt88-promo-lead,
  .tt88-wall-lead,
  .tt88-editorial-cover,
  .tt88-editorial-directory,
  .tt88-index-lead,
  .tt88-index-directory
) .tt88-page-intro,
body.tt88-branded[data-tt88-layout] :where(
  .tt88-account-lead,
  .tt88-royal-lead,
  .tt88-ranked-lead,
  .tt88-lobby-lead,
  .tt88-split-lead,
  .tt88-stream-lead,
  .tt88-promo-lead,
  .tt88-wall-lead,
  .tt88-editorial-cover,
  .tt88-editorial-directory,
  .tt88-index-lead,
  .tt88-index-directory
) .tt88-official-hero {
  width: 100%;
}

.tt88-structure-nav {
  border: 0;
  background: transparent;
}

.tt88-structure-nav .tt88-brand-nav__links {
  width: 100% !important;
}

.tt88-structure-nav .tt88-brand-nav__toggle {
  color: #fff;
  background: var(--tt88-crimson-deep);
}

/* 01 SHBET reference — conventional portal rail and broad lead. */
.tt88-head--portal-rail .tt88-portal-head {
  grid-template-columns: minmax(180px, 245px) 1fr auto;
}

.tt88-portal-lead {
  width: 100%;
}

.tt88-portal-lead .tt88-page-intro {
  margin-top: 0;
}

/* 02 78WIN reference — account command header and banner/copy split. */
.tt88-head--account-hub .tt88-account-top .tt88-brand-layer__utility {
  justify-content: flex-end;
}

.tt88-head--account-hub .tt88-account-head {
  grid-template-columns: minmax(210px, 310px) 1fr;
}

.tt88-account-head__cluster {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: center;
  gap: 1rem;
}

.tt88-account-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  align-items: stretch;
  gap: 0;
  margin-block: 1.2rem 2rem;
  overflow: hidden;
  border: 1px solid var(--tt88-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--tt88-shadow);
}

.tt88-account-lead__visual,
.tt88-account-lead__copy {
  min-width: 0;
}

.tt88-account-lead .tt88-official-hero {
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.tt88-account-lead .tt88-official-hero img {
  height: 100%;
  min-height: 270px;
}

.tt88-account-lead .tt88-page-intro {
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  border: 0;
  border-left: 8px solid var(--tt88-gold);
  padding: 1.5rem;
}

.tt88-account-lead .tt88-page-intro h1 {
  font-size: clamp(1.65rem, 2.7vw, 2.7rem) !important;
}

/* 03 RR88 reference — centered finder header and topic-first royal frame. */
.tt88-head--royal-finder .tt88-royal-head {
  grid-template-columns: minmax(170px, 230px) minmax(300px, 1fr) auto;
  text-align: center;
}

.tt88-royal-head__center {
  min-width: 0;
  border-right: 1px solid rgba(255, 232, 163, 0.22);
  border-left: 1px solid rgba(255, 232, 163, 0.22);
  padding-inline: 1.25rem;
}

.tt88-royal-head__center .tt88-breadcrumb {
  width: 100%;
  padding-bottom: 0;
  text-align: center;
}

.tt88-royal-lead {
  margin-block: 1.35rem 2rem;
  border: 1px solid rgba(164, 15, 24, 0.14);
  border-radius: 18px;
  padding: 1rem;
  background: #fffaf0;
  box-shadow: 0 20px 52px rgba(92, 35, 23, 0.1);
}

.tt88-royal-lead .tt88-page-intro {
  text-align: center;
}

.tt88-royal-lead .tt88-page-intro h1 {
  margin-inline: auto !important;
}

.tt88-topic-finder {
  margin: 0.85rem auto 1rem;
  border: 1px solid rgba(164, 15, 24, 0.16);
  border-radius: 999px;
  padding: 0.3rem;
  background: #fff;
}

.tt88-topic-finder .tt88-brand-nav__links {
  display: flex;
  padding: 0;
  overflow-x: auto;
}

.tt88-topic-finder .tt88-brand-nav__links a {
  min-height: 38px;
  border-radius: 999px;
  color: #721017 !important;
  background: #fff7e5;
}

.tt88-royal-lead .tt88-official-hero {
  margin: 0;
  border-radius: 14px;
}

/* 04 BettingTop10 reference — ranked side index and feature column. */
.tt88-head--ranked-review .tt88-ranked-head {
  grid-template-columns: minmax(200px, 280px) 1fr;
  min-height: 70px;
}

.tt88-ranked-head__meta {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(260px, 1fr) minmax(260px, 0.8fr);
  align-items: center;
  border-top: 1px solid rgba(255, 232, 163, 0.2);
  background: rgba(32, 1, 3, 0.88);
}

.tt88-ranked-head__meta .tt88-brand-layer__utility {
  min-height: 48px;
  padding-inline: 1rem;
  color: #fff;
  background: transparent;
}

.tt88-ranked-head__meta .tt88-brand-layer__promise {
  padding-inline: 1rem;
}

.tt88-ranked-head__meta .tt88-breadcrumb {
  width: 100%;
  padding-inline: 1rem;
}

.tt88-ranked-lead {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 1.4rem;
  margin-block: 1.3rem 2rem;
}

.tt88-ranked-lead__index {
  align-self: start;
  border-top: 8px solid var(--tt88-crimson-deep);
  background: #fff;
  box-shadow: 0 12px 28px rgba(58, 18, 11, 0.1);
}

.tt88-ranked-lead__index::before {
  display: block;
  padding: 0.8rem 0.9rem 0.5rem;
  color: #721017;
  content: "BẢNG CHỦ ĐỀ";
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.tt88-ranked-lead__index .tt88-brand-nav__links {
  display: block;
  padding: 0;
  counter-reset: tt88-ranked;
}

.tt88-ranked-lead__index .tt88-brand-nav__links a {
  counter-increment: tt88-ranked;
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  min-height: 0;
  border-top: 1px solid #eadfd5;
  border-radius: 0;
  padding: 0.7rem 0.8rem;
  color: #35251e !important;
  text-align: left;
}

.tt88-ranked-lead__index .tt88-brand-nav__links a::before {
  color: var(--tt88-crimson);
  content: counter(tt88-ranked, decimal-leading-zero);
  font-weight: 900;
}

.tt88-ranked-lead__feature .tt88-page-intro,
.tt88-ranked-lead__feature .tt88-official-hero {
  margin: 0 0 1rem;
}

/* 05 SUNWIN reference — centered lobby header and image-first showcase. */
.tt88-head--game-lobby .tt88-lobby-head {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 0.65rem;
  padding-block: 0.9rem 0;
  text-align: center;
}

.tt88-lobby-head .tt88-brand-layer__logo,
.tt88-lobby-head .tt88-brand-layer__actions {
  justify-content: center;
}

.tt88-lobby-head .tt88-brand-nav {
  width: 100%;
  border: 1px solid rgba(255, 226, 132, 0.25);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
}

.tt88-lobby-lead {
  margin-block: 1.1rem 2rem;
}

.tt88-lobby-lead__banner {
  position: relative;
  z-index: 1;
}

.tt88-lobby-lead .tt88-official-hero {
  margin: 0;
  border-radius: 12px;
}

.tt88-lobby-lead .tt88-page-intro {
  z-index: 2;
  width: min(900px, calc(100% - 3rem));
  margin: -2rem auto 0;
  border: 1px solid rgba(164, 15, 24, 0.16);
  border-left: 0;
  border-radius: 10px;
  padding: 1.15rem 1.5rem;
  text-align: center;
  box-shadow: 0 18px 38px rgba(69, 15, 10, 0.16);
}

.tt88-lobby-lead .tt88-page-intro h1 {
  max-width: none;
}

/* 06 789BET reference — topic bar nested under header and true split lead. */
.tt88-head--split-media .tt88-split-head {
  grid-template-columns: minmax(190px, 260px) 1fr;
}

.tt88-split-head__topics {
  display: grid;
  grid-template-columns: minmax(230px, 0.35fr) minmax(0, 1fr);
  align-items: center;
  width: min(1240px, calc(100% - 2rem));
  margin: 0 auto;
  border-top: 1px solid rgba(255, 226, 132, 0.28);
}

.tt88-split-head__topics .tt88-brand-layer__promise {
  padding: 0.65rem 1rem 0.65rem 0;
}

.tt88-split-head__topics .tt88-brand-nav__links {
  width: 100%;
}

.tt88-split-lead {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  gap: 1rem;
  margin-block: 1.2rem 2rem;
  padding: 1rem;
  background: #3a0509;
}

.tt88-split-lead .tt88-page-intro {
  height: 100%;
  margin: 0;
  border: 0;
  padding: 1.25rem;
  color: #fff;
  background: transparent;
}

.tt88-split-lead .tt88-page-intro__eyebrow,
.tt88-split-lead .tt88-page-intro h1 {
  color: #fff !important;
}

.tt88-split-lead .tt88-page-intro h1 {
  font-size: clamp(1.75rem, 3.2vw, 3rem) !important;
}

.tt88-split-lead .tt88-official-hero {
  height: 100%;
  margin: 0;
  border-radius: 4px;
  box-shadow: none;
}

.tt88-split-lead .tt88-official-hero img {
  height: 100%;
  min-height: 270px;
}

/* 07 F8BET reference — utility/action bands and content-level sports tabs. */
.tt88-head--sports-stream .tt88-sports-head {
  grid-template-columns: minmax(200px, 300px) 1fr;
}

.tt88-sports-head__actions {
  padding: 0.55rem max(1rem, calc((100% - 1240px) / 2));
  background: #79080e;
}

.tt88-sports-head__actions .tt88-brand-layer__actions {
  justify-content: center;
}

.tt88-head--sports-stream > .tt88-brand-layer__utility {
  min-height: 26px;
}

.tt88-stream-lead {
  margin-block: 1.1rem 2rem;
}

.tt88-stream-lead .tt88-page-intro {
  width: 100%;
  margin: 0;
  border-radius: 10px 10px 0 0;
}

.tt88-stream-lead__tabs {
  border-top: 1px solid rgba(255, 232, 163, 0.3);
  padding: 0.35rem 0.7rem;
  background: var(--tt88-crimson-deep);
}

.tt88-stream-lead__tabs .tt88-brand-nav__links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  padding: 0;
  overflow: visible;
}

body.tt88-branded[data-tt88-layout="sports-stream"] main[data-tt88-main="true"] .tt88-stream-lead__tabs .tt88-brand-nav__links a {
  min-width: 0;
  min-height: 46px;
  white-space: normal;
  line-height: 1.2;
  text-align: center;
  color: #fff !important;
  text-decoration: none;
}

body.tt88-branded[data-tt88-layout="sports-stream"] main[data-tt88-main="true"] .tt88-stream-lead__tabs .tt88-brand-nav__links a:hover,
body.tt88-branded[data-tt88-layout="sports-stream"] main[data-tt88-main="true"] .tt88-stream-lead__tabs .tt88-brand-nav__links a[aria-current="page"] {
  color: #4a070b !important;
  background: var(--tt88-gold-soft);
}

.tt88-stream-lead .tt88-official-hero {
  margin: 0;
  border: 0;
  border-radius: 0 0 10px 10px;
}

/* 08 J88 reference — promo navigation cluster and a ticket-shaped lead. */
.tt88-head--promo-center .tt88-promo-head {
  grid-template-columns: minmax(180px, 250px) 1fr;
}

.tt88-promo-head__nav {
  display: grid;
  grid-template-columns: minmax(260px, 0.35fr) minmax(0, 1fr);
  align-items: center;
  width: min(1240px, calc(100% - 2rem));
  margin: 0 auto;
  border-top: 1px dashed rgba(255, 226, 132, 0.42);
}

.tt88-promo-head__nav .tt88-brand-nav__links {
  width: 100%;
}

.tt88-promo-lead {
  margin-block: 1.2rem 2rem;
  border: 2px dashed #c66f64;
  border-radius: 18px;
  padding: 1rem;
  background: #fff4ea;
}

.tt88-promo-lead .tt88-page-intro {
  width: 100%;
  margin: 0;
  border: 0;
  padding-inline: 1rem;
  text-align: center;
}

.tt88-promo-lead .tt88-page-intro h1 {
  margin-inline: auto !important;
}

.tt88-promo-ticket {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.36fr);
  gap: 1rem;
  align-items: center;
  border-radius: 12px;
  padding: 0.9rem;
  background: #fff;
  box-shadow: 0 14px 32px rgba(94, 24, 17, 0.12);
}

.tt88-promo-ticket .tt88-official-hero {
  margin: 0;
  box-shadow: none;
}

.tt88-promo-ticket .tt88-editor-note {
  width: 100%;
  margin: 0;
  box-shadow: none;
}

/* 09 MM88 reference — full-width media wall and overlapping title slab. */
.tt88-head--media-wall .tt88-media-head {
  width: min(1380px, calc(100% - 2rem));
  grid-template-columns: minmax(180px, 240px) 1fr auto;
}

.tt88-media-head__crumb {
  background: #210104;
}

.tt88-wall-lead {
  width: min(1320px, calc(100% - 2rem)) !important;
  margin-block: 1rem 3.2rem;
}

.tt88-wall-lead .tt88-official-hero {
  margin: 0;
  border-radius: 0;
  box-shadow: 0 24px 60px rgba(48, 0, 3, 0.3);
}

.tt88-wall-lead__title {
  z-index: 2;
  width: min(760px, calc(100% - 3rem));
  margin: -3.4rem 0 0 2rem;
}

.tt88-wall-lead .tt88-page-intro {
  width: 100%;
  margin: 0;
  border: 0;
  border-left: 10px solid var(--tt88-gold);
  padding: 1.3rem 1.5rem;
  box-shadow: 0 20px 48px rgba(47, 0, 3, 0.22);
}

.tt88-wall-lead .tt88-page-intro h1 {
  font-size: clamp(1.9rem, 3.8vw, 3.4rem) !important;
}

/* 10 VietnamCasino reference — editorial header, cover note, category directory. */
.tt88-head--editorial-catalog .tt88-editorial-head {
  grid-template-columns: minmax(170px, 230px) minmax(0, 1fr) auto;
  align-items: stretch;
}

.tt88-editorial-head__menu {
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: end;
  padding-top: 0.5rem;
}

.tt88-editorial-head__menu .tt88-brand-nav__links {
  width: 100%;
  padding-bottom: 0;
}

.tt88-editorial-cover {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  align-items: end;
  gap: 1rem;
  margin-block: 1.25rem 1rem;
  border-radius: 12px;
  padding: 1.25rem;
  background: #5a080d;
}

.tt88-editorial-cover .tt88-page-intro {
  width: 100%;
  margin: 0;
  border: 0;
  padding: 0;
  color: #fff;
  background: transparent;
}

.tt88-editorial-cover .tt88-page-intro__eyebrow,
.tt88-editorial-cover .tt88-page-intro h1 {
  color: #fff !important;
}

.tt88-editorial-cover .tt88-editor-note {
  width: 100%;
  margin: 0;
  border-left-color: var(--tt88-gold);
  background: #fff7e5;
}

.tt88-editorial-directory {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.tt88-editorial-directory .tt88-official-hero {
  height: 100%;
  margin: 0;
}

.tt88-editorial-directory .tt88-official-hero img {
  height: 100%;
}

.tt88-editorial-directory .tt88-brand-nav__links {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 0;
  padding: 0;
}

.tt88-editorial-directory .tt88-brand-nav__links a {
  justify-content: flex-start;
  border-bottom: 1px solid #e7d7c7;
  border-radius: 0;
  padding-inline: 0.9rem;
  color: #541016 !important;
  background: #fff8eb;
  text-align: left;
}

/* 11 Casino.com.vn reference — compact head and numbered directory/media grid. */
.tt88-head--index-directory .tt88-index-head {
  grid-template-columns: minmax(180px, 260px) 1fr;
  min-height: 68px;
}

.tt88-index-head__meta {
  display: grid;
  grid-template-columns: 0.7fr 1fr 1fr;
  align-items: center;
  border-top: 1px solid rgba(255, 226, 132, 0.22);
  background: #2a0205;
}

.tt88-index-head__meta .tt88-brand-layer__utility {
  min-height: 44px;
  padding-inline: 1rem;
  color: #fff;
  background: transparent;
}

.tt88-index-head__meta .tt88-brand-layer__promise {
  padding-inline: 1rem;
}

.tt88-index-head__meta .tt88-breadcrumb {
  width: 100%;
  padding-inline: 1rem;
}

.tt88-index-lead {
  margin-top: 1.4rem;
}

.tt88-index-lead .tt88-page-intro {
  width: 100%;
  border: 0;
  border-top: 8px solid var(--tt88-crimson-deep);
  border-bottom: 1px solid #bda99c;
  padding-inline: 0;
  background: #fff;
}

.tt88-index-directory {
  display: grid;
  grid-template-columns: minmax(270px, 0.42fr) minmax(0, 1.58fr);
  gap: 1.1rem;
  margin-block: 1rem 2rem;
}

.tt88-index-directory__links {
  counter-reset: tt88-index;
}

.tt88-index-directory .tt88-brand-nav__links {
  display: block;
  padding: 0;
}

.tt88-index-directory .tt88-brand-nav__links a {
  counter-increment: tt88-index;
  display: grid;
  grid-template-columns: 2rem 1fr;
  min-height: 0;
  border-top: 1px solid #2b1c18;
  border-radius: 0;
  padding: 0.65rem 0;
  color: #211713 !important;
  background: transparent;
  text-align: left;
}

.tt88-index-directory .tt88-brand-nav__links a::before {
  color: #8a151b;
  content: counter(tt88-index, decimal-leading-zero);
  font-weight: 900;
}

.tt88-index-directory .tt88-official-hero {
  height: 100%;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

.tt88-index-directory .tt88-official-hero img {
  height: 100%;
}

@media (max-width: 960px) {
  .tt88-account-lead,
  .tt88-ranked-lead,
  .tt88-split-lead,
  .tt88-promo-ticket,
  .tt88-editorial-cover,
  .tt88-editorial-directory,
  .tt88-index-directory {
    grid-template-columns: 1fr;
  }

  .tt88-account-lead__visual {
    order: 2;
  }

  .tt88-ranked-lead__index .tt88-brand-nav__links,
  .tt88-editorial-directory .tt88-brand-nav__links,
  .tt88-index-directory .tt88-brand-nav__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tt88-ranked-head__meta,
  .tt88-index-head__meta {
    grid-template-columns: 1fr 1fr;
  }

  .tt88-ranked-head__meta .tt88-brand-layer__promise,
  .tt88-index-head__meta .tt88-brand-layer__promise {
    display: none;
  }

  .tt88-split-head__topics,
  .tt88-promo-head__nav {
    grid-template-columns: 1fr;
  }

  .tt88-split-head__topics .tt88-brand-layer__promise,
  .tt88-promo-head__nav .tt88-brand-layer__promise {
    display: none;
  }
}

@media (max-width: 860px) {
  .tt88-account-head__cluster {
    display: block;
  }

  .tt88-account-head__cluster .tt88-brand-layer__promise,
  .tt88-royal-head__center,
  .tt88-editorial-head__menu .tt88-brand-layer__promise {
    display: none;
  }

  .tt88-head--royal-finder .tt88-royal-head,
  .tt88-head--ranked-review .tt88-ranked-head,
  .tt88-head--sports-stream .tt88-sports-head,
  .tt88-head--promo-center .tt88-promo-head,
  .tt88-head--index-directory .tt88-index-head {
    grid-template-columns: minmax(150px, 210px) 1fr;
  }

  .tt88-head--editorial-catalog .tt88-editorial-head {
    grid-template-columns: minmax(150px, 210px) 1fr;
  }

  .tt88-editorial-head__menu {
    display: none;
  }
}

@media (max-width: 560px) {
  body.tt88-branded[data-tt88-layout] :where(
    .tt88-account-lead,
    .tt88-royal-lead,
    .tt88-ranked-lead,
    .tt88-lobby-lead,
    .tt88-split-lead,
    .tt88-stream-lead,
    .tt88-promo-lead,
    .tt88-wall-lead,
    .tt88-editorial-cover,
    .tt88-editorial-directory,
    .tt88-index-lead,
    .tt88-index-directory
  ) {
    width: calc(100% - 1.25rem) !important;
  }

  .tt88-account-lead .tt88-page-intro,
  .tt88-lobby-lead .tt88-page-intro,
  .tt88-split-lead .tt88-page-intro,
  .tt88-wall-lead .tt88-page-intro {
    width: 100%;
  }

  .tt88-ranked-head__meta,
  .tt88-index-head__meta {
    display: block;
  }

  .tt88-ranked-head__meta .tt88-brand-layer__utility,
  .tt88-index-head__meta .tt88-brand-layer__utility {
    display: none;
  }

  .tt88-ranked-head__meta .tt88-breadcrumb,
  .tt88-index-head__meta .tt88-breadcrumb {
    padding-inline: 0.65rem;
  }

  .tt88-topic-finder {
    border-radius: 8px;
  }

  .tt88-ranked-lead__index .tt88-brand-nav__links,
  .tt88-editorial-directory .tt88-brand-nav__links,
  .tt88-index-directory .tt88-brand-nav__links {
    grid-template-columns: 1fr;
  }

  .tt88-lobby-lead .tt88-page-intro {
    margin-top: -0.75rem;
  }

  .tt88-promo-ticket {
    padding: 0.55rem;
  }

  .tt88-wall-lead__title {
    width: calc(100% - 1.25rem);
    margin: -1.2rem auto 0;
  }

  .tt88-editorial-cover {
    padding: 0.75rem;
  }
}

/* THANTAI88 layout / media hardening v4.
   This layer is deliberately last so it wins over exported CMS rules. */
html:has(body.tt88-branded),
body.tt88-branded {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
}

body.tt88-branded :where(#wrapper, #main, #content, .page-wrapper, .container, .row, .section, .section-content) {
  min-width: 0;
  max-width: 100%;
}

body.tt88-branded :where(main, section, article, aside, figure, picture, .col, [class*="col-"]) {
  min-width: 0;
}

body.tt88-branded main[data-tt88-main="true"] :where(.row, .row-full-width) {
  margin-inline: 0 !important;
}

body.tt88-branded main[data-tt88-main="true"] :where(pre, code, kbd, samp) {
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

body.tt88-branded main[data-tt88-main="true"] :where(iframe, video, canvas, embed, object) {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
}

/* Article and card photos use a predictable editorial frame.  The source
   image is never stretched; object-fit keeps the crop clean at each width. */
body.tt88-branded main[data-tt88-main="true"] img[data-tt88-content-image="true"] {
  display: block;
  width: min(100%, 900px) !important;
  max-width: 100% !important;
  max-height: 460px !important;
  margin-inline: auto !important;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

body.tt88-branded main[data-tt88-main="true"] :where(figure, .wp-caption, picture) {
  width: min(100%, 900px) !important;
  max-width: 100% !important;
  overflow: hidden;
}

/* Source exports often contain author/share icons as malformed imgset tags or
   oversized social widgets.  Keep the THANTAI support CTA, remove the stray
   source widgets and never let an icon become a content image. */
body.tt88-branded :where(
  .saboxplugin-socials,
  .social-icons,
  .social-links,
  .social-share,
  .social-sharing,
  .share-buttons,
  .sharedaddy,
  .addtoany_share_save_container,
  [class*="social-share" i],
  [class*="social-follow" i]
) {
  display: none !important;
}

body.tt88-branded img[src*="assets/current/social-" i],
body.tt88-branded img[src*="/social-" i],
body.tt88-branded img[data-src*="social-" i] {
  display: none !important;
}

.tt88-seo-footer__link-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.tt88-footer-group h3 {
  margin: 0 0 0.45rem;
  color: var(--tt88-gold-soft) !important;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tt88-footer-group .tt88-seo-footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.tt88-footer-group .tt88-seo-footer__links a {
  border-left: 3px solid rgba(255, 232, 163, 0.34);
  padding-left: 0.55rem;
}

.tt88-footer-group[data-topic="entry"] .tt88-seo-footer__links a { border-left-color: #ffe9a6; }
.tt88-footer-group[data-topic="games"] .tt88-seo-footer__links a { border-left-color: #b7f2de; }
.tt88-footer-group[data-topic="guide"] .tt88-seo-footer__links a { border-left-color: #c9dcff; }
.tt88-footer-group[data-topic="support"] .tt88-seo-footer__links a { border-left-color: #e8c9ff; }

@media (max-width: 860px) {
  .tt88-brand-layer__main {
    grid-template-columns: minmax(130px, 220px) minmax(0, 1fr);
  }

  .tt88-brand-layer__main > .tt88-brand-layer__actions,
  .tt88-brand-layer__main .tt88-account-head__cluster > .tt88-brand-layer__actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .tt88-brand-layer__promise,
  .tt88-account-head__cluster .tt88-brand-layer__promise {
    min-width: 0;
  }
}

@media (max-width: 620px) {
  body.tt88-branded {
    overflow-x: hidden;
  }

  .tt88-brand-layer__main {
    grid-template-columns: 1fr !important;
    width: calc(100% - 1rem);
  }

  .tt88-brand-layer__main > .tt88-brand-layer__actions,
  .tt88-brand-layer__main .tt88-account-head__cluster > .tt88-brand-layer__actions {
    grid-column: auto;
    width: 100%;
  }

  .tt88-brand-layer__actions a {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .tt88-seo-footer__link-groups {
    grid-template-columns: 1fr;
  }

  body.tt88-branded main[data-tt88-main="true"] img[data-tt88-content-image="true"] {
    max-height: 280px !important;
    border-radius: 8px;
  }

  body.tt88-branded main[data-tt88-main="true"] :where(table) {
    font-size: 0.9rem;
  }
}

/* Release 2026-08-29-clean-navigation-seo1: the primary navigation is a
   five-category internal directory.  Desktop must fit without a scroll rail;
   compact layouts keep the existing disclosure-button interaction. */
.tt88-head--ranked-review > .tt88-primary-nav {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto 0.85rem;
}

@media (min-width: 861px) {
  body.tt88-branded .tt88-primary-nav .tt88-brand-nav__links {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    overflow: visible !important;
    scrollbar-width: none;
  }

  body.tt88-branded .tt88-primary-nav .tt88-brand-nav__links a {
    min-width: 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    text-align: center;
  }
}

@media (max-width: 860px) {
  body.tt88-branded .tt88-brand-nav__links a {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  /* The editorial-catalog source theme hides its whole menu cluster below
     860px.  Keep the real five-topic primary navigation available while the
     decorative promise remains suppressed by the earlier mobile rule. */
  body.tt88-branded .tt88-head--editorial-catalog .tt88-editorial-head__menu {
    display: block !important;
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    padding-top: 0;
  }

  body.tt88-branded .tt88-head--editorial-catalog .tt88-editorial-head__menu .tt88-brand-layer__promise {
    display: none !important;
  }
}

@media (max-width: 620px) {
  body.tt88-branded .tt88-brand-layer__actions {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

.tt88-editorial-directory--media-only {
  grid-template-columns: minmax(0, 1fr);
}

.tt88-support-target {
  width: min(1120px, calc(100% - 2rem));
  margin: 1rem auto 2rem;
  border: 1px solid rgba(164, 15, 24, 0.16);
  border-left: 5px solid var(--tt88-crimson);
  border-radius: 8px;
  padding: 1rem;
  background: #fffaf0;
}

.tt88-support-target h2 {
  margin-top: 0;
}
