@font-face {
  font-family: "Joystix";
  src: url("./Resources/Fonts/joystix.ttf");
}

* {
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
  font-family: "Joystix", monospace;
}

html, body {
  height: 100%;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 16px;
  background-color: #1b2a3a;
  overflow: hidden;
}

#skyline {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  z-index: 0;
}

/* Builder-style panel with notched pixel corners and a hard drop shadow */
.card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  margin-bottom: 18vh;
  padding: 28px 24px 22px;
  text-align: center;
  color: #df7126;
  background-color: #f0f682;
  box-shadow:
    0 -4px 0 0 #df7126,
    0 4px 0 0 #df7126,
    -4px 0 0 0 #df7126,
    4px 0 0 0 #df7126,
    8px 12px 0 0 #1a1218;
}

.title {
  font-size: clamp(32px, 10vw, 52px);
  font-weight: normal;
  line-height: 1.15;
  color: #df7126;
  text-shadow: 3px 3px 0 #1a1218;
  letter-spacing: 1px;
}

.chain {
  margin-top: 8px;
  font-size: 11px;
  color: #1a1218;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.lead {
  margin-top: 20px;
  font-size: 13px;
  line-height: 1.6;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.btn[hidden] {
  display: none;
}

.btn {
  padding: 12px 18px;
  font-size: 16px;
  color: #df7126;
  background-color: #f0f682;
  border: 3px solid #df7126;
  cursor: pointer;
}

.btn:enabled:hover {
  border: 3px solid transparent;
}

.btn:focus-visible {
  outline: 3px dashed #1a1218;
  outline-offset: 3px;
}

.btn:disabled {
  opacity: 0.8;
  filter: grayscale(1);
  cursor: wait;
}

#response {
  min-height: 1.6em;
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.6;
  color: #1a1218;
}

#redirect {
  display: none;
  margin-bottom: 8px;
  font-size: 12px;
  color: #df7126;
}

.hint {
  font-size: 10px;
  line-height: 1.6;
  color: #8a6a2a;
}

@media (max-height: 560px) {
  .card {
    margin-bottom: 0;
  }
}
