* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background: #050505;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  font-family: "Courier New", monospace;
  overflow: hidden;
}
#game-container {
  width: 100vw;
  height: 100vh;
  position: relative;
  background: #0a0a0a;
  border: 2px solid #00ff41;
  border-radius: 8px;
  overflow: hidden;
  box-shadow:
    0 0 30px rgba(0, 255, 65, 0.2),
    inset 0 0 60px rgba(0, 255, 65, 0.05);
}
#game-canvas {
  width: 100%;
  height: 100%;
  display: block;
}
#game-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 255, 65, 0.03) 2px,
    rgba(0, 255, 65, 0.03) 4px
  );
  pointer-events: none;
  z-index: 10;
}
#ui-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
  background: rgba(0, 0, 0, 0.7);
  border-bottom: 1px solid #00ff41;
}
.ui-text {
  color: #00ff41;
  font-size: 28px;
  text-shadow: 0 0 8px #00ff41;
  letter-spacing: 1px;
}
.ui-text:nth-child(2) {
  text-align: center;
}
.ui-text:nth-child(3) {
  text-align: right;
}
#input-display {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  background: rgba(0, 0, 0, 0.85);
  border-top: 1px solid #00ff41;
  z-index: 5;
}
#input-local {
  flex: 1;
  padding: 14px 16px;
  border-right: 1px solid #00ff41;
  text-align: center;
}
#input-chat {
  flex: 1;
  padding: 14px 16px;
  text-align: center;
}
#typed-text {
  color: #00ff41;
  font-size: 20px;
  min-height: 28px;
  letter-spacing: 2px;
  text-shadow: 0 0 10px #00ff41;
}
#chat-text {
  color: #00cc33;
  font-size: 16px;
  min-height: 28px;
  letter-spacing: 1px;
  text-shadow: 0 0 8px #00cc33;
  opacity: 0.8;
}
#start-screen,
#gameover-screen {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(5, 5, 5, 0.95);
  z-index: 20;
  text-align: center;
}
.screen-title {
  color: #00ff41;
  font-size: 64px;
  margin-bottom: 12px;
  text-shadow: 0 0 20px #00ff41;
  letter-spacing: 4px;
}
.screen-subtitle {
  color: #00cc33;
  font-size: 28px;
  margin-bottom: 30px;
  opacity: 0.8;
}
#player-stats {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80%;
}
.stats-section-title {
  color: #00ff41;
  font-size: 28px;
  letter-spacing: 3px;
  margin-bottom: 10px;
  text-shadow: 0 0 10px #00ff41;
}
.stats-row {
  display: flex;
  align-items: center;
  padding: 4px 12px;
  margin-bottom: 4px;
  border-left: 2px solid #00ff41;
  opacity: 0.8;
}
.stats-top1 {
  font-size: 48px;
  font-weight: bold;
  color: #00ff41;
  border-left-width: 4px;
  opacity: 1;
  text-shadow: 0 0 16px #00ff41;
}
.stats-crown {
  font-size: 1.2em;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.7));
}
.stats-top2 {
  font-size: 40px;
  font-weight: 600;
  color: #00dd33;
  opacity: 0.9;
  text-shadow: 0 0 10px #00dd33;
}
.stats-top3 {
  font-size: 36px;
  color: #00bb22;
  text-shadow: 0 0 8px #00bb22;
}
.stats-place {
  min-width: 28px;
}
.stats-name {
  text-align: left;
  margin-left: 8px;
  margin-right: 10vw;
}
.stats-kills {
  min-width: 24px;
  text-align: right;
}
.stats-mazila {
  margin-top: 40px;
  font-size: 28px;
  color: #ff4444;
  text-shadow:
    0 0 12px #ff4444,
    0 0 24px rgba(255, 68, 68, 0.4);
}
.mazila-title {
  font-weight: bold;
  color: #ff6666;
  text-shadow: 0 0 16px #ff6666;
}
.mazila-count {
  color: #cc2222;
}
.hidden {
  display: none !important;
}
.glitch {
  animation: glitch 0.3s ease-in-out;
}
@keyframes glitch {
  0%,
  100% {
    transform: translate(0);
  }
  20% {
    transform: translate(-3px, 2px);
  }
  40% {
    transform: translate(3px, -2px);
  }
  60% {
    transform: translate(-2px, -1px);
  }
  80% {
    transform: translate(2px, 1px);
  }
}

