:root {
  color-scheme: dark;
  --text: #f7f3eb;
  --muted: #d2cbc0;
  --red: #ff3b30;
  --gold: #ffd84d;
  --green: #54e58c;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 1920px;
  height: 1080px;
  overflow: hidden;
  font-family: "Chakra Petch", sans-serif;
  background: url("/assets/images/background.png") center center / cover no-repeat;
  color: var(--text);
}

.overlay-shell {
  position: relative;
  width: 100%;
  height: 100%;
}

.board {
  position: absolute;
  inset: 0;
}

.track-node {
  position: absolute;
  width: 54px;
  height: 54px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
}

.track-node.current::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 3px solid rgba(255, 74, 74, 0.95);
  box-shadow: 0 0 18px rgba(255, 59, 48, 0.75);
}

.avatar-chip {
  position: absolute;
  width: 42px;
  height: 68px;
  color: #07101e;
  font-size: 15px;
  font-weight: 700;
  transform-origin: center bottom;
  animation: avatar-bob 1.8s ease-in-out infinite;
}

.avatar-chip.at-start {
  animation: avatar-run-horizontal var(--start-run-duration, 2.8s) linear infinite;
  animation-delay: var(--start-run-delay, 0s);
}

.avatar-head {
  position: absolute;
  top: 0;
  left: 4px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.86);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.avatar-chip.active .avatar-head {
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(255, 216, 77, 0.85);
}

.avatar-body {
  position: absolute;
  inset: 28px 0 0;
}

.avatar-torso,
.avatar-arm,
.avatar-leg {
  position: absolute;
  left: 50%;
  width: 3px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  transform-origin: top center;
}

.avatar-torso {
  top: 4px;
  height: 18px;
  margin-left: -1.5px;
}

.avatar-arm {
  top: 7px;
  height: 14px;
}

.avatar-arm-left {
  margin-left: -4px;
  transform: rotate(48deg);
  animation: avatar-arm-left 0.9s ease-in-out infinite alternate;
}

.avatar-arm-right {
  margin-left: 1px;
  transform: rotate(-48deg);
  animation: avatar-arm-right 0.9s ease-in-out infinite alternate;
}

.avatar-leg {
  top: 20px;
  height: 15px;
}

.avatar-leg-left {
  margin-left: -4px;
  transform: rotate(24deg);
  animation: avatar-leg-left 0.9s ease-in-out infinite alternate;
}

.avatar-leg-right {
  margin-left: 1px;
  transform: rotate(-24deg);
  animation: avatar-leg-right 0.9s ease-in-out infinite alternate;
}

.avatar-chip-image,
.leaderboard-avatar-image,
.join-popup-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes avatar-bob {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-2deg);
  }

  50% {
    transform: translate3d(0, -3px, 0) rotate(2deg);
  }
}

@keyframes avatar-patrol {
  0%,
  100% {
    transform: translate3d(-6px, 0, 0);
  }

  50% {
    transform: translate3d(6px, 0, 0);
  }
}

@keyframes avatar-run-horizontal {
  0% {
    transform: translate3d(0, 0, 0) scaleX(1);
  }

  49% {
    transform: translate3d(calc(var(--start-run-range, 220px) * -1), 0, 0) scaleX(1);
  }

  50% {
    transform: translate3d(calc(var(--start-run-range, 220px) * -1), 0, 0) scaleX(-1);
  }

  99% {
    transform: translate3d(0, 0, 0) scaleX(-1);
  }

  100% {
    transform: translate3d(0, 0, 0) scaleX(1);
  }
}

@keyframes avatar-arm-left {
  from {
    transform: rotate(60deg);
  }

  to {
    transform: rotate(24deg);
  }
}

@keyframes avatar-arm-right {
  from {
    transform: rotate(-24deg);
  }

  to {
    transform: rotate(-60deg);
  }
}

@keyframes avatar-leg-left {
  from {
    transform: rotate(34deg);
  }

  to {
    transform: rotate(10deg);
  }
}

@keyframes avatar-leg-right {
  from {
    transform: rotate(-10deg);
  }

  to {
    transform: rotate(-34deg);
  }
}

