.pixel-art-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: #fff;
}

.pixel-art-content {
  max-width: 1000px;
  margin: 0 auto;
}

.pixel-art-nav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.pixel-art-controls {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pixel-art-controls-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pixel-art-controls-row {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

@media (min-width: 640px) {
  .pixel-art-controls-row {
    flex-direction: row;
    justify-content: space-between;
  }
}

.pixel-art-controls-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pixel-art-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

.pixel-art-count {
  min-width: 60px;
  text-align: right;
  font-family: monospace;
  color: #4a90e2;
}

.pixel-art-canvas-container {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 10px;
  background: #000;
  border: 2px solid #333;
  border-radius: 8px;
}

.pixel-art-canvas {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  background: #000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}

.pixel-art-canvas:hover {
  transform: scale(1.01);
}

.pixel-art-size-display {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 14px;
}

.pixel-art-button {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  color: #fff;
  background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pixel-art-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.pixel-art-button:active {
  transform: translateY(0);
}

.pixel-art-button-home {
  background: #333;
}

.pixel-art-button-home:hover {
  background: #444;
}

.pixel-art-button-donate {
  background: #ff3366;
}

.pixel-art-button-donate:hover {
  background: #ff4477;
}

.pixel-art-button-start {
  background: #0066ff;
}

.pixel-art-button-start:hover {
  background: #0077ff;
}

.pixel-art-select {
  padding: 12px;
  background: rgba(10, 10, 20, 0.9);
  color: #fff;
  border: 1px solid rgba(74, 144, 226, 0.5);
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

.pixel-art-select:hover {
  border-color: #4a90e2;
  background-color: rgba(10, 10, 20, 1);
}

.pixel-art-select:focus {
  outline: none;
  border-color: #4a90e2;
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.3);
}

.pixel-art-select option {
  background-color: #1a1a2e !important;
  color: #fff !important;
  padding: 12px;
}

.pixel-art-pattern-selector {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pixel-art-pattern-info {
  background: rgba(255, 255, 255, 0.05);
  padding: 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.6;
}

.pixel-art-equation {
  font-family: monospace;
  color: #4a90e2;
  margin-top: 8px;
}

.pixel-art-slider {
  flex: 1;
  height: 6px;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  outline: none;
}

.pixel-art-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: #4a90e2;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s;
}

.pixel-art-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.pixel-art-description {
  color: #888;
  font-size: 14px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .pixel-art-container {
    padding: 40px;
  }

  .pixel-art-controls {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .pixel-art-pattern-selector {
    flex: 1;
    min-width: 300px;
  }

  .pixel-art-controls-group {
    flex: 1;
    min-width: 200px;
  }
}

@media (min-width: 1024px) {
  .pixel-art-container {
    max-width: 1400px;
    margin: 0 auto;
  }
}
