/* === RESET & BASE === */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  background: #000;
  font-family: 'Courier New', Courier, monospace;
  color: #fff;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* === MODE SELECTION LANDING PAGE === */
#mode-select {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  z-index: 100;
  display: flex;
  overflow: hidden;
}

/* Title centered on the split */
#mode-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-family: 'Courier New', Courier, monospace;
  font-weight: bold;
  letter-spacing: 12px;
  z-index: 102;
  pointer-events: none;
  /* Split coloring via background-clip */
  background: linear-gradient(to right, #fff 50%, #000 50%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* Ensure text stays crisp on the boundary */
  text-align: center;
  white-space: nowrap;
}

.mode-half {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: flex 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.mode-half-dark {
  background: #000;
}

.mode-half-light {
  background: #fff;
}

.mode-label {
  font-family: 'Courier New', Courier, monospace;
  font-size: clamp(0.7rem, 2vw, 1rem);
  letter-spacing: 6px;
  text-transform: uppercase;
  position: absolute;
  bottom: 20%;
  opacity: 0.4;
  transition: opacity 0.3s;
}

.mode-half-dark .mode-label {
  color: #fff;
}

.mode-half-light .mode-label {
  color: #000;
}

.mode-half:hover .mode-label {
  opacity: 0.8;
}

/* Portrait: split top/bottom */
@media (orientation: portrait) {
  #mode-select {
    flex-direction: column;
  }
  #mode-title {
    background: linear-gradient(to bottom, #fff 50%, #000 50%);
    -webkit-background-clip: text;
    background-clip: text;
  }
}

/* Click animation: chosen side takes over */
#mode-select.choosing .mode-half.chosen {
  flex: 20;
}
#mode-select.choosing .mode-half:not(.chosen) {
  flex: 0;
}
#mode-select.choosing #mode-title {
  opacity: 0;
  transition: opacity 0.4s ease;
}
#mode-select.choosing .mode-label {
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* === GAME AREA === */
#game-area {
  position: relative;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background: #000;
  padding-top: env(safe-area-inset-top);
}

#halo-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* === PROGRESS BAR === */
#progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 10;
}

#progress-fill {
  height: 100%;
  width: 0%;
  background: #fff;
  transition: width 0.3s ease;
}

/* === UPGRADE TOGGLE (minimal breathing dot, large touch target) === */
#upgrade-toggle {
  position: absolute;
  top: calc(8px + env(safe-area-inset-top));
  right: calc(8px + env(safe-area-inset-right));
  z-index: 20;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  border: none;
  padding: 0;
  /* Absorb entrance animation */
  animation: toggle-appear 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes toggle-appear {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  60% {
    transform: scale(1.8);
    opacity: 1;
  }
  80% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

#upgrade-toggle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
  animation: breathe 3s ease-in-out infinite;
}

/* Absorb ring — contracts inward toward the dot */
#upgrade-toggle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transform: translate(-50%, -50%);
  animation: absorb-ring 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes absorb-ring {
  0% {
    width: 28px;
    height: 28px;
    opacity: 0;
  }
  20% {
    opacity: 0.4;
  }
  100% {
    width: 8px;
    height: 8px;
    opacity: 0;
  }
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.3);
  }
}

/* Notification badge (new upgrade available) */
#upgrade-toggle.has-new::after {
  animation: breathe-notify 1.5s ease-in-out infinite;
}

@keyframes breathe-notify {
  0%,
  100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.6);
  }
}

/* === UPGRADE PANEL === */
#upgrade-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 85vw;
  height: 100%;
  background: #000;
  border-left: 1px solid #fff;
  z-index: 30;
  overflow-y: auto;
  padding: 20px;
  padding-top: calc(20px + env(safe-area-inset-top));
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

#upgrade-panel.open {
  transform: translateX(0);
}

#upgrade-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid #fff;
  padding-bottom: 12px;
}

#lumen-counter {
  font-size: 0.9rem;
  font-weight: normal;
  letter-spacing: 1px;
  opacity: 0.6;
}

#upgrade-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* === UPGRADE ITEMS === */
.upgrade-item {
  border: 1px solid #fff;
  border-radius: 4px;
  padding: 14px;
  margin-bottom: 10px;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease;
  position: relative;
}

.upgrade-item:hover:not(.locked):not(.maxed) {
  background: #fff;
  color: #000;
}

.upgrade-item.locked {
  opacity: 0.3;
  cursor: default;
}

.upgrade-item.affordable:not(.maxed) {
  border-width: 2px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    border-color: rgba(255, 255, 255, 0.4);
  }
  50% {
    border-color: rgba(255, 255, 255, 1);
  }
}

