:root {
  --bg: #080d1e;
  --card: #101935;
  --card-elevated: #172347;
  --border: rgba(148, 163, 184, 0.2);
  --border-active: #34d399;
  --text: #f8fafc;
  --text-sec: #cbd5e1;
  --text-muted: #94a3b8;
  --primary: #10b981;
  --primary-hover: #34d399;
  --cyan: #38bdf8;
  --danger: #fb7185;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  touch-action: manipulation;
}

[hidden] {
  display: none !important;
}


html.splash-lock,
html.splash-lock body {
  overflow: hidden;
  height: 100%;
}

.splash-overlay {
  --splash-bg: #010613;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--splash-bg);
  padding: 0;
  overflow: hidden;
  opacity: 1;
  touch-action: none;
  transition: opacity 380ms cubic-bezier(0.22, 1, 0.36, 1) 40ms;
}

.splash-overlay[data-variant='1'] {
  --splash-bg: #010b1f;
}

.splash-stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  transform: scale(1.028);
  opacity: 0.92;
  transition:
    transform 440ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (min-width: 600px) and (min-aspect-ratio: 3 / 4) {
  .splash-stage {
    width: min(100%, calc(100vh * 860 / 1744));
    width: min(100%, calc(100dvh * 860 / 1744));
    height: 100%;
  }
}

.splash-overlay.is-ready .splash-stage {
  transform: scale(1);
  opacity: 1;
}

.splash-overlay.is-leaving {
  opacity: 0;
  pointer-events: none;
}

.splash-overlay.is-leaving .splash-stage {
  transform: scale(1.085) translate3d(0, -14px, 0);
  opacity: 0;
}

.splash-overlay.is-swiping-out {
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.splash-overlay.is-swiping-out .splash-stage {
  transform: translate3d(0, -34vh, 0);
  opacity: 0;
  transition:
    transform 300ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.splash-kv-img {
  position: absolute;
  inset: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  object-fit: cover;
  object-position: center 42%;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.splash-overlay[data-variant='1'] .splash-kv-img {
  object-position: center top;
}

.splash-hit-surface {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.splash-hit-surface:focus-visible {
  outline: none;
}

.splash-cta-slot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(env(safe-area-inset-bottom, 0px) + clamp(136px, 24vh, 220px));
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.splash-overlay[data-variant='1'] .splash-cta-slot {
  bottom: calc(env(safe-area-inset-bottom, 0px) + clamp(148px, 26vh, 236px));
}

/* 与 KV 解耦的真实可交互胶囊按钮：避让底部安全区并在任意高宽比下无重影居中 */
.splash-cta-pill {
  position: relative;
  width: clamp(208px, 56vw, 252px);
  height: 56px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(6, 18, 28, 0.94) 0%, rgba(2, 9, 16, 0.96) 100%);
  border: 1.5px solid rgba(134, 239, 172, 0.68);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #f8fafc;
  font-size: 18px;
  line-height: 22px;
  font-weight: 600;
  letter-spacing: 0.22em;
  padding-left: 0.22em;
  overflow: hidden;
  transition:
    transform 140ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 140ms ease,
    background-color 140ms ease;
}

.splash-overlay[data-variant='1'] .splash-cta-pill {
  background: linear-gradient(180deg, rgba(6, 20, 42, 0.94) 0%, rgba(3, 12, 30, 0.96) 100%);
}

.splash-cta-pill::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 24%,
    rgba(110, 231, 183, 0.18) 48%,
    rgba(56, 189, 248, 0.2) 54%,
    transparent 76%
  );
  transform: translate3d(-120%, 0, 0);
  animation: splashPillSheen 3.2s cubic-bezier(0.22, 1, 0.36, 1) 0.5s infinite;
  pointer-events: none;
}

@keyframes splashPillSheen {
  0% { transform: translate3d(-120%, 0, 0); }
  46%, 100% { transform: translate3d(120%, 0, 0); }
}

.splash-cta-brace {
  color: #86efac;
  flex-shrink: 0;
  transition: transform 160ms cubic-bezier(0.2, 0.8, 0.2, 1), color 140ms ease;
}

.splash-hit-surface:hover .splash-cta-pill,
.splash-hit-surface:focus-visible .splash-cta-pill {
  border-color: rgba(110, 231, 183, 0.92);
  background: linear-gradient(180deg, rgba(12, 36, 48, 0.96) 0%, rgba(5, 18, 28, 0.98) 100%);
}

.splash-hit-surface:hover .splash-cta-brace,
.splash-hit-surface:focus-visible .splash-cta-brace {
  transform: translate3d(3px, 0, 0);
  color: #6ee7b7;
}

.splash-hit-surface:active .splash-cta-pill {
  transform: scale(0.955);
  border-color: #34d399;
  background: rgba(16, 185, 129, 0.24);
}

.splash-hit-surface:active .splash-cta-brace {
  transform: translate3d(5px, 0, 0);
}

.splash-overlay.is-leaving .splash-cta-pill {
  transform: scale(1.04);
  border-color: #6ee7b7;
  background: rgba(16, 185, 129, 0.28);
}

.splash-overlay.is-leaving .splash-cta-brace {
  transform: translate3d(7px, 0, 0);
}

.splash-overlay.is-paused .splash-cta-pill::before {
  animation-play-state: paused;
}

/* 底层编辑舞台层次化承接进场：开屏展开时由近及远轻盈浮现，结束后完全释放 transform 层 */
html.splash-staged .join-header,
html.splash-staged .avatar-preview-card,
html.splash-staged #editorSection,
html.splash-staged #completedSection {
  opacity: 0;
  transform: translate3d(0, 18px, 0) scale(0.975);
}

