:root {
  --bg: #0a0810;
  --bg2: #15101c;
  --card: #1c1526;
  --line: rgba(255, 200, 220, 0.10);
  --pink: #ff9ec0;
  --pink2: #ff6b9d;
  --violet: #b794f6;
  --text: #fbf4f8;
  --muted: #a894a4;
  --radius: 20px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); }
body {
  background:
    radial-gradient(900px 480px at 8% -8%, rgba(120, 40, 90, 0.45) 0%, transparent 55%),
    radial-gradient(700px 420px at 100% 0%, rgba(50, 40, 110, 0.4) 0%, transparent 50%),
    radial-gradient(600px 400px at 50% 110%, rgba(90, 30, 70, 0.25) 0%, transparent 55%),
    var(--bg);
  min-height: 100%;
}
#app { max-width: 1080px; margin: 0 auto; min-height: 100%; display: flex; flex-direction: column; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  background: rgba(10, 8, 16, 0.62);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; gap: 12px; align-items: center; }
.logo {
  width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(145deg, #ff8fb8, #c77dff 70%);
  font-weight: 700; color: #1a0f18; box-shadow: 0 8px 20px rgba(255, 107, 157, 0.28);
  letter-spacing: 0.04em;
}
.brand-name { font-weight: 700; letter-spacing: 0.14em; font-size: 16px; }
.brand-sub { font-size: 11px; color: var(--muted); margin-top: 2px; letter-spacing: 0.04em; }
.points {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,143,184,0.16), rgba(183,148,246,0.10));
  border: 1px solid rgba(255,158,192,0.32);
  font-size: 12px; color: var(--pink); font-weight: 560;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.points.sm { font-size: 11px; padding: 6px 10px; }
.points-gem { color: var(--violet); font-size: 11px; }