.auth-bar {
  position: absolute;
  top: 22px;
  right: 24px;
  z-index: 7;
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-user-badge.hidden,
.auth-button.hidden {
  display: none;
}

.auth-user-badge {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
}

.auth-button {
  padding: 10px 16px;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 10, 10, 0.88);
  color: var(--text);
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

.hud-strip {
  position: absolute;
  top: 34px;
  right: 170px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  z-index: 2;
}

.hud-status-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.status-pill,
.question-counter,
.category-badge,
.points-badge {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  font-size: 20px;
}

.status-pill.live {
  color: var(--green);
}

.status-pill.paused {
  color: var(--gold);
}

.prompt-panel {
  position: absolute;
  left: 660px;
  top: 462px;
  width: 700px;
  height: 280px;
  padding: 18px 28px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.18);
}

.prompt-meta,
.prompt-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.prompt-text {
  margin: 44px 0 16px;
  font-size: 28px;
  line-height: 1.12;
  text-align: center;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.8);
}

.scene-text {
  margin: 16px 0 0;
  font-size: 26px;
  line-height: 1.22;
  text-align: center;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.8);
}

.prompt-help {
  font-size: 24px;
  color: var(--muted);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.question-reader {
  position: absolute;
  right: 490px;
  top: 760px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
}

.question-reader.hidden {
  display: none;
}

.question-reader-avatar {
  position: relative;
  width: 120px;
  height: 120px;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.4));
}

.question-reader-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.question-reader-image.hidden {
  display: none;
}

.question-reader-copy {
  margin-bottom: 8px;
}

.question-reader-label {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f3f5f7;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.question-reader.is-speaking .question-reader-avatar {
  animation: question-reader-pulse 0.46s ease-in-out infinite;
}

@keyframes question-reader-pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.04);
  }
}

.round-timer-pill {
  min-width: 112px;
  margin-right: -6rem;
  padding: 8px 16px;
  border-radius: 16px;
  border: 2px solid rgba(255, 59, 48, 0.78);
  background: rgba(14, 10, 10, 0.82);
  color: #ffffff;
  font-size: 30px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.round-timer-pill.is-warning {
  border-color: rgba(255, 157, 0, 0.95);
  background: rgba(46, 17, 10, 0.9);
  box-shadow: 0 0 0 2px rgba(255, 157, 0, 0.18), 0 12px 24px rgba(255, 111, 0, 0.28);
  animation: timer-warning-pulse 0.9s ease-in-out infinite;
}

.round-timer-pill.is-danger {
  border-color: rgba(255, 59, 48, 1);
  background: rgba(58, 9, 9, 0.95);
  box-shadow: 0 0 0 2px rgba(255, 59, 48, 0.22), 0 14px 28px rgba(255, 59, 48, 0.34);
  animation: timer-danger-pulse 0.45s ease-in-out infinite;
}

@keyframes timer-warning-pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.035);
  }
}

@keyframes timer-danger-pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.075);
  }
}

.leaderboard-panel {
  position: absolute;
  top: 176px;
  right: 79px;
  width: 324px;
  height: 474px;
  padding: 84px 6px 4px;
  z-index: 2;
}

.responses-panel {
  position: absolute;
  left: 56px;
  top: 524px;
  width: 360px;
  height: 376px;
  padding: 6px 12px;
  z-index: 2;
}

.responses-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.responses-title,
.responses-counter {
  font-size: 24px;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.responses-list {
  position: relative;
  height: 328px;
  overflow: hidden;
}

body.admin-mode .responses-list {
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 6px;
}

body.admin-mode .responses-list::-webkit-scrollbar {
  width: 8px;
}

body.admin-mode .responses-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.28);
  border-radius: 999px;
}

.responses-track {
  display: flex;
  flex-direction: column;
  gap: 8px;
  will-change: transform;
}

.responses-empty,
.leaderboard-empty {
  display: grid;
  place-items: center;
  height: 100%;
  font-size: 22px;
  color: var(--muted);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.response-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  min-height: 62px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 10, 10, 0.62);
  color: var(--text);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
  flex: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

button.response-card {
  cursor: pointer;
}

button.response-card:hover {
  border-color: rgba(255, 216, 77, 0.85);
  transform: translateY(-1px);
}