html.splash-entering .join-header {
  animation: editorTierRise 360ms cubic-bezier(0.22, 1, 0.36, 1) 30ms both;
}

html.splash-entering .avatar-preview-card {
  animation: editorTierRise 420ms cubic-bezier(0.22, 1, 0.36, 1) 75ms both;
}

html.splash-entering #editorSection,
html.splash-entering #completedSection {
  animation: editorTierRise 460ms cubic-bezier(0.22, 1, 0.36, 1) 125ms both;
}

@keyframes editorTierRise {
  0% {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.975);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .splash-overlay,
  .splash-stage,
  .splash-cta-pill,
  .splash-cta-brace {
    transition: none !important;
    animation: none !important;
  }
  .splash-cta-pill::before {
    animation: none !important;
  }
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 6%, rgba(46, 230, 138, 0.2) 0%, rgba(8, 13, 30, 0) 44%),
    radial-gradient(circle at 86% 12%, rgba(56, 189, 248, 0.24) 0%, rgba(8, 13, 30, 0) 46%),
    radial-gradient(circle at 50% 92%, rgba(251, 191, 36, 0.14) 0%, rgba(8, 13, 30, 0) 50%),
    linear-gradient(180deg, rgba(6, 11, 28, 0.72) 0%, rgba(6, 10, 24, 0.86) 54%, #050918 100%),
    url('/assets/kv/mobile-splash-kv.webp') center top / cover fixed no-repeat;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  font-size: 13px;
  line-height: 20px;
  display: flex;
  justify-content: center;
  overflow-x: hidden;
}

.mobile-app {
  width: 100%;
  max-width: 420px;
  padding: 16px 16px calc(24px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.header-mini-btns {
  display: flex;
  align-items: center;
  gap: 6px;
}

.join-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}

.join-header .badge-tag {
  justify-self: start;
}

.join-header h1 {
  grid-column: 2;
  justify-self: center;
  text-align: center;
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
  white-space: nowrap;
}

.header-mini-btns {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #6ee7b7;
  font-size: 11px;
  line-height: 16px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.join-header h1 {
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
  white-space: nowrap;
}

.ghost-mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-sec);
  font-size: 12px;
  line-height: 18px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
}

.ghost-mini-btn:hover {
  border-color: var(--cyan);
  color: #ffffff;
}

.avatar-preview-card {
  background: linear-gradient(180deg, #132046 0%, #0c142c 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.preview-top-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.preview-top-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qoduck-quick-btn {
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid rgba(250, 204, 21, 0.55);
  background: rgba(250, 204, 21, 0.16);
  color: #fef08a;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.qoduck-quick-btn:hover {
  background: rgba(250, 204, 21, 0.26);
}

.equipped-summary {
  font-size: 11px;
  line-height: 16px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slot-hint {
  font-size: 11px;
  line-height: 16px;
  color: #7dd3fc;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.24);
}

.skin-dot {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
}

.skin-dot.active {
  border-color: #34d399;
  transform: scale(1.1);
}

.dice-btn {
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.12);
  color: #bae6fd;
  font-size: 12px;
  cursor: pointer;
}

.preview-stage-wrap {
  position: relative;
  width: 200px;
  height: 226px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-mode-pill {
  display: none !important;
}

#previewCanvas {
  width: 152px;
  height: 192px;
  image-rendering: pixelated;
}

.pose-tabs {
  display: inline-flex;
  gap: 4px;
  background: rgba(8, 13, 30, 0.65);
  padding: 4px;
  border-radius: 999px;
}

.pose-pill {
  height: 24px;
  padding: 0 10px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
}

.pose-pill.active {
  background: var(--card-elevated);
  color: #6ee7b7;
  font-weight: 600;
}

/* 表单与四类独立 DIY 面板 */
.editor-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.exclusive-nick-card {
  min-height: 42px;
  padding: 7px 12px;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.24);
  background: linear-gradient(135deg, rgba(13, 22, 48, 0.88) 0%, rgba(10, 18, 40, 0.82) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.exclusive-nick-meta {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.exclusive-nick-value {
  font-size: 15px;
  line-height: 20px;
  font-weight: 700;
  color: #34d399;
}

#rerollNicknameBtn {
  height: 30px;
  padding: 0 11px;
  font-size: 12px;
  flex-shrink: 0;
}

/* 按钮精细化：统一玻璃质感高光、微渐变、精致描边与按压回弹 */
.ghost-mini-btn,
.qoduck-quick-btn,
.dice-btn,
.mode-tab-btn,
.ai-generate-btn,
.share-fab-btn,
.share-primary-btn,
.cheer-send-btn,
.leave-edit-btn {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 4px 12px rgba(2, 8, 23, 0.28);
  transition: transform 120ms ease, filter 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.ghost-mini-btn:active:not(:disabled),
.qoduck-quick-btn:active:not(:disabled),
.dice-btn:active:not(:disabled),
.mode-tab-btn:active:not(:disabled),
.ai-generate-btn:active:not(:disabled),
.share-fab-btn:active:not(:disabled),
.share-primary-btn:active:not(:disabled),
.cheer-send-btn:active:not(:disabled),
.leave-edit-btn:active:not(:disabled) {
  transform: scale(0.97);
}

.field-label {
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

.exclusive-nick-value {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  color: #6ee7b7;
  white-space: nowrap;
}

.category-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  background: var(--card);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.cat-tab {
  height: 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-sec);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.cat-tab.highlight-ai {
  color: #fde68a;
}

.cat-tab.active {
  background: var(--card-elevated);
  color: #6ee7b7;
  font-weight: 600;
}

#selfieUploadBody {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#selfieUploadBody > .ai-drop-hint {
  text-align: center;
  font-size: 11.5px;
  line-height: 17px;
  padding: 0 8px;
}

.ai-dropzone {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 128px;
  border-radius: 14px;
  border: 1.5px dashed rgba(56, 189, 248, 0.52);
  background: rgba(15, 23, 42, 0.62);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 140ms ease, background-color 140ms ease;
}

.ai-dropzone:hover {
  border-color: #34d399;
  background: rgba(16, 185, 129, 0.08);
}

.ai-drop-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
  padding: 14px 20px;
}

.ai-drop-icon {
  font-size: 28px;
  line-height: 32px;
}

.ai-drop-title {
  font-size: 14px;
  line-height: 20px;
  color: var(--text);
  font-weight: 600;
}

.ai-drop-hint {
  font-size: 11.5px;
  line-height: 17px;
  color: var(--text-muted);
  text-wrap: balance;
}

.ai-drop-preview-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

#aiSelectedPreviewImg {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  object-fit: contain;
}

.ai-reselect-tag {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(8, 13, 30, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: var(--text-sec);
  font-size: 11px;
  line-height: 16px;
}

.cat-tab.is-disabled,
.cat-tab:disabled {
  opacity: 0.36;
  cursor: not-allowed;
  pointer-events: none;
}

.ai-generate-btn {
  width: 100%;
  height: 42px;
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.2);
  color: #e0f2fe;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 140ms ease, opacity 140ms ease;
}

.ai-generate-btn {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.55);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.28) 0%, rgba(16, 185, 129, 0.28) 100%);
  color: #ecfeff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 140ms ease, filter 140ms ease, opacity 140ms ease;
}

