* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--app-font-family);
}

html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  background-color: #000000;
  color: #39ff14;
}

.hidden {
  display: none !important;
}

/* ---------- JOIN SCREEN ---------- */

.join-screen {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 20px;
}

.join-title-block {
  text-align: center;
}

.join-title-block h1 {
  font-size: 40px;
  letter-spacing: 4px;
  text-shadow: 0 0 8px #39ff14, 0 0 20px #39ff14;
}

.join-title-block .by {
  font-size: 14px;
  opacity: 0.6;
  margin-top: 4px;
  letter-spacing: 2px;
}

.join-title-block .tagline {
  font-size: 13px;
  opacity: 0.5;
  margin-top: 14px;
  letter-spacing: 1px;
}

.join-box {
  background-color: #0a0a0a;
  padding: 28px;
  border-radius: 2px;
  width: 360px;
  text-align: center;
  border: 1px solid #39ff14;
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.25);
}

.field-label {
  text-align: left;
  font-size: 12px;
  letter-spacing: 1px;
  color: #39ff14;
  opacity: 0.7;
  margin-bottom: 6px;
  margin-top: 16px;
}

.field-label:first-child {
  margin-top: 0;
}

#handle-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #39ff14;
  border-radius: 4px;
  font-size: 14px;
  background-color: #000000;
  color: #39ff14;
}

#handle-input::placeholder {
  color: #1f7a0d;
}

.color-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  justify-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid #333;
}

.color-swatch.selected {
  border-color: #ffffff;
  border-width: 4px;
}

/* ---------- Colour wheel/roller picker (join screen) ---------- */

.color-wheel-wrap {
  position: relative;
  height: 160px;
  margin-bottom: 20px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
}

.color-wheel-list {
  position: relative;
  height: 100%;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  list-style: none;
  margin: 0;
  padding: 0;
}

.color-wheel-list:active {
  cursor: grabbing;
}

.color-wheel-item {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 32px;
  margin-top: -16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  will-change: transform, opacity;
  transition: text-shadow 150ms ease;
}

.color-wheel-item.selected {
  text-shadow: 0 0 10px currentColor, 0 0 22px currentColor;
}

.color-wheel-highlight {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 32px;
  transform: translateY(-50%);
  border-top: 1px solid rgba(57, 255, 20, 0.35);
  border-bottom: 1px solid rgba(57, 255, 20, 0.35);
  pointer-events: none;
}

.terms-agree-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
  font-size: 12px;
  color: #39ff14;
  margin-bottom: 18px;
  cursor: pointer;
  line-height: 1.4;
}

.terms-agree-row input {
  margin-top: 3px;
  cursor: pointer;
  flex-shrink: 0;
}

#join-btn {
  padding: 12px 20px;
  background-color: #000000;
  color: #39ff14;
  border: 1px solid #39ff14;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

#join-btn:hover {
  background-color: #39ff14;
  color: #000000;
}

#join-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

#join-btn:disabled:hover {
  background-color: #000000;
  color: #39ff14;
}

/* ---------- CHAT SCREEN ---------- */

.chat-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.app-header {
  background-color: #000000;
  padding: 12px 16px;
  text-align: center;
  border-bottom: 1px solid #39ff14;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.header-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.app-header h1 {
  font-size: 28px;
  letter-spacing: 2px;
  text-shadow: 0 0 8px #39ff14;
}




.users-dropdown {
  max-height: 0;
  overflow: hidden;
  background-color: #0a0a0a;
  border-bottom: 0px solid #39ff14;
  transition: max-height 0.25s ease;
}

.users-dropdown.open {
  max-height: 220px;
  overflow-y: auto;
  border-bottom: 1px solid #39ff14;
}

.main-area {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.lobby-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.messages-box {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}

.system-msg {
  color: #39ff14 !important;
  font-style: italic;
  margin-bottom: 8px;
}

.chat-message {
  margin-bottom: 8px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.chat-message .msg-handle {
  font-weight: bold;
  margin-right: 6px;
}

.typing-indicator {
  min-height: 18px;
  padding: 0 10px;
  font-size: 12px;
  font-style: italic;
  color: #1f7a0d;
}

.input-row {
  display: flex;
  align-items: center;
  border-top: 1px solid #39ff14;
  padding: 8px;
  gap: 4px;
}

#message-input {
  flex: 1;
  min-width: 0;
  padding: 8px;
  border: 1px solid #39ff14;
  border-radius: 4px;
  margin-right: 8px;
  background-color: #000000;
  color: #39ff14;
}

#message-input::placeholder {
  color: #1f7a0d;
}