.upgrade-item.maxed {
  opacity: 0.3;
  cursor: default;
  border-style: dashed;
}

.upgrade-name {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 4px;
}

.upgrade-desc {
  font-size: 0.75rem;
  margin-bottom: 6px;
}

.upgrade-effect {
  font-size: 0.7rem;
  opacity: 0.5;
  margin-bottom: 6px;
  font-style: italic;
}

.upgrade-cost {
  font-size: 0.8rem;
}

.upgrade-count {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.8rem;
}

/* === RESET BUTTON === */
#panel-footer-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 20px auto 10px;
}

#reset-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.3);
  padding: 8px 12px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.65rem;
  cursor: pointer;
  letter-spacing: 1px;
  transition:
    border-color 0.2s,
    color 0.2s;
}

#reset-btn:hover {
  border-color: rgba(255, 255, 255, 0.6);
  color: rgba(255, 255, 255, 0.6);
}

/* === ADMIN TOGGLE === */
#admin-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

#admin-checkbox {
  display: none;
}

#admin-slider {
  width: 32px;
  height: 16px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 200, 0, 0.3);
  border-radius: 8px;
  position: relative;
  transition:
    background 0.2s,
    border-color 0.2s;
}

#admin-slider::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 10px;
  height: 10px;
  background: rgba(255, 200, 0, 0.4);
  border-radius: 50%;
  transition:
    transform 0.2s,
    background 0.2s;
}

#admin-checkbox:checked + #admin-slider {
  background: rgba(255, 200, 0, 0.2);
  border-color: rgba(255, 200, 0, 0.7);
}

#admin-checkbox:checked + #admin-slider::after {
  transform: translateX(16px);
  background: rgba(255, 200, 0, 0.9);
}

#admin-label {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.65rem;
  letter-spacing: 1px;
  color: rgba(255, 200, 0, 0.4);
  transition: color 0.2s;
}

#admin-checkbox:checked ~ #admin-label {
  color: rgba(255, 200, 0, 0.9);
}

/* === VICTORY === */
#victory-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 50;
  background: #fff;
  color: #000;
}

#victory-screen h1 {
  font-size: 3rem;
  letter-spacing: 8px;
  margin-bottom: 16px;
}

#victory-screen p {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

#restart-btn {
  background: #000;
  color: #fff;
  border: 2px solid #000;
  padding: 12px 32px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1rem;
  cursor: pointer;
  letter-spacing: 2px;
  transition:
    background 0.2s,
    color 0.2s;
}

#restart-btn:hover {
  background: #fff;
  color: #000;
}

/* === LIGHT SWITCH === */
#switch-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 40;
  animation: switchFadeIn 1.5s ease forwards;
}

@keyframes switchFadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

#switch-hint {
  font-size: 1rem;
  letter-spacing: 4px;
  margin-bottom: 40px;
  opacity: 0;
  animation: hintAppear 2s ease 0.8s forwards;
  text-transform: uppercase;
}

@keyframes hintAppear {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 0.6;
    transform: translateY(0);
  }
}

#light-switch {
  cursor: pointer;
  opacity: 0;
  animation: switchAppear 1s ease 0.3s forwards;
}

@keyframes switchAppear {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

#switch-plate {
  width: 60px;
  height: 100px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s;
}

#switch-plate:hover {
  border-color: rgba(255, 255, 255, 1);
}

#switch-lever {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 36px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  transition: all 0.3s ease;
}

#switch-plate:hover #switch-lever {
  background: rgba(255, 255, 255, 0.8);
}

#switch-lever.on {
  bottom: auto;
  top: 10px;
  background: #fff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

/* === INTRO OVERLAY === */
#intro-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #000;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.8s ease;
}

#intro-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

#intro-orb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 40px 15px rgba(255, 255, 255, 0.6),
    0 0 80px 30px rgba(255, 255, 255, 0.3);
  animation: intro-orb-die 4s ease-in forwards;
  margin-bottom: 40px;
}

@keyframes intro-orb-die {
  0% {
    opacity: 1;
    transform: scale(1);
    box-shadow:
      0 0 40px 15px rgba(255, 255, 255, 0.6),
      0 0 80px 30px rgba(255, 255, 255, 0.3);
  }
  30% {
    opacity: 0.7;
    transform: scale(0.9);
  }
  50% {
    opacity: 0.9;
    transform: scale(0.95);
  }
  70% {
    opacity: 0.4;
    transform: scale(0.7);
    box-shadow:
      0 0 20px 8px rgba(255, 255, 255, 0.3),
      0 0 40px 15px rgba(255, 255, 255, 0.1);
  }
  85% {
    opacity: 0.6;
    transform: scale(0.75);
  }
  100% {
    opacity: 0.15;
    transform: scale(0.4);
    box-shadow:
      0 0 8px 3px rgba(255, 255, 255, 0.1),
      0 0 16px 6px rgba(255, 255, 255, 0.05);
  }
}

