@font-face {
  font-family: 'Surgena';
  src: url('fonts/surgena.ttf') format('truetype');
}

html, body {
  margin: 0;
  padding: 0;
  cursor: crosshair;
}

canvas {
  display: block;
  cursor: crosshair;
}

.gradient-protocol {
  position: absolute;
  top: 22px;
  right: 30px;
  font-family: 'Surgena', sans-serif;
  font-size: 18px;
  font-weight: normal;
  text-transform: lowercase;
  letter-spacing: 2px;
  z-index: 100;
  pointer-events: none;
  background: linear-gradient(90deg, #333, #333, #333, #fff, #333, #333, #333);
  background-size: 600% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: fadeIn 2s ease-in-out, moveShimmer 20s linear infinite;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes moveShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.brush-selector {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 100;
}

.controls {
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: flex;
  gap: 10px;
  align-items: center;
  z-index: 100;
  color: white;
  font-family: 'Surgena', sans-serif;
  font-size: 12px;
  text-transform: lowercase;
  pointer-events: auto;
}

.admin {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  z-index: 100;
  color: white;
  font-family: 'Surgena', sans-serif;
  font-size: 12px;
  pointer-events: auto;
}

.brush-option {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.brush-option:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.brush-option.active {
  background: rgba(255, 255, 255, 0.4);
  border-color: #fff;
}

.brush-option .preview {
  width: 12px;
  height: 12px;
  background: #fff;
}

.brush-option[data-type="1"] .preview { border-radius: 50%; }
.brush-option[data-type="2"] .preview { border-radius: 0; }
.brush-option[data-type="3"] .preview { 
  background: transparent;
  width: 0; height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 12px solid #fff;
}
.brush-option[data-type="4"] .preview { 
  border-radius: 50%; 
  width: 16px;
  height: 8px;
}
.brush-option[data-type="5"] .preview { border-radius: 2px; }
.brush-option[data-type="rainbow"] .preview { 
  background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0.1) 100%);
  border-radius: 50%;
}
.brush-option[data-type="spraypaint"] .preview { 
  background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
}

.brush-option.eraser {
  margin-top: 10px;
  border-style: dashed;
}
.brush-option.eraser .preview {
  background: transparent;
  border: 2px solid #fff;
  border-radius: 50%;
  width: 10px;
  height: 10px;
}
.brush-option.clear-all {
  border-style: dashed;
}
.brush-option.clear-all .preview {
  display: none;
}
