:root {
  --bg-1: #fff2e8;
  --bg-2: #ffe3cc;
  --ink: #221a16;
  --muted: #5f5044;
  --line: #ebcfb5;
  --panel: rgba(255, 252, 248, 0.9);
  --accent: #ff6a3e;
  --shadow: 0 20px 44px rgba(78, 45, 20, 0.16);
}

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

body {
  margin: 0;
  color: var(--ink);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% -5%, rgba(255, 154, 102, 0.35) 0%, transparent 36%),
    radial-gradient(circle at 88% 8%, rgba(255, 198, 124, 0.3) 0%, transparent 40%),
    linear-gradient(150deg, var(--bg-1), var(--bg-2));
}

.lock-shell {
  max-width: 76rem;
  margin: 0 auto;
  padding: 1.2rem 1rem 2rem;
}

.gate-card {
  border: 1px solid var(--line);
  border-radius: 1.3rem;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: clamp(1.1rem, 2.1vw, 1.8rem);
  max-width: 42rem;
  margin: 10vh auto 0;
}

.hero-topper {
  margin: 0 0 0.35rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
}

h1 {
  margin: 0 0 0.6rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3rem);
}

.gate-form {
  display: grid;
  gap: 0.75rem;
}

.gate-sentence {
  margin: 0;
  color: #3a3029;
  line-height: 1.5;
}

.gate-input {
  width: 8ch;
  display: inline-block;
  vertical-align: middle;
  margin: 0 0.15rem;
  border: 1px solid #d9b99a;
  border-radius: 0.65rem;
  background: #fffdf9;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.3;
  text-align: center;
  padding: 0.36rem 0.5rem;
}

.gate-input:focus-visible {
  outline: 2px solid #ff9b62;
  outline-offset: 2px;
}

.cta-btn {
  justify-self: start;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(160deg, var(--accent), #ff855e);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.62rem 1.08rem;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(200, 87, 50, 0.24);
}

.cta-btn:hover,
.cta-btn:focus-visible {
  filter: brightness(1.03);
}

.cta-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.gate-message {
  margin: 0.7rem 0 0;
  min-height: 1.3rem;
  color: #8f3e21;
  font-size: 0.92rem;
}

.gate-message.is-success {
  color: #2f7d46;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media only screen and (max-width: 700px) {
  .gate-input {
    width: 100%;
    margin: 0.25rem 0;
  }
}