#intro-text {
  font-size: clamp(0.8rem, 2.5vw, 1.1rem);
  letter-spacing: 4px;
  text-transform: uppercase;
  opacity: 0;
  animation: intro-text-appear 2s ease 0.5s forwards;
}

@keyframes intro-text-appear {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 0.6;
    transform: translateY(0);
  }
}

#intro-plea {
  font-size: clamp(0.7rem, 2vw, 0.9rem);
  letter-spacing: 3px;
  opacity: 0;
  margin-top: 16px;
  animation: intro-plea-appear 2s ease 2s forwards;
}

@keyframes intro-plea-appear {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 0.4;
  }
}

/* OFF mode intro: inverted colors */
body.mode-off #intro-overlay {
  background: #fff;
}

body.mode-off #intro-orb {
  background: #000;
  box-shadow:
    0 0 40px 15px rgba(0, 0, 0, 0.4),
    0 0 80px 30px rgba(0, 0, 0, 0.2);
  animation: intro-orb-die-off 4s ease-in forwards;
}

@keyframes intro-orb-die-off {
  0% {
    opacity: 1;
    transform: scale(1);
    box-shadow:
      0 0 40px 15px rgba(0, 0, 0, 0.4),
      0 0 80px 30px rgba(0, 0, 0, 0.2);
  }
  30% {
    opacity: 0.7;
    transform: scale(0.9);
  }
  50% {
    opacity: 0.9;
    transform: scale(0.95);
  }
  70% {
    opacity: 0.4;
    transform: scale(0.7);
    box-shadow:
      0 0 20px 8px rgba(0, 0, 0, 0.2),
      0 0 40px 15px rgba(0, 0, 0, 0.1);
  }
  85% {
    opacity: 0.6;
    transform: scale(0.75);
  }
  100% {
    opacity: 0.15;
    transform: scale(0.4);
    box-shadow:
      0 0 8px 3px rgba(0, 0, 0, 0.1),
      0 0 16px 6px rgba(0, 0, 0, 0.05);
  }
}

body.mode-off #intro-text,
body.mode-off #intro-plea {
  color: #000;
}

/* === SUN CINEMATIC === */
#sun-cinematic {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 45;
  pointer-events: none;
}

/* === HIDDEN UTILITY === */
.hidden {
  display: none !important;
}

/* === RESPONSIVE === */
@media (max-width: 500px) {
  #upgrade-panel {
    width: 100%;
    max-width: 100vw;
  }

  .upgrade-item {
    padding: 10px;
  }
}

/* ============================================
   MODE OFF — Inverted theme (white → dark)
   ============================================ */

body.mode-off {
  background: #fff;
  color: #000;
}

body.mode-off #game-area {
  background: #fff;
}

body.mode-off #progress-fill {
  background: #000;
}

body.mode-off #upgrade-toggle::after {
  background: #000;
}

body.mode-off #upgrade-toggle::before {
  border-color: rgba(0, 0, 0, 0.15);
}

body.mode-off #upgrade-panel {
  background: #fff;
  border-left: 1px solid #000;
}

body.mode-off #lumen-counter {
  color: #000;
}

body.mode-off #upgrade-close {
  color: #000;
}

body.mode-off #upgrade-panel-header {
  border-bottom: 1px solid #000;
}

body.mode-off .upgrade-item {
  border-color: #000;
  color: #000;
}

body.mode-off .upgrade-item:hover:not(.locked):not(.maxed) {
  background: #000;
  color: #fff;
}

body.mode-off .upgrade-item.affordable:not(.maxed) {
  animation: pulse-off 2s ease-in-out infinite;
}

@keyframes pulse-off {
  0%,
  100% {
    border-color: rgba(0, 0, 0, 0.4);
  }
  50% {
    border-color: rgba(0, 0, 0, 1);
  }
}

body.mode-off #reset-btn {
  border-color: rgba(0, 0, 0, 0.2);
  color: rgba(0, 0, 0, 0.3);
}

body.mode-off #reset-btn:hover {
  border-color: rgba(0, 0, 0, 0.6);
  color: rgba(0, 0, 0, 0.6);
}

body.mode-off #admin-slider {
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(180, 140, 0, 0.3);
}

body.mode-off #admin-slider::after {
  background: rgba(180, 140, 0, 0.4);
}

body.mode-off #admin-checkbox:checked + #admin-slider {
  background: rgba(180, 140, 0, 0.15);
  border-color: rgba(180, 140, 0, 0.7);
}

