/* Giao dien "Pha le" cua Ngoc Rong Royal: toan bo giao dien lam tu chat lieu cua vien ngoc rong.
   Tranh goc net cang nam co dinh phia sau; cac tam kinh truot qua va be cong tranh o mep.
   Hai loai kinh: kinh toi cho phan trinh dien va dieu huong, kinh sang cho phan doc va nhap lieu.
   Khong dung bong mo hay chu vien mo: vien sang 1px va do tuong phan tao cam giac sac net. */

:root {
  --muc: #12103A;
  --muc-phu: #45426F;
  --sang-phu: #E6E4FF;
  --nen: #0E0B33;
  --ke: rgba(18, 16, 58, .14);
  --cam-tren: #FF8E1C;
  --cam-duoi: #DB4800;
  --vang: #FFD23F;
  --do: #D3142A;
  --bo-lon: 32px;
  --bo-vua: 24px;
  --chu: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --cao-thanh: 68px;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 96px;
}

body#cssweb {
  min-height: 100vh;
  margin: 0;
  background: var(--nen);
  color: var(--muc);
  font-family: var(--chu);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a,
button,
summary {
  -webkit-tap-highlight-color: rgba(255, 142, 28, .3);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--vang);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--muc);
}

.tr-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.tr-ball {
  display: block;
  flex: none;
  width: 36px;
  height: 36px;
}

.tr-i {
  display: block;
  flex: none;
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* ---------- Tranh nen co dinh ---------- */
.tr-nen {
  position: fixed;
  z-index: -1;
  top: 0;
  right: 0;
  left: 0;
  height: 100vh;
  height: 100lvh;
  overflow: hidden;
  background: var(--nen) url(/public/images/kinh/nen-mo.webp) center / cover no-repeat;
}

.tr-nen img {
  display: block;
  width: 100%;
  height: 78%;
  object-fit: cover;
  object-position: 50% 0;
  -webkit-mask-image: linear-gradient(180deg, #000 86%, transparent);
  mask-image: linear-gradient(180deg, #000 86%, transparent);
}

/* Trang con: tranh lui lai mot chut de nguoi doc tap trung vao noi dung */
.tr-con .tr-nen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(14, 11, 51, .34);
}

@media (min-width: 960px) {
  .tr-nen img {
    height: 100%;
    object-position: 50% 40%;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* ---------- Hai loai kinh ---------- */
.tr-kinh {
  position: relative;
  border-radius: var(--bo-vua);
}

/* Vien pha le: sang o goc tren trai va duoi phai, net 1.5px */
.tr-kinh::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  padding: 1.5px;
  border-radius: inherit;
  background: linear-gradient(125deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .22) 28%, rgba(255, 255, 255, .08) 58%, rgba(255, 255, 255, .7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

/* Tam kinh de doc: nen la tranh da lam mo san, gan co dinh theo man hinh nen nhin nhu kinh that khi cuon.
   Trinh duyet co the bo backdrop-filter khi tam kinh bi cat o mep tren man hinh dien thoai, chu se de len tranh ro;
   cach nay khong the mat mo, luon doc duoc va nhe cho may yeu. */
.tr-kinh--toi {
  background: linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 42%), #2A1E3E url(/public/images/kinh/mo-toi.webp) 50% 40% / cover fixed;
  box-shadow: 0 2px 0 rgba(14, 11, 51, .35), 0 16px 34px rgba(14, 11, 51, .3);
  color: #fff;
}

.tr-kinh--sang {
  background: linear-gradient(160deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .08) 40%), #F3F1FB url(/public/images/kinh/mo-sang.webp) 50% 40% / cover fixed;
  box-shadow: 0 2px 0 rgba(14, 11, 51, .22), 0 18px 38px rgba(14, 11, 51, .3);
  color: var(--muc);
}

@media (max-width: 959px) {
  .tr-kinh--toi {
    background: linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 42%), #2A1E3E url(/public/images/kinh/mo-dt-toi.webp) 50% 0 / cover fixed;
  }

  .tr-kinh--sang {
    background: linear-gradient(160deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .08) 40%), #F3F1FB url(/public/images/kinh/mo-dt-sang.webp) 50% 0 / cover fixed;
  }
}

/* Kinh song: chi dung cho menu va tam kinh chinh, hai cho luon nam tron trong man hinh.
   kinh.js doc --kinh-loc roi them khuc xa o mep tren Chromium; Safari va Firefox giu lop mo nay.
   Lam toi bang brightness thay vi phu mau dam, va keo vang ve mau ho phach cua ngoc de kinh khong bi duc. */
.tr-kinh--song {
  --kinh-loc: blur(14px) saturate(210%) brightness(.58) hue-rotate(-16deg);
  background: linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 42%), rgba(14, 11, 51, .42);
  -webkit-backdrop-filter: var(--kinh-loc);
  backdrop-filter: var(--kinh-loc);
  box-shadow: 0 2px 0 rgba(14, 11, 51, .35), 0 16px 34px rgba(14, 11, 51, .3);
  color: #fff;
}

