/* Shared Monstit UI: loaded last so every screen shares one friendly look. */

/* === Floating corner buttons === */
.music-toggle, .help-toggle {
  background: var(--surface-2);
  border: 2px solid var(--border);
  box-shadow: 0 4px 0 rgba(0, 0, 0, .35);
}
.help-toggle {
  position: fixed;
  top: 12px;
  right: 60px;
  z-index: 100;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--brand);
  font: 1.3rem var(--font-display);
  cursor: pointer;
  transition: transform .15s ease;
}
.help-toggle:hover { transform: scale(1.1); }

/* === How-to-play sheet === */
.help-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 12, 20, .72);
  backdrop-filter: blur(4px);
  animation: help-fade .2s ease;
}
.help-card {
  position: relative;
  width: min(100%, 420px);
  padding: 44px 24px 24px;
  border-radius: 24px;
  background: linear-gradient(160deg, #26394f, #1a2638);
  border: 2px solid #48756b;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
  text-align: left;
  animation: help-pop .28s cubic-bezier(.2, 1.4, .4, 1);
}
.help-card h2 { font-size: 1.6rem; margin: 6px 0 16px; color: #f6f6e9; }
.help-mascot {
  position: absolute;
  top: -34px;
  left: 50%;
  width: 72px;
  height: 64px;
  margin-left: -36px;
  border-radius: 48% 48% 38% 38%;
  background: #b5dd73;
  box-shadow: inset -8px -7px 0 #93be55, 0 8px 18px rgba(0, 0, 0, .35);
  animation: help-bob 2.4s ease-in-out infinite;
}
.help-mascot i {
  position: absolute;
  top: 18px;
  width: 20px;
  height: 22px;
  border: 6px solid white;
  border-radius: 50%;
  background: #233137;
}
.help-mascot i:first-child { left: 12px; }
.help-mascot i:nth-child(2) { right: 12px; }
.help-mascot b { position: absolute; left: 27px; top: 44px; width: 18px; height: 8px; border-bottom: 4px solid #284339; border-radius: 50%; }
.help-steps { list-style: none; display: grid; gap: 12px; margin-bottom: 22px; counter-reset: help; }
.help-steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
  counter-increment: help;
}
.help-steps p { font-size: 1rem; line-height: 1.45; color: #e7eef4; }
.help-step-icon {
  flex: 0 0 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #2f4a44;
  font-size: 1.35rem;
}
.help-ok { width: 100%; font-size: 1.1rem; }
@keyframes help-fade { from { opacity: 0; } }
@keyframes help-pop { from { transform: scale(.85) translateY(20px); opacity: 0; } }
@keyframes help-bob { 50% { transform: translateY(-5px) rotate(-3deg); } }

/* === Home: next step guide === */
.next-step {
  width: 100%;
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, #3a2f63, #25304f);
  border: 2px solid #7b68c9;
  box-shadow: 0 6px 0 #1a1533;
}
.next-step h2 { font-size: 1.45rem; margin: 6px 0; color: #fff; text-align: left; }
.next-step p { color: #d8d4f4; line-height: 1.5; font-size: .92rem; }
.next-step .eyebrow { color: #ffd166; }
.next-step-track { display: flex; align-items: center; gap: 6px; }
.next-step-track span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #2a2548;
  border: 2px solid #5b4f96;
  color: #a79fd6;
  font: .9rem var(--font-display);
}
.next-step-track i { flex: 1; height: 4px; border-radius: 2px; background: #3d3669; }
.next-step-track span.done { background: var(--good); border-color: var(--good); color: #0d3325; }
.next-step-track span.done::before { content: '✓'; }
.next-step-track span.done { font-size: 0; }
.next-step-track span.done::before { font-size: .95rem; }
.next-step-track span.current { background: #ffd166; border-color: #ffd166; color: #3a2f63; transform: scale(1.15); animation: pulse 1.6s ease-in-out infinite; }
.next-step-go { width: 100%; min-width: 0; font-size: 1.1rem; }

/* === Home: grouped tiles === */
#screen-menu .menu-buttons .menu-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 104px;
  padding: 12px 6px 10px;
  border-width: 2px;
  border-radius: 18px;
  box-shadow: 0 5px 0 rgba(0, 0, 0, .35);
  color: #fff;
  text-align: center;
}
#screen-menu .menu-buttons .menu-tile:hover { box-shadow: 0 7px 0 rgba(0, 0, 0, .35); }
#screen-menu .menu-buttons .menu-tile:active { box-shadow: 0 1px 0 rgba(0, 0, 0, .35); }
.menu-tile .tile-icon { font-size: 1.8rem; line-height: 1.1; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .25)); }
.menu-tile strong { font: 1rem/1.15 var(--font-display); letter-spacing: .01em; }
.menu-tile small { font: 600 .7rem/1.25 var(--font-body); opacity: .85; }
.tile-badge {
  position: absolute;
  top: -8px;
  right: -6px;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #ff4d6d;
  border: 2px solid var(--bg-primary);
  color: #fff;
  font: .8rem var(--font-display);
  animation: pulse 1.4s ease-in-out infinite;
}
#screen-menu .menu-buttons .tile-hatch { background: linear-gradient(160deg, #ff8c42, #e0592a); border-color: #ffb07a; }
#screen-menu .menu-buttons .tile-collection { background: linear-gradient(160deg, #3fb4e6, #1f7fb8); border-color: #7fd3f5; }
#screen-menu .menu-buttons .tile-lab { background: linear-gradient(160deg, #36c98a, #1a8f5e); border-color: #7fe3b5; }
#screen-menu .menu-buttons .tile-battle { background: linear-gradient(160deg, #ff5d73, #d23150); border-color: #ff9aa9; }
#screen-menu .menu-buttons .tile-pvp { background: linear-gradient(160deg, #ff7a3d, #cf4a1c); border-color: #ffb08a; }
#screen-menu .menu-buttons .tile-team { background: linear-gradient(160deg, #7a6cf0, #4a3fc0); border-color: #aaa1ff; }
#screen-menu .menu-buttons .tile-minigames { background: linear-gradient(160deg, #f25fbc, #b8338a); border-color: #ff9fdc; }
#screen-menu .menu-buttons .tile-events { background: linear-gradient(160deg, #a45cf0, #6c2fb5); border-color: #cfa0ff; }
#screen-menu .menu-buttons .tile-leaderboard { background: linear-gradient(160deg, #f5b83d, #c2730c); border-color: #ffd98a; color: #2e1a00; }
#screen-menu .menu-buttons .tile-challenges { background: linear-gradient(160deg, #2fc4b2, #16877a); border-color: #7fe8dc; }
#screen-menu .menu-buttons .tile-pass { background: linear-gradient(160deg, #f7b733, #c9851a); border-color: #ffd98a; color: #3a2500; }
#screen-menu .menu-buttons .tile-shop { background: linear-gradient(160deg, #4d9bff, #2b64c9); border-color: #9cc6ff; }
#screen-menu .menu-buttons .tile-achievements { background: linear-gradient(160deg, #e0b43a, #a47a14); border-color: #f5d98a; color: #2e2000; }
#screen-menu .menu-buttons .tile-codes { background: linear-gradient(160deg, #5b6b85, #3b4860); border-color: #8d9bb3; }
#screen-menu .menu-buttons-more .menu-tile { min-height: 64px; flex-direction: row; gap: 10px; }
#screen-menu .menu-buttons-more { grid-template-columns: 1fr 1fr; }
#screen-menu .menu-buttons .tile-lore { background: linear-gradient(160deg, #3b3355, #28223d); border-color: #5f5487; }
#screen-menu .menu-buttons .tile-premium { background: linear-gradient(160deg, #5a4a1a, #3b3010); border-color: #b99a3a; color: #ffe08a; }
#screen-menu .menu-buttons .tile-discord { grid-column: 1 / -1; background: linear-gradient(160deg, #6a78f5, #4752c4); border-color: #aab2ff; text-decoration: none; }
.menu-section-label { font-size: .78rem; margin-top: 10px; }

/* === Quiz answers: four colours, like a game show === */
.quiz-answers, .room-answers { counter-reset: answer; }
.quiz-answer, .room-answer, .td-quiz-btn {
  position: relative;
  min-height: 64px;
  padding: 14px 12px 14px 44px !important;
  border: none !important;
  border-radius: 14px !important;
  color: #fff !important;
  font: 800 1.08rem/1.3 var(--font-body) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
  box-shadow: 0 5px 0 rgba(0, 0, 0, .3);
  transition: transform .1s ease, box-shadow .1s ease, filter .15s ease, opacity .2s ease;
  counter-increment: answer;
  overflow-wrap: anywhere;
}
.quiz-answer::before, .room-answer::before, .td-quiz-btn::before {
  position: absolute;
  left: 10px;
  top: 50%;
  width: 26px;
  height: 26px;
  margin-top: -13px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(0, 0, 0, .22);
  font: 1rem/1 Arial, "Segoe UI Symbol", sans-serif;
  text-shadow: none;
}
.quiz-answer:nth-child(4n + 1), .room-answer:nth-child(4n + 1), .td-quiz-btn:nth-child(4n + 1) { background: var(--answer-a) !important; }
.quiz-answer:nth-child(4n + 2), .room-answer:nth-child(4n + 2), .td-quiz-btn:nth-child(4n + 2) { background: var(--answer-b) !important; }
.quiz-answer:nth-child(4n + 3), .room-answer:nth-child(4n + 3), .td-quiz-btn:nth-child(4n + 3) { background: var(--answer-c) !important; color: #3a2500 !important; text-shadow: none; }
.quiz-answer:nth-child(4n + 4), .room-answer:nth-child(4n + 4), .td-quiz-btn:nth-child(4n + 4) { background: var(--answer-d) !important; }
.quiz-answer:nth-child(4n + 1)::before, .room-answer:nth-child(4n + 1)::before, .td-quiz-btn:nth-child(4n + 1)::before { content: '▲'; }
.quiz-answer:nth-child(4n + 2)::before, .room-answer:nth-child(4n + 2)::before, .td-quiz-btn:nth-child(4n + 2)::before { content: '◆'; }
.quiz-answer:nth-child(4n + 3)::before, .room-answer:nth-child(4n + 3)::before, .td-quiz-btn:nth-child(4n + 3)::before { content: '●'; }
.quiz-answer:nth-child(4n + 4)::before, .room-answer:nth-child(4n + 4)::before, .td-quiz-btn:nth-child(4n + 4)::before { content: '■'; }
.quiz-answer:not(:disabled):hover, .room-answer:not(:disabled):hover, .td-quiz-btn:not(:disabled):hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 7px 0 rgba(0, 0, 0, .3); }
.quiz-answer:not(:disabled):active, .room-answer:not(:disabled):active, .td-quiz-btn:not(:disabled):active { transform: translateY(4px); box-shadow: 0 1px 0 rgba(0, 0, 0, .3); }
.quiz-answer:disabled, .room-answer:disabled, .td-quiz-btn:disabled { opacity: .45; cursor: default; }
.quiz-answer.correct, .room-answer.correct {
  opacity: 1 !important;
  outline: 4px solid #fff;
  outline-offset: 2px;
  animation: answer-correct .5s ease;
}
.quiz-answer.correct::after, .room-answer.correct::after {
  content: '✓';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font: 1.4rem var(--font-display);
}
.quiz-answer.wrong { opacity: 1 !important; filter: grayscale(.6) brightness(.8); animation: answer-wrong .4s ease; }
.quiz-answer.wrong::after { content: '✗'; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font: 1.4rem var(--font-display); }
@keyframes answer-correct { 40% { transform: scale(1.06); } }
@keyframes answer-wrong { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

@media (prefers-reduced-motion: reduce) {
  .help-mascot, .next-step-track span.current, .tile-badge { animation: none; }
}

/* Keep the logo clear of the ? and music buttons on phones. */
@media (max-width: 899px) { #screen-menu { padding-top: 56px; } }

/* Achievement toasts sit at the top so they never cover answer buttons. */
.achievement-notice {
  top: calc(12px + env(safe-area-inset-top, 0px)) !important;
  bottom: auto !important;
  left: 12px !important;
  right: 112px !important;
  width: auto !important;
  max-width: 460px;
  transform: none !important;
  pointer-events: none;
  z-index: 250;
  animation: toast-drop .35s cubic-bezier(.2, 1.4, .4, 1);
}
@keyframes toast-drop { from { translate: 0 -30px; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .achievement-notice { animation: none; } }

/* Season 4: Starfall home banner — compact, links to Events. */
.season-banner {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 18px;
  border: 2px solid #b69cff;
  background: radial-gradient(circle at 88% 20%, #f0abfc55, transparent 38%), linear-gradient(120deg, #140a3a, #3b1a8f 55%, #7c3aed);
  box-shadow: 0 5px 0 #0c0624, 0 0 18px #8b5cf655;
  color: #fff;
  text-align: left;
  overflow: hidden;
  cursor: pointer;
}
.season-banner:hover { border-color: #e9d5ff; }
.season-banner-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 30%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 34% 78%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 58% 18%, #fde68a 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 72% 70%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 92% 50%, #fff 0 1px, transparent 2px);
  animation: season-twinkle 3s ease-in-out infinite alternate;
}
.season-banner-stars::after {
  content: '';
  position: absolute;
  top: 18%;
  left: -30%;
  width: 70px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #fff);
  transform: rotate(-18deg);
  animation: season-shoot 4.5s ease-in 1s infinite;
}
.season-banner-icon { position: relative; font-size: 2rem; line-height: 1; filter: drop-shadow(0 0 8px #f0abfc); }
.season-banner-copy { position: relative; display: grid; gap: 1px; min-width: 0; }
.season-banner-tag { font-size: .68rem; font-weight: 900; letter-spacing: .12em; color: #fde68a; }
.season-banner-copy strong { font: 1.3rem var(--font-display); font-weight: 400; color: #fff; }
.season-banner-copy small { font-size: .78rem; color: #e4dcff; }
.season-banner-go { position: relative; font-size: 1.4rem; font-weight: 900; color: #fde68a; }
@keyframes season-twinkle { from { opacity: .55; } to { opacity: 1; } }
@keyframes season-shoot { 0% { translate: 0 0; opacity: 0; } 10% { opacity: 1; } 40%, 100% { translate: 520px 170px; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .season-banner-stars, .season-banner-stars::after { animation: none; } .season-banner-stars::after { display: none; } }

/* Featured Starfall event card */
#screen-events .event-card.event-featured { border-color: #c4b5fd; box-shadow: 0 6px 0 #0c0624, 0 0 22px #8b5cf666; }
#screen-events .event-featured .event-banner {
  background-image: radial-gradient(circle at 10% 20%, #fff 0 1px, transparent 2px), radial-gradient(circle at 40% 85%, #fff 0 1px, transparent 2px), radial-gradient(circle at 70% 12%, #fde68a 0 1.5px, transparent 2.5px), radial-gradient(circle at 92% 60%, #fff 0 1px, transparent 2px), linear-gradient(135deg, #1a0b4a, #5b2bb8 55%, #d06bd8) !important;
}
#screen-events .event-featured .event-badge { background: #fde68a; color: #2a1466; }
.lore-chapters .lore-starfall { padding-inline: 14px; border-radius: 16px; border: 1px solid #6d5bb5; background: radial-gradient(circle at 12% 18%, #fff 0 1px, transparent 2px), radial-gradient(circle at 86% 30%, #fde68a 0 1.5px, transparent 2.5px), radial-gradient(circle at 90% 10%, #8b5cf633, transparent 50%), #17123a; }
.lore-starfall .lore-number { color: #c4b5fd; }

/* === Daily Wheel === */
#screen-menu .menu-buttons .tile-wheel { background: linear-gradient(160deg, #ff6fae, #d6336c); border-color: #ffa8cf; }
.wheel-stage {
  --wheel-size: min(320px, 82vw);
  position: relative;
  width: var(--wheel-size);
  height: var(--wheel-size);
  margin: 10px auto 0;
}
.wheel-disc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 6px solid #f6f6e9;
  box-shadow: 0 0 0 6px #2a3a52, 0 10px 0 6px rgba(0, 0, 0, .35), 0 0 40px rgba(255, 214, 10, .25);
  transition-property: transform;
  transition-timing-function: cubic-bezier(.12, .7, .15, 1);
  will-change: transform;
}
/* Thin dividers between slices */
.wheel-disc::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(from -1deg, rgba(255, 255, 255, .55) 0deg 2deg, transparent 2deg 45deg);
}
.wheel-label {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 70px;
  margin-left: -35px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  transform: rotate(var(--angle)) translateY(calc(var(--wheel-size) * -0.36)) translateY(-50%);
  transform-origin: 50% 0;
  color: #fff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .55), 0 0 6px rgba(0, 0, 0, .45);
  pointer-events: none;
}
.wheel-label i { font-style: normal; font-size: 1.35rem; line-height: 1; }
.wheel-label b { font: .78rem/1.1 var(--font-display); font-weight: 400; letter-spacing: .02em; }
.wheel-label-gems b { font-size: .95rem; }
.wheel-pointer {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: -14px;
  width: 0;
  height: 0;
  margin-left: -16px;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 30px solid #ffd166;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .45));
}
.wheel-hub {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  margin: -29px 0 0 -29px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff3c4, #ffd166 45%, #c9851a);
  border: 4px solid #f6f6e9;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .35);
  color: #7a4a00;
  font-size: 1.5rem;
}
.wheel-status { text-align: center; font-weight: 800; color: #e4eaf1; min-height: 1.4em; }
.wheel-spin { align-self: center; min-width: 220px; font-size: 1.3rem; padding: 14px 28px; }
.btn.wheel-spin:not(:disabled) { animation: pulse 1.6s ease-in-out infinite; }
.btn.wheel-spin:disabled { opacity: .7; filter: grayscale(.4); }
.wheel-odds { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin: 10px 0; }
.wheel-odds li { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: #e4eaf1; }
.wheel-odds li b { margin-left: auto; color: var(--text-secondary); }
.wheel-odds-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .6); }
.wheel-prize-art { position: relative; z-index: 1; display: grid; place-items: center; height: 150px; animation: rw-monster-pop .8s cubic-bezier(.2, 1.6, .4, 1) .15s both; }
.wheel-prize-art .monster { zoom: 1.5; }
.wheel-prize-gems { font-size: 5rem; filter: drop-shadow(0 6px 0 rgba(0, 0, 0, .35)); }
.wheel-prize-actions { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.wheel-prize-actions .btn { width: 100%; }
@media (max-width: 420px) { .wheel-odds { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .btn.wheel-spin:not(:disabled), .wheel-prize-art { animation: none; } }

/* === Selling monsters (My Monsters) === */
.modal-sell { width: 100%; display: grid; gap: 8px; }
.modal-sell-btn { width: 100%; }
.modal-sell-note { font-size: .8rem; line-height: 1.4; color: var(--text-secondary); text-align: center; }
.modal-sell-question { font-size: .9rem; line-height: 1.45; color: #e4eaf1; text-align: center; font-weight: 700; }
.modal-sell-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.collection-notice { position: relative; padding: 10px 14px; border-radius: 14px; background: #16324a; border: 2px solid #2f6a8f; color: #cfeeff; font-weight: 800; text-align: center; }

/* Monstit's drawn icons, swapped in for emoji by js/utils/icons.js. Sized like the emoji they replace. */
.ico { display: inline-block; width: 1.2em; height: 1.2em; vertical-align: -.24em; flex: none; overflow: visible; }

/* Tall how-to-play sheets (four steps plus the chest note) scroll on short phone screens instead
   of pushing "Got it!" out of reach. margin:auto keeps the card centered when it fits. */
.help-overlay { place-items: normal; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-top: 54px; }
.help-card { margin: auto; }
/* === Voice chat (js/utils/voice.js): a round button beside Help and Music, with a drop-down panel === */
.voice-dock { position: fixed; top: 12px; right: 108px; z-index: 110; }
.voice-dock[hidden] { display: none; }
.voice-fab { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--border); background: var(--surface-2); box-shadow: 0 4px 0 rgba(0, 0, 0, .35); font-size: 1.1rem; cursor: pointer; position: relative; }
.voice-fab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.voice-fab.is-live { border-color: var(--good); }
.voice-fab.is-live::after { content: ''; position: absolute; top: -2px; right: -2px; width: 12px; height: 12px; border-radius: 50%; background: var(--good); border: 2px solid var(--bg-primary); }
.voice-fab.is-talking { box-shadow: 0 0 0 4px rgba(54, 211, 153, .45), 0 4px 0 rgba(0, 0, 0, .35); }
.voice-panel { position: absolute; top: 50px; right: -96px; width: min(320px, calc(100vw - 32px)); display: grid; gap: 10px; padding: 16px; border-radius: 18px; border: 2px solid var(--border); background: var(--surface); color: var(--text-primary); box-shadow: 0 14px 34px rgba(0, 0, 0, .55); }
.voice-panel strong { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--font-display); font-weight: 400; font-size: 1.1rem; }
.voice-panel strong small { font: 700 .78rem var(--font-body, inherit); color: var(--text-secondary); }
.voice-panel p { font-size: .85rem; line-height: 1.4; color: var(--text-secondary); margin: 0; }
.voice-panel .voice-note { color: #ffd166; font-weight: 700; }
.voice-panel .btn { padding: 10px 12px; font-size: .92rem; }
.voice-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 40vh; overflow-y: auto; }
.voice-people li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 12px; background: var(--surface-2); }
.voice-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.voice-people li.is-speaking .voice-dot { background: var(--good); box-shadow: 0 0 0 3px rgba(54, 211, 153, .35); }
.voice-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; font-size: .9rem; }
.voice-mute { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--text-primary); font-weight: 700; font-size: .78rem; cursor: pointer; }
.voice-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
/* Make room in the room screens' top bars for the third round button. */
body:has(.voice-dock:not([hidden])) :is(.rooms-topbar, .match-hud) { padding-right: 156px; }

/* Countdown to the next big update (js/update-countdown.js hides it once the update starts). */
.update-countdown {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 18px;
  border: 2px solid #4ade80;
  background: radial-gradient(circle at 10% 50%, #4ade8033, transparent 40%), linear-gradient(120deg, #04130c, #0b3b2a 55%, #14532d);
  box-shadow: 0 5px 0 #020a06, 0 0 18px #22c55e55;
  color: #fff;
  overflow: hidden;
}
.update-countdown[hidden] { display: none; }
.update-countdown-icon { font-size: 2rem; line-height: 1; filter: drop-shadow(0 0 8px #4ade80); animation: ufo-hover 2.6s ease-in-out infinite alternate; }
.update-countdown-copy { display: grid; gap: 1px; min-width: 0; }
.update-countdown-copy .season-banner-tag { color: #bef264; }
.update-countdown-copy strong { font: 1.3rem var(--font-display); font-weight: 400; }
.update-countdown-clock { display: flex; gap: 6px; }
.update-countdown-clock span { display: grid; justify-items: center; min-width: 46px; padding: 6px 4px; border-radius: 12px; background: #02140bcc; border: 1px solid #4ade8066; }
.update-countdown-clock b { font: 1.3rem var(--font-display); font-weight: 400; color: #bef264; font-variant-numeric: tabular-nums; }
.update-countdown-clock small { font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #bbf7d0; }
@keyframes ufo-hover { from { translate: 0 -3px; } to { translate: 0 3px; } }
@media (max-width: 520px) {
  .update-countdown { grid-template-columns: auto 1fr; }
  .update-countdown-clock { grid-column: 1 / -1; justify-content: space-between; }
  .update-countdown-clock span { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .update-countdown-icon { animation: none; } }