body.mode-off #admin-checkbox:checked + #admin-slider::after {
  background: rgba(180, 140, 0, 0.9);
}

body.mode-off #admin-label {
  color: rgba(180, 140, 0, 0.4);
}

body.mode-off #admin-checkbox:checked ~ #admin-label {
  color: rgba(180, 140, 0, 0.9);
}

body.mode-off #switch-plate {
  border-color: rgba(0, 0, 0, 0.6);
  background: rgba(0, 0, 0, 0.03);
}

body.mode-off #switch-plate:hover {
  border-color: rgba(0, 0, 0, 1);
}

body.mode-off #switch-lever {
  background: rgba(0, 0, 0, 0.5);
}

body.mode-off #switch-plate:hover #switch-lever {
  background: rgba(0, 0, 0, 0.8);
}

body.mode-off #switch-lever.on {
  background: #000;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

body.mode-off #switch-hint {
  color: #000;
}

body.mode-off #victory-screen {
  background: #000;
  color: #fff;
}

body.mode-off #restart-btn {
  background: #fff;
  color: #000;
  border-color: #fff;
}

body.mode-off #restart-btn:hover {
  background: #000;
  color: #fff;
}

/* === PRESTIGE BUTTON === */
#prestige-info {
  font-size: 0.75rem;
  margin-bottom: 20px;
  opacity: 0.5;
  letter-spacing: 2px;
}

#prestige-btn {
  background: none;
  color: #000;
  border: 2px solid #000;
  padding: 12px 32px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1rem;
  cursor: pointer;
  letter-spacing: 2px;
  transition:
    background 0.2s,
    color 0.2s;
  margin-bottom: 12px;
}

#prestige-btn:hover {
  background: #000;
  color: #fff;
}

body.mode-off #prestige-btn {
  color: #fff;
  border-color: #fff;
}

body.mode-off #prestige-btn:hover {
  background: #fff;
  color: #000;
}

/* === OFFLINE EARNINGS POPUP === */
#offline-popup {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 55;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
  animation: offlineFadeIn 0.5s ease;
}

#offline-popup.fade-out {
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

#offline-text {
  font-size: clamp(0.8rem, 2.5vw, 1.1rem);
  letter-spacing: 3px;
  text-align: center;
  line-height: 2;
  opacity: 0.7;
}

@keyframes offlineFadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

body.mode-off #offline-popup {
  background: rgba(255, 255, 255, 0.85);
  color: #000;
}

/* === RESET CONFIRMATION === */
#reset-btn.confirming {
  border-color: rgba(255, 80, 80, 0.8);
  color: rgba(255, 80, 80, 0.8);
}

body.mode-off #reset-btn.confirming {
  border-color: rgba(200, 50, 50, 0.8);
  color: rgba(200, 50, 50, 0.8);
}

/* === MULTIPLAYER BALANCE INDICATOR (top-left circle) === */
#mp-balance {
  position: fixed;
  top: calc(8px + env(safe-area-inset-top));
  left: calc(8px + env(safe-area-inset-left));
  z-index: 20;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: toggle-appear 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

#mp-balance-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  background: conic-gradient(from 270deg, #fff 0%, #fff 50%, #000 50%, #000 100%);
  transition: border-color 0.3s;
  animation: balance-breathe 4s ease-in-out infinite;
}

#mp-balance:hover #mp-balance-circle {
  border-color: rgba(255, 255, 255, 0.8);
}

/* Tiny online pip */
#mp-balance-pip {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(100, 255, 100, 0.7);
  opacity: 0;
  transition: opacity 0.3s;
}

#mp-balance.online #mp-balance-pip {
  opacity: 1;
}

#mp-balance.disconnected #mp-balance-pip {
  opacity: 1;
  background: rgba(255, 100, 100, 0.7);
  animation: pip-blink 2s ease-in-out infinite;
}

@keyframes pip-blink {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}

@keyframes balance-breathe {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.05);
  }
}

/* --- Mode OFF overrides --- */
body.mode-off #mp-balance-circle {
  border-color: rgba(0, 0, 0, 0.4);
  background: conic-gradient(from 270deg, #000 0%, #000 50%, #fff 50%, #fff 100%);
}

body.mode-off #mp-balance:hover #mp-balance-circle {
  border-color: rgba(0, 0, 0, 0.8);
}

/* Grade badge next to balance indicator */
#mp-balance-grade {
  position: absolute;
  top: 44px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.5rem;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  pointer-events: none;
}

body.mode-off #mp-balance-grade {
  color: rgba(0, 0, 0, 0.5);
}

/* === MULTIPLAYER OVERLAY === */
#mp-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  z-index: 70;
}

#mp-overlay-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  animation: offlineFadeIn 0.3s ease;
}