.response-card.is-leading {
  border-color: rgba(255, 216, 77, 0.92);
  background: linear-gradient(180deg, rgba(58, 44, 6, 0.78), rgba(10, 10, 10, 0.78));
  box-shadow: 0 10px 28px rgba(255, 216, 77, 0.18);
}

.response-card.is-tied {
  border-color: rgba(125, 211, 252, 0.88);
  background: linear-gradient(180deg, rgba(10, 41, 56, 0.74), rgba(10, 10, 10, 0.76));
  box-shadow: 0 10px 28px rgba(125, 211, 252, 0.16);
}

.response-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.response-number {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 216, 77, 0.16);
  border: 1px solid rgba(255, 216, 77, 0.42);
  color: var(--gold);
  font-size: 17px;
  font-weight: 700;
  flex: none;
}

.response-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: #081019;
  font-weight: 700;
  flex: none;
}

.response-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.response-user-wrap {
  min-width: 0;
  flex: 1;
}

.response-username,
.response-order,
.response-text {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.response-username {
  font-size: 22px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.response-order {
  font-size: 15px;
  color: var(--muted);
}

.response-text {
  font-size: 18px;
  line-height: 1.2;
}

.response-votes {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-size: 14px;
  font-weight: 700;
  color: #ffdd86;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
  flex: none;
}

.response-vote-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #0b0f12;
  background: #ffd84d;
}

.response-card.is-tied .response-vote-badge {
  background: #7dd3fc;
}

.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.leaderboard-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 10px;
  align-items: center;
  height: 86px;
  padding: 0 12px;
}

.leaderboard-rank {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  color: var(--gold);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.leaderboard-player {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.leaderboard-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #081019;
  font-size: 19px;
  font-weight: 700;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.82);
}

.leaderboard-name {
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.leaderboard-score {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.last-winner-panel {
  position: absolute;
  right: 82px;
  bottom: 77px;
  width: 318px;
  height: 267px;
  padding: 86px 24px 24px;
  z-index: 2;
  text-align: center;
}

.admin-controls {
  position: absolute;
  right: 24px;
  top: 74px;
  width: 286px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  z-index: 6;
}

.admin-controls.hidden {
  display: none;
}

.admin-controls button {
  padding: 12px 16px;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 10, 10, 0.88);
  color: var(--text);
  font: inherit;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
}

.admin-sidebar-toggle {
  min-width: 156px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.admin-sidebar-panel {
  width: 100%;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 10, 12, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.34);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transform-origin: top right;
  transition: opacity 180ms ease, transform 180ms ease;
}

.admin-controls.is-collapsed .admin-sidebar-panel {
  opacity: 0;
  transform: scale(0.96) translateY(-8px);
  pointer-events: none;
}

.admin-sidebar-header {
  padding: 2px 4px 8px;
}

.admin-sidebar-title,
.admin-sidebar-copy {
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.admin-sidebar-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.admin-sidebar-copy {
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted);
}

.admin-timer-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.admin-special-tests {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.admin-timer-row input {
  min-width: 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 10, 10, 0.88);
  color: var(--text);
  font: inherit;
  font-size: 20px;
  font-weight: 700;
}

.last-winner-label {
  display: none;
}

.last-winner-user {
  margin: 0 0 10px;
  font-size: 34px;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.last-winner-answer {
  margin: 0;
  font-size: 22px;
  color: var(--muted);
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.winner-banner {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(4, 3, 5, 0.35);
  backdrop-filter: blur(4px);
  z-index: 5;
  opacity: 1;
  transition: opacity 320ms ease;
}

.winner-banner.hidden {
  opacity: 0;
  pointer-events: none;
}

.winner-content {
  width: 820px;
  padding: 28px 38px;
  border-radius: 24px;
  background: rgba(15, 8, 8, 0.88);
  border: 2px solid rgba(255, 59, 48, 0.5);
  box-shadow: var(--shadow);
  text-align: center;
}

.winner-title {
  margin: 0;
  font-size: 58px;
  color: var(--gold);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.winner-user {
  margin: 10px 0 8px;
  font-size: 44px;
  font-weight: 700;
}

.winner-answer-label {
  margin: 0;
  font-size: 20px;
  color: var(--muted);
}

.winner-answer {
  margin: 8px 0 0;
  font-size: 32px;
}

.special-tile-banner {
  position: absolute;
  left: 50%;
  top: 55%;
  transform: translate(-50%, -50%) scale(1);
  z-index: 6;
  opacity: 1;
  transition: opacity 260ms ease, transform 260ms ease;
  pointer-events: none;
}

.special-tile-banner.hidden {
  opacity: 0;
  transform: translate(-50%, -46%) scale(0.96);
}

.special-tile-card {
  position: relative;
  width: 270px;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.45));
}

.special-tile-image {
  width: 100%;
  height: auto;
  display: block;
}

.special-tile-video-frame {
  position: absolute;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.7);
}

.special-tile-video-frame.hidden {
  display: none;
}

.special-tile-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}

