:root {
  --sky: #7ec8e8;
  --sky-deep: #4fa8d0;
  --grass: #5a9e3e;
  --grass-dark: #3f7a2c;
  --dirt: #8b5a2b;
  --stone: #7a7a7a;
  --wood: #c4a574;
  --ink: #1c2a1f;
  --ink-soft: #2f4536;
  --paper: #f3f7ef;
  --muted: #4d6354;
  --gold: #e6b422;
  --gold-deep: #c49212;
  --danger: #c44b3c;
  --ok: #3d9a5a;
  --font-brand: "Russo One", "Arial Black", sans-serif;
  --font-body: "Karla", "Trebuchet MS", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sky-deep);
  line-height: 1.45;
}

/* Full-bleed Minecraft world */
.world {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(28, 42, 31, 0.15) 0%, rgba(28, 42, 31, 0.55) 55%, rgba(28, 42, 31, 0.82) 100%),
    url("goloka-hero.png") center / cover no-repeat,
    linear-gradient(180deg, var(--sky) 0%, var(--sky-deep) 45%, var(--grass-dark) 100%);
}

.world::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  animation: gridDrift 28s linear infinite;
}

.clouds {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 18rem 6rem at 12% 18%, rgba(255, 255, 255, 0.35), transparent 70%),
    radial-gradient(ellipse 14rem 5rem at 78% 12%, rgba(255, 255, 255, 0.28), transparent 70%),
    radial-gradient(ellipse 10rem 4rem at 55% 22%, rgba(255, 255, 255, 0.2), transparent 70%);
  animation: cloudShift 40s ease-in-out infinite alternate;
}

@keyframes gridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 32px 32px, 32px 32px; }
}

@keyframes cloudShift {
  from { transform: translateX(0); }
  to { transform: translateX(2.5%); }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes brandPop {
  0% {
    opacity: 0;
    transform: translateY(0.8rem) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.shell {
  position: relative;
  z-index: 1;
  width: min(34rem, calc(100% - 2rem));
  margin: 0 auto 2rem;
  padding: 1.75rem 1.5rem 1.5rem;
  background: rgba(243, 247, 239, 0.94);
  border: 4px solid #2b2b2b;
  box-shadow:
    inset -3px -3px 0 rgba(0, 0, 0, 0.12),
    inset 3px 3px 0 rgba(255, 255, 255, 0.45),
    0 18px 40px rgba(0, 0, 0, 0.28);
  animation: riseIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand {
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: clamp(2.8rem, 11vw, 4rem);
  letter-spacing: 0.02em;
  line-height: 0.95;
  margin: 0;
  color: var(--ink);
  text-shadow: 3px 3px 0 rgba(90, 158, 62, 0.35);
  animation: brandPop 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand-meta {
  margin: 0.55rem 0 0;
  font-family: var(--font-brand);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grass-dark);
}

.lede {
  margin: 0.9rem 0 1.35rem;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 28ch;
}

.flash {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-left: 4px solid var(--danger);
  background: rgba(196, 75, 60, 0.1);
  color: #7a2a22;
  font-size: 0.95rem;
}

.flash.ok {
  border-left-color: var(--ok);
  background: rgba(61, 154, 90, 0.12);
  color: #1f5c34;
}

.form {
  display: grid;
  gap: 0.95rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

input {
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 3px solid #2b2b2b;
  border-radius: 0;
  padding: 0.8rem 0.9rem;
  outline: none;
  box-shadow: inset -2px -2px 0 rgba(0, 0, 0, 0.06);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

input:focus {
  border-color: var(--grass);
  box-shadow:
    inset -2px -2px 0 rgba(0, 0, 0, 0.06),
    0 0 0 3px rgba(90, 158, 62, 0.28);
}

input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.35rem;
}

button,
.btn {
  font-family: var(--font-brand);
  font-size: 1rem;
  letter-spacing: 0.03em;
  border: 3px solid #2b2b2b;
  cursor: pointer;
  padding: 0.85rem 1.25rem;
  background: linear-gradient(180deg, #f0d15a 0%, var(--gold) 55%, var(--gold-deep) 100%);
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.45),
    inset 0 -3px 0 rgba(0, 0, 0, 0.15);
  transition: transform 0.12s ease, filter 0.12s ease;
}

button:hover,
.btn:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
}

button:active,
.btn:active {
  transform: translateY(1px);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn.ghost {
  background: linear-gradient(180deg, #f7faf4 0%, #dfe8d8 100%);
  color: var(--ink);
}

.btn.ghost:hover {
  filter: none;
  background: #fff;
}

.hint {
  margin: 1.15rem 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.hint code {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.84em;
  background: rgba(90, 158, 62, 0.12);
  padding: 0.05rem 0.3rem;
}

.warn {
  margin: 0 0 1rem;
  color: var(--dirt);
  font-size: 0.98rem;
  font-weight: 600;
}

.creds {
  display: grid;
  gap: 0.85rem;
  margin: 1.15rem 0 1.35rem;
  padding: 1rem 0;
  border-top: 3px solid #2b2b2b;
  border-bottom: 3px solid #2b2b2b;
}

.cred {
  display: grid;
  gap: 0.15rem;
}

.cred dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.cred dd {
  margin: 0;
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 1.05rem;
  word-break: break-all;
  color: var(--ink);
  background: rgba(90, 158, 62, 0.1);
  padding: 0.35rem 0.5rem;
  border: 2px solid rgba(43, 43, 43, 0.25);
}

@media (min-width: 860px) {
  .world {
    align-items: center;
  }

  .shell {
    margin: 0 0 0 8vw;
    justify-self: start;
    width: min(26rem, 42vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
