/* ============================================================
   情趣飞行棋 · 禁忌漫游 - 视觉与动效样式表
   ============================================================ */

:root {
  --bg-dark: #0a0813;
  --bg-card: rgba(23, 18, 38, 0.78);
  --border-glow: rgba(255, 42, 109, 0.25);
  
  --primary-pink: #ff2a6d;
  --primary-pink-glow: rgba(255, 42, 109, 0.4);
  --primary-purple: #9b51e0;
  --primary-blue: #05d9e8;
  --primary-gold: #ffbe0b;

  --p1-color: #05d9e8; /* 男神 - 霓虹青蓝 */
  --p2-color: #ff2a6d; /* 女神 - 霓虹玫红 */

  --text-main: #f8f9fa;
  --text-sub: #a19db8;
  --text-dim: #6c668a;

  --font-display: 'Outfit', 'Noto Sans SC', sans-serif;
}

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

body {
  font-family: var(--font-display);
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* 背景流动光晕 */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  animation: pulseGlow 10s ease-in-out infinite alternate;
}

.glow-pink {
  width: 320px;
  height: 320px;
  background: var(--primary-pink);
  top: -60px;
  right: -60px;
}

.glow-purple {
  width: 400px;
  height: 400px;
  background: var(--primary-purple);
  bottom: 5%;
  left: -100px;
  animation-delay: -3s;
}

.glow-blue {
  width: 250px;
  height: 250px;
  background: var(--primary-blue);
  top: 40%;
  right: -80px;
  animation-delay: -6s;
}

@keyframes pulseGlow {
  0% { transform: scale(1) translate(0, 0); opacity: 0.25; }
  100% { transform: scale(1.25) translate(20px, 30px); opacity: 0.45; }
}

/* 主容器 */
.app-container {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 10px 14px 20px 14px;
}

/* 玻璃拟态卡片通用 */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* 顶部状态栏 */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 4px 10px 4px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  font-size: 24px;
  filter: drop-shadow(0 0 12px rgba(255, 42, 109, 0.8));
  animation: flameBeat 2s ease-in-out infinite alternate;
}

@keyframes flameBeat {
  0% { transform: scale(1); }
  100% { transform: scale(1.16) rotate(3deg); }
}

.logo-text h1 {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #fff 20%, #ff85a2 70%, #ff2a6d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sub-title {
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.8px;
  display: block;
}

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

/* 多语言下拉选择器 */
.lang-selector-wrapper {
  position: relative;
  z-index: 105;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  padding: 6px 10px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  background: rgba(255, 42, 109, 0.2);
  border-color: var(--primary-pink);
}

.dropdown-arrow {
  font-size: 10px;
  color: var(--text-dim);
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  width: 175px;
  max-height: 280px;
  overflow-y: auto;
  padding: 6px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 42, 109, 0.3);
  z-index: 110;
}

.lang-dropdown::-webkit-scrollbar {
  width: 4px;
}

.lang-dropdown::-webkit-scrollbar-thumb {
  background: rgba(255, 42, 109, 0.4);
  border-radius: 4px;
}

.lang-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sub);
  cursor: pointer;
  transition: all 0.15s ease;
}

.lang-item:hover, .lang-item.active {
  background: rgba(255, 42, 109, 0.2);
  color: #fff;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.icon-btn:hover, .icon-btn:active {
  background: rgba(255, 42, 109, 0.2);
  border-color: var(--primary-pink);
  transform: scale(1.05);
}

.hidden {
  display: none !important;
}

/* ============================================================
   Google AdSense 商业化广告位容器
   ============================================================ */
.ads-container {
  width: 100%;
  margin: 6px 0;
  display: flex;
  justify-content: center;
}

.ads-placeholder {
  width: 100%;
  min-height: 50px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.ads-label {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.2);
  font-weight: 700;
}

.ads-lobby {
  margin-top: 14px;
}

.ads-victory {
  margin: 12px 0;
}

/* 视图切换 */
.view {
  display: none;
  flex-direction: column;
  flex: 1;
}

.view.active {
  display: flex;
}

/* ============================================================
   登录 & 配对大厅
   ============================================================ */
.lobby-card {
  padding: 22px 18px;
  margin-top: 4px;
  border: 1px solid rgba(255, 42, 109, 0.2);
}

.card-hero {
  text-align: center;
  margin-bottom: 20px;
}

.hero-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: var(--primary-pink);
  background: rgba(255, 42, 109, 0.15);
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.card-hero h2 {
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 6px;
}

