.landing-screen {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(370px, 0.85fr);
  align-items: center;
  gap: clamp(42px, 6vw, 100px);
  min-height: calc(100vh - 124px);
  max-width: 1120px;
  margin: 0 auto;
}

.landing-story {
  padding: 32px 0;
}

.landing-story .eyebrow {
  margin-bottom: 22px;
}

.landing-story h1 {
  max-width: 11ch;
  font-size: clamp(3.8rem, 5.6vw, 6.2rem);
  line-height: 0.98;
}

.landing-lead {
  max-width: 53ch;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.landing-aside {
  margin: 32px 0 0;
  padding-left: 18px;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-left: 2px solid rgba(233, 183, 189, 0.45);
}

.landing-access {
  padding: 30px;
  background:
    radial-gradient(circle at 50% 0, rgba(233, 183, 189, 0.11), transparent 48%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(233, 183, 189, 0.19);
  border-radius: 30px;
  box-shadow: var(--shadow-large);
}

.landing-mascots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 190px;
  margin-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-mascots img {
  width: 38%;
  max-width: 145px;
  height: 165px;
  object-fit: contain;
  opacity: 0.78;
  filter: blur(3px) brightness(0.75) saturate(0.7)
    drop-shadow(0 15px 18px rgba(0, 0, 0, 0.26));
}

.landing-connection {
  flex: 0 0 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 12px rgba(233, 183, 189, 0.6);
}

.landing-access .panel-label {
  color: var(--accent);
}

.landing-access h2 {
  margin: 8px 0 0;
  font-size: 2rem;
  letter-spacing: -0.035em;
}

.landing-access-copy {
  margin: 12px 0 24px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.landing-password-form label {
  display: block;
  margin-bottom: 9px;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
}

.landing-password-form input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.23);
  border: 1px solid var(--panel-border);
  border-radius: 13px;
  outline: none;
}

.landing-password-form input:focus {
  border-color: rgba(233, 183, 189, 0.75);
  box-shadow: 0 0 0 3px rgba(233, 183, 189, 0.1);
}

.landing-password-form .primary-button {
  margin-top: 14px;
  border-radius: 13px;
}

.landing-feedback {
  min-height: 1.35em;
  margin: 10px 0 0;
  color: #e9a7ad;
  font-size: 0.81rem;
}

.full-reset-button,
.dev-toggle-button {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 10000;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  color: #ffe6e6;
  font-size: 1rem;
  line-height: 1;
  background: #8f353d;
  border: 1px solid #bd636b;
  border-radius: 50%;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.full-reset-button:hover {
  background: #b44953;
}

.dev-toggle-button {
  left: 54px;
  color: #fff1d9;
  font-size: 0.68rem;
  font-weight: 800;
  background: #ad641d;
  border-color: #dd9746;
}

.dev-toggle-button:hover,
.dev-toggle-button[aria-pressed="true"] {
  background: #d27d25;
}

.full-reset-button:focus-visible,
.dev-toggle-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

body.dev-mode .full-reset-button,
body.dev-mode .dev-toggle-button {
  bottom: 108px;
}

body.dev-mode .dev-toggle-button {
  color: #fff1d9;
  background: #d27d25;
  border-color: #dd9746;
}

.dev-code-form,
.dev-deactivate-confirmation {
  position: fixed;
  left: 54px;
  bottom: 54px;
  z-index: 10001;
  display: grid;
  gap: 8px;
  width: 220px;
  padding: 14px;
  color: var(--text);
  background: #252027;
  border: 1px solid #dd9746;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.dev-code-form[hidden] { display: none; }
.dev-deactivate-confirmation[hidden] { display: none; }
.dev-deactivate-confirmation { bottom: 144px; }
.dev-deactivate-confirmation > strong { font-size: var(--font-small); }

.dev-code-form label { font-size: var(--font-small); }

.dev-code-form input {
  min-width: 0;
  padding: 9px;
  color: var(--text);
  background: #17151b;
  border: 1px solid var(--panel-border);
  border-radius: 7px;
}

.dev-code-actions,
.dev-deactivate-actions { display: flex; gap: 8px; }

.dev-code-actions button,
.dev-deactivate-actions button {
  flex: 1;
  padding: 8px;
  color: var(--text);
  background: #67451f;
  border: 1px solid #ad641d;
  border-radius: 7px;
  cursor: pointer;
}

.dev-code-actions .dev-code-cancel,
.dev-deactivate-actions .dev-deactivate-no {
  background: #363139;
  border-color: var(--panel-border);
}

.dev-code-feedback {
  min-height: 1em;
  margin: 0;
  color: #f0a7a7;
  font-size: var(--font-small);
}

.reset-confirmation {
  position: fixed;
  left: 18px;
  bottom: 54px;
  z-index: 10002;
  display: grid;
  gap: 10px;
  width: min(280px, calc(100vw - 36px));
  padding: 14px;
  color: var(--text);
  background: #252027;
  border: 1px solid #bd636b;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.reset-confirmation[hidden] { display: none; }
body.dev-mode .reset-confirmation { bottom: 144px; }

.reset-confirmation > strong { font-size: var(--font-small); }

.reset-confirmation > p {
  margin: 0;
  color: var(--muted);
  font-size: var(--font-small);
  line-height: 1.45;
}

.reset-confirmation-actions { display: flex; gap: 8px; }

.reset-confirmation-actions button {
  flex: 1;
  min-height: 34px;
  padding: 8px;
  color: var(--text);
  border-radius: 7px;
  cursor: pointer;
}

.reset-cancel {
  background: #363139;
  border: 1px solid var(--panel-border);
}

.reset-accept {
  background: #8f353d;
  border: 1px solid #bd636b;
}

@media (max-width: 900px) {
  .landing-screen {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .landing-story {
    padding-bottom: 0;
  }

  .landing-story h1 {
    max-width: none;
  }

  .landing-access {
    max-width: 520px;
  }
}