body.mode-off #mp-overlay-backdrop {
  background: rgba(255, 255, 255, 0.85);
}

#mp-overlay-content {
  position: relative;
  z-index: 1;
  max-width: 360px;
  margin: 0 auto;
  padding: 40px 24px 32px;
  padding-top: calc(40px + env(safe-area-inset-top));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  animation: overlaySlideIn 0.3s ease;
}

@keyframes overlaySlideIn {
  0% {
    opacity: 0;
    transform: translateY(-12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

#mp-overlay-close {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top));
  right: 12px;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
}

#mp-overlay-close:hover {
  opacity: 1;
}

body.mode-off #mp-overlay-close {
  color: #000;
}

#mp-overlay-title {
  font-size: clamp(0.9rem, 3vw, 1.2rem);
  letter-spacing: 4px;
  text-transform: uppercase;
  opacity: 0.6;
}

body.mode-off #mp-overlay-title {
  color: #000;
}

/* Overlay user section */
#mp-overlay-user {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  justify-content: center;
}

#mp-overlay-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

#mp-overlay-name {
  font-size: 0.75rem;
  letter-spacing: 1px;
  opacity: 0.7;
}

body.mode-off #mp-overlay-name {
  color: #000;
}

#mp-overlay-logout {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.4);
  padding: 4px 10px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.6rem;
  cursor: pointer;
  letter-spacing: 1px;
  transition:
    border-color 0.2s,
    color 0.2s;
}

#mp-overlay-logout:hover {
  border-color: rgba(255, 255, 255, 0.6);
  color: rgba(255, 255, 255, 0.7);
}

body.mode-off #mp-overlay-logout {
  border-color: rgba(0, 0, 0, 0.2);
  color: rgba(0, 0, 0, 0.4);
}

body.mode-off #mp-overlay-logout:hover {
  border-color: rgba(0, 0, 0, 0.6);
  color: rgba(0, 0, 0, 0.7);
}

/* Overlay war gauge */
#mp-overlay-war {
  width: 100%;
}

#mp-overlay-gauge {
  width: 100%;
  height: 4px;
  display: flex;
  border-radius: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

body.mode-off #mp-overlay-gauge {
  background: rgba(0, 0, 0, 0.08);
}

#mp-overlay-light-bar {
  height: 100%;
  width: 50%;
  background: rgba(255, 255, 255, 0.7);
  transition: width 0.5s ease;
}

#mp-overlay-dark-bar {
  height: 100%;
  width: 50%;
  background: rgba(255, 255, 255, 0.15);
  transition: width 0.5s ease;
}

body.mode-off #mp-overlay-light-bar {
  background: rgba(0, 0, 0, 0.15);
}

body.mode-off #mp-overlay-dark-bar {
  background: rgba(0, 0, 0, 0.7);
}

#mp-overlay-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.6rem;
  letter-spacing: 1px;
  opacity: 0.5;
  margin-top: 6px;
}

body.mode-off #mp-overlay-stats {
  color: #000;
}

#mp-overlay-online {
  text-align: center;
  font-size: 0.6rem;
  letter-spacing: 1px;
  opacity: 0.4;
  margin-top: 4px;
}

body.mode-off #mp-overlay-online {
  color: #000;
}

/* === MULTIPLAYER ONBOARDING CINEMATIC === */
#mp-onboarding {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  z-index: 65;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  opacity: 1;
  transition: opacity 0.8s ease;
}

#mp-onboarding.fade-out {
  opacity: 0;
  pointer-events: none;
}

body.mode-off #mp-onboarding {
  background: rgba(255, 255, 255, 0.92);
}

#mp-onboarding-orb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 30px 10px rgba(255, 255, 255, 0.5),
    0 0 60px 20px rgba(255, 255, 255, 0.2);
  margin-bottom: 40px;
  animation: onboarding-orb-pulse 3s ease-in-out infinite;
}

body.mode-off #mp-onboarding-orb {
  background: #000;
  box-shadow:
    0 0 30px 10px rgba(0, 0, 0, 0.3),
    0 0 60px 20px rgba(0, 0, 0, 0.15);
}

@keyframes onboarding-orb-pulse {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.3);
  }
}

#mp-onboarding-text1 {
  font-size: clamp(0.8rem, 2.5vw, 1.1rem);
  letter-spacing: 4px;
  text-transform: uppercase;
  opacity: 0;
  animation: onboarding-text1-in 2s ease 0.5s forwards;
  text-align: center;
  padding: 0 24px;
}

body.mode-off #mp-onboarding-text1 {
  color: #000;
}

@keyframes onboarding-text1-in {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 0.7;
    transform: translateY(0);
  }
}

