
:root {
  --te-bg: #140d0d;
  --te-surface: #221616;
  --te-surface2: #2d1c1c;
  --te-line: #4a3030;
  --te-ink: #fbeeee;
  --te-muted: #cdb6b6;
  --te-accent: #9b5de5;
  --te-accent-hi: #c4a1f5;
  --te-gold: #ffd166;
  --te-gold-ink: #1a1208;
  --te-font-display: "Alfa Slab One", cursive, sans-serif;
  --te-font-body: "Niramit", sans-serif;
  --te-trans: 160ms ease-out;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 17px;
  background-color: var(--te-bg);
  color: var(--te-ink);
  overflow-x: clip;
}

body.te-body {
  font-family: var(--te-font-body);
  font-size: 1rem;
  line-height: 1.75;
  background-color: var(--te-bg);
  color: var(--te-ink);
  overflow-x: clip;
}

img, svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.te-skip {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--te-gold);
  color: var(--te-gold-ink);
  padding: 8px 16px;
  font-weight: 700;
  z-index: 999;
  transition: transform var(--te-trans);
}

.te-skip:focus-visible {
  top: 16px;
  outline: 2px solid var(--te-accent);
}

.te-wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 20px;
}

.te-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  font-family: var(--te-font-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
  transition: opacity var(--te-trans), transform var(--te-trans), background-color var(--te-trans), border-color var(--te-trans);
}

.te-btn:hover {
  transform: translateY(-1px);
}

.te-btn:focus-visible {
  outline: 2px solid var(--te-accent-hi);
  outline-offset: 2px;
}

.te-btn-gold {
  background-color: var(--te-gold);
  color: var(--te-gold-ink);
}

.te-btn-gold:hover {
  background-color: #ffe08a;
}

.te-btn-line {
  background-color: transparent;
  color: var(--te-gold);
  box-shadow: inset 0 0 0 2px var(--te-gold);
}

.te-btn-line:hover {
  background-color: rgba(255, 209, 102, 0.1);
}

.te-btn-xl {
  min-height: 56px;
  padding: 0 32px;
  font-size: 18px;
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px);
}

.te-topbar {
  background-color: var(--te-surface);
  border-bottom: 1px solid var(--te-line);
}

.te-topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 36px;
  font-size: 13px;
  color: var(--te-muted);
}

.te-topbar-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.te-age {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--te-accent);
  color: #ffffff;
  font-weight: 700;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
}

.te-head {
  position: sticky;
  top: 0;
  background-color: var(--te-bg);
  border-bottom: 1px solid var(--te-line);
  z-index: 200;
}

.te-headrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.te-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.te-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.te-mark-frame, .te-mark-a {
  stroke: var(--te-gold);
  stroke-width: 3px;
  fill: none;
}

.te-mark-b {
  stroke: var(--te-accent);
  stroke-width: 3px;
  fill: none;
}

.te-logo-word {
  font-family: var(--te-font-display);
  font-size: 26px;
  line-height: 1;
  color: var(--te-gold);
}

.te-menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.te-menu-a {
  font-size: 15px;
  font-weight: 500;
  color: var(--te-ink);
  padding: 8px 0;
  border-bottom: 3px solid transparent;
  transition: border-color var(--te-trans), color var(--te-trans);
}

.te-menu-a:hover, .te-menu-a[aria-current="page"] {
  color: var(--te-gold);
  border-bottom-color: var(--te-gold);
}

.te-headcta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.te-burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--te-line);
  flex-direction: column;
  justify-content: space-around;
  cursor: pointer;
  border-radius: 4px;
}

.te-burger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--te-gold);
}

.te-drawer {
  display: none;
  background-color: var(--te-surface);
  border-bottom: 2px solid var(--te-line);
  padding-block: 20px;
}

.te-head:has(#te-burger[aria-expanded="true"]) .te-drawer,
.te-head.te-open .te-drawer {
  display: block;
}

.te-drawer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.te-drawer-a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  background-color: var(--te-surface2);
  border: 1px solid var(--te-line);
  font-size: 15px;
  font-weight: 500;
  color: var(--te-ink);
}

