.modal-block {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100001;
  height: 100vh;
  background-color: #000000bf;
  overflow-y: hidden;
}
.modal-block .modal-dialog {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: auto;
  margin: 30px auto;
  min-height: calc(100% - 1rem);
}
.scratch-close-btn {
  position: relative;
  box-sizing: border-box;
  width: 3.5em;
  height: 3.5em;
  border-radius: 4em;
  border: 1px solid #fff;
  color: transparent;
  cursor: pointer;
  margin-bottom: 1rem;
  transition: all ease 0.3s;
}
.scratch-close-btn:before,
.scratch-close-btn:after {
  position: absolute;
  width: 2em;
  height: 1px;
  left: 50%;
  top: 50%;
  margin-left: -1em;
  content: "";
  background: #fff;
  transition: all ease 1s;
}
.scratch-close-btn:before {
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
}
.scratch-close-btn:after {
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}
.scratch-main {
  position: relative;
}
.scratch-main img {
  width: 100%;
}
.card {
  position: absolute;
}
.scratch-block {
  position: absolute;
  top: 41%;
  left: 0;
  right: 0;
  text-align: center;
}
#card {
  width: 220px;
  height: 180px;
  margin: 0 auto;
  overflow: hidden;
  background: url(../img/scratch-base.png) no-repeat center, #d98a4f;
  background-size: contain;
  border-radius: 10px;
}
.scratch-block p {
  margin-top: 5px;
  color: #7f1616;
  font-weight: 700;
}
.scratch-ex-main {
  width: 65%;
  position: relative;
  top: -1.8rem;
}
.scratch-ex-adorn {
  height: 30px;
  background-color: #7f1616;
  position: relative;
}
.scratch-ex-adorn li {
  position: absolute;
}
.scratch-ex-adorn li:nth-child(-n + 2) {
  width: 27%;
  top: -7rem;
}
.scratch-ex-adorn li:nth-child(n + 3) {
  z-index: -1;
}
.scratch-ex-adorn li:nth-child(2) {
  right: 0;
}
.scratch-ex-adorn li:nth-child(3) {
  left: -23px;
}
.scratch-ex-adorn li:nth-child(4) {
  right: -23px;
  transform: scaleX(-1);
}
.scratch-ex-adorn img {
  width: 100%;
}
.scratch-ex-block {
  background-color: #f4d79e;
  padding: 10px;
  margin: 0 8px;
  border-radius: 0 0 10px 10px;
}
.scratch-ex-block h3 {
  font-size: 18px;
  color: #da3f32;
  text-align: center;
  font-weight: 700;
}
.scratch-ex-block li {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}
.scratch-ex-block .title-l {
  width: 25%;
}
.scratch-ex-block .title-l p {
  background-color: #f8d088;
  text-align: center;
  border-radius: 50px;
  color: #da3f32;
}
.scratch-ex-block .title-r {
  width: 65%;
}
.scratch-prize-mian img {
  width: 100%;
}
.prize-ending-block {
  position: relative;
  top: -2.5rem;
}
.prize-ending-block::after,
.prize-ending-block::before {
  content: "";
  width: 18px;
  height: 6.5em;
  display: block;
  background-color: #d1211e;
  position: absolute;
  top: -7px;
}
.prize-ending-block::before {
  right: 0;
}
.prize-ending {
  border-bottom: 9px solid #c72014;
  border-top: 9px solid #c72014;
}
.prize-ending p {
  color: #970311;
  text-align: center;
  margin: 10px 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1.5px;
}
.prize-ending-block .win {
  background: linear-gradient(to bottom, #ffefa8, #ffd081);
}
.prize-ending-block .lose {
  background-color: #b7b7b7;
}
.prize-ending-close {
  display: flex;
  justify-content: center;
}
.prize-ending-close .btn {
  width: 40%;
  padding: 7px;
  background: linear-gradient(to bottom, #ffefa8, #ffa932);
  border-radius: 50px;
  border: 2px solid #fae0bd;
  color: #970311;
  font-size: 16px;
  font-weight: 700;
  transition: all 0.2s;
}
#scratch-winning {
  display: none;
}

/* 請奶茶 */

.header_milktea a {
    display: flex;
    background-color: #ffbf99;
    color: #fff;
    align-items: center;
    padding: 4px 16px;
    border-radius: 2em;
    width: 95px;
    background-image: url(/images/milktea-bg-fill-brown.png);
    background-repeat: repeat-x;
    background-position: 0 -100%;
    transition: .5s ease;
}

.header_milktea_title {
    line-height: 1.5;
    margin-left: 4px;
}

.header_milktea a:hover {
    background-position: center;
  }




@media screen and (min-width: 768px) {
  .modal-block .modal-dialog {
    width: 600px;
  }
}
@media screen and (min-width: 576px) {
  .modal-dialog {
    min-height: calc(100% - 3.5rem);
  }
}
@media screen and (max-width: 539px) {
  .scratch-ex-main {
    width: 80%;
  }
  .scratch-ex-adorn li:nth-child(-n + 2) {
    top: -6rem;
  }
  .scratch-ex-adorn li:nth-child(n + 3) {
    z-index: auto;
  }
  .scratch-ex-adorn li:nth-child(3) {
    left: -26px;
  }
  .scratch-ex-adorn li:nth-child(4) {
    right: -26px;
  }
  .scratch-prize-mian {
    width: 90%;
  }
}
@media screen and (max-width: 300px) {
  #card {
    width: 60%;
    height: 125px;
  }
  .scratch-ex-adorn li:nth-child(-n + 2) {
    top: -4rem;
  }
  .scratch-ex-block .title-l {
    width: 100%;
  }
  .scratch-ex-block .title-r {
    width: 100%;
  }
}