.tr-kinh--song.tr-kinh--bi-cat {
  background: linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 42%), #2A1E3E url(/public/images/kinh/mo-toi.webp) 50% 40% / cover fixed;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

@media (max-width: 959px) {
  .tr-kinh--song.tr-kinh--bi-cat {
    background: linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 42%), #2A1E3E url(/public/images/kinh/mo-dt-toi.webp) 50% 0 / cover fixed;
  }
}

/* May tat hieu ung trong suot hoac khong ho tro: dung nen dac de van doc duoc */
@media (prefers-reduced-transparency: reduce) {
  .tr-kinh--song {
    background: #2A1E3E;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .tr-kinh--song {
    background: #2A1E3E;
  }
}

/* ---------- Nut pha le ---------- */
.tr-nut {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 28px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  font-family: var(--chu);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .26s cubic-bezier(.3, 1.7, .5, 1);
}

/* Mang sang nua tren cua khoi pha le */
.tr-nut::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 1.5px;
  right: 3px;
  left: 3px;
  height: 48%;
  border-radius: 999px 999px 60% 60% / 999px 999px 40% 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .06));
  pointer-events: none;
}

/* Vet sang theo con tro */
.tr-nut::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(90px circle at var(--x, 50%) var(--y, 0), rgba(255, 255, 255, .4), transparent 70%);
  opacity: 0;
  transition: opacity .15s;
  pointer-events: none;
}

@media (hover: hover) {
  .tr-nut:hover {
    transform: scale(1.025);
  }

  .tr-nut:hover::after {
    opacity: 1;
  }
}

/* Bam xuong: khoi kinh dep lai roi nay len */
.tr-nut:active {
  transform: scale(1.03, .93);
  transition-duration: .08s;
}

.tr-nut--chinh {
  background: linear-gradient(180deg, var(--cam-tren), var(--cam-duoi));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5), inset 0 -2px 2px rgba(110, 28, 0, .5), 0 2px 0 rgba(90, 24, 0, .7);
  color: #fff;
  font-weight: 800;
  text-shadow: 0 1px 0 rgba(120, 36, 0, .7);
}

.tr-nut--chinh:hover,
.tr-nut--chinh:focus {
  color: #fff;
}

.tr-nut--lon {
  width: 100%;
  min-height: 66px;
  font-size: 24px;
  letter-spacing: -.01em;
}

.tr-nut--phu {
  background: rgba(255, 255, 255, .96);
  box-shadow: inset 0 0 0 1px #fff, inset 0 -2px 2px rgba(18, 16, 58, .16), 0 2px 0 rgba(14, 11, 51, .5);
  color: var(--muc);
}

.tr-nut--phu:hover,
.tr-nut--phu:focus {
  color: var(--muc);
}

.tr-nut--vien {
  background: rgba(14, 11, 51, .55);
  box-shadow: inset 0 0 0 1.5px #fff, 0 2px 0 rgba(14, 11, 51, .5);
  color: #fff;
}

.tr-nut--vien::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0));
}

.tr-nut--vien:hover,
.tr-nut--vien:focus {
  color: #fff;
}

.tr-giua {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ---------- Khung trang ---------- */
.tr-shell {
  min-height: 100vh;
  padding-bottom: calc(var(--cao-thanh) + 28px + env(safe-area-inset-bottom));
}

.tr-main {
  display: block;
  width: 100%;
}

.tr-dau {
  display: block;
  width: 168px;
  margin: 14px auto 0;
}

.tr-dau img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Menu: vien kinh noi; dien thoai 5 o o duoi, may tinh 3 + 1 + 3 o tren ---------- */
.tr-nav.tr-kinh {
  position: fixed;
  z-index: 1030;
  right: 10px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  left: 10px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  height: var(--cao-thanh);
  padding: 0 4px;
  border-radius: 34px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 50%), rgba(14, 11, 51, .76);
}

.chi-mt {
  display: none !important;
}

.tr-nav__muc {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 100%;
  padding: 4px 2px;
  border-radius: 28px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
  list-style: none;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .26s cubic-bezier(.3, 1.7, .5, 1);
}

.tr-nav__muc::-webkit-details-marker {
  display: none;
}

.tr-nav__muc:hover,
.tr-nav__muc:focus {
  color: #fff;
}

.tr-nav__muc:active {
  transform: scale(.92);
}

/* Muc dang o: giot kinh sang bao quanh */
.tr-nav__muc[aria-current="page"] {
  color: var(--vang);
}

.tr-nav__muc[aria-current="page"]::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 5px 0;
  border-radius: 24px;
  background: rgba(255, 255, 255, .15);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55);
}