#send-btn {
  padding: 8px 16px;
  background-color: #000000;
  color: #39ff14;
  border: 1px solid #39ff14;
  border-radius: 4px;
  cursor: pointer;
}

#send-btn:hover {
  background-color: #39ff14;
  color: #000000;
}



.ptt-btn:hover {
  background-color: #ff9100;
  color: #000000;
}

.ptt-btn.transmitting {
  background-color: #ff2b2b;
  color: #000000;
  border-color: #ff2b2b;
  animation: pttPulse 1s ease-in-out infinite;
}

@keyframes pttPulse {
  0%, 100% {
    box-shadow: 0 0 6px 1px rgba(255, 43, 43, 0.7);
  }
  50% {
    box-shadow: 0 0 16px 4px rgba(255, 43, 43, 0.9);
  }
}

.users-list {
  list-style: none;
  padding: 10px;
}

.user-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot.active {
  background-color: #39ff14;
}

.status-dot.idle {
  background-color: #ff2b2b;
}
.reaction-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  position: relative;
}

.reaction-pills {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.reaction-pill {
  background-color: #0a0a0a;
  color: #39ff14;
  border: 1px solid #1f7a0d;
  border-radius: 12px;
  padding: 1px 6px;
  font-size: 10px;
}

.reaction-add-btn {
  background: none;
  color: #1f7a0d;
  border: 1px solid #1f7a0d;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  line-height: 1;
  font-size: 11px;
  cursor: pointer;
  padding: 0;
}

.reaction-add-btn:hover {
  color: #39ff14;
  border-color: #39ff14;
}

.reaction-picker {
  position: absolute;
  bottom: 100%;
  left: 0;
  margin-bottom: 4px;
  display: flex;
  gap: 4px;
  background-color: #0a0a0a;
  border: 1px solid #39ff14;
  border-radius: 6px;
  padding: 4px;
  z-index: 5;
}

.reaction-pick-btn {
  background: none;
  border: none;
  font-size: 15px;
  cursor: pointer;
  padding: 2px 4px;
}

.reaction-pick-btn:hover {
  background-color: #1a1a1a;
  border-radius: 4px;
}

.heat-badge {
  font-size: 11px;
  color: #ff9100;
  margin-left: auto;
}

.reaction-btn:hover {
  border-color: #39ff14;
}

.heat-badge {
  font-size: 11px;
  color: #ff9100;
  margin-left: 4px;
}


.highrollers-toggle-btn:hover {
  background-color: #ff9100;
  color: #000000;
}

.highrollers-tabs {
  display: flex;
  border-bottom: 1px solid #39ff14;
}

.highrollers-tab {
  flex: 1;
  background: none;
  border: none;
  color: #1f7a0d;
  padding: 8px;
  cursor: pointer;
  font-family: var(--app-font-family);
  font-size: 12px;
}

.highrollers-tab.active {
  color: #39ff14;
  border-bottom: 2px solid #39ff14;
}

.highrollers-list {
  list-style: none;
  padding: 10px;
}

.highrollers-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #1a1a1a;
  font-size: 12px;
}

.highrollers-heat {
  color: #ff9100;
  font-weight: bold;
  flex-shrink: 0;
}

.highrollers-handle {
  font-weight: bold;
  flex-shrink: 0;
}

.highrollers-text {
  color: #a8ffb0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.highrollers-empty {
  padding: 10px;
  color: #1f7a0d;
  font-style: italic;
  font-size: 12px;
}
.connection-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #ff2b2b;
  color: #000000;
  text-align: center;
  padding: 8px;
  font-size: 13px;
  font-weight: bold;
  z-index: 100;
}
.user-item {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid #1a1a1a;
}

