html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  font-size: 100%;
  vertical-align: baseline;
}

html * {
  font-family: "Microsoft JhengHei";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*,
*:after,
*:before {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

body {
  font-size: 100%;
  background-color: #efefef;
  color: #373737;
  font-size: 18px;
  font-weight: bold;
}

* {
  position: relative;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  text-decoration: none;
}

.container {
  width: 100%;
  background: url("../images/bg.jpg") no-repeat center center/cover;
  min-height: 80vh;
}

.title {
  font-size: 32px;
  font-weight: bold;
  color: #d6b370;
  text-shadow: 1px 1px 3px #fff;
  margin-bottom: 20px;
  text-align: center;
}

.redeem-box {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  padding: 30px;
  max-width: 420px;
  width: 100%;
  -webkit-box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
          box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  position: relative;
  margin: 0 auto;
  border: 3px solid #d6b370;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
  color: #555;
}

.hint {
  font-size: 20px;
  color: #b8924a;
  margin-left: 8px;
  font-size: 16px;
  cursor: pointer;
}
.hint:hover {
  color: #dbb46b;
}

input[type=text] {
  width: 100%;
  padding: 10px 12px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-bottom: 20px;
}

.notes {
  font-size: 12px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 20px;
}

button {
  width: 100%;
  background-color: #c49d5e;
  color: white;
  padding: 14px;
  font-size: 18px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

button:hover {
  background-color: #b3883d;
}

.character {
  position: absolute;
  right: -325px;
  bottom: -100px;
  width: 450px;
  pointer-events: none;
}

.top-bar {
  width: 100%;
  height: 154px;
  background: url("../images/top-pattern.png") center repeat-x;
  top: 0;
  padding: 10px 0 0 20px;
}

.rg-logo {
  margin-right: 10px;
}

.footer-box {
  width: 100%;
  color: #7b7b7b;
}

.footer-social {
  width: 100%;
  height: 100px;
  background: url("../images/footer-social-bg-pattern.jpg") center repeat;
}

.footer-social-links {
  list-style-type: none;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 20px;
  margin: 0 auto;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  height: 100%;
}
.footer-social-links a {
  -webkit-transition: 0.3s;
  transition: 0.3s;
}
.footer-social-links a:hover {
  opacity: 0.8;
}

.footer-main {
  height: 266px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  background: #000;
}

.footer-inner {
  max-width: 1280px;
  height: 106px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 20px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
}

.footer-left {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 5px;
  font-size: 12px;
  color: #737373;
  height: 106px;
}

.footer-center {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.bof-news {
  width: 278px;
}
.bof-news img {
  width: 100%;
}

.footer-right {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  gap: 10px;
  height: 106px;
  margin-left: 20px;
}

.lager-logo {
  width: 143px;
  height: 40px;
  margin-right: 10px;
  background: url("../images/lager-logo.png") center no-repeat;
}

.footer-logo-box {
  margin: 10px 0 0 0;
}

.footer-lager-logo {
  margin-right: 20px;
}

.class-level {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 57px;
  height: 100%;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.footer-links a {
  color: #737373;
}

.class-txt {
  font-size: 12px;
  color: #737373;
}

@media (max-width: 1280px) {
  .footer-main {
    height: 100%;
    padding: 20px 0;
  }
  .footer-inner {
    height: 100%;
    display: block;
  }
  .footer-right {
    width: 100%;
  }
  .bof-news {
    margin: 0 auto;
  }
  .footer-center {
    margin: 20px 0;
  }
}
@media (max-width: 767px) {
  .footer-box {
    min-width: 100%;
  }
  .footer-inner {
    width: 100%;
    height: auto;
    display: block;
  }
  .footer-links {
    text-align: center;
    margin-top: 10px;
  }
  .footer-center a {
    width: 100%;
  }
  .footer-center a img {
    width: 100%;
  }
  .footer-logo-box {
    text-align: center;
  }
  .footer-logo-box img {
    max-width: 100%;
  }
  .copyright {
    text-align: center;
  }
  .footer-social .footer-inner {
    height: 100px !important;
  }
  .footer-main .footer-inner {
    padding: 10% 7%;
  }
  .footer-left, .footer-right {
    display: block;
    height: auto;
  }
  .footer-left {
    margin-bottom: 20px;
  }
  .lager-logo, .class-level {
    margin-bottom: 10px;
  }
  .footer-main {
    height: auto;
  }
  .footer-right {
    margin-top: 10px;
    margin-left: 0;
  }
  .class-level {
    margin: 20px auto 0 auto;
  }
  .footer-lager-logo, .footer-rg-logo {
    margin-bottom: 10px;
  }
}
.apple-download-btn {
  width: 209px;
  height: 71px;
  display: block;
  margin: 0 auto;
  padding: 0;
  border: none;
  background: none;
  outline: none;
  cursor: pointer;
  -webkit-transition: -webkit-filter 0.3s;
  transition: -webkit-filter 0.3s;
  transition: filter 0.3s;
  transition: filter 0.3s, -webkit-filter 0.3s;
}
.apple-download-btn:hover {
  -webkit-filter: brightness(1.3);
          filter: brightness(1.3);
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  opacity: 0;
  -webkit-transition: opacity 0.3s;
  transition: opacity 0.3s;
}

.overlay.show {
  display: block;
  opacity: 1;
}

.popup-content {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  background: rgb(247, 247, 247);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 3px solid #b8924a;
  padding: 20px;
  border-radius: 20px;
  max-width: 90%;
  text-align: left;
  z-index: 1001;
  opacity: 0;
  color: #d8cde1;
  -webkit-transition: opacity 0.3s, -webkit-transform 0.3s;
  transition: opacity 0.3s, -webkit-transform 0.3s;
  transition: transform 0.3s, opacity 0.3s;
  transition: transform 0.3s, opacity 0.3s, -webkit-transform 0.3s;
}
.popup-content p {
  margin-bottom: 5px;
  color: #9e9e9e;
  font-size: 14px;
}
.popup-content img {
  margin-bottom: 10px;
  max-width: 100%;
}

.popup-content.show {
  display: block;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  opacity: 1;
}

.close {
  position: absolute;
  display: block;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  background: url("../images/close-btn.png") center no-repeat;
  z-index: 50;
  -webkit-transition: 0.3s;
  transition: 0.3s;
  background: #b8924a;
  border-radius: 50%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  color: #fadda6;
}
.close:hover {
  -webkit-transform: scale(0.9);
          transform: scale(0.9);
}

@media (max-width: 768px) {
  .popup-content {
    max-height: 550px;
    overflow: scroll;
    padding: 7%;
    width: 90%;
  }
  .container {
    min-width: 100%;
    padding-bottom: 70px;
  }
  .redeem-box {
    max-width: 90%;
    padding: 20px;
    margin: 0 5%;
  }
  .character {
    position: static;
    display: block;
    margin: 20px auto 0;
    width: 200px;
    display: none;
  }
  .top-bar {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    padding-top: 5%;
  }
}