#mp-onboarding-text2 {
  font-size: clamp(0.7rem, 2vw, 0.9rem);
  letter-spacing: 3px;
  opacity: 0;
  margin-top: 16px;
  animation: onboarding-text2-in 2s ease 2.5s forwards;
  text-align: center;
  padding: 0 24px;
}

body.mode-off #mp-onboarding-text2 {
  color: #000;
}

@keyframes onboarding-text2-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 0.5;
  }
}

/* Action buttons */
#mp-onboarding-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  margin-top: 32px;
  animation: onboarding-actions-in 0.6s ease forwards;
}

@keyframes onboarding-actions-in {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.mp-onboarding-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.7);
  padding: 10px 28px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.8rem;
  cursor: pointer;
  letter-spacing: 2px;
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s;
  min-width: 200px;
  text-align: center;
}

.mp-onboarding-btn:hover {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

body.mode-off .mp-onboarding-btn {
  border-color: rgba(0, 0, 0, 0.3);
  color: rgba(0, 0, 0, 0.7);
}

body.mode-off .mp-onboarding-btn:hover {
  border-color: rgba(0, 0, 0, 0.7);
  color: #000;
}

.mp-solo-btn {
  border: none;
  opacity: 0.4;
  font-size: 0.7rem;
  padding: 8px 20px;
  margin-top: 8px;
}

.mp-solo-btn:hover {
  opacity: 0.7;
  border: none;
}

/* Skip button (top-right) */
#mp-onboarding-skip {
  position: absolute;
  top: calc(16px + env(safe-area-inset-top));
  right: calc(16px + env(safe-area-inset-right));
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.3);
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.7rem;
  cursor: pointer;
  letter-spacing: 1px;
  transition: color 0.2s;
  animation: onboarding-actions-in 0.4s ease forwards;
}

#mp-onboarding-skip:hover {
  color: rgba(255, 255, 255, 0.6);
}

body.mode-off #mp-onboarding-skip {
  color: rgba(0, 0, 0, 0.3);
}

body.mode-off #mp-onboarding-skip:hover {
  color: rgba(0, 0, 0, 0.6);
}

/* === MULTIPLAYER OVERLAY — Enhanced sections === */

/* Season info */
#mp-overlay-season {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.65rem;
  letter-spacing: 1px;
  opacity: 0.4;
}

body.mode-off #mp-overlay-season {
  color: #000;
}

#mp-overlay-season-timer {
  opacity: 0.7;
}

#mp-overlay-season.last-day #mp-overlay-season-timer {
  color: rgba(255, 100, 100, 0.9);
  animation: pulse-alert 2s ease-in-out infinite;
}

@keyframes pulse-alert {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

/* Grade badge */
#mp-overlay-grade {
  font-size: 0.6rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.7;
  padding: 2px 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

body.mode-off #mp-overlay-grade {
  color: #000;
  border-color: rgba(0, 0, 0, 0.2);
}

/* Player contribution section */
#mp-overlay-player {
  width: 100%;
  text-align: center;
}

#mp-overlay-player-title {
  font-size: 0.6rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.4;
  margin-bottom: 6px;
}

body.mode-off #mp-overlay-player-title {
  color: #000;
}

#mp-overlay-player-contrib {
  font-size: 0.85rem;
  letter-spacing: 1px;
  opacity: 0.7;
}

body.mode-off #mp-overlay-player-contrib {
  color: #000;
}

#mp-overlay-player-streak {
  font-size: 0.6rem;
  letter-spacing: 1px;
  opacity: 0.5;
  margin-top: 4px;
}

body.mode-off #mp-overlay-player-streak {
  color: #000;
}

#mp-overlay-player-prestige {
  font-size: 0.55rem;
  letter-spacing: 1px;
  opacity: 0.4;
  margin-top: 6px;
  font-style: italic;
}

body.mode-off #mp-overlay-player-prestige {
  color: #000;
}

/* Contribution rate selector */
#mp-overlay-rate {
  margin-top: 12px;
  text-align: center;
}

#mp-overlay-rate-label {
  font-size: 0.55rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.35;
  margin-bottom: 8px;
}

body.mode-off #mp-overlay-rate-label {
  color: #000;
}

#mp-overlay-rate-btns {
  display: flex;
  gap: 6px;
  justify-content: center;
}

.mp-rate-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.4);
  padding: 4px 10px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.6rem;
  cursor: pointer;
  letter-spacing: 1px;
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s;
  border-radius: 2px;
}

.mp-rate-btn:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: rgba(255, 255, 255, 0.7);
}