.plaza { padding: 20px 18px 40px; flex: 1; }
.hero { margin-bottom: 18px; }
.hero-kicker {
  margin: 0 0 6px; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--pink); opacity: 0.9;
}
.hero h1 {
  margin: 0 0 8px; font-size: 26px; font-weight: 680;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #fff, #ffd0e2 55%, #d8b4fe);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { margin: 0; color: var(--muted); font-size: 13px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}
.card {
  position: relative;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  cursor: pointer;
  transition: transform .22s ease, border-color .22s, box-shadow .22s;
  text-align: left; color: inherit; font: inherit; padding: 0;
  aspect-ratio: 3 / 4.15;
  box-shadow: var(--shadow);
  isolation: isolate;
}
.card:hover {
  transform: translateY(-5px) scale(1.01);
  border-color: rgba(255,158,192,0.45);
  box-shadow: 0 24px 48px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,143,184,0.18);
}
.card-cover {
  position: absolute; inset: 0;
  background-size: cover; background-position: center top;
  background-color: #1a1424;
  transition: transform .45s ease;
}
.card:hover .card-cover { transform: scale(1.05); }
.card-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8,6,12,0.05) 28%, rgba(8,6,12,0.55) 62%, rgba(8,6,12,0.96) 100%),
    linear-gradient(90deg, rgba(8,6,12,0.18), transparent 40%);
  pointer-events: none;
}
.card-body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 14px 14px;
  z-index: 2;
  display: flex; flex-direction: column; gap: 4px;
}
.card-name {
  font-size: 19px; font-weight: 700; letter-spacing: 0.04em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.55);
}
.card-title {
  color: var(--pink); font-size: 12px; font-weight: 500;
  opacity: 0.95;
}
.card-brief {
  color: rgba(248, 230, 238, 0.78);
  font-size: 12px; line-height: 1.45;
  margin: 6px 0 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag {
  font-size: 10px; padding: 3px 8px; border-radius: 999px;
  background: rgba(255,255,255,0.10);
  color: #f2e4ec;
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  letter-spacing: 0.02em;
}

.hidden { display: none !important; }
.chat-view { flex: 1; display: flex; flex-direction: column; min-height: 0; height: 100vh; }
.chat-head {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  background: rgba(10,8,16,0.78);
}
.back {
  background: rgba(255,255,255,0.04); border: 1px solid var(--line); color: var(--text);
  border-radius: 999px; width: 36px; height: 36px; cursor: pointer; font-size: 16px;
}
.back:hover { border-color: rgba(255,158,192,0.4); }
.chat-who { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.chat-avatar-img {
  width: 42px; height: 42px; border-radius: 14px; object-fit: cover; object-position: center top;
  border: 1px solid rgba(255,158,192,0.35);
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
  background: var(--bg2);
}
.chat-name { font-weight: 680; letter-spacing: 0.03em; }
.chat-title { font-size: 12px; color: var(--muted); }
.messages {
  flex: 1; overflow-y: auto; padding: 18px 14px 10px;
  display: flex; flex-direction: column; gap: 12px;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(80,30,70,0.18), transparent 60%);
}
.bubble {
  max-width: min(780px, 88%); padding: 12px 14px; border-radius: 18px;
  line-height: 1.65; white-space: pre-wrap; word-break: break-word; font-size: 14px;
}
.bubble.assistant {
  align-self: flex-start;
  background: rgba(36, 28, 48, 0.92);
  border: 1px solid var(--line);
  border-bottom-left-radius: 6px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.bubble.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #ff6b9d, #b794f6);
  color: #1a0f18; border-bottom-right-radius: 6px; font-weight: 560;
  box-shadow: 0 8px 22px rgba(255,107,157,0.28);
}
.composer {
  display: flex; gap: 8px; padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(10,8,16,0.92);
  backdrop-filter: blur(12px);
}
.composer input {
  flex: 1; border-radius: 16px; border: 1px solid var(--line); background: var(--bg2);
  color: var(--text); padding: 13px 15px; outline: none; font-size: 15px;
}
.composer input:focus { border-color: rgba(255,158,192,0.55); box-shadow: 0 0 0 3px rgba(255,107,157,0.12); }
.composer button {
  border: 0; border-radius: 16px; padding: 0 20px; cursor: pointer; font-weight: 680;
  background: linear-gradient(135deg, var(--pink2), var(--violet)); color: #1a0f18;
  box-shadow: 0 8px 18px rgba(255,107,157,0.25);
}
.composer button:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.hint { text-align: center; font-size: 11px; color: var(--muted); padding: 0 12px 10px; }
.typing { opacity: .7; font-style: italic; }

@media (max-width: 640px) {
  .hero h1 { font-size: 21px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card { border-radius: 16px; }
  .card-name { font-size: 15px; }
  .card-brief { display: none; }
  .card-body { padding: 12px 10px 10px; }
}
@media (min-width: 900px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
}


.brand .logo,
img.logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12);
  background: none;
  font-size: 0;
  line-height: 0;
}

.checkin {
  border: 1px solid rgba(255,143,184,.35);
  background: linear-gradient(135deg, rgba(255,143,184,.25), rgba(180,120,255,.2));
  color: #ffe6f0;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  margin-right: 8px;
}
.checkin:disabled { opacity: .45; cursor: default; }
.chat-view { position: relative; overflow: hidden; }
.scene-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  background-image: url('/scenes/default.svg');
  transition: opacity .45s ease, background-image .45s ease;
  opacity: .55; pointer-events: none;
}
.chat-view > *:not(.scene-bg) { position: relative; z-index: 1; }
.messages { background: transparent !important; }
.suggest-row {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 0 12px 10px; max-width: 920px; margin: 0 auto; width: 100%;
}
.suggest-chip {
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(20,12,28,.72);
  color: #f5e9ff; border-radius: 999px;
  padding: 8px 12px; font-size: 13px; cursor: pointer;
  backdrop-filter: blur(8px);
}
.suggest-chip:hover { border-color: rgba(255,143,184,.5); }

.composer .mic, .composer .speak-toggle {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(20,12,28,.72);
  color: #ffe6f0;
  cursor: pointer;
  font-size: 18px;
}
.composer .mic.recording {
  background: rgba(255,80,120,.35);
  border-color: rgba(255,120,150,.7);
  animation: pulse 1s infinite;
}
.composer .speak-toggle[aria-pressed="false"] { opacity: .45; }
@keyframes pulse { 50% { transform: scale(1.05); } }
.composer { display: flex; gap: 8px; align-items: center; }
.composer input { flex: 1; }

/* === UI3 icon buttons === */
.ico { width: 18px; height: 18px; display: block; filter: none; opacity: 0.95; }
.ico-gem { width: 14px; height: 14px; color: var(--violet); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(28,18,36,.75);
  color: #ffe6f0;
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .12s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { border-color: rgba(255,143,184,.45); background: rgba(40,24,48,.9); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.btn-icon {
  width: 44px; height: 44px; padding: 0; border-radius: 14px;
  flex: 0 0 44px;
}
.btn-icon .ico { width: 20px; height: 20px; }
.btn-checkin {
  border-color: rgba(255,143,184,.35);
  background: linear-gradient(135deg, rgba(255,143,184,.28), rgba(180,120,255,.18));
  border-radius: 999px;
  padding: 8px 14px;
}
.btn-send {
  border: 0;
  background: linear-gradient(135deg, #ff8fb8, #c77dff);
  color: #2a1020;
  border-radius: 14px;
  min-width: 84px;
  box-shadow: 0 8px 18px rgba(255,107,157,.28);
}
.btn-send .ico { filter: brightness(0) saturate(100%); opacity: .85; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.composer .mic.recording {
  background: rgba(255,80,120,.38);
  border-color: rgba(255,120,150,.75);
  box-shadow: 0 0 0 3px rgba(255,110,150,.18);
}
.composer .speak-toggle[aria-pressed="false"] { opacity: .5; }
.chat-head .back { margin-right: 4px; }
.points .ico { color: var(--violet); }
.btn .ico, .points .ico { filter: none; color: #ffe6f0; }
.btn-send { color: #2a1020; }
.btn-send .ico { filter: none; color: #2a1020; }
.points { color: var(--pink); }
.points .ico { color: var(--violet); }

/* === WeChat-style voice composer (wx2) === */
.composer.voice-mode #input,
.composer.voice-mode #btnSend { display: none !important; }
.composer.voice-mode #voiceHold,
.composer.voice-mode button.voice-hold {
  display: flex !important;
}
.composer:not(.voice-mode) #voiceHold,
.composer:not(.voice-mode) button.voice-hold {
  display: none !important;
}

.composer button.voice-hold,
button.voice-hold {
  flex: 1;
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  height: 44px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(36,24,48,.95) !important;
  color: #ffe6f0 !important;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: 0.18em;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: none;
  box-shadow: none !important;
}
.composer button.voice-hold:active,
.composer button.voice-hold.holding,
button.voice-hold:active,
button.voice-hold.holding {
  background: rgba(255,120,160,.28) !important;
  border-color: rgba(255,143,184,.65);
  color: #fff !important;
}
.composer button.voice-hold.canceling,
button.voice-hold.canceling {
  background: rgba(255,80,100,.32) !important;
  border-color: rgba(255,100,120,.75);
  color: #fff !important;
}

.voice-tip {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  padding: 0 12px 6px;
}
.voice-tip.hidden { display: none; }

.voice-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 24px calc(96px + env(safe-area-inset-bottom));
  background: rgba(8, 4, 12, 0.42);
  pointer-events: none;
}
.voice-overlay.hidden { display: none; }
.voice-panel {
  width: min(280px, 78vw);
  border-radius: 22px;
  padding: 28px 20px 22px;
  background: rgba(32, 18, 40, 0.94);
  border: 1px solid rgba(255,143,184,.28);
  box-shadow: 0 18px 48px rgba(0,0,0,.45);
  text-align: center;
  backdrop-filter: blur(14px);
  transition: background .15s ease, border-color .15s ease;
}
.voice-overlay.cancel .voice-panel {
  background: rgba(72, 18, 32, 0.95);
  border-color: rgba(255,110,130,.55);
}
.voice-waves {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  height: 48px;
  margin-bottom: 16px;
}
.voice-waves span {
  width: 5px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff8fb8, #c77dff);
  animation: wave 0.9s ease-in-out infinite;
}
.voice-waves span:nth-child(1) { animation-delay: 0s; height: 16px; }
.voice-waves span:nth-child(2) { animation-delay: .08s; height: 28px; }
.voice-waves span:nth-child(3) { animation-delay: .16s; height: 40px; }
.voice-waves span:nth-child(4) { animation-delay: .24s; height: 24px; }
.voice-waves span:nth-child(5) { animation-delay: .32s; height: 36px; }
.voice-waves span:nth-child(6) { animation-delay: .2s; height: 20px; }
.voice-waves span:nth-child(7) { animation-delay: .12s; height: 32px; }
.voice-waves span:nth-child(8) { animation-delay: .04s; height: 18px; }
.voice-waves span:nth-child(9) { animation-delay: .28s; height: 26px; }
.voice-overlay.cancel .voice-waves span {
  background: linear-gradient(180deg, #ff6b8a, #ff9eb5);
}
@keyframes wave {
  0%, 100% { transform: scaleY(0.45); opacity: .7; }
  50% { transform: scaleY(1); opacity: 1; }
}
.voice-status {
  font-size: 17px;
  font-weight: 680;
  color: #ffe6f0;
  letter-spacing: 0.08em;
}
.voice-hint {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}
.voice-overlay.cancel .voice-status { color: #ffb3c4; }
.voice-overlay.cancel .voice-hint { color: #ff8fa8; }

.bubble.assistant { position: relative; padding-right: 42px; }
.tts-play {
  position: absolute; right: 8px; bottom: 8px;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(255,158,192,0.35);
  background: rgba(255,107,157,0.18);
  color: #ffd6e7; font-size: 15px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 0; cursor: pointer;
}
.tts-play:active { transform: scale(0.94); background: rgba(255,107,157,0.35); }
.tts-hint, .tts-fail {
  margin-top: 8px; font-size: 12px; opacity: 0.72; color: #ffb6d0;
}

.tts-wrap { margin-top: 10px; }
.tts-audio {
  width: 100%;
  max-width: 280px;
  height: 36px;
  display: block;
}
.tts-status { margin-top: 8px; font-size: 12px; opacity: 0.75; color: #ffb6d0; }

/* WeChat-style voice bubbles */
.voice-bubble-row {
  display: flex;
  align-items: center;
  max-width: min(780px, 88%);
}
.voice-bubble-row.assistant { align-self: flex-start; }
.voice-bubble-row.user { align-self: flex-end; justify-content: flex-end; }
.voice-bubble {
  appearance: none;
  border: 1px solid rgba(255,158,192,0.28);
  background: rgba(36, 28, 48, 0.95);
  color: #ffe6f0;
  border-radius: 6px 18px 18px 18px;
  min-height: 42px;
  width: 120px;
  padding: 0 14px 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  font-size: 13px;
  line-height: 1;
  position: relative;
}
.voice-bubble.pending, .voice-bubble.fail {
  width: auto;
  opacity: 0.85;
  cursor: default;
  color: #ffb6d0;
}
.voice-bubble:active { transform: scale(0.98); }
.voice-bubble .vb-icon {
  width: 18px; height: 18px; flex: 0 0 auto;
  background: no-repeat center / contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffd0e4'%3E%3Cpath d='M3 10v4h4l5 5V5L7 10H3zm13.5 2c0-1.77-1-3.29-2.5-4.03v8.05c1.5-.74 2.5-2.26 2.5-4.02z'/%3E%3C/svg%3E");
}
.voice-bubble .vb-waves {
  display: inline-flex; align-items: flex-end; gap: 3px; height: 14px; flex: 1;
}
.voice-bubble .vb-waves i {
  display: block; width: 3px; border-radius: 2px; background: #ff9ec0;
  height: 6px; opacity: 0.55;
}
.voice-bubble .vb-waves i:nth-child(2) { height: 11px; }
.voice-bubble .vb-waves i:nth-child(3) { height: 8px; }
.voice-bubble.playing .vb-waves i {
  animation: vbWave 0.7s ease-in-out infinite;
}
.voice-bubble.playing .vb-waves i:nth-child(2) { animation-delay: 0.12s; }
.voice-bubble.playing .vb-waves i:nth-child(3) { animation-delay: 0.24s; }
@keyframes vbWave {
  0%, 100% { transform: scaleY(0.55); opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}
.voice-bubble .vb-sec {
  flex: 0 0 auto; opacity: 0.85; font-variant-numeric: tabular-nums;
  min-width: 1.6em; text-align: right;
}
.bubble.assistant { padding-right: 14px; }

.voice-bubble.user {
  border-radius: 18px 6px 18px 18px;
  background: linear-gradient(135deg, #ff6b9d, #b794f6);
  border-color: transparent;
  color: #1a0f18;
  box-shadow: 0 8px 22px rgba(255,107,157,0.28);
}
.voice-bubble.user .vb-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231a0f18'%3E%3Cpath d='M3 10v4h4l5 5V5L7 10H3zm13.5 2c0-1.77-1-3.29-2.5-4.03v8.05c1.5-.74 2.5-2.26 2.5-4.02z'/%3E%3C/svg%3E");
  order: 3;
}
.voice-bubble.user .vb-sec { order: 1; text-align: left; color: #1a0f18; opacity: 0.8; }
.voice-bubble.user .vb-waves { order: 2; justify-content: flex-end; }
.voice-bubble.user .vb-waves i { background: #1a0f18; }
.voice-bubble-row.user { margin-left: auto; }


/* —— 邮箱登录 / 注册 —— */
.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255,158,192,0.28);
  color: var(--pink);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 560;
  cursor: pointer;
}
.btn-ghost:hover { border-color: rgba(255,158,192,0.55); background: rgba(255,158,192,0.08); }
.auth-overlay {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center;
  background: rgba(4, 2, 10, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 18px;
}
.auth-overlay.hidden { display: none; }
.auth-panel {
  position: relative;
  width: min(400px, 100%);
  background: linear-gradient(160deg, #1c1528, #120e1a 70%);
  border: 1px solid rgba(255,158,192,0.22);
  border-radius: 22px;
  padding: 26px 22px 20px;
  box-shadow: var(--shadow);
}
.auth-close {
  position: absolute; top: 10px; right: 14px;
  background: none; border: none; color: var(--muted);
  font-size: 24px; line-height: 1; cursor: pointer;
}
.auth-panel h2 { margin: 0 0 4px; font-size: 20px; letter-spacing: 0.04em; }
.auth-sub { margin: 0 0 16px; color: var(--muted); font-size: 13px; }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.auth-tab {
  flex: 1; padding: 9px 0; border-radius: 12px; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03); color: var(--muted);
  font-size: 13px; font-weight: 560;
}
.auth-tab.active {
  color: #1a0f18;
  background: linear-gradient(135deg, #ff8fb8, #c77dff);
  border-color: transparent;
}
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); }
.auth-field[hidden] { display: none !important; }
.auth-switch-link {
  display: block; width: 100%; margin-top: 10px;
  background: none; border: none; color: var(--muted);
  font-size: 13px; cursor: pointer; text-decoration: underline;
  text-underline-offset: 3px;
}
.auth-switch-link[hidden] { display: none !important; }
.auth-switch-link:hover { color: var(--pink); }
.auth-field input {
  padding: 11px 12px; border-radius: 12px;
  border: 1px solid rgba(255,158,192,0.22);
  background: rgba(0,0,0,0.28); color: var(--text);
  font-size: 14px; outline: none;
}
.auth-field input:focus { border-color: rgba(255,158,192,0.55); }
.auth-error { margin: 0; color: #ff8fb8; font-size: 13px; }
.auth-error.hidden { display: none; }
.auth-submit { width: 100%; justify-content: center; margin-top: 4px; padding: 12px; }
.auth-guest {
  display: block; width: 100%; margin-top: 14px;
  background: none; border: none; color: var(--muted);
  font-size: 13px; cursor: pointer; text-decoration: underline;
  text-underline-offset: 3px;
}
.auth-guest:hover { color: var(--pink); }

.auth-code-row { display: flex; gap: 8px; align-items: stretch; }
.auth-code-row input { flex: 1; min-width: 0; }
.auth-send-code {
  flex: 0 0 auto; white-space: nowrap; padding: 0 12px !important;
  font-size: 13px; border: 1px solid rgba(255,158,192,0.35) !important;
}
.auth-send-code:disabled { opacity: 0.55; cursor: not-allowed; }
.auth-hint { margin: 0; color: #9ad0a8; font-size: 12px; }
.auth-hint.hidden { display: none; }

.recharge-overlay {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(6,8,14,0.72); display: grid; place-items: center; padding: 18px;
}
.recharge-overlay.hidden { display: none; }
.recharge-panel {
  width: min(420px, 100%); background: #161a24; border: 1px solid rgba(255,158,192,0.22);
  border-radius: 20px; padding: 22px 18px 18px; position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}
.recharge-panel h2 { margin: 0 0 4px; font-size: 20px; }
.recharge-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 8px; }
.recharge-card {
  text-align: left; padding: 14px 12px; border-radius: 14px; cursor: pointer;
  border: 1px solid rgba(255,158,192,0.22); background: #0f131c; color: inherit;
}
.recharge-card:hover { border-color: rgba(255,158,192,0.55); }
.recharge-card .yen { font-size: 20px; font-weight: 720; color: #ff9ec0; }
.recharge-card .pts { margin-top: 4px; font-size: 13px; }
.recharge-card .bonus { margin-top: 2px; font-size: 11px; color: var(--muted); }
.points { cursor: pointer; }


/* === Content boards (乙女四板块) === */
.board-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0 2px;
}
.board-tab {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--muted, #c9bfd6);
  border-radius: 999px;
  padding: 7px 14px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background .18s, border-color .18s, color .18s;
}
.board-tab:hover { border-color: rgba(255,158,192,0.4); color: #fff; }
.board-tab.active {
  background: linear-gradient(120deg, rgba(255,107,157,0.35), rgba(168,85,247,0.28));
  border-color: rgba(255,143,184,0.55);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255,143,184,0.15);
}
.board-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(8,6,12,0.55);
  border: 1px solid rgba(255,255,255,0.14);
  color: #ffe3ef;
  backdrop-filter: blur(6px);
}
.plaza-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted, #c9bfd6);
  padding: 28px 12px;
}

/* Voice UI off — keep layout as text-only composer */
body.voice-off .voice-ui,
body.voice-off #btnMic,
body.voice-off #btnSpeak,
body.voice-off #voiceHold,
body.voice-off #voiceTip,
body.voice-off #voiceOverlay { display: none !important; }
body.voice-off .composer { gap: 10px; }
body.voice-off .composer input { flex: 1; }

.site-beian {
  margin: 32px 0 4px;
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
}
.site-beian a {
  color: #9a8ea8;
  text-decoration: none;
}
.site-beian a:hover {
  color: #c9bfd6;
  text-decoration: underline;
}