.ai-generate-btn:hover:not(:disabled) {
  filter: brightness(1.12);
}

.ai-generate-btn:active:not(:disabled) {
  transform: scale(0.985);
}

.ai-generate-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.qca-job-card {
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(12, 22, 48, 0.88) 0%, rgba(8, 15, 34, 0.92) 100%);
  border: 1px solid rgba(56, 189, 248, 0.34);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.qca-job-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.qca-job-status-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.qca-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  flex-shrink: 0;
  background: #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.85);
  animation: qcaPulse 1.4s ease-in-out infinite;
}

@keyframes qcaPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}

.qca-job-status {
  font-size: 12px;
  line-height: 18px;
  color: #e0f2fe;
  font-weight: 500;
}

.qca-job-card.is-warning {
  border-color: rgba(251, 191, 36, 0.48);
  background: linear-gradient(180deg, rgba(42, 28, 12, 0.88) 0%, rgba(24, 16, 8, 0.92) 100%);
}

.qca-job-card.is-warning .qca-status-dot {
  background: #fbbf24;
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.75);
  animation: none;
}

.qca-job-card.is-warning .qca-job-status {
  color: #fef3c7;
}

.qca-job-card.is-success {
  border-color: rgba(52, 211, 153, 0.45);
}

.qca-job-card.is-success .qca-status-dot {
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.8);
  animation: none;
}

.qca-fallback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.qca-fallback-actions .ghost-mini-btn {
  flex: 1 1 130px;
  height: 32px;
  font-weight: 600;
}

.qca-outfit-jump-btn {
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(16, 185, 129, 0.14);
  color: #a7f3d0;
}

.qca-cancel-btn {
  flex-shrink: 0;
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(251, 113, 133, 0.38);
  background: rgba(244, 63, 94, 0.14);
  color: #fda4af;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, transform 120ms ease;
}

.qca-cancel-btn:hover:not(:disabled) {
  background: rgba(244, 63, 94, 0.24);
  border-color: rgba(251, 113, 133, 0.65);
}

.qca-cancel-btn:active:not(:disabled) {
  transform: scale(0.96);
}

.qca-cancel-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.qca-progress-line {
  height: 4px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
  overflow: hidden;
}

.qca-progress-indeterminate {
  height: 100%;
  width: 45%;
  background: linear-gradient(90deg, #34d399, #38bdf8);
  animation: slideBar 1.2s infinite ease-in-out;
}

@keyframes slideBar {
  0% { transform: translateX(-80%); }
  100% { transform: translateX(220%); }
}

.parts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  max-height: 296px;
  overflow-y: auto;
  padding-right: 2px;
}

.part-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 8px 4px 7px;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.24);
  background: linear-gradient(180deg, rgba(16, 28, 58, 0.86) 0%, rgba(10, 18, 40, 0.92) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, background 140ms ease, box-shadow 140ms ease;
}

