:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  background: #17191d;
  color: #f6f7f8;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
  background:
    radial-gradient(ellipse at 50% 0, #143b43 0, transparent 55%), #17191d;
}
main {
  width: min(100%, 490px);
}
header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 22px 30px;
}
.crest {
  font-size: 65px;
  color: white;
  border: 3px solid #00e5ff;
  padding: 0 15px 9px;
  clip-path: polygon(0 0, 100% 0, 90% 78%, 50% 100%, 10% 78%);
  background: #173b42;
}
header p {
  font-size: 9px;
  letter-spacing: 2px;
  color: #9db6bb;
  margin: 0 0 8px;
}
h1 {
  margin: 0;
  color: #79f5ff;
  font-size: 46px;
  line-height: 0.94;
  letter-spacing: -1.5px;
  text-shadow: 0 3px #008eaa;
}
section {
  background: #25282e;
  border: 1px solid #343b43;
  border-left: 3px solid #00e5ff;
  padding: 24px 28px;
  border-radius: 3px 12px 12px 3px;
  box-shadow: 0 24px 70px #0004;
}
.rule {
  color: #47deec;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-align: center;
}
h2 {
  font-size: 26px;
  margin: 24px 0 8px;
  letter-spacing: -0.7px;
}
.intro,
small,
.note {
  color: #aeb6c1;
  font-size: 13px;
  line-height: 1.6;
}
.intro {
  margin-bottom: 26px;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 650;
  margin: 20px 0 9px;
}
.name,
.colors {
  display: flex;
  gap: 10px;
  align-items: center;
}
.name {
  border: 1px solid #49515c;
  border-radius: 7px;
  background: #1a1d22;
  padding-left: 12px;
}
.name span {
  color: #00e5ff;
  white-space: nowrap;
}
.name input {
  border: 0;
}
input:not([type="checkbox"]) {
  width: 100%;
  background: #1a1d22;
  color: white;
  border: 1px solid #49515c;
  border-radius: 6px;
  padding: 12px;
  font: inherit;
  min-width: 0;
}
.name input {
  border: 0;
}
small {
  display: block;
  font-size: 11px;
  margin-top: 6px;
}
.colors input[type="color"] {
  width: 57px;
  min-width: 57px;
  height: 46px;
  padding: 4px;
  cursor: pointer;
}
.colors #hex {
  font-family: monospace;
  letter-spacing: 1px;
}
.check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: #adb5bf;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 400;
}
.check input {
  margin-top: 2px;
  accent-color: #00e5ff;
}
#preview {
  color: #00e5ff;
  padding: 22px;
  background: #1b1e23;
  border: 1px dashed #46515b;
  border-radius: 7px;
  text-align: center;
  font-size: 21px;
  font-weight: 650;
  margin-top: 22px;
  overflow-wrap: anywhere;
}
.note {
  font-size: 11px;
  margin: 16px 0 22px;
}
button {
  border: 0;
  border-radius: 6px;
  background: #00e5ff;
  color: #04262b;
  padding: 14px 18px;
  width: 100%;
  font-weight: 750;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}
button:hover {
  background: #7af3ff;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
input:focus-visible,
button:focus-visible {
  outline: 2px solid #00e5ff;
  outline-offset: 3px;
}
#status {
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
footer {
  text-align: center;
  font-size: 9px;
  letter-spacing: 2px;
  color: #75828b;
  margin-top: 24px;
}
@media (max-width: 380px) {
  section {
    padding: 20px;
  }
  h1 {
    font-size: 36px;
  }
  header {
    gap: 16px;
    padding-left: 6px;
  }
}
