/* Opening search page (early-Google style). */

/* ---------- opening: classic early Google-style search ---------- */
#opening {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; align-items: center;
  justify-content: flex-start;
  padding: 22vh 1rem 2rem;
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  color: #000;
  transition: opacity 0.9s, visibility 0.9s;
  overflow: auto;
}
#opening.go { opacity: 0; visibility: hidden; pointer-events: none; }
.g-home {
  width: min(584px, 100%);
  display: flex; flex-direction: column; align-items: center;
}
/* Early Google-like colorful serif wordmark */
.g-logo {
  font-family: "Times New Roman", Times, Georgia, serif;
  font-size: clamp(3.1rem, 11vw, 5.4rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1;
  margin: 0 0 1.5rem;
  user-select: none;
}
.g-logo .c1 { color: #2166c2; }
.g-logo .c2 { color: #d40b00; }
.g-logo .c3 { color: #f4b400; }
.g-logo .c4 { color: #2166c2; }
.g-logo .c5 { color: #009a3a; }
.g-logo .c6 { color: #d40b00; }
.g-home form {
  width: 100%;
  display: flex; flex-direction: column; align-items: center;
}
.g-home input[type="search"] {
  width: min(100%, 512px);
  font: 16px Arial, Helvetica, sans-serif;
  padding: 6px 8px;
  border: 1px solid #a9a9a9;
  border-radius: 0;
  background: #fff; color: #000;
  box-shadow: inset 1px 1px 2px rgba(0,0,0,0.1);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.g-home input[type="search"]::-webkit-search-decoration,
.g-home input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}
.g-home input[type="search"]:focus {
  border-color: #4d90fe;
}
.g-btns {
  display: flex; flex-wrap: wrap; gap: 0.65rem;
  justify-content: center; margin-top: 1.15rem;
}
.g-btn {
  font: 13px Arial, Helvetica, sans-serif;
  color: #000;
  background: #f5f5f5;
  background-image: linear-gradient(to bottom, #f9f9f9, #e8e8e8);
  border: 1px solid #dcdcdc;
  border-radius: 2px;
  padding: 6px 14px;
  cursor: pointer;
  min-width: 8.75rem;
  height: 30px;
}
.g-btn:hover {
  border: 1px solid #c6c6c6;
  background: #f8f8f8;
  background-image: linear-gradient(to bottom, #ffffff, #f0f0f0);
  box-shadow: 0 1px 1px rgba(0,0,0,0.08);
  color: #222;
}
.g-btn:active {
  border-color: #4d90fe;
}
#search-note {
  margin-top: 1.1rem;
  font: 13px Arial, Helvetica, sans-serif;
  color: #a01010;
  text-align: center;
}
.btn {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
  border: 1px solid var(--ink); padding: 0.75rem 1.5rem; color: var(--ink);
}
.btn:hover { background: var(--ink); color: var(--bg); }