.user-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.clickable-handle {
  cursor: pointer;
  text-decoration: underline dotted;
}

.clickable-handle:hover {
  opacity: 0.8;
}

.mod-panel {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  padding: 10px;
  background-color: #0a0a0a;
  border: 1px solid #ff2b2b;
  border-radius: 6px;
}

.mod-panel-title {
  font-size: 12px;
  color: #ff2b2b;
  margin-bottom: 2px;
}


.mod-btn {
  background-color: #000000;
  color: #ffee00;
  border: 1px solid #ffee00;
  border-radius: 4px;
  padding: 12px;
  font-size: 16px;
  cursor: pointer;
  font-family: var(--app-font-family);
  width: 100%;
  text-align: left;
  font-weight: bold;
}
.mod-btn:hover {
  background-color: #ffee00;
  color: #000000;
}


.mod-kick-btn {
  color: #ffee00;
  border-color: #ffee00;
}

.mod-kick-btn:hover {
  background-color: #ffee00;
  color: #000000;
}

.mod-delete-btn {
  background: none;
  border: 1px solid #ffee00;
  color: #ffee00;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 12px;
  cursor: pointer;
  margin-left: 6px;
}

.mod-delete-btn:hover {
  background-color: #ffee00;
  color: #000000;
}

.scho-label {
  font-size: 10px;
  color: #ff9100;
  margin-left: auto;
  white-space: nowrap;
}
.header-top-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
}

.header-badge {
  height: 52px;
  width: auto;
}

@media (max-width: 480px) {
  .header-badge {
    height: 36px;
  }

  .header-top-row h1 {
    font-size: 22px;
  }
}
.mic-btn {
  padding: 8px 14px;
  background-color: #000000;
  color: #39ff14;
  border: 1px solid #39ff14;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  margin-right: 8px;
  user-select: none;
  touch-action: none;
}

.mic-btn:hover {
  background-color: #39ff14;
  color: #000000;
}

.mic-btn.recording {
  background-color: #ff2b2b;
  color: #000000;
  border-color: #ff2b2b;
}

.recording-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px;
  background-color: #0a0a0a;
  border-top: 1px solid #ff2b2b;
  font-size: 13px;
}

.recording-timer {
  color: #ff2b2b;
  font-weight: bold;
}

.recording-hint {
  color: #1f7a0d;
}

.cancel-recording-btn {
  background: none;
  border: 1px solid #ff2b2b;
  color: #ff2b2b;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  cursor: pointer;
  font-size: 12px;
}

.cancel-recording-btn:hover {
  background-color: #ff2b2b;
  color: #000000;
}

.voice-message {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 6px 10px;
  background-color: #0a0a0a;
  border: 1px solid #1f7a0d;
  border-radius: 8px;
  max-width: 260px;
}

.voice-play-btn {
  background-color: #000000;
  color: #39ff14;
  border: 1px solid #39ff14;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 14px;
  flex-shrink: 0;
}

.voice-play-btn:hover {
  background-color: #39ff14;
  color: #000000;
}

.voice-meta {
  display: flex;
  flex-direction: column;
  font-size: 11px;
}
.chat-message {
  position: relative;
  overflow: visible;
}

.floating-reaction {
  position: absolute;
  bottom: 100%;
  font-size: 22px;
  pointer-events: none;
  animation: floatUp 1.2s ease-out forwards;
}

@keyframes floatUp {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-45px) scale(1.5);
  }
}
.photo-btn {
  padding: 8px 12px;
  background-color: #000000;
  color: #39ff14;
  border: 1px solid #39ff14;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  margin-right: 8px;
}

.photo-btn:hover {
  background-color: #39ff14;
  color: #000000;
}

.photo-thumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  padding: 8px 12px;
  background-color: #0a0a0a;
  border: 1px solid #ff9100;
  border-radius: 8px;
  max-width: 320px;
}

.photo-thumb-icon {
  font-size: 22px;
}

.photo-thumb-meta {
  display: flex;
  flex-direction: column;
  font-size: 11px;
}

.photo-thumb-handle {
  font-weight: bold;
}

.photo-thumb-hint {
  color: #1f7a0d;
}

