/* ============================================================
   layout.css — splash / title / header / stage
   ============================================================ */

/* ---------- Splash ---------- */
.splash {
  position: fixed; inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: var(--bg);
  z-index: 1000;
  transition: opacity 0.3s;
}
.splash__logo {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.splash__loading {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Title ---------- */
.title-screen {
  position: fixed; inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  padding: 2rem 1rem;
  background:
    radial-gradient(ellipse at top, rgba(196,163,90,.12), transparent 60%),
    var(--bg);
  z-index: 200;
  text-align: center;
}
.title-screen__title {
  margin: 0;
  font-size: clamp(1.8rem, 6vw, 3rem);
  font-weight: 900;
  color: var(--accent);
  letter-spacing: 0.06em;
}
.title-screen__sub {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.85rem, 2.4vw, 1.1rem);
}
.title-screen__press {
  appearance: none;
  background: var(--accent);
  color: #1a1420;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  margin-top: 1rem;
  animation: press-pulse 1.6s ease-in-out infinite;
}
@keyframes press-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}

/* ---------- Lang toggle (= title 内) ---------- */
.lang-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.lang-toggle-label {
  color: var(--muted);
  font-size: 0.85rem;
}
.lang-toggle-buttons {
  display: flex;
  gap: 0.5rem;
}
.lang-btn {
  appearance: none;
  background: transparent;
  color: var(--muted);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.18s;
}
.lang-btn:hover { border-color: var(--accent); color: var(--text); }
.lang-btn--active {
  background: var(--accent);
  color: #1a1420;
  border-color: var(--accent);
}

/* ---------- App / Header / Stage ---------- */
.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;   /* iOS Safari 100% 対策 */
}

.header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header__left  { justify-self: start; }
.header__center { justify-self: center; }
.header__right { justify-self: end; display: flex; gap: 0.4rem; }
.header__title {
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.stage {
  flex: 1;
  padding: 1rem;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}
