:root {
  --phone-w: 430px;
  --bg: #0f172a;
  --card: rgba(12, 10, 22, 0.88);
  --card-hover: rgba(18, 14, 30, 0.94);
  --line: rgba(255, 255, 255, 0.1);
  --accent: #38bdf8;
  --gold: #e8c547;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --font-display: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --font-hero: "ZCOOL QingKe HuangYou", "Noto Serif SC", "STSong", "SimSun", serif;
  --font-ui: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  min-height: 100%;
  min-height: 100dvh;
  background: #12101a;
  color: var(--text);
  font-family: var(--font-ui);
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
/* 手机全屏版：不拉宽到电脑全屏，底图按手机宽度渲染更清晰 */
html.mobile-app {
  background: transparent;
}
html.mobile-app body {
  width: 100%;
  max-width: var(--phone-w);
  margin: 0 auto;
  overflow-x: hidden;
  background: transparent;
}
html.mobile-app .stellar-bg,
html.mobile-app .stellar-tap-fx {
  width: 100%;
  max-width: var(--phone-w);
  left: 50%;
  right: auto;
  margin-left: 0;
  transform: translateX(-50%);
  top: calc(-1 * env(safe-area-inset-top, 0px));
  bottom: calc(-1 * env(safe-area-inset-bottom, 0px));
  height: auto;
}
html.mobile-app .stellar-canvas,
html.mobile-app .stellar-tap-fx {
  display: none;
}
html.mobile-app #lock {
  width: 100%;
  max-width: var(--phone-w);
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}
html.mobile-app #lock.on {
  transform: translateX(-50%);
}
html.mobile-app .toast-receipt {
  left: 50%;
  right: auto;
  width: calc(100% - 24px);
  max-width: calc(var(--phone-w) - 24px);
  margin: 0;
  transform: translateX(-50%) translateY(120%);
}
html.mobile-app .toast-receipt.on {
  transform: translateX(-50%) translateY(0);
}
html.mobile-app #app {
  width: 100%;
  max-width: var(--phone-w);
  margin: 0 auto;
}
.selectable, .report-box, .detail-box, .detail-box *, textarea, input { -webkit-user-select: text; user-select: text; }

/* 至尊底板：手机/电脑同一套比例与慢动作 */
.stellar-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: transparent;
}
.stellar-plate {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #0a0812;
}
.stellar-plate-vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 2.6s ease-in-out, visibility 0s linear 2.6s;
  pointer-events: none;
  z-index: 2;
  transform: scale(1.08);
  transform-origin: center center;
  background: #0a0812;
}
.stellar-plate-vid.is-on {
  opacity: 1;
  visibility: visible;
  transition: opacity 2.6s ease-in-out, visibility 0s linear 0s;
  filter: brightness(1.03) contrast(1.02) saturate(1.04);
}
.stellar-plate-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.08);
  transform-origin: center center;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 2.4s ease-in-out, visibility 0s linear 2.4s;
  will-change: opacity;
  background: #0a0812;
}
.stellar-plate-img.is-on {
  opacity: 1;
  visibility: visible;
  transition: opacity 2.4s ease-in-out, visibility 0s linear 0s;
  z-index: 1;
  filter: brightness(1.03) contrast(1.02) saturate(1.03);
}
.stellar-plate--video .stellar-plate-img {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none;
}
.stellar-plate--video .stellar-plate-img.is-on {
  opacity: 0 !important;
  visibility: hidden !important;
}
/* 全屏点击特效层（在 UI 之上，不挡操作） */
.stellar-tap-fx {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  z-index: 90;
  pointer-events: none;
  display: block;
}
.stellar-canvas {
  display: none !important;
}
.stellar-canvas--waterfall {
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.2) 42%,
    black 48%,
    black 84%,
    rgba(0, 0, 0, 0.25) 90%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.2) 42%,
    black 48%,
    black 84%,
    rgba(0, 0, 0, 0.25) 90%,
    transparent 100%
  );
}
.stellar-veil {
  display: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .stellar-canvas--waterfall { display: none; }
}

#app {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
}
.screen {
  display: none;
  animation: fadeIn 0.28s ease;
}
.screen.active { display: block; }
.screen-fill.active {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}
.screen-page.active {
  display: block;
  min-height: 100vh;
  min-height: 100dvh;
  padding: env(safe-area-inset-top) 12px env(safe-area-inset-bottom);
  max-width: 100%;
  margin: 0 auto;
}
html.mobile-app .screen-page.active {
  max-width: var(--phone-w);
}
.screen-page .sub-bar {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}
.screen-page .zone-card,
.screen-page .detail-box,
.screen-page .choice-card {
  background: rgba(12, 10, 22, 0.9);
  border-color: rgba(255, 255, 255, 0.28);
}
.screen-page input,
.screen-page textarea,
.screen-page select {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}
.screen-page input::placeholder,
.screen-page textarea::placeholder { color: rgba(255, 255, 255, 0.5); }
.page-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 6px 12px 10px;
  min-height: 0;
}
.page-inner--flat {
  max-width: 100%;
  padding: 6px 14px 14px;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.hero-brand {
  flex-shrink: 0;
  text-align: center;
  padding: 18px 8px 12px;
  position: relative;
  z-index: 1;
}
.hero-brand::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
}
.hero-brand-tap {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: inherit;
  font: inherit;
  text-align: center;
}
.hero-brand-tap:active { opacity: 0.92; }
.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(232, 197, 71, 0.35);
  background: rgba(255, 255, 255, 0.06);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 500;
  color: #e2e8f0;
  letter-spacing: 0.12em;
}
.brand-logo {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: cover;
}
.brand-title {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.14em;
}
.brand-title--hero {
  position: relative;
  margin: 14px 0 0;
  padding: 0 4px;
  font-family: var(--font-hero);
  font-size: clamp(2.85rem, 14vw, 4.1rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.1em;
  text-align: center;
}
.brand-title-glow,
.brand-title-face {
  display: block;
}
@media (max-width: 380px) {
  .brand-title--hero {
    font-size: clamp(2.35rem, 12vw, 3.2rem);
    letter-spacing: 0.06em;
  }
}
.brand-title-glow {
  display: none;
}
.brand-title-face {
  position: relative;
  z-index: 1;
  background: linear-gradient(
    90deg,
    #ff3d7f 0%,
    #ffcc00 18%,
    #39ff9a 36%,
    #38bdf8 54%,
    #a78bfa 72%,
    #ff3d7f 100%
  );
  background-size: 400% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: chip-flow-color 1.1s linear infinite;
  filter: none;
  text-shadow: 0 0 18px rgba(56, 189, 248, 0.35);
}
@media (prefers-reduced-motion: reduce) {
  .brand-title-glow { opacity: 0.9; }
}
.brand-slogan {
  margin-top: 12px;
  font-family: var(--font-hero);
  font-size: clamp(0.95rem, 4.6vw, 1.15rem);
  font-weight: 400;
  letter-spacing: 0.22em;
  color: #f8e8b8;
  text-shadow: 0 0 14px rgba(255, 200, 90, 0.55);
}
.brand-sub { margin-top: 6px; font-size: 0.72rem; color: var(--muted); }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  margin-top: 8px;
  padding-bottom: 4px;
}
.hero-subtitle {
  font-size: 0.7rem;
  color: rgba(226, 232, 240, 0.85);
  margin: 0;
  letter-spacing: 0.04em;
}
.user-chip {
  display: block;
  width: 100%;
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 0;
  border: none;
  background: transparent;
  line-height: 1.35;
  letter-spacing: 0.06em;
  text-align: center;
}
.user-chip-flow {
  display: inline-block;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #fff8dc 18%,
    #ffd54f 38%,
    #e6a817 55%,
    #fff5cc 78%,
    #ffffff 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0.5px rgba(92, 58, 8, 0.5);
  filter: drop-shadow(0 1px 6px rgba(255, 200, 80, 0.45));
}
@keyframes chip-flow-color {
  0% { background-position: 0% 50%; }
  100% { background-position: 400% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .user-chip-flow {
    animation: none;
    background-position: 50% 50%;
  }
}
.page-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: 8px;
  min-height: 0;
  padding: 10px 12px 8px;
}
.page-body--auth { justify-content: flex-start; padding-top: 8px; }
.page-foot {
  flex-shrink: 0;
  padding: 10px 14px 12px;
  text-align: center;
  background: rgba(26, 85, 136, 0.45);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.page-foot--flat {
  margin-top: auto;
  padding: 14px 10px 10px;
  background: rgba(6, 4, 14, 0.4);
  border-top: none;
  border-radius: 16px;
}
.demo-tip { font-size: 0.65rem; color: rgba(203, 213, 225, 0.75); margin-top: 4px; }
.quota {
  font-size: 0.78rem;
  color: #fde68a;
  margin: 0;
  font-weight: 700;
  text-shadow: 0 0 16px rgba(252, 211, 77, 0.45);
}
.demo-tip { color: var(--muted); }
.install-hint {
  display: none;
  font-size: 0.68rem;
  color: #a7f3d0;
  margin: 6px 4px 0;
  line-height: 1.45;
}
.install-hint.on { display: block; }
.btn-text-logout {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(8, 6, 18, 0.4);
  border-radius: 12px;
  color: #f8fafc;
  font-size: 0.8rem;
  cursor: pointer;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.auth-card {
  flex: 1;
  margin: 12px 0;
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.72), rgba(30, 27, 75, 0.55));
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 18px;
  padding: 18px 16px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}
.auth-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}
.auth-mode-tabs {
  display: flex;
  gap: 8px;
  margin: 10px 0 14px;
}
.auth-mode-tab {
  flex: 1;
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.45);
  color: rgba(226, 232, 240, 0.78);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 9px 10px;
  cursor: pointer;
}
.auth-mode-tab.on {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.95), rgba(217, 119, 6, 0.9));
  color: #1c1917;
  border-color: transparent;
}
.auth-hint { font-size: 0.75rem; color: var(--muted); margin-bottom: 14px; line-height: 1.5; }
.auth-card--easy label,
.auth-card--easy input,
.auth-card--easy select,
.auth-card--easy .sms-row,
.auth-card--easy .agree-row,
.auth-card--easy .sms-tip {
  display: none !important;
}
.auth-card--easy .auth-title {
  text-align: center;
  margin-bottom: 12px;
}
.sms-row { display: flex; gap: 8px; align-items: stretch; }
.sms-row input { flex: 1; min-width: 0; }
.btn-sms {
  flex-shrink: 0;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.btn-sms:disabled { opacity: 0.45; cursor: not-allowed; }
.sms-tip { font-size: 0.7rem; color: #7dd3fc; margin: 8px 0 4px; min-height: 1.2em; }
.agree-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 14px 0 4px;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.45;
  cursor: pointer;
}
.agree-row input { width: auto; margin-top: 3px; flex-shrink: 0; }
.btn-gold {
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: #1c1917;
  box-shadow: 0 4px 20px rgba(251, 191, 36, 0.35);
}
.auth-foot { text-align: center; font-size: 0.65rem; color: rgba(203, 213, 225, 0.8); margin: 0; }

/* 选择类型 · 手机列表 */
.section-head { margin: 0 0 8px; text-align: center; }
.section-head--tight { margin-bottom: 6px; }
.section-head--compact { margin-bottom: 10px; }
.section-label {
  font-size: 1.05rem;
  font-weight: 800;
  margin-top: 4px;
  color: #fff;
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.35);
}
.section-desc { font-size: 0.76rem; color: var(--muted); margin-top: 4px; }

