html, body { background: #5b4632; }

.card.t0 .dot { background: radial-gradient(circle at 35% 30%, #f0705f, #c22d22 70%); }
.card.t1 .dot { background: radial-gradient(circle at 35% 30%, #6b9bf0, #2255b5 70%); }
#toast.t0 { color: #ffa093; }
#toast.t1 { color: #9fc2ff; }

/* 줄자 옆에 붙는 길이 */
.tapeLabel {
  position: fixed;
  transform: translate(-50%, -50%);
  padding: 0.5vh 0.9vw;
  border-radius: 10px;
  border: 2px solid transparent;
  background: rgba(var(--ink), 0.88);
  font-size: clamp(16px, 1.6vw, 30px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  pointer-events: none;
}
.tapeLabel.t0 { color: #ffa093; }
.tapeLabel.t1 { color: #9fc2ff; }
.tapeLabel.win { border-color: currentColor; font-size: clamp(20px, 2vw, 38px); }

/* 필통 속 보기(오른쪽 아래) */
#peekBtn {
  position: fixed;
  right: 1.6vw;
  bottom: 2.4vh;
  padding: 1.4vh 1.6vw;
  border: 0;
  border-radius: 999px;
  background: rgba(var(--ink), 0.72);
  color: #fff;
  font: inherit;
  font-size: clamp(15px, 1.4vw, 26px);
  font-weight: 600;
  cursor: pointer;
}
#peekBtn:hover { background: rgba(var(--ink), 0.88); }
#peekBtn kbd { background: rgba(255, 255, 255, 0.18); }

/* 점수판에 적는 지금 전술 */
.card .form { font-size: 0.6em; font-weight: 600; opacity: 0.8; font-variant-numeric: tabular-nums; }

/* 전술 바꾸기(왼쪽 아래). 내가 공을 가졌을 때만 보인다. */
#tacBtn {
  position: fixed;
  left: 1.6vw;
  bottom: 2.4vh;
  display: flex;
  align-items: center;
  gap: 0.7vw;
  padding: 1.4vh 1.6vw;
  border: 0;
  border-radius: 999px;
  background: rgba(var(--ink), 0.72);
  color: #fff;
  font: inherit;
  font-size: clamp(15px, 1.4vw, 26px);
  font-weight: 600;
  cursor: pointer;
}
#tacBtn:hover { background: rgba(var(--ink), 0.88); }
#tacBtn:disabled { opacity: 0.55; cursor: default; }
#tacBtn b { font-variant-numeric: tabular-nums; }
#tacBtn.t0 b { color: #ffa093; }
#tacBtn.t1 b { color: #9fc2ff; }
#tacBtn i { font-style: normal; font-size: 0.85em; font-weight: 500; opacity: 0.8; }
#tacBtn kbd { margin: 0; background: rgba(255, 255, 255, 0.18); }
#tacMenu {
  position: fixed;
  left: 1.6vw;
  bottom: 10.5vh;
  padding: 1.6vh 1vw;
  border-radius: 18px;
  background: rgba(var(--ink), 0.92);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}
#tacTitle { margin-bottom: 1.2vh; font-size: clamp(14px, 1.25vw, 22px); font-weight: 600; opacity: 0.85; }
#tacList { display: flex; gap: 0.5vw; }
#tacList button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5vh;
  min-width: 6.6vw;
  padding: 1.2vh 0.8vw;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font: inherit;
  cursor: pointer;
}
#tacList button:hover { background: rgba(255, 255, 255, 0.26); }
#tacList button.on { background: #fff; color: rgb(var(--ink)); cursor: default; }
#tacList b { font-size: clamp(17px, 1.6vw, 30px); font-variant-numeric: tabular-nums; }
#tacList span { font-size: clamp(13px, 1.1vw, 20px); opacity: 0.8; }
#tacList kbd { margin: 0; background: rgba(255, 255, 255, 0.18); font-size: clamp(12px, 1vw, 18px); }
#tacList button.on kbd { visibility: hidden; }

/* 가위바위보: 판을 가리지 않게 아래에 낮게 깐다 */
#rps {
  position: fixed;
  left: 50%;
  bottom: 2vh;
  transform: translateX(-50%);
  width: min(96vw, 1200px);
  padding: 1.4vh 1.4vw 1.6vh;
  background: rgba(var(--ink), 0.92);
  border-radius: 20px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  text-align: center;
}
#rpsTitle { font-size: clamp(17px, 1.6vw, 30px); font-weight: 700; }
.duel { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2vw; margin-top: 1.2vh; }
.side {
  display: flex;
  align-items: center;
  gap: 1vw;
  padding: 1vh 1vw;
  border-radius: 14px;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.07);
}
.side.won { border-color: currentColor; background: rgba(255, 255, 255, 0.14); }
.side.t0 { color: #ffa093; }
.side.t1 { color: #9fc2ff; }
.side .who { flex: 0 0 4.2em; font-size: clamp(16px, 1.5vw, 26px); font-weight: 700; word-break: keep-all; }
.hands { flex: 1; display: flex; gap: 0.5vw; }
.hands button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4vw;
  height: 8.5vh;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font: inherit;
  cursor: pointer;
}
.hands button:hover { background: rgba(255, 255, 255, 0.26); }
.hands .icon { font-size: clamp(24px, 2.6vw, 48px); line-height: 1; }
.hands .word { font-size: clamp(14px, 1.3vw, 22px); font-weight: 600; }
.hands kbd { margin: 0; background: rgba(255, 255, 255, 0.18); font-size: clamp(12px, 1vw, 18px); }
.shown {
  flex: 1;
  height: 8.5vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: clamp(17px, 1.6vw, 30px);
  font-weight: 600;
  opacity: 0.75;
}
.shown.open { font-size: clamp(26px, 2.8vw, 52px); font-weight: 800; opacity: 1; }