.part-card:active {
  transform: scale(0.96);
}

.part-card.active {
  border: 1.5px solid #2ee68a;
  background: linear-gradient(180deg, rgba(16, 54, 68, 0.92) 0%, rgba(10, 32, 48, 0.96) 100%);
  box-shadow: 0 0 16px rgba(46, 230, 138, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.part-card canvas,
.part-card .part-thumb-img {
  width: 64px;
  height: 74px;
  object-fit: contain;
  image-rendering: pixelated;
}

.part-name {
  font-size: 11px;
  line-height: 16px;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.selfie-panel {
  padding: 12px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.selfie-note {
  font-size: 12px;
  line-height: 18px;
  color: var(--text-sec);
}

.selfie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.upload-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.14);
  color: #e0f2fe;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.full-width {
  width: 100%;
  height: 40px;
}

.form-error {
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(244, 63, 94, 0.16);
  border: 1px solid rgba(251, 113, 133, 0.4);
  color: #fecdd3;
  font-size: 12px;
}

.enter-primary-btn {
  height: 48px;
  width: 100%;
  border: none;
  border-radius: 14px;
  background: linear-gradient(96deg, #2ee68a 0%, #22d3ee 54%, #fbbf24 100%);
  color: #03151e;
  font-size: 15px;
  line-height: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow:
    0 10px 26px rgba(46, 230, 138, 0.3),
    0 4px 16px rgba(34, 211, 238, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: transform 140ms ease, filter 140ms ease, box-shadow 140ms ease;
}

.enter-primary-btn:hover {
  filter: brightness(1.06);
  box-shadow:
    0 12px 30px rgba(46, 230, 138, 0.4),
    0 4px 20px rgba(34, 211, 238, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.enter-primary-btn:active {
  transform: scale(0.985);
}

.enter-primary-btn:disabled {
  background: rgba(51, 65, 85, 0.72);
  color: #94a3b8;
  box-shadow: none;
  opacity: 0.75;
  cursor: not-allowed;
}

/* 遥控器区 */
.remote-section,
.completed-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.live-banner {
  padding: 12px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.4);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.live-banner-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 28px;
  font-size: 12px;
  line-height: 28px;
  font-weight: 600;
}

.live-dot-text {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  color: #6ee7b7;
}

.progress-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #34d399, #38bdf8);
  transition: width 250ms linear;
}

.remote-tip {
  font-size: 12px;
  color: var(--text-sec);
}

.walk-locate-panel {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid rgba(56, 189, 248, 0.3);
  align-items: center;
}

.dpad-wrap {
  display: grid;
  grid-template-columns: repeat(3, 40px);
  grid-template-rows: repeat(3, 40px);
  gap: 4px;
  justify-content: center;
  user-select: none;
  touch-action: none;
}

.dpad-btn {
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.36);
  background: var(--card-elevated);
  color: #f8fafc;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dpad-btn.up { grid-column: 2; grid-row: 1; }
.dpad-btn.left { grid-column: 1; grid-row: 2; }
.dpad-btn.center-locate {
  grid-column: 2;
  grid-row: 2;
  background: rgba(251, 191, 36, 0.2);
  border-color: rgba(251, 191, 36, 0.65);
}
.dpad-btn.right { grid-column: 3; grid-row: 2; }
.dpad-btn.down { grid-column: 2; grid-row: 3; }

.dpad-btn:active,
.dpad-btn.pressed {
  background: #10b981;
  color: #042f2e;
  border-color: #34d399;
}

.radar-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.locate-spotlight-btn {
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid rgba(251, 191, 36, 0.6);
  background: rgba(251, 191, 36, 0.18);
  color: #fde68a;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.locate-spotlight-btn:hover {
  background: rgba(251, 191, 36, 0.28);
}

.mini-radar {
  position: relative;
  height: 68px;
  border-radius: 8px;
  background:
    linear-gradient(rgba(56, 189, 248, 0.08) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(90deg, rgba(56, 189, 248, 0.08) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(180deg, #09132e 0%, #10234f 100%);
  border: 1px solid rgba(52, 211, 153, 0.42);
  overflow: hidden;
  cursor: pointer;
  touch-action: manipulation;
}

.mini-radar:active {
  border-color: #34d399;
}

.radar-stage-bar {
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  line-height: 12px;
  color: rgba(110, 231, 183, 0.78);
}

.radar-me-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #fbbf24;
  border: 2px solid #ffffff;
  transform: translate(-50%, -50%);
  left: 50%;
  top: 65%;
  transition: left 90ms linear, top 90ms linear;
}

.radar-zone-text {
  font-size: 11px;
  line-height: 16px;
  color: var(--text-muted);
}

.remote-fun-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.action-big-btn {
  height: 60px;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.36);
  background: var(--card-elevated);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.action-big-btn.jump {
  border-color: rgba(52, 211, 153, 0.5);
  background: rgba(16, 185, 129, 0.18);
}

.action-big-btn.easter-btn {
  border-color: rgba(251, 191, 36, 0.65);
  background: rgba(251, 191, 36, 0.18);
  color: #fef08a;
}

.action-big-btn:active {
  transform: scale(0.98);
}

.act-emoji {
  font-size: 20px;
  line-height: 24px;
}

.cheer-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cheer-label {
  font-size: 12px;
  color: var(--text-sec);
}

.cheer-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.preview-top-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mode-tab-btn {
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-sec);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.mode-tab-btn.active {
  border-color: var(--cyan);
  background: rgba(56, 189, 248, 0.16);
  color: #f8fafc;
}

.remote-stage-preview-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
}

.remote-stage-top-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.remote-stage-canvas-wrap {
  width: 100%;
  aspect-ratio: 22 / 19;
  border-radius: 10px;
  overflow: hidden;
  background: #070e1d;
  border: 1px solid rgba(56, 189, 248, 0.28);
}

.empty-avatar-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  font-size: 13px;
  line-height: 20px;
  color: var(--text-sec);
  pointer-events: none;
}

.avatar-preview-card.is-large #previewCanvas {
  width: 196px;
  height: 248px;
}

.selfie-collapsed-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: rgba(16, 185, 129, 0.1);
  color: #6ee7b7;
  font-size: 12px;
  font-weight: 600;
}

.remote-collapse-box {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 10px 12px;
}

.remote-collapse-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  cursor: pointer;
  list-style: none;
}

.remote-collapse-summary::-webkit-details-marker {
  display: none;
}

.remote-collapse-box[open] .remote-collapse-summary {
  margin-bottom: 10px;
}

.remote-collapse-box[open] .remote-collapse-chevron {
  transform: rotate(180deg);
}

.random-cheer-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
}