.hero-brand--compact {
  padding-top: 8px;
  padding-bottom: 2px;
}
#screen-home .hero-brand--compact {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 12px 6px;
  margin: 16px 8px 2px;
  border-radius: 14px;
  background: transparent;
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}
.hero-app-icon {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
#screen-home .hero-brand--compact .hero-brand-tap {
  width: auto;
  margin-top: 0;
}
#screen-home .hero-brand--compact .brand-title--hero {
  margin-top: 8px;
  margin-bottom: 0;
}
#screen-home .hero-brand--compact::after {
  display: none;
}
#screen-home .home-status {
  margin: 6px 0 0;
  font-size: 0.68rem;
  line-height: 1.45;
  padding: 0 4px;
  word-break: break-word;
}
.home-status.warn { color: #fde68a; }
.home-status.err { color: #fecaca; }
.public-url-banner {
  margin: 0 12px 8px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #ecfdf5;
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.85), rgba(4, 120, 87, 0.65));
  border: 1px solid rgba(52, 211, 153, 0.45);
}
.public-url-banner a { color: #6ee7b7; word-break: break-all; }
.public-url-test { font-size: 0.72rem; opacity: 0.9; }
.public-url-test a { color: #fde68a; }
.home-menu {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  padding: 6px 4px 10px;
  min-height: 0;
  justify-content: center;
}
.home-quick-label {
  margin: 0 4px 4px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(254, 243, 199, 0.88);
  text-align: center;
}
.home-recent-row {
  display: contents;
}
.home-recent-empty {
  margin: 0;
  grid-column: 1 / -1;
  width: 100%;
  text-align: center;
  font-size: 0.65rem;
  color: rgba(203, 213, 225, 0.7);
  padding: 6px 4px 2px;
  letter-spacing: 0.06em;
}
.home-recent-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 50px;
  padding: 6px 4px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.5), rgba(15, 23, 42, 0.55));
  color: #f8fafc;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 2px 8px rgba(2, 6, 23, 0.16);
}
.home-recent-btn:active { transform: scale(0.98); }
.home-recent-icon { font-size: 1.1rem; line-height: 1; }
.home-recent-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 140px;
}
.settings-public-url {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: rgba(6, 78, 59, 0.28);
}
.settings-public-url a { color: #6ee7b7; word-break: break-all; }
.home-entry-cluster {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  width: 100%;
  padding: 0 6px 4px;
  box-sizing: border-box;
}
.home-entry-cluster--1 {
  grid-template-columns: 1fr;
}
.home-entry-cluster--2 {
  grid-template-columns: 1fr 1fr;
}
.home-entry-cluster--3 {
  grid-template-columns: repeat(3, 1fr);
}
.home-entry-cluster .home-quick-row {
  display: contents;
}
.home-quick-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  width: 100%;
}
.home-quick-row--1 {
  grid-template-columns: 1fr;
}
.home-quick-row--2 {
  grid-template-columns: 1fr 1fr;
}
.home-quick-row--3 {
  grid-template-columns: repeat(3, 1fr);
}
.home-quick-btn--mj2 {
  border-color: rgba(167, 139, 250, 0.45);
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.18), 0 4px 14px rgba(2, 6, 23, 0.28);
}
@media (max-width: 340px) {
  .home-entry-cluster--3,
  .home-quick-row--3 {
    gap: 4px;
  }
  .home-quick-btn {
    min-height: 44px;
    padding: 5px 3px;
  }
  .home-quick-title { font-size: 0.78rem; }
}
.home-quick-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 48px;
  padding: 10px 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.55), rgba(30, 41, 59, 0.42));
  color: #f8fafc;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(2, 6, 23, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.home-quick-btn:active { transform: scale(0.98); }
.home-quick-btn--chess {
  border-color: rgba(251, 191, 36, 0.45);
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.18), 0 4px 14px rgba(2, 6, 23, 0.28);
}
.home-quick-btn--mj {
  border-color: rgba(248, 113, 113, 0.45);
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.18), 0 4px 14px rgba(2, 6, 23, 0.28);
}
.home-quick-icon { font-size: 1.05rem; line-height: 1; flex-shrink: 0; width: 1.2em; text-align: center; }
.home-quick-body { display: flex; flex-direction: column; gap: 0; min-width: 0; flex: 1; align-items: center; justify-content: center; }
.home-quick-title { font-size: 0.85rem; font-weight: 700; color: #fff; line-height: 1.25; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.home-quick-hint {
  display: none;
  font-size: 0.58rem;
  color: rgba(203, 213, 225, 0.75);
  line-height: 1.2;
}
/* 首页：菜单紧跟标题，不把中间撑成空白 */
#screen-home .page-inner--flat {
  position: relative;
  justify-content: flex-start;
  gap: 0;
}
.home-light-overlay { display: none !important; }
.menu-light-layer {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  overflow: visible;
  background: transparent;
}
.menu-light-canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: transparent;
}
#screen-home .home-menu .menu-row--lightrun {
  position: relative;
  isolation: isolate;
  overflow: visible;
  min-height: 76px;
  height: 76px;
  margin: 3px 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background-color: rgba(255, 255, 255, 0.06);
}
#screen-home .home-menu .menu-row--lightrun .menu-row-body,
#screen-home .home-menu .menu-row--lightrun .menu-row-icon,
#screen-home .home-menu .menu-row--lightrun .menu-row-arrow {
  position: relative;
  z-index: 3;
}
#screen-home .home-menu .menu-row--lightrun .menu-row-title--edge {
  position: relative;
  z-index: 3;
  display: inline-block;
  font-family: var(--font-hero);
  font-size: clamp(2.2rem, 10vw, 2.45rem) !important;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.1em;
  color: #f8fafc;
  -webkit-text-fill-color: currentColor;
  background: none;
  animation: none;
  -webkit-text-stroke: 0.35px rgba(255, 255, 255, 0.22);
  paint-order: stroke fill;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.28),
    0 1px 3px rgba(0, 0, 0, 0.45);
}
/* 五字菜单 · 字体内部电流（无正面激光线，字不动） */
#screen-home .home-menu .menu-row--lightrun .menu-title-spaced5 {
  font-size: clamp(1.55rem, 6.8vw, 1.85rem) !important;
  letter-spacing: 0.18em;
  white-space: nowrap;
}
#screen-home .home-menu .menu-row--lightrun .menu-title-electric {
  position: relative;
  display: inline-block;
  padding: 0;
  background: none;
  --ec: #4ade80;
  --ec-bright: #ffffff;
  --base-a: #ffffff;
  --base-b: #86efac;
  --base-glow: rgba(74, 222, 128, 0.7);
  --base-glow2: rgba(52, 211, 153, 0.35);
}
#screen-home .home-menu .menu-row--lightrun .menu-electric-core,
#screen-home .home-menu .menu-row--lightrun .menu-electric-flow {
  display: block;
  font: inherit;
  font-size: inherit;
  font-family: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  white-space: nowrap;
}
#screen-home .home-menu .menu-row--lightrun .menu-electric-core {
  position: relative;
  z-index: 1;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  background-image: linear-gradient(180deg, var(--base-a) 0%, var(--base-b) 100%);
  -webkit-text-stroke: 0.45px rgba(255, 255, 255, 0.35);
  paint-order: stroke fill;
  filter:
    drop-shadow(0 0 8px var(--base-glow))
    drop-shadow(0 0 16px var(--base-glow2));
}
#screen-home .home-menu .menu-row--lightrun .menu-electric-flow {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  pointer-events: none;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  background-image: linear-gradient(
    118deg,
    transparent 0%,
    transparent 18%,
    var(--ec) 22%,
    var(--ec-bright) 26%,
    var(--ec) 30%,
    transparent 34%,
    transparent 48%,
    var(--ec-bright) 52%,
    var(--ec) 54%,
    transparent 58%,
    transparent 72%,
    var(--ec) 76%,
    var(--ec-bright) 80%,
    var(--ec) 84%,
    transparent 88%,
    transparent 100%
  );
  background-size: 320% 320%;
  animation:
    menuElectricInside 2.8s linear infinite,
    menuElectricFlicker 0.12s steps(2, end) infinite;
  mix-blend-mode: screen;
  opacity: 0.92;
}
#screen-home .home-menu .menu-row--portal.menu-row--mj .menu-title-electric {
  --ec: #4ade80;
  --ec-bright: #ecfdf5;
  --base-a: #ffffff;
  --base-b: #86efac;
  --base-glow: rgba(74, 222, 128, 0.75);
  --base-glow2: rgba(52, 211, 153, 0.4);
}
#screen-home .home-menu .menu-row--portal.menu-row--chess .menu-title-electric {
  --ec: #fb923c;
  --ec-bright: #fff7ed;
  --base-a: #ffffff;
  --base-b: #fdba74;
  --base-glow: rgba(251, 146, 60, 0.75);
  --base-glow2: rgba(249, 115, 22, 0.38);
}
#screen-home .home-menu .menu-row--portal.menu-row--chess .menu-electric-flow {
  animation-delay: 0.7s, 0.35s;
}
#screen-home .home-menu .menu-row--portal.menu-row--cyan .menu-title-electric {
  --ec: #22d3ee;
  --ec-bright: #ecfeff;
  --base-a: #ffffff;
  --base-b: #67e8f9;
  --base-glow: rgba(34, 211, 238, 0.72);
  --base-glow2: rgba(6, 182, 212, 0.38);
}
#screen-home .home-menu .menu-row--portal.menu-row--cyan .menu-electric-flow {
  animation-delay: 1.4s, 0.7s;
}
#screen-home .home-menu .menu-row--portal.menu-row--slate .menu-title-electric {
  --ec: #94a3b8;
  --ec-bright: #f1f5f9;
  --base-a: #ffffff;
  --base-b: #cbd5e1;
  --base-glow: rgba(148, 163, 184, 0.7);
  --base-glow2: rgba(100, 116, 139, 0.35);
}
#screen-home .home-menu .menu-row--portal.menu-row--slate .menu-electric-flow {
  animation-delay: 2.1s, 1.05s;
}
@keyframes menuElectricInside {
  0% { background-position: 0% 40%; }
  25% { background-position: 50% 0%; }
  50% { background-position: 100% 50%; }
  75% { background-position: 50% 100%; }
  100% { background-position: 0% 40%; }
}
@keyframes menuElectricFlicker {
  0%, 100% { opacity: 0.88; }
  50% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  #screen-home .home-menu .menu-row--lightrun .menu-electric-flow {
    animation: none;
    opacity: 0.65;
    background-position: 50% 50%;
  }
}
#screen-home .home-menu .menu-row--portal.menu-row--mj .menu-row-title--edge.menu-title-electric,
#screen-home .home-menu .menu-row--portal.menu-row--chess .menu-row-title--edge.menu-title-electric,
#screen-home .home-menu .menu-row--portal.menu-row--cyan .menu-row-title--edge.menu-title-electric,
#screen-home .home-menu .menu-row--portal.menu-row--slate .menu-row-title--edge.menu-title-electric {
  text-shadow: none;
}
#screen-home .home-menu .menu-row--portal.menu-row--mj .menu-row-title--edge {
  color: #ecfdf5;
  text-shadow: 0 0 12px rgba(74, 222, 128, 0.42), 0 1px 3px rgba(0, 0, 0, 0.4);
}
#screen-home .home-menu .menu-row--portal.menu-row--chess .menu-row-title--edge {
  color: #fff7ed;
  text-shadow: 0 0 12px rgba(251, 146, 60, 0.4), 0 1px 3px rgba(0, 0, 0, 0.4);
}
#screen-home .home-menu .menu-row--portal.menu-row--cyan .menu-row-title--edge {
  color: #ecfeff;
  text-shadow: 0 0 12px rgba(34, 211, 238, 0.38), 0 1px 3px rgba(0, 0, 0, 0.4);
}
#screen-home .home-menu .menu-row--portal.menu-row--blue .menu-row-title--edge {
  color: #eff6ff;
  text-shadow: 0 0 12px rgba(96, 165, 250, 0.4), 0 1px 3px rgba(0, 0, 0, 0.4);
}
#screen-home .home-menu .menu-row--portal.menu-row--red .menu-row-title--edge {
  color: #fff1f2;
  text-shadow: 0 0 12px rgba(251, 113, 133, 0.38), 0 1px 3px rgba(0, 0, 0, 0.4);
}
#screen-home .home-menu .menu-row--portal.menu-row--slate .menu-row-title--edge {
  color: #f1f5f9;
  text-shadow: 0 0 12px rgba(148, 163, 184, 0.35), 0 1px 3px rgba(0, 0, 0, 0.4);
}
@media (prefers-reduced-motion: reduce) {
  .menu-light-layer { display: none; }
}
#screen-home .home-menu {
  position: relative;
  flex: 0 0 auto;
  justify-content: flex-start;
  width: 100%;
  max-width: 100%;
  margin-top: 8px;
  padding: 0 8px 12px;
  gap: 10px;
  box-sizing: border-box;
}
#screen-home .hero-brand--compact .brand-title-face {
  position: relative;
  z-index: 3;
}
#screen-home .home-menu .menu-row--lightrun .menu-row-hint {
  font-size: 0.66rem;
  line-height: 1.3;
  letter-spacing: 0.08em;
  position: relative;
  z-index: 3;
}
html.mobile-app #screen-home .home-menu {
  margin-top: 12px;
  gap: 12px;
  padding: 0 8px 6px;
}
#screen-home .home-menu .menu-row--portal {
  width: 100%;
  max-width: 100%;
  min-height: 58px;
  height: 58px;
  padding: 0 36px 0 12px;
  box-sizing: border-box;
  overflow: visible;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