.hero-desc {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.5;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-sub);
  margin-bottom: 10px;
  display: block;
}

/* 性别选择 */
.role-selector-section {
  margin-bottom: 20px;
}

.gender-toggle-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.gender-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.25s ease;
}

.gender-icon {
  font-size: 26px;
}

.gender-title {
  font-size: 14px;
  font-weight: 700;
}

.gender-sub {
  font-size: 11px;
  color: var(--text-dim);
}

.gender-card[data-gender="male"].active {
  background: rgba(5, 217, 232, 0.12);
  border-color: var(--p1-color);
  box-shadow: 0 0 16px rgba(5, 217, 232, 0.3);
}

.gender-card[data-gender="female"].active {
  background: rgba(255, 42, 109, 0.15);
  border-color: var(--p2-color);
  box-shadow: 0 0 16px rgba(255, 42, 109, 0.35);
}

.nickname-box input,
.code-generator-row input,
.code-join-row input {
  width: 100%;
  background: rgba(10, 8, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 11px 14px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.nickname-box input:focus,
.code-generator-row input:focus,
.code-join-row input:focus {
  border-color: var(--primary-pink);
  box-shadow: 0 0 10px var(--primary-pink-glow);
}

/* 模式 Tabs */
.mode-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.35);
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.mode-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-sub);
  padding: 10px 0;
  font-size: 13px;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mode-tab.active {
  background: rgba(255, 42, 109, 0.25);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.box-segment {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.segment-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-sub);
  margin-bottom: 10px;
}

.code-generator-row,
.code-join-row {
  display: flex;
  gap: 10px;
}

.code-generator-row input,
.code-join-row input {
  flex: 1;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
}

.btn-primary, .btn-secondary {
  border: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  border-radius: 12px;
  padding: 11px 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #ff2a6d, #d1105a);
  color: #fff;
  box-shadow: 0 4px 16px var(--primary-pink-glow);
}

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

.btn-secondary {
  background: linear-gradient(135deg, #9b51e0, #6f2dbd);
  color: #fff;
  box-shadow: 0 4px 16px rgba(155, 81, 224, 0.3);
}

.btn-large {
  width: 100%;
  padding: 14px 20px;
  font-size: 15px;
}

.divider-line {
  text-align: center;
  position: relative;
  margin: 14px 0;
}

.divider-line::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.divider-line span {
  position: relative;
  background: var(--bg-card);
  padding: 0 12px;
  font-size: 12px;
  color: var(--text-dim);
}

/* 口令展示区 */
.code-share-banner {
  margin-top: 14px;
  background: rgba(255, 42, 109, 0.12);
  border: 1px dashed var(--primary-pink);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

.share-title {
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 6px;
}

.share-code-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 6px;
}

.share-code-number {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 3px;
  font-family: monospace;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 12px;
  border-radius: 8px;
}

.btn-small {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.btn-small:hover {
  background: var(--primary-pink);
}

.share-tip {
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.waiting-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: var(--primary-pink);
  font-weight: 600;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--primary-pink);
  border-radius: 50%;
  animation: pulseDot 1.4s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(0.6); opacity: 0.3; }
  50% { transform: scale(1.3); opacity: 1; }
}

.local-mode-desc {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 16px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-sub);
  margin-bottom: 16px;
}

/* ============================================================
   对局棋盘界面
   ============================================================ */
.game-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  margin-bottom: 8px;
}

.player-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.player-card.active-turn {
  background: rgba(255, 42, 109, 0.15);
  border-color: var(--primary-pink);
  box-shadow: 0 0 12px var(--primary-pink-glow);
}

.p1-card.active-turn {
  background: rgba(5, 217, 232, 0.15);
  border-color: var(--p1-color);
  box-shadow: 0 0 12px rgba(5, 217, 232, 0.3);
}

.player-avatar {
  font-size: 20px;
}

.player-info {
  display: flex;
  flex-direction: column;
}

.player-name {
  font-size: 13px;
  font-weight: 700;
}

.player-status-tag {
  font-size: 10px;
  color: var(--text-dim);
}

.player-card.active-turn .player-status-tag {
  color: #fff;
  font-weight: 700;
}

.player-pos-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
}

.vs-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.room-code-pill {
  font-size: 10px;
  font-family: monospace;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--text-sub);
}

.vs-heart {
  font-size: 16px;
  animation: heartThrob 1.2s ease-in-out infinite alternate;
}

@keyframes heartThrob {
  0% { transform: scale(0.9); }
  100% { transform: scale(1.2); }
}

/* 四阶段步骤条 */
.stage-stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 6px;
  margin-bottom: 8px;
}