.photo-thumb.expired {
  border-color: #444;
  cursor: default;
  opacity: 0.6;
}

.photo-thumb-countdown {
  font-size: 11px;
  font-weight: bold;
  color: #ff9100;
  flex-shrink: 0;
  white-space: nowrap;
}

.photo-reveal-btn {
  background-color: #000000;
  color: #39ff14;
  border: 1px solid #39ff14;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.5px;
  cursor: pointer;
  margin-left: auto;
  flex-shrink: 0;
  white-space: nowrap;
}

.photo-reveal-btn:hover {
  background-color: #39ff14;
  color: #000000;
}

.photo-thumb.burning {
  animation: photoBurn 1.1s ease-in-out forwards;
  pointer-events: none;
}

@keyframes photoBurn {
  0% {
    background-color: #0a0a0a;
    border-color: #ff9100;
    box-shadow: 0 0 0 rgba(255, 100, 0, 0);
    filter: brightness(1);
  }
  20% {
    background-color: #2b1400;
    border-color: #ff6a00;
    box-shadow: 0 0 14px 4px rgba(255, 120, 0, 0.6);
    filter: brightness(1.15);
  }
  50% {
    background-color: #ff6a00;
    border-color: #ffcc00;
    box-shadow: 0 0 24px 8px rgba(255, 60, 0, 0.85);
    filter: brightness(1.3) saturate(1.4);
  }
  75% {
    background-color: #1a0500;
    border-color: #661a00;
    box-shadow: 0 0 10px 3px rgba(255, 40, 0, 0.4);
    filter: brightness(0.8);
  }
  100% {
    background-color: #050505;
    border-color: #333;
    box-shadow: none;
    filter: brightness(0.6);
    opacity: 0.7;
    transform: scale(0.96);
  }
}

.photo-viewer-overlay {
  position: fixed;
  inset: 0;
  background-color: #000000;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.photo-viewer-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background-color: rgba(0,0,0,0.7);
}

.photo-countdown-track {
  flex: 1;
  height: 4px;
  background-color: #1a1a1a;
  border-radius: 2px;
  overflow: hidden;
}

.photo-countdown-fill {
  height: 100%;
  background-color: #ff9100;
  width: 100%;
}

.photo-countdown-text {
  color: #ff9100;
  font-size: 13px;
  font-weight: bold;
  min-width: 32px;
}

.photo-viewer-img {
  max-width: 92vw;
  max-height: 85vh;
  object-fit: contain;
  user-select: none;
  -webkit-user-select: none;
}
.msg-timestamp {
  font-size: 10px;
  color: #1f7a0d;
  margin-left: 6px;
}
:root {
  --app-font-family: 'Courier New', Courier, monospace;
  --app-text-color: #39ff14;
  --app-font-size: 14px;
}


body {
  font-family: var(--app-font-family);
}

body.bold-text {
  font-weight: bold;
}

.app-header h1,
.join-title-block h1,
.field-label,
.chat-message,
.typing-indicator,
.highrollers-text,
.scho-label {
  color: var(--app-text-color) !important;
}

.chat-message,
.system-msg,
.typing-indicator,
#message-input {
  font-size: var(--app-font-size);
}




.options-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 12px;
}

.options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #39ff14;
  cursor: pointer;
}

.options-row-column {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.options-select {
  background-color: #000000;
  color: #39ff14;
  border: 1px solid #39ff14;
  border-radius: 4px;
  padding: 4px 24px 4px 6px;
  font-size: 12px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  max-width: 160px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><polygon points='0,0 10,0 5,6' fill='%2339ff14'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
}

.options-select::-ms-expand {
  display: none;
}
.options-select::-ms-expand {
  display: none;
}

.options-select option {
  background-color: #000000;
  color: #39ff14;
}
@media (max-width: 480px) {
  .options-select {
    font-size: 12px;
    max-width: 130px;
    padding: 4px 22px 4px 6px;
  }
}

.options-color-grid {
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
  margin-bottom: 0;
}

.options-color-grid .color-swatch {
  width: 24px;
  height: 24px;
}

@media (max-width: 480px) {
  .input-row {
    padding: 6px;
    gap: 3px;
  }

  #message-input {
    padding: 6px;
  }

  .photo-btn,
  .mic-btn,
  #send-btn {
    padding: 6px 10px;
    font-size: 14px;
  }
}
.custom-select-wrap {
  position: relative;
}

