body.theme-purple {
  background-color: #120e1c;
  color: #e9e3f5;
}

body.theme-purple {
  background-image:
    radial-gradient(1.5px 1.5px at 20px 30px, rgba(255,255,255,0.9), transparent),
    radial-gradient(1px 1px at 70px 90px, rgba(255,255,255,0.6), transparent),
    radial-gradient(1.5px 1.5px at 130px 40px, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 170px 110px, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 40px 150px, rgba(255,255,255,0.7), transparent),
    radial-gradient(1.5px 1.5px at 100px 170px, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 190px 20px, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 10px 100px, rgba(255,255,255,0.6), transparent);
  background-repeat: repeat;
  background-size: 200px 200px;
}

body.theme-purple .game {
  background-image:
    radial-gradient(1px 1px at 20px 30px, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 70px 90px, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 130px 50px, rgba(255,255,255,0.55), transparent),
    radial-gradient(1px 1px at 40px 150px, rgba(255,255,255,0.5), transparent);
  background-repeat: repeat;
  background-size: 220px 220px;
}

body.theme-purple .game {
  background-color: #1a1428;
  border: 1px solid rgba(167, 139, 250, 0.15);
}

body.theme-purple .top {
  color: #a78bfa;
}

body.theme-purple .top::after {
  background: linear-gradient(to right, transparent, #a78bfa, transparent);
}

body.theme-purple #answer,
body.theme-purple #chat-input {
  background-color: #211a33;
  color: #f3effc;
  border: 1px solid #372a54;
}

body.theme-purple #answer:focus,
body.theme-purple #chat-input:focus {
  border-color: #a78bfa;
  outline: none;
}

body.theme-purple #answer-chat {
  color: #c4b5fd;
}

body.theme-purple #chat {
  background-color: #16101f;
  border: 1px solid #2a2140;
}

body.theme-purple #chat h4 {
  color: #8b7ba8;
}

body.theme-purple #chat-messages {
  color: #f0edf8;
}

body.theme-purple .message-text {
  color: #d8d0ec;
}

body.theme-purple #chat-messages::-webkit-scrollbar-track {
  background: #16101f;
}

body.theme-purple #chat-messages::-webkit-scrollbar-thumb {
  background: #a78bfa;
}

body.theme-purple #chat-messages::-webkit-scrollbar-thumb:hover {
  background: #c4b5fd;
}

body.theme-purple .tp-tab {
  background: #211a33 !important;
  color: #a78bfa !important;
}
body.theme-purple .tp-tab.active-tab {
  background: #a78bfa !important;
  color: #120e1c !important;
}




body.theme-purple #puzzle-btn,
body.theme-purple #top-players-btn,
body.theme-purple #game2048-btn,
body.theme-purple #draw-btn,
body.theme-purple #xo-btn,
body.theme-purple #main-gear-btn,
body.theme-purple #player-list-btn {
  background: linear-gradient(155deg, #2a1f42 0%, #1a1428 55%, #120e1c 100%) !important;
  border: 1px solid #c4b5fd !important;
  color: #a78bfa !important;
  box-shadow:
    0 0 0 3px #120e1c,
    0 0 0 4px rgba(167, 139, 250, 0.3),
    inset 0 0 10px rgba(167, 139, 250, 0.3),
    0 0 14px rgba(167, 139, 250, 0.45) !important;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5)) !important;
  overflow: hidden;
}

body.theme-purple #puzzle-btn::before,
body.theme-purple #top-players-btn::before,
body.theme-purple #game2048-btn::before,
body.theme-purple #draw-btn::before,
body.theme-purple #xo-btn::before,
body.theme-purple #main-gear-btn::before,
body.theme-purple #player-list-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 15%;
  width: 70%;
  height: 40%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), transparent);
  pointer-events: none;
}

body.theme-purple #puzzle-btn::after,
body.theme-purple #top-players-btn::after,
body.theme-purple #game2048-btn::after,
body.theme-purple #draw-btn::after,
body.theme-purple #xo-btn::after,
body.theme-purple #main-gear-btn::after,
body.theme-purple #player-list-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(196, 181, 253, 0.12), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(139, 92, 246, 0.12), transparent 50%);
  pointer-events: none;
}

