
body {
  font-family: 'Orbitron', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(120deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
  color: #fff;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
  background:
    repeating-linear-gradient(135deg, #00ffd533 0 2px, transparent 2px 40px),
    repeating-linear-gradient(225deg, #00ffd511 0 2px, transparent 2px 40px);
  background-size: 40px 40px, 40px 40px;
  background-repeat: repeat;
  pointer-events: none;
  animation: bgmove 8s linear infinite;
}

@keyframes bgmove {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 40px 40px, 40px 40px; }
}

.pirate-header {
  position: relative;
  z-index: 1;
  padding: 2em 0 1em 0;
  background: transparent;
  text-align: center;
}
.pirate-logo {
  font-size: 3em;
  margin-bottom: 0.2em;
  filter: drop-shadow(0 0 8px #00ffd5cc);
}
.pirate-header h1 {
  font-family: 'Orbitron', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 2.8em;
  color: #00ffd5;
  letter-spacing: 0.08em;
  margin: 0;
  text-shadow: 0 0 16px #00ffd5aa, 0 0 2px #fff;
}
.subtitle {
  font-size: 1.2em;
  color: #fff;
  margin-top: 0.3em;
  margin-bottom: 0.5em;
  opacity: 0.85;
  letter-spacing: 0.04em;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  z-index: 1;
  position: relative;
}

.badge-card {
  background: rgba(20, 30, 40, 0.92);
  border-radius: 18px;
  box-shadow: 0 0 32px #00ffd555, 0 2px 8px #000a;
  padding: 2.5em 2em 2em 2em;
  margin-top: 2em;
  max-width: 350px;
  width: 100%;
  text-align: center;
  border: 2px solid #00ffd5cc;
  position: relative;
}

label, select {
  font-size: 1.2em;
  margin-top: 1.5em;
  display: block;
}

select {
  padding: 12px;
  border-radius: 10px;
  background: #111;
  color: #00ffd5;
  border: 2px solid #00ffd5cc;
  margin: 0.5em auto 1.2em auto;
  width: 90%;
  font-family: inherit;
  font-size: 1.1em;
  box-shadow: 0 0 8px #00ffd555;
  transition: border 0.2s, box-shadow 0.2s;
}
select:focus {
  outline: none;
  border: 2px solid #fff;
  box-shadow: 0 0 16px #00ffd5cc;
}

#badgePreview {
  margin: 20px auto 0 auto;
  max-width: 300px;
}

#badgeImage {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 0 24px #00ffd5cc, 0 2px 8px #000a;
  margin-bottom: 0.7em;
  border: 2px solid #00ffd5cc;
}

#badgeDescription {
  font-size: 1.1em;
  color: #fff;
  margin-bottom: 0.5em;
  text-shadow: 0 0 4px #00ffd5aa;
}

esp-web-install-button {
  margin-top: 1.5em;
  font-size: 1.1em;
  background: linear-gradient(90deg, #00ffd5 60%, #2c5364 100%);
  border-radius: 10px;
  padding: 12px 28px;
  color: #000;
  box-shadow: 0 0 16px #00ffd599;
  cursor: pointer;
  border: none;
  font-weight: bold;
  letter-spacing: 0.04em;
  transition: filter 0.2s, box-shadow 0.2s;
}
esp-web-install-button:hover {
  filter: brightness(1.15) drop-shadow(0 0 8px #00ffd5cc);
}

footer {
  width: 100%;
  text-align: center;
  padding: 1.5em 0 1em 0;
  background: transparent;
  color: #00ffd5;
  font-size: 1.1em;
  letter-spacing: 0.04em;
  z-index: 1;
  position: relative;
}
.footer-text {
  opacity: 0.7;
}

h1 {
  font-size: 2.2em;
  margin-top: 1em;
  color: #00ffd5;
  text-shadow: 0 0 8px #00ffd5aa;
}

label, select {
  font-size: 1.2em;
  margin-top: 1.5em;
  display: block;
}

select {
  padding: 10px;
  border-radius: 8px;
  background: #fff;
  color: #000;
  border: none;
  margin: 0.5em auto;
  width: 250px;
}

#badgePreview {
  margin: 20px auto;
  max-width: 300px;
}

#badgeImage {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 0 20px #00ffd5aa;
}

esp-web-install-button {
  margin-top: 1.5em;
  font-size: 1.1em;
  background-color: #00ffd5;
  border-radius: 8px;
  padding: 10px 20px;
  color: #000;
  box-shadow: 0 0 10px #00ffd599;
  cursor: pointer;
}

esp-web-install-button:hover {
  filter: brightness(1.1);
}
