#hylian-font-generator * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

#hylian-font-generator {
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #0f172a, #14532d, #1e3a8a);
  padding: 25px;
  border-radius: 24px;
  color: white;
  max-width: 1400px;
  margin: auto;
  box-shadow: 0 12px 35px rgba(212,175,55,0.2);
}

.hylian-wrapper {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
}

.hylian-controls,
.hylian-preview {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 22px;
}

.hylian-controls h2,
.hylian-preview h2 {
  color: #d4af37;
  margin-bottom: 18px;
}

.hylian-controls label {
  display: block;
  margin-top: 14px;
  margin-bottom: 8px;
  font-weight: bold;
}

.hylian-controls input,
.hylian-controls button {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: none;
  margin-bottom: 10px;
}

.hylian-controls button {
  background: linear-gradient(90deg, #d4af37, #facc15);
  color: black;
  font-weight: bold;
  cursor: pointer;
}

.preview-box {
  min-height: 250px;
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(212,175,55,0.3);
  border-radius: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 30px;
  font-size: 52px;
  font-weight: bold;
  transition: all 0.3s ease;
  word-break: break-word;
}

.style-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
  gap: 15px;
  margin-top: 25px;
  max-height: 650px;
  overflow-y: auto;
}

.style-card {
  background: rgba(255,255,255,0.08);
  padding: 18px;
  border-radius: 16px;
  text-align: center;
  cursor: pointer;
  transition: .3s;
  border: 1px solid rgba(212,175,55,0.2);
}

.style-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(212,175,55,0.2);
}

@media(max-width:900px){
  .hylian-wrapper {
    grid-template-columns: 1fr;
  }

  .preview-box {
    font-size: 34px;
  }
}