html, body { background: #2e261f; }

.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 { top: 15.5%; }
#toast.t0 { color: #ffa093; }
#toast.t1 { color: #9fc2ff; }
/* 방 이름이 길어도 한 줄에 둔다. 줄이 늘어 창 크기가 변하지 않게 한다. */
.panel .sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 휴대폰처럼 좁은 화면: 이름이 긴 점수판이 놀이 고르기 단추와 겹치지 않게 그 아래에 둔다. */
@media (max-width: 600px) {
  #hud { top: calc(3.2vh + 40px); }
}

/* 동전 고르기: 동전 그림과 이름 */
.coins button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6vw;
  min-width: 0;
  white-space: nowrap;
}
.coins .pic { display: grid; place-items: center; width: clamp(26px, 4.6vh, 52px); aspect-ratio: 1; flex: none; }
.coins canvas { display: block; height: auto; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5)); }

/* 튕기는 세기를 알려 주는 고리 */
#gauge {
  position: fixed;
  width: clamp(56px, 9.5vh, 116px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
#gauge svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); }
#gauge circle { fill: none; stroke-width: 14; }
#gauge .back { fill: rgba(var(--ink), 0.62); stroke: rgba(255, 255, 255, 0.26); }
#gauge span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: clamp(12px, 1.9vh, 22px);
  font-weight: 700;
}
