:root {
  --bg: #f4f7ff;
  --ink: #1d2740;
  --muted: #5a6785;
  --nana: #5b7cfa;
  --nana-soft: #e8eeff;
  --qq: #2f9e7a;
  --qq-soft: #e5f7f0;
  --card: #ffffff;
  --shadow: 0 8px 24px rgba(29, 39, 64, 0.08);
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang HK", "Noto Sans CJK HK", "Noto Sans HK", "Microsoft JhengHei", sans-serif;
  -webkit-text-size-adjust: 100%;
}
body {
  padding: 20px 16px calc(28px + env(safe-area-inset-bottom));
}
.wrap {
  max-width: 720px;
  margin: 0 auto;
}
header {
  text-align: center;
  margin-bottom: 22px;
}
h1 {
  margin: 0 0 8px;
  font-size: 1.7rem;
  line-height: 1.25;
}
.lead {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}
.picker {
  display: grid;
  gap: 18px;
  min-height: calc(100vh - 180px);
  align-content: center;
}
a.name-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 28vh;
  padding: 28px 20px;
  border-radius: 28px;
  text-decoration: none;
  color: #fff;
  font-size: clamp(2.4rem, 10vw, 3.4rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow);
  -webkit-tap-highlight-color: transparent;
}
a.name-tile.nana { background: var(--nana); }
a.name-tile.qq { background: var(--qq); }
a.name-tile:active { transform: scale(0.99); }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}
a.back, a.switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--card);
  box-shadow: var(--shadow);
  -webkit-tap-highlight-color: transparent;
}
a.switch.nana { color: var(--nana); }
a.switch.qq { color: var(--qq); }
.child-title {
  margin: 0 0 16px;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
}
.nana-page .badge { background: var(--nana); }
.qq-page .badge { background: var(--qq); }
.links {
  display: grid;
  gap: 12px;
}
a.card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 72px;
  padding: 14px 16px;
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  font-size: 1.15rem;
  font-weight: 650;
  line-height: 1.35;
  background: var(--card);
  box-shadow: var(--shadow);
  -webkit-tap-highlight-color: transparent;
}
.nana-page a.card { background: var(--nana-soft); }
.qq-page a.card { background: var(--qq-soft); }
a.card:active { transform: scale(0.99); }
.meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.tag {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}
.arrow {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.75);
  color: var(--ink);
  font-size: 1.2rem;
}
footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 18px;
}
