.chat-shortcuts {
  position: absolute;
  bottom: calc(100% + 5px);
  left: -2px;
  display: flex;
  gap: 3px;
}
.chat-shortcuts > :is(button, a) {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  padding: 0;
  border: 1px solid #6b5230;
  border-radius: 5px;
  background: linear-gradient(180deg, #2a1e22, #140e11);
  color: var(--brass2);
  box-shadow: 0 0 0 1px #000, 0 4px 10px #0009, inset 0 0 0 1px #d5a55b26;
}
.chat-shortcuts > :is(:hover, :focus-visible) {
  border-color: var(--brass2);
  background: linear-gradient(180deg, #3a2a1e, #1a1210);
}
.chat-shortcuts > :focus-visible { outline: 2px solid var(--brass2); outline-offset: 2px; }
.chat-shortcuts svg {
  width: 15px;
  height: 15px;
  filter: drop-shadow(0 0 4px #e0b76460);
}
#chatVote svg {
  animation: chat-hourglass-turn 12s ease-in-out infinite;
}
@keyframes chat-hourglass-turn {
  0%, 92% { transform: rotate(0); }
  100% { transform: rotate(180deg); }
}
@media (prefers-reduced-motion: reduce) {
  #chatVote svg { animation: none; }
}

.vote-card {
  box-sizing: border-box;
  max-width: 460px;
  margin: 8px auto;
  padding: clamp(16px, 5vw, 24px);
  border: 1px solid #685033;
  border-radius: 12px;
  background: radial-gradient(ellipse at top left, #30231a, #18151b 64%);
  color: #f6e5ca;
  font: 400 14px/1.5 system-ui, sans-serif;
}
.vote-card p { margin: 0; color: #c9b9a6; }
.vote-prize { display: flex; align-items: center; gap: 14px; }
.vote-prize h2 { margin: 0; color: #ffdc9a; font: 700 25px/1.2 Georgia, serif; }
.vote-prize p { margin-top: 5px; }
.vote-icon {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 4px;
}
.vote-stats { margin: 22px 0 14px; padding: 10px 14px; background: #100e13; border: 1px solid #453747; border-radius: 8px; }
.vote-stats div { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; }
.vote-stats strong { color: #ffdc9a; }
.vote-card .vote-note { font-size: 13px; }
.vote-link {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 17px 0 8px;
  padding: 11px;
  border: 1px solid #ffe0a5;
  border-radius: 7px;
  background: linear-gradient(#ffd48e, #dfa252);
  color: #23170d;
  font-weight: 750;
  text-decoration: none;
}
.vote-link:hover { background: #ffe1a9; color: #23170d; }
.vote-link:focus-visible { outline: 2px solid #ffe0a5; outline-offset: 3px; }
.vote-note { text-align: center; }

#panel[data-view="vote"] {
  inset: var(--vote-top, 12px) auto auto var(--vote-left, 12px);
  width: min(460px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  border: 0;
  background: transparent;
  box-shadow: none;
}
#panel[data-view="vote"]::before, #panel[data-view="vote"]::after { display: none; }
#panel[data-view="vote"] #panelBody { padding: 0; }
#panel[data-view="vote"] .vote-card { margin: 0; }
#panel[data-view="vote"] .vote-prize { padding-right: 25px; }
#panel[data-view="vote"] .panel-head {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  padding: 0;
  border: 0;
  background: none;
}
#panel[data-view="vote"] .panel-head h2 { position: absolute; clip-path: inset(50%); }

.cm-banners {
  position: absolute; bottom: calc(100% + 38px); left: -2px; width: min(290px, 75%);
  display: flex; flex-direction: column; gap: 6px; z-index: 5; pointer-events: none;
}
.wa-banner {
  pointer-events: auto;
  display: flex; align-items: center; gap: 4px; padding: 5px 7px;
  background: linear-gradient(180deg, #2a3a2c, #1a2419); border: 2px solid #5f9a6c; border-radius: 8px;
  animation: waPulse 1.4s ease-in-out infinite; transform-origin: left bottom;
}
.wa-banner.hidden { display: none; }
.wa-banner a { flex: 1; display: flex; align-items: center; gap: 8px; line-height: 1.2; color: #fff; text-decoration: none; }
.wa-banner a svg { width: 22px; height: 22px; flex: none; }
.wa-banner b { display: block; font-size: 13px; }
.wa-banner small { display: block; font-size: 11px; color: #c9dccd; }
.wa-banner .x { background: none; border: 0; color: #fff; cursor: pointer; font-size: 14px; }
.wa-banner.dc { background: linear-gradient(180deg, #2d3050, #1c1e33); border-color: #6a73c4; animation-name: dcPulse; }
.wa-banner.dc small { color: #ccd0ee; }
@keyframes dcPulse { 0%,100% { transform: scale(1); border-color: #6a73c4; } 50% { transform: scale(1.03); border-color: #c3c8f4; } }
@keyframes waPulse { 0%,100% { transform: scale(1); border-color: #5f9a6c; } 50% { transform: scale(1.03); border-color: #b8e0c2; } }
@media (prefers-reduced-motion: reduce) { .wa-banner { animation: none; } }