body.theme-purple #puzzle-btn:hover,
body.theme-purple #top-players-btn:hover,
body.theme-purple #game2048-btn:hover,
body.theme-purple #draw-btn:hover,
body.theme-purple #xo-btn:hover,
body.theme-purple #main-gear-btn:hover,
body.theme-purple #player-list-btn:hover {
  background: linear-gradient(155deg, #372a55 0%, #241c38 55%, #1a1428 100%) !important;
  border-color: #e9d5ff !important;
  box-shadow:
    0 0 0 3px #120e1c,
    0 0 0 4px rgba(196, 181, 253, 0.45),
    inset 0 0 14px rgba(196, 181, 253, 0.4),
    0 0 20px rgba(167, 139, 250, 0.6) !important;
}









body.theme-purple #change-name {
  background-color: #1a1428 !important;
  border: 1px solid rgba(167, 139, 250, 0.5) !important;
  color: #a78bfa !important;
}

body.theme-purple #change-name:hover {
  background-color: #241c38 !important;
}

body.theme-purple #gear-menu {
  background-color: #1a1428 !important;
  border: 1px solid rgba(167, 139, 250, 0.5) !important;
}

body.theme-purple #gear-menu button {
  color: #a78bfa !important;
  border-bottom-color: rgba(167, 139, 250, 0.25) !important;
}

body.theme-purple #gear-menu button:hover {
  background-color: rgba(167, 139, 250, 0.1) !important;
}

body.theme-purple #current-word .typed {
  color: #a78bfa;
  text-shadow:
    0 0 8px rgba(167, 139, 250, 0.7),
    1px 1px 2px rgba(0, 0, 0, 0.6);
}

body.theme-purple #puzzle-modal,
body.theme-purple #instructions-modal,
body.theme-purple #top-players-modal,
body.theme-purple #draw-modal,
body.theme-purple #gallery-modal,
body.theme-purple #top-drawings-modal,
body.theme-purple #pro-color-modal,
body.theme-purple #game2048-modal,
body.theme-purple #xo-modal {
  background-color: #1a1428 !important;
  background-image: none !important;
  border-color: rgba(167, 139, 250, 0.4) !important;
  color: #f0edf8 !important;
}

body.theme-purple #puzzle-modal h3,
body.theme-purple #top-players-modal h3,
body.theme-purple #instructions-modal h3,
body.theme-purple #gallery-title,
body.theme-purple #top-drawings-title,
body.theme-purple #game2048-modal h3,
body.theme-purple #xo-modal h3,
body.theme-purple #puzzle-win-msg,
body.theme-purple #game2048-score {
  color: #c4b5fd !important;
}

body.theme-purple .puzzle-tile {
  background: #241c38 !important;
  color: #a78bfa !important;
  border: 1px solid rgba(167, 139, 250, 0.5) !important;
}

body.theme-purple .puzzle-empty {
  background: transparent !important;
  border: 1px dashed rgba(167, 139, 250, 0.15) !important;
}

body.theme-purple .top-player-item,
body.theme-purple .gallery-item,
body.theme-purple .top-drawing-item {
  background: #211a33 !important;
  border-color: rgba(167, 139, 250, 0.15) !important;
}

body.theme-purple .top-player-item span:last-child {
  color: #a78bfa !important;
  background: rgba(167, 139, 250, 0.12) !important;
}

body.theme-purple .draw-btn,
body.theme-purple #open-rgb-picker {
  background: #211a33 !important;
  color: #a78bfa !important;
  border-color: rgba(167, 139, 250, 0.5) !important;
}

body.theme-purple .color-option:hover,
body.theme-purple .color-option.active,
body.theme-purple .recent-color:hover {
  border-color: #c4b5fd !important;
}

body.theme-purple .xo-cell {
  background: #211a33 !important;
  border-color: #a78bfa !important;
}

body.theme-purple .xo-cell:hover {
  background: #2a2140 !important;
}


body.theme-purple .game2048-tile {
  background: #2a2140;
}