.custom-select-btn {
  background-color: #000000;
  color: #39ff14;
  border: 1px solid #39ff14;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 12px;
  font-family: var(--app-font-family);
  cursor: pointer;
  min-width: 90px;
  text-align: left;
}

.custom-select-btn:hover {
  background-color: #39ff14;
  color: #000000;
}

.custom-select-list {
  position: absolute;
  top: 110%;
  right: 0;
  background-color: #000000;
  border: 1px solid #39ff14;
  border-radius: 4px;
  list-style: none;
  min-width: 110px;
  max-height: 160px;
  overflow-y: auto;
  z-index: 20;
  padding: 4px 0;
}

.custom-select-list li {
  color: #39ff14;
  font-size: 12px;
  font-family: var(--app-font-family);
  padding: 6px 10px;
  cursor: pointer;
}

.custom-select-list li:hover,
.custom-select-list li.active {
  background-color: #39ff14;
  color: #000000;
}

/* ---------- Compact scroll-wheel pickers (Options panel) ---------- */
.wheel-panel {
  position: fixed;
  z-index: 20;
  background-color: #000000;
  border: 1px solid #39ff14;
  border-radius: 4px;
  width: 180px;
}

.wheel-panel.hidden {
  display: none;
}

.wheel-list {
  position: relative;
  height: 96px;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  list-style: none;
  margin: 0;
  padding: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
}

.wheel-list:active {
  cursor: grabbing;
}

.wheel-item {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 32px;
  margin-top: -16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #39ff14;
  cursor: pointer;
  will-change: transform, opacity;
  transition: text-shadow 150ms ease;
  text-align: center;
  padding: 0 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}

.wheel-item.selected {
  text-shadow: 0 0 8px currentColor, 0 0 16px currentColor;
}

.wheel-highlight {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 32px;
  transform: translateY(-50%);
  border-top: 1px solid rgba(57, 255, 20, 0.35);
  border-bottom: 1px solid rgba(57, 255, 20, 0.35);
  pointer-events: none;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background-color: #000000;
}

::-webkit-scrollbar-thumb {
  background-color: #39ff14;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #2ecc0f;
}

html {
  scrollbar-width: thin;
  scrollbar-color: #39ff14 #000000;
}

.users-dropdown,
.messages-box {
  scrollbar-width: thin;
  scrollbar-color: #39ff14 #000000;
}
.profile-panel {
  background-color: #0a0a0a;
  border: 1px solid #39ff14;
  border-radius: 10px;
  padding: 24px;
  width: 90vw;
  max-width: 360px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  text-align: center;
}

.profile-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
}

.profile-handle {
  font-size: 22px;
  margin-bottom: 4px;
}

.profile-rank {
  font-size: 13px;
  color: #ff9100;
  margin-bottom: 16px;
}

.profile-reactions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 13px;
}

.profile-reaction-pill {
  background-color: #000000;
  border: 1px solid #1f7a0d;
  border-radius: 12px;
  padding: 4px 10px;
}

.profile-badges-title {
  font-size: 12px;
  opacity: 0.7;
  margin-bottom: 10px;
  text-align: left;
}

.profile-badges-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.profile-badge {
  background-color: #000000;
  border: 1px solid #1f7a0d;
  border-radius: 8px;
  padding: 8px 4px;
  font-size: 22px;
  opacity: 0.3;
  filter: grayscale(1);
  position: relative;
}

.profile-badge.unlocked {
  opacity: 1;
  filter: none;
  border-color: #39ff14;
  cursor: pointer;
}