/* Vien 4 sao: Tai game nam dung giua, nho len khoi vien */
.tr-nav__muc--tam {
  justify-content: flex-end;
  padding-bottom: 7px;
  color: var(--vang);
}

.tr-nav__muc--tam .tr-ball {
  width: 54px;
  height: 54px;
  margin-top: -22px;
  border-radius: 50%;
}

.tr-cham {
  position: absolute;
  top: 7px;
  left: calc(50% + 8px);
  width: 11px;
  height: 11px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #E8172F;
}

.tr-nav__muc--tam .tr-cham {
  top: -17px;
  left: calc(50% + 16px);
  width: 14px;
  height: 14px;
}

.tr-them {
  position: static;
  min-width: 0;
}

/* Menu nam trong vien da co kinh nen khong the mo them lop sau: dung nen dac de chu phia sau khong lo ra.
   backdrop-filter cua vien khien position: fixed bam theo vien, nen dat absolute cho ro rang */
.tr-them__menu {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: calc(100% + 10px);
  left: 0;
  display: grid;
  max-width: 420px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--bo-vua);
  background: #fff;
  box-shadow: inset 0 0 0 1px #fff, 0 2px 0 rgba(14, 11, 51, .3), 0 18px 40px rgba(14, 11, 51, .45);
  text-align: center;
}

.tr-them__menu a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-top: 1px solid var(--ke);
  color: var(--muc);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.tr-them__menu > a:first-child {
  border-top: 0;
}

.tr-them__menu a:hover,
.tr-them__menu a:focus {
  background: var(--cam-duoi);
  color: #fff;
}

.tr-them__dau {
  display: grid;
  justify-items: center;
  padding: 14px 12px 12px;
  color: var(--muc);
  line-height: 1.3;
}

.tr-them__dau img {
  width: 48px;
  height: 48px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: #EEEDFB;
  object-fit: contain;
}

.tr-them__dau strong {
  overflow: hidden;
  max-width: 100%;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tr-them__dau span {
  color: var(--muc-phu);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 960px) {
  .chi-dt {
    display: none !important;
  }

  .chi-mt {
    display: flex !important;
  }

  .tr-shell {
    padding-bottom: 0;
  }

  .tr-bar {
    position: sticky;
    z-index: 1030;
    top: 12px;
    display: flex;
    justify-content: center;
    padding-top: 12px;
    pointer-events: none;
  }

  .tr-nav.tr-kinh {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    display: flex;
    align-items: center;
    gap: 0;
    height: 64px;
    padding: 0 6px;
    border-radius: 32px;
    pointer-events: auto;
  }

  /* Moi muc cung rong de Tai game nam dung giua */
  .tr-nav > .tr-nav__muc,
  .tr-nav > .tr-them {
    flex: 0 0 100px;
    height: 100%;
  }

  .tr-nav .tr-nav__muc {
    font-size: 13px;
  }

  .tr-nav__muc[aria-current="page"]::before {
    inset: 6px 4px;
  }

  .tr-nav > .tr-nav__muc--tam {
    flex: 0 0 172px;
    flex-direction: row;
    justify-content: center;
    gap: 8px;
    height: 50px;
    margin: 0 8px;
    padding: 0 16px 0 6px;
    overflow: visible;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--cam-tren), var(--cam-duoi));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5), inset 0 -2px 2px rgba(110, 28, 0, .5);
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    text-shadow: 0 1px 0 rgba(120, 36, 0, .7);
  }

  .tr-nav > .tr-nav__muc--tam:hover,
  .tr-nav > .tr-nav__muc--tam:focus {
    color: #fff;
    transform: scale(1.03);
  }

  .tr-nav > .tr-nav__muc--tam:active {
    transform: scale(1.03, .93);
  }

  .tr-nav__muc--tam .tr-ball {
    width: 38px;
    height: 38px;
    margin: 0;
  }

  .tr-nav__muc .tr-cham {
    top: 9px;
    left: calc(50% + 10px);
  }

  .tr-nav__muc--tam .tr-cham {
    top: -3px;
    right: 8px;
    left: auto;
  }

  /* Trang Nhan vat: chi muc Nhan vat sang, khong sang them o Tai khoan */
  .chi-mt[aria-current="page"] ~ .tr-them > summary {
    color: #fff;
  }

  .chi-mt[aria-current="page"] ~ .tr-them > summary::before {
    content: none;
  }

  .tr-them {
    position: relative;
  }

  .tr-them__menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 50%;
    bottom: auto;
    left: auto;
    width: 240px;
    transform: translateX(50%);
  }

  .tr-dau {
    width: 190px;
    margin-top: 14px;
  }
}

/* ---------- Trang chu: tranh ro, mot tam kinh o day giu moi thao tac ---------- */
.tr-page--home {
  padding: 0;
}

.tr-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: calc(100vh - var(--cao-thanh) - 28px);
  min-height: calc(100svh - var(--cao-thanh) - 28px);
  padding: 12px 12px 0;
}