.random-cheer-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.random-cheer-value {
  font-size: 13px;
  font-weight: 600;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.random-cheer-btns {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.cheer-send-btn {
  height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #10b981 0%, #0ea5e9 100%);
  color: #03151e;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

#remoteVenueCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.ai-review-notice {
  font-size: 12px;
  line-height: 16px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fde68a;
}

.remote-action-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.remote-group-label {
  font-size: 12px;
  color: var(--text-sec);
  font-weight: 600;
}

.cheer-pill-btn {
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  color: #e2e8f0;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cheer-pill-btn:hover {
  border-color: var(--cyan);
}

.leave-edit-btn {
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
}

.completed-card {
  padding: 16px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid rgba(52, 211, 153, 0.35);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.completed-card h2 {
  font-size: 16px;
  line-height: 24px;
}

.completed-card p {
  font-size: 12px;
  line-height: 18px;
  color: var(--text-sec);
}

.completed-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.queue-card {
  position: relative;
  overflow: hidden;
  padding: 20px 18px 18px;
  border-radius: 20px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(56, 189, 248, 0.14) 0%, rgba(11, 20, 44, 0.92) 56%, rgba(8, 14, 32, 0.96) 100%);
  border: 1px solid rgba(56, 189, 248, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(186, 230, 253, 0.18),
    0 18px 40px rgba(2, 6, 23, 0.45);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.queue-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 16%;
  right: 16%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #38bdf8 35%, #34d399 65%, transparent);
  opacity: 0.85;
}

.queue-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.queue-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #bae6fd;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
}

.queue-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.9);
  animation: queuePulseDot 1.8s ease-in-out infinite;
}

@keyframes queuePulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

.queue-nick-tag {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.28);
  font-size: 12.5px;
  line-height: 18px;
  font-weight: 700;
  color: #6ee7b7;
}

.queue-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.queue-metric-box {
  padding: 14px 14px 13px;
  border-radius: 14px;
  background: rgba(6, 12, 28, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.16);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.queue-metric-box.is-eta {
  background: linear-gradient(155deg, rgba(16, 185, 129, 0.10), rgba(6, 12, 28, 0.72));
  border-color: rgba(52, 211, 153, 0.24);
}

.queue-metric-label {
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.queue-metric-value {
  font-size: 26px;
  line-height: 32px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: #f8fafc;
}

.queue-metric-value.highlight {
  color: #5eead4;
}

.queue-metric-sub {
  font-size: 11.5px;
  line-height: 16px;
  color: rgba(148, 163, 184, 0.88);
}

.queue-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.queue-progress-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.18);
  overflow: hidden;
}

.queue-progress-bar {
  position: relative;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2ee68a 0%, #38bdf8 100%);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.45);
  transition: width 0.55s ease;
}

.queue-progress-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.36) 50%, transparent 100%);
  animation: queueSheen 2.2s linear infinite;
}