/* index.html */
#channel-form {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(5, 5, 5, 0.95);
  z-index: 20;
  text-align: center;
  gap: 16px;
}
#channel-form .screen-title {
  font-size: 40px;
  text-shadow: 0 0 40px #00ff41;
}
#channel-form .screen-subtitle {
  font-size: 18px;
  color: #00ff41;
  opacity: 1;
  margin-bottom: 8px;
}
#channel-form input[type="text"] {
  background: transparent;
  border: 2px solid #00ff41;
  color: #00ff41;
  font-size: 22px;
  padding: 12px 20px;
  width: 300px;
  text-align: center;
  outline: none;
  text-shadow: 0 0 12px #00ff41;
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
}
#channel-form input[type="text"]:focus {
  box-shadow: 0 0 30px rgba(0, 255, 65, 0.4);
}
#channel-form input[type="checkbox"] {
  border: none;
  box-shadow: none;
  padding: 0;
}
#channel-form input:not([type="checkbox"]):focus {
  box-shadow: 0 0 30px rgba(0, 255, 65, 0.4);
}
#settings-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}
.settings-row {
  display: flex;
  align-items: center;
}
.settings-label {
  color: #00cc33;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.9;
  text-shadow: 0 0 6px #00ff41;
}
.settings-label:hover {
  opacity: 1;
}
.hint-toggle {
  background: transparent;
  border: 2px solid #00aa33;
  color: #00aa33;
  font-size: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  text-shadow: 0 0 6px #00aa33;
  transition: all 0.15s;
  margin-left: 8px;
}
.hint-toggle:hover {
  border-color: #00ff41;
  color: #00ff41;
  text-shadow: 0 0 10px #00ff41;
}
.settings-hints {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}
.settings-hint {
  color: #00aa33;
  font-size: 18px;
  text-shadow: none;
  line-height: 1.5;
  max-width: 500px;
  text-align: center;
}
.settings-label input[type="checkbox"] {
  width: 28px;
  height: 28px;
  accent-color: #00ff41;
  cursor: pointer;
  margin-right: 12px;
}
.btn-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.btn-primary {
  background: transparent;
  border: 2px solid #00ff41;
  color: #00ff41;
  font-size: 18px;
  padding: 10px 40px;
  cursor: pointer;
  text-shadow: 0 0 12px #00ff41;
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
  transition: all 0.15s;
  min-width: 260px;
}
.btn-primary:hover {
  background: rgba(0, 255, 65, 0.1);
  box-shadow: 0 0 30px rgba(0, 255, 65, 0.4);
}
#game-link {
  margin-top: 8px;
  color: #00ff41;
  font-size: 16px;
  min-height: 20px;
  text-shadow: 0 0 8px #00ff41;
}
#game-link.copied {
  color: #00ff41;
  text-shadow: 0 0 12px #00ff41;
}
#channel-form .obs-note {
  margin-top: 32px;
  color: #00ff41;
  font-size: 28px;
  opacity: 0.8;
  line-height: 1.6;
  text-shadow: 0 0 6px #00ff41;
}
.links-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 40px;
  margin-top: 16px;
}
.page-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #00ff41;
  font-size: 22px;
  text-decoration: none;
  text-shadow: 0 0 10px #00ff41;
  opacity: 0.85;
  transition: opacity 0.15s;
}
.link-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
  flex-shrink: 0;
}
.page-link:hover {
  opacity: 1;
  text-shadow: 0 0 16px #00ff41;
}