.tr-hero__logo {
  flex: none;
  width: min(66vw, 300px);
}

.tr-hero__logo img {
  display: block;
  width: 100%;
  height: auto;
  -webkit-user-drag: none;
}

.tr-hero__giua {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 460px;
  margin-top: auto;
  padding: 18px 16px 16px;
  border-radius: var(--bo-lon);
  text-align: center;
}

.tr-page .tr-hero h1 {
  margin: 0;
  color: #fff;
  font-family: var(--chu);
  font-size: clamp(24px, 6.8vw, 34px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.16;
  text-wrap: balance;
}

.tr-hero h1 span {
  display: block;
}

/* Bay vien ngoc sang dan vao giua khi vua mo trang */
.tr-bay {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 10px 0 12px;
}

.tr-bay .tr-ball {
  width: 30px;
  height: 30px;
}

.tr-bay .tr-ball:nth-child(4) {
  width: 38px;
  height: 38px;
}

.tr-hero__bt {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--sang-phu);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.3;
}

.tr-hero__nut {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 10px;
  width: 100%;
}

.tr-hero__nut .tr-nut--lon {
  grid-column: 1 / -1;
}

.tr-hero__nut .tr-nut:not(.tr-nut--lon) {
  padding-right: 8px;
  padding-left: 8px;
}

@media (max-width: 959px) and (max-height: 660px) {
  .tr-hero__logo {
    width: 190px;
  }

  .tr-hero__giua {
    margin-top: 10px;
    padding: 12px 12px 12px;
  }

  .tr-bay {
    margin: 6px 0 8px;
  }

  .tr-nut--lon {
    min-height: 58px;
  }
}

@media (min-width: 720px) {
  .tr-hero__giua {
    max-width: 560px;
    padding: 24px 28px;
  }

  .tr-page .tr-hero h1 {
    font-size: 38px;
  }

  .tr-bay .tr-ball {
    width: 36px;
    height: 36px;
  }

  .tr-bay .tr-ball:nth-child(4) {
    width: 46px;
    height: 46px;
  }
}

@media (min-width: 960px) {
  .tr-hero {
    min-height: calc(100vh - 76px);
    padding: 10px 16px 18px;
  }

  .tr-hero__logo {
    width: 290px;
  }

  .tr-hero__giua {
    max-width: 880px;
    padding: 20px 28px 18px;
  }

  .tr-page .tr-hero h1 {
    font-size: 40px;
  }

  .tr-hero h1 span {
    display: inline;
  }

  .tr-bay {
    margin: 8px 0 12px;
  }

  .tr-hero__nut {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr);
    column-gap: 14px;
    row-gap: 8px;
    max-width: 720px;
  }

  .tr-hero__nut .tr-nut--lon {
    grid-column: 2;
    grid-row: 1;
  }

  .tr-hero__nut .tr-nut--phu {
    grid-column: 1;
    grid-row: 1;
  }

  .tr-hero__nut .tr-nut--vien {
    grid-column: 3;
    grid-row: 1;
  }

  .tr-hero__bt {
    grid-row: 2;
  }
}

/* Mot nhip mo man: ngoc sang tu hai ben vao giua */
@media (prefers-reduced-motion: no-preference) {
  .tr-bay .tr-ball {
    animation: tr-sang .36s ease-out both;
  }

  .tr-bay .tr-ball:nth-child(1),
  .tr-bay .tr-ball:nth-child(7) {
    animation-delay: .12s;
  }

  .tr-bay .tr-ball:nth-child(2),
  .tr-bay .tr-ball:nth-child(6) {
    animation-delay: .27s;
  }

  .tr-bay .tr-ball:nth-child(3),
  .tr-bay .tr-ball:nth-child(5) {
    animation-delay: .42s;
  }

  .tr-bay .tr-ball:nth-child(4) {
    animation-delay: .57s;
  }

  @keyframes tr-sang {
    from {
      opacity: .35;
      transform: scale(.72);
    }
  }
}

/* ---------- Trang chu: cac vung ---------- */
.tr-vung {
  width: min(100% - 24px, 1040px);
  margin: 0 auto;
}

