.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;
}
