:root {
  --gradient-color: rgba(255, 255, 255, 0.3) 0%, rgba(164, 170, 213, 0.3) 100%;
  font-family: "Huninn", "Microsoft JhengHei", sans-serif;
  font-weight: 400;
  --col-text: #2b324c;
  --col-primary: #001361;
}

.bg-layer {
  background: url(/resources/bg.png) center/cover;
}
img {
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
}
[hidden] {
  display: none !important;
}
/* #region - PAGE CONTENT - */
.page-content {
  flex: 1;
  width: 87%;
  margin: 5% 0;
  border-radius: 10000cqw;
  border: 0.26cqw var(--col-primary) solid;
  padding-top: 49.2cqw;
  gap: 6cqw;
  &::before, &::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}
.page-content::before {
  top: 22.5cqw;
  width: 64.1cqw;
  aspect-ratio: 750/148;
  background: url(/resources/title.webp) center/100% 100%;
}
.page-content::after {
  bottom: 11cqw;
  width: 32.05cqw;
  aspect-ratio: 375/102;
  background: url(/resources/logo-v2.webp) center/100% 100%;
}
.page-content__title {
  height: 5.73cqw;
}
.page-content__main {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 53cqw;
}
/* #endregion */

/* #region - BUTTON - */
.btn {
  background: transparent;
  display: grid;
  place-items: center;
  position: relative;
  width: 24.6cqw;
  aspect-ratio: 96/24;
  &::before, &::after {
    content: "";
    position: absolute;
    border-radius: 1000cqw;
    inset: 0;
  }
  &::before {
    background: rgba(79, 73, 109, 0.3);
    mix-blend-mode: overlay;
  }
  &::after {
    border: #ffff 0.26cqw solid;
  }
}
/* #endregion */

/* #region - PANEL - */
.panel {
  width: 45.9cqw;
  aspect-ratio: 1;
  border-radius: 9cqw;
  display: grid;
  place-items: center;
}

/* #endregion */

/* #region - SPLASH - */
.sp__bar-bg {
  background: rgba(89, 81, 102, 0.3);
  width: 80%;
  border-radius: 100cqw;
  height: 1cqw;
}
.sp__bar-fill {
  background: var(--col-primary);
  border-radius: 100cqw;
  height: 100%;
}
.sp__pct {
  font: inherit;
  font-weight: bold;
  font-size: 3cqw;
  letter-spacing: 0.5cqw;
  color: var(--col-primary);
}
.sp__logo {
  width: 45cqw;
  margin-bottom: 1cqw;
}
/* #endregion */

/* #region - P00_POINT_CARD - */

.point-card__stamps {
  grid-template-columns: repeat(2, 1fr);
  gap: 7.3cqw;
}
.stamp-container {
  display: grid;
  width: 18cqw;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5cqw;
  place-items: center;
}
.stamp {
  width: 18cqw;
  aspect-ratio: 1;
  display: block;
  border: none;
  border-radius: none;
  position: relative;
  .default, .active {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
  }
  .default {
    opacity: 1;
  }
  .active {
    opacity: 0;
  }
}

.stamp.is-collected {
  border: none;
  border-radius: none;
  background: transparent;
  .default {
    opacity: 0;
  }
  .active {
    opacity: 1;
  }
}

.stamp.is-collecting {
  border: none;
  border-radius: none;
  background: transparent;
  animation: jello-horizontal 1s both;
  transition: none;
  .default {
    opacity: 0;
    transition: opacity 0.2s ease-in;
  }
  .active {
    opacity: 1;
    transition: opacity 0.2s ease-out;
  }
}

.stamp__label {
  height: 3.42cqw;
}

.point-card__content {
  margin-top: 10.4cqw;
  width: 54.19cqw;
}
/* #endregion */

/* #region - P01_REDEMPTION - */
.redemption__state {
  width: 100%;
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: center;
  gap: 6cqw;
}
.redemption .panel {
  background: linear-gradient(90deg, var(--gradient-color));
}
.unredeemed__content {
  width: 31.11cqw;
}
.redeemed__content {
  margin-top: 11.8cqw;
  width: 56.32cqw;
}
/* #endregion */

/* #region - P02_SCANNER - */
.scanner__camera {
  position: relative;
}
.scanner__corner {
  position: absolute;
  z-index: 1;
  width: 9.83cqw;
  height: 9.83cqw;
  border: 0 solid #001361;
  pointer-events: none;
}
.scanner__corner--top-left {
  top: 2cqw;
  left: 2cqw;
  border-top-width: 0.17cqw;
  border-left-width: 0.17cqw;
  border-top-left-radius: 8.55cqw;
}
.scanner__corner--top-right {
  top: 2cqw;
  right: 2cqw;
  border-top-width: 0.17cqw;
  border-right-width: 0.17cqw;
  border-top-right-radius: 8.55cqw;
}
.scanner__corner--bottom-left {
  bottom: 2cqw;
  left: 2cqw;
  border-bottom-width: 0.17cqw;
  border-left-width: 0.17cqw;
  border-bottom-left-radius: 8.55cqw;
}
.scanner__corner--bottom-right {
  bottom: 2cqw;
  right: 2cqw;
  border-bottom-width: 0.17cqw;
  border-right-width: 0.17cqw;
  border-bottom-right-radius: 8.55cqw;
}
.scanner .panel {
  background: linear-gradient(-24deg, var(--gradient-color));
}
.scanner__status {
  padding-top: 5cqw;
  font: inherit;
  font-size: 3cqw;
  color: var(--col-text);
}
/* #endregion */