.voice-chat {
  position: absolute;
  top: 60px;
  left: 8px;
  z-index: 5;
  width: 218px;
  max-height: 176px;
  overflow: hidden;
  border: 1px solid #d9bd7d;
  border-radius: 9px;
  background: #052f26f5;
  box-shadow: 0 8px 24px #001b15a6, inset 0 1px #fff8d926;
  color: #f7eac5;
}
.voice-chat-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-height: 38px;
  padding: 5px 10px;
  border: 0;
  background: #174b39;
  color: #ffe4a3;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
}
.voice-chat-toggle:hover { background: #23644a; }
.voice-chat-symbol { font-size: 18px; line-height: 1; }
.voice-chat-chevron { margin-left: auto; font-size: 19px; line-height: 1; }
.voice-chat-body { max-height: 134px; overflow-y: auto; padding: 6px 8px; scrollbar-width: thin; }
.voice-chat.is-collapsed { width: 44px; max-height: none; }
.voice-chat.is-collapsed .voice-chat-body { display: none; }
.voice-chat.is-collapsed .voice-chat-toggle { justify-content: center; min-height: 42px; padding: 0; }
.voice-chat.is-collapsed .voice-chat-toggle span:not(.voice-chat-symbol) { display: none; }
.voice-chat-feed {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 5px;
  min-height: 29px;
  max-height: 38px;
  overflow: auto;
  margin-bottom: 5px;
  padding: 3px 5px;
  border: 1px solid #6f977e;
  border-radius: 5px;
  background: #082e25;
}
.voice-chat-empty { margin: auto 0; color: #b9c9ae; font-size: 11px; line-height: 1.4; }
.voice-chat-message { display: flex; align-items: flex-start; gap: 5px; font-size: 11px; line-height: 1.35; }
.voice-chat-name { max-width: 50px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #e0be77; font-weight: 800; }
.voice-chat-text { flex: 1; color: #f1ead4; }
.voice-chat-play {
  flex: 1;
  min-width: 0;
  padding: 1px 6px;
  border: 1px solid #a5c5aa;
  border-radius: 99px;
  background: #23614a;
  color: #fff2cf;
  font-size: 11px;
  text-align: left;
}
.voice-chat-play:hover { background: #31805e; }
.voice-chat-kicker { margin: 2px 0 3px; color: #f0d691; font-size: 10px; font-weight: 800; letter-spacing: .06em; }
.voice-chat-presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
.voice-chat-presets button {
  min-height: 24px;
  padding: 3px 1px;
  border: 1px solid #9aba9c;
  border-radius: 4px;
  background: #164936;
  color: #f4ead0;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}
.voice-chat-presets button:hover:not(:disabled) { background: #256648; }
.voice-chat-recorder { display: flex; gap: 4px; margin-top: 5px; }
.voice-chat-record {
  flex: 1;
  min-height: 29px;
  border: 1px solid #e9c77b;
  border-radius: 5px;
  background: #dbad57;
  color: #123d2c;
  font-size: 11px;
  font-weight: 800;
}
.voice-chat-record.is-recording { border-color: #ffb7a3; background: #a83f32; color: #fff3e2; animation: voice-pulse 1.2s infinite; }
.voice-chat-cancel { min-width: 40px; border: 1px solid #a9bdab; border-radius: 5px; background: #164936; color: #f4ead0; font-size: 11px; }
.voice-chat-hint { display: none; }
.voice-chat-status { min-height: 0; margin: 3px 0 0; color: #f2d38f; font-size: 9px; line-height: 1.3; }
@keyframes voice-pulse { 50% { box-shadow: 0 0 0 3px #e8726d60; } }

.turn-clock {
  position: absolute;
  top: 44%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: clamp(78px, 9vw, 98px);
  height: clamp(68px, 11vh, 88px);
  padding: 6px;
  border: 1px solid #d6b973;
  border-radius: 7px;
  background: #052f26ed;
  box-shadow: 0 3px 11px #001c16a8, inset 0 0 0 3px #ddb96d21;
  color: #f7e9c6;
}
.turn-clock span { font-size: 11px; font-weight: 700; white-space: nowrap; }
.turn-clock-digits { display: flex; align-items: baseline; gap: 3px; }
.turn-clock strong { font: 800 30px/1 Georgia, serif; color: #ffe39d; }
.turn-clock small { font-size: 11px; }
.turn-clock.is-urgent { border-color: #f7a18a; background: #633023ef; }
.turn-clock.is-urgent strong { color: #ffe0a3; }
.table-center .turn-clock {
  position: static;
  flex: none;
  width: 62px;
  height: 62px;
  padding: 5px;
  gap: 0;
  transform: none;
  border-radius: 50%;
  background: #0c4c37;
  box-shadow: inset 0 0 0 3px #dbb66a38;
}
.table-center .turn-clock span { font-size: 9px; }
.table-center .turn-clock strong { font-size: 25px; }
.table-center .turn-clock.is-urgent { border-color: #f7a18a; background: #633023; }
.table-center > .joker-marker,
.table-center > .online-joker-marker {
  position: static;
  top: auto;
  left: auto;
  right: auto;
  width: 100%;
  max-width: 100%;
  margin-top: 2px;
  padding: 5px 1px 0;
  transform: none;
  border: 0;
  border-top: 1px solid #c7a96b69;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
  font-size: 10px;
}
.table-center > .joker-marker:not(.ganzhou-marker),
.table-center > .online-joker-marker:not(.ganzhou-marker) {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
}
.marker-token {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 2px 5px;
  border: 1px solid #c9aa6d7d;
  border-radius: 4px;
  background: #124b38;
  color: #ffe6a7;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
@media (max-height: 640px) and (min-width: 701px) {
  .voice-chat { top: 52px; max-height: 150px; }
  .voice-chat-body { max-height: 108px; }
}
@media (max-width: 700px) {
  .voice-chat { top: 55px; width: min(236px, calc(100vw - 16px)); max-height: 154px; }
  .voice-chat-body { max-height: 112px; }
  .voice-chat.is-collapsed { width: 42px; }
  .voice-chat-toggle { min-height: 36px; }
  .table-center .turn-clock { width: 56px; height: 56px; padding: 3px; }
  .table-center .turn-clock strong { font-size: 22px; }
}
@media (max-width: 600px) and (orientation: portrait) {
  .voice-chat.is-collapsed { top: 92px; left: 3px; }
  .table-center > .joker-marker,
  .table-center > .online-joker-marker { font-size: 9px; line-height: 1.35; }
}
@media (max-width: 360px) and (orientation: portrait) {
  .voice-chat.is-collapsed { top: 62px; }
}
@media (prefers-reduced-motion: reduce) {
  .voice-chat-record.is-recording { animation: none; }
}