.te-drawer-a:hover {
  border-color: var(--te-gold);
  color: var(--te-gold);
}

.te-drawer-cta .te-btn {
  width: 100%;
}

.te-crumb {
  padding-block: 14px;
  border-bottom: 1px solid var(--te-line);
}

.te-crumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  font-size: 14px;
  color: var(--te-muted);
}

.te-crumb li + li::before {
  content: "/";
  margin-inline: 8px;
  color: var(--te-line);
}

.te-crumb a:hover {
  color: var(--te-gold);
}

.te-foot {
  background-color: var(--te-surface);
  border-top: 3px solid var(--te-accent);
  padding-top: 48px;
  padding-bottom: 48px;
  margin-top: 72px;
}

.te-fgrid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-bottom: 40px;
}

.te-fbrand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.te-fnote {
  font-size: 14px;
  color: var(--te-muted);
  max-width: 32ch;
}

.te-fcol {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.te-fh {
  font-family: var(--te-font-display);
  font-size: 14px;
  color: var(--te-gold);
  margin-bottom: 8px;
  letter-spacing: .05em;
}

.te-fcol a {
  display: flex;
  align-items: center;
  height: 36px;
  font-size: 14px;
  color: var(--te-muted);
  transition: color var(--te-trans);
}

.te-fcol a:hover {
  color: var(--te-gold);
}

.te-promobox {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: var(--te-bg);
  border: 2px solid var(--te-gold);
  padding: 16px 20px;
  margin-bottom: 24px;
}

.te-promo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: var(--te-gold);
  color: var(--te-gold-ink);
  font-weight: 700;
  font-size: 13px;
}

.te-promobox p {
  font-size: 14px;
  color: var(--te-ink);
}

.te-copy {
  font-size: 13px;
  color: var(--te-muted);
  text-align: center;
  border-top: 1px solid var(--te-line);
  padding-top: 24px;
}

.te-bnav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background-color: var(--te-surface);
  border-top: 1px solid var(--te-line);
  z-index: 300;
  align-items: center;
  justify-content: space-around;
}

.te-bn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
  height: 100%;
  color: var(--te-muted);
  font-size: 12px;
  transition: color var(--te-trans);
}

.te-bn svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.te-bn:hover, .te-bn[aria-current="page"] {
  color: var(--te-gold);
}

.te-bn-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--te-gold);
  color: var(--te-gold-ink);
  transform: translateY(-18px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.te-bn-mid svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

@media (max-width: 999px) {
  .te-menu {
    display: none;
  }
  .te-burger {
    display: flex;
  }
  .te-bnav {
    display: flex;
  }
  body.te-body {
    padding-bottom: 72px;
  }
  .te-foot {
    padding-bottom: 96px;
    margin-top: 48px;
  }
  .te-fgrid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}

@media (max-width: 759px) {
  .te-hide-s {
    display: none;
  }
  .te-headcta .te-btn {
    min-height: 40px;
    padding: 0 14px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

:root {
  --te-bg: #140d0d;
  --te-surface: #221616;
  --te-surface2: #2d1c1c;
  --te-line: #4a3030;
  --te-ink: #fbeeee;
  --te-muted: #cdb6b6;
  --te-accent: #9b5de5;
  --te-accent-hi: #c4a1f5;
  --te-gold: #ffd166;
  --te-gold-ink: #1a1208;
  --te-overlay: rgba(20, 13, 13, 0.85);
  --te-ctaband-bg: #2b1836;
  --te-white: #ffffff;
  --te-black: #000000;
  --te-tag-fish: #1f6f8b;
  --te-tag-live: #9d0208;
  --te-trans: 160ms ease-out;
  --te-font-display: "Alfa Slab One", cursive, sans-serif;
  --te-font-body: "Niramit", sans-serif;
}

.te-sec {
  padding-block: 72px;
  position: relative;
  opacity: 1;
}

.te-h1 {
  font-family: var(--te-font-body);
  font-size: clamp(1.9rem, 4.6vw, 3.2rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--te-ink);
  margin: 0 0 16px 0;
  overflow-wrap: anywhere;
}

.te-h2 {
  font-family: var(--te-font-body);
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--te-ink);
  margin: 0 0 24px 0;
  overflow-wrap: anywhere;
}

.te-h2-s {
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  margin-bottom: 16px;
}

.te-h3 {
  font-family: var(--te-font-body);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--te-ink);
  margin: 0 0 8px 0;
}

.te-sublead {
  font-family: var(--te-font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--te-muted);
  margin: -12px 0 24px 0;
}

.te-hero {
  padding-top: 32px;
}

.te-kicker {
  font-family: var(--te-font-display);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--te-accent-hi);
  text-transform: uppercase;
  margin: 0 0 8px 0;
}