@keyframes queueSheen {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.queue-desc {
  margin: 0;
  font-size: 12px;
  line-height: 18px;
  color: rgba(203, 213, 225, 0.78);
}

.queue-watch-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.queue-sub-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.queue-sub-actions .secondary-btn {
  height: 38px;
  border-radius: 11px;
  font-size: 13px;
}

.queue-sub-actions .leave-edit-btn {
  padding: 0 16px;
  height: 38px;
  border-radius: 11px;
  font-size: 12.5px;
  color: rgba(203, 213, 225, 0.78);
}

/* 排队态与完成态卡片内已提供明确主分享按钮，隐藏预览卡右下角重复悬浮按钮 */
.mobile-app[data-view='queue'] .share-fab-btn,
.mobile-app[data-view='completed'] .share-fab-btn {
  display: none;
}

/* 形象分享卡片入口按钮与毛玻璃预览弹窗 */
.preview-stage-wrap {
  width: 100%;
}

.share-fab-btn {
  position: absolute;
  right: 4px;
  bottom: 4px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(167, 243, 208, 0.85);
  background: linear-gradient(135deg, #2ee68a 0%, #38bdf8 100%);
  color: #03151e;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(46, 230, 138, 0.42), 0 0 0 2px rgba(56, 189, 248, 0.22);
  transition: transform 140ms ease, filter 140ms ease, box-shadow 140ms ease;
}

.share-fab-btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 8px 24px rgba(46, 230, 138, 0.56), 0 0 0 3px rgba(56, 189, 248, 0.32);
}

.share-fab-btn:active {
  transform: scale(0.95);
}

.remote-bottom-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.share-primary-btn {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(167, 243, 208, 0.78);
  background: linear-gradient(135deg, #2ee68a 0%, #38bdf8 100%);
  color: #03151e;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.34);
  transition: transform 140ms ease, filter 140ms ease;
}

.share-primary-btn:hover {
  filter: brightness(1.12);
}

.share-primary-btn:active {
  transform: scale(0.985);
}

.share-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: rgba(3, 8, 22, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(14px, env(safe-area-inset-top)) 14px max(16px, env(safe-area-inset-bottom));
  animation: shareOverlayFade 180ms ease-out;
}

@keyframes shareOverlayFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.share-modal-sheet {
  width: 100%;
  max-width: 392px;
  max-height: 92dvh;
  overflow-y: auto;
  border-radius: 22px;
  border: 1px solid rgba(56, 189, 248, 0.36);
  background: linear-gradient(180deg, rgba(11, 21, 48, 0.96) 0%, rgba(7, 13, 30, 0.98) 100%);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(46, 230, 138, 0.14) inset;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: shareSheetPop 240ms cubic-bezier(0.2, 0.85, 0.25, 1);
}

@keyframes shareSheetPop {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.share-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.share-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-modal-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #2ee68a;
  box-shadow: 0 0 10px rgba(46, 230, 138, 0.9);
}

.share-modal-header h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #f8fafc;
}

.share-modal-close {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.72);
  color: #cbd5e1;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.share-theme-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.share-theme-pill {
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.62);
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 140ms ease;
}

.share-theme-pill.active {
  border-color: rgba(46, 230, 138, 0.72);
  background: rgba(16, 185, 129, 0.18);
  color: #ecfdf5;
}

.share-card-stage {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --glare-x: 50%;
  --glare-y: 35%;
  --glare-opacity: 0.42;
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  max-height: 54dvh;
  margin: 0 auto;
  border-radius: 18px;
  background: rgba(5, 10, 24, 0.88);
  border: 1px solid rgba(56, 189, 248, 0.34);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.55), 0 0 24px rgba(56, 189, 248, 0.16);
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 180ms ease;
  will-change: transform;
}

.share-card-stage.is-idle-holo {
  animation: shareCardIdleFloat 5.2s ease-in-out infinite;
}

@keyframes shareCardIdleFloat {
  0%, 100% {
    transform: perspective(900px) rotateX(2.4deg) rotateY(-3.6deg);
  }
  50% {
    transform: perspective(900px) rotateX(-2.2deg) rotateY(3.8deg);
  }
}

.share-card-stage.is-tilting {
  animation: none;
  transition: transform 45ms linear;
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.62), 0 0 34px rgba(46, 230, 138, 0.28);
}

.share-card-holo-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: var(--glare-opacity);
  background:
    radial-gradient(circle at var(--glare-x) var(--glare-y), rgba(255, 255, 255, 0.48) 0%, rgba(56, 189, 248, 0.24) 26%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(120deg, rgba(56, 189, 248, 0) 14%, rgba(46, 230, 138, 0.24) 34%, rgba(253, 224, 71, 0.24) 48%, rgba(244, 114, 182, 0.24) 62%, rgba(129, 140, 248, 0) 84%);
  mix-blend-mode: screen;
  transition: opacity 200ms ease;
}

.share-card-holo-glare::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(
    118deg,
    transparent 34%,
    rgba(56, 189, 248, 0.22) 44%,
    rgba(255, 255, 255, 0.34) 50%,
    rgba(244, 114, 182, 0.22) 56%,
    transparent 66%
  );
  transform: translate3d(-70%, -20%, 0);
  opacity: 0;
  pointer-events: none;
}

.share-card-stage.is-idle-holo .share-card-holo-glare::after {
  opacity: 0.9;
  animation: shareHoloAutoSweep 4.6s ease-in-out infinite;
}

@keyframes shareHoloAutoSweep {
  0% { transform: translate3d(-75%, -25%, 0); }
  48%, 100% { transform: translate3d(75%, 25%, 0); }
}

.share-card-loading {
  font-size: 13px;
  color: #7dd3fc;
  letter-spacing: 0.02em;
}

.share-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  -webkit-touch-callout: default;
  user-select: none;
}

.share-card-tip {
  margin: 0;
  font-size: 11px;
  line-height: 16px;
  color: #94a3b8;
  text-align: center;
}

.share-card-toast {
  margin: 0;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.42);
  color: #6ee7b7;
  font-size: 12px;
  text-align: center;
}

.share-modal-actions {
  display: flex;
  gap: 8px;
}