#screen-home .home-menu .menu-row--lightrun .menu-row-body {
  overflow: visible;
}
#screen-home .home-menu .menu-row--portal .menu-row-body {
  min-height: 100%;
  justify-content: center;
  padding-left: 32px;
  box-sizing: border-box;
}
#screen-home .home-menu .menu-row--portal .menu-row-title {
  font-family: var(--font-hero);
  font-size: clamp(1.55rem, 7.2vw, 2rem) !important;
  line-height: 1.12;
}
#screen-home .home-menu .menu-row--portal.menu-row--mj .menu-row-title,
#screen-home .home-menu .menu-row--portal.menu-row--chess .menu-row-title,
#screen-home .home-menu .menu-row--portal.menu-row--cyan .menu-row-title {
  font-size: clamp(1.55rem, 7.2vw, 2rem) !important;
}
#screen-home .home-menu .menu-row--lightrun .menu-row-icon {
  font-size: 1.85rem;
}
#screen-home .home-menu .menu-row--portal .menu-row-hint {
  font-size: 0.6rem;
  line-height: 1.3;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#screen-home .home-menu .menu-row--portal .menu-row-icon {
  left: 12px;
  font-size: 1.65rem;
  width: 1.75rem;
}
#screen-home .home-menu .menu-row--portal .menu-row-arrow {
  right: 10px;
  font-size: 1.85rem;
}
#screen-home .home-menu .menu-row--portal .menu-row-hint,
#screen-home .home-quick-label,
#screen-home .home-recent-empty,
#screen-home .page-foot--flat,
#screen-home .home-status {
  display: none !important;
}
#screen-home .home-menu .menu-row--portal:not(:has(.menu-row-hint)) .menu-row-title::after {
  content: none;
  display: none;
}
#screen-home .home-menu .menu-row--portal.menu-row--mj,
#screen-home .home-menu .menu-row--portal.menu-row--chess,
#screen-home .home-menu .menu-row--portal.menu-row--cyan,
#screen-home .home-menu .menu-row--portal.menu-row--blue,
#screen-home .home-menu .menu-row--portal.menu-row--red,
#screen-home .home-menu .menu-row--portal.menu-row--slate {
  background-color: rgba(255, 255, 255, 0.07);
}
.home-section-label {
  text-align: center;
  font-size: 0.72rem;
  color: #fde68a;
  letter-spacing: 0.2em;
  margin: 4px 0 6px;
  font-weight: 700;
}
.home-gamble-portal {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.menu-row--portal {
  min-height: 66px;
  padding: 0 40px 0 12px;
  justify-content: flex-start;
  text-align: left;
}
.menu-row--portal .menu-row-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.55rem;
  line-height: 1;
  width: 1.6rem;
  text-align: center;
}
.menu-row--portal .menu-row-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-left: 30px;
}
.menu-row--portal .menu-row-title {
  font-size: 1.06rem;
}
.menu-row--portal.menu-row--red,
.menu-row--portal.menu-row--blue,
.menu-row--portal.menu-row--profile,
.menu-row--portal.menu-row--slate {
  min-height: 66px;
  height: 66px;
}
.menu-row--portal.menu-row--red .menu-row-title,
.menu-row--portal.menu-row--blue .menu-row-title,
.menu-row--portal.menu-row--profile .menu-row-title,
.menu-row--portal.menu-row--slate .menu-row-title {
  font-size: 1.05rem;
}
.menu-row-hint {
  display: block;
  font-size: 0.62rem;
  font-weight: 500;
  opacity: 0.75;
  letter-spacing: 0.06em;
  margin-top: 2px;
}
.gamble-link-all {
  display: block;
  width: 100%;
  margin: 0 0 10px;
  padding: 8px;
  border: none;
  background: transparent;
  color: #93c5fd;
  font-size: 0.75rem;
  text-decoration: underline;
  cursor: pointer;
}
html.mobile-app .home-menu {
  gap: 9px;
  padding: 4px 6px 8px;
}
.menu-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 72px;
  padding: 14px 44px 14px 14px;
  border-radius: 16px;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease, filter 0.15s ease;
}
.menu-row:active {
  transform: scale(0.98);
  filter: brightness(1.08);
}
.menu-row-title {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  -webkit-font-smoothing: antialiased;
}
.menu-row-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.15rem;
  font-weight: 400;
  line-height: 1;
  opacity: 0.72;
}
.menu-row--red {
  border: 1px solid rgba(251, 113, 133, 0.55);
  border-left: 4px solid #e11d48;
  background: linear-gradient(135deg, rgba(254, 205, 211, 0.52), rgba(251, 113, 133, 0.45));
  box-shadow: 0 4px 16px rgba(190, 60, 90, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.menu-row--red .menu-row-title {
  color: #7f1d1d;
  font-size: 1.44rem;
  letter-spacing: 0.12em;
  text-shadow:
    0 0 6px rgba(254, 202, 202, 0.95),
    0 0 14px rgba(251, 113, 133, 0.78),
    0 0 24px rgba(225, 29, 72, 0.48),
    0 1px 2px rgba(127, 29, 29, 0.35);
}
.menu-row--red .menu-row-arrow { color: #9f1239; }
.menu-row--gold {
  border: 1px solid rgba(251, 191, 36, 0.55);
  border-left: 4px solid #d97706;
  background: linear-gradient(135deg, rgba(253, 230, 138, 0.52), rgba(245, 158, 11, 0.45));
  box-shadow: 0 4px 16px rgba(217, 160, 40, 0.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.menu-row--gold .menu-row-title {
  color: #78350f;
  font-size: 1.4rem;
  text-shadow:
    0 0 6px rgba(253, 230, 138, 0.98),
    0 0 14px rgba(251, 191, 36, 0.82),
    0 0 24px rgba(217, 119, 6, 0.5),
    0 1px 2px rgba(120, 53, 15, 0.35);
}
.menu-row--gold .menu-row-arrow { color: #92400e; }
.menu-row--chess {
  border: 1px solid rgba(251, 191, 36, 0.55);
  border-left: 4px solid #d97706;
  background: linear-gradient(135deg, rgba(253, 230, 138, 0.52), rgba(245, 158, 11, 0.45));
  box-shadow: 0 4px 16px rgba(217, 160, 40, 0.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.menu-row--chess .menu-row-title {
  color: #78350f;
  font-size: 1.4rem;
  text-shadow:
    0 0 6px rgba(253, 230, 138, 0.98),
    0 0 14px rgba(251, 191, 36, 0.82),
    0 0 24px rgba(217, 119, 6, 0.5),
    0 1px 2px rgba(120, 53, 15, 0.35);
}
.menu-row--chess .menu-row-arrow { color: #92400e; }
.menu-row--live {
  border: 1px solid rgba(244, 114, 182, 0.55);
  border-left: 4px solid #db2777;
  background: linear-gradient(135deg, rgba(252, 231, 243, 0.52), rgba(244, 114, 182, 0.42));
  box-shadow: 0 4px 16px rgba(219, 39, 119, 0.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.menu-row--live .menu-row-title {
  color: #831843;
  font-size: 1.4rem;
  text-shadow:
    0 0 6px rgba(252, 231, 243, 0.98),
    0 0 14px rgba(244, 114, 182, 0.82),
    0 0 24px rgba(219, 39, 119, 0.48),
    0 1px 2px rgba(131, 24, 67, 0.35);
}
.menu-row--live .menu-row-arrow { color: #9d174d; }
.menu-row--dice28 {
  border: 1px solid rgba(167, 139, 250, 0.55);
  border-left: 4px solid #7c3aed;
  background: linear-gradient(135deg, rgba(221, 214, 254, 0.52), rgba(139, 92, 246, 0.42));
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.menu-row--dice28 .menu-row-title {
  color: #4c1d95;
  font-size: 1.32rem;
  text-shadow:
    0 0 6px rgba(221, 214, 254, 0.98),
    0 0 14px rgba(167, 139, 250, 0.82),
    0 0 24px rgba(124, 58, 237, 0.48),
    0 1px 2px rgba(76, 29, 149, 0.35);
}
.menu-row--dice28 .menu-row-arrow { color: #5b21b6; }
.menu-row--ccmj {
  border: 1px solid rgba(251, 191, 36, 0.6);
  border-left: 4px solid #eab308;
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.45), rgba(217, 119, 6, 0.38));
  box-shadow: 0 4px 18px rgba(234, 179, 8, 0.22);
  min-height: 68px;
  padding: 10px 44px 10px 12px;
  justify-content: flex-start;
  text-align: left;
}
.menu-row--ccmj .menu-row-title {
  color: #713f12;
  font-size: 1.05rem;
}
.menu-row--ccmj .menu-row-hint {
  display: block;
  font-size: 0.62rem;
  opacity: 0.85;
  margin-top: 2px;
}
.menu-row--ccmj .menu-row-arrow { color: #a16207; }
.menu-row-icon--cc {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
}
.menu-row--ccmj .menu-row-body {
  width: 100%;
  padding-left: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.gamble-cc-panel {
  border-color: rgba(251, 191, 36, 0.45);
  background: linear-gradient(180deg, rgba(30, 22, 8, 0.92), rgba(12, 10, 6, 0.88));
}
.gamble-cc-badge {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(234, 179, 8, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fde68a;
  font-size: 0.74rem;
  font-weight: 700;
  text-align: center;
}
.gamble-cc-h {
  margin: 0 0 8px;
  font-size: 0.82rem;
  color: #fcd34d;
  letter-spacing: 0.06em;
}
.gamble-cc-lead {
  margin: 0 0 10px;
  font-size: 0.76rem;
  color: #cbd5e1;
  line-height: 1.55;
}
.gamble-cc-lead strong { color: #fde68a; }
.gamble-cc-compare {
  width: 100%;
  margin: 0 0 12px;
  border-collapse: collapse;
  font-size: 0.68rem;
}
.gamble-cc-compare th,
.gamble-cc-compare td {
  border: 1px solid rgba(251, 191, 36, 0.25);
  padding: 6px 8px;
  text-align: left;
  vertical-align: top;
}
.gamble-cc-compare th {
  background: rgba(234, 179, 8, 0.12);
  color: #fcd34d;
}
.gamble-cc-compare td:first-child {
  color: #fde68a;
  font-weight: 700;
  white-space: nowrap;
}
.gamble-cc-note {
  margin: 0;
  font-size: 0.65rem;
  color: #94a3b8;
  line-height: 1.45;
}
.gamble-cc-rules,
.gamble-cc-steps {
  margin: 0 0 12px;
  padding-left: 1.1rem;
  font-size: 0.76rem;
  color: #e2e8f0;
  line-height: 1.55;
}
.gamble-cc-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.gamble-cc-dpao {
  margin: 0 0 14px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(251, 191, 36, 0.28);
  background: rgba(0, 0, 0, 0.22);
}
.gamble-cc-field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.72rem;
  color: #e2e8f0;
}
.gamble-cc-field span:first-child { grid-column: 1 / -1; color: #cbd5e1; }
.gamble-cc-field input[type="range"] { width: 100%; grid-column: 1; }
.gamble-cc-field output {
  font-weight: 700;
  color: #fde68a;
  font-size: 0.7rem;
  min-width: 3.2rem;
  text-align: right;
}
.gamble-cc-field select {
  grid-column: 1 / -1;
  width: 100%;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(15, 12, 8, 0.9);
  color: #fef3c7;
  font-size: 0.72rem;
}
.gamble-cc-check {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
}
.gamble-cc-check input { margin-top: 2px; }
.gamble-cc-dpao-out {
  margin: 10px 0 0;
  padding: 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(251, 191, 36, 0.2);
  font-size: 0.68rem;
  line-height: 1.5;
  color: #fde68a;
  white-space: pre-wrap;
  word-break: break-word;
}
.btn-gold-soft {
  background: linear-gradient(135deg, rgba(180, 83, 9, 0.9), rgba(217, 119, 6, 0.85));
  color: #fffbeb;
}
.gamble-cc-note--vision {
  margin: -4px 0 12px;
}
.gamble-cc-note--vision strong { color: #fde68a; }
.cc-mj-sheet {
  position: fixed;
  inset: 0;
  z-index: 9200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
}
.cc-mj-sheet[hidden] { display: none !important; }
.cc-mj-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}
.cc-mj-sheet-card {
  position: relative;
  width: min(100%, 480px);
  max-height: 88vh;
  overflow: auto;
  border-radius: 14px 14px 0 0;
  border: 1px solid rgba(251, 191, 36, 0.45);
  background: linear-gradient(180deg, #1a1408, #0c0a06);
  padding: 14px;
}
.cc-mj-sheet-title {
  margin: 0 0 6px;
  font-size: 0.95rem;
  color: #fde68a;
}
.cc-mj-sheet-lead {
  margin: 0 0 10px;
  font-size: 0.7rem;
  color: #94a3b8;
  line-height: 1.45;
}
.cc-mj-sheet-shot {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(251, 191, 36, 0.3);
  margin-bottom: 10px;
}
.cc-mj-sheet-sec h4 {
  margin: 0 0 6px;
  font-size: 0.74rem;
  color: #fcd34d;
}
.cc-mj-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.cc-mj-tile-btn {
  min-width: 2.6rem;
  padding: 6px 4px;
  border-radius: 8px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(0, 0, 0, 0.35);
  color: #fef3c7;
  font-size: 0.72rem;
  font-weight: 700;
}
.cc-mj-tile-btn.is-pao { border-color: #f87171; color: #fecaca; box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.35); }
.cc-mj-tile-btn.is-an { border-color: #4ade80; color: #bbf7d0; }
.cc-mj-river {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 10px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid rgba(251, 191, 36, 0.3);
  background: rgba(0, 0, 0, 0.35);
  color: #e2e8f0;
  font-size: 0.72rem;
  resize: vertical;
}
.cc-mj-sheet-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}
.cc-mj-result {
  margin: 0;
  padding: 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(251, 191, 36, 0.22);
  font-size: 0.68rem;
  line-height: 1.5;
  color: #fde68a;
  white-space: pre-wrap;
  word-break: break-word;
}
.cam-scan-hud--mj {
  bottom: 22%;
  padding: 0 16px;
  line-height: 1.45;
}
.gamble-chip--featured {
  border-color: rgba(251, 191, 36, 0.55);
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.25);
}
.menu-row--blue {
  border: 1px solid rgba(56, 189, 248, 0.55);
  border-left: 4px solid #0284c7;
  background: linear-gradient(135deg, rgba(186, 230, 253, 0.52), rgba(56, 189, 248, 0.45));
  box-shadow: 0 4px 16px rgba(56, 130, 210, 0.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.menu-row--blue .menu-row-title {
  color: #1e3a8a;
  font-size: 1.38rem;
  text-shadow:
    0 0 6px rgba(186, 230, 253, 0.98),
    0 0 14px rgba(56, 189, 248, 0.82),
    0 0 24px rgba(2, 132, 199, 0.5),
    0 1px 2px rgba(30, 58, 138, 0.35);
}
.menu-row--blue .menu-row-arrow { color: #1e40af; }
.menu-row--profile {
  border: 1px solid rgba(99, 102, 241, 0.55);
  border-left: 4px solid #4f46e5;
  background: linear-gradient(135deg, rgba(199, 210, 254, 0.5), rgba(99, 102, 241, 0.42));
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.menu-row--profile .menu-row-title {
  color: #312e81;
  font-size: 1.38rem;
  text-shadow:
    0 0 6px rgba(199, 210, 254, 0.98),
    0 0 14px rgba(129, 140, 248, 0.82),
    0 0 24px rgba(79, 70, 229, 0.5),
    0 1px 2px rgba(49, 46, 129, 0.35);
}
.menu-row--profile .menu-row-arrow { color: #3730a3; }
.menu-row--settings {
  border: 1px solid rgba(74, 222, 128, 0.55);
  border-left: 4px solid #16a34a;
  background: linear-gradient(135deg, rgba(187, 247, 208, 0.52), rgba(74, 222, 128, 0.45));
  box-shadow: 0 4px 16px rgba(22, 163, 74, 0.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.menu-row--settings .menu-row-title {
  color: #14532d;
  font-size: 1.38rem;
  text-shadow:
    0 0 6px rgba(187, 247, 208, 0.98),
    0 0 14px rgba(74, 222, 128, 0.85),
    0 0 24px rgba(34, 197, 94, 0.52),
    0 1px 2px rgba(20, 83, 45, 0.35);
}
.menu-row--settings .menu-row-arrow { color: #166534; }
.lobby-brand-line--page {
  margin-top: 20px;
  text-align: center;
}

/* 功能入口区：全屏铺开，无手机外框 */
.lobby-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  width: 100%;
  padding: 14px 12px 16px;
  background: linear-gradient(
    155deg,
    rgba(22, 78, 120, 0.78) 0%,
    rgba(52, 36, 98, 0.75) 48%,
    rgba(16, 95, 110, 0.78) 100%
  );
  border: 1px solid rgba(147, 197, 253, 0.42);
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(30, 64, 120, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.lobby-head {
  text-align: center;
  margin-bottom: 14px;
}
.lobby-brand-line {
  margin: 0 0 10px;
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  line-height: 1.5;
}
.lobby-brand-slogan {
  color: #fde68a;
  font-weight: 700;
  text-shadow: 0 0 12px rgba(253, 224, 138, 0.45);
}
.lobby-brand-sep {
  margin: 0 0.35em;
  color: rgba(186, 230, 253, 0.85);
}
.lobby-brand-platform {
  color: #bae6fd;
  font-weight: 600;
}
.btn-profile {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid rgba(147, 197, 253, 0.5);
  background: linear-gradient(135deg, rgba(37, 88, 150, 0.55), rgba(52, 36, 98, 0.5));
  color: #e0f2fe;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
}
.btn-profile:active { filter: brightness(1.12); }
.profile-card {
  background: rgba(12, 10, 22, 0.75);
  border: 1px solid rgba(147, 197, 253, 0.35);
  border-radius: 14px;
  padding: 18px 16px 20px;
  margin: 0 12px 16px;
  text-align: left;
}
.profile-head {
  text-align: center;
  margin-bottom: 14px;
}
.profile-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #cbd5e1;
  background: rgba(71, 85, 105, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.5);
}
.profile-badge--ok {
  color: #fef3c7;
  background: linear-gradient(135deg, rgba(22, 101, 52, 0.75), rgba(21, 128, 90, 0.7));
  border-color: rgba(74, 222, 128, 0.55);
  box-shadow: 0 0 14px rgba(74, 222, 128, 0.25);
}
.profile-section-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 900;
  color: #e0f2fe;
  margin: 0 0 12px;
  letter-spacing: 0.14em;
}
.profile-dl {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.profile-dl-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(147, 197, 253, 0.2);
}
.profile-dl dt {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.06em;
}
.profile-dl dd {
  margin: 0;
  text-align: right;
  font-size: 0.92rem;
  font-weight: 800;
  color: #fef3c7;
  line-height: 1.4;
}
.settings-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.settings-hub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.settings-hub-btn {
  width: 100%;
  min-height: 48px;
  padding: 12px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  line-height: 1.3;
}
.settings-hub-btn.is-active {
  border-color: rgba(56, 189, 248, 0.65);
  background: linear-gradient(135deg, rgba(12, 74, 110, 0.55), rgba(15, 23, 42, 0.72));
  color: #e0f2fe;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.25);
}
.settings-hub-panel[hidden],
.settings-panel[hidden] {
  display: none !important;
}
.settings-hub-panel {
  margin-top: 2px;
}
.settings-panel {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.55);
}
.settings-panel.settings-intro {
  padding: 0;
  border: none;
  background: transparent;
  margin-bottom: 0;
}
.settings-panel-note {
  margin: 12px 0 0;
  font-size: 0.76rem;
  color: #94a3b8;
  line-height: 1.55;
}
.camera-perm-box {
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: rgba(6, 78, 59, 0.22);
}
.camera-perm-status {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.45;
  color: #fde68a;
}
.camera-perm-status--ok { color: #6ee7b7; }
.camera-perm-status--err { color: #fca5a5; }
.camera-perm-status--wait { color: #7dd3fc; }
.camera-perm-warn {
  margin: 0 0 10px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(127, 29, 29, 0.35);
  border: 1px solid rgba(248, 113, 113, 0.45);
  font-size: 0.76rem;
  line-height: 1.5;
  color: #fecaca;
}
.camera-perm-btn {
  width: 100%;
  margin: 0 0 12px;
  font-size: 0.92rem;
  font-weight: 700;
}
.camera-perm-subtitle {
  margin: 10px 0 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #bae6fd;
}
.camera-perm-steps {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.76rem;
  line-height: 1.55;
  color: #cbd5e1;
}
.camera-perm-steps li { margin-bottom: 6px; }
.camera-perm-steps strong { color: #f8fafc; }
.camera-perm-steps--ios {
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  padding-top: 8px;
}
.settings-toggle--panel {
  margin: 0;
}
.profile-card--inline {
  margin: 0;
  border: none;
  background: transparent;
  padding: 0;
  box-shadow: none;
}
.op-log-list--compact {
  max-height: 280px;
  overflow-y: auto;
  margin-bottom: 10px;
}
.settings-item--ghost {
  margin-top: 4px;
  border-style: dashed;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  text-align: center;
}
.settings-intro {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.5);
  margin-bottom: 4px;
}
.settings-intro-title {
  margin: 0 0 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fde68a;
  letter-spacing: 0.08em;
}
.settings-intro-subtitle {
  margin: 12px 0 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #bae6fd;
}
.gamble-flow-hint {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.55;
  color: #94a3b8;
}
.settings-intro-text {
  margin: 0 0 8px;
  font-size: 0.78rem;
  line-height: 1.55;
  color: #cbd5e1;
}
.settings-intro-text strong { color: #e2e8f0; }
.settings-intro-tip {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(251, 191, 36, 0.45);
  background: rgba(120, 53, 15, 0.35);
  color: #fde68a;
  font-size: 0.78rem;
  line-height: 1.6;
}
.settings-intro-tip strong { color: #fef3c7; }
.settings-intro-allow {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.45);
  background: rgba(12, 74, 110, 0.4);
  color: #bae6fd;
  font-size: 0.78rem;
  line-height: 1.55;
}
.settings-intro-allow strong { color: #e0f2fe; }
.settings-intro-allow-list {
  margin: 8px 0 0;
  padding-left: 1.2em;
}
.settings-intro-allow-list li { margin-bottom: 6px; }
.settings-intro-sub {
  display: block;
  margin-top: 6px;
  color: #fcd34d;
  font-size: 0.72rem;
  opacity: 0.9;
}
.settings-guide-iphone {
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(248, 113, 113, 0.45);
  background: rgba(127, 29, 29, 0.35);
  color: #fecaca;
  font-size: 0.78rem;
  line-height: 1.6;
}
.settings-guide-iphone strong { color: #fef2f2; }
.settings-guide-allow {
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.45);
  background: rgba(12, 74, 110, 0.4);
  color: #bae6fd;
  font-size: 0.78rem;
  line-height: 1.6;
}
.settings-guide-allow strong { color: #e0f2fe; }
.settings-guide-allow ol {
  margin: 8px 0 0;
  padding-left: 1.2em;
}
.settings-guide-allow li { margin-bottom: 5px; }
.settings-guide-lead {
  margin: 0 0 6px;
  font-size: 0.78rem;
  color: #e2e8f0;
}
.settings-item {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.settings-item--install,
.settings-item#btnAddHome {
  border-color: rgba(74, 222, 128, 0.55);
  background: linear-gradient(135deg, rgba(22, 101, 52, 0.8), rgba(21, 128, 90, 0.75));
  color: #ecfdf5;
  text-align: center;
  font-size: 0.95rem;
  box-shadow: 0 4px 18px rgba(34, 197, 94, 0.28);
}
.settings-item--install:active,
.settings-item#btnAddHome:active {
  transform: scale(0.98);
}
.settings-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(251, 191, 36, 0.45);
  background: rgba(120, 53, 15, 0.35);
  color: #fde68a;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}
.settings-toggle input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.settings-guide {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.55);
  color: #cbd5e1;
  font-size: 0.78rem;
  line-height: 1.55;
}
.settings-guide strong { color: #fde68a; }
.settings-guide ol {
  margin: 8px 0 0;
  padding-left: 1.2em;
}
.settings-guide li { margin-bottom: 6px; }
.gamble-flow {
  margin-bottom: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(15, 23, 42, 0.45);
}
.gamble-flow-title {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fde68a;
  letter-spacing: 0.06em;
}
.gamble-flow-list {
  margin: 0;
  padding-left: 1.25em;
  color: #e2e8f0;
  font-size: 0.76rem;
  line-height: 1.55;
}
.gamble-flow-list li { margin-bottom: 5px; }
.gamble-flow-list li.done { color: #86efac; }
.gamble-flow-list--compact { font-size: 0.74rem; }
.gamble-flow-list strong { color: #fde68a; }
.install-sheet {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 12px calc(12px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}
.install-sheet.on {
  pointer-events: auto;
}
.install-sheet[hidden] {
  display: none !important;
}
.install-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.install-sheet.on .install-sheet-backdrop {
  opacity: 1;
}
.install-sheet-card {
  position: relative;
  width: min(100%, 400px);
  padding: 20px 18px 16px;
  border-radius: 18px 18px 14px 14px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: linear-gradient(180deg, rgba(24, 18, 8, 0.98), rgba(8, 6, 14, 0.98));
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.55);
  transform: translateY(110%);
  transition: transform 0.28s ease;
  text-align: center;
}
.install-sheet.on .install-sheet-card {
  transform: translateY(0);
}
.install-sheet-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  margin: 0 auto 10px;
  display: block;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}
.install-sheet-title {
  margin: 0 0 8px;
  font-size: 1.12rem;
  color: #fde68a;
  letter-spacing: 0.08em;
}
.install-sheet-msg {
  margin: 0 0 10px;
  font-size: 0.78rem;
  color: #cbd5e1;
  line-height: 1.5;
}
.install-sheet-steps {
  margin: 0 0 14px;
  padding: 0 0 0 1.1rem;
  text-align: left;
  font-size: 0.76rem;
  color: #a7f3d0;
  line-height: 1.55;
}
.install-sheet-steps li + li {
  margin-top: 4px;
}
.install-sheet-btn {
  display: block;
  width: 100%;
  margin: 0 0 8px;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}
.install-sheet-btn--primary {
  border-color: rgba(74, 222, 128, 0.55);
  background: linear-gradient(135deg, rgba(22, 101, 52, 0.95), rgba(21, 128, 90, 0.9));
  color: #ecfdf5;
  font-size: 0.95rem;
}
.install-sheet-close {
  display: block;
  width: 100%;
  padding: 10px;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 0.8rem;
  cursor: pointer;
}
.install-sheet-note {
  margin: 0 0 12px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.28);
  font-size: 0.72rem;
  color: #fde68a;
  line-height: 1.45;
  text-align: left;
}
.install-safari-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 12002;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  pointer-events: none;
}
.install-safari-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 28px 12px;
  background: rgba(28, 28, 30, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.install-safari-dim {
  color: rgba(255, 255, 255, 0.28);
  font-size: 1.1rem;
  letter-spacing: 0.2em;
}
.install-safari-share {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 18px;
  border: none;
  border-radius: 12px;
  background: rgba(10, 132, 255, 0.22);
  box-shadow:
    0 0 0 2px rgba(10, 132, 255, 0.85),
    0 0 24px rgba(10, 132, 255, 0.65);
  animation: install-share-pulse 1.1s ease-in-out infinite;
}
.install-safari-share-icon {
  font-size: 1.35rem;
  line-height: 1;
  color: #38bdf8;
  font-weight: 800;
}
.install-safari-share-label {
  font-size: 0.62rem;
  font-weight: 700;
  color: #e0f2fe;
  letter-spacing: 0.08em;
}
.install-safari-finger {
  text-align: center;
  padding: 6px 0 10px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #fef08a;
  text-shadow: 0 0 14px rgba(250, 204, 21, 0.85);
  animation: install-bounce 1.1s ease-in-out infinite;
}
@keyframes install-share-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 2px rgba(10, 132, 255, 0.85), 0 0 20px rgba(10, 132, 255, 0.5); }
  50% { transform: scale(1.06); box-shadow: 0 0 0 3px rgba(56, 189, 248, 1), 0 0 32px rgba(56, 189, 248, 0.85); }
}
@keyframes install-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.settings-item--danger {
  border-color: rgba(248, 113, 113, 0.45);
  color: #fecaca;
}
.install-hint--panel {
  display: none;
  font-size: 0.72rem;
  color: #a7f3d0;
  margin: 0 0 10px;
  line-height: 1.45;
  text-align: center;
}
.install-hint--panel.on {
  display: block;
}
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.feature-card {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 100px;
  padding: 20px 18px 20px 16px;
  border-radius: 16px;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease, filter 0.15s ease;
}
.feature-card:active {
  transform: scale(0.98);
  filter: brightness(1.08);
}
.feature-card--red {
  border: 1px solid rgba(251, 113, 133, 0.45);
  border-left: 4px solid #e11d48;
  background: linear-gradient(135deg, rgba(254, 205, 211, 0.3), rgba(251, 113, 133, 0.28));
  box-shadow: 0 4px 20px rgba(190, 60, 90, 0.2);
}
.feature-card--gold {
  border: 1px solid rgba(251, 191, 36, 0.45);
  border-left: 4px solid #d97706;
  background: linear-gradient(135deg, rgba(253, 230, 138, 0.3), rgba(245, 158, 11, 0.28));
  box-shadow: 0 4px 20px rgba(217, 160, 40, 0.18);
}
.feature-card--blue {
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-left: 4px solid #0284c7;
  background: linear-gradient(135deg, rgba(186, 230, 253, 0.3), rgba(56, 189, 248, 0.28));
  box-shadow: 0 4px 20px rgba(56, 130, 210, 0.2);
}
.feature-icon {
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.05rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.12);
}
.feature-card--red .feature-icon { background: rgba(254, 202, 202, 0.2); }
.feature-card--gold .feature-icon { background: rgba(253, 230, 138, 0.22); }
.feature-card--blue .feature-icon { background: rgba(191, 219, 254, 0.22); }
.feature-body { flex: 1; min-width: 0; }
.feature-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 0.1em;
  text-shadow: 0 1px 6px rgba(15, 40, 75, 0.45);
}
.feature-card--red .feature-title { color: #9f1239; }
.feature-card--gold .feature-title { color: #92400e; }
.feature-card--blue .feature-title { color: #1e40af; }
.feature-desc {
  display: block;
  font-size: 0.78rem;
  line-height: 1.45;
  text-shadow: none;
}
.feature-card--red .feature-desc { color: #be123c; }
.feature-card--gold .feature-desc { color: #b45309; }
.feature-card--blue .feature-desc { color: #1d4ed8; }
.feature-arrow {
  flex-shrink: 0;
  font-size: 1.5rem;
  font-weight: 300;
  color: rgba(30, 41, 59, 0.55);
  padding-left: 4px;
}

.screen-page {
  position: relative;
}
.sub-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 10px 0 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.sub-title {
  font-weight: 800;
  text-align: center;
  font-size: 1rem;
  padding: 0 118px;
  width: 100%;
  box-sizing: border-box;
}
.back {
  background: rgba(30, 80, 130, 0.65);
  border: none;
  color: var(--text);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
}
.back--top {
  position: absolute;
  top: max(4px, env(safe-area-inset-top, 0px));
  right: 0;
  z-index: 20;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  border-radius: 12px;
  border: 1px solid rgba(147, 197, 253, 0.65);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.92), rgba(29, 78, 216, 0.95));
  color: #fff;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.45);
}
.back--top:active {
  transform: scale(0.96);
  filter: brightness(1.1);
}
.back-img {
  padding: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  line-height: 0;
}
.back-img img {
  display: block;
  width: min(52vw, 220px);
  height: auto;
  min-height: 76px;
  max-height: 88px;
  object-fit: contain;
  object-position: right center;
  filter: drop-shadow(0 3px 12px rgba(0, 0, 0, 0.55));
}
.back--top.back-img {
  top: max(2px, env(safe-area-inset-top, 0px));
  right: -4px;
  padding: 6px 4px;
  min-width: 96px;
  min-height: 76px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
html.mobile-app .back-img img {
  width: min(54vw, 240px);
  min-height: 82px;
  max-height: 96px;
}
html.mobile-app .back--top.back-img {
  min-width: 104px;
  min-height: 82px;
  padding: 8px 2px;
}
.btn-img-ok {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 12px 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}
.btn-img-ok img {
  display: block;
  width: min(92%, 280px);
  height: auto;
  max-height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.35));
}
.btn-img-ok:active img {
  transform: scale(0.97);
}
.ad-btn.btn-img-ok {
  z-index: 1;
  background: transparent;
  padding: 8px 0;
}
.gamble-link-back.back-img {
  display: inline-flex;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 4px 0;
  margin: 8px 0;
}
.gamble-link-back.back-img img {
  width: min(48vw, 200px);
  min-height: 56px;
  max-height: 72px;
}

.zone-card {
  background: var(--card);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  margin-bottom: 12px;
}
.zone-intro { font-size: 0.78rem; color: var(--muted); margin-bottom: 12px; line-height: 1.5; }
label { display: block; font-size: 0.72rem; color: var(--muted); margin: 10px 0 4px; }
input, select, textarea {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #334155;
  background: rgba(8, 40, 75, 0.85);
  color: var(--text);
  font-size: 0.9rem;
}
textarea { min-height: 80px; resize: vertical; }
.btn-main {
  width: 100%;
  margin-top: 14px;
  padding: 15px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  letter-spacing: 0.03em;
}
.btn-red { background: linear-gradient(135deg, #dc2626, #991b1b); box-shadow: 0 4px 16px rgba(220,38,38,0.35); }
.btn-blue { background: linear-gradient(135deg, #2563eb, #1e3a8a); box-shadow: 0 4px 16px rgba(37,99,235,0.35); }

.timer-bar {
  display: none;
  text-align: center;
  padding: 10px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: linear-gradient(90deg, #7f1d1d, #b91c1c);
  font-weight: 700;
  font-size: 0.88rem;
  animation: pulse 1.2s infinite;
}
.timer-bar.on { display: block; }
@keyframes pulse { 50% { opacity: 0.75; } }

.gamble-hero {
  text-align: center;
  font-size: 0.74rem;
  color: #fde68a;
  margin: 0 0 10px;
  line-height: 1.45;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}
.gamble-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 6px;
}
.gamble-progress-track {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.85);
  overflow: hidden;
}
.gamble-progress-track i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #fbbf24, #ef4444);
  transition: width 0.08s linear;
}
.gamble-progress-pct {
  font-size: 0.72rem;
  font-weight: 700;
  color: #fde68a;
  min-width: 3.2em;
}
.gamble-msg {
  min-height: 2.6em;
  font-size: 0.76rem;
  line-height: 1.5;
  color: #94a3b8;
  margin: 4px 0 2px;
}
.gamble-msg.ok { color: #86efac; }
.gamble-msg.bad { color: #fca5a5; }
.gamble-formula-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.gamble-formula-actions .btn-main { margin: 0; }
.gamble-action-hub {
  border-left: 4px solid #38bdf8;
  background: linear-gradient(135deg, rgba(12, 30, 58, 0.72), rgba(8, 12, 24, 0.92));
}
.gamble-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.gamble-action-grid .btn-main {
  margin: 0;
  min-height: 48px;
  padding: 10px 8px;
  font-size: 0.78rem;
  line-height: 1.25;
}
.gamble-action-grid .btn-gamble-scan {
  grid-column: 1 / -1;
  min-height: 52px;
  font-size: 0.86rem;
}
.gamble-action-tip {
  margin: 10px 0 0;
  font-size: 0.68rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.45;
}
.gamble-action-hub .gamble-foot-note {
  margin-top: 6px;
}

.boot-splash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #0a0612;
  color: var(--text);
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.boot-splash.off {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.boot-splash-icon { border-radius: 16px; }
.boot-splash-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
}
.boot-splash-sub {
  font-size: 0.75rem;
  color: var(--muted);
}

.ocr-status-pill {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.62rem;
  letter-spacing: 0.02em;
  background: rgba(148, 163, 184, 0.18);
  color: var(--muted);
}
.ocr-status-pill.is-ready {
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
}
.ocr-status-pill.is-demo {
  background: rgba(234, 179, 8, 0.16);
  color: #fde68a;
}
.ocr-status-pill.is-off {
  background: rgba(248, 113, 113, 0.16);
  color: #fca5a5;
}

.ocr-pipeline-line {
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 8px;
  line-height: 1.45;
}

.board-action-btn--cam {
  border-color: rgba(56, 189, 248, 0.45);
  color: #7dd3fc;
}

.mobile-dock {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--phone-w);
  display: flex;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(10, 6, 18, 0) 0%, rgba(10, 6, 18, 0.92) 28%, rgba(10, 6, 18, 0.98) 100%);
  z-index: 120;
  box-sizing: border-box;
}
.mobile-dock-btn {
  flex: 1;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
}
.mobile-dock-btn--cam {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.14);
  color: #bae6fd;
}
.mobile-dock-btn--scan {
  border-color: rgba(232, 197, 71, 0.45);
  background: rgba(232, 197, 71, 0.12);
  color: #fde68a;
}
html.mobile-app #screen-gamble.screen.active .page-inner {
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}

.bjl-road-preview {
  margin: 10px 0 4px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(251, 191, 36, 0.45);
  animation: bjlRoadPop 0.45s ease-out;
}
.bjl-road-preview.is-pop { animation: bjlRoadPop 0.55s ease-out; }
@keyframes bjlRoadPop {
  0% { opacity: 0; transform: translateY(8px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.bjl-road-meta { font-size: 0.78rem; color: #fde68a; margin: 0 0 8px; }
.bjl-road-label { font-size: 0.72rem; color: #94a3b8; margin: 0 0 6px; }
.bjl-road-label--pop { color: #fbbf24; font-weight: 600; }
.bjl-road-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
}
.bjl-road-bead {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6em;
  height: 1.6em;
  padding: 0 4px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
}
.bjl-road-bead--B { background: #dc2626; }
.bjl-road-bead--P { background: #2563eb; }
.bjl-road-bead--T { background: #16a34a; }
.bjl-road-bead--future { opacity: 0.72; box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.5); }
.bjl-road-row--big { align-items: flex-start; gap: 3px; }
.bjl-bigroad-col {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
}
.bjl-bigroad-col .bjl-road-bead { min-width: 1.4em; height: 1.4em; font-size: 0.62rem; }
.zone-card--term { margin-bottom: 16px; }
.gamble-term {
  min-height: 140px;
  max-height: 38vh;
  overflow-y: auto;
  margin: 0 0 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(4, 12, 28, 0.92);
  border: 1px solid rgba(56, 189, 248, 0.35);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.68rem;
  line-height: 1.55;
  color: #a7f3d0;
  white-space: pre-wrap;
  word-break: break-word;
}
.gamble-foot-note {
  font-size: 0.65rem;
  color: var(--muted);
  text-align: center;
  margin: 8px 0 0;
  line-height: 1.4;
}

.gamble-pick-tip { margin-bottom: 10px; }
.gamble-cat-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}
.gamble-cat-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.gamble-cat-bar .gamble-link-back {
  margin: 0;
  flex-shrink: 0;
}
.gamble-cat-active {
  flex: 1;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fde68a;
  letter-spacing: 0.06em;
}
.menu-row--mj {
  border: 1px solid rgba(74, 222, 128, 0.55);
  border-left: 4px solid #16a34a;
  background: linear-gradient(135deg, rgba(187, 247, 208, 0.48), rgba(34, 197, 94, 0.38));
  box-shadow: 0 4px 16px rgba(22, 163, 74, 0.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.menu-row--mj .menu-row-title {
  color: #14532d;
  font-size: 1.4rem;
  text-shadow:
    0 0 6px rgba(187, 247, 208, 0.98),
    0 0 14px rgba(74, 222, 128, 0.82),
    0 0 24px rgba(22, 163, 74, 0.48),
    0 1px 2px rgba(20, 83, 45, 0.35);
}
.menu-row--mj .menu-row-arrow { color: #15803d; }
.menu-row--cyan {
  border: 1px solid rgba(34, 211, 238, 0.55);
  border-left: 4px solid #0891b2;
  background: linear-gradient(135deg, rgba(165, 243, 252, 0.52), rgba(34, 211, 238, 0.38));
  box-shadow: 0 4px 16px rgba(8, 145, 178, 0.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.menu-row--cyan .menu-row-title {
  color: #155e75;
  font-size: 1.32rem;
  text-shadow:
    0 0 6px rgba(165, 243, 252, 0.98),
    0 0 14px rgba(34, 211, 238, 0.82),
    0 0 24px rgba(8, 145, 178, 0.48),
    0 1px 2px rgba(21, 94, 117, 0.35);
}
.menu-row--cyan .menu-row-arrow { color: #0e7490; }
.menu-row--slate {
  border: 1px solid rgba(148, 163, 184, 0.55);
  border-left: 4px solid #64748b;
  background: linear-gradient(135deg, rgba(226, 232, 240, 0.48), rgba(100, 116, 139, 0.38));
  box-shadow: 0 4px 16px rgba(71, 85, 105, 0.2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.menu-row--slate .menu-row-title {
  color: #334155;
  font-size: 1.08rem;
  text-shadow:
    0 0 6px rgba(226, 232, 240, 0.95),
    0 0 14px rgba(148, 163, 184, 0.75),
    0 1px 2px rgba(51, 65, 85, 0.35);
}
.menu-row--slate .menu-row-arrow { color: #475569; }
.menu-row--electronic {
  border: 1px solid rgba(167, 139, 250, 0.55);
  border-left: 4px solid #7c3aed;
  background: linear-gradient(135deg, rgba(221, 214, 254, 0.52), rgba(139, 92, 246, 0.42));
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.menu-row--electronic .menu-row-title {
  color: #4c1d95;
  font-size: 1.32rem;
  text-shadow:
    0 0 6px rgba(221, 214, 254, 0.98),
    0 0 14px rgba(167, 139, 250, 0.82),
    0 0 24px rgba(124, 58, 237, 0.48),
    0 1px 2px rgba(76, 29, 149, 0.35);
}
.menu-row--electronic .menu-row-arrow { color: #5b21b6; }
.gamble-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}
.gamble-grid--sub {
  grid-template-columns: 1fr;
}
.gamble-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 12px 10px;
  border-radius: 14px;
  border: 1px solid rgba(251, 191, 36, 0.45);
  background: linear-gradient(145deg, rgba(253, 230, 138, 0.22), rgba(120, 53, 15, 0.35));
  color: #fef3c7;
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.1s ease, filter 0.12s ease;
}
.gamble-chip:active {
  transform: scale(0.97);
  filter: brightness(1.08);
}
.gamble-chip--sub {
  border-color: rgba(56, 189, 248, 0.45);
  background: linear-gradient(145deg, rgba(186, 230, 253, 0.2), rgba(30, 58, 138, 0.35));
  color: #e0f2fe;
}
.gamble-chip-icon { font-size: 1.35rem; line-height: 1; }
.gamble-chip-name {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.gamble-chip-deck {
  font-size: 0.62rem;
  color: rgba(254, 243, 199, 0.75);
  line-height: 1.35;
}
.gamble-chip--sub .gamble-chip-deck { color: rgba(186, 230, 253, 0.85); }
.gamble-chip-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.5;
  font-size: 1.1rem;
}
.gamble-chip.has-subs { position: relative; padding-right: 28px; }
.gamble-sub {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
}
.gamble-sub-head {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fde68a;
  margin-bottom: 8px;
}
.gamble-link-back {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  border: none;
  background: transparent;
  color: #7dd3fc;
  font-size: 0.8rem;
  cursor: pointer;
}
.gamble-selected-bar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(120, 53, 15, 0.45);
  border: 1px solid rgba(251, 191, 36, 0.4);
}
.gamble-selected-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}
.gamble-selected-bar .ocr-status-pill {
  align-self: flex-start;
  margin-top: 0;
}
.gamble-selected-k {
  display: block;
  font-size: 0.62rem;
  color: rgba(254, 243, 199, 0.7);
}
.gamble-selected-text strong {
  display: block;
  font-size: 0.95rem;
  color: #fde68a;
  margin-top: 2px;
}
.gamble-selected-deck {
  display: block;
  font-size: 0.65rem;
  color: rgba(254, 243, 199, 0.65);
  margin-top: 2px;
}
.gamble-reselect {
  flex-shrink: 0;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(15, 23, 42, 0.6);
  color: #fff;
  font-size: 0.72rem;
  cursor: pointer;
}
.gamble-chip-hot {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.58rem;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(220, 38, 38, 0.85);
  color: #fff;
  font-weight: 700;
}
.gamble-intel-card {
  border-color: rgba(251, 191, 36, 0.35);
}
.gamble-intel-body {
  max-height: 42vh;
  overflow-y: auto;
}
.gamble-intel-sec {
  margin-bottom: 12px;
}
.gamble-intel-sec h4 {
  font-size: 0.78rem;
  color: #fde68a;
  margin-bottom: 6px;
  font-weight: 800;
}
.gamble-intel-sec p {
  font-size: 0.74rem;
  line-height: 1.55;
  color: #e2e8f0;
}
.gamble-intel-sec--warn h4 { color: #fca5a5; }
.gamble-intel-sec--warn p { color: #fecaca; }
.gamble-intel-cases {
  margin: 0;
  padding-left: 1.1em;
  font-size: 0.72rem;
  line-height: 1.55;
  color: #cbd5e1;
}
.gamble-intel-cases li { margin-bottom: 10px; }
.gamble-intel-disclaimer {
  font-size: 0.62rem;
  color: var(--muted);
  margin-top: 8px;
}

.list-tip {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.5;
  padding: 0 2px;
}
.choice-list { display: flex; flex-direction: column; gap: 10px; }
.choice-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.choice-card:active { background: rgba(25, 70, 120, 0.95); border-color: #3b82f6; }
.choice-card .c-icon { font-size: 1.5rem; flex-shrink: 0; }
.choice-card .c-body { flex: 1; min-width: 0; }
.choice-card .c-title { font-size: 0.95rem; font-weight: 700; display: block; }
.choice-card .c-desc { font-size: 0.72rem; color: var(--muted); margin-top: 4px; display: block; line-height: 1.4; }
.choice-card .c-go { color: #60a5fa; font-size: 0.85rem; flex-shrink: 0; align-self: center; }

.detail-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  line-height: 1.65;
  font-size: 0.88rem;
}
.detail-box h3 {
  font-size: 0.78rem;
  color: #60a5fa;
  margin: 16px 0 8px;
  padding-bottom: 4px;
  border-bottom: 1px dashed var(--line);
}
.detail-box h3:first-child { margin-top: 0; }
.detail-box p { color: #cbd5e1; margin-bottom: 8px; }
.detail-box .tag {
  display: inline-block;
  font-size: 0.68rem;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(239,68,68,0.15);
  color: #fca5a5;
  margin: 0 6px 8px 0;
}
.detail-box .tag--sub {
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
}
.detail-box .detail-list {
  margin: 0 0 12px;
  padding-left: 1.15rem;
  color: #cbd5e1;
}
.detail-box .detail-list li { margin-bottom: 6px; }
.detail-box .save-list li { color: #a7f3d0; }
.detail-box .case-block {
  background: rgba(15, 40, 70, 0.55);
  border-left: 3px solid rgba(96, 165, 250, 0.6);
  padding: 10px 12px;
  border-radius: 0 10px 10px 0;
  margin-bottom: 12px;
}
.detail-box .case-title {
  font-weight: 700;
  color: #e2e8f0;
  margin: 0 0 6px;
}
.detail-box .case-loss {
  font-size: 0.8rem;
  color: #fca5a5;
  margin: 8px 0 0;
}
.detail-box .law-note {
  font-size: 0.8rem;
  color: #94a3b8;
  font-style: italic;
}
.fraud-intro-box {
  background: rgba(8, 42, 78, 0.94);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 0.8rem;
  line-height: 1.65;
  color: #cbd5e1;
  margin-bottom: 14px;
}
.fraud-hotline {
  text-align: center;
  font-size: 0.72rem;
  color: #7dd3fc;
  margin: 16px 0 8px;
  line-height: 1.5;
}

.report-box {
  background: rgba(8, 42, 78, 0.92);
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 14px;
  padding: 14px;
  font-size: 0.85rem;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 70vh;
  overflow-y: auto;
}
.report-box .block { margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.report-box .block:last-child { border-bottom: none; }
.report-box .bt { color: #6ab2f2; font-weight: 700; margin-bottom: 6px; }

.off-banner {
  display: none;
  margin-bottom: 12px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255,193,7,0.12);
  border: 1px solid #ffc107;
  color: #ffd54f;
  font-size: 0.82rem;
  text-align: center;
}
.off-banner.on { display: block; }

.announce-banner {
  display: none;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #bae6fd;
  font-size: 0.82rem;
  line-height: 1.5;
}
.announce-banner.on { display: block; }

.toast-receipt {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 9500;
  max-width: 480px;
  margin: 0 auto;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(15, 35, 65, 0.96);
  border: 1px solid rgba(56, 189, 248, 0.55);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  font-size: 0.8rem;
  line-height: 1.55;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
  pointer-events: none;
}
.toast-receipt.on {
  transform: translateY(0);
  opacity: 1;
}
.toast-receipt.fail {
  border-color: rgba(248, 113, 113, 0.6);
  background: rgba(55, 18, 28, 0.96);
}
.toast-receipt .tr-title { font-weight: 700; color: #e2e8f0; margin-bottom: 4px; }
.toast-receipt .tr-meta { color: #94a3b8; font-size: 0.72rem; }

.op-log-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
  max-height: 65vh;
  overflow-y: auto;
}
.op-log-item {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 0.8rem;
  line-height: 1.5;
}
.op-log-item.ok { border-left: 3px solid #4ade80; }
.op-log-item.fail { border-left: 3px solid #f87171; }
.op-log-item .ol-time { color: var(--muted); font-size: 0.7rem; }
.op-log-item .ol-kind { font-weight: 700; color: #93c5fd; }
.op-log-empty { color: var(--muted); text-align: center; padding: 24px 8px; font-size: 0.85rem; }

#lock {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(5, 12, 28, 0.92);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lock-close {
  position: absolute;
  top: max(10px, env(safe-area-inset-top));
  right: max(10px, env(safe-area-inset-right));
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  color: #e2e8f0;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.lock-close:active {
  transform: scale(0.94);
  background: rgba(30, 41, 59, 0.95);
}
#lock.on { display: flex; }
.lock-tag { color: #ef4444; font-size: 0.75rem; margin-bottom: 12px; }
.skull { font-size: 4rem; margin: 8px 0; }
.flash-alarm { animation: alarm 0.5s infinite; }
@keyframes alarm { 50% { transform: scale(1.15); filter: hue-rotate(90deg); } }
.matrix {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  font-family: monospace;
  font-size: 10px;
  color: #0f0;
  overflow: hidden;
  pointer-events: none;
  line-height: 1.2;
  word-break: break-all;
}
#lock.judge-face { background: rgba(0, 0, 0, 0.88); }
#lock.judge-face .matrix { opacity: 0.06; }
.lock-alarm { font-size: 3.5rem; margin: 6px 0; display: none; }
#lock.judge-face .lock-alarm { display: none; }
.lock-face-hole {
  position: relative;
  width: min(88vw, 360px);
  height: min(88vw, 360px);
  margin: 8px auto;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #ef4444;
  box-shadow: 0 0 28px rgba(239, 68, 68, 0.55);
  z-index: 2;
}
.lock-face-hole video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}
.lock-fx-judge {
  display: flex;
  gap: 18px;
  justify-content: center;
  font-size: 2.6rem;
  margin: 6px 0;
  z-index: 2;
}
.lock-fx-judge span { animation: alarm 0.45s infinite alternate; }
.lock-fx-judge span:nth-child(2) { animation-delay: 0.18s; }
#lock.judge-face #lockIcon { display: none; }
#lock.judge-face .lock-tag { color: #fca5a5; }

.cam-layer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 8500;
  background: #0a0612;
}
.cam-layer.on { display: flex; flex-direction: column; }
.cam-layer.on.cam-split-mode .cam-split { display: flex; }
.cam-layer.on.cam-split-mode .cam-face { display: none !important; }
.cam-split {
  display: none;
  flex-direction: column;
  width: 100%;
  height: 100%;
  height: 100dvh;
  min-height: 0;
}
.cam-split-top {
  flex: 0 0 50%;
  max-height: 50%;
  position: relative;
  overflow: hidden;
  background: #000;
  border-bottom: 2px solid rgba(251, 191, 36, 0.55);
  box-shadow: 0 4px 24px rgba(251, 191, 36, 0.12);
}
/* 隐藏本机画面预览 · 摄像头后台仍拍摄 */
.cam-split.cam-preview-hidden .cam-split-top video,
.cam-split.cam-preview-hidden .cam-scan {
  opacity: 0 !important;
  pointer-events: none;
}
.cam-split.cam-preview-hidden .cam-stealth-plate {
  display: flex;
}
.cam-stealth-plate {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(180deg, #0a0612 0%, #120a1e 100%);
  text-align: center;
  padding: 16px;
}
.cam-stealth-title {
  font-size: 1rem;
  font-weight: 800;
  color: #fde68a;
  letter-spacing: 0.06em;
}
.cam-stealth-sub {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.5;
  max-width: 280px;
}
.cam-preview-toggle {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fde68a;
  font-size: 0.58rem;
  font-weight: 700;
  white-space: nowrap;
}
.cam-preview-toggle[aria-pressed="false"] {
  color: #86efac;
  border-color: rgba(74, 222, 128, 0.45);
  background: rgba(74, 222, 128, 0.12);
}
.cam-preview-toggle:active {
  transform: scale(0.97);
}
.cam-split-top video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 1;
}
.cam-split-top #vBack.cam-off { display: none; }
.cam-split-bottom {
  flex: 0 0 50%;
  max-height: 50%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, rgba(99, 102, 241, 0.18), transparent 55%),
    linear-gradient(180deg, #0f0a1a 0%, #080510 48%, #030208 100%);
}
.cam-premium-bar {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 6px 8px;
  padding: 10px 12px 8px;
  border-bottom: 1px solid rgba(251, 191, 36, 0.22);
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.08), transparent 60%);
}
.cam-premium-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(253, 230, 138, 0.9);
  white-space: nowrap;
}
.cam-premium-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  animation: camLivePulse 1.2s ease-in-out infinite;
}
@keyframes camLivePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}
.cam-premium-game {
  min-width: 0;
  font-size: 0.78rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}
.cam-premium-live {
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #0f172a;
  padding: 3px 8px;
  border-radius: 4px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
}
.cam-dual-ai-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.cam-ai-block {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid rgba(56, 189, 248, 0.12);
}
.cam-ai-block--cheat {
  flex: 1.05;
  background: linear-gradient(180deg, rgba(69, 10, 10, 0.42) 0%, rgba(12, 10, 20, 0.25) 100%);
  border-left: 3px solid rgba(248, 113, 113, 0.5);
}
.cam-ai-block--pattern {
  flex: 0.95;
  background: linear-gradient(180deg, rgba(6, 50, 38, 0.42) 0%, rgba(12, 10, 20, 0.2) 100%);
  border-left: 3px solid rgba(74, 222, 128, 0.45);
}
.cam-ai-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 4px;
  flex-wrap: wrap;
}
.cam-ai-tag {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 3px 7px;
  border-radius: 999px;
  color: #0f172a;
}
.cam-ai-tag--cheat {
  background: linear-gradient(135deg, #fca5a5, #ef4444);
}
.cam-ai-tag--pattern {
  background: linear-gradient(135deg, #86efac, #22c55e);
}
.cam-ai-head strong {
  font-size: 0.72rem;
  color: #e2e8f0;
  font-weight: 700;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cam-ai-badge {
  font-size: 0.58rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.cam-ai-badge--cheat {
  color: #fecaca;
  background: rgba(127, 29, 29, 0.85);
  border: 1px solid rgba(248, 113, 113, 0.45);
}
.cam-ai-badge--pattern {
  color: #bbf7d0;
  background: rgba(20, 83, 45, 0.75);
  border: 1px solid rgba(74, 222, 128, 0.4);
}
.cam-ai-log {
  flex: 1;
  min-height: 0;
  margin: 0 10px 6px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.5);
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.6rem;
  line-height: 1.42;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  white-space: pre-wrap;
  word-break: break-word;
}
.cam-ai-block--cheat .cam-ai-log {
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.22);
}
.cam-ai-block--pattern .cam-ai-log {
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.2);
}
.cam-scan {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  pointer-events: none;
}
.cam-scan.on { display: block; }
.cam-scan-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(34, 211, 238, 0.16) 2px, transparent 2px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.16) 2px, transparent 2px);
  background-size: 26px 26px;
  animation: camGridMove 1.1s linear infinite;
}
@keyframes camGridMove {
  0% { transform: perspective(380px) rotateX(56deg) translateY(0); }
  100% { transform: perspective(380px) rotateX(56deg) translateY(26px); }
}
.cam-scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #22d3ee, #a78bfa, transparent);
  animation: camScanY 2.6s ease-in-out infinite;
}
@keyframes camScanY {
  0% { top: 8%; }
  50% { top: 88%; }
  100% { top: 8%; }
}
.cam-scan-hud {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  text-align: center;
  color: #67e8f9;
  font-size: 0.72rem;
  font-weight: 700;
  text-shadow: 0 0 10px #0ea5e9;
  padding: 0 10px;
  z-index: 3;
}
.cam-toolbar {
  display: none;
  flex-shrink: 0;
  padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px));
  gap: 8px;
  flex-direction: column;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.45));
  border-top: 1px solid rgba(251, 191, 36, 0.15);
}
.cam-toolbar.on { display: flex; }
.cam-btn {
  width: 100%;
  padding: 12px 10px;
  border-radius: 12px;
  border: none;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.cam-btn--primary {
  color: #1c1917;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 45%, #d97706 100%);
  box-shadow: 0 4px 20px rgba(251, 191, 36, 0.35);
}
.cam-btn--scan {
  color: #ecfdf5;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
}
.cam-btn--ghost {
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.35);
}
.gamble-cam-card {
  border-left: 4px solid #f59e0b;
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.55), rgba(12, 10, 22, 0.88));
}
.gamble-cam-tip {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 10px;
}
.gamble-cam-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.btn-cam-cheat {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #fff;
  box-shadow: 0 4px 18px rgba(239, 68, 68, 0.35);
}
.btn-cam-pattern {
  background: linear-gradient(135deg, #22c55e, #15803d);
  color: #fff;
  box-shadow: 0 4px 18px rgba(34, 197, 94, 0.32);
}
.cam-layer.cam-mode-cheat .cam-ai-block--pattern {
  display: none;
}
.cam-layer.cam-mode-pattern .cam-ai-block--cheat {
  display: none;
}
.cam-layer.cam-mode-cheat .cam-ai-block--cheat,
.cam-layer.cam-mode-pattern .cam-ai-block--pattern {
  flex: 1 1 auto;
  min-height: 0;
}
.cam-layer.cam-mode-cheat .cam-ai-log,
.cam-layer.cam-mode-pattern .cam-ai-log {
  font-size: 0.66rem;
  max-height: none;
}
.cam-black {
  position: absolute;
  inset: 0;
  background: #000;
  z-index: 4;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cam-black.on { opacity: 1; pointer-events: auto; }
.cam-layer.on.cam-split-mode .cam-black {
  top: 50%;
  bottom: 0;
}
.cam-layer.on:not(.cam-split-mode) .cam-split { display: none !important; }
.cam-face {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 5;
}
.cam-face.on { display: flex; }
.cam-face video {
  width: min(90vw, 400px);
  height: min(90vw, 400px);
  max-height: 70vh;
  border-radius: 50%;
  border: 4px solid #f87171;
  transform: scaleX(-1);
  object-fit: cover;
  object-position: center center;
  box-shadow: 0 0 36px rgba(248, 113, 113, 0.5);
}
#vLockFace {
  object-position: center center;
}
.cam-face.force video {
  width: min(94vw, 440px);
  height: min(94vw, 440px);
}
.cam-face-skel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 6;
}
.cam-fx-row {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  font-size: 2.4rem;
  z-index: 7;
}
.cam-fx-row span { animation: alarm 0.5s infinite alternate; }
.cam-face-warn {
  color: #fecaca;
  font-weight: 800;
  margin-top: 10px;
  text-align: center;
  padding: 0 14px;
  font-size: 0.86rem;
  z-index: 7;
}
.btn-rear-cam {
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: #1c1917;
  margin-top: 6px;
  box-shadow: 0 4px 18px rgba(251, 191, 36, 0.35);
}
.btn-front-cam {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  font-size: 0.88rem;
  padding: 12px;
}
#lockText {
  color: #f87171;
  text-align: center;
  font-size: 0.85rem;
  max-width: 320px;
  line-height: 1.5;
  margin: 10px 0;
  z-index: 1;
}
.ad-btn {
  z-index: 1;
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}

#adminPanel {
  display: none;
  position: fixed;
  bottom: 12px;
  left: 12px;
  right: 12px;
  max-width: 400px;
  margin: 0 auto;
  z-index: 9500;
  background: #1e293b;
  padding: 12px;
  border-radius: 12px;
  font-size: 0.8rem;
}

/* 斗地主牌桌底板 */
.ddz-board-card {
  border-left: 4px solid #22c55e;
  overflow: hidden;
}
.ddz-table {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 200px;
  border: 1px solid rgba(34, 197, 94, 0.35);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.35);
}
.ddz-table-felt {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% 40%, rgba(34, 197, 94, 0.35), rgba(6, 78, 59, 0.85) 70%),
    linear-gradient(180deg, #14532d 0%, #052e16 100%);
}
.ddz-table-inner {
  position: relative;
  z-index: 1;
  padding: 14px 12px 12px;
}
.ddz-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

/* ── 识牌页 / 摄像头 / 斗地主：加大字号（手机阅读） ── */
html.mobile-app #screen-gamble .zone-intro,
html.mobile-app #screen-gamble .gamble-flow-hint,
html.mobile-app #screen-gamble .gamble-action-tip,
html.mobile-app #screen-gamble .gamble-foot-note {
  font-size: 0.95rem;
  line-height: 1.55;
}
html.mobile-app #screen-gamble .gamble-action-grid .btn-main {
  font-size: 1rem;
  padding: 14px 12px;
}
html.mobile-app #screen-gamble .gamble-term {
  font-size: 0.88rem;
  line-height: 1.5;
}
html.mobile-app #screen-gamble .board-action-btn {
  font-size: 0.95rem;
  padding: 10px 16px;
}
.ddz-scenario-title {
  margin: -4px 0 10px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fde68a;
  text-align: center;
  letter-spacing: 0.04em;
}
.ddz-empty-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 800;
  color: #bbf7d0;
  background: rgba(6, 78, 59, 0.55);
  border: 1px dashed rgba(74, 222, 128, 0.45);
}
.ddz-row-label {
  flex-shrink: 0;
  width: 64px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #bbf7d0;
  letter-spacing: 0.06em;
}
.ddz-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  flex: 1;
  min-width: 0;
}
.ddz-cards--fan .ddz-card {
  transform: rotate(-2deg);
}
.ddz-cards--fan .ddz-card:nth-child(even) { transform: rotate(1deg); }
.ddz-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 48px;
  padding: 0 7px;
  border-radius: 7px;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  background: linear-gradient(180deg, #fff 0%, #e2e8f0 100%);
  border: 1px solid rgba(15, 23, 42, 0.2);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.ddz-card--red { color: #b91c1c; }
.ddz-card--joker {
  background: linear-gradient(180deg, #fde68a, #f59e0b);
  color: #78350f;
  min-width: 40px;
}
.ddz-role-badge,
.ddz-rate,
.ddz-src-badge {
  font-size: 0.92rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
}
.ddz-role-badge {
  color: #ecfdf5;
  background: rgba(15, 118, 110, 0.85);
  border: 1px solid rgba(45, 212, 191, 0.45);
}
.ddz-rate {
  color: #fecaca;
  background: rgba(127, 29, 29, 0.75);
  border: 1px solid rgba(248, 113, 113, 0.4);
}
.ddz-src-badge {
  color: #dbeafe;
  background: rgba(30, 64, 175, 0.72);
  border: 1px solid rgba(96, 165, 250, 0.45);
}
.ddz-board-note {
  margin: 10px 0 0;
  font-size: 0.95rem;
  color: rgba(253, 230, 138, 0.95);
  text-align: center;
  line-height: 1.5;
}
.ddz-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 12px 68px;
}
.cam-main-hint {
  flex-shrink: 0;
  margin: 0;
  padding: 10px 12px 6px;
  text-align: center;
  color: #fde68a;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.45;
  text-shadow: 0 0 12px rgba(251, 191, 36, 0.45);
}
.cam-premium-brand {
  font-size: 0.78rem;
}
.cam-premium-game {
  font-size: 0.98rem;
}
.cam-premium-live {
  font-size: 0.72rem;
  padding: 4px 10px;
}
.cam-ai-tag {
  font-size: 0.78rem;
  padding: 4px 9px;
}
.cam-ai-head strong {
  font-size: 0.98rem;
}
.cam-ai-badge {
  font-size: 0.82rem;
  padding: 4px 10px;
}
.cam-ai-log {
  font-size: 0.92rem;
  line-height: 1.55;
  padding: 10px 12px;
}
.cam-scan-hud {
  font-size: 1rem;
}
.cam-btn {
  font-size: 1.05rem;
  padding: 14px 12px;
}
.cam-layer.cam-mode-cheat .cam-ai-log,
.cam-layer.cam-mode-pattern .cam-ai-log {
  font-size: 0.92rem;
}
.cam-layer--ddz .cam-scan-hud {
  color: #fde68a;
  text-shadow: 0 0 12px rgba(251, 191, 36, 0.8);
}

/* 麻将牌桌底板 */
.mj-board-card {
  border-left: 4px solid #22c55e;
  overflow: hidden;
}
.mj-table {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(34, 197, 94, 0.35);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.35);
}
.mj-table-felt {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% 40%, rgba(34, 197, 94, 0.32), rgba(6, 78, 59, 0.88) 70%),
    linear-gradient(180deg, #14532d 0%, #052e16 100%);
}
.mj-table-inner {
  position: relative;
  z-index: 1;
  padding: 14px 12px 12px;
}
.mj-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 8px;
}
.mj-head strong {
  font-size: 0.95rem;
  color: #ecfdf5;
}
.mj-subtitle {
  font-size: 0.68rem;
  color: rgba(187, 247, 208, 0.85);
}
.mj-rule-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.mj-chip {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  color: #052e16;
  background: linear-gradient(135deg, #bbf7d0, #86efac);
}
.mj-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
}
.mj-row-label {
  flex-shrink: 0;
  width: 36px;
  font-size: 0.65rem;
  font-weight: 700;
  color: #bbf7d0;
  padding-top: 8px;
}
.mj-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  flex: 1;
}
.mj-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 40px;
  padding: 0 4px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #0f172a;
  background: linear-gradient(180deg, #fff 0%, #e2e8f0 100%);
  border: 1px solid rgba(15, 23, 42, 0.18);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.22);
}
.mj-tile--sm {
  min-width: 26px;
  height: 34px;
  font-size: 0.64rem;
  opacity: 0.92;
}
.mj-tile--red { color: #b91c1c; }
.mj-tile--hot {
  box-shadow: 0 0 0 2px #ef4444, 0 2px 8px rgba(239, 68, 68, 0.45);
}
.mj-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 10px 44px;
}
.mj-badge {
  font-size: 0.64rem;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 999px;
  color: #ecfdf5;
  background: rgba(15, 118, 110, 0.85);
  border: 1px solid rgba(45, 212, 191, 0.4);
}
.mj-badge--warn {
  color: #fef3c7;
  background: rgba(146, 64, 14, 0.75);
  border-color: rgba(251, 191, 36, 0.4);
}
.mj-badge--risk {
  color: #fecaca;
  background: rgba(127, 29, 29, 0.75);
  border-color: rgba(248, 113, 113, 0.4);
}
.mj-badge--src {
  color: #dbeafe;
  background: rgba(30, 64, 175, 0.72);
  border-color: rgba(96, 165, 250, 0.45);
}
.mj-discard-tip {
  margin: 0 0 6px 44px;
  font-size: 0.68rem;
  line-height: 1.45;
  color: #fde68a;
}
.mj-board-note {
  margin: 6px 0 0;
  font-size: 0.64rem;
  color: rgba(203, 213, 225, 0.85);
  text-align: center;
}
.gamble-pipeline-card {
  border-left: 4px solid #38bdf8;
  background: linear-gradient(135deg, rgba(12, 74, 110, 0.45), rgba(15, 23, 42, 0.72));
}
.gamble-pipeline-title {
  margin: 0 0 6px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #bae6fd;
}
.gamble-pipeline-body {
  margin: 0 0 8px;
  font-size: 0.68rem;
  line-height: 1.5;
  color: rgba(226, 232, 240, 0.9);
}
.gamble-pipeline-steps {
  margin: 0;
  padding-left: 18px;
  font-size: 0.66rem;
  line-height: 1.55;
  color: #e0f2fe;
}
.gamble-pipeline-steps li { margin-bottom: 4px; }
.board-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 8px 0 4px;
}
.board-action-btn {
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.65);
  color: #e2e8f0;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.board-action-btn:active {
  transform: scale(0.98);
}
.settings-ocr-box {
  margin: 10px 0 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: rgba(6, 78, 59, 0.35);
}
.settings-ocr-title {
  margin: 0 0 6px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #a7f3d0;
}
.settings-ocr-body {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.92);
  white-space: pre-wrap;
}
.cam-layer--mj .cam-scan-hud {
  color: #86efac;
  text-shadow: 0 0 12px rgba(34, 197, 94, 0.7);
}
#adminPanel.on { display: block; }
#adminPanel label { display: inline-block; margin-right: 10px; }