.profile-badge.equipped {
  border-color: #ffd700;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

.profile-badge .badge-name {
  display: block;
  font-size: 8px;
  margin-top: 2px;
  color: #39ff14;
}
.bio-textarea {
  width: 100%;
  min-height: 60px;
  padding: 8px;
  background-color: #000000;
  color: #39ff14;
  border: 1px solid #39ff14;
  border-radius: 4px;
  font-family: var(--app-font-family);
  font-size: 12px;
  resize: vertical;
}

.bio-textarea::placeholder {
  color: #1f7a0d;
}

.bio-save-btn {
  align-self: flex-start;
  padding: 6px 14px;
  background-color: #000000;
  color: #39ff14;
  border: 1px solid #39ff14;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.bio-save-btn:hover {
  background-color: #39ff14;
  color: #000000;
}

.profile-bio {
  font-size: 13px;
  color: #a8ffb0;
  font-style: italic;
  margin-bottom: 16px;
  padding: 0 8px;
}
.switch-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 42px;
  height: 22px;
  background-color: #ff2b2b;
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  outline: none;
  flex-shrink: 0;
  transition: background-color 0.2s ease;
}

.switch-checkbox::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background-color: #ffffff;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.switch-checkbox:checked {
  background-color: #39ff14;
}

.switch-checkbox:checked::before {
  transform: translateX(20px);
}

.size-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: #1f7a0d;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.size-slider::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: #1f7a0d;
}

.size-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -7px;
  border-radius: 50%;
  background: #39ff14;
  box-shadow: 0 0 6px rgba(57, 255, 20, 0.8);
  cursor: pointer;
}

.size-slider::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: #1f7a0d;
}

.size-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 50%;
  background: #39ff14;
  box-shadow: 0 0 6px rgba(57, 255, 20, 0.8);
  cursor: pointer;
}
:root {
  --accent-color: #39ff14;
}

.top-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #0a0a0a;
  color: #39ff14;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 12px;
  font-family: var(--app-font-family);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease, color 150ms ease;
}

.top-btn-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: inherit;
  transition: color 150ms ease;
}

.top-btn:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  box-shadow: 0 0 8px color-mix(in srgb, var(--accent-color) 40%, transparent);
}

.top-btn:active {
  transform: scale(0.96);
  border-color: var(--accent-color);
  color: var(--accent-color);
  box-shadow: 0 0 4px color-mix(in srgb, var(--accent-color) 30%, transparent);
}
.heat-notification {
  color: #39ff14;
  font-weight: bold;
  margin-bottom: 8px;
}
/* ---------- Join screen enhancements ---------- */

.join-screen {
  position: relative;
  overflow: hidden;
}

.ember-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.ember-bg::before,
.ember-bg::after {
  content: "";
  position: absolute;
  bottom: -20px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff9100;
  box-shadow: 0 0 8px 2px rgba(255, 145, 0, 0.8);
  opacity: 0;
  animation: emberRise 6s linear infinite;
}

.ember-bg::before {
  left: 20%;
  animation-delay: 0s;
}

.ember-bg::after {
  left: 70%;
  animation-delay: 3s;
  background: #39ff14;
  box-shadow: 0 0 8px 2px rgba(57, 255, 20, 0.7);
}

@keyframes emberRise {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) translateX(30px);
    opacity: 0;
  }
}

.join-title-block,
.join-box {
  position: relative;
  z-index: 1;
}

.handle-preview {
  text-align: center;
  font-size: 15px;
  font-weight: bold;
  min-height: 20px;
  margin-bottom: 16px;
  color: #1f7a0d;
  transition: color 150ms ease;
}

.color-swatch {
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.color-swatch.selected {
  transform: scale(1.18);
  box-shadow: 0 0 12px 2px currentColor;
}

/* =========================================================
   C64-STYLE TITLE SCREEN — scanlines, boot text, terminal
   panel header, and pixel-art chilli decorations.
   Purely decorative — does not touch input/roller/button logic.
   ========================================================= */

/* ---- CRT scanlines + edge vignette, sits above everything ---- */
.join-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  background-image:
    repeating-linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.15) 0px,
      rgba(0, 0, 0, 0.15) 1px,
      transparent 1px,
      transparent 3px
    ),
    radial-gradient(
      ellipse at center,
      rgba(0, 0, 0, 0) 55%,
      rgba(0, 0, 0, 0.55) 100%
    );
}

/* ---- Boot-up text sequence ---- */
.boot-text {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 1px;
  color: #39ff14;
  opacity: 0.85;
}