.te-poster {
  border-top: 3px solid var(--te-gold);
  border-bottom: 3px solid var(--te-gold);
  padding: 16px 0;
  margin: 16px 0 24px 0;
  text-align: center;
  overflow: hidden;
}

.te-poster-word {
  display: block;
  font-family: var(--te-font-display);
  font-size: clamp(7rem, 33vw, 30rem);
  line-height: 0.8;
  color: var(--te-gold);
  text-shadow: 6px 6px 0 var(--te-accent);
  white-space: nowrap;
  user-select: none;
}

.te-herocols {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.te-lead {
  font-size: 18px;
  line-height: 1.75;
  color: var(--te-ink);
  margin: 0;
}

.te-heroside {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.te-fine {
  font-size: 13px;
  line-height: 1.5;
  color: var(--te-muted);
  margin: 0;
}

.te-login .te-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.te-step {
  background: var(--te-surface);
  border-top: 3px solid var(--te-gold);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.te-step-n {
  font-family: var(--te-font-display);
  font-size: 44px;
  line-height: 1;
  color: var(--te-accent-hi);
}

.te-games .te-grid,
.te-gal .te-grid,
.te-grid-live {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.te-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--te-surface);
  border: 1px solid var(--te-line);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  overflow: hidden;
  margin: 0;
  transition: transform var(--te-trans), border-color var(--te-trans);
}

.te-card:hover {
  transform: translateY(-4px);
  border-color: var(--te-gold);
}

.te-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  font-size: 12px;
  font-weight: 600;
  color: var(--te-white);
  background: var(--te-accent);
  padding: 2px 8px;
  border-radius: 4px;
  line-height: 1.4;
}

.te-tag-fish {
  background: var(--te-tag-fish);
}

.te-tag-live {
  background: var(--te-tag-live);
}

.te-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.te-card figcaption {
  position: static;
  flex: 1 0 auto;
  z-index: 2;
  background: var(--te-surface);
  color: var(--te-ink);
  font-size: 13px;
  line-height: 1.35;
  padding: 8px 10px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.te-long .te-prose,
.te-art .te-prose,
.te-prose {
  max-width: 760px;
  margin-inline: auto;
  font-size: 17px;
  line-height: 1.75;
  color: var(--te-ink);
}

.te-prose h2 {
  border-left: 4px solid var(--te-accent);
  padding-left: 14px;
  margin-top: 40px;
  margin-bottom: 20px;
}

.te-prose h3 {
  margin-top: 28px;
  margin-bottom: 12px;
}

.te-prose p {
  margin: 0 0 16px 0;
}

.te-prose a {
  color: var(--te-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--te-trans);
}

.te-prose a:hover {
  color: var(--te-accent-hi);
}

.te-prose strong {
  color: var(--te-ink);
  font-weight: 700;
}

.te-prose ul,
.te-prose ol {
  margin: 0 0 20px 0;
  padding-left: 24px;
}

.te-prose li {
  margin-bottom: 8px;
}

.te-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  border: 1px solid var(--te-line);
  font-size: 15px;
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.te-prose th,
.te-prose td {
  padding: 10px 14px;
  border: 1px solid var(--te-line);
  text-align: left;
}

.te-prose th {
  background: var(--te-surface2);
  color: var(--te-gold);
  font-weight: 600;
}

.te-prose td {
  background: var(--te-surface);
}

.te-midcta {
  background: var(--te-surface2);
  border-left: 4px solid var(--te-gold);
  padding: 20px 24px;
  margin: 32px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.te-midcta p {
  margin: 0;
  font-weight: 600;
  font-size: 1.05rem;
  flex: 1 1 280px;
}

.te-terms .te-ticket {
  background-color: var(--te-surface);
  background-image:
    radial-gradient(circle at 0 50%, transparent 14px, var(--te-surface) 15px),
    radial-gradient(circle at 100% 50%, transparent 14px, var(--te-surface) 15px);
  background-position: 0 0, 100% 0;
  background-size: 51% 100%;
  background-repeat: no-repeat;
  border: 2px dashed var(--te-line);
  padding: 32px;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

.te-faq .te-q {
  background: var(--te-surface);
  border: 1px solid var(--te-line);
  margin-bottom: 12px;
  transition: border-color var(--te-trans);
}

.te-faq .te-q[open] {
  border-color: var(--te-accent);
}

.te-q summary {
  font-size: 17px;
  font-weight: 600;
  color: var(--te-ink);
  padding: 18px 48px 18px 20px;
  cursor: pointer;
  list-style: none;
  position: relative;
  user-select: none;
}

.te-q summary::-webkit-details-marker {
  display: none;
}

.te-q summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--te-font-display);
  font-size: 20px;
  color: var(--te-gold);
  line-height: 1;
  transition: transform var(--te-trans);
}

.te-q[open] summary::after {
  content: "\2212";
  transform: translateY(-50%) rotate(180deg);
}

.te-a {
  padding: 0 20px 18px 20px;
  color: var(--te-muted);
  font-size: 16px;
  line-height: 1.75;
}

.te-a p {
  margin: 0;
}

.te-ctaband > .te-wrap {
  text-align: center;
  background: var(--te-ctaband-bg);
  border-top: 3px solid var(--te-gold);
  border-bottom: 3px solid var(--te-gold);
  padding: 48px 24px;
}

.te-ctaband h2 {
  margin-bottom: 12px;
}

.te-ctaband p {
  color: var(--te-muted);
  max-width: 600px;
  margin: 0 auto 24px auto;
}

.te-ph {
  padding: 48px 0 24px 0;
  border-bottom: 1px solid var(--te-line);
  margin-bottom: 32px;
}

.te-eyebrow {
  font-family: var(--te-font-display);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--te-gold);
  text-transform: uppercase;
  margin: 0 0 10px 0;
}

.te-h1-in {
  font-size: clamp(1.75rem, 3.8vw, 2.6rem);
  margin: 0 0 12px 0;
}

.te-byline {
  font-size: 14px;
  color: var(--te-muted);
  margin: 0;
}

.te-provs {
  margin-top: 32px;
}

.te-prov {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}

.te-card-logo {
  background: var(--te-black);
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
}

.te-card-logo img {
  object-fit: contain;
}

@media (max-width: 1099px) {
  .te-games .te-grid,
  .te-gal .te-grid,
  .te-grid-live {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .te-login .te-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .te-prov {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 759px) {
  .te-sec {
    padding-block: 48px;
  }
  .te-herocols {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .te-login .te-steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .te-games .te-grid,
  .te-gal .te-grid,
  .te-grid-live {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .te-prov {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .te-terms .te-ticket {
    padding: 24px 16px;
  }
  .te-ctaband > .te-wrap {
    padding: 36px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
/* patch P1: nut vang trong vung van (a trong .te-prose khong duoc ghi de mau chu nut) */
.te-prose a.te-btn-gold,.te-prose a.te-btn-gold:hover{color:var(--te-gold-ink);text-decoration:none}
.te-prose a.te-btn-line{color:var(--te-gold);text-decoration:none}
.te-sec{padding-block:56px}
.te-ph + .te-art{padding-top:36px}
.te-login + .te-games,.te-hero + .te-login{padding-top:40px}
@media (max-width:759px){.te-sec{padding-block:40px}.te-ph + .te-art{padding-top:24px}}
