@font-face {
  font-family: "Minecraftia";
  src: url("/static/minecraft_font.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

:root {
  --grass: #5c8f3e;
  --dirt: #7a5434;
  --stone: #7a7a7a;
  --wood: #b07a4a;
  --sky: #8ec9ff;
  --night: #2a2f3a;
  --ink: #1b1b1b;
  --light: #f1f5f2;
  --accent: #f2c14e;
  --danger: #ff5c5c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Minecraftia", monospace;
  color: var(--ink);
  background: linear-gradient(180deg, var(--sky), #d8f0ff 60%, var(--grass) 60%);
  min-height: 100vh;
}

.sky {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, #ffffffaa 0 35px, transparent 40px),
              radial-gradient(circle at 70% 10%, #ffffff88 0 45px, transparent 50px);
  opacity: 0.7;
  pointer-events: none;
}

.page {
  max-width: 920px;
  margin: 0 auto;
  padding: 32px 20px 56px;
  position: relative;
  z-index: 1;
}

.title {
  text-align: center;
  margin-bottom: 24px;
}

.title h1 {
  font-size: 32px;
  margin: 12px 0 8px;
  text-shadow: 2px 2px 0 #ffffff;
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  background: var(--stone);
  color: var(--light);
  border: 3px solid #4b4b4b;
  box-shadow: 3px 3px 0 #3b3b3b;
}

.card {
  background: #f6efe4;
  border: 4px solid #3a2a1f;
  box-shadow: 6px 6px 0 #2b2018;
  padding: 18px 20px 20px;
  margin-bottom: 20px;
}

.card h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

input[type="text"] {
  flex: 1 1 320px;
  padding: 10px;
  border: 3px solid #1f1f1f;
  background: #fffdf6;
  font-family: "Minecraftia", monospace;
  font-size: 14px;
}

button {
  padding: 10px 18px;
  border: 3px solid #1f1f1f;
  background: var(--wood);
  color: #1f1f1f;
  font-family: "Minecraftia", monospace;
  cursor: pointer;
  box-shadow: 3px 3px 0 #5b3b24;
}

button:hover {
  background: var(--accent);
}

.hint {
  margin-top: 12px;
  font-size: 12px;
  color: #2f2f2f;
}

.code {
  background: #e7e0d6;
  border: 2px solid #2b2018;
  padding: 2px 6px;
}

pre {
  background: #111;
  color: #9aff7a;
  padding: 12px;
  border: 3px solid #3a2a1f;
  white-space: pre-wrap;
}

.card.error pre {
  color: var(--danger);
}

.meta {
  font-size: 12px;
  margin-bottom: 8px;
}

.footer {
  text-align: center;
  color: #2b2b2b;
  margin-top: 24px;
}

@media (max-width: 600px) {
  .title h1 {
    font-size: 24px;
  }

  .row {
    flex-direction: column;
  }

  button {
    width: 100%;
  }
}
