:root {
  --green-900: #0b211b; --green-800: #0f2a22; --green-700: #143a2f; --green-500: #286653;
  --paper: #f6f1e6; --card: #fffdf8; --ink: #17221d; --muted: #66726a;
  --gold: #c9973f; --gold-soft: #e5c88e; --line: rgba(23, 34, 29, .12); --error: #a33a32;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.lg {
  min-height: 100vh; min-height: 100dvh; font-family: var(--sans); color: var(--paper);
  background: radial-gradient(ellipse 80% 60% at 20% 0%, #1d4a3c 0%, transparent 60%), var(--green-800);
  display: grid; place-items: center; padding: 24px 16px; position: relative; overflow-x: hidden;
}
/* Tablero sutil de fondo, desvanecido hacia los bordes */
.lg-board {
  position: fixed; inset: 0; pointer-events: none; opacity: .07;
  background: conic-gradient(#fff 25%, transparent 0 50%, #fff 0 75%, transparent 0) 0 0 / 88px 88px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 45%, #000 20%, transparent 75%);
}
.lg-shell {
  position: relative; width: 100%; max-width: 940px; display: grid;
  grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center;
}
.lg-knight {
  display: grid; place-items: center; width: 64px; height: 64px; font-size: 38px; line-height: 1;
  color: var(--gold-soft); border: 1px solid rgba(229, 200, 142, .35); border-radius: 50%;
  background: rgba(255, 255, 255, .03); margin-bottom: 26px; text-decoration: none; transition: border-color .2s, background .2s;
}
.lg-knight:hover, .lg-knight:focus-visible { border-color: var(--gold-soft); background: rgba(255, 255, 255, .08); outline: none; }
.lg-eyebrow { margin: 0 0 10px; color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }
.lg-intro h1 { margin: 0; font: 500 clamp(48px, 7vw, 76px)/.95 var(--serif); letter-spacing: -.03em; color: #fbf6ea; }
.lg-lede { margin: 20px 0 0; max-width: 420px; font-size: 17px; line-height: 1.6; color: rgba(246, 241, 230, .7); }
.lg-stats { display: flex; gap: 34px; margin: 34px 0 0; padding-top: 22px; border-top: 1px solid rgba(246, 241, 230, .16); }
.lg-stats div { margin: 0; }
.lg-stats dt { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: rgba(246, 241, 230, .5); }
.lg-stats dd { margin: 6px 0 0; font: 500 28px var(--serif); color: var(--gold-soft); font-variant-numeric: lining-nums; }

.lg-card {
  background: var(--card); color: var(--ink); border-radius: 14px; padding: 38px 34px 30px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .35), 0 2px 0 rgba(255, 255, 255, .6) inset;
  border-top: 3px solid var(--gold);
}
.lg-card h2 { margin: 0; font: 500 30px var(--serif); color: var(--green-800); }
.lg-hint { margin: 8px 0 26px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.lg-form { display: grid; gap: 10px; }
.lg-form label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.lg-field { position: relative; }
.lg-field input {
  width: 100%; height: 52px; padding: 0 84px 0 16px; font: 17px var(--sans); color: var(--ink);
  background: #fff; border: 1.5px solid #d9d2c3; border-radius: 10px; transition: border-color .15s, box-shadow .15s;
}
.lg-field input:focus { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 4px rgba(40, 102, 83, .15); }
.lg-eye {
  position: absolute; right: 6px; top: 6px; height: 40px; padding: 0 14px; border: 0; border-radius: 7px;
  background: transparent; color: var(--green-500); font: 600 14px var(--sans); cursor: pointer;
}
.lg-eye:hover, .lg-eye:focus-visible { background: rgba(40, 102, 83, .08); outline: none; }
.lg-error { display: flex; gap: 8px; align-items: center; margin: 2px 0 0; color: var(--error); font-size: 14px; font-weight: 500; }
.lg-error::before { content: "!"; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--error); color: #fff; font-size: 12px; font-weight: 800; flex: none; }
.lg-form.has-error .lg-field input { border-color: var(--error); }
.lg-form.has-error .lg-field input:focus { box-shadow: 0 0 0 4px rgba(163, 58, 50, .14); }
.lg-submit {
  margin-top: 12px; height: 52px; border: 0; border-radius: 10px; cursor: pointer;
  background: linear-gradient(180deg, var(--green-700), var(--green-800)); color: #fff;
  font: 600 16px var(--sans); letter-spacing: .01em; box-shadow: 0 8px 18px rgba(15, 42, 34, .25);
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.lg-submit:hover { filter: brightness(1.15); transform: translateY(-1px); box-shadow: 0 12px 24px rgba(15, 42, 34, .3); }
.lg-submit:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.lg-submit:disabled { opacity: .75; cursor: progress; transform: none; }
.lg-steps { list-style: none; margin: 16px 0 24px; padding: 0; display: grid; gap: 10px; }
.lg-steps li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: 14px; line-height: 1.35; }
.lg-steps b { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid #d9d2c3; font-size: 13px; }
.lg-steps li.on { color: var(--ink); font-weight: 600; }
.lg-steps li.on b { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.lg-steps small { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; font-weight: 400; }
.lg-steps em { font-style: normal; font-weight: 400; }
.lg-help { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.lg-notice { margin: 0 0 20px; padding: 12px 14px; border-radius: 10px; background: #edf5ef; color: #1f5a43; font-size: 14px; line-height: 1.45; }
.lg-note { margin: 22px 0 0; display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; }
.lg-note span { color: #3f9d6d; font-size: 9px; }
.lg-back { display: inline-block; margin-top: 18px; color: var(--green-500); font-size: 13px; font-weight: 600; text-decoration: none; }
.lg-back:hover, .lg-back:focus-visible { text-decoration: underline; outline: none; }

@media (prefers-reduced-motion: no-preference) {
  .lg-intro, .lg-card { animation: lg-rise .6s cubic-bezier(.16, 1, .3, 1) both; }
  .lg-card { animation-delay: .08s; }
  .lg-form.has-error .lg-field { animation: lg-shake .4s ease; }
  @keyframes lg-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes lg-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
}

@media (max-width: 760px) {
  body.lg { place-items: start center; padding: 40px 16px 28px; }
  .lg-shell { grid-template-columns: 1fr; gap: 28px; }
  .lg-intro { text-align: center; }
  .lg-knight { width: 56px; height: 56px; font-size: 32px; margin: 0 auto 18px; }
  .lg-intro h1 { font-size: 46px; }
  .lg-lede { margin: 12px auto 0; font-size: 15px; }
  .lg-stats { justify-content: center; gap: 26px; margin-top: 22px; padding-top: 16px; }
  .lg-stats dd { font-size: 22px; }
  .lg-card { padding: 30px 22px 24px; }
  .lg-card h2 { font-size: 26px; }
  .lg-hint { margin-bottom: 20px; }
}
