@font-face {
  font-family: 'Minecraft';
  src: url('minecraft.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 20px;
  min-height: 100vh;
  background: linear-gradient(135deg, #1e1338 0%, #111424 50%, #1a2333 100%);
  color: #e6e6e6;
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wrapper {
  width: 100%;
  max-width: 600px;
  background: #1e2129;
  border: 1px solid #323642;
  border-top: 4px solid #4a90d9;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 30px rgba(74, 144, 217, 0.1);
}

h1 {
  font-size: 22px;
  margin: 0 0 24px;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

label {
  display: block;
  margin: 20px 0 8px;
  font-size: 11px;
  color: #9aa0ab;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

input[type="text"] {
  width: 100%;
  padding: 10px 14px;
  background: #15171d;
  border: 1px solid #323642;
  border-radius: 8px;
  color: #e6e6e6;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

input[type="text"]:focus {
  border-color: #4a90d9;
}

.row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.row input[type="color"] {
  width: 40px;
  height: 40px;
  padding: 2px;
  background: #15171d;
  border: 1px solid #323642;
  border-radius: 6px;
  cursor: pointer;
}

.row input[type="text"] {
  flex: 1;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
}

.palitra {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.swatch {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.swatch:hover {
  transform: scale(1.1);
  z-index: 1;
  border-color: #fff;
}

.swatch.active {
  border-color: #fff;
  transform: scale(1.05);
}

.prev {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
  padding: 20px;
  background: #15171d;
  border: 1px solid #323642;
  border-radius: 10px;
  min-height: 80px;
}

.prev img {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  border: 1px solid #444a55;
  flex-shrink: 0;
  background: #2d313a;
}

.ptext {
  font-family: 'Minecraft', monospace;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: 0.5px;
  word-break: break-word;
}

#separator {
  color: #7a828f;
}

.actions {
  margin-top: 28px;
  text-align: right;
}

.actions button {
  padding: 12px 24px;
  font-size: 14px;
  font-family: inherit;
  font-weight: 600;
  background: #4a90d9;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.actions button:hover {
  background: #5aa0e9;
}

.actions button:active {
  transform: scale(0.98);
}

@media (max-width: 480px) {
  .wrapper {
    padding: 24px;
  }
  h1 {
    font-size: 18px;
  }
  .ptext {
    font-size: 18px;
  }
  .prev img {
    width: 48px;
    height: 48px;
  }
}