.offcanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
}

.offcanvas {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: var(--w-backdrop-color);
  opacity: 1;
  transition: opacity 0.36s ease;
}

.offcanvas-content {
  background-color: var(--w-offcanvas);
  opacity: 1;
  transition: all 0.36s ease;
  overflow: hidden;
  height: 100vh;
  filter: drop-shadow(0em 0em 0.5em rgba(0, 0, 0, 0.5));
}

.offcanvas-content > .icon {
  padding: 1.5em;
  background-color: var(--w-primary);
  overflow: hidden;
  position: relative;
}

.offcanvas-content > .icon > img {
  z-index: 2;
  position: relative;
}

.offcanvas-content > .icon::after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--w-primary) url("../images/bg-sm.jpg") no-repeat top center;
  background-size: cover;
  opacity: 0.3;
  z-index: 0;
}

.offcanvas-content .link a {
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: dotted #ccc 1px;
}

/* show */
.offcanvas:not(.show) {
  opacity: 0;
  z-index: -1;
}

.offcanvas:not(.show) .offcanvas-content {
  opacity: 0;
  margin-left: -50%;
}

/* / */
.btn-login-vgp {
  background-color: var(--w-primary);
  border-radius: 100em;
}

.btn-login-vgp span.content {
  width: 0;
  margin: 0;
  transition: width 0.36s ease;
  overflow: hidden;
  white-space: nowrap;
}

.btn-login-vgp:hover span.content {
  width: fit-content;
  margin: 0 0.5em;
}

.btn-close-modal {
  background: transparent url("../images/btn-close-modal.webp") no-repeat center center;
  background-size: 100% 100%;
  position: absolute;
  top: 0%;
  left: 50%;
  transform: translateY(-50%) translateX(-50%);
  transition: all 0.36s ease;
  width: 8em;
  aspect-ratio: 184/50;
  border: none;
  border-radius: 1em;
  transition: all 0.36s ease;
}

.btn-close-modal:hover {
  filter: brightness(1.2);
}

.wmodal-dialog {
  background: transparent url("../images/bg-popup.png") no-repeat center center;
  background-size: 100% 100%;
  /* animation */
  transform: scale(1);
  transition: transform 0.5s ease;
  width: 80%;
  padding: 0;
  color: #414141;
}

.wmodal-dialog > .content {
  padding-bottom: 3em;
}

.wmodal-dialog .title {
  text-align: center;
  text-transform: uppercase;
  height: 6em;
  line-height: 6em;
}

.wmodal-dialog .content-scroll {
  overflow: auto;
  max-height: 42em;
  padding: 0 3em 4em 3em;
}

.btn-close-modal:hover {
  filter: brightness(1.5);
}

/*  */
.wmodal {
  position: fixed;
  width: 100%;
  height: 100%;
  background-color: var(--w-backdrop-color);
  top: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.36s ease;
  overflow: hidden;
  color: #414141;
  font-size: 1em;
  backdrop-filter: blur(2px);
}

.wmodal-content {
  background-color: rgba(255, 255, 255, 0.95);
  border: solid 1px var(--w-primary);
  filter: drop-shadow(0 0 1em rgba(0, 0, 0, 0.15));
  border-radius: 2em;
  transform: scale(1);
  transition: transform 0.5s ease;
  width: 90%;
  padding: 2em;
  padding-top: 3em;
}

.wmodal-content .title {
  text-align: center;
  padding-bottom: 1em;
  text-transform: uppercase;
  margin-bottom: 0.5em;
  letter-spacing: 0.5em;
  border-bottom: 1px var(--w-primary) dotted;
}

.wmodal-content.youtube {
  padding: 0em;
  background: transparent;
  border: none;
}

.wmodal:not(.show) {
  opacity: 0;
  z-index: -1;
}

.wmodal:not(.show) .wmodal-content,
.wmodal:not(.show) .wmodal-dialog {
  transform: scale(0.8);
}