.mp-rate-btn.active {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

body.mode-off .mp-rate-btn {
  border-color: rgba(0, 0, 0, 0.15);
  color: rgba(0, 0, 0, 0.4);
}

body.mode-off .mp-rate-btn:hover {
  border-color: rgba(0, 0, 0, 0.5);
  color: rgba(0, 0, 0, 0.7);
}

body.mode-off .mp-rate-btn.active {
  border-color: rgba(0, 0, 0, 0.7);
  color: #000;
  background: rgba(0, 0, 0, 0.1);
}

#mp-overlay-rate-desc {
  font-size: 0.5rem;
  letter-spacing: 1px;
  opacity: 0.25;
  margin-top: 6px;
}

body.mode-off #mp-overlay-rate-desc {
  color: #000;
}

/* Leaderboard button */
#mp-overlay-leaderboard-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.5);
  padding: 6px 20px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.65rem;
  cursor: pointer;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition:
    border-color 0.2s,
    color 0.2s;
}

#mp-overlay-leaderboard-btn:hover {
  border-color: rgba(255, 255, 255, 0.6);
  color: rgba(255, 255, 255, 0.8);
}

body.mode-off #mp-overlay-leaderboard-btn {
  border-color: rgba(0, 0, 0, 0.2);
  color: rgba(0, 0, 0, 0.5);
}

body.mode-off #mp-overlay-leaderboard-btn:hover {
  border-color: rgba(0, 0, 0, 0.6);
  color: rgba(0, 0, 0, 0.8);
}

/* === LEADERBOARD OVERLAY === */
#mp-leaderboard {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  z-index: 75;
}

#mp-leaderboard-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  animation: offlineFadeIn 0.3s ease;
}

body.mode-off #mp-leaderboard-backdrop {
  background: rgba(255, 255, 255, 0.92);
}

#mp-leaderboard-content {
  position: relative;
  z-index: 1;
  max-width: 360px;
  margin: 0 auto;
  padding: 40px 24px 32px;
  padding-top: calc(40px + env(safe-area-inset-top));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: overlaySlideIn 0.3s ease;
  max-height: 100dvh;
  overflow-y: auto;
}

#mp-leaderboard-close {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top));
  right: 12px;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
}

#mp-leaderboard-close:hover {
  opacity: 1;
}

body.mode-off #mp-leaderboard-close {
  color: #000;
}

#mp-leaderboard-title {
  font-size: clamp(0.8rem, 2.5vw, 1rem);
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.6;
}

body.mode-off #mp-leaderboard-title {
  color: #000;
}

/* Tabs */
#mp-leaderboard-tabs {
  display: flex;
  gap: 8px;
}

.mp-lb-tab {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.4);
  padding: 4px 14px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.65rem;
  cursor: pointer;
  letter-spacing: 1px;
  transition:
    border-color 0.2s,
    color 0.2s;
  border-radius: 2px;
}

.mp-lb-tab.active {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

body.mode-off .mp-lb-tab {
  border-color: rgba(0, 0, 0, 0.15);
  color: rgba(0, 0, 0, 0.4);
}

body.mode-off .mp-lb-tab.active {
  border-color: rgba(0, 0, 0, 0.6);
  color: #000;
}

/* Leaderboard list */
#mp-leaderboard-list {
  width: 100%;
  max-height: 50vh;
  overflow-y: auto;
}

.mp-lb-entry {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 0.65rem;
  letter-spacing: 1px;
  opacity: 0.6;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body.mode-off .mp-lb-entry {
  color: #000;
  border-bottom-color: rgba(0, 0, 0, 0.05);
}

.mp-lb-rank {
  width: 24px;
  text-align: right;
  opacity: 0.4;
}

.mp-lb-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.mp-lb-name {
  flex: 1;
}

.mp-lb-total {
  opacity: 0.5;
}

#mp-leaderboard-player-rank {
  font-size: 0.6rem;
  letter-spacing: 1px;
  opacity: 0.4;
  text-align: center;
}

body.mode-off #mp-leaderboard-player-rank {
  color: #000;
}

/* === SEASON END OVERLAY === */
#season-end-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  z-index: 80;
  opacity: 1;
  transition: opacity 0.8s ease;
}

#season-end-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

#season-end-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  animation: offlineFadeIn 0.5s ease;
}

body.mode-off #season-end-backdrop {
  background: rgba(255, 255, 255, 0.95);
}

#season-end-content {
  position: relative;
  z-index: 1;
  max-width: 360px;
  margin: 0 auto;
  padding: 60px 24px 40px;
  padding-top: calc(60px + env(safe-area-inset-top));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: overlaySlideIn 0.5s ease;
  text-align: center;
}

#season-end-orb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 40px 15px rgba(255, 255, 255, 0.5),
    0 0 80px 30px rgba(255, 255, 255, 0.2);
  animation: onboarding-orb-pulse 3s ease-in-out infinite;
  margin-bottom: 12px;
}