.step {
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  padding: 6px 2px;
  border-radius: 8px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.25s ease;
}

.step.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 42, 109, 0.3), rgba(155, 81, 224, 0.3));
  box-shadow: 0 0 10px rgba(255, 42, 109, 0.3);
}

/* 滚动事件条 */
.event-ticker {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 8px;
}

.ticker-icon {
  font-size: 14px;
}

.ticker-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
}

/* ============================================================
   飞行棋盘布局 (Winding Track S-Curve)
   ============================================================ */
.board-wrapper {
  flex: 1;
  min-height: 380px;
  max-height: 520px;
  position: relative;
  border-radius: 18px;
  background: rgba(12, 10, 22, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.board-scroll-container {
  flex: 1;
  overflow-y: auto;
  padding: 14px 10px;
  scroll-behavior: smooth;
}

.board-scroll-container::-webkit-scrollbar {
  width: 5px;
}

.board-scroll-container::-webkit-scrollbar-thumb {
  background: rgba(255, 42, 109, 0.3);
  border-radius: 4px;
}

.chess-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

/* 棋盘格子 */
.board-tile {
  background: rgba(25, 20, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px 6px;
  min-height: 74px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}

.board-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.25);
}

.tile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tile-num {
  font-size: 9px;
  font-family: monospace;
  font-weight: 800;
  color: var(--text-dim);
}

.tile-icon {
  font-size: 13px;
}

.tile-title {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  margin: 3px 0;
  color: var(--text-main);
  text-align: center;
}

/* 等级颜色区别 */
.tile-lvl-1 { border-left: 3px solid #ff758c; }
.tile-lvl-2 { border-left: 3px solid #ff2a6d; }
.tile-lvl-3 { border-left: 3px solid #9b51e0; }
.tile-lvl-4 { border-left: 3px solid #ffbe0b; }

.board-tile.tile-start {
  background: rgba(5, 217, 232, 0.12);
  border-color: var(--primary-blue);
}

.board-tile.tile-finish {
  background: linear-gradient(135deg, rgba(255, 42, 109, 0.3), rgba(255, 190, 11, 0.3));
  border: 1.5px solid var(--primary-gold);
  box-shadow: 0 0 16px rgba(255, 190, 11, 0.4);
  grid-column: span 2;
}

.board-tile.tile-finish .tile-title {
  font-size: 13px;
  color: #fff;
  font-weight: 900;
}

/* 棋子放置槽 */
.tile-pieces-slot {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  min-height: 20px;
}

.chess-piece {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  animation: pieceBounce 0.4s ease-out;
}

.p1-piece {
  background: linear-gradient(135deg, #05d9e8, #0056b3);
  box-shadow: 0 0 10px rgba(5, 217, 232, 0.8);
  border: 1.5px solid #fff;
}

.p2-piece {
  background: linear-gradient(135deg, #ff2a6d, #b8004b);
  box-shadow: 0 0 10px rgba(255, 42, 109, 0.8);
  border: 1.5px solid #fff;
}

@keyframes pieceBounce {
  0% { transform: scale(0.3) translateY(-14px); opacity: 0; }
  70% { transform: scale(1.25) translateY(2px); }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* ============================================================
   底部控制面板：3D 骰子 & 互动
   ============================================================ */
.bottom-control-bar {
  margin-top: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dice-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* 3D 骰子容器 */
.dice-scene {
  width: 64px;
  height: 64px;
  perspective: 400px;
}

.dice-cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(-20deg) rotateY(-30deg);
  transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dice-cube.rolling {
  animation: rollAnimation 1.2s ease-in-out;
}

@keyframes rollAnimation {
  0% { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg) scale(0.9); }
  25% { transform: rotateX(360deg) rotateY(180deg) rotateZ(90deg) scale(1.15); }
  50% { transform: rotateX(720deg) rotateY(540deg) rotateZ(270deg) scale(1.2); }
  75% { transform: rotateX(1080deg) rotateY(900deg) rotateZ(450deg) scale(1.1); }
  100% { transform: rotateX(1440deg) rotateY(1260deg) rotateZ(720deg) scale(1); }
}

.cube-face {
  position: absolute;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #2a1b4e, #18112d);
  border: 1.5px solid var(--primary-pink);
  border-radius: 14px;
  display: grid;
  padding: 10px;
  box-shadow: inset 0 0 10px rgba(255, 42, 109, 0.4);
}

.face-1 { transform: rotateY(0deg) translateZ(32px); display: flex; align-items: center; justify-content: center; }
.face-2 { transform: rotateY(90deg) translateZ(32px); grid-template-columns: 1fr 1fr; align-items: center; justify-items: center; }
.face-3 { transform: rotateY(180deg) translateZ(32px); grid-template-columns: 1fr 1fr 1fr; align-items: center; justify-items: center; }
.face-4 { transform: rotateY(-90deg) translateZ(32px); grid-template-columns: 1fr 1fr; align-items: center; justify-items: center; }
.face-5 { transform: rotateX(90deg) translateZ(32px); grid-template-columns: 1fr 1fr; align-items: center; justify-items: center; }
.face-6 { transform: rotateX(-90deg) translateZ(32px); grid-template-columns: 1fr 1fr; align-items: center; justify-items: center; }

.pip {
  display: block;
  width: 10px;
  height: 10px;
  background: #ff2a6d;
  border-radius: 50%;
  box-shadow: 0 0 8px #ff2a6d;
}

.face-1 .pip {
  width: 14px;
  height: 14px;
  background: #ffbe0b;
  box-shadow: 0 0 12px #ffbe0b;
}

/* 骰子按钮 */
.roll-btn-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.btn-roll {
  position: relative;
  background: linear-gradient(135deg, #ff2a6d 0%, #9b51e0 100%);
  border: none;
  border-radius: 14px;
  padding: 14px 20px;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(255, 42, 109, 0.5);
  transition: all 0.25s ease;
}

.btn-roll:active {
  transform: scale(0.96);
}

.btn-roll:disabled {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  cursor: not-allowed;
  color: var(--text-dim);
}

.turn-prompt {
  font-size: 11px;
  text-align: center;
  color: var(--text-sub);
}

/* 快捷调情词条 */
.quick-flirt-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.flirt-label {
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
}

.flirt-chips-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 0;
}

.flirt-chips-scroll::-webkit-scrollbar {
  display: none;
}

.chip-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-sub);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 11px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip-btn:hover, .chip-btn:active {
  background: rgba(255, 42, 109, 0.2);
  color: #fff;
  border-color: var(--primary-pink);
}

/* ============================================================
   弹窗与卡片
   ============================================================ */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 4, 10, 0.85);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-card {
  width: 100%;
  max-width: 440px;
  padding: 22px 18px;
  border: 1px solid rgba(255, 42, 109, 0.35);
}

.animate-pop {
  animation: modalPop 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes modalPop {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.task-card {
  text-align: center;
}

.task-stage-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-pink);
  margin-bottom: 4px;
}

.task-tile-number {
  font-size: 12px;
  color: var(--text-dim);
  font-family: monospace;
}

.task-title {
  font-size: 22px;
  font-weight: 800;
  margin: 6px 0 10px 0;
  background: linear-gradient(135deg, #fff, #ff85a2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.task-executor-pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  margin-bottom: 14px;
  color: var(--text-sub);
}

.executor-name {
  color: #fff;
  font-weight: 700;
}

.task-content-box {
  background: rgba(10, 8, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
}

.task-desc-text {
  font-size: 14px;
  line-height: 1.6;
  color: #f1f1f5;
  font-weight: 500;
}

.timer-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.timer-display {
  font-size: 20px;
  font-weight: 800;
  font-family: monospace;
  color: var(--primary-gold);
  background: rgba(255, 190, 11, 0.15);
  padding: 4px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 190, 11, 0.3);
}

.btn-timer {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
}

/* 胜利弹窗 */
.win-card {
  text-align: center;
}

.crown-icon {
  font-size: 44px;
  animation: crownBounce 1s infinite alternate ease-in-out;
}

@keyframes crownBounce {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-8px) scale(1.1); }
}

.win-tag {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--primary-gold);
  font-weight: 800;
  margin-top: 6px;
}

.win-title {
  font-size: 21px;
  font-weight: 800;
  margin: 8px 0 14px 0;
  color: #fff;
}

.win-content {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 190, 11, 0.3);
  margin-bottom: 16px;
}

.win-highlight {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary-gold);
  margin-bottom: 6px;
}

.win-desc {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-sub);
}

/* 规则弹窗 */
.rules-card {
  max-height: 80vh;
  overflow-y: auto;
}

.rules-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-sub);
  font-size: 20px;
  cursor: pointer;
}

.rules-body h4 {
  font-size: 14px;
  color: var(--primary-pink);
  margin: 14px 0 6px 0;
}

.rules-body p, .rules-body ul {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.6;
}

.rules-body ul {
  padding-left: 18px;
}
