/* Giovinetta · 少女的花园音乐盒 */
:root {
  --ink: #6d4b62;
  --ink-soft: #9a7a90;
  --rose: #ec8fb4;
  --lav: #b7a2ea;
  --peach: #f4a983;
  --glass: rgba(255, 255, 255, 0.46);
  --line: rgba(255, 255, 255, 0.75);
  --shadow: 0 10px 40px rgba(183, 120, 160, 0.22);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
}

body {
  font-family: "Nunito", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  overflow: hidden;
  background: linear-gradient(125deg, #ffe3ee, #f1e6ff, #ffeede, #e3efff, #ffe3ee);
  background-size: 400% 400%;
  animation: sky 28s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  touch-action: none;
  -webkit-font-smoothing: antialiased;
}

@keyframes sky {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

#garden {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
}

/* ---------- 顶部栏 ---------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(16px, 4vw, 36px);
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }

.brand {
  font-family: "Cormorant Garamond", "Noto Serif SC", Georgia, serif;
  font-style: italic;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}
.brand span { color: var(--rose); }

.lang {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
.lang a {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.lang a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.6); }
.lang a[aria-current="page"] {
  color: #fff;
  background: linear-gradient(120deg, var(--rose), var(--lav));
}

/* ---------- 中央标题 ---------- */
.hero {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px 80px;
  pointer-events: none;
  transition: opacity 1s ease, transform 1s ease;
}
body.planted .hero {
  opacity: 0.22;
  transform: translateY(-5vh) scale(0.97);
}

.eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero h1 {
  margin: 0.08em 0 0.12em;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(64px, 14vw, 172px);
  line-height: 1;
  letter-spacing: -0.01em;
  background: linear-gradient(100deg, #e57aa6 0%, #b18ae6 50%, #f2a07b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 8px 26px rgba(236, 143, 180, 0.35));
  padding: 0 0.08em;
}

.tagline {
  margin: 0;
  max-width: 36em;
  font-family: "Cormorant Garamond", "Noto Serif SC", Georgia, serif;
  font-size: clamp(17px, 2.4vw, 23px);
  line-height: 1.6;
  color: var(--ink);
}

.hint {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--ink);
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  animation: breathe 3.2s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: translateY(0); box-shadow: var(--shadow); }
  50% { transform: translateY(-4px); box-shadow: 0 14px 44px rgba(183, 120, 160, 0.32); }
}

/* ---------- 底部控制栏 ---------- */
.dock {
  position: fixed;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  white-space: nowrap;
}

.dock button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  padding: 10px 16px;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.dock button:hover { background: #fff; }
.dock button:active { transform: scale(0.95); }
.dock button:focus-visible,
.lang a:focus-visible {
  outline: 2px solid var(--lav);
  outline-offset: 2px;
}
.dock button svg { width: 16px; height: 16px; flex: none; }

.dock .primary {
  color: #fff;
  background: linear-gradient(120deg, var(--rose), var(--lav));
  box-shadow: 0 6px 18px rgba(236, 143, 180, 0.4);
}
.dock .primary:hover {
  background: linear-gradient(120deg, #f29cbf, #c3b0f0);
}
.dock .icon-only { padding: 10px 12px; }

.count {
  padding: 0 12px 0 6px;
  font-size: 13px;
  color: var(--ink-soft);
}
.count b {
  color: var(--rose);
  font-variant-numeric: tabular-nums;
}

.foot {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 10px;
  z-index: 9;
  margin: 0;
  text-align: center;
  font-size: 11px;
  color: var(--ink-soft);
  opacity: 0.8;
  pointer-events: none;
}

/* ---------- 轻提示 ---------- */
.toast {
  position: fixed;
  top: 78px;
  left: 50%;
  z-index: 20;
  transform: translate(-50%, -8px);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s, transform 0.35s;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- 手机适配 ---------- */
@media (max-width: 520px) {
  .brand { font-size: 19px; }
  .lang a { padding: 5px 9px; font-size: 12px; }
  .dock { gap: 5px; padding: 5px; bottom: 34px; }
  .dock button { padding: 9px 12px; font-size: 13px; }
  .count { padding: 0 8px 0 2px; }
  .count::before { content: "✿ "; color: var(--rose); }
  .count-label { display: none; }
  .kb { display: none; }
  .foot { font-size: 10px; padding: 0 12px; }
  .hint { font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  body, .hint { animation: none; }
  .hero { transition: none; }
}