.wmodal > .wmodal-content > .wrap {
  background-color: var(--w-popup-color);
  border-radius: 1em;
  overflow: hidden;
}

.wmodal-dialog .title span,
.wmodal-content .title span {
  font-size: 1.5em;
  color: var(--w-primary);
}

.content-scroll {
  max-height: 69vh;
  overflow: auto;
}

/* lg */
@media (min-width: 1024px) {
  .btn-close-modal {
    width: 8em;
  }
  .wmodal-content {
    max-width: 30em;
    padding-bottom: 2em;
  }
  .wmodal-content.youtube {
    max-width: 50em;
  }
  .wmodal-dialog {
    max-width: 32em;
    padding-bottom: 2em;
  }
  .wmodal-dialog .title {
    height: 6em;
    line-height: 6em;
  }
  .wmodal-content .title span,
.wmodal-dialog .title span {
    font-size: 1.75em;
  }
  .wmodal-dialog .content-scroll {
    font-size: 1em;
    height: 33em;
    padding: 0 3em 4em 3em;
  }
  .wmodal-content .h-fit,
.wmodal-dialog .content-scroll .h-fit {
    font-size: 1em;
  }
}

:root {
  --w-primary: #b3200f;
  --w-secondary: #7a1408;
  --w-offcanvas: #2a0d07;
  --w-backdrop-color: rgba(30, 30, 30, 0.8);
  --w-popup-color: #fff;
  --w-border: rgba(255, 255, 255, 0.36);
}

.overflow-hidden {
  overflow: hidden;
}

.offcanvas {
  position: fixed;
}

.offcanvas-content {
  width: 15em;
  font-size: 16px;
}

.offcanvas-content > .icon {
  width: 100%;
}

.offcanvas-content > .icon img {
  display: block;
  width: 100%;
}

.offcanvas-content .link {
  display: grid;
  grid-auto-flow: row;
}

.offcanvas-content .link a {
  height: 3.2em;
  color: #f5d27a;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom-color: rgba(245, 210, 122, 0.3);
}

.menu-toggle {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 44px;
  height: 44px;
  padding: 8px;
  border: 0;
  border-radius: 8px;
  background: rgba(40, 10, 5, 0.8);
  cursor: pointer;
}

.menu-toggle svg {
  display: block;
  width: 100%;
  fill: #f5d27a;
}

.wmodal-content.youtube {
  width: 90vw;
  max-width: 1000px;
}

.wmodal-content.youtube button[data-dismiss] {
  float: right;
  display: flex;
  align-items: center;
  gap: .3em;
  padding: .5em;
  border: 0;
  background: none;
  color: #fff;
  font: 16px sans-serif;
  cursor: pointer;
}

.wmodal-content.youtube button[data-dismiss] svg {
  width: .8em;
  fill: #fff;
}

.wmodal-content.youtube .ratio {
  aspect-ratio: 16 / 9;
  clear: both;
}

.wmodal-content.youtube iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.block-float {
  position: fixed;
  transition: transform 0.36s ease, height 0.36s ease;
  z-index: 99;
  display: none;
  font-size: 16px;
  width: 11em;
  aspect-ratio: 300 / 788;
  padding: 0 1em;
  margin: .5em;
  overflow: hidden;
  box-sizing: border-box;
}

.block-float img {
  display: block;
  width: 100%;
}

.block-float .icon {
  margin: 1em auto 0;
  border-radius: 1em;
  overflow: hidden;
}

.block-float .store {
  position: relative;
  margin-top: 1em;
}

.block-float .store-links {
  position: absolute;
  inset: 0;
  display: grid;
  grid-auto-flow: row;
}

.block-float .store-links a {
  text-indent: -9999px;
  overflow: hidden;
}

.block-float .link {
  display: grid;
  grid-auto-flow: row;
  aspect-ratio: 150 / 184;
  margin-top: .75em;
  text-align: center;
}

