body {
  min-height: 100%;
  background:
    radial-gradient(120% 80% at 50% 0%, var(--paper-hi) 0%, var(--paper) 60%, #e9e1d3 100%);
}

.gate {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 380px);
  justify-content: center;
  align-content: center;
  padding: calc(24px + var(--safe-top)) 20px calc(24px + var(--safe-bottom));
  overflow: hidden;
}

.gate-rose {
  position: absolute;
  width: min(130vw, 860px);
  aspect-ratio: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-8deg);
  fill: none;
  stroke: var(--gold);
  stroke-width: 0.6;
  opacity: 0.35;
  pointer-events: none;
  animation: rose-in 1.6s var(--ease-out) both;
}
.gate-rose-star { fill: rgba(189, 148, 81, 0.08); stroke-width: 0.8; }

@keyframes rose-in {
  from { opacity: 0; transform: translate(-50%, -50%) rotate(-30deg) scale(0.96); }
}

.gate-card {
  position: relative;
  width: 100%;
  padding: 36px 32px 28px;
  background: rgba(251, 248, 242, 0.92);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: card-in 0.9s 0.15s var(--ease-out) both;
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(14px); filter: blur(4px); }
}

.gate-logo { display: block; width: 168px; height: auto; }

.gate-title {
  margin: 28px 0 4px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2.6rem;
  line-height: 1;
  letter-spacing: -0.02em;
}
.gate-title em { font-style: italic; }

.gate-lede { margin: 0 0 28px; color: var(--ink-2); }

.gate-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-2);
}

.gate-field {
  display: flex;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.gate-field:focus-within {
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(189, 148, 81, 0.22);
}
.gate-field.is-invalid { border-color: var(--danger); }

.gate-field input {
  flex: 1;
  min-width: 0;
  padding: 13px 14px;
  border: 0;
  background: transparent;
  font-family: var(--font-data);
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--ink);
  outline: none;
}

.gate-field button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper-hi);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.gate-field button:hover { background: #1d3142; }
.gate-field button svg {
  width: 16px; height: 16px;
  fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.25s var(--ease-out);
}
.gate-field button:hover svg { transform: translateX(3px); }

.gate-error {
  min-height: 1.4em;
  margin: 10px 0 0;
  font-size: 0.85rem;
  color: var(--danger);
}