.special-tile-media-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}

.special-tile-media-image.hidden,
.special-tile-video.hidden {
  display: none;
}

.special-tile-copy {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.special-tile-copy.hidden {
  display: none;
}

.special-tile-title,
.special-tile-category,
.special-tile-description {
  position: absolute;
  margin: 0;
  color: #ffffff;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.95);
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

.special-tile-title {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.special-tile-category {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.special-tile-description {
  line-height: 1.25;
}

.special-tile-category,
.special-tile-description {
  text-transform: none;
}

.special-tile-description {
  font-weight: 500;
}

.special-tile-banner[data-tile-type="?"] .special-tile-title,
.special-tile-banner[data-tile-type="?"] .special-tile-category,
.special-tile-banner[data-tile-type="?"] .special-tile-description,
.special-tile-banner[data-tile-type="!"] .special-tile-title,
.special-tile-banner[data-tile-type="!"] .special-tile-category,
.special-tile-banner[data-tile-type="!"] .special-tile-description,
.special-tile-banner[data-tile-type="star-yellow"] .special-tile-title,
.special-tile-banner[data-tile-type="star-yellow"] .special-tile-category,
.special-tile-banner[data-tile-type="star-yellow"] .special-tile-description,
.special-tile-banner[data-tile-type="star-purple"] .special-tile-title,
.special-tile-banner[data-tile-type="star-purple"] .special-tile-category,
.special-tile-banner[data-tile-type="star-purple"] .special-tile-description {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.9));
}

.special-tile-video-frame {
  z-index: 1;
}

.special-tile-copy {
  z-index: 2;
}

.special-tile-category {
  font-weight: 700;
}

.join-popup {
  position: absolute;
  left: 80px;
  bottom: 70px;
  z-index: 4;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: opacity 260ms ease, transform 260ms ease;
  pointer-events: none;
}

.join-popup.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.join-popup.hidden {
  opacity: 0;
}

.join-popup-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 380px;
  max-width: 520px;
  padding: 16px 20px;
  border-radius: 18px;
  background: rgba(14, 10, 10, 0.88);
  border: 2px solid rgba(255, 59, 48, 0.4);
  box-shadow: var(--shadow);
}

.join-popup-avatar {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.82);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: none;
}

.join-popup-avatar span {
  font-size: 32px;
  font-weight: 700;
  color: #081019;
}

.join-popup-avatar span.hidden {
  display: none;
}

.join-popup-avatar img {
  display: none;
}

.join-popup-avatar img.visible {
  display: block;
}

.join-popup-label {
  margin: 0 0 4px;
  color: #ff8e88;
  font-size: 18px;
  text-transform: uppercase;
}

.join-popup-user {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
}

.join-popup-text {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 22px;
}

.debug-panel {
  position: absolute;
  right: 26px;
  bottom: 26px;
  width: 340px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(8, 8, 8, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 6;
}

.debug-panel.hidden {
  display: none;
}

.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.panel-title-row h2 {
  margin: 0;
  font-size: 26px;
}

.panel-kicker {
  font-size: 14px;
  color: var(--muted);
}

.debug-panel label {
  display: block;
  margin-bottom: 12px;
  font-size: 18px;
  color: var(--muted);
}

.debug-panel input[type="text"] {
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 10, 22, 0.82);
  color: var(--text);
  font: inherit;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.debug-panel button {
  width: 100%;
  padding: 14px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(90deg, #ff675c, #ffb347);
  color: #101010;
  font: inherit;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
}