.block-float .link a {
  display: flex;
  justify-content: center;
  align-items: center;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  font: 600 .9em sans-serif;
}

.block-float .link a:hover {
  color: #f5d27a;
}

.block-float .btn-minimize {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 9%;
  display: block;
  width: 100%;
  border: 0;
  background: none;
  cursor: pointer;
}

.block-float .block-mini {
  position: relative;
  display: none;
  margin: 0;
  width: 11em;
  aspect-ratio: 300 / 156;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.block-float .block-mini .mini-icon {
  position: absolute;
  width: 36%;
  top: 6%;
  left: 4%;
  border-radius: .6em;
  overflow: hidden;
}

@media (min-width: 768px) {
  .block-float {
    display: block;
  }
}

.block-float:not(.minimize) {
  background: transparent url("../images/float/float-bar.webp") no-repeat center center;
  background-size: 100% 100%;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

.block-float:not(.minimize) .block-mini {
  display: none;
}

.block-float.minimize {
  padding: 0;
  bottom: 0;
  right: 0;
  transform: translateY(0);
  aspect-ratio: auto;
  width: auto;
}

.block-float.minimize > * {
  display: none;
}

.block-float.minimize .block-mini {
  display: block;
}

.modal-gift-content {
  background-color: #ccc;
  gap: 1px;
  overflow: hidden;
}

.modal-gift-content > li {
  background-color: #fff;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 1px;
}

.modal-gift-content > li > div {
  padding: 0.5em;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-gift-content > li .icon {
  display: block;
  background: url("https://api.iconify.design/material-symbols/check-circle-rounded.svg?color=%230c6") no-repeat center center/contain;
  aspect-ratio: 1/1;
}

#modal-lichsu .wmodal-content {
  background: transparent url("../images/modal/bg-modal.webp") no-repeat center center;
  background-size: 100% 100%;
  background-color: transparent;
  border: none;
  border-radius: 0;
  filter: none;
  width: 94%;
  padding: 1.8em 2.2em 2.4em 2.2em;
  aspect-ratio: 959/889;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
  #modal-lichsu .wmodal-content {
    max-width: 40em;
    padding: 2.2em 3.5em 3em 3.5em;
  }
}

#modal-lichsu .wmodal-content > .content {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

#modal-lichsu .title {
  border-bottom: none;
  letter-spacing: 0.1em;
  padding-bottom: 0.4em;
  margin-bottom: 0.25em;
}

#modal-lichsu .title span {
  font-family: "Lexend Deca", sans-serif;
  font-weight: 700;
  color: #7a1214;
  font-size: 1.8em;
}

@media (min-width: 1024px) {
  #modal-lichsu .title span {
    font-size: 2em;
  }
}

#modal-lichsu .content-scroll {
  flex: 1;
  min-height: 0;
  max-height: none;
}

#modal-lichsu .content-scroll[data-simplebar] {
  overflow: visible;
}

.table-lichsu {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  color: #414141;
  font-size: 0.75em;
}

@media (min-width: 1024px) {
  .table-lichsu {
    font-size: 0.9em;
  }
}

.table-lichsu thead {
  background: transparent url("../images/modal/bg-title.webp") no-repeat center center;
  background-size: 100% 100%;
}

.table-lichsu thead th {
  color: #fff;
  font-weight: normal;
  text-align: left;
  text-transform: uppercase;
  font-size: 0.8em;
  letter-spacing: 0.05em;
  padding: 0.75em 0;
}

.table-lichsu th.stt,
.table-lichsu td.stt {
  width: 11%;
}

.table-lichsu th.code,
.table-lichsu td.code {
  width: 23%;
}

.table-lichsu th.gift,
.table-lichsu td.gift {
  width: 25%;
}

.table-lichsu th.time,
.table-lichsu td.time {
  width: 23%;
}

.table-lichsu th.action,
.table-lichsu td.action {
  width: 18%;
}

.table-lichsu thead th.stt {
  padding-left: 1em;
}