.tr-page .tr-vung h2 {
  margin: 0 0 20px;
  font-family: var(--chu);
  font-size: clamp(25px, 4vw, 34px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.16;
  text-align: center;
  text-wrap: balance;
}

.tr-page .tr-kinh--toi h2 {
  color: #fff;
}

.tr-page .tr-kinh--sang h2 {
  color: var(--muc);
}

.tr-muc,
.tr-may {
  margin-top: 16px;
  padding: 26px 16px;
  border-radius: var(--bo-lon);
}

@media (min-width: 720px) {
  .tr-muc,
  .tr-may {
    padding: 34px;
  }
}

/* Bon o loi tat */
.tr-o-luoi {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.tr-page a.tr-o {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 16px 8px;
  overflow: hidden;
  color: var(--sang-phu);
  font-size: 13.5px;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: transform .26s cubic-bezier(.3, 1.7, .5, 1);
}

.tr-page a.tr-o:hover,
.tr-page a.tr-o:focus {
  color: #fff;
}

@media (hover: hover) {
  .tr-page a.tr-o:hover {
    transform: translateY(-2px) scale(1.015);
  }
}

.tr-page a.tr-o:active {
  transform: scale(.97);
}

.tr-o strong {
  margin-top: 8px;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
}

.tr-o__i {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55), inset 0 2px 1px rgba(255, 255, 255, .35);
  color: #fff;
}

.tr-o__i .tr-i {
  width: 27px;
  height: 27px;
}

.tr-o__i--vang {
  background: linear-gradient(180deg, #FFDF6B, #F5A400);
  color: var(--muc);
}

.tr-o__i--tim {
  background: linear-gradient(180deg, #A07BFF, #6A32E8);
}

.tr-o__i--xanh {
  background: linear-gradient(180deg, #3D9BFF, #0F5FCC);
}

.tr-o__i--luc {
  background: linear-gradient(180deg, #2CC56F, #0A7A3C);
}

@media (min-width: 720px) {
  .tr-o-luoi {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }
}

/* Ba buoc */
.tr-buoc {
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

.tr-buoc li {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tr-buoc .tr-ball {
  width: 68px;
  height: 68px;
  margin-bottom: 8px;
}

.tr-buoc strong {
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
}

.tr-buoc p {
  max-width: 30ch;
  margin: 4px 0 0;
  color: var(--sang-phu);
}

@media (min-width: 720px) {
  .tr-buoc {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Buc vinh quang: hang 1 o giua */
.tr-bac {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  max-width: 620px;
  margin: 0 auto 24px;
  padding: 0;
  list-style: none;
  text-align: center;
}

.tr-bac__muc {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.tr-bac__muc--1 {
  order: 2;
}

.tr-bac__muc--2 {
  order: 1;
}

.tr-bac__muc--3 {
  order: 3;
}

.tr-bac__muc img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #A9AECB;
  object-fit: contain;
}

.tr-bac__muc--1 img {
  width: 88px;
  height: 88px;
  box-shadow: 0 0 0 2px #fff, 0 0 0 5px var(--vang);
}

.tr-bac__muc--3 img {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #D4824B;
}

.tr-bac__ten {
  overflow: hidden;
  width: 100%;
  margin-top: 10px;
  color: #fff;
  font-weight: 700;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tr-bac__sm {
  margin-bottom: 8px;
  color: var(--vang);
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}

.tr-bac__cot {
  display: grid;
  place-items: center;
  width: 100%;
  height: 76px;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(180deg, #F2F3FA, #A4A9C9);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8);
  color: var(--muc);
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}

.tr-bac__muc--1 .tr-bac__cot {
  height: 114px;
  background: linear-gradient(180deg, #FFE27A, #F5A400);
  font-size: 44px;
}

.tr-bac__muc--3 .tr-bac__cot {
  height: 56px;
  background: linear-gradient(180deg, #F6C39B, #C9713A);
}

.tr-muc__trong {
  margin-bottom: 18px;
  color: #fff;
  text-align: center;
}

/* Chon hanh tinh: mot ranh kinh, muc dang chon la giot mau */
.tr-tabs,
.tr-tabs-bxh {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  max-width: 560px;
  margin: 0 auto 20px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(18, 16, 58, .1);
  box-shadow: inset 0 1px 2px rgba(18, 16, 58, .22);
}

.tr-tab {
  min-height: 48px;
  padding: 4px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muc);
  font-family: var(--chu);
  font-size: clamp(14px, 3.4vw, 16px);
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
  transition: transform .26s cubic-bezier(.3, 1.7, .5, 1);
}

.tr-tab:hover {
  background: rgba(255, 255, 255, .55);
}

.tr-tab:active {
  transform: scale(.96);
}

.tr-tab[aria-selected="true"] {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5), inset 0 -2px 2px rgba(0, 0, 0, .25);
  color: #fff;
}

.tr-tab--trai-dat[aria-selected="true"] {
  background: linear-gradient(180deg, #2F8CF5, #0F5FCC);
}

.tr-tab--namec[aria-selected="true"] {
  background: linear-gradient(180deg, #17A457, #0A7A3C);
}

.tr-tab--xayda[aria-selected="true"] {
  background: linear-gradient(180deg, #EE3346, #BE0F24);
}

.tr-hanhtinh {
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
}

.tr-hanhtinh[hidden] {
  display: none;
}

.tr-hanhtinh__anh {
  display: block;
  width: 100%;
  max-width: 820px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(18, 16, 58, .25);
}

.tr-chieu {
  width: 100%;
  max-width: 460px;
}

.tr-chieu > h3 {
  margin: 0 0 10px;
  font-family: var(--chu);
  font-size: 17px;
  font-weight: 500;
}

.tr-chieu > h3 b {
  font-weight: 800;
}

.tr-chieu__cap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tr-chieu figure {
  margin: 0;
}

.tr-chieu img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(18, 16, 58, .25);
  image-rendering: pixelated;
}

.tr-chieu figcaption {
  padding-top: 4px;
  font-size: 14px;
  font-weight: 700;
}

/* ---------- Trang con: tam kinh sang can giua ---------- */
.tr-page:not(.tr-page--home) {
  width: min(100% - 24px, 860px);
  margin: 12px auto 0;
  padding: 24px 16px;
  border-radius: var(--bo-lon);
  color: var(--muc);
}

@media (min-width: 720px) {
  .tr-page:not(.tr-page--home) {
    padding: 34px;
  }
}

.tr-page:not(.tr-page--home) a:not(.btn):not(.tr-nut) {
  color: #1746B8;
  font-weight: 600;
}

.tr-page img {
  max-width: 100%;
}

.tr-page h1,
.tr-page h2,
.tr-page h3,
.tr-page h4,
.tr-page h5,
.tr-page .h3,
.tr-page .h4 {
  color: var(--muc);
  letter-spacing: 0;
  text-shadow: none !important;
}

.tr-page:not(.tr-page--home) h1,
.tr-page .h3,
.tr-page .h4 {
  font-family: var(--chu);
  font-weight: 800 !important;
  letter-spacing: -.02em;
  text-align: center;
}

.tr-page:not(.tr-page--home) h1,
.tr-page .h3 {
  font-size: clamp(25px, 4.4vw, 32px);
  line-height: 1.18;
}

.tr-page .h4 {
  font-size: 21px;
}

.tr-page div.text-white,
.tr-page h1.text-white,
.tr-page h2.text-white,
.tr-page h3.text-white,
.tr-page h4.text-white,
.tr-page h5.text-white {
  color: var(--muc) !important;
}

.title_index_info {
  margin-top: 16px;
  border-bottom: 2px solid var(--ke);
  font-size: 17px;
  font-weight: 800;
}

.text_info_index {
  padding: 10px 0;
  line-height: 1.7;
}

/* Trang cu: bo nen vang gan truc tiep trong the */
.tr-page [style*="254, 217, 0"],
.tr-page [style*="#ffe967"],
.tr-page [style*="#fff6c4"],
.tr-page [style*="#FFF6C4"],
.tr-page .ibox-content {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.tr-page .ibox-content {
  padding: 4px 0 !important;
}

.tr-page [style*="color:white"]:not(.btn):not(button):not([style*="background"]),
.tr-page [style*="color: white"]:not(.btn):not(button):not([style*="background"]) {
  color: var(--muc-phu) !important;
  text-shadow: none !important;
}

/* Bang */
.tr-page .table {
  --bs-table-bg: transparent;
  --bs-table-hover-bg: rgba(255, 210, 63, .25);
  margin-bottom: 0;
  color: var(--muc);
}

.table-custom,
.table-custom tr,
.table-custom td,
.table-custom th {
  border: none !important;
}

.table-custom th,
.table-custom td:first-child {
  width: 110px;
}

.tr-page .table thead th {
  border-bottom: 2px solid var(--muc) !important;
  color: var(--muc);
  font-size: 14px;
  font-weight: 800;
}

.tr-page .table tbody td {
  border-bottom: 1px solid var(--ke) !important;
  font-variant-numeric: tabular-nums;
}

.tab-content .table-custom tbody tr:nth-child(-n+3) td:first-child {
  color: var(--do);
  font-size: 19px;
  font-weight: 800;
}

.tab-content .table-custom tbody tr:first-child td {
  --bs-table-accent-bg: var(--vang);
  background: var(--vang) !important;
  color: var(--muc);
  font-weight: 800;
}

.tr-page table[style*="border-collapse"] {
  font-size: 13.5px;
}

.tr-page th[style*="#b8f9f1"] {
  border: 0 !important;
  background: var(--muc) !important;
  color: #fff;
  text-shadow: none !important;
}

.tr-page td[style*="1px solid black"] {
  border: 0 !important;
  border-bottom: 1px solid var(--ke) !important;
  background-color: transparent !important;
}

/* O nhap */
.tr-page .form-control,
.tr-page .form-select {
  min-height: 52px;
  border: 1.5px solid rgba(18, 16, 58, .4) !important;
  border-radius: 16px !important;
  background-color: rgba(255, 255, 255, .92);
  color: var(--muc);
  font-size: 16px;
  font-weight: 500 !important;
  text-align: center;
}

.tr-page .form-control::placeholder {
  color: var(--muc-phu);
  font-weight: 400;
}

.tr-page .form-control:focus,
.tr-page .form-select:focus {
  border-color: var(--cam-duoi) !important;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 142, 28, .4);
}

.tr-page form.col-lg-5 {
  width: 100%;
  max-width: 440px;
  margin-inline: auto !important;
  padding: 8px 0 !important;
}

.tr-page #captcha_img,
.tr-page img[src*="Captcha"] {
  height: 52px;
  width: auto;
  border: 1.5px solid rgba(18, 16, 58, .4);
  border-radius: 16px !important;
}

/* Nut trong noi dung: cung chat pha le voi nut trang chu */
.tr-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 50px;
  border: 0 !important;
  border-radius: 999px !important;
  font-weight: 700;
  text-shadow: none !important;
  transition: transform .26s cubic-bezier(.3, 1.7, .5, 1);
}

.tr-page .btn-action,
.tr-page .btn-dark,
.tr-page button.btn[type="submit"],
.tr-page input.btn[type="submit"],
.tr-page button[style*="#FFC531"] {
  background: linear-gradient(180deg, var(--cam-tren), var(--cam-duoi)) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5), inset 0 -2px 2px rgba(110, 28, 0, .5), 0 2px 0 rgba(90, 24, 0, .7) !important;
  color: #fff !important;
  font-family: var(--chu);
  font-size: 18px;
  font-weight: 800 !important;
  text-shadow: 0 1px 0 rgba(120, 36, 0, .7) !important;
}

.tr-page .btn-action:hover,
.tr-page .btn-action:focus,
.tr-page .btn-dark:hover,
.tr-page .btn-dark:focus,
.tr-page button.btn[type="submit"]:hover,
.tr-page button.btn[type="submit"]:focus,
.tr-page input.btn[type="submit"]:hover {
  color: #fff !important;
  transform: scale(1.015);
}

.tr-page .btn-action:active,
.tr-page .btn-dark:active,
.tr-page button.btn[type="submit"]:active {
  transform: scale(1.02, .94);
}

.tr-page button.btn[type="submit"] {
  height: auto !important;
  min-height: 56px;
  margin-top: 14px;
}

/* Tab bang xep hang: cung ranh kinh voi tab hanh tinh */
.tr-page .tr-tabs-bxh .btn {
  min-height: 48px;
  padding: 4px;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--muc) !important;
  font-family: var(--chu);
  font-size: clamp(14px, 3.4vw, 16px);
  font-weight: 700;
  line-height: 1.1;
}

.tr-page .tr-tabs-bxh .btn:hover,
.tr-page .tr-tabs-bxh .btn:focus {
  background: rgba(255, 255, 255, .55) !important;
}

.tr-page .tr-tabs-bxh .btn[aria-pressed="true"] {
  background: linear-gradient(180deg, var(--cam-tren), var(--cam-duoi)) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5), inset 0 -2px 2px rgba(110, 28, 0, .5) !important;
  color: #fff !important;
  text-shadow: 0 1px 0 rgba(120, 36, 0, .7) !important;
}

/* ---------- Muc gap mo ---------- */
.cc-gif {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.cc-gif figure {
  flex: 0 1 150px;
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.cc-gif img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 4px;
  border-radius: 12px;
  image-rendering: pixelated;
}

.cc-intro {
  max-width: 60ch;
  margin: 4px auto 16px;
  color: var(--muc-phu);
  font-size: 15px;
  text-align: center;
}

.cc-muc {
  max-width: 820px;
  margin: 0 auto 10px;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, .62);
  box-shadow: inset 0 0 0 1px rgba(18, 16, 58, .16);
}

.cc-muc > summary {
  position: relative;
  display: block;
  padding: 15px 44px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  list-style: none;
  text-align: center;
  cursor: pointer;
}

.cc-muc > summary::-webkit-details-marker {
  display: none;
}

.cc-muc > summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 10px;
  height: 10px;
  margin-top: -7px;
  border-right: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s cubic-bezier(.3, 1.7, .5, 1);
}

.cc-muc > summary:hover {
  background: rgba(255, 255, 255, .7);
}

.cc-muc[open] > summary {
  background: var(--muc);
  color: #fff;
}

.cc-muc[open] > summary::after {
  margin-top: -2px;
  transform: rotate(-135deg);
}

.cc-muc > :not(summary) {
  margin-right: 16px;
  margin-left: 16px;
}

.cc-muc > ul,
.cc-muc > p {
  margin-top: 14px;
  margin-bottom: 14px;
}

.cc-muc ul {
  padding-left: 20px;
}

.cc-muc li {
  margin-bottom: 6px;
}

.tr-page .cc-muc h2 {
  margin-top: 16px;
  margin-bottom: 6px;
  font-size: 16px;
  font-weight: 800;
}

.cc-muc .table-responsive {
  margin-top: 12px;
  margin-bottom: 14px;
}

.tr-page .cc-bang {
  font-size: 14px;
  line-height: 1.5;
}

.tr-page .cc-bang thead th {
  background: var(--muc);
  color: #fff;
  white-space: nowrap;
}

.tr-page .cc-bang td {
  vertical-align: top;
}

.tr-page .cc-bang td:first-child {
  font-weight: 700;
}

.tr-page .cc-bang td:not(:first-child) {
  min-width: 104px;
}

.tr-dk {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  margin-bottom: 16px;
  text-align: center;
}

.tr-dk > div {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .85);
}

.tr-dk strong {
  display: block;
  margin-bottom: 2px;
  font-weight: 800;
}

@media (min-width: 720px) {
  .tr-dk {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- Bao tri ---------- */
.baotri-khung {
  padding: 12px 4px;
  text-align: center;
}

.baotri-dau h1 {
  margin: 12px 0 0;
}

.baotri-nhan {
  display: inline-block;
  padding: 2px 14px;
  border-radius: 999px;
  background: var(--do);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.baotri-than {
  padding: 12px 4px 4px;
  text-align: center;
}

.baotri-than p {
  max-width: 34em;
  margin: 0 auto 18px;
  font-size: 17px;
}

.baotri-nut {
  padding: 8px 28px;
}

.tr-page a.baotri-ve,
.baotri-ve {
  display: block;
  margin-top: 18px;
  font-size: 15px;
}

/* ---------- Cua so tai game ---------- */
#myModal {
  z-index: 1060;
  background: rgba(10, 7, 40, .6);
}

#myModal .modal-content {
  position: relative;
  width: calc(100% - 24px);
  max-width: 440px;
  margin: max(24px, 8vh) auto;
  padding: 20px;
  border: 0;
  border-radius: var(--bo-lon);
  background: linear-gradient(160deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .1) 40%), rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .95), 0 24px 60px rgba(0, 0, 0, .45);
  color: var(--muc);
  text-align: center;
}

#myModal .close {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(18, 16, 58, .1);
  color: var(--muc);
  font-size: 26px;
  line-height: 1;
  opacity: 1;
}

#myModal .close:hover,
#myModal .close:focus {
  background: rgba(18, 16, 58, .2);
}

#myModal .tr-modal__logo {
  display: block;
  width: 180px;
  height: auto;
  margin: 0 auto 8px;
  border-radius: 0;
}

.tr-modal__tua {
  margin: 8px 0;
  color: var(--muc);
  font-family: var(--chu);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1.25;
}

#myModal .tr-nut {
  width: 100%;
}

#myModal .tr-nut--phu {
  box-shadow: inset 0 0 0 1.5px rgba(18, 16, 58, .3), 0 2px 0 rgba(14, 11, 51, .4);
}

.tr-dl {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--ke);
}

