html,
body,
#main {
  background: #c994f8 url("/img/Event/202609-HiLife/background.jpg?v=01") 0 0 repeat;
  color: #2e497c;
  overflow-x: hidden;
  min-width: auto !important;
}

:root {
  --outline-color: #fff;
  --outline-width: 0.08em;
}

#header {
  background: #6a36f2; /* box-shadow:inset 0 -.05em .025em rgba(#fff,.2), 0 .1em .2em rgba(#000,.5);*/
}
#header .nav-logoLink, #header .store-logo {
  top: -0.15em;
}

#footer {
  background: transparent;
}

#header .nav {
  max-width: 16.66667em;
}

*:focus-visible {
  outline: auto;
  outline-offset: 0.1em;
}

[data-device=mobile] .only-pc,
[data-device=pc] .only-mobile {
  display: none;
}

[data-login=true] .only-logout,
:root:not([data-login=true]) .only-login {
  display: none;
}

.bg-area {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  position: absolute;
  top: 1.8em;
  bottom: 0;
  left: calc(50% - 16em);
  z-index: -5;
  width: 32em;
  margin: 0 auto;
  overflow: hidden;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  background: #c994f8 url("/img/Event/202609-HiLife/background.jpg?v=01") 0 0 repeat;
}
.bg-area img {
  width: 100%;
  display: block;
  -o-object-fit: cover;
     object-fit: cover;
}