.boot-text .boot-divider {
  opacity: 0.5;
  letter-spacing: 2px;
}

.boot-text .boot-ready {
  color: #ffee00;
  text-shadow: 0 0 6px rgba(255, 238, 0, 0.7);
  margin-top: 2px;
}

.boot-text .boot-prompt {
  margin-top: 2px;
}

.boot-cursor {
  display: inline-block;
  animation: bootCursorBlink 1s steps(1) infinite;
}

@keyframes bootCursorBlink {
  0%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0;
  }
}

@media (max-width: 480px) {
  .boot-text {
    font-size: 10px;
  }
}

/* ---- Terminal-style header bar inside the join box ---- */
.terminal-header {
  border: 3px double #39ff14;
  padding: 5px 0;
  margin: -28px -28px 20px -28px;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 2px;
  color: #39ff14;
  background-color: #071a04;
}

/* ---- Pixel-art chilli decorations ---- */
.pixel-chillis {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.chilli-float {
  position: absolute;
  animation: chilliBob 5s ease-in-out infinite;
}

.pc-1 {
  top: 8%;
  left: 7%;
  animation-delay: 0s;
}

.pc-2 {
  top: 10%;
  right: 8%;
  animation-delay: 1.2s;
}

.pc-3 {
  bottom: 14%;
  left: 10%;
  animation-delay: 2.4s;
}

.pc-4 {
  bottom: 10%;
  right: 7%;
  animation-delay: 0.6s;
}

@keyframes chilliBob {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@media (max-width: 480px) {
  .pixel-chillis {
    display: none;
  }
}

/* Single 3px "pixel" base — the entire chilli sprite is drawn with
   box-shadow, classic CSS pixel-art technique, no image files needed. */
.pixel-chilli {
  width: 3px;
  height: 3px;
  background: transparent;
  transform: scale(1.3);
  transform-origin: top left;
  animation: chilliGlowPulse 6s ease-in-out infinite;
  box-shadow:
    /* stalk */
    6px 0px 0 0 #1f7a0d,
    6px 3px 0 0 #39ff14,
    3px 3px 0 0 #1f7a0d,
    /* shoulders */
    3px 6px 0 0 #ff9100,
    6px 6px 0 0 #ff2b2b,
    9px 6px 0 0 #8a0000,
    /* body */
    0px 9px 0 0 #ff9100,
    3px 9px 0 0 #ff2b2b,
    6px 9px 0 0 #ff2b2b,
    9px 9px 0 0 #ff2b2b,
    12px 9px 0 0 #8a0000,
    0px 12px 0 0 #ff9100,
    3px 12px 0 0 #ff2b2b,
    6px 12px 0 0 #ff2b2b,
    9px 12px 0 0 #ff2b2b,
    12px 12px 0 0 #8a0000,
    0px 15px 0 0 #ff9100,
    3px 15px 0 0 #ff2b2b,
    6px 15px 0 0 #ff2b2b,
    9px 15px 0 0 #ff2b2b,
    12px 15px 0 0 #8a0000,
    /* taper */
    3px 18px 0 0 #ff9100,
    6px 18px 0 0 #ff2b2b,
    9px 18px 0 0 #ff2b2b,
    12px 18px 0 0 #8a0000,
    3px 21px 0 0 #ff9100,
    6px 21px 0 0 #ff2b2b,
    9px 21px 0 0 #8a0000,
    /* tip */
    6px 24px 0 0 #ff9100,
    9px 24px 0 0 #ff2b2b,
    6px 27px 0 0 #8a0000;
}

@keyframes chilliGlowPulse {
  0%, 85%, 100% {
    filter: drop-shadow(0 0 3px rgba(255, 43, 43, 0.35));
  }
  90% {
    filter: drop-shadow(0 0 7px rgba(255, 145, 0, 0.7));
  }
}

.pc-2 .pixel-chilli {
  transform: scale(1) rotate(12deg);
}

.pc-3 .pixel-chilli {
  transform: scale(1.6) rotate(18deg) scaleX(-1);
}

.pc-4 .pixel-chilli {
  transform: scale(1.15) rotate(-14deg);
}