.tr-dl strong {
  font-size: 16px;
  font-weight: 700;
}

.tr-dl strong .fa {
  margin-right: 4px;
}

/* ---------- Chan trang ---------- */
.tr-footer {
  width: fit-content;
  max-width: calc(100% - 24px);
  margin: 16px auto;
  padding: 12px 24px;
  border-radius: 24px;
  font-size: 13.5px;
  text-align: center;
}

.tr-footer strong {
  display: block;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}

/* Trang Doi Thoi Vang */
.tr-page .row1 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 0;
}

.tr-page .row1 > .announcement {
  flex: 1 1 142px;
  width: auto;
  max-width: 190px;
  margin: 0;
  padding: 6px;
  border: 1.5px solid rgba(18, 16, 58, .22);
  border-radius: 18px;
  background-color: rgba(255, 255, 255, .85);
  font-size: 14px;
  line-height: 1.35;
  transition: transform .26s cubic-bezier(.3, 1.7, .5, 1);
}

.tr-page .row1 > .announcement:hover {
  border-color: var(--cam-duoi);
  transform: translateY(-2px);
}

.tr-page .row1 .post-item {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tr-page .row1 a {
  font-weight: 700;
}

.tr-page .announcement:not(button) {
  border: 0;
  border-radius: 18px;
}

.tr-page:not(.tr-page--home) .tr-nut--phu {
  box-shadow: inset 0 0 0 1.5px rgba(18, 16, 58, .3), 0 2px 0 rgba(14, 11, 51, .4);
}

.tr-page button[style*="#FFC531"] {
  min-width: min(100%, 280px);
  min-height: 56px;
  border: 0 !important;
  border-radius: 999px !important;
}

/* Anh nut nap tien cu */
.image-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-img {
  max-width: 160px;
  margin: 5px;
}

@media (max-width: 576px) {
  .btn-img {
    max-width: 100px;
  }
}

/* Hop thoai SweetAlert theo cung chat lieu */
.swal2-popup {
  border-radius: var(--bo-lon) !important;
  font-family: var(--chu) !important;
}

.swal2-title {
  color: var(--muc) !important;
  font-weight: 800 !important;
}

.swal2-styled.swal2-confirm {
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, var(--cam-tren), var(--cam-duoi)) !important;
  color: #fff !important;
  font-weight: 800 !important;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
