/* 合言葉の画面（S-00）だけの見た目。色や部品は styles.css の S-01 と同じものを使う */
/* 背景（FR-GATE-008）。太陽を消したダークグリーンの森に、金の光をまとった木の幹と根っこ。
   画像がもともと暗いので重ねるダークグリーンは薄め。縦長の画面では右寄せ気味（80%）にして、木の幹と光る根っこが入るようにする */
.gate-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(27, 34, 32, 0.2) 0%, rgba(27, 34, 32, 0.38) 40%, rgba(27, 34, 32, 0.38) 65%, rgba(27, 34, 32, 0.1) 100%),
    url("img/golden-soil-glow.webp") 80% center / cover no-repeat,
    var(--bg);
}

/* 題字がないので、問いと入力欄を画面の縦の真ん中に置く */
.gate-page main {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.gate-page .question,
.gate-page .lead { text-shadow: 0 1px 8px rgba(10, 16, 13, 0.85); }
/* 説明文は色を変えずに、ネオンのようにゆっくり明滅させる（暗い影は保ったまま、白い光のにじみを足し引きする） */
.gate-page .lead { animation: gate-lead-neon 3s ease-in-out infinite; }
@keyframes gate-lead-neon {
  0%, 100% {
    opacity: 0.5;
    text-shadow: 0 1px 8px rgba(10, 16, 13, 0.85);
  }
  50% {
    opacity: 1;
    text-shadow:
      0 1px 8px rgba(10, 16, 13, 0.85),
      0 0 4px rgba(255, 255, 255, 0.7),
      0 0 10px rgba(255, 255, 255, 0.45),
      0 0 20px rgba(225, 255, 238, 0.4);
  }
}
/* 30日間の案内は光る根っこの上に重なるので、明るい色と濃い影で読めるようにする */
.gate-page .privacy {
  color: #fff6dc;
  font-size: 13px;
  font-weight: 500;
  text-shadow: 0 0 3px rgba(10, 16, 13, 0.95), 0 1px 10px rgba(10, 16, 13, 0.95), 0 0 18px rgba(10, 16, 13, 0.8);
}

/* 1行に収まらないときだけ「裏面に」の後ろで折り返す */
.gate-phrase { display: inline-block; }

.gate-form { display: flex; flex-direction: column; }

.gate-input {
  width: 100%;
  min-height: 56px;
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  color: inherit;
  font: inherit;
  font-size: 18px; /* iOSのズーム防止（16px以上） */
  letter-spacing: 0.08em;
  text-align: center;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.gate-input:focus {
  outline: none;
  border-color: var(--leaf);
  box-shadow: 0 0 0 4px var(--leaf-soft), var(--shadow);
}

.gate-error {
  margin: 12px 0 0;
  text-align: center;
  font-size: 14px;
  color: #fde18b;
}

/* ボタンは S-01 の「言葉を受け取る」と同じネオン */
.gate-form .btn-primary {
  min-height: 56px;
  margin-top: 20px;
  font-size: 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  background: #3a5745;
  color: #ffffff;
  text-shadow:
    0 0 3px rgba(255, 255, 255, 0.6),
    0 0 8px rgba(225, 255, 238, 0.35);
  box-shadow:
    0 0 4px rgba(255, 255, 255, 0.35),
    0 0 12px rgba(190, 245, 215, 0.2),
    inset 0 0 6px rgba(255, 255, 255, 0.12);
  animation: neon-pulse 2.8s ease-in-out infinite;
}
.gate-form .btn-primary:hover:not(:disabled) { background: #43644f; }
.gate-form .btn-primary:disabled {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.07);
  background: #2a3a32;
  color: rgba(240, 250, 244, 0.8);
  text-shadow: none;
  box-shadow: none;
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  .gate-form .btn-primary { animation: none; }
  .gate-page .lead { animation: none; }
}
