@charset "UTF-8";
:root {
  --now-ball: #9800ef;
  --before-ball: #cf5300;
  --one-circle: #ffe6ad;
  --pair-circle: #ffd76c;
}

body {
  background-image: url("../../image/background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  margin: 0;
  display: flex;
  justify-content: center;
  font-family: "Inter", sans-serif;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
body .notice {
  position: fixed;
  top: 0;
  left: 0;
  width: calc(100vw + 40px);
  height: calc(100lvh + 40px);
  background-color: #fff;
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
}
body .notice h1 {
  font-size: 5vw;
}
@media screen and (orientation: landscape) {
  body .notice {
    display: none;
  }
}
body .winning {
  position: fixed;
  top: 0;
  left: 0;
  width: calc(100vw + 40px);
  height: calc(100vh + 40px);
  z-index: 999;
  display: none;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
body .winning img {
  width: 80%;
  max-width: 1440px;
}
body .winning.visible {
  display: flex;
  animation: visible-animation 5s ease forwards;
}
@keyframes visible-animation {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  20% {
    opacity: 1;
    transform: scale(1);
  }
  80% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0);
  }
}
body main {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  padding: 20px;
}
body main .sorting {
  width: 20%;
  height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  gap: 10px;
  box-sizing: border-box;
}
body main .sorting-button {
  display: none;
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  position: absolute;
  left: 0;
  color: #ffffff;
  background-color: #8b1c21;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
body main .sorting-button:hover {
  background-color: #a5272e;
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}
body main .sorting-button:active {
  transform: scale(0.98);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
body main .sorting-title {
  width: 90%;
}
body main .sorting-title img {
  width: 100%;
  cursor: pointer;
}
body main .sorting-block {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-auto-rows: 1fr;
  gap: 1%;
}
body main .sorting-block-number {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: transparent;
}
body main .sorting-block-number div {
  height: 100%;
  font-size: 1vw;
  color: #afafaf;
  background-color: #ffffff;
  border-radius: 50%;
  aspect-ratio: 1/1;
  display: flex;
  justify-content: center;
  align-items: center;
}
body main .sorting-block .highlight {
  background-color: #f45a42;
  color: #fff;
}
body main .game {
  width: 80%;
  height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  /* 用於 game-block-number 的樣式 */
}
body main .game-title {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
body main .game-title img {
  width: 80%;
}
body main .game-title .QRcode {
  width: 8%;
  position: absolute;
  left: 0;
}
body main .game-title .QRcode img {
  width: 100%;
}
@media screen and (max-width: 1280px) {
  body main .game-title .QRcode {
    display: none;
  }
}
body main .game-block {
  overflow: hidden;
  width: 100%;
  height: 100%;
  background-color: #ffc107;
  border-radius: 2vw;
  margin-top: 20px;
  padding: 1vw;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.2%;
  position: relative;
}
body main .game-block-number {
  display: flex;
  justify-content: center;
  align-items: center;
}
body main .game-block-number div {
  height: 100%;
  background-color: var(--one-circle);
  font-size: 2vw;
  border-radius: 50%;
  aspect-ratio: 1/1;
  display: flex;
  justify-content: center;
  align-items: center;
}
body main .game-block-number:nth-child(n+13):nth-child(-n+24) div, body main .game-block-number:nth-child(n+37):nth-child(-n+48) div, body main .game-block-number:nth-child(n+61):nth-child(-n+72) div, body main .game-block-number:nth-child(n+73):nth-child(-n) div {
  background-color: var(--pair-circle);
}
body main .game .old-number div {
  background-color: var(--before-ball) !important;
  color: #ffffff !important;
}
body main .game .new-number div {
  background-color: var(--now-ball) !important;
  color: #ffffff !important;
  font-weight: 900;
}
body main .logo {
  position: absolute;
  right: 20px;
}
body main .logo img {
  max-width: 100px;
  width: 5vw;
}

/* 球 */
.animated-ball {
  position: fixed;
  top: -100px;
  left: 50vw;
  width: 100px;
  height: 100px;
  border: 10px solid #fff;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateY(-200px) scale(1);
  transition: transform 1.5s ease-in-out, width 1.5s ease-in-out, height 1.5s ease-in-out;
  z-index: 1000;
  font-size: 10vw;
}

.ball-label {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 5vw;
  color: #fff;
  font-weight: 900;
  text-shadow: 4px 4px 0 #A12718, 6px 6px 0 #821913, 8px 8px 0 #5d0d0a;
  white-space: nowrap;
}

.ball-label-part1 {
  transform: rotate(-20deg);
  display: inline-block;
  letter-spacing: 10px;
}

.ball-label-number {
  transform: translateY(-15px);
  display: inline-block;
  letter-spacing: 10px;
}

.ball-label-part2 {
  transform: rotate(20deg);
  display: inline-block;
}

/* 用於 sorting-block-number 的樣式 */
.sorting-old-number {
  background-color: var(--before-ball);
}

.sorting-new-number {
  background-color: var(--now-ball);
}

.sorted-number {
  color: #fff !important;
  border: 1px solid #fff;
  background-color: var(--before-ball) !important;
  font-size: 20em;
}

.sorted-new-number {
  background-color: var(--now-ball) !important;
  font-size: 20em;
}

@keyframes drop {
  from {
    transform: translateY(-200px);
  }
  to {
    transform: translateY(50vh);
  }
}
@keyframes moveLeft {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50vw);
  }
}/*# sourceMappingURL=style.css.map */