.table-lichsu tbody td {
  border-bottom: 1px solid #e8e8ee;
  padding: 0.35em 0;
  vertical-align: middle;
}

.table-lichsu tbody td.stt {
  text-align: center;
}

.table-lichsu tbody td.stt span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 2.4em;
  aspect-ratio: 46/53;
  background: transparent url("../images/modal/icon-rank04.webp") no-repeat center center;
  background-size: 100% 100%;
  color: #0b2575;
  font-weight: bold;
  font-size: 0.9em;
  line-height: 1;
}

.table-lichsu tbody td.code {
  font-weight: 500;
  word-break: break-all;
}

.table-lichsu tbody td.gift {
  padding-right: 0.5em;
  line-height: 1.25;
}

.table-lichsu tbody td.time {
  font-size: 0.8em;
  color: #6b6b78;
  white-space: nowrap;
  padding-right: 0.5em;
}

.table-lichsu tbody td.action {
  text-align: right;
}

.table-lichsu tbody tr:nth-child(1) td.stt span {
  background-image: url("../images/modal/icon-rank01.webp");
  color: #fff;
}

.table-lichsu tbody tr:nth-child(1) td.code {
  color: #e60000;
  font-weight: bold;
}

.table-lichsu tbody tr:nth-child(2) td.stt span {
  background-image: url("../images/modal/icon-rank02.webp");
  color: #fff;
}

.table-lichsu tbody tr:nth-child(2) td.code {
  color: #e60000;
  font-weight: bold;
}

.table-lichsu tbody tr:nth-child(3) td.stt span {
  background-image: url("../images/modal/icon-rank03.webp");
  color: #fff;
}

.table-lichsu tbody tr:nth-child(3) td.code {
  color: #e60000;
  font-weight: bold;
}

.table-lichsu .btn-copy {
  width: 100%;
  max-width: 7em;
  margin-left: auto;
  transition: all 0.36s ease;
}

.table-lichsu .btn-copy:hover {
  filter: brightness(1.15);
  transform: scale(1.03);
}

.table-lichsu .btn-copy.copied {
  filter: brightness(1.35) saturate(1.2);
}

#modal-nhancode .wmodal-content {
  background: transparent url("../images/modal/bg-chucmung.webp") no-repeat center center;
  background-size: 100% 100%;
  background-color: transparent;
  border: none;
  border-radius: 0;
  filter: none;
  width: 94%;
  aspect-ratio: 1032/785;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  padding: 6.7em 3em 5.2em 3em;
  text-align: center;
  font-size: 0.8em;
}

@media (min-width: 1024px) {
  #modal-nhancode .wmodal-content {
    max-width: 34em;
    font-size: 1em;
  }
}

#modal-nhancode .content {
  flex: 1;
  min-height: 0;
}

#modal-nhancode .desc {
  font-family: "Lexend Deca", sans-serif;
  font-weight: 500;
  font-size: 1.1em;
  line-height: 1.35;
  color: #1b3f8f;
}

#modal-nhancode .code {
  font-family: "Lexend Deca", sans-serif;
  font-weight: 700;
  font-size: 2em;
  line-height: 1.4;
  letter-spacing: 0.05em;
  color: #123072;
  word-break: break-all;
  margin-top: 0.35em;
}

#modal-nhancode .btn-copy {
  width: 31%;
  margin: 0 auto;
  transition: all 0.36s ease;
}

#modal-nhancode .btn-copy:hover {
  filter: brightness(1.15);
  transform: scale(1.03);
}

#modal-nhancode .btn-copy.copied {
  filter: brightness(1.35) saturate(1.2);
}

.wmodal {
  font-family: 'Lexend', system-ui, sans-serif;
  font-size: clamp(13px, 1.4vw, 16px);
}

.wmodal-content {
  position: relative;
  max-width: 30em;
}

.w-form {
  display: grid;
  gap: .6em;
  margin-top: 1em;
}