.share-channel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.share-channel-btn {
  height: 36px;
  padding: 0 6px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.share-channel-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.share-download-btn {
  position: relative;
  overflow: hidden;
  flex: 1;
  height: 44px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #10b981 0%, #0ea5e9 100%);
  color: #03151e;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.28);
  transition: transform 120ms ease, filter 120ms ease, box-shadow 120ms ease;
}

.share-download-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 28%,
    rgba(255, 255, 255, 0.34) 48%,
    rgba(255, 255, 255, 0.14) 56%,
    transparent 74%
  );
  transform: translate3d(-120%, 0, 0);
  animation: shareBtnSheen 3.2s cubic-bezier(0.22, 1, 0.36, 1) 0.4s infinite;
  pointer-events: none;
}

.share-download-btn:disabled::after {
  animation: none;
}

@keyframes shareBtnSheen {
  0% { transform: translate3d(-120%, 0, 0); }
  42%, 100% { transform: translate3d(120%, 0, 0); }
}

.share-download-btn:hover:not(:disabled) {
  filter: brightness(1.08);
}

.share-download-btn:active:not(:disabled) {
  transform: scale(0.94);
  filter: brightness(0.9);
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.22);
}

.share-download-btn.is-tapped,
.share-native-btn.is-tapped,
.share-fab-btn.is-tapped {
  animation: shareTapBounce 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes shareTapBounce {
  0% { transform: scale(1); }
  30% { transform: scale(0.92); filter: brightness(1.16); }
  70% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

.tap-ripple {
  position: absolute;
  width: 64px;
  height: 64px;
  margin-left: -32px;
  margin-top: -32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  pointer-events: none;
  transform: scale(0);
  animation: tapRippleOut 420ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes tapRippleOut {
  to {
    transform: scale(3.2);
    opacity: 0;
  }
}

.share-download-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.share-native-btn {
  position: relative;
  overflow: hidden;
  height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.55);
  background: rgba(14, 165, 233, 0.18);
  color: #e0f2fe;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 120ms ease, background 120ms ease;
}

.share-native-btn:active {
  transform: scale(0.94);
  background: rgba(14, 165, 233, 0.32);
}

.share-save-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: rgba(2, 6, 18, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  animation: lightboxFadeIn 180ms ease-out;
}

.share-save-lightbox-inner {
  position: relative;
  width: min(92vw, 400px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: lightboxCardPop 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes lightboxFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes lightboxCardPop {
  from { opacity: 0; transform: translate3d(0, 18px, 0) scale(0.92); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

.share-save-close {
  align-self: flex-end;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.85);
  color: #f8fafc;
  font-size: 16px;
  cursor: pointer;
}

.share-save-lightbox-img {
  width: 100%;
  max-height: 74dvh;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.65);
  -webkit-touch-callout: default;
  user-select: none;
}

.share-save-hint-pill {
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2ee68a 0%, #38bdf8 100%);
  color: #03151e;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 8px 24px rgba(46, 230, 138, 0.35);
}

[hidden] {
  display: none !important;
}

/* ===== 创意微交互动效（戳小人粒子 / 昵称滚动弹跳 / 主按钮流光 / 街机按键浮空表情） ===== */
#previewCanvas {
  cursor: pointer;
  touch-action: manipulation;
}

.floating-fx-particle {
  position: fixed;
  z-index: 980;
  pointer-events: none;
  font-size: 16px;
  font-weight: 800;
  color: #ecfeff;
  text-shadow: 0 2px 10px rgba(46, 230, 138, 0.55);
  will-change: transform, opacity;
  animation: fxFloatRise 760ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes fxFloatRise {
  0% {
    opacity: 0;
    transform: translate3d(-50%, 6px, 0) scale(0.65);
  }
  20% {
    opacity: 1;
    transform: translate3d(-50%, -12px, 0) scale(1.12);
  }
  100% {
    opacity: 0;
    transform: translate3d(calc(-50% + var(--fx-dx, 0px)), -64px, 0) scale(0.88);
  }
}

.exclusive-nick-value.is-rolling {
  color: #7dd3fc;
}

.exclusive-nick-value.is-popped,
.random-cheer-value.is-popped {
  animation: nickPopIn 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.slot-reel-host {
  display: inline-block;
  position: relative;
  overflow: hidden;
  vertical-align: middle;
  height: 24px;
  line-height: 24px;
}

.slot-reel-track {
  display: flex;
  flex-direction: column;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  transition: transform 460ms cubic-bezier(0.16, 1, 0.3, 1);
}

.slot-reel-item {
  height: 24px;
  line-height: 24px;
  white-space: nowrap;
}

.ghost-mini-btn.is-dice-spinning {
  animation: diceBtnShake 420ms cubic-bezier(0.22, 1, 0.36, 1);
  border-color: rgba(56, 189, 248, 0.72);
  color: #e0f2fe;
}

@keyframes diceBtnShake {
  0% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(0.92) rotate(-8deg); }
  55% { transform: scale(1.06) rotate(7deg); }
  80% { transform: scale(0.98) rotate(-3deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.poke-hint-pill {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(8, 16, 38, 0.72);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #bae6fd;
  font-size: 11px;
  line-height: 16px;
  font-weight: 600;
  pointer-events: none;
  animation: pokePillFloat 2.4s ease-in-out infinite;
}

@keyframes pokePillFloat {
  0%, 100% { transform: translateY(0); opacity: 0.78; }
  50% { transform: translateY(-3px); opacity: 1; }
}

.preview-stage-wrap.is-swapped::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 56%;
  width: 120px;
  height: 120px;
  margin-left: -60px;
  margin-top: -60px;
  border-radius: 999px;
  border: 2px solid rgba(46, 230, 138, 0.8);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.55);
  pointer-events: none;
  animation: swapRingBurst 460ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes swapRingBurst {
  0% { transform: scale(0.45); opacity: 0.95; }
  100% { transform: scale(1.85); opacity: 0; }
}

.action-big-btn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #2ee68a, #38bdf8);
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0;
  pointer-events: none;
}

.action-big-btn.is-fired::after {
  opacity: 1;
  animation: actionCooldownBar 600ms linear forwards;
}

@keyframes actionCooldownBar {
  0% { transform: scaleX(1); }
  100% { transform: scaleX(0); opacity: 0.25; }
}

@keyframes nickPopIn {
  0% { transform: scale(0.88); }
  55% { transform: scale(1.09); }
  100% { transform: scale(1); }
}

.enter-primary-btn {
  position: relative;
  overflow: hidden;
}

.enter-primary-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 28%, rgba(255, 255, 255, 0.28) 50%, transparent 72%);
  transform: translate3d(-125%, 0, 0);
  animation: shareBtnSheen 3.6s ease-in-out infinite;
  pointer-events: none;
}

.enter-primary-btn:disabled::after {
  animation: none;
  opacity: 0;
}

.part-card {
  transition: transform 140ms cubic-bezier(0.22, 1, 0.36, 1), border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.part-card:active {
  transform: scale(0.94);
}

.action-big-btn {
  position: relative;
  overflow: hidden;
  transition: transform 120ms cubic-bezier(0.22, 1, 0.36, 1), border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.action-big-btn:hover {
  border-color: rgba(56, 189, 248, 0.68);
  box-shadow: 0 6px 18px rgba(14, 165, 233, 0.18);
}

.action-big-btn:active,
.action-big-btn.is-fired {
  transform: scale(0.93);
  border-color: #34d399;
  box-shadow: 0 0 18px rgba(46, 230, 138, 0.35);
}

.cheer-send-btn.is-sent {
  background: linear-gradient(135deg, #10b981, #2ee68a);
  color: #03211a;
  border-color: #6ee7b7;
}

/* ===== 桌面端 / 平板宽屏响应式双栏布局（移动端 < 860px 保持原汁原味单列） ===== */
@media (min-width: 860px) {
  body {
    align-items: center;
    padding: 20px 28px;
  }

  .splash-stage {
    width: auto;
    height: min(92dvh, 880px);
    aspect-ratio: 860 / 1744;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(56, 189, 248, 0.25);
  }

  .mobile-app {
    max-width: 1120px;
    padding: 22px 26px 28px;
    display: grid;
    grid-template-columns: minmax(360px, 430px) minmax(0, 1fr);
    gap: 20px 26px;
    align-items: start;
    border-radius: 24px;
    background: rgba(7, 13, 30, 0.56);
    border: 1px solid rgba(56, 189, 248, 0.18);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 24px 70px rgba(2, 6, 20, 0.62);
  }

  .join-header {
    grid-column: 1 / -1;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  }

  .join-header h1 {
    font-size: 18px;
    line-height: 26px;
  }

  .badge-tag {
    font-size: 12px;
    padding: 3px 11px;
  }

  .avatar-preview-card {
    grid-column: 1;
    min-height: 486px;
    justify-content: center;
    padding: 20px;
  }

  .avatar-preview-card .preview-stage-wrap {
    min-height: 410px;
  }

  #previewCanvas {
    width: 248px;
    height: 298px;
  }

  .editor-section {
    grid-column: 2;
    gap: 14px;
  }

  .parts-grid {
    max-height: 360px;
    gap: 10px;
  }

  .part-card {
    min-height: 114px;
  }

  .remote-section {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1.62fr) minmax(320px, 380px);
    gap: 16px 24px;
    align-items: start;
  }

  .remote-stage-preview-card {
    grid-column: 1;
    grid-row: 1 / span 4;
    padding: 14px;
  }

  .remote-stage-canvas-wrap {
    aspect-ratio: 16 / 10;
    height: auto;
    min-height: 440px;
    max-height: 64dvh;
  }

  .remote-collapse-box {
    grid-column: 2;
  }

  .remote-fun-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .action-big-btn {
    height: 64px;
    font-size: 13px;
  }

  .random-cheer-card,
  .remote-bottom-actions {
    grid-column: 2;
  }

  #queueSection,
  .completed-section {
    grid-column: 2;
    width: 100%;
    max-width: none;
    margin: 0;
    align-self: stretch;
  }

  #queueSection:not([hidden]),
  .completed-section:not([hidden]) {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  #queueSection .queue-card {
    min-height: 486px;
    padding: 28px 28px 24px;
    justify-content: space-between;
  }

  #queueSection .queue-metric-value {
    font-size: 32px;
    line-height: 38px;
  }

  #aiReviewWaitSection {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 560px;
    margin: 12px auto 0;
  }
}
