@import url("https://fonts.googleapis.com/css2?family=Bungee&family=Chiron+GoRound+TC:wght@200..900&display=swap");

* {
  box-sizing: border-box;
  font-family: "Chiron GoRound TC", sans-serif;
  font-weight: 900;
  touch-action: manipulation;
}

body {
  margin: 0;
  overflow: hidden;
  background-color: #f6f3eb;
  user-select: none;
  -webkit-user-select: none;
}

#ui-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hint {
  position: fixed;
  top: 30px;
  width: 100%;
  text-align: center;
  color: #725349;
  opacity: 0.5;
  font-size: 16px;
  letter-spacing: 1px;
  pointer-events: none;
  text-transform: uppercase;
  z-index: 10;
  @media (max-width: 600px) {
    top: auto;
    bottom: 110px;
  }
}

#result-board {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

#result-board.show {
  opacity: 1;
}

#total-score {
  font-family: "Bungee", serif;
  color: #725349;
  font-size: 80px;
  text-shadow: 4px 4px 0 #f6f3eb, -4px -4px 0 #f6f3eb, 4px -4px 0 #f6f3eb,
    -4px 4px 0 #f6f3eb, 0px 4px 0 #f6f3eb, 4px 0px 0 #f6f3eb, 0px -4px 0 #f6f3eb,
    -4px 0px 0 #f6f3eb;
}

.sub-text {
  display: block;
  font-size: 24px;
  color: #72534999;
  margin-top: 0px;
}

.top-left-controls {
  position: absolute;
  top: 20px;
  left: 20px;
  pointer-events: auto;
  z-index: 100;
  .back-btn {
    display: block;
    width: 100%;
    padding: 12px 16px;
    text-align: center;
    background: #e6be9154;
    border-radius: 100px;
    color: #752f11;
    font-size: 16px;
    text-decoration: none;
    transition: transform 0.1s, box-shadow 0.1s;
    &:hover {
      background: #e6be917a;
    }
    i {
      margin-right: 8px;
    }
  }
}

.bottom-left-controls {
  position: absolute;
  bottom: 20px;
  left: 20px;
  pointer-events: auto;
  display: flex;
  align-items: center;
}

.bottom-right-controls {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 8px;
  pointer-events: auto;
  align-items: flex-end;
}

.circle-btn {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 5px solid #725349;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 0 #72534935;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform 0.1s, box-shadow 0.1s;
  line-height: 1.2;
  color: white;
}

.circle-btn.pick {
  background: #e05a47;
  width: 80px;
  height: 80px;
}

/* 新增換色按鈕樣式 (藍色) */
.circle-btn.mix {
  background: #4d9bea;
}

.circle-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}

.counter-control {
  background: #fff;
  border: 5px solid #725349;
  border-radius: 50px;
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 5px;
  box-shadow: 0 4px 0 #72534935;
  overflow: hidden;
}

.count-btn {
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  color: #725349;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.1s;
  outline-color: transparent;
  border: 1px solid transparent;
  overflow: hidden;
  &:hover {
    background: #f6f3eb;
  }
}


.count-display {
  width: 40px;
  text-align: center;
  font-size: 24px;
  color: #725349;
  margin: 0 5px;
}