.w-form input {
  padding: .7em 1em;
  border: 1px solid #c9b48a;
  border-radius: .4em;
  font: inherit;
  background: #fff;
  outline: 0;
}

.w-form input:focus {
  border-color: var(--w-primary);
  box-shadow: 0 0 0 3px rgba(179, 32, 15, 0.15);
}

.w-submit {
  padding: .75em;
  border: 0;
  border-radius: .4em;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(180deg, var(--w-primary), var(--w-secondary));
  transition: filter .2s;
}

.w-submit:hover {
  filter: brightness(1.15);
}

.w-text p {
  margin: 0 0 .6em;
  line-height: 1.6;
}

.modal-gift-content {
  margin: 1em 0 0;
  padding: 0;
  list-style: none;
  border-radius: 1em;
}

.w-items {
  display: flex !important;
  flex-wrap: wrap;
  gap: .5em;
}

.witem {
  position: relative;
  width: 3.5em;
}

.witem img {
  display: block;
  width: 100%;
}

.witem .quantity {
  position: absolute;
  right: 0;
  bottom: 0;
  font-size: .75em;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 2px #000;
}

.w-icon {
  width: 2em;
}

.btn-nhancode, .btn-copy {
  display: block;
  margin: 1em auto 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transition: filter .2s;
}

.btn-nhancode img, .btn-copy img {
  display: block;
  width: 100%;
}

.btn-nhancode {
  width: 10em;
}

.btn-nhancode:hover, .btn-copy:hover {
  filter: brightness(1.15);
}

.btn-copy.copied {
  filter: hue-rotate(90deg);
}

.cmp-modal {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transition: filter .2s;
}

.cmp-modal > .l {
  position: absolute;
}

.cmp-modal:hover {
  filter: brightness(1.12);
}

.btn-login-vgp {
  background-color: var(--w-primary);
  border-radius: 100em;
}

.btn-login-vgp span.content {
  width: 0;
  margin: 0;
  transition: width 0.36s ease;
  overflow: hidden;
  white-space: nowrap;
}

.btn-login-vgp:hover span.content {
  width: fit-content;
  margin: 0 0.5em;
}

#vgp-login-block {
  font-family: 'Lexend', system-ui, sans-serif;
}

#vgp-login-block.absolute {
  position: absolute;
}

#vgp-login-block.top-0 {
  top: 0;
}

#vgp-login-block.right-0 {
  right: 0;
}

#vgp-login-block.m-\[1em\] {
  margin: 1em;
}

#vgp-login-block.p-\[\.75em\] {
  padding: .75em;
}

#vgp-login-block.z-\[9\] {
  z-index: 9;
}

#vgp-login-block .flex, #vgp-login-block.flex {
  display: flex;
}

#vgp-login-block .w-image-button {
  max-width: 100%;
  display: block;
  border: none;
  padding: 0 !important;
  cursor: pointer;
  background: none;
  font: inherit;
}

#vgp-login-block .text-white {
  color: #fff;
}

#vgp-login-block .cursor-pointer {
  cursor: pointer;
}

#vgp-login-block .justify-end {
  justify-content: flex-end;
}

#vgp-login-block .items-center {
  align-items: center;
}

#vgp-login-block .text-\[1em\] {
  font-size: 1em;
}

#vgp-login-block .w-\[2em\] {
  width: 2em;
}

#vgp-login-block .w-full {
  width: 100%;
}

#vgp-login-block svg {
  display: block;
}

.w-note {
  text-align: center;
  margin-top: 1em;
}

.w-form select {
  padding: .7em 1em;
  border: 1px solid #c9b48a;
  border-radius: .4em;
  font: inherit;
  background: #fff;
}

.w-submit-vgp {
  background: linear-gradient(180deg, #1b4fd8, #0b2575);
}

.w-confirm {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5em;
  margin-top: 2em;
}

.w-btn-gray {
  padding: .75em;
  border: 0;
  border-radius: .4em;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: #374151;
}