body.mode-off #season-end-orb {
  background: #000;
  box-shadow:
    0 0 40px 15px rgba(0, 0, 0, 0.3),
    0 0 80px 30px rgba(0, 0, 0, 0.15);
}

#season-end-title {
  font-size: clamp(0.9rem, 3vw, 1.3rem);
  letter-spacing: 4px;
  text-transform: uppercase;
  opacity: 0;
  animation: onboarding-text1-in 1.5s ease 0.3s forwards;
}

body.mode-off #season-end-title {
  color: #000;
}

#season-end-result {
  font-size: clamp(0.7rem, 2vw, 0.9rem);
  letter-spacing: 2px;
  opacity: 0;
  animation: onboarding-text2-in 1.5s ease 1s forwards;
}

body.mode-off #season-end-result {
  color: #000;
}

#season-end-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.65rem;
  letter-spacing: 1px;
  opacity: 0;
  animation: onboarding-text2-in 1s ease 1.5s forwards;
}

body.mode-off #season-end-stats {
  color: #000;
}

#season-end-vs {
  opacity: 0.3;
  font-size: 0.55rem;
}

#season-end-player {
  opacity: 0;
  animation: onboarding-text2-in 1s ease 2s forwards;
}

#season-end-grade,
#season-end-contrib,
#season-end-rank {
  font-size: 0.6rem;
  letter-spacing: 1px;
  opacity: 0.5;
  margin-bottom: 4px;
}

body.mode-off #season-end-player {
  color: #000;
}

#season-end-reward {
  margin-top: 8px;
  opacity: 0;
  animation: onboarding-text2-in 1s ease 2.5s forwards;
}

#season-end-reward-text {
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.5;
}

body.mode-off #season-end-reward-text {
  color: #000;
}

#season-end-reward-bonus {
  font-size: 1.1rem;
  letter-spacing: 3px;
  margin-top: 8px;
  animation: pulse-alert 2s ease-in-out infinite;
}

body.mode-off #season-end-reward-bonus {
  color: #000;
}

#season-end-claim,
#season-end-continue {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.7);
  padding: 10px 28px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.8rem;
  cursor: pointer;
  letter-spacing: 2px;
  transition:
    border-color 0.2s,
    color 0.2s;
  margin-top: 8px;
  opacity: 0;
  animation: onboarding-actions-in 0.6s ease 3s forwards;
}

#season-end-claim:hover,
#season-end-continue:hover {
  border-color: rgba(255, 255, 255, 0.8);
  color: #fff;
}

body.mode-off #season-end-claim,
body.mode-off #season-end-continue {
  border-color: rgba(0, 0, 0, 0.4);
  color: rgba(0, 0, 0, 0.7);
}

body.mode-off #season-end-claim:hover,
body.mode-off #season-end-continue:hover {
  border-color: rgba(0, 0, 0, 0.8);
  color: #000;
}

/* === STREAK LOSS TOAST === */
.mp-streak-toast {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  background: rgba(0, 0, 0, 0.85);
  color: rgba(255, 255, 255, 0.8);
  padding: 10px 20px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.65rem;
  letter-spacing: 1px;
  border: 1px solid rgba(255, 100, 100, 0.4);
  border-radius: 4px;
  animation: toast-in 0.4s ease;
  white-space: nowrap;
}

.mp-streak-toast.fade-out {
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

@keyframes toast-in {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

body.mode-off .mp-streak-toast {
  background: rgba(255, 255, 255, 0.85);
  color: rgba(0, 0, 0, 0.8);
  border-color: rgba(200, 50, 50, 0.4);
}

/* === OVERLAY LOGIN PROMPT (unauthenticated) === */
#mp-overlay-login {
  text-align: center;
  margin-top: 8px;
}

#mp-overlay-login-text {
  font-size: 0.6rem;
  letter-spacing: 1px;
  opacity: 0.5;
  margin-bottom: 10px;
}

#mp-overlay-login-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.mp-login-btn {
  display: inline-block;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.7);
  padding: 8px 18px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.7rem;
  letter-spacing: 1px;
  cursor: pointer;
  text-decoration: none;
  transition:
    border-color 0.2s,
    color 0.2s;
}

.mp-login-btn:hover {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

body.mode-off .mp-login-btn {
  border-color: rgba(0, 0, 0, 0.3);
  color: rgba(0, 0, 0, 0.7);
}

body.mode-off .mp-login-btn:hover {
  border-color: rgba(0, 0, 0, 0.6);
  color: #000;
}

body.mode-off #mp-overlay-login-text {
  color: #000;
}
