html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}
html, body {
  overflow-y: auto !important;
  scrollbar-gutter: stable;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
html::-webkit-scrollbar, body::-webkit-scrollbar {
  width: 0 !important;
  background: transparent !important;
}
html, body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.twitch-chat-modal-resize-corner {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 24px;
  height: 24px;
  z-index: 9999;
  cursor: nwse-resize;
  opacity: 0.5;
  transition: opacity 0.2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23a100a1' viewBox='0 0 16 16'%3E%3Cpath d='M14 16v-2h2v-2h-2v-2h2v-2h-2V8h2V6h-2V4h2V2h-2V0h-2v2h-2v2h2v2h-2v2h2v2h-2v2h2v2h-2v2h2z'/%3E%3C/svg%3E");
  background-position: bottom right;
  background-repeat: no-repeat;
  background-size: 75%;
  pointer-events: auto;
}
.twitch-chat-modal-resize-corner:hover {
  opacity: 1;
}
.twitch-chat-modal.suicide-theme .twitch-chat-modal-resize-corner {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23a10000' viewBox='0 0 16 16'%3E%3Cpath d='M14 16v-2h2v-2h-2v-2h2v-2h-2V8h2V6h-2V4h2V2h-2V0h-2v2h-2v2h2v2h-2v2h2v2h-2v2h2v2h-2v2h2z'/%3E%3C/svg%3E");
}
.twitch-chat-modal-dragbar {
  width: 100%;
  height: 44px;
  background: linear-gradient(90deg, #ffccff 0%, #ffff00 100%);
  border-bottom: 2px solid #ff00ff;
  border-radius: 32px 32px 0 0;
  cursor: move;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 0 18px;
  user-select: none;
  font-family: 'Comic Sans MS', cursive;
  font-size: 1.18rem;
  color: #a100a1;
  box-shadow: 0 2px 8px #ff00ff11;
  position: relative;
}
.twitch-chat-modal-title-wrap {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  padding-right: 50px;
}
.twitch-chat-modal-title {
  font-weight: bold;
  font-size: 1.18rem;
  letter-spacing: 1.5px;
  color: #ff00ff;
  text-shadow: 1px 1px 0 #fff, 0 0 8px #ff00ff33;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.twitch-chat-modal.suicide-theme .twitch-chat-modal-dragbar {
  background: #232323 !important;
  border-bottom: 2px solid #a10000 !important;
  color: #ffb0b0 !important;
  font-family: 'Impact', fantasy !important;
}
.twitch-chat-modal.suicide-theme .twitch-chat-modal-title {
  color: #ffb0b0 !important;
  text-shadow: 1px 1px 0 #000, 0 0 8px #a1000033 !important;
  font-family: 'Impact', fantasy !important;
}
.twitch-chat-modal-close {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  font-size: 2.1rem;
  color: #ff00ff;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  box-shadow: 0 2px 8px #ff00ff22;
  padding: 0;
  margin: 0;
  z-index: 10;
}
.twitch-chat-modal-close:hover {
  color: #00ffea;
  background: #fffbe9;
  transform: translateY(-50%) rotate(-15deg) scale(1.1);
}
.twitch-chat-modal.suicide-theme .twitch-chat-modal-close {
  color: #a10000 !important;
  background: #232323 !important;
  box-shadow: 0 2px 8px #a1000022 !important;
}
.twitch-chat-modal.suicide-theme .twitch-chat-modal-close:hover {
  color: #ffb0b0 !important;
  background: #a10000 !important;
}
.twitch-chat-modal-close span {
  font-size: 1.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.twitch-chat-modal {
  display: none;
  position: fixed;
  top: 60px;
  left: auto;
  right: 40px;
  width: 420px;
  height: 600px;
  min-width: 320px;
  min-height: 320px;
  max-width: 90vw;
  max-height: 90vh;
  background: #ffff00;
  border: 6px dashed #00ff00;
  border-radius: 32px;
  box-shadow: 0 0 32px #ff00ff, 0 0 40px #00ffff;
  z-index: 3000;
  animation: fadeIn 0.2s;
  overflow: hidden;
  transition: border 0.3s, box-shadow 0.3s, background 0.3s;
  flex-direction: column;
}
.twitch-chat-modal.suicide-theme {
  background: #232323 !important;
  border: 4px solid #a10000 !important;
  border-radius: 18px !important;
  box-shadow: 0 0 40px #000000, 0 0 80px #222222 !important;
}
.twitch-chat-modal.open {
  display: flex;
}
.twitch-chat-modal-content {
  width: 100%;
  height: 100%;
  flex-grow: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  background: none;
  padding: 0;
  overflow: hidden;
}
.twitch-chat-iframe-wrap-modal {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  flex-direction: column; 
  align-items: stretch;
  justify-content: stretch;
  overflow: hidden;
}
.twitch-chat-modal.suicide-theme .twitch-chat-iframe-wrap-modal {
  background: #232323 !important;
}
@media (max-width: 900px) {
  .twitch-chat-modal {
    display: none !important;
  }

  .twitch-chat-modal .emote-menu-wrapper {
    display: none !important;
  }

  .twitch-chat-iframe-wrap .emote-menu-wrapper {
    display: block !important;
  }
}
.btn {
  font-size: 36px;
  padding: 20px 60px;
  border: 8px double #ff00ff;
  background-color: #00ff00;
  color: #ff0000;
  text-decoration: blink;
  display: inline-block;
  margin: 20px;
  border-radius: 50px;
  box-shadow: 0 0 20px #0000ff;
  transition: all 0.3s ease;
  font-family: 'Comic Sans MS', cursive;
  max-width: 100%;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.btn.suicide-theme {
  background: #2a2a2a !important;
  color: #a10000 !important;
  border: 2px solid #a10000 !important;
  box-shadow: 0 0 10px #000 !important;
  border-radius: 10px !important;
  font-family: 'Impact', sans-serif !important;
  transition: none !important;
  animation: none !important;
  display: inline-block !important;
  width: auto !important;
  min-width: 200px !important;
  margin: 8px !important;
}
.btn.suicide-theme:hover {
  background: #a10000 !important;
  color: #fff !important;
  border-color: #a10000 !important;
}
.btn:hover {
  background-color: #ff00ff;
  color: #00ff00;
  border-color: #00ffff;
  transform: rotate(10deg) scale(1.1);
  box-shadow: 0 0 30px rgba(255, 0, 255, 0.8), 0 0 50px rgba(0, 255, 255, 0.8);
  transition:
    background 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55),
    color 0.3s,
    border-color 0.3s,
    box-shadow 0.4s,
    transform 0.3s;
}
.btn-group {
  text-align: center;
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  animation: shake 0.5s infinite alternate;
}
.btn-group.suicide-theme {
  animation: none !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 15px !important;
}
@keyframes shake {
  from { transform: rotate(0deg); }
  to { transform: rotate(10deg); }
}
@font-face {
  font-family: 'Comic Sans MS';
  src: url('https://deduso.su/fonts/ComicSansMS.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Impact';
  src: url('https://deduso.su/fonts/Impact.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

body {
  font-family: 'Comic Sans MS', cursive;
  background: radial-gradient(circle at 60% 40%, #ffccff 0%, #ffff00 100%);
  color: #ff00ff;
  animation: loading 1s ease-out;
  overscroll-behavior-x: contain;
  min-height: 100vh;
}

body.suicide-theme {
  background: radial-gradient(ellipse at center, #232323 0%, #181818 100%) !important;
}

@keyframes loading {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

#loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ff00ff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeOut 1.5s ease-in-out 2s forwards;
  transition: background-color 0.3s ease;
}

#loading::before {
  content: attr(data-text);
  font-family: 'Impact', fantasy;
  color: #00ff00;
  font-size: 3rem;
  text-shadow: 3px 3px 6px #0000ff;
  animation: pulse 1.5s infinite;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

@keyframes fadeOut {
  0% { opacity: 1; }
  100% { opacity: 0; display: none; }
}

#loading.knife-cut-loading::before {
  color: #a10000 !important;
  text-shadow: 2px 2px 4px #000000, 0 0 15px #a10000, 0 0 30px #600000 !important;
  font-family: 'Impact', fantasy !important;
  animation: bloodPulse 1s ease-in-out infinite alternate !important;
}

@keyframes bloodPulse {
  0% { 
    transform: scale(1);
    text-shadow: 2px 2px 4px #000000, 0 0 15px #a10000, 0 0 30px #600000;
  }
  100% { 
    transform: scale(1.05);
    text-shadow: 2px 2px 4px #000000, 0 0 25px #a10000, 0 0 50px #600000;
  }
}

.knife-slash {
  position: absolute;
  top: 20%;
  left: 10%;
  width: 80%;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, #a10000 20%, #600000 50%, #a10000 80%, transparent 100%);
  transform: rotate(-15deg) scaleX(0);
  transform-origin: left center;
  box-shadow: 0 0 10px #a10000;
}

.knife-slash.animate {
  animation: slashCut 0.4s ease-out forwards;
}

@keyframes slashCut {
  0% { transform: rotate(-15deg) scaleX(0); }
  100% { transform: rotate(-15deg) scaleX(1); }
}

.blood-drip {
  position: absolute;
  top: 20%;
  left: 50%;
  width: 2px;
  height: 0;
  background: linear-gradient(180deg, #a10000 0%, #600000 50%, #300000 100%);
  transform: translateX(-50%) rotate(-15deg);
  box-shadow: 0 0 8px #a10000;
}

.blood-drip.animate {
  animation: bloodFlow 1.2s ease-in forwards;
}

@keyframes bloodFlow {
  0% { height: 0; }
  50% { height: 60vh; }
  100% { height: 100vh; }
}

.knife-slash::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 5px;
  background: radial-gradient(ellipse, #ff4444 0%, #a10000 40%, transparent 70%);
  opacity: 0;
  animation: bloodGlow 0.8s ease-in-out infinite alternate;
}

@keyframes bloodGlow {
  0% { opacity: 0.3; }
  100% { opacity: 0.8; }
}

.screen-crack {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
}

.screen-crack.animate {
  animation: crackAppear 0.6s ease-out forwards;
}

@keyframes crackAppear {
  0% { opacity: 0; }
  100% { opacity: 0.4; }
}

.screen-crack::before {
  content: '';
  position: absolute;
  top: 18%;
  left: 8%;
  width: 84%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #333 10%, #666 50%, #333 90%, transparent 100%);
  transform: rotate(-15deg);
  box-shadow: 0 1px 0 rgba(255,255,255,0.1), 0 -1px 0 rgba(0,0,0,0.3);
}

.screen-crack::after {
  content: '';
  position: absolute;
  top: 19%;
  left: 45%;
  width: 1px;
  height: 15%;
  background: linear-gradient(180deg, transparent 0%, #333 20%, #666 50%, #333 80%, transparent 100%);
  transform: rotate(-8deg);
  box-shadow: 1px 0 0 rgba(255,255,255,0.1), -1px 0 0 rgba(0,0,0,0.3);
}

.container {
  max-width: 800px;
  margin: 40px auto;
  background-color: #ffff00;
  padding: 40px;
  border: 10px dashed #00ff00;
  border-radius: 50px;
  box-shadow: 0 0 20px #ff0000, 0 0 40px #00ffff;
  position: relative;
  animation: glow 2s infinite alternate;
}

.container.suicide-theme {
  background: #232323 !important;
  border: 4px solid #a10000 !important;
  border-radius: 20px !important;
  box-shadow: 0 0 40px #000000, 0 0 80px #222222 !important;
  animation: none !important;
}

@keyframes glow {
  0% { box-shadow: 0 0 20px #ff0000, 0 0 40px #00ffff; }
  100% { box-shadow: 0 0 30px #00ff00, 0 0 50px #ff00ff; }
}

h1, h2 {
  text-align: center;
  color: #0000ff;
  font-family: 'Impact', fantasy;
  text-shadow: 2px 2px 5px #000000;
  word-break: break-word;
}

h1:hover, h2:hover {
  animation: wobble 0.5s ease-in-out;
}

@keyframes wobble {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
  100% { transform: rotate(0deg); }
}

.player-container {
  max-width: 100%;
  margin: 40px auto;
  border: 20px solid #00ffff;
  border-radius: 20px;
  box-shadow: 0 0 20px #ff00ff;
  overflow: hidden;
  transition: border 0.3s, box-shadow 0.3s;
  background: #000;
  aspect-ratio: 16/9;
}

.player-container.suicide-theme {
  border: 4px solid #a10000 !important;
  border-radius: 10px !important;
  box-shadow: 0 0 20px #a10000, 0 0 40px #a10000 !important;
  transition: none !important;
}

.btn-link:hover {
  color: #00ff00;
  text-shadow: 2px 2px 5px #000000;
  transform: scale(1.2) rotate(360deg);
}

h1 {
  font-size: 6rem;
  text-transform: uppercase;
  letter-spacing: 30px;
  color: #ff0000;
  text-shadow: 5px 5px 10px #00ffff;
  animation: rainbow 3s infinite;
  transition: none;
}
h1.suicide-theme {
  color: #a10000 !important;
  text-shadow: 2px 2px 10px #000000, 0 0 20px #a10000 !important;
  animation: none !important;
}

@keyframes rainbow {
  0% { color: #ff0000; }
  25% { color: #ff00ff; }
  50% { color: #0000ff; }
  75% { color: #00ffff; }
  100% { color: #ff0000; }
}

h2 {
  font-size: 54px;
  font-style: italic;
  text-decoration: line-through;
  color: #00ff00;
  text-shadow: 3px 3px 5px #000000;
  transition: none;
}
h2.suicide-theme {
  color: #b0b0b0 !important;
  text-shadow: 2px 2px 10px #000000 !important;
  animation: none !important;
}

.social-links {
  margin-top: 40px;
  text-align: center;
  transition: none;
}
.social-links.suicide-theme a {
  color: #b0b0b0 !important;
  text-shadow: none !important;
  animation: none !important;
}
.social-links.suicide-theme a:hover {
  color: #a10000 !important;
  text-shadow: 0 0 10px #a10000 !important;
}

.social-links a {
  font-size: 18px;
  color: #0000ff;
  text-decoration: none;
  margin: 0 15px;
  transition: all 0.5s ease;
  display: inline-block;
  width: auto;
  position: relative;
  cursor: pointer;
}

.social-links a:hover {
  transform: scale(1.2) rotate(360deg);
  color: #ff00ff;
  text-shadow: 2px 2px 5px #00ffff;
}

@media (max-width: 1024px) {
  .twitch-chat-modal {
    right: 10px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 20px;
    margin: 20px auto;
  }
  h1 {
    font-size: 3rem;
    letter-spacing: 10px;
  }
  h2 {
    font-size: 36px;
    text-decoration: none;
  }
  .btn {
    font-size: 1.1rem;
    padding: 12px 10px;
    margin: 8px 0;
    width: 100%;
  }
  .btn.suicide-theme {
    width: auto !important;
    max-width: 300px !important;
    margin: 8px 4px !important;
  }
  .btn-group {
    flex-direction: column;
    align-items: stretch;
    margin-top: 20px;
    gap: 0;
  }
  .btn-group.suicide-theme {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
  }
  .social-links a {
    font-size: 16px;
    margin: 0 10px;
  }
  .channel-switcher {
    right: 0;
    left: auto;
    top: 10px;
    transform: none;
  }
  .player-container, .player-container.suicide-theme {
    margin: 20px auto;
  }
}
@media (max-width: 480px) {
  .container {
    width: 100%;
    max-width: 100vw;
    padding: 15px 15px 80px 15px;
    margin: 0;
    border: 2px dashed #00ff00;
    border-radius: 15px;
    animation: none;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.3);
  }
  .container.suicide-theme {
    border: 2px solid #a10000 !important;
    border-radius: 15px !important;
    padding: 15px 15px 80px 15px !important;
    box-shadow: 0 0 15px rgba(161, 0, 0, 0.3) !important;
  }
  h1 {
    font-size: 2.5rem !important;
    letter-spacing: 2px !important;
    margin-bottom: 0;
    animation: none !important;
  }
  h1.suicide-theme {
    animation: none !important;
  }
  h2 {
    font-size: 1.5rem !important;
    margin-top: 10px;
  }
  .btn-group {
      margin-top: 20px;
  }
  .btn {
    font-size: 0.95rem;
    padding: 12px 8px;
    margin: 8px 0;
    width: 100%;
    max-width: 280px;
    border-radius: 25px;
    border-width: 2px;
  }
  .btn.suicide-theme {
    width: auto !important;
    max-width: 240px !important;
    margin: 8px 3px !important;
    padding: 10px 14px !important;
    font-size: 0.9rem !important;
    border-radius: 15px !important;
  }
  .btn-group {
    flex-direction: column;
    align-items: center;
  }
  .btn-group.suicide-theme {
    gap: 8px !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
  }
  .player-container {
    border-width: 6px;
    margin: 15px auto;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.4);
  }
  .player-container.suicide-theme {
    border-width: 3px !important;
    box-shadow: 0 0 10px rgba(161, 0, 0, 0.4) !important;
  }
  .twitch-chat-iframe-wrap {
      margin: 15px auto;
  }
  .emote-menu {
    width: auto;
    max-width: calc(100vw - 10px);
    height: 320px;
    margin: 0;
    border-radius: 15px;
  }
  .emote-menu-tabs {
    flex-wrap: nowrap;
    justify-content: space-between;
  }
  .emote-tab {
    flex: 1;
    font-size: 0.95rem;
    padding: 10px 4px;
    text-align: center;
  }
  .emote-container {
    padding: 10px 8px;
    gap: 5px;
  }
  .emote-item {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 360px) {
    h1 { font-size: 1.8rem !important; letter-spacing: 1px !important; }
    h2 { font-size: 1.1rem !important; }
    .container { 
        padding: 12px 12px 80px 12px;
        border-width: 1.5px;
        border-radius: 12px;
        box-shadow: 0 0 10px rgba(255, 0, 255, 0.25);
    }
    .container.suicide-theme {
        box-shadow: 0 0 10px rgba(161, 0, 0, 0.25) !important;
    }
    .btn {
        font-size: 0.85rem;
        padding: 10px 6px;
        margin: 6px 0;
        max-width: 260px;
        border-radius: 20px;
    }
    .btn.suicide-theme {
        max-width: 220px !important;
        margin: 6px 2px !important;
        padding: 8px 10px !important;
        font-size: 0.8rem !important;
    }
    .emote-tab {
        font-size: 0.8rem;
        padding: 6px;
    }
    
    .emote-menu-wrapper .emote-menu {
        left: 0;
        right: 0;
        min-width: 0;
        height: 300px;
        margin: 0 5px;
        bottom: 50px;
    }
    
    .emote-container {
        padding: 8px 6px;
        gap: 4px;
    }
    
    .emote-item {
        width: 26px;
        height: 26px;
    }
}

.channel-switcher {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 1000;
  background: rgba(255,255,255,0.65);
  border-radius: 10px;
  box-shadow: 0 2px 12px 0 #00ffcc33, 0 1px 4px #0002;
  padding: 4px 8px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  border: none;
  transition: background 0.3s, box-shadow 0.3s;
  min-width: 0;
  font-size: 0.98rem;
}
@media (max-width: 600px) {
  #loading::before {
    font-size: 1.5rem;
    padding: 0 10px;
    word-break: break-word;
    text-align: center;
    max-width: 90vw;
    box-sizing: border-box;
  }
  #loading {
    font-size: 14px;
    padding: 0 10px;
  }
  .channel-switcher {
    top: 6px;
    right: 6px;
    left: auto;
    width: auto;
    min-width: 0;
    padding: 2px 4px;
    border-radius: 7px;
  }
  .channel-switcher select {
    padding: 1.5px 6px;
    font-size: 0.9rem;
    border-radius: 5px;
    min-width: 48px;
    max-width: 70px;
  }
}
.channel-switcher label {
  margin: 0;
  padding: 0;
  font-size: 1.1rem;
  font-family: 'Impact', fantasy;
  color: #222;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 0;
}
.channel-switcher label::before {
  content: '\f03d';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 1.1em;
  color: #00ffea;
  margin-right: 0;
  transition: color 0.3s;
  display: block;
}
.channel-switcher select {
  font-size: 0.98rem;
  padding: 2px 10px;
  border-radius: 6px;
  border: 1.5px solid #00ffea;
  background: #f8f8f8;
  color: #222;
  font-family: 'Comic Sans MS', cursive;
  outline: none;
  transition: border 0.3s;
  box-shadow: 0 1px 2px #00ffea11;
  min-width: 60px;
  max-width: 90px;
}
.channel-switcher select:focus {
  border-color: #ff00ff;
}
.channel-switcher.suicide-theme {
  background: #232323 !important;
  box-shadow: 0 0 10px #000 !important;
}
.channel-switcher.suicide-theme label {
  color: #a10000 !important;
}
.channel-switcher.suicide-theme label::before {
  color: #a10000 !important;
}
.channel-switcher.suicide-theme select {
  background: #181818 !important;
  color: #a10000 !important;
  border: 2px solid #a10000 !important;
  font-family: 'Impact', sans-serif !important;
  box-shadow: 0 1px 4px #a1000022;
}

.twitch-chat-btn {
  display: block;
  margin: 24px auto 0 auto;
  background: #ffff00;
  color: #a100a1;
  border: 3px dashed #ff00ff;
  border-radius: 24px;
  padding: 14px 44px;
  font-size: 1.3rem;
  font-family: 'Comic Sans MS', cursive;
  cursor: pointer;
  box-shadow: 0 2px 16px #ff00ff44;
  transition: background 0.2s, color 0.2s, transform 0.2s, border 0.2s;
  font-weight: bold;
  letter-spacing: 2px;
  outline: none;
  text-shadow: 1px 1px 0 #fff, 0 0 8px #ff00ff33;
}
.twitch-chat-btn:hover {
  background: #ffccff;
  color: #ff00ff;
  border-color: #00ffea;
  transform: scale(1.04);
  box-shadow: 0 2px 24px #00ffea88;
}
.suicide-theme .twitch-chat-btn {
  background: #232323 !important;
  color: #ffb0b0 !important;
  border: 2px solid #a10000 !important;
  border-radius: 10px !important;
  font-family: 'Impact', fantasy !important;
  box-shadow: 0 2px 12px #a1000022 !important;
  text-shadow: 1px 1px 0 #000, 0 0 8px #a1000033 !important;
}
.suicide-theme .twitch-chat-btn:hover {
  background: #a10000 !important;
  color: #fff !important;
  border-color: #ffb0b0 !important;
  box-shadow: 0 2px 24px #a1000055 !important;
}
.twitch-chat-iframe-wrap {
  width: 100%;
  margin: 0 auto 24px auto;
  background: #000;
  border: 8px solid #00ffff;
  border-radius: 20px;
  box-shadow: 0 0 20px #ff00ff;
  padding: 0;
  display: flex;
  flex-direction: column; 
  justify-content: center;
  align-items: stretch; 
  overflow: hidden;
  transition: border 0.3s, box-shadow 0.3s;
  height: 420px;
  min-height: 320px;
  max-height: 60vh;
}
.suicide-theme .twitch-chat-iframe-wrap {
  border: 2px solid #a10000 !important;
  border-radius: 10px !important;
  box-shadow: 0 0 10px #000 !important;
  background: #232323 !important;
}
@media (max-width: 600px) {
  .twitch-chat-iframe-wrap {
    border-width: 4px;
    border-radius: 10px;
    margin: 8px auto 16px auto;
    height: 450px !important;
    min-height: 220px !important;
    max-height: 50vh !important;
  }
}
.help-phone-btn {
  display: block;
  margin: 18px auto 0 auto;
  background: #a10000;
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 12px 32px;
  font-size: 1.1rem;
  font-family: 'Impact', fantasy;
  cursor: pointer;
  box-shadow: 0 2px 12px #0002;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s, transform 0.2s;
}
.help-phone-btn:hover { background: #800000; transform: translateY(-2px) scale(1.04); }
@media (max-width: 600px) {
  .twitch-chat-popup { max-width: 99vw; height: 60vh; min-height: 200px; }
  .twitch-chat-header { font-size: 1rem; padding: 8px 10px; }
  .twitch-chat-btn, .help-phone-btn { font-size: 1rem; padding: 10px 10px; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.commands-panel {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 100%);
  width: 100vw;
  max-width: 480px;
  height: 80vh;
  background: linear-gradient(120deg, #ffccff 0%, #ffff00 100%);
  color: #222;
  box-shadow: 0 0 24px #ff00ff99, 0 2px 24px #00ffea55;
  border-top-right-radius: 24px;
  border-top-left-radius: 24px;
  border: 3px solid #ff00ff;
  z-index: 2000;
  transition: transform 0.35s cubic-bezier(.7,0,.3,1);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 28px 18px 38px 18px;
  font-family: 'Comic Sans MS', cursive;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.commands-panel::-webkit-scrollbar {
  display: none;
}
.commands-panel.open {
  transform: translate(-50%, 0);
}
.commands-panel .close-btn {
  position: absolute;
  right: 18px;
  top: 12px;
  font-size: 2rem;
  color: #ff00ff;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
  display: block;
}
.commands-panel h2 {
  font-size: 1.5rem;
  margin-top: 0;
  color: #ff00ff;
  text-align: center;
}
.commands-panel ul {
  padding-left: 1.2em;
  list-style-type: none;
}
.commands-panel .command {
  background: linear-gradient(90deg, #ffccff 0%, #ffff00 100%);
  border-radius: 14px;
  padding: 4px 10px;
  margin: 2px 4px 2px 0;
  font-family: 'Comic Sans MS', cursive;
  font-size: 0.98em;
  font-weight: bold;
  color: #a100a1;
  cursor: pointer;
  user-select: none;
  border: none;
  box-shadow: 0 2px 8px #ff00ff22;
  display: inline-block;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  outline: none;
  max-width: 100%;
  word-break: break-all;
}
.commands-panel .command:hover {
  background: linear-gradient(90deg, #00ffea 0%, #ff00ff 100%);
  color: #fff;
  box-shadow: 0 2px 16px #00ffea55;
}
.commands-panel .category-title {
  color: #a10000;
  font-size: 1.2em;
  font-family: 'Impact', fantasy;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  letter-spacing: 1px;
}
.commands-panel ul {
  padding-left: 0.5em;
  margin-bottom: 0.7em;
  list-style-type: none;
}
.commands-panel li {
  margin-bottom: 0.3em;
  font-size: 0.98em;
  color: #222;
  font-family: 'Comic Sans MS', cursive;
  line-height: 1.4;
  max-width: 100%;
  word-break: break-word;
  overflow-wrap: break-word;
}
.suicide-theme .commands-panel .command {
  background: linear-gradient(90deg, #232323 0%, #a10000 100%) !important;
  color: #ffb0b0 !important;
  font-family: 'Impact', fantasy !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 8px #a1000022 !important;
}
.suicide-theme .commands-panel .command:hover {
  background: linear-gradient(90deg, #a10000 0%, #232323 100%) !important;
  color: #fff !important;
  box-shadow: 0 2px 16px #a1000055 !important;
}
.suicide-theme .commands-panel .category-title {
  color: #ffb0b0 !important;
}
.suicide-theme .commands-panel li {
  color: #b0b0b0 !important;
  font-family: 'Impact', fantasy !important;
}
.commands-panel .category-title {
  margin-top: 1.2em;
  color: #a10000;
  font-size: 1.1em;
  font-weight: bold;
}
@media (max-width: 600px) {
  .commands-panel {
    left: 50%;
    right: auto;
    max-width: 100vw;
    width: 100vw;
    margin: 0;
    transform: translate(-50%, 100%);
    height: 80vh;
    min-height: 220px;
    border-radius: 18px 18px 0 0;
    padding: 18px 10px 28px 10px;
    font-size: 0.97em;
    background: linear-gradient(120deg, #ffccff 0%, #ffff00 100%);
    border: 3px solid #ff00ff;
    box-shadow: 0 0 24px #ff00ff99, 0 2px 24px #00ffea55;
    overflow-x: hidden;
  }
  .commands-panel .close-btn {
    top: 8px;
    right: 8px;
    font-size: 1.5rem;
  }
  .commands-panel .command {
    font-size: 0.95em;
    padding: 5px 10px;
    border-radius: 12px;
    background: linear-gradient(90deg, #ffff00 0%, #ffccff 100%);
    box-shadow: 0 2px 12px #ff00ff33;
    border: 1.5px solid #ff00ff;
  }
  .commands-panel .command:hover {
    background: linear-gradient(90deg, #00ffea 0%, #ff00ff 100%);
    color: #fff;
    box-shadow: 0 2px 16px #00ffea55;
  }
  .commands-panel li {
    font-size: 0.95em;
  }
}
.open-commands-btn {
  position: fixed;
  left: 50%;
  bottom: 0px;
  transform: translateX(-50%);
  z-index: 2100;
  background: #ffff00;
  color: #a100a1;
  border: 3px dashed #ff00ff;
  border-radius: 20px;
  font-size: 1.2rem;

  cursor: pointer;
  box-shadow: 0 2px 8px #ff00ff44;
  font-family: 'Comic Sans MS', cursive;
  transition: all 0.3s ease;
  font-weight: bold;
  letter-spacing: 2px;
  text-shadow: 1px 1px 0 #fff, 0 0 8px #ff00ff33;
  min-width: 44px;
}
.open-commands-btn:hover {
  background: #ffccff;
  color: #ff00ff;
  border-color: #00ffea;
  box-shadow: 0 2px 24px #00ffea88;
}
.suicide-theme .open-commands-btn {
  background: #232323 !important;
  color: #ffb0b0 !important;
  border: 2px solid #a10000 !important;
  border-radius: 10px !important;
  font-family: 'Impact', fantasy !important;
  box-shadow: 0 2px 12px #a1000022 !important;
  text-shadow: 1px 1px 0 #000, 0 0 8px #a1000033 !important;
}
.suicide-theme .open-commands-btn:hover {
  background: #a10000 !important;
  color: #fff !important;
  border-color: #ffb0b0 !important;
  box-shadow: 0 2px 24px #a1000055 !important;
}
@media (max-width: 600px) {
  .open-commands-btn {
    font-size: 1rem;
    bottom: 10px;
    border-radius: 10px;
    width: auto;
    max-width: 90vw;
    min-width: 36px;
    padding: 10px 16px;
  }
}

.custom-chat-container {
  flex-grow: 1; 
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 10px;
  background: #fffbe9;
  font-family: 'Comic Sans MS', cursive;
  word-wrap: break-word;
  scrollbar-width: thin;
  scrollbar-color: #ff00ff #ffff00;
}

.custom-chat-container::-webkit-scrollbar {
  width: 8px;
}

.custom-chat-container::-webkit-scrollbar-track {
  background: #ffff00;
}

.custom-chat-container::-webkit-scrollbar-thumb {
  background-color: #ff00ff;
  border-radius: 6px;
  border: 2px solid #ffff00;
}

.chat-message {
  margin-bottom: 8px;
  line-height: 1.4;
  font-size: 0.95rem;
  color: #222;
  word-break: break-word;
}

.suicide-theme .chat-message {
  font-family: 'Impact', fantasy !important;
}

.chat-badge {
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
  width: 18px;
  height: 18px;
}

.chat-username {
  font-weight: bold;
  margin-right: 6px;
}

.chat-message-text .emote {
  display: inline-block;
  vertical-align: middle;
  width: 28px;
  height: 28px;
  margin: -4px 2px;
}

.system-message {
    font-style: italic;
    color: #777;
    text-align: center;
    padding: 10px 0;
}

.system-message.error {
    color: #c00;
    font-weight: bold;
}

.suicide-theme .custom-chat-container {
  background: #232323 !important;
  color: #b0b0b0 !important;
  font-family: 'Impact', fantasy !important;
  scrollbar-color: #a10000 #232323;
}

.suicide-theme .custom-chat-container::-webkit-scrollbar-track {
  background: #232323;
}

.suicide-theme .custom-chat-container::-webkit-scrollbar-thumb {
  background-color: #a10000;
  border-color: #232323;
}

.suicide-theme .chat-message {
  color: #b0b0b0;
}

.suicide-theme .chat-username {
  color: #ffb0b0 !important;
}

.suicide-theme .system-message {
    color: #888;
}

.custom-chat-controls {
  padding: 10px;
  background: #fffbe9;
  border-top: 3px dashed #ff00ff;
  overflow: visible;
  min-width: 0;
  box-sizing: border-box;
  position: relative;
}

.chat-login-wrapper {
  display: flex;
}

.chat-login-btn {
  width: 100%;
  background: #ffff00;
  color: #a100a1;
  border: 3px dashed #ff00ff;
  border-radius: 24px;
  padding: 12px 24px;
  font-size: 1.1rem;
  font-family: 'Comic Sans MS', cursive;
  cursor: pointer;
  box-shadow: 0 2px 16px #ff00ff44;
  transition: all 0.2s;
  font-weight: bold;
  letter-spacing: 1px;
  text-shadow: 1px 1px 0 #fff, 0 0 8px #ff00ff33;
}

.chat-login-btn:hover {
  background: #ffccff;
  color: #ff00ff;
  border-color: #00ffea;
  transform: scale(1.02);
  box-shadow: 0 2px 24px #00ffea88;
}

.chat-send-form {
  display: flex;
  gap: 10px;
  align-items: center;
  overflow: visible;
  min-width: 0;
}

.chat-input {
  flex: 1 1 0;
  min-width: 0;
  border: 3px dashed #ff00ff;
  background: #fffbe9;
  color: #a100a1;
  border-radius: 12px;
  padding: 8px 12px;
  font-family: 'Comic Sans MS', cursive;
  font-size: 1rem;
  transition: all 0.2s;
  min-height: 24px;
  max-height: 120px;
  overflow-y: auto;
  box-sizing: border-box;
  outline: none;
  word-wrap: break-word;
  white-space: pre-wrap;
}

.chat-input:empty:before {
  content: attr(data-placeholder);
  color: #999;
  pointer-events: none;
  font-style: italic;
}

.chat-input .emote-inline {
  display: inline-block;
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin: 0 2px;
  border-radius: 2px;
}

.chat-input.emote-added {
  border-color: #00ffea;
  box-shadow: 0 0 10px #00ffea88;
  background: #f0ffff;
}

.chat-input:focus {
  outline: none;
  border-style: solid;
  border-color: #00ffea;
  box-shadow: 0 0 10px #00ffea88;
}

.suicide-theme .custom-chat-controls {
  background: #181818 !important;
  border-top: 2px solid #a10000 !important;
}

.suicide-theme .chat-login-btn {
  background: #232323 !important;
  color: #ffb0b0 !important;
  border: 2px solid #a10000 !important;
  border-radius: 10px !important;
  font-family: 'Impact', fantasy !important;
  box-shadow: 0 2px 12px #a1000022 !important;
  text-shadow: 1px 1px 0 #000, 0 0 8px #a1000033 !important;
}

.suicide-theme .chat-login-btn:hover {
  background: #a10000 !important;
  color: #fff !important;
  border-color: #ffb0b0 !important;
  box-shadow: 0 2px 24px #a1000055 !important;
  transform: scale(1.02);
}

.suicide-theme .chat-input {
  background: #232323 !important;
  color: #ccc !important;
  border: 2px solid #a10000 !important;
  border-radius: 10px !important;
  font-family: 'Impact', fantasy !important;
  border-style: solid;
}

.suicide-theme .chat-input:empty:before {
  color: #666 !important;
}

.suicide-theme .chat-input.emote-added {
  border-color: #ffb0b0 !important;
  box-shadow: 0 0 10px #ffb0b088 !important;
  background: #2a1a1a !important;
}

.suicide-theme .chat-input:focus {
  border-color: #ffb0b0 !important;
  box-shadow: none !important;
}

.emote-menu-wrapper {
  position: relative;
  display: inline-block;
}
.emote-menu-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  font-size: 1.5rem;
  border-radius: 12px;
  border: 3px dashed #ff00ff;
  background: #fffbe9;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.emote-menu-btn:hover {
  border-color: #00ffea;
}
.emote-menu {
  display: none;
  position: absolute;
  bottom: 50px;
  left: 0;
  width: 300px;
  height: 350px;
  background: #fffbe9;
  border: 3px dashed #ff00ff;
  border-radius: 12px;
  box-shadow: 0 4px 20px #00000033;
  z-index: 9999;
  flex-direction: column;
}


@media (max-width: 600px) {
  .emote-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 60px;
    max-width: calc(100vw - 20px);
    width: auto;
    min-width: 280px;
    margin: 0 10px;
  }
  

  .emote-menu-wrapper {
    position: relative;
  }
  
  .emote-menu-wrapper .emote-menu {
    position: absolute;
    left: 0;
    right: 0;
    transform: none;
    bottom: 50px;
    width: auto;
    max-width: none;
    margin: 0 10px;
  }
}
.emote-menu.open {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.emote-menu-tabs {
  display: flex;
  border-bottom: 3px dashed #ff00ff;
}
.emote-tab {
  flex-grow: 1;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Comic Sans MS', cursive;
  font-weight: bold;
  color: #a100a1;
  font-size: 0.9rem;
}
.emote-tab.active {
  background: #ffff00;
  color: #ff00ff;
  border-radius: 8px 8px 0 0;
}
.emote-container {
  flex-grow: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-content: flex-start;
  scrollbar-width: thin;
  scrollbar-color: #ff00ff #ffff00;
}
.emote-container::-webkit-scrollbar {
  width: 8px;
}
.emote-container::-webkit-scrollbar-track {
  background: #ffff00;
}
.emote-container::-webkit-scrollbar-thumb {
  background-color: #ff00ff;
  border-radius: 6px;
  border: 1px solid #ffff00;
}
.emote-item {
  width: 36px;
  height: 36px;
  cursor: pointer;
  transition: transform 0.1s;
}
.emote-item:hover {
  transform: scale(1.2);
}

.suicide-theme .emote-menu-btn {
  background: #232323 !important;
  border-color: #a10000 !important;
  border-style: solid !important;
  border-width: 2px !important;
}
.suicide-theme .emote-menu-btn:hover {
  border-color: #ffb0b0 !important;
}
.suicide-theme .emote-menu {
  background: #232323 !important;
  border-color: #a10000 !important;
  border-style: solid !important;
  border-width: 2px !important;
}
.suicide-theme .emote-menu-tabs {
  border-bottom-color: #a10000 !important;
  border-bottom-style: solid !important;
  border-bottom-width: 2px !important;
}
.suicide-theme .emote-tab {
  color: #b0b0b0 !important;
  font-family: 'Impact', fantasy !important;
}
.suicide-theme .emote-tab.active {
  background: #a10000 !important;
  color: #fff !important;
  border-radius: 8px 8px 0 0 !important;
}
.suicide-theme .emote-container {
    scrollbar-color: #a10000 #232323;
}
.suicide-theme .emote-container::-webkit-scrollbar-track {
    background: #232323;
}
.suicide-theme .emote-container::-webkit-scrollbar-thumb {
    background-color: #a10000;
    border: 1px solid #232323;
}


.twitch-chat-modal[style*="width"] .chat-input {
  min-width: 100px !important;
  width: 100% !important;
}

.twitch-chat-modal[style*="width"] .custom-chat-controls {
  padding: 8px !important;
}

.twitch-chat-modal[style*="width"] .chat-send-form {
  gap: 6px !important;
}

.twitch-chat-modal[style*="width"] .emote-menu-btn {
  width: 32px !important;
  height: 32px !important;
  font-size: 1.2rem !important;
}


@media (max-width: 768px) {

  .emote-menu {
    display: none !important;
  }
  

  .mobile-emote-strip {
    position: absolute;
    bottom: 60px;
    left: 10px;
    right: 10px;
    height: 60px;
    background: #fffbe9;
    border: 2px solid #ff00ff;
    border-radius: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 6px;
    gap: 6px;
    align-items: center;
    z-index: 1000;
    display: none;
    flex-wrap: nowrap;

    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;

    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .mobile-emote-strip::-webkit-scrollbar {
    display: none;
  }
  
  .mobile-emote-strip .emote-item {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.1s;
    border-radius: 6px;
  }
  
  .mobile-emote-strip .emote-item:hover,
  .mobile-emote-strip .emote-item:active {
    transform: scale(1.1);
  }
  

  .suicide-theme .mobile-emote-strip {
    background: #232323 !important;
    border-color: #a10000 !important;
  }
  

  .chat-send-form {
    flex-direction: row !important;
    gap: 8px !important;
  }
  
  .emote-menu-btn {
    width: 42px !important;
    height: 42px !important;
    font-size: 1.4rem !important;
    flex-shrink: 0;
  }
  
  .chat-input {
    flex: 1;
    min-width: 0;
  }
  

  .custom-chat-controls {
    position: relative;
  }
}