#main .btn {
  font: inherit;
  font-size: 1em;
  font-weight: 500;
  line-height: 1.2;
  display: inline-block;
  vertical-align: bottom;
  text-align: center;
  text-decoration: none;
  color: #fff;
  text-shadow: 0 0.05em 0.1em rgba(40, 20, 10, 0.5), 0 0.05em 0.25em rgb(40, 20, 10);
  padding: 0.45em 1em 0.55em;
  margin: 0.25em 0;
  width: -webkit-max-content;
  width: -moz-max-content;
  width: max-content;
  min-width: 4em;
  max-width: 100%;
  background: linear-gradient(120deg, #fdf4d5, #dd9f5c);
  border: none;
  border-radius: 0.25em;
  -webkit-transition: -webkit-filter 0.1s;
  transition: -webkit-filter 0.1s;
  transition: filter 0.1s;
  transition: filter 0.1s, -webkit-filter 0.1s;
  cursor: pointer;
}
#main .btn img {
  display: inline-block;
  height: 1.2em;
  vertical-align: middle;
  margin: 0 0.1em 0.2em;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) or (-webkit-background-clip: text) {
  #main .btn > * {
    color: transparent;
    text-shadow: none;
    background: -webkit-gradient(linear, left top, left bottom, from(#3803be), to(#6d03be));
    background: linear-gradient(#3803be, #6d03be);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-filter: drop-shadow(0 -0.01em 0.03em rgba(40, 20, 10, 0.6)) drop-shadow(0 0.03em 0.03em rgb(255, 255, 255));
            filter: drop-shadow(0 -0.01em 0.03em rgba(40, 20, 10, 0.6)) drop-shadow(0 0.03em 0.03em rgb(255, 255, 255));
  }
}
#main .btn.active, #main .btn:active, #main .btn:hover {
  background-position: bottom;
  border-image-source: url("/img/Event/202609-HiLife/btn-hover.png?v=01");
  -webkit-box-shadow: inset 0 0 0.25em #fff;
          box-shadow: inset 0 0 0.25em #fff;
  -webkit-filter: brightness(1.15) drop-shadow(0 0.05em 0.1em rgba(0, 0, 0, 0.5)) !important;
          filter: brightness(1.15) drop-shadow(0 0.05em 0.1em rgba(0, 0, 0, 0.5)) !important;
}

.btn-link {
  font: inherit;
  color: inherit;
  line-height: inherit;
  border: none;
  background: none;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.btn-pointer::after {
  content: "";
  position: absolute;
  z-index: 5;
  left: calc(100% - 2em);
  top: 40%;
  width: 1.75em;
  height: 1.75em;
  background: url("/img/Event/202609-HiLife/pointer.png?v=01") center/contain no-repeat;
  -webkit-filter: drop-shadow(0.1em 0.2em 0.05em rgba(0, 0, 0, 0.25));
          filter: drop-shadow(0.1em 0.2em 0.05em rgba(0, 0, 0, 0.25));
  -webkit-animation: btnPointer 1.2s infinite ease-in-out;
          animation: btnPointer 1.2s infinite ease-in-out;
  pointer-events: none;
}

@-webkit-keyframes btnPointer {
  0% {
    -webkit-transform: scale(1) translate(0, 0);
            transform: scale(1) translate(0, 0);
    -webkit-filter: drop-shadow(0.1em 0.2em 0.05em rgba(0, 0, 0, 0.25));
            filter: drop-shadow(0.1em 0.2em 0.05em rgba(0, 0, 0, 0.25));
  }
  50% {
    -webkit-transform: rotate(10deg) scale(1.1) translate(0.25em, 0.1em);
            transform: rotate(10deg) scale(1.1) translate(0.25em, 0.1em);
    -webkit-filter: drop-shadow(0.1em 0.3em 0.1em rgba(0, 0, 0, 0.25));
            filter: drop-shadow(0.1em 0.3em 0.1em rgba(0, 0, 0, 0.25));
  }
}

@keyframes btnPointer {
  0% {
    -webkit-transform: scale(1) translate(0, 0);
            transform: scale(1) translate(0, 0);
    -webkit-filter: drop-shadow(0.1em 0.2em 0.05em rgba(0, 0, 0, 0.25));
            filter: drop-shadow(0.1em 0.2em 0.05em rgba(0, 0, 0, 0.25));
  }
  50% {
    -webkit-transform: rotate(10deg) scale(1.1) translate(0.25em, 0.1em);
            transform: rotate(10deg) scale(1.1) translate(0.25em, 0.1em);
    -webkit-filter: drop-shadow(0.1em 0.3em 0.1em rgba(0, 0, 0, 0.25));
            filter: drop-shadow(0.1em 0.3em 0.1em rgba(0, 0, 0, 0.25));
  }
}
.btn-login,
.btn-logout,
.btn-teach,
.btn-redeem-10,
.btn-log {
  font: inherit;
  font-family: "MStif", "Noto Sans TC", Arial, Helvetica, sans-serif;
  font-weight: 900;
  display: inline-block;
  position: relative;
  border: none;
  background: none;
  background-position: top;
  background-size: 100% auto;
  background-repeat: no-repeat;
  color: transparent;
  line-height: 1.2;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  cursor: pointer;
  -webkit-transition: -webkit-filter 0.1s;
  transition: -webkit-filter 0.1s;
  transition: filter 0.1s;
  transition: filter 0.1s, -webkit-filter 0.1s;
}
.btn-login:disabled,
.btn-logout:disabled,
.btn-teach:disabled,
.btn-redeem-10:disabled,
.btn-log:disabled {
  -webkit-filter: brightness(0.8) grayscale(1);
          filter: brightness(0.8) grayscale(1);
  cursor: not-allowed;
}
.btn-login:disabled:hover, .btn-login:disabled:active,
.btn-logout:disabled:hover,
.btn-logout:disabled:active,
.btn-teach:disabled:hover,
.btn-teach:disabled:active,
.btn-redeem-10:disabled:hover,
.btn-redeem-10:disabled:active,
.btn-log:disabled:hover,
.btn-log:disabled:active {
  background-position: top;
}
.btn-login:hover, .btn-login:active,
.btn-logout:hover,
.btn-logout:active,
.btn-teach:hover,
.btn-teach:active,
.btn-redeem-10:hover,
.btn-redeem-10:active,
.btn-log:hover,
.btn-log:active {
  background-position: bottom;
}

.btn-login {
  width: 6.8em;
  height: 2.07em;
  background-image: url("/img/Event/202609-HiLife/btn-login.png?v=01");
}

.btn-teach {
  width: 6.8em;
  height: 2.08em;
  background-image: url("/img/Event/202609-HiLife/btn-teach.png?v=01");
}

.btn-logout,
.btn-redeem-10,
.btn-log {
  width: 4.7em;
  height: 1.47em;
}

.btn-logout {
  background-image: url("/img/Event/202609-HiLife/btn-logout.png?v=01");
}

.btn-redeem-10 {
  background-image: url("/img/Event/202609-HiLife/btn-redeem-10.png?v=01");
}

.btn-log {
  background-image: url("/img/Event/202609-HiLife/btn-log.png?v=01");
}

/*===================*/
/* MAIN PAGE CONTENT */
.section {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
}

/*==============*/
/* PAGE CONTENT */
#main {
  color: #4b4cf4;
  overflow: hidden;
}
#main img {
  display: inline-block;
  vertical-align: middle;
  width: auto;
  height: auto;
  max-width: 100%;
}
#main .head-title {
  display: block;
  position: relative;
  width: 18.2em;
  top: 0;
  left: 0;
  right: 0;
  margin: auto;
  padding: 1.4em 0 0;
}
#main .content {
  position: relative;
  width: 96%;
  max-width: 960px;
  margin: 0 auto;
}
#main .content p,
#main .content ul,
#main .content ol {
  font-size: 0.52em;
  font-size: clamp(14px, 0.52em, 36px);
  margin: 0.5em 0;
}
#main .content ul,
#main .content ol {
  -webkit-padding-start: 1.5em;
          padding-inline-start: 1.5em;
}
#main .content strong {
  font-weight: 700;
}
#main .content b {
  display: inline-block;
  font-weight: inherit;
}
#main .content a {
  text-underline-offset: 0.18em;
}
#main .content hr {
  font-size: 0.5em;
  font-size: clamp(14px, 0.5em, 30px);
  border: none;
  border-top: 1px solid #888;
  margin: 0.25em 0;
}
#main .border,
#main .border2,
#main .border3,
#main .border4 {
  position: relative;
  display: block;
  z-index: 0;
  font-weight: 500;
  margin: 1.1em auto 0.25em;
  padding: 1em 0.5em 0.6em;
  border-radius: 0.65em;
  background: #fff;
  -webkit-box-shadow: 0 0 0 0.03em #7100da, 0 0 0 0.13em #a93dff, 0 0 0 0.17em #48218f;
          box-shadow: 0 0 0 0.03em #7100da, 0 0 0 0.13em #a93dff, 0 0 0 0.17em #48218f;
  --outline-width: 0.12em;
  scroll-margin: 1em;
  min-height: 6em;
}
#main .prize-group {
  position: relative;
  margin: 0.5em auto;
}
#main .img-box {
  display: block;
  position: relative;
  margin: 0.6em auto 0.5em;
  padding: 0;
  width: -webkit-max-content;
  width: -moz-max-content;
  width: max-content;
  max-width: 100%;
  background: #fbd5a8;
}
#main .img-box > * {
  display: block;
  overflow: hidden;
  border-radius: inherit;
}
#main .img-box img {
  -webkit-transition: -webkit-transform 0.3s;
  transition: -webkit-transform 0.3s;
  transition: transform 0.3s;
  transition: transform 0.3s, -webkit-transform 0.3s;
  will-change: transform;
}
#main .img-box .badge-img {
  position: absolute;
  top: -0.3em;
  left: 0.5em;
  z-index: 2;
  height: 1.1em;
}
#main .img-box .content-img {
  vertical-align: middle;
  font-size: 0.92em;
  width: 16em;
  height: 9em;
}
#main .img-box a:hover img {
  -webkit-transform: scale(1.01);
          transform: scale(1.01);
}
#main .prize-img {
  position: relative;
  margin: 0 auto;
  width: -webkit-max-content;
  width: -moz-max-content;
  width: max-content;
  -ms-flex-negative: 1;
      flex-shrink: 1;
}
#main .prize-grid {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 0 0.5em;
  margin: 0.5em auto;
}
#main .prize-grid .prize-img {
  width: 3.6em;
  width: clamp(76px, 3.6em, 180px);
  margin: 0;
}
#main .box {
  position: relative;
  border-radius: 2em;
  -o-border-image: url("/img/Event/202609-HiLife/border2.png?v=01") 119 fill/2em/0.35em 0;
     border-image: url("/img/Event/202609-HiLife/border2.png?v=01") 119 fill/2em/0.35em 0;
  margin: 0.5em 0 0.5em;
  min-height: 3em;
}
#main .box2 {
  display: block;
  position: relative;
  padding: 0.25em 0.25em;
  margin: 0.5em 0;
  border-radius: 2em;
  border: 0.1em solid #ffd69f;
  background: rgba(85, 24, 0, 0.4);
}
#main .title {
  width: 100%;
  color: #fff;
  font-size: 0.85em;
  text-align: center;
  font-weight: bold;
  line-height: 1.2;
  padding: 0;
  position: absolute;
  top: -0.7em;
  left: 0;
  right: 0;
  margin: auto;
  z-index: 1;
}
#main .title img {
  width: 43.1%;
  display: inline-block;
  max-height: 4em;
  margin: 0;
}
#main .anim-float {
  -webkit-animation: animFloat 4s infinite ease-in-out;
          animation: animFloat 4s infinite ease-in-out;
  -webkit-transform-origin: bottom;
          transform-origin: bottom;
}
@-webkit-keyframes animFloat {
  0% {
    -webkit-transform: translate(0);
            transform: translate(0);
  }
  50% {
    -webkit-transform: translate(0, -0.15em) scale(1.01);
            transform: translate(0, -0.15em) scale(1.01);
  }
  100% {
    -webkit-transform: translate(0);
            transform: translate(0);
  }
}
@keyframes animFloat {
  0% {
    -webkit-transform: translate(0);
            transform: translate(0);
  }
  50% {
    -webkit-transform: translate(0, -0.15em) scale(1.01);
            transform: translate(0, -0.15em) scale(1.01);
  }
  100% {
    -webkit-transform: translate(0);
            transform: translate(0);
  }
}
#main .font-serif {
  font-family: "Noto Serif TC", serif;
}
#main .font-display {
  font-family: "MStif", "Heiti TC", "Microsoft JhengHei", Verdana, display;
}
#main .text-hilight {
  color: #f8d89b;
}
#main .text-yellow {
  color: #fef973;
}
#main .text-red {
  color: #ff0085;
}
#main .text-green {
  color: #3fd432;
}
#main .text-blue {
  color: #00c3ff;
}
#main .text-purple {
  color: #4b4cf4;
}
#main .text-purple2 {
  color: #7315e0 !important;
}
#main .text-gray {
  color: #515151;
}
#main .text-gold {
  color: #f8d89b;
}
#main .text-orange {
  color: #ff7401;
}
#main .text-coffee {
  color: #a45600;
}
#main .text-coffee2 {
  color: #914300 !important;
}
#main .text-big {
  font-size: larger;
}
#main .text-small {
  font-size: smaller;
}
#main .text-center {
  text-align: center;
}
#main .text-outline {
  letter-spacing: normal;
  text-shadow: calc(0.7 * var(--outline-width)) calc(0.7 * var(--outline-width)) calc(0.25 * var(--outline-width)) var(--outline-color), calc(0.7 * var(--outline-width)) calc(-0.7 * var(--outline-width)) calc(0.25 * var(--outline-width)) var(--outline-color), calc(-0.7 * var(--outline-width)) calc(0.7 * var(--outline-width)) calc(0.25 * var(--outline-width)) var(--outline-color), calc(-0.7 * var(--outline-width)) calc(-0.7 * var(--outline-width)) calc(0.25 * var(--outline-width)) var(--outline-color), calc(1 * var(--outline-width)) 0 calc(0.25 * var(--outline-width)) var(--outline-color), calc(-1 * var(--outline-width)) 0 calc(0.25 * var(--outline-width)) var(--outline-color), 0 calc(1 * var(--outline-width)) calc(0.25 * var(--outline-width)) var(--outline-color), 0 calc(-1 * var(--outline-width)) calc(0.25 * var(--outline-width)) var(--outline-color), calc(0.9 * var(--outline-width)) calc(0.4 * var(--outline-width)) calc(0.3 * var(--outline-width)) var(--outline-color), calc(0.9 * var(--outline-width)) calc(-0.4 * var(--outline-width)) calc(0.3 * var(--outline-width)) var(--outline-color), calc(-0.9 * var(--outline-width)) calc(0.4 * var(--outline-width)) calc(0.3 * var(--outline-width)) var(--outline-color), calc(-0.9 * var(--outline-width)) calc(-0.4 * var(--outline-width)) calc(0.3 * var(--outline-width)) var(--outline-color), calc(0.4 * var(--outline-width)) calc(0.9 * var(--outline-width)) calc(0.3 * var(--outline-width)) var(--outline-color), calc(0.4 * var(--outline-width)) calc(-0.9 * var(--outline-width)) calc(0.3 * var(--outline-width)) var(--outline-color), calc(-0.4 * var(--outline-width)) calc(0.9 * var(--outline-width)) calc(0.3 * var(--outline-width)) var(--outline-color), calc(-0.4 * var(--outline-width)) calc(-0.9 * var(--outline-width)) calc(0.3 * var(--outline-width)) var(--outline-color);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) or (-webkit-background-clip: text) {
  #main [text-stroke] {
    color: transparent;
    text-shadow: none;
    display: inline-block;
    position: relative;
    background: -webkit-gradient(linear, left top, left bottom, from(#000), to(#000));
    background: linear-gradient(#000, #000);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-stroke: 0.05em transparent;
    -webkit-filter: drop-shadow(0 0.05em 0.05em #000);
            filter: drop-shadow(0 0.05em 0.05em #000);
  }
  #main [text-stroke]::before {
    content: attr(text-stroke);
    position: absolute;
    z-index: 1;
    background: -webkit-gradient(linear, left top, left bottom, color-stop(10%, #ffeeb7), color-stop(60%, #ffc300), color-stop(90%, #fe9600));
    background: linear-gradient(#ffeeb7 10%, #ffc300 60%, #fe9600 90%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-stroke: 0em transparent;
    pointer-events: none;
  }
  #main [text-stroke].text-blue::before {
    background-image: -webkit-gradient(linear, left top, left bottom, color-stop(10%, #fff), color-stop(60%, #4dffb6), color-stop(90%, #b64dff));
    background-image: linear-gradient(#fff 10%, #4dffb6 60%, #b64dff 90%);
  }
}
#main #content-area {
  position: relative;
  width: 16.66667em;
  left: calc(50% - 8.33333em);
}
#main .side-container {
  position: fixed;
  left: 50%;
  -webkit-transform: translate(-50%);
          transform: translate(-50%);
  top: 2.25em;
  z-index: 5;
  pointer-events: none;
  width: 100%;
  max-width: 24em;
  opacity: 1;
}
#main .side-container > * {
  pointer-events: all;
}
#main .side-btn {
  display: block;
  margin-left: auto;
  margin-right: 0.25em;
  width: 3.15em;
  opacity: 1;
  -webkit-transition: opacity 0.5s;
  transition: opacity 0.5s;
}
@media (max-width: 1280px) {
  #main .side-btn {
    opacity: 0;
    pointer-events: none;
  }
}
#main .poke-grid {
  position: relative;
  z-index: 0;
  width: 100%;
  margin: 0.5em 0 0;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}
#main .poke-grid .poke-btns {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 0.4em 1fr 0.4em 1fr;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4em;
}
#main .poke-grid .poke-btn {
  position: relative;
  aspect-ratio: 1/1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 0;
  border: 0.15em solid #fff;
  border-radius: 0.5em;
  -webkit-box-shadow: 0 0.1em 0.2em rgba(0, 0, 0, 0.2);
          box-shadow: 0 0.1em 0.2em rgba(0, 0, 0, 0.2);
  background: url("/img/Event/202609-HiLife/stamp_enter.png?v=01") center/cover no-repeat;
  -webkit-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
  cursor: pointer;
}
#main .poke-grid .poke-btn:hover {
  -webkit-filter: brightness(1.1);
          filter: brightness(1.1);
  -webkit-transform: scale(1.1);
          transform: scale(1.1);
  -webkit-box-shadow: 0 0 0.8em #d12e80;
          box-shadow: 0 0 0.8em #d12e80;
}
#main .poke-grid .btn-login {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
}
#main [data-login=false] .poke-grid .poke-btn {
  background-image: url("/img/Event/202609-HiLife/stamp_out.png?v=01");
}
#main [data-login=false] .poke-grid .poke-btn:hover {
  -webkit-box-shadow: 0 0 0.5em #4c4742;
          box-shadow: 0 0 0.5em #4c4742;
}
#main #rules ul,
#main #rules ol {
  font-size: 0.52em;
  font-size: clamp(12px, 0.52em, 33px);
  padding-right: 0.3em;
  line-height: 1.412;
}
#main #rules li {
  text-align: justify;
  color: #000000;
  font-weight: normal;
}
#main #rules li + li {
  margin-top: 0.412em;
}
#main #socials {
  -webkit-filter: drop-shadow(0 0.05em 0.15em rgba(0, 0, 0, 0.5));
          filter: drop-shadow(0 0.05em 0.15em rgba(0, 0, 0, 0.5));
}
#main {
  /*==============*/
  /* MODAL STYLES */
}
#main .modal.old {
  font: 400 60px/1.5 "Noto Sans TC", Arial, Helvetica, sans-serif !important;
  font-size: clamp(16px, 6vw, 60px) !important;
  display: none;
}
#main .modal.old.is-active {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}
#main .modal.old {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: 1000;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
#main .modal.old .mask {
  position: fixed;
  top: -50vh;
  left: -50vw;
  bottom: -50vh;
  right: -50vw;
  background: rgba(0, 0, 0, 0.75);
  -webkit-animation: fade 0.4s ease-out;
          animation: fade 0.4s ease-out;
}
@supports (backdrop-filter: blur(0.1rem)) {
  #main .modal.old .mask {
    backdrop-filter: blur(0.15rem);
    background: rgba(8, 8, 8, 0.8);
    -webkit-transition: backdrop-filter 0.5s ease-out;
    transition: backdrop-filter 0.5s ease-out;
  }
}
#main .modal.old .btn-close {
  font: inherit;
  display: block;
  position: absolute;
  z-index: 3;
  right: -0.4em;
  top: -0.9em;
  width: 2.2em;
  height: 2.2em;
  max-width: none;
  max-height: none;
  border: none;
  background: url("/img/Event/202609-HiLife/modal/close.png?v=01") center/contain no-repeat;
  -webkit-filter: drop-shadow(0 0.1em 0.05em rgba(24, 8, 24, 0.5));
          filter: drop-shadow(0 0.1em 0.05em rgba(24, 8, 24, 0.5));
  -webkit-transition: -webkit-filter 0.2s, -webkit-transform 0.2s ease-in-out;
  transition: -webkit-filter 0.2s, -webkit-transform 0.2s ease-in-out;
  transition: filter 0.2s, transform 0.2s ease-in-out;
  transition: filter 0.2s, transform 0.2s ease-in-out, -webkit-filter 0.2s, -webkit-transform 0.2s ease-in-out;
  outline: none;
  cursor: pointer;
}
#main .modal.old .btn-close:hover, #main .modal.old .btn-close:focus, #main .modal.old .btn-close:active {
  -webkit-transform: scale(1.05);
          transform: scale(1.05);
  -webkit-filter: brightness(1.1) drop-shadow(0 0.15em 0.1em rgba(24, 8, 24, 0.65));
          filter: brightness(1.1) drop-shadow(0 0.15em 0.1em rgba(24, 8, 24, 0.65));
}
@media (max-width: 600px) {
  #main .modal.old .btn-close {
    right: 0;
  }
}
#main .modal.old .border p,
#main .modal.old .border ul,
#main .modal.old .border ol,
#main .modal.old .border2 p,
#main .modal.old .border2 ul,
#main .modal.old .border2 ol,
#main .modal.old .border3 p,
#main .modal.old .border3 ul,
#main .modal.old .border3 ol {
  color: #000;
  font-size: 0.52em;
  font-size: clamp(14px, 0.52em, 36px);
}
#main .modal.old .border li + li,
#main .modal.old .border2 li + li,
#main .modal.old .border3 li + li {
  margin-top: 0.25em;
}
#main .modal.old .border .title,
#main .modal.old .border2 .title,
#main .modal.old .border3 .title {
  top: -2em;
}
#main .modal.old .border .title img,
#main .modal.old .border2 .title img,
#main .modal.old .border3 .title img {
  width: 56.1%;
}
#main #Modal-message .border,
#main #Modal-history .border,
#main #Modal-prize .border2,
#main #Modal-prize10 .border {
  background: #fff;
  border: none;
  -webkit-box-shadow: 0 0 0 0.03em #7100da, 0 0 0 0.13em #a93dff, 0 0 0 0.17em #48218f;
          box-shadow: 0 0 0 0.03em #7100da, 0 0 0 0.13em #a93dff, 0 0 0 0.17em #48218f;
}
#main .modal-overflow {
  overflow-y: auto;
  overflow-x: hidden;
  width: 100%;
  max-height: 100vh;
  scrollbar-width: none;
}
#main .modal-overflow::-webkit-scrollbar {
  width: 0px;
}
#main .modal-window {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  position: relative;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  text-align: left;
  width: 97.5%;
  max-width: 16.25em;
  margin: 1.5em auto 1.25em;
  line-height: 1.4;
  -webkit-animation: pop 0.3s;
          animation: pop 0.3s;
}
#main #history-records {
  font-size: 0.6em;
  margin-top: 0.5em;
}
#main #history-records .history-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  background: #e8e8e8;
  border-radius: 0.3em;
  padding: 0.4em 0.8em;
  font-weight: bold;
}
#main #history-records .history-header span:first-child {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  text-align: center;
}
#main #history-records .history-header span:last-child {
  width: 5em;
  text-align: center;
}
#main #history-records .history-list {
  max-height: 12em;
  overflow-y: auto;
}
#main #history-records .history-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  padding: 0.6em 0.8em;
  border-bottom: 1px solid #ddd;
}
#main #history-records .history-row span:first-child {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}
#main #history-records .history-row span:last-child {
  width: 5em;
  text-align: center;
}
#main {
  /* ==================== */
  /* JS ANIMATION CLASSES */
}
#main .fade-up,
#main .fade-left,
#main .fade-right,
#main .fade-down,
#main .fade-in {
  opacity: 0;
  -webkit-transition: opacity 1.6s, -webkit-transform 1s;
  transition: opacity 1.6s, -webkit-transform 1s;
  transition: opacity 1.6s, transform 1s;
  transition: opacity 1.6s, transform 1s, -webkit-transform 1s;
}
#main .fade-up.faded,
#main .fade-left.faded,
#main .fade-right.faded,
#main .fade-down.faded,
#main .fade-in.faded {
  -webkit-transform: none;
          transform: none;
  opacity: 1;
}
#main .fade-up {
  -webkit-transform: translate(0, 1em);
          transform: translate(0, 1em);
}
#main .fade-down {
  -webkit-transform: translate(0, -1em);
          transform: translate(0, -1em);
}
#main .fade-left {
  -webkit-transform: translate(1em, 0);
          transform: translate(1em, 0);
}
#main .fade-right {
  -webkit-transform: translate(-1em, 0);
          transform: translate(-1em, 0);
}
#main .bg-area.fade-up,
#main .bg-area .fade-up {
  -webkit-transform: none;
          transform: none;
}

/*=====================*/
/* KEYFRAMES AND MEDIA */
@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}
@keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}
@-webkit-keyframes glow {
  0% {
    visibility: hidden;
  }
  50% {
    visibility: visible;
  }
}
@keyframes glow {
  0% {
    visibility: hidden;
  }
  50% {
    visibility: visible;
  }
}
@-webkit-keyframes pop {
  0% {
    -webkit-transform: scale(0);
            transform: scale(0);
  }
  to {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
}
@keyframes pop {
  0% {
    -webkit-transform: scale(0);
            transform: scale(0);
  }
  to {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
}
@-webkit-keyframes fade {
  0% {
    opacity: 0;
    backdrop-filter: blur(0);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(8px);
  }
}
@keyframes fade {
  0% {
    opacity: 0;
    backdrop-filter: blur(0);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(8px);
  }
}
@-webkit-keyframes blink {
  0% {
    background-position: top;
  }
  50% {
    background-position: bottom;
  }
}
@keyframes blink {
  0% {
    background-position: top;
  }
  50% {
    background-position: bottom;
  }
}