:root {
  --bg-base: #000000;
  --bg-elevated: #060608;
  --bg-surface: rgba(10, 10, 14, 0.82);
  --bg-surface-hover: rgba(16, 16, 22, 0.94);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(255, 255, 255, 0.26);
  --text-primary: #f4f4f6;
  --text-secondary: #a1a1aa;
  --text-muted: #52525b;
  --accent: #f4f4f6;
  --accent-soft: rgba(255, 255, 255, 0.08);
  --accent-glow: rgba(255, 255, 255, 0.16);
  --btn-bg: linear-gradient(135deg, #ffffff 0%, #d4d4d8 100%);
  --btn-text: #000000;
  --ur-grad: linear-gradient(135deg, #f43f5e 0%, #c084fc 50%, #fde047 100%);
  --ssr-grad: linear-gradient(135deg, #f59e0b 0%, #fde047 100%);
  --sr-grad: linear-gradient(135deg, #a855f7 0%, #38bdf8 100%);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --rail-bg: rgba(3, 3, 5, 0.9);
  --topbar-bg: rgba(0, 0, 0, 0.9);
  --drawer-bg: #050507;
  --dialog-bg: #060609;
  --input-bg: #0a0a10;
  --input-bg-focus: rgba(255, 255, 255, 0.06);
  --row-bg: rgba(255, 255, 255, 0.03);
  --pill-bg: rgba(255, 255, 255, 0.05);
  --hover-bg: rgba(255, 255, 255, 0.04);
  --hover-bg-strong: rgba(255, 255, 255, 0.09);
  --track-bg: rgba(255, 255, 255, 0.06);
  --link: #38bdf8;
}
[data-accent="champagne"] {
  --accent: #e5c158;
  --accent-soft: rgba(229, 193, 88, 0.12);
  --accent-glow: rgba(229, 193, 88, 0.24);
  --border-focus: rgba(229, 193, 88, 0.4);
  --btn-bg: linear-gradient(135deg, #f5e19c 0%, #d4af37 100%);
  --btn-text: #000000;
}
[data-accent="titanium"] {
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.12);
  --accent-glow: rgba(56, 189, 248, 0.24);
  --border-focus: rgba(56, 189, 248, 0.4);
  --btn-bg: linear-gradient(135deg, #e0f2fe 0%, #38bdf8 100%);
  --btn-text: #000000;
}
[data-accent="crimson"] {
  --accent: #fb7185;
  --accent-soft: rgba(251, 113, 133, 0.12);
  --accent-glow: rgba(251, 113, 133, 0.25);
  --border-focus: rgba(251, 113, 133, 0.42);
  --btn-bg: linear-gradient(135deg, #ffe4e6 0%, #fb7185 100%);
  --btn-text: #000000;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

#vq-starfield-canvas {
  position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; background: var(--bg-base);
}
#vq-stage { position: relative; z-index: 1; }

.vq-card {
  background: var(--bg-surface);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.vq-card::before {
  content: ""; position: absolute; top: 0; left: -100%; width: 55%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.42), transparent);
  transition: left 0.65s ease; pointer-events: none;
}
.vq-card:hover {
  border-color: var(--border-focus);
  background: var(--bg-surface-hover);
  transform: translateY(-2px);
  box-shadow: 0 22px 44px -16px rgba(0, 0, 0, 0.92), 0 0 24px -10px var(--accent-glow);
}
.vq-card:hover::before { left: 120%; }

.vq-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px; font-weight: 600; font-size: 13px;
  letter-spacing: 0.02em; cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent; outline: none; text-decoration: none; user-select: none;
}
.vq-btn-luxe {
  background: var(--btn-bg); color: var(--btn-text);
  box-shadow: 0 6px 20px -6px var(--accent-glow);
}
.vq-btn-luxe:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 12px 26px -6px var(--accent-glow);
  filter: brightness(1.05);
}
.vq-btn-gacha {
  background: linear-gradient(135deg, #f43f5e 0%, #a855f7 50%, #ec4899 100%);
  color: #ffffff;
  box-shadow: 0 8px 26px -6px rgba(244, 63, 94, 0.55);
}
.vq-btn-gacha:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 32px -6px rgba(236, 72, 153, 0.75);
}
.vq-btn-outline {
  background: var(--hover-bg);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}
.vq-btn-outline:hover {
  background: var(--hover-bg-strong);
  border-color: var(--border-focus);
}

.vq-layout { display: flex; min-height: 100vh; }
.vq-rail {
  width: 268px; padding: 32px 20px; display: flex; flex-direction: column;
  border-right: 1px solid var(--border-subtle);
  background: var(--rail-bg);
  backdrop-filter: blur(28px);
  position: sticky; top: 0; height: 100vh; z-index: 40; flex-shrink: 0;
}
.vq-viewport {
  flex: 1; padding: 44px 56px 96px; max-width: 1440px; margin: 0 auto; width: 100%;
  transition: background-color 0.35s ease, color 0.35s ease;
}
@keyframes vqFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.vq-nav-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; margin-bottom: 6px; border-radius: 13px;
  color: var(--text-secondary); cursor: pointer; font-size: 13.5px; font-weight: 500;
  transition: all 0.22s ease; border: 1px solid transparent;
}
.vq-nav-link-left { display: flex; align-items: center; gap: 12px; }
.vq-nav-link:hover { color: var(--text-primary); background: var(--hover-bg); }
.vq-nav-link.active {
  color: var(--text-primary); background: var(--accent-soft);
  border-color: var(--border-focus); font-weight: 600;
}

.vq-mobile-topbar {
  display: none; position: sticky; top: 0; z-index: 60; padding: 13px 18px;
  background: var(--topbar-bg); backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-subtle);
  align-items: center; justify-content: space-between;
}
.vq-drawer-mask {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.84);
  backdrop-filter: blur(10px); z-index: 120; animation: vqFade 0.2s ease;
}
.vq-drawer {
  position: fixed; top: 0; left: 0; bottom: 0; width: 286px; max-width: 82vw;
  background: var(--drawer-bg); border-right: 1px solid var(--border-focus);
  padding: 26px 20px; display: flex; flex-direction: column; z-index: 121;
  overflow-y: auto; box-shadow: 20px 0 50px rgba(0,0,0,0.95);
}

.vq-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4.5px 12px; border-radius: 999px; font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--pill-bg); color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}
.vq-dot-live {
  width: 6.5px; height: 6.5px; border-radius: 50%; background: var(--success);
  box-shadow: 0 0 10px var(--success); animation: vqPulse 2.2s infinite;
}
@keyframes vqPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.25); }
}

.vq-ad-banner {
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-base) 100%);
  border: 1px solid rgba(255,255,255,0.11); border-radius: 18px; padding: 18px 24px;
  position: relative; overflow: hidden; cursor: pointer; transition: all 0.28s ease;
}
.vq-ad-banner:hover {
  border-color: var(--border-focus); transform: translateY(-2px);
  box-shadow: 0 16px 36px -12px rgba(0,0,0,0.9);
}
.vq-ad-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em; padding: 2px 8px;
  border-radius: 6px; background: rgba(255,255,255,0.08); color: var(--text-secondary);
}

.vq-quote-bar {
  padding: 18px 24px; border-left: 2px solid var(--accent);
  background: linear-gradient(90deg, var(--accent-soft) 0%, transparent 100%);
  border-radius: 0 14px 14px 0; margin: 22px 0;
  font-family: "Georgia", "Songti SC", "STSong", serif;
  font-style: italic; color: var(--text-secondary); font-size: 14px; line-height: 1.7;
}

.vq-meter { height: 6px; background: var(--track-bg); border-radius: 99px; overflow: hidden; margin: 14px 0; }
.vq-meter-fill { height: 100%; background: var(--btn-bg); border-radius: 99px; transition: width 0.9s cubic-bezier(0.16, 1, 0.3, 1); }

.vq-portal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; margin-top: 26px; }
.vq-portal-card { padding: 28px; cursor: pointer; display: flex; flex-direction: column; justify-content: space-between; min-height: 158px; }
.vq-portal-arrow {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; color: var(--text-secondary);
}
.vq-portal-card:hover .vq-portal-arrow { background: var(--text-primary); color: var(--bg-base); transform: translate(3px, -3px); }

.vq-globe-stage { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 28px; align-items: stretch; margin-bottom: 36px; }
.vq-globe-box {
  position: relative; min-height: 510px; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 50%, rgba(16, 22, 34, 0.42) 0%, rgba(3, 3, 5, 0.96) 72%);
  cursor: grab; user-select: none;
}
.vq-globe-box:active { cursor: grabbing; }

.vq-prose { font-size: 14px; line-height: 1.85; color: var(--text-secondary); }
.vq-prose h1, .vq-prose h2, .vq-prose h3 { color: var(--text-primary); margin: 16px 0 10px; font-weight: 600; }
.vq-prose p { margin-bottom: 12px; }
.vq-prose a { color: var(--link); text-decoration: underline; }

.vq-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.86); backdrop-filter: blur(14px);
  display: flex; align-items: center; justify-content: center; z-index: 110; padding: 18px;
}
.vq-dialog {
  width: 100%; max-width: 650px; padding: 34px; max-height: 90vh; overflow-y: auto;
  background: var(--dialog-bg); border: 1px solid var(--border-focus); border-radius: 22px;
  box-shadow: 0 32px 64px rgba(0,0,0,0.95);
}
.vq-input {
  width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--border-subtle);
  background: var(--input-bg); color: var(--text-primary); font-size: 14px; outline: none; margin-bottom: 14px;
}
.vq-input:focus { border-color: var(--accent); background: var(--input-bg-focus); }

/* 街机小游戏样式 */
.vq-game-board-2048 {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  background: #050507; padding: 12px; border-radius: 16px; border: 1px solid var(--border-subtle);
  max-width: 340px; margin: 0 auto;
}
.vq-tile-2048 {
  aspect-ratio: 1; border-radius: 11px; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 20px; background: rgba(255,255,255,0.03); color: #fff;
  border: 1px solid rgba(255,255,255,0.05); transition: all 0.15s ease;
}
.vq-memory-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 360px; margin: 0 auto;
}
.vq-memory-card {
  aspect-ratio: 1; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 26px; cursor: pointer; background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle); transition: all 0.22s ease; user-select: none;
}
.vq-memory-card.flipped {
  background: rgba(244, 63, 94, 0.16); border-color: #fb7185; transform: scale(1.03);
}

/* 星际召唤与角色卡面样式 */
.vq-waifu-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(265px, 1fr)); gap: 26px;
}
.vq-waifu-card {
  border-radius: 20px; overflow: hidden; background: var(--bg-elevated);
  border: 1px solid rgba(255,255,255,0.1); position: relative;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1); display: flex; flex-direction: column;
}
.vq-waifu-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 48px -12px rgba(244, 63, 94, 0.28);
  border-color: rgba(244, 63, 94, 0.5);
}
.vq-waifu-card.locked {
  filter: grayscale(0.75) brightness(0.7);
}
.vq-waifu-card.locked:hover {
  filter: grayscale(0.25) brightness(0.92);
}
.vq-waifu-art {
  height: 310px; position: relative; overflow: hidden; background: #0d0d14;
  display: flex; align-items: flex-end; justify-content: center;
}
.vq-rarity-badge {
  position: absolute; top: 14px; left: 14px; z-index: 4;
  padding: 4px 12px; border-radius: 99px; font-weight: 800; font-size: 11.5px; letter-spacing: 0.08em;
  color: #000; box-shadow: 0 4px 14px rgba(0,0,0,0.6);
}
.vq-rarity-UR { background: var(--ur-grad); color: #fff; }
.vq-rarity-SSR { background: var(--ssr-grad); color: #000; }
.vq-rarity-SR { background: var(--sr-grad); color: #fff; }

@keyframes floatHeart {
  0% { opacity: 1; transform: translateY(0) scale(0.8); }
  100% { opacity: 0; transform: translateY(-75px) scale(1.4); }
}
.vq-heart-particle {
  position: absolute; pointer-events: none; font-size: 22px; z-index: 20;
  animation: floatHeart 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes breatheArt {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.022) translateY(-4px); }
}
.vq-waifu-live-art {
  animation: breatheArt 4.2s ease-in-out infinite;
  cursor: pointer;
}

@media (max-width: 980px) {
  .vq-globe-stage { grid-template-columns: 1fr; }
  .vq-layout { flex-direction: column; }
  .vq-rail { display: none; }
  .vq-mobile-topbar { display: flex; }
  .vq-viewport { padding: 22px 16px 64px; }
}

/* === v8.0 手机端全局顺滑滚动、弹窗下滑与安全登出修复 === */
html, body {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-y !important;
  height: auto !important;
  min-height: 100dvh !important;
}
#vq-stage {
  min-height: 100dvh;
  overflow-x: hidden;
}
.vq-overlay {
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  align-items: flex-start !important;
  padding: 24px 14px 60px !important;
}
.vq-dialog {
  margin: auto !important;
  max-height: none !important;
  overflow-y: visible !important;
}

/* === 角色卡面全彩展示 === */
.vq-waifu-art {
  height: 325px !important;
  position: relative;
  overflow: hidden;
  background: #0b0812;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vq-waifu-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
}
.vq-waifu-card:hover .vq-waifu-art img {
  transform: scale(1.07);
  filter: contrast(1.06) saturate(1.1);
}
.vq-waifu-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.18) 0%, transparent 32%, transparent 68%, rgba(8,8,12,0.92) 100%);
  pointer-events: none;
}
.vq-waifu-card.locked {
  filter: none !important;
  opacity: 0.96;
}

/* === 星穹伴侣舱 (Starlight Harem Lounge) 动态立绘交互动画 === */
.vq-harem-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 28px;
  align-items: stretch;
  perspective: 1200px;
}
.vq-harem-stage {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out;
  will-change: transform;
  min-height: 510px;
  border-radius: 22px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, rgba(244,63,94,0.22), #07060c 78%);
  border: 1px solid rgba(255,255,255,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
}
.vq-harem-figure {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  animation: breatheArt 4s ease-in-out infinite;
  transition: filter 0.35s ease, transform 0.35s ease;
  transform-origin: center bottom;
}

/* 6种部位互动反馈动画 */
@keyframes vqAnimShy {
  0%, 100% { transform: scale(1.03) rotate(0deg); }
  20% { transform: scale(1.05) rotate(-2.5deg) translateX(-5px); filter: brightness(1.1) saturate(1.2); }
  45% { transform: scale(1.06) rotate(2.5deg) translateX(5px); }
  70% { transform: scale(1.05) rotate(-1.5deg) translateX(-3px); }
}
@keyframes vqAnimJelly {
  0%, 100% { transform: scale(1, 1); }
  25% { transform: scale(1.08, 0.93); }
  50% { transform: scale(0.95, 1.06); }
  75% { transform: scale(1.03, 0.98); }
}
@keyframes vqAnimZoomKiss {
  0% { transform: scale(1); }
  45% { transform: scale(1.16) translateY(10px); filter: drop-shadow(0 0 25px rgba(244,63,94,0.85)) brightness(1.08); }
  100% { transform: scale(1); }
}
@keyframes vqAnimJumpJoy {
  0%, 100% { transform: translateY(0) scale(1); }
  30% { transform: translateY(-22px) scale(1.05); }
  55% { transform: translateY(0) scale(0.97, 1.03); }
  78% { transform: translateY(-10px) scale(1.02); }
}
@keyframes vqAnimOathGlow {
  0% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.1) translateY(-6px); filter: brightness(1.28) contrast(1.08) drop-shadow(0 0 32px #fde047); }
  100% { transform: scale(1); filter: brightness(1); }
}
.vq-anim-headpat { animation: vqAnimShy 0.85s ease !important; }
.vq-anim-poke { animation: vqAnimJelly 0.75s ease !important; }
.vq-anim-whisper { animation: vqAnimZoomKiss 1.25s cubic-bezier(0.16, 1, 0.3, 1) !important; }
.vq-anim-date { animation: vqAnimJumpJoy 0.9s ease !important; }
.vq-anim-oath { animation: vqAnimOathGlow 1.3s ease !important; }

/* 绯红脸红呼吸层与飘落花瓣 */
.vq-blush-overlay {
  position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: radial-gradient(circle at 50% 40%, rgba(244,63,94,0.28) 0%, transparent 65%);
  opacity: 0; transition: opacity 0.4s ease;
}
.vq-blush-overlay.active { opacity: 1; }

@keyframes vqPetalFall {
  0% { opacity: 0.95; transform: translate(0, -20px) rotate(0deg) scale(0.9); }
  100% { opacity: 0; transform: translate(var(--dx, 30px), 260px) rotate(260deg) scale(1.3); }
}
.vq-stage-particle {
  position: absolute; pointer-events: none; z-index: 15; font-size: 22px;
  animation: vqPetalFall 1.5s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}

/* === 全屏星际召唤过场动画 === */
.vq-cutscene-overlay {
  position: fixed; inset: 0; z-index: 260;
  background: radial-gradient(circle at 50% 50%, #160a28 0%, #030206 80%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden; animation: vqFade 0.25s ease;
}
.vq-magic-circle {
  width: 300px; height: 300px; position: relative;
  display: flex; align-items: center; justify-content: center;
  animation: vqSpinZoom 2.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes vqSpinZoom {
  0% { transform: scale(0.2) rotate(0deg); opacity: 0; filter: brightness(1); }
  45% { transform: scale(1.05) rotate(180deg); opacity: 1; filter: brightness(1.3); }
  82% { transform: scale(1.25) rotate(340deg); opacity: 1; filter: brightness(2.5); }
  100% { transform: scale(2.8) rotate(420deg); opacity: 0; filter: brightness(4); }
}
.vq-meteor-beam {
  position: absolute; top: -20%; left: -20%; width: 140%; height: 140%;
  pointer-events: none;
  background: linear-gradient(135deg, transparent 42%, rgba(255,255,255,0.95) 50%, transparent 58%);
  transform: translate(-100%, -100%);
  animation: vqMeteorStrike 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards;
}
@keyframes vqMeteorStrike {
  0% { transform: translate(-80%, -80%) scaleY(0.4); opacity: 1; }
  70% { transform: translate(10%, 10%) scaleY(1.2); opacity: 1; }
  100% { transform: translate(60%, 60%) scaleY(2); opacity: 0; }
}
.vq-flash-burst {
  position: absolute; inset: 0; background: #ffffff; pointer-events: none;
  opacity: 0; animation: vqBurstFlash 2.2s ease forwards;
}
@keyframes vqBurstFlash {
  0%, 72% { opacity: 0; }
  86% { opacity: 0.92; }
  100% { opacity: 0; }
}
@keyframes vqCardFlipIn {
  0% { opacity: 0; transform: perspective(800px) rotateY(90deg) translateY(25px) scale(0.85); }
  65% { opacity: 1; transform: perspective(800px) rotateY(-8deg) translateY(-4px) scale(1.03); }
  100% { opacity: 1; transform: perspective(800px) rotateY(0deg) translateY(0) scale(1); }
}
.vq-gacha-reveal-card {
  animation: vqCardFlipIn 0.65s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  position: relative; overflow: hidden;
}

.vq-voice-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: 99px; font-size: 11px; font-weight: 600;
  background: rgba(244, 63, 94, 0.22); color: #fda4af; border: 1px solid rgba(244, 63, 94, 0.45);
  cursor: pointer; transition: all 0.2s ease;
}
.vq-voice-pill:hover {
  background: rgba(244, 63, 94, 0.38); color: #fff; transform: scale(1.04);
}
.vq-wave-bar {
  display: inline-block; width: 2.5px; height: 10px; background: #fb7185; border-radius: 2px;
  animation: vqWaveBounce 0.6s ease-in-out infinite alternate;
}
.vq-wave-bar:nth-child(2) { animation-delay: 0.15s; height: 13px; }
.vq-wave-bar:nth-child(3) { animation-delay: 0.3s; height: 8px; }
@keyframes vqWaveBounce {
  0% { transform: scaleY(0.35); }
  100% { transform: scaleY(1.15); }
}

/* === 星姬欢乐斗地主 (Waifu Dou Dizhu) 扑克牌桌样式 === */
.vq-ddz-table {
  background: radial-gradient(ellipse at 50% 0%, #14532d 0%, #052e16 70%, #03170c 100%);
  border: 2px solid rgba(250, 204, 21, 0.35);
  border-radius: 22px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 60px rgba(0,0,0,0.55), 0 10px 30px rgba(0,0,0,0.5);
}
.vq-ddz-rivals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
.vq-ddz-rival-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border-radius: 16px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.1);
  position: relative;
}
.vq-ddz-rival-avatar {
  width: 56px; height: 56px; border-radius: 14px; object-fit: cover; object-position: center 15%;
  border: 2px solid #f43f5e; flex-shrink: 0;
}
.vq-ddz-hand-wrap {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 4px; padding: 18px 6px 8px; min-height: 118px;
}
.vq-poker-card {
  width: 48px; height: 72px; border-radius: 9px;
  background: linear-gradient(145deg, #ffffff 0%, #f1f5f9 100%);
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 5px 14px rgba(0,0,0,0.65);
  display: inline-flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 5px 4px; font-weight: 800; font-size: 13.5px; color: #0f172a;
  cursor: pointer; user-select: none;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s ease, border-color 0.18s ease;
}
.vq-poker-card.red { color: #e11d48; }
.vq-poker-card.joker-s { background: linear-gradient(145deg, #1e293b, #0f172a); color: #38bdf8; border-color: #38bdf8; }
.vq-poker-card.joker-b { background: linear-gradient(145deg, #4c0519, #881337); color: #fde047; border-color: #f43f5e; }
.vq-poker-card.selected {
  transform: translateY(-16px) scale(1.06);
  border-color: #f43f5e;
  box-shadow: 0 12px 24px rgba(244,63,94,0.45);
}
.vq-poker-mini {
  width: 36px; height: 52px; font-size: 11px; padding: 3px; border-radius: 6px;
}

.vq-slot-reel {
  width: 110px; height: 136px; border-radius: 16px; overflow: hidden;
  background: #090910; border: 2px solid rgba(244, 63, 94, 0.45);
  box-shadow: 0 0 24px rgba(244, 63, 94, 0.22), inset 0 0 18px rgba(0,0,0,0.85);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative;
}
.vq-slot-reel img { width: 100%; height: 100%; object-fit: cover; }
.vq-bj-card {
  width: 68px; height: 96px; border-radius: 10px; background: linear-gradient(145deg, #ffffff, #e4e4e7);
  color: #111827; font-weight: 800; font-size: 18px; display: inline-flex;
  flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.65); border: 1px solid #d4d4d8;
  animation: vqCardFlipIn 0.4s ease backwards; user-select: none;
}

@media (max-width: 980px) {
  .vq-harem-layout { grid-template-columns: 1fr; }
  .vq-harem-stage { min-height: 360px; max-height: 410px; }
  .vq-ddz-rivals { grid-template-columns: 1fr; }
  .vq-poker-card { width: 42px; height: 64px; font-size: 12px; }
  .vq-viewport { padding: 20px 16px 96px !important; }
  .vq-globe-box { min-height: 340px !important; touch-action: pan-y !important; }
}

@keyframes vqBeatPop { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* === v11.2 斗地主牌桌：绿绒桌面 + 三方座位 + 扇形手牌 === */
.vq-ddz-felt {
  display: grid;
  grid-template-columns: 150px 1fr 150px;
  gap: 14px;
  align-items: start;
  background: radial-gradient(ellipse at 50% 40%, rgba(34,197,94,0.25) 0%, rgba(0,0,0,0.25) 75%);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 16px;
}
.vq-ddz-seat {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 8px; border-radius: 16px;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.1);
}
.vq-ddz-seat.active {
  border-color: #fde047;
  box-shadow: 0 0 18px rgba(250,204,21,0.45);
}
.vq-ddz-bubble {
  font-size: 12px; color: #fda4af; text-align: center;
  background: rgba(255,255,255,0.06); border-radius: 10px; padding: 6px 8px; width: 100%;
}
.vq-ddz-center {
  min-height: 150px; padding: 12px; border-radius: 14px;
  background: rgba(0,0,0,0.35); border: 1px dashed rgba(255,255,255,0.15);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.vq-poker-back {
  width: 48px; height: 72px; border-radius: 9px;
  background: linear-gradient(135deg, #ec4899, #6b21a8);
  border: 1.5px solid rgba(255,255,255,0.35);
  box-shadow: 0 5px 14px rgba(0,0,0,0.65);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px;
}
.vq-poker-back::after { content: '✦'; }
.vq-poker-back-mini { width: 20px; height: 30px; border-radius: 4px; font-size: 10px; }
.vq-ddz-player-seat {
  margin-top: 4px; padding: 12px; border-radius: 16px;
  background: rgba(0,0,0,0.4); border: 1px solid rgba(250,204,21,0.25);
}
.vq-ddz-table .vq-ddz-hand-wrap { flex-wrap: nowrap; padding: 14px 10px 8px; }
.vq-ddz-table .vq-poker-card { margin-left: -20px; flex-shrink: 0; }
.vq-ddz-table .vq-poker-card:first-child { margin-left: 0; }
@media (max-width: 980px) {
  .vq-ddz-felt { grid-template-columns: 1fr; }
  .vq-ddz-table .vq-poker-card { margin-left: -27px; }
}

/* === v11.3 手办陈列架：聚光灯 + 手办底座 + 木质层板 === */
.vq-figure-row { display:flex; gap:20px; justify-content:center; flex-wrap:wrap; padding:20px 8px 2px; }
.vq-figure { position:relative; width:150px; text-align:center; cursor:pointer; }
.vq-figure-spot { position:absolute; top:0; left:50%; transform:translateX(-50%); width:130px; height:130px; border-radius:50%; background:radial-gradient(circle, var(--glow, #f472b6) 0%, transparent 70%); opacity:0.35; }
.vq-figure-img { position:relative; width:130px; height:170px; object-fit:contain; object-position:bottom center; filter:drop-shadow(0 12px 18px rgba(0,0,0,0.6)); transition:transform .2s ease; }
.vq-figure:hover .vq-figure-img { transform:translateY(-6px) scale(1.03); }
.vq-figure.current .vq-figure-img { filter:drop-shadow(0 0 20px var(--glow, #f472b6)); }
.vq-figure-base { width:110px; height:14px; margin:-2px auto 0; border-radius:50%; background:radial-gradient(ellipse at center, rgba(255,255,255,0.28), rgba(0,0,0,0.65) 70%); }
.vq-figure-plate { margin:10px auto 0; padding:7px 8px; border-radius:9px; background:linear-gradient(180deg,#1f2937,#0b0f19); border:1px solid rgba(250,204,21,0.35); }
.vq-figure-plank { height:14px; margin:2px 4px 16px; border-radius:6px; background:linear-gradient(180deg,#8b5a2b,#5b3a1a); box-shadow:0 8px 16px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.25); }
@media (max-width: 980px) {
  .vq-figure { width:130px; }
  .vq-figure-img { width:110px; height:150px; }
}

/* === v11.4 电脑端伴侣舱去留白：左舞台不再被右侧高卡片拉长 === */
/* 根因：.vq-harem-layout 默认 align-items:stretch，右侧卡片（好感/动作/故事/切换席）很高时，
   左舞台会被拉到同样高度，图片 object-fit:contain 居中后上下留出大片空白。
   桌面端改为 align-items:start，舞台高度回到与手机端一致的 510px，图片本身不拉伸、不裁剪、不改样。 */
@media (min-width: 981px) {
  .vq-harem-layout { align-items: start; }
}

/* === v11.11 用户主题：曜石黑（默认，与旧观感一致，不动面板 accent）/ 月光白 / 星云紫 / 樱花粉 === */
/* 注意：[data-vq-theme] 写在 :root 与 [data-accent] 之后，同权重下后来者胜；曜石黑不写 accent 系变量，面板后台的 accent 配色在默认主题下继续生效。 */
[data-vq-theme="obsidian"] {
  --rail-bg: rgba(3, 3, 5, 0.9);
  --topbar-bg: rgba(0, 0, 0, 0.9);
  --drawer-bg: #050507;
  --dialog-bg: #060609;
  --input-bg: #0a0a10;
  --input-bg-focus: rgba(255, 255, 255, 0.06);
  --row-bg: rgba(255, 255, 255, 0.03);
  --pill-bg: rgba(255, 255, 255, 0.05);
  --hover-bg: rgba(255, 255, 255, 0.04);
  --hover-bg-strong: rgba(255, 255, 255, 0.09);
  --track-bg: rgba(255, 255, 255, 0.06);
  --link: #38bdf8;
}
[data-vq-theme="moonlight"] {
  --bg-base: #f5f5f7;
  --bg-elevated: #ffffff;
  --bg-surface: rgba(255, 255, 255, 0.86);
  --bg-surface-hover: rgba(255, 255, 255, 0.97);
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-focus: rgba(0, 0, 0, 0.22);
  --text-primary: #17171c;
  --text-secondary: #5b5b66;
  --text-muted: #9c9ca6;
  --accent: #7c3aed;
  --accent-soft: rgba(124, 58, 237, 0.10);
  --accent-glow: rgba(124, 58, 237, 0.22);
  --btn-bg: linear-gradient(135deg, #1c1c22 0%, #000000 100%);
  --btn-text: #ffffff;
  --rail-bg: rgba(255, 255, 255, 0.88);
  --topbar-bg: rgba(255, 255, 255, 0.90);
  --drawer-bg: #ffffff;
  --dialog-bg: #ffffff;
  --input-bg: #f0f0f3;
  --input-bg-focus: #ffffff;
  --row-bg: rgba(0, 0, 0, 0.035);
  --pill-bg: rgba(0, 0, 0, 0.045);
  --hover-bg: rgba(0, 0, 0, 0.04);
  --hover-bg-strong: rgba(0, 0, 0, 0.08);
  --track-bg: rgba(0, 0, 0, 0.08);
  --link: #2563eb;
}
[data-vq-theme="nebula"] {
  --bg-base: #0d0714;
  --bg-elevated: #150b26;
  --bg-surface: rgba(24, 14, 42, 0.82);
  --bg-surface-hover: rgba(30, 18, 52, 0.94);
  --border-subtle: rgba(196, 181, 253, 0.14);
  --border-focus: rgba(196, 181, 253, 0.40);
  --text-primary: #f5f3ff;
  --text-secondary: #b7aad4;
  --text-muted: #7c6a9c;
  --accent: #a78bfa;
  --accent-soft: rgba(167, 139, 250, 0.14);
  --accent-glow: rgba(167, 139, 250, 0.30);
  --btn-bg: linear-gradient(135deg, #ddd6fe 0%, #a78bfa 100%);
  --btn-text: #1e1033;
  --rail-bg: rgba(13, 7, 20, 0.90);
  --topbar-bg: rgba(13, 7, 20, 0.90);
  --drawer-bg: #12081f;
  --dialog-bg: #14092a;
  --input-bg: #1c0f33;
  --input-bg-focus: rgba(167, 139, 250, 0.12);
  --row-bg: rgba(167, 139, 250, 0.07);
  --pill-bg: rgba(167, 139, 250, 0.10);
  --hover-bg: rgba(167, 139, 250, 0.08);
  --hover-bg-strong: rgba(167, 139, 250, 0.16);
  --track-bg: rgba(167, 139, 250, 0.14);
  --link: #c4b5fd;
}
[data-vq-theme="sakura"] {
  --bg-base: #fdf5f7;
  --bg-elevated: #ffffff;
  --bg-surface: rgba(255, 255, 255, 0.86);
  --bg-surface-hover: rgba(255, 255, 255, 0.97);
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-focus: rgba(0, 0, 0, 0.20);
  --text-primary: #2e1a22;
  --text-secondary: #7a5a66;
  --text-muted: #b08a94;
  --accent: #ec4899;
  --accent-soft: rgba(236, 72, 153, 0.10);
  --accent-glow: rgba(236, 72, 153, 0.22);
  --btn-bg: linear-gradient(135deg, #fda4af 0%, #ec4899 100%);
  --btn-text: #ffffff;
  --rail-bg: rgba(255, 255, 255, 0.88);
  --topbar-bg: rgba(255, 255, 255, 0.90);
  --drawer-bg: #fff7f9;
  --dialog-bg: #ffffff;
  --input-bg: #fbeef2;
  --input-bg-focus: #ffffff;
  --row-bg: rgba(236, 72, 153, 0.05);
  --pill-bg: rgba(236, 72, 153, 0.06);
  --hover-bg: rgba(236, 72, 153, 0.06);
  --hover-bg-strong: rgba(236, 72, 153, 0.12);
  --track-bg: rgba(236, 72, 153, 0.12);
  --link: #db2777;
}

/* === v11.11 主题切换控件：电脑端右上角悬浮钮 + 手机端顶栏钮 + 下拉菜单 === */
.vq-theme-fab {
  position: fixed; top: 16px; right: 20px; z-index: 90;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  cursor: pointer; color: var(--text-primary);
  background: var(--bg-surface); border: 1px solid var(--border-subtle);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.35s ease, color 0.35s ease;
}
.vq-theme-fab:hover { border-color: var(--border-focus); transform: translateY(-1px); }
.vq-theme-fab:active { transform: scale(0.95); }
.vq-theme-fab-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--border-subtle); flex-shrink: 0; }
.vq-theme-btn { padding: 6px 9px !important; font-size: 14px !important; flex-shrink: 0; }
.vq-theme-menu {
  position: fixed; z-index: 200; width: 208px; padding: 8px; display: none;
  border-radius: 16px; background: var(--dialog-bg); border: 1px solid var(--border-subtle);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.40);
  animation: vqThemeMenuIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes vqThemeMenuIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.vq-theme-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
  cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--text-primary);
  transition: background 0.18s ease, transform 0.18s ease;
}
.vq-theme-row:hover { background: var(--hover-bg-strong); }
.vq-theme-row:active { transform: scale(0.98); }
.vq-theme-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border-subtle); flex-shrink: 0; }
.vq-theme-check { margin-left: auto; color: var(--accent); font-weight: 800; }

/* === v11.11 丝滑点按：按压回弹 + 聚焦环 + 周期行选中过渡 === */
.vq-btn:active { transform: scale(0.96); }
.vq-btn-luxe:active, .vq-btn-gacha:active { transform: scale(0.96); filter: brightness(1.02); }
.vq-nav-link:active { transform: scale(0.98); }
.vq-portal-card:active { transform: scale(0.99); }
.vq-btn:focus-visible, .vq-nav-link:focus-visible, .vq-input:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.vq-input { transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease; }
.vq-input:focus { box-shadow: 0 0 0 3px var(--accent-soft); }
.vq-period-row { transition: border-color 0.22s ease, background-color 0.22s ease, transform 0.22s ease; }
.vq-period-row:active { transform: scale(0.99); }
/* 外壳换主题时颜色平滑过渡（卡片本身已有 all 0.3s 过渡） */
.vq-rail, .vq-mobile-topbar, .vq-drawer, .vq-dialog {
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

/* === v11.11 触屏修正：hover 在触屏上点后会粘住，看着像闪一下；触屏只保留按压反馈 === */
@media (hover: none) {
  .vq-card:hover, .vq-btn-luxe:hover, .vq-btn-gacha:hover, .vq-ad-banner:hover,
  .vq-waifu-card:hover, .vq-figure:hover .vq-figure-img, .vq-portal-card:hover .vq-portal-arrow,
  .vq-waifu-card:hover .vq-waifu-art img { transform: none; }
}

/* === v11.11 手机端帧率：毛玻璃是耗 GPU 大户，手机端降档；电脑端不动 === */
@media (max-width: 980px) {
  .vq-theme-fab { display: none; }
  .vq-card { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .vq-mobile-topbar { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
}
@media (max-width: 380px) {
  .vq-mobile-topbar { padding: 11px 12px; }
  .vq-mobile-topbar .vq-btn { padding: 5px 7px !important; font-size: 11px !important; }
}

/* === v11.11 尊重系统减动效 === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
.vq-theme-fab-name { white-space: nowrap; }
