/* ===================================================================
       3D 展廳極致美學：宮廷沉浸式懸浮玻璃擬態 (Palace Glassmorphism Dock)
       =================================================================== */
    body.view-3d-body {
      margin: 0;
      padding: 0;
      overflow: hidden;
      width: 100vw;
      height: 100vh;
      background-color: #120e0c;
      user-select: none;
      font-family: var(--font-serif, "Noto Serif TC", serif);
    }

    #webgl-canvas-container {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 1;
      touch-action: none;
    }

    /* 頂部單列懸浮導覽列 (Single-Line Palace Ribbon) */
    .tour-header-bar {
      position: absolute;
      top: 14px;
      left: 16px;
      right: 16px;
      z-index: 80;
      display: flex;
      justify-content: space-between;
      align-items: center;
      pointer-events: none;
      gap: 12px;
    }

    .tour-header-bar > * {
      pointer-events: auto;
    }

    .tour-left-dock {
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }

    .tour-right-dock {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      position: relative;
    }

    /* 左側品牌徽章膠囊 */
    .tour-brand-badge {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      background: rgba(22, 18, 15, 0.88);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
      border: 1px solid rgba(223, 186, 104, 0.45);
      padding: 6px 14px;
      box-shadow: 0 8px 28px rgba(0,0,0,0.55);
      border-radius: 30px;
      white-space: nowrap;
    }

    .tour-brand-title {
      font-size: 0.86rem;
      font-weight: 900;
      color: var(--c-gold-light, #f5e4bd);
      letter-spacing: 0.06em;
      white-space: nowrap;
    }

    .tour-brand-sub {
      font-size: 0.70rem;
      color: rgba(238, 234, 226, 0.65);
      letter-spacing: 0.02em;
      white-space: nowrap;
    }

    /* 📱 / 💻 頂部功能工具列收合按鈕 (Header Ribbon Toggle Button - 統一置於右上角) */
    .tour-drawer-toggle-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: rgba(22, 18, 15, 0.88);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
      border: 1.5px solid var(--c-gold, #dfba68);
      color: var(--c-gold-light, #f5e4bd);
      padding: 6px 14px;
      border-radius: 30px;
      font-size: 0.80rem;
      font-weight: 700;
      font-family: inherit;
      cursor: pointer;
      box-shadow: 0 6px 22px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.12);
      transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
      touch-action: manipulation;
      white-space: nowrap;
      user-select: none;
    }

    .tour-drawer-toggle-btn:hover {
      background: linear-gradient(135deg, rgba(223, 186, 104, 0.35), rgba(184, 51, 42, 0.25));
      border-color: #dfba68;
      color: #fff;
      transform: translateY(-1px);
      box-shadow: 0 8px 26px rgba(0,0,0,0.65), 0 0 12px rgba(223, 186, 104, 0.4);
    }

    .tour-drawer-toggle-btn.is-active {
      background: linear-gradient(135deg, rgba(223, 186, 104, 0.32), rgba(30, 22, 18, 0.95));
      border-color: #dfba68;
      color: #fff5e0;
      box-shadow: 0 0 16px rgba(223, 186, 104, 0.4);
    }

    .tour-drawer-toggle-btn .drawer-arrow {
      font-size: 0.68rem;
      transition: transform 0.25s ease;
      color: var(--c-gold);
    }

    /* 統一由右側滑出的操作工具抽屜選單 (Right Side Drawer for Desktop & Mobile) */
    .tour-actions-group {
      position: absolute;
      top: 48px;
      right: 0;
      left: auto;
      display: flex;
      flex-direction: column;
      align-items: stretch;
      gap: 6px;
      background: rgba(18, 14, 12, 0.95);
      backdrop-filter: blur(24px);
      -webkit-backdrop-filter: blur(24px);
      border: 1.5px solid rgba(223, 186, 104, 0.45);
      border-radius: 14px;
      padding: 10px 8px;
      width: 220px;
      max-width: calc(100vw - 32px);
      max-height: calc(100vh - 100px);
      overflow-y: auto;
      transform: translateX(150%);
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.3s ease;
      z-index: 100;
      box-shadow: 0 18px 48px rgba(0,0,0,0.85), inset 0 1px 0 rgba(255,255,255,0.08);
    }

    .tour-actions-group.is-open {
      transform: translateX(0);
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
    }

    .tour-actions-group .tour-btn {
      width: 100%;
      padding: 8px 12px;
      font-size: 0.80rem;
      border-radius: 8px;
      justify-content: flex-start;
      gap: 6px;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    @media (max-height: 580px) {
      .tour-actions-group {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 288px;
        gap: 5px;
        padding: 8px;
        max-height: calc(100vh - 64px);
      }
      .tour-actions-group .tour-btn {
        padding: 6px 9px;
        font-size: 0.74rem;
      }
    }

    /* 💎 宮廷頂級微雕按鈕 (Palace Refined Tool Buttons) */
    .tour-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: rgba(26, 20, 17, 0.85);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border: 1px solid rgba(223, 186, 104, 0.28);
      color: #e8ded2;
      padding: 6px 13px;
      font-size: 0.78rem;
      font-weight: 600;
      font-family: inherit;
      cursor: pointer;
      transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
      letter-spacing: 0.04em;
      white-space: nowrap;
      border-radius: 22px;
      touch-action: manipulation;
      user-select: none;
      -webkit-tap-highlight-color: transparent;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    }

    .tour-btn:hover {
      background: rgba(45, 34, 27, 0.95);
      color: #fff9ee;
      border-color: rgba(223, 186, 104, 0.6);
      transform: translateY(-1.5px);
      box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), 0 0 10px rgba(223, 186, 104, 0.25);
    }

    .tour-btn:active {
      transform: translateY(0) scale(0.96);
    }

    /* 啟用/高亮狀態：溫潤金箔微光 + 翡翠玉石指示燈 */
    .tour-btn.is-active {
      background: linear-gradient(135deg, rgba(223, 186, 104, 0.32) 0%, rgba(184, 134, 40, 0.22) 100%);
      border: 1px solid rgba(223, 186, 104, 0.75);
      color: #fff6e0;
      font-weight: 700;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45), 0 0 12px rgba(223, 186, 104, 0.35);
    }

    .btn-status-dot {
      display: inline-block;
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: rgba(223, 186, 104, 0.35);
      transition: all 0.25s ease;
    }

    .tour-btn.is-active .btn-status-dot {
      background: #4ade80;
      box-shadow: 0 0 8px #4ade80;
    }

    /* 朱砂御印返回首頁按鈕 */
    .tour-btn-vermilion {
      background: linear-gradient(135deg, rgba(184, 51, 42, 0.92) 0%, rgba(142, 34, 26, 0.95) 100%);
      border: 1px solid rgba(223, 186, 104, 0.55);
      color: #fff;
      padding: 6px 14px;
      box-shadow: 0 4px 14px rgba(184, 51, 42, 0.4);
    }

    .tour-btn-vermilion:hover {
      background: linear-gradient(135deg, #c4382e 0%, #a1271e 100%);
      color: #fff;
      border-color: #dfba68;
      box-shadow: 0 6px 20px rgba(184, 51, 42, 0.6), 0 0 10px rgba(223, 186, 104, 0.35);
    }

    /* 右上角 2D 展場小地圖卡片 (Palace Sleek Glass Card - 支援選單避讓與自適應佈局) */
    .tour-minimap-card {
      position: absolute;
      top: 62px;
      right: 16px;
      z-index: 85;
      width: 220px;
      background: rgba(18, 14, 12, 0.94);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border: 1.5px solid rgba(223, 186, 104, 0.45);
      box-shadow: 0 16px 40px rgba(0,0,0,0.75), inset 0 1px 0 rgba(255,255,255,0.06);
      padding: 8px 10px;
      display: flex;
      flex-direction: column;
      gap: 6px;
      border-radius: 12px;
      transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), right 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.3s ease;
    }

    /* 當右上角抽屜選單展開時，小地圖平滑向左避讓，並列呈現完全不遮擋 */
    body.drawer-open .tour-minimap-card,
    body:has(#tourActionsGroup.is-open) .tour-minimap-card {
      right: 248px;
    }

    @media (max-height: 580px) {
      body.drawer-open .tour-minimap-card,
      body:has(#tourActionsGroup.is-open) .tour-minimap-card {
        right: 312px;
      }
    }

    /* 當展品解說面板開啟時，自動避讓並淡出小地圖與搖桿，避免視覺疊壓 */
    body:has(#inspectPanel.active) .tour-minimap-card {
      opacity: 0;
      pointer-events: none;
      transform: translateX(60px);
    }

    @media (max-width: 900px) {
      body:has(#inspectPanel.active) #mobile3DControls,
      body:has(#inspectPanel.active) #ghostReactionDock,
      body:has(#inspectPanel.active) .tour-viewpoint-dock {
        opacity: 0 !important;
        pointer-events: none !important;
      }
    }

    /* 🧭 底部中央 10 大展區瞬移導覽列 (Viewpoint Quick-Jump Dock) */
    .tour-viewpoint-dock {
      position: fixed;
      bottom: 14px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 82;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      background: rgba(18, 14, 12, 0.90);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
      border: 1.5px solid rgba(223, 186, 104, 0.45);
      border-radius: 30px;
      padding: 5px 8px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
      max-width: calc(100vw - 32px);
      overflow-x: auto;
      scrollbar-width: none;
      user-select: none;
      transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease, left 0.3s ease;
    }

    .tour-viewpoint-dock.is-hidden {
      opacity: 0 !important;
      visibility: hidden !important;
      pointer-events: none !important;
      transform: translateX(-50%) translateY(45px) !important;
    }

    /* 當左下角虛擬搖桿開啟時，導覽列自動向右避開搖桿與升降鈕 */
    body:has(#mobile3DControls:not(.is-hidden)) .tour-viewpoint-dock {
      left: 196px;
      right: 12px;
      transform: none;
      width: fit-content;
      max-width: calc(100vw - 208px);
      margin: 0 auto;
    }

    body:has(#mobile3DControls:not(.is-hidden)) .tour-viewpoint-dock.is-hidden {
      transform: translateY(45px) !important;
    }

    .tour-viewpoint-dock::-webkit-scrollbar {
      display: none;
    }

    .viewpoint-pill-btn {
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(223, 186, 104, 0.25);
      color: #e8ded2;
      padding: 5px 11px;
      border-radius: 20px;
      font-size: 0.76rem;
      font-weight: 700;
      font-family: inherit;
      cursor: pointer;
      white-space: nowrap;
      transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
      letter-spacing: 0.03em;
    }

    .viewpoint-pill-btn:hover {
      background: rgba(223, 186, 104, 0.25);
      border-color: #dfba68;
      color: #fff;
      transform: translateY(-1px);
    }

    .viewpoint-pill-btn.is-active {
      background: linear-gradient(135deg, rgba(184, 51, 42, 0.9), rgba(142, 34, 26, 0.95));
      border-color: #dfba68;
      color: #fff;
      box-shadow: 0 2px 10px rgba(184, 51, 42, 0.5);
    }

    @media (max-width: 900px) {
      .tour-viewpoint-dock {
        bottom: 10px;
        padding: 4px 6px;
        gap: 3px;
      }
      .viewpoint-pill-btn {
        padding: 4px 8px;
        font-size: 0.70rem;
      }
    }

    @media (max-width: 600px) and (orientation: portrait) {
      .tour-viewpoint-dock,
      body:has(#mobile3DControls:not(.is-hidden)) .tour-viewpoint-dock {
        top: 52px;
        bottom: auto;
        left: 10px;
        right: auto;
        transform: none;
        max-width: calc(100vw - 178px);
      }
      .tour-viewpoint-dock.is-hidden,
      body:has(#mobile3DControls:not(.is-hidden)) .tour-viewpoint-dock.is-hidden {
        transform: translateY(-45px) !important;
      }
    }

    .tour-minimap-card.is-collapsed {
      transform: translateX(260px);
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
    }

    .minimap-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 8px;
      border-bottom: 1px solid rgba(223, 186, 104, 0.25);
      padding-bottom: 6px;
      margin-bottom: 2px;
      white-space: nowrap;
    }

    .minimap-title-wrap {
      display: flex;
      align-items: center;
      gap: 6px;
      min-width: 0;
      flex: 1;
      white-space: nowrap;
    }

    .minimap-title {
      font-size: 0.76rem;
      font-weight: 800;
      color: var(--c-gold-light, #f5e4bd);
      letter-spacing: 0.05em;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .minimap-tag {
      font-size: 0.56rem;
      color: #dfba68;
      background: rgba(223, 186, 104, 0.12);
      padding: 1px 4px;
      border-radius: 3px;
      border: 1px solid rgba(223, 186, 104, 0.25);
      white-space: nowrap;
      font-family: inherit;
    }

    /* 💎 頂級精緻圓形關閉按鈕 (Perfect Centering, No Overflow) */
    .panel-close-btn {
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid rgba(223, 186, 104, 0.35);
      color: #dfd7cc;
      cursor: pointer;
      font-size: 0.72rem;
      line-height: 1;
      width: 22px;
      height: 22px;
      min-width: 22px;
      min-height: 22px;
      max-width: 22px;
      max-height: 22px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
      touch-action: manipulation;
      user-select: none;
      -webkit-tap-highlight-color: transparent;
      padding: 0;
      margin: 0;
      flex-shrink: 0;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    }

    .panel-close-btn:hover, .panel-close-btn:active {
      background: #b8332a;
      color: #ffffff;
      border-color: #dfba68;
      transform: scale(1.1);
      box-shadow: 0 0 10px rgba(184, 51, 42, 0.6);
    }

    #minimapCanvas {
      width: 198px;
      height: 150px;
      background: #191411;
      border: 1px solid rgba(223, 186, 104, 0.25);
      display: block;
      border-radius: 8px;
      box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.6);
    }

    /* 左下角操作導引卡片 (優雅浮層 Popover - 智慧避讓搖桿) */
    .tour-controls-tip {
      position: absolute;
      bottom: 24px;
      left: 24px;
      z-index: 45;
      max-width: 320px;
      max-height: calc(100vh - 250px);
      overflow-y: auto;
      background: rgba(18, 14, 12, 0.94);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border: 1.5px solid rgba(223, 186, 104, 0.45);
      padding: 12px 16px;
      color: #dfd7cc;
      font-size: 0.74rem;
      line-height: 1.7;
      border-radius: 12px;
      box-shadow: 0 16px 40px rgba(0,0,0,0.75), inset 0 1px 0 rgba(255,255,255,0.06);
      transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), bottom 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.3s ease;
    }

    /* 當左下角虛擬搖桿群組開啟時，操作說明面板自動優雅避讓，浮動於搖桿上方 */
    body:has(#mobile3DControls:not(.is-hidden)) #controlsTipCard,
    body.has-joystick-open #controlsTipCard {
      bottom: 216px;
    }

    .tour-controls-tip.is-hidden {
      transform: translateY(30px) scale(0.95);
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
    }

    .controls-tip-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: 1px solid rgba(223, 186, 104, 0.25);
      padding-bottom: 6px;
      margin-bottom: 8px;
      color: var(--c-gold-light, #f5e4bd);
      font-weight: 800;
      font-size: 0.80rem;
    }

    .tour-controls-tip kbd {
      background: linear-gradient(180deg, #3d342d 0%, #241d18 100%);
      border: 1px solid rgba(223, 186, 104, 0.45);
      color: #fff9ee;
      padding: 1px 6px;
      font-size: 0.68rem;
      border-radius: 4px;
      font-family: inherit;
      font-weight: 700;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.15);
    }

    .controls-tip-section {
      margin-bottom: 8px;
      padding-bottom: 6px;
      border-bottom: 1px dashed rgba(223, 186, 104, 0.22);
    }
    .controls-tip-section:last-child {
      margin-bottom: 0;
      padding-bottom: 0;
      border-bottom: none;
    }
    .controls-section-title {
      font-size: 0.72rem;
      font-weight: 800;
      color: var(--c-gold-light, #f5e4bd);
      margin-bottom: 4px;
      letter-spacing: 0.04em;
    }
    .controls-grid {
      display: flex;
      flex-direction: column;
      gap: 3.5px;
      font-size: 0.73rem;
      color: #dfd7cc;
    }

    /* 奢華故宮宮廷風 3D 載入中遮罩 (最頂層優先顯示，進站即見載入進度) */
    .tour-loading-screen {
      position: absolute;
      inset: 0;
      z-index: 100002;
      background: radial-gradient(ellipse at 50% 45%, #251d18 0%, #120e0c 60%, #080605 100%);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), transform 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s ease;
    }

    /* 背景流動金塵光暈與迴紋邊界 */
    .tour-loading-screen::before {
      content: '';
      position: absolute;
      inset: 20px;
      border: 1px solid rgba(223, 186, 104, 0.22);
      border-radius: 8px;
      pointer-events: none;
      box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.6);
    }

    .tour-loading-screen::after {
      content: '';
      position: absolute;
      inset: 28px;
      border: 1px dashed rgba(223, 186, 104, 0.12);
      border-radius: 6px;
      pointer-events: none;
    }

    .tour-loading-screen.is-loaded {
      opacity: 0;
      transform: scale(1.05);
      visibility: hidden;
      pointer-events: none;
    }

    /* 中央玉璧金環旋儀 */
    .loading-emblem-wrap {
      position: relative;
      width: 140px;
      height: 140px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 28px;
    }

    .emblem-ring-outer {
      position: absolute;
      inset: 0;
      border: 2px solid transparent;
      border-top-color: rgba(223, 186, 104, 0.85);
      border-bottom-color: rgba(201, 147, 59, 0.6);
      border-radius: 50%;
      animation: emblemRotate 8s linear infinite;
      box-shadow: 0 0 25px rgba(223, 186, 104, 0.2);
    }

    .emblem-ring-mid {
      position: absolute;
      inset: 14px;
      border: 1.5px dashed rgba(223, 186, 104, 0.45);
      border-radius: 50%;
      animation: emblemRotateReverse 12s linear infinite;
    }

    .emblem-ring-glow {
      position: absolute;
      inset: 28px;
      border: 1px solid rgba(223, 186, 104, 0.3);
      border-radius: 50%;
      background: radial-gradient(circle, rgba(223, 186, 104, 0.15) 0%, rgba(184, 51, 42, 0.08) 70%, transparent 100%);
      animation: emblemPulse 2.5s ease-in-out infinite alternate;
    }

    .emblem-core-seal {
      position: relative;
      z-index: 2;
      width: 46px;
      height: 46px;
      background: linear-gradient(135deg, #a62a22 0%, #7d1c16 100%);
      border: 1.5px solid #dfba68;
      border-radius: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #f7eed8;
      font-size: 1.15rem;
      font-weight: 900;
      font-family: var(--f-serif);
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), 0 0 14px rgba(223, 186, 104, 0.3);
      text-shadow: 0 1px 2px rgba(0,0,0,0.5);
      letter-spacing: 0.05em;
    }

    @keyframes emblemRotate {
      from { transform: rotate(0deg); }
      to { transform: rotate(360deg); }
    }

    @keyframes emblemRotateReverse {
      from { transform: rotate(360deg); }
      to { transform: rotate(0deg); }
    }

    @keyframes emblemPulse {
      0% { transform: scale(0.92); opacity: 0.6; box-shadow: 0 0 10px rgba(223, 186, 104, 0.1); }
      100% { transform: scale(1.08); opacity: 1; box-shadow: 0 0 30px rgba(223, 186, 104, 0.4); }
    }

    /* 展覽主題文字 */
    .loading-header-block {
      text-align: center;
      max-width: 90vw;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
    }

    .loading-tag {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 3px 14px;
      background: rgba(223, 186, 104, 0.1);
      border: 1px solid rgba(223, 186, 104, 0.3);
      border-radius: 999px;
      color: var(--c-gold);
      font-size: 0.72rem;
      letter-spacing: 0.22em;
      font-family: var(--f-serif);
    }

    .loading-title {
      font-size: clamp(1.4rem, 3.2vw, 1.9rem);
      font-weight: 900;
      font-family: var(--f-serif);
      background: linear-gradient(135deg, #fff8eb 0%, #f0d593 45%, #dfba68 75%, #b98431 100%);
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      letter-spacing: 0.2em;
      margin: 4px 0 2px 0;
      filter: drop-shadow(0 2px 10px rgba(0,0,0,0.5));
    }

    .loading-sub {
      font-size: 0.88rem;
      color: rgba(240, 230, 218, 0.75);
      letter-spacing: 0.12em;
      margin: 0;
      font-family: var(--f-sans);
    }

    /* 流光進度條 */
    .loading-progress-wrapper {
      width: clamp(260px, 40vw, 360px);
      margin-top: 22px;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .loading-bar-track {
      width: 100%;
      height: 4px;
      background: rgba(255, 255, 255, 0.08);
      border-radius: 4px;
      overflow: hidden;
      position: relative;
      border: 1px solid rgba(223, 186, 104, 0.15);
    }

    .loading-bar-fill {
      height: 100%;
      width: 15%;
      background: linear-gradient(90deg, #b8332a 0%, #dfba68 60%, #fff2cf 100%);
      border-radius: 4px;
      transition: width 0.35s cubic-bezier(0.2, 0.8, 0.4, 1);
      box-shadow: 0 0 12px rgba(223, 186, 104, 0.6);
      position: relative;
    }

    .loading-bar-fill::after {
      content: '';
      position: absolute;
      top: 0;
      right: 0;
      bottom: 0;
      width: 20px;
      background: linear-gradient(90deg, transparent, #ffffff);
      filter: blur(2px);
      animation: progressGlow 1.2s infinite;
    }

    @keyframes progressGlow {
      0%, 100% { opacity: 0.3; }
      50% { opacity: 1; }
    }

    .loading-status-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.76rem;
      color: var(--c-gold-light);
      letter-spacing: 0.08em;
    }

    .loading-dynamic-hint {
      color: rgba(240, 230, 218, 0.65);
      font-style: italic;
    }

    /* 點選展品浮出資訊面板 (宮廷暗調玻璃擬態 - 固定畫面正中央，四周留有適當邊距) */
    .exhibit-inspect-panel {
      position: fixed;
      top: 50%;
      left: 50%;
      right: auto;
      bottom: auto;
      transform: translate(-50%, -50%) scale(0.92);
      width: min(840px, calc(100vw - 36px));
      max-width: 840px;
      height: min(86vh, calc(100dvh - 36px));
      max-height: calc(100dvh - 36px);
      background: rgba(20, 15, 12, 0.96);
      backdrop-filter: blur(24px);
      -webkit-backdrop-filter: blur(24px);
      border: 1.5px solid rgba(223, 186, 104, 0.55);
      border-radius: 12px;
      box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.65), 0 24px 60px rgba(0,0,0,0.9), inset 0 1px 0 rgba(255,255,255,0.08);
      padding: clamp(12px, 2vw, 18px);
      box-sizing: border-box;
      z-index: 120;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.25s ease;
      color: #dfd7cc;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .exhibit-inspect-panel.active {
      transform: translate(-50%, -50%) scale(1);
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
    }

    /* 頂部標籤與關閉按鈕列 */
    .inspect-header-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      min-width: 0;
      flex-shrink: 0;
    }

    .inspect-badges-row {
      display: flex;
      align-items: center;
      gap: 6px;
      flex-wrap: wrap;
      min-width: 0;
    }

    .inspect-badge {
      display: inline-block;
      font-size: 0.72rem;
      font-weight: 700;
      padding: 2px 8px;
      background: rgba(223, 186, 104, 0.15);
      color: #f5e4bd;
      border: 1px solid rgba(223, 186, 104, 0.35);
      border-radius: 4px;
      white-space: nowrap;
    }

    .inspect-tag-badge {
      display: inline-block;
      font-size: 0.70rem;
      font-weight: 800;
      padding: 2px 8px;
      background: linear-gradient(135deg, rgba(184, 51, 42, 0.85), rgba(142, 34, 26, 0.9));
      color: #fff9ee;
      border: 1px solid rgba(223, 186, 104, 0.5);
      border-radius: 4px;
      letter-spacing: 0.05em;
      white-space: nowrap;
    }

    .inspect-close-btn {
      position: static;
      background: rgba(255,255,255,0.08);
      border: 1.5px solid rgba(223, 186, 104, 0.45);
      width: 32px;
      height: 32px;
      min-width: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      cursor: pointer;
      font-size: 0.95rem;
      color: #dfd7cc;
      transition: all 0.2s ease;
      touch-action: manipulation;
      user-select: none;
      -webkit-tap-highlight-color: transparent;
      margin-left: auto;
      flex-shrink: 0;
    }

    .inspect-close-btn:hover, .inspect-close-btn:active {
      background: var(--c-vermilion, #9b281f);
      color: #fff;
      border-color: #dfba68;
      transform: scale(0.95);
    }

    /* 展件標題：單行防折行、字級自適應、省略號保護 */
    .inspect-title {
      font-size: clamp(0.95rem, 2.2vw, 1.25rem);
      font-weight: 900;
      color: #f5e4bd;
      margin: 0;
      line-height: 1.35;
      letter-spacing: 0.04em;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      min-width: 0;
      flex-shrink: 0;
    }

    /* 展件圖片展示外框 (永久固定提示標籤於右下角) */
    .inspect-img-frame {
      position: relative;
      flex: 1;
      min-height: 180px;
      width: 100%;
      overflow: hidden;
      display: flex;
    }

    /* 展件圖片展示滑動視窗 (核心：縱向高條可上下滾動、橫向長卷可左右滑動、品名卡與常規展件置中) */
    .inspect-img-viewport {
      position: relative;
      flex: 1;
      width: 100%;
      height: 100%;
      background: #0d0a08;
      border: 1.5px solid rgba(223, 186, 104, 0.35);
      border-radius: 8px;
      box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.85);
      display: flex;
      align-items: center;
      justify-content: center;
      scrollbar-width: thin;
      scrollbar-color: var(--c-gold, #dfba68) rgba(20, 16, 13, 0.6);
      -webkit-overflow-scrolling: touch;
      touch-action: pan-x pan-y;
      box-sizing: border-box;
      padding: 10px;
      overflow: hidden;
    }

    .inspect-img-viewport::-webkit-scrollbar {
      width: 6px;
      height: 6px;
    }
    .inspect-img-viewport::-webkit-scrollbar-thumb {
      background: var(--c-gold, #dfba68);
      border-radius: 3px;
    }
    .inspect-img-viewport::-webkit-scrollbar-track {
      background: rgba(18, 14, 11, 0.7);
    }

    /* 預設圖片樣式 (置中包含) */
    .inspect-img {
      display: block;
      transition: all 0.2s ease;
      max-width: 100%;
      max-height: 100%;
      width: auto;
      height: auto;
      object-fit: contain;
      margin: auto;
    }

    /* 品名卡置中樣式 (點開後的圖片區塊完整置中、邊距均勻) */
    .inspect-img-viewport.is-card-center {
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      overflow: hidden !important;
      padding: 14px;
    }
    .inspect-img-viewport.is-card-center .inspect-img {
      max-width: 96%;
      max-height: 96%;
      width: auto;
      height: auto;
      object-fit: contain;
      margin: auto !important;
      display: block;
      border-radius: 4px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.55);
    }

    /* 縱向長幅展板 (例如文姬立牌、衛夫人筆陣圖)：填滿寬度、支援垂直滾動細讀 */
    .inspect-img-viewport.is-vertical-scroll {
      display: block;
      overflow-y: auto !important;
      overflow-x: hidden !important;
      text-align: center;
      padding: 6px;
    }
    .inspect-img-viewport.is-vertical-scroll .inspect-img {
      width: 100%;
      max-width: 520px;
      height: auto;
      max-height: none;
      margin: 0 auto;
      object-fit: unset;
      box-shadow: none;
    }

    /* 橫向長卷 (例如煙雨叢竹圖手卷、蘭亭真本手卷、宣和畫譜)：撐滿視窗高度、支援水平橫向滑動賞卷 */
    .inspect-img-viewport.is-horizontal-scroll {
      display: block;
      overflow-x: auto !important;
      overflow-y: hidden !important;
      white-space: nowrap;
      padding: 6px;
    }
    .inspect-img-viewport.is-horizontal-scroll .inspect-img {
      height: 100%;
      min-height: 220px;
      width: auto;
      max-width: none;
      max-height: none;
      display: inline-block;
      vertical-align: middle;
      object-fit: unset;
      box-shadow: none;
    }

    /* 浮動滑動提示條 (固定在圖片外框右下角、滑動時透明度自動降低) */
    .inspect-scroll-hint {
      position: absolute;
      bottom: 12px;
      right: 14px;
      background: rgba(18, 14, 11, 0.90);
      border: 1px solid rgba(223, 186, 104, 0.50);
      color: #f7dfa5;
      font-size: 0.68rem;
      font-weight: 600;
      padding: 3px 10px;
      border-radius: 14px;
      letter-spacing: 0.04em;
      pointer-events: none;
      box-shadow: 0 4px 14px rgba(0,0,0,0.75);
      opacity: 0.88;
      z-index: 15;
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      transition: opacity 0.25s ease, transform 0.25s ease;
      white-space: nowrap;
    }

    .inspect-scroll-hint:empty {
      display: none !important;
    }

    /* 滑動進行中時，透明度降低避讓視野 */
    .inspect-scroll-hint.is-scrolling {
      opacity: 0.15 !important;
      transform: scale(0.95);
    }

    /* 展件論述與賞析內容 */
    .inspect-desc {
      font-size: 0.82rem;
      color: #c9c0b3;
      line-height: 1.6;
      margin: 0;
      flex-shrink: 0;
      max-height: 68px;
      overflow-y: auto;
      padding-right: 2px;
    }

    @media (max-width: 900px) {
      .tour-header-bar {
        left: 10px;
        right: 10px;
        top: 10px;
      }
      .tour-brand-sub { display: none; }

      /* 📱 手機端操作導引：中央焦點浮動視窗，避開左下搖桿與底部導覽欄遮擋 */
      .tour-controls-tip {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        bottom: auto !important;
        transform: translate(-50%, -50%) scale(1) !important;
        width: min(340px, calc(100vw - 32px)) !important;
        max-width: calc(100vw - 32px) !important;
        max-height: min(80vh, 520px) !important;
        z-index: 130 !important;
        box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.65), 0 20px 50px rgba(0, 0, 0, 0.95) !important;
        border-radius: 12px !important;
        padding: 14px 16px !important;
        overflow-y: auto !important;
        display: block !important;
      }
      .tour-controls-tip.is-hidden {
        transform: translate(-50%, -50%) scale(0.92) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        display: none !important;
      }

      /* 📱 手機端自適應地圖：右上角精緻微縮、支持手動展開與收合 */
      .tour-minimap-card {
        top: 54px;
        right: 10px;
        width: 154px;
        padding: 5px 7px;
        z-index: 85;
        border-radius: 8px;
        display: flex;
        flex-direction: column;
        gap: 4px;
      }
      .tour-minimap-card #minimapCanvas {
        width: 138px !important;
        height: 105px !important;
        max-width: 100%;
      }
      .tour-minimap-card .minimap-title {
        font-size: 0.72rem;
      }
      .tour-minimap-card .minimap-tag {
        display: none;
      }
      /* 小螢幕展開工具列時自動淡出小地圖，避免與抽屜重疊 */
      body.drawer-open .tour-minimap-card,
      body:has(#tourActionsGroup.is-open) .tour-minimap-card {
        opacity: 0;
        pointer-events: none;
        transform: translateX(40px);
      }
      .tour-minimap-card.is-collapsed {
        transform: translateX(180px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
      }
      
      .tour-actions-group {
        right: 0;
        min-width: 185px;
      }
    }

    /* 🕹️ 虛擬搖桿與升降控制群組：平滑顯隱過渡 */
    .mobile-3d-controls {
      transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.3s ease;
    }

    .mobile-3d-controls.is-hidden {
      opacity: 0 !important;
      pointer-events: none !important;
      transform: translateY(30px) !important;
      visibility: hidden !important;
    }

    /* 電腦桌面版：隱藏手機直屏強制遮罩，保留工具列收合與搖桿開關能力 */
    @media (min-width: 992px) and (hover: hover) and (pointer: fine) {
      .landscape-prompt-overlay {
        display: none !important;
      }
    }

    /* =============================================================
       📱 手機/平板直屏強制橫屏遮罩 (Mandatory Landscape Prompt)
       ============================================================= */
    .landscape-prompt-overlay {
      position: fixed;
      inset: 0;
      z-index: 99999;
      background: rgba(12, 9, 8, 0.96);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      display: none;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 24px;
      text-align: center;
      color: #fff9ee;
      touch-action: none;
      user-select: none;
    }

    /* 手動忽略或橫向螢幕時強制隱藏 */
    .landscape-prompt-overlay.is-dismissed {
      display: none !important;
      opacity: 0 !important;
      visibility: hidden !important;
      pointer-events: none !important;
    }

    /* 僅在寬度 <= 1024 且確實為直屏、且未手動忽略時顯示 */
    @media (max-width: 1024px) and (orientation: portrait) {
      .landscape-prompt-overlay:not(.is-dismissed) {
        display: flex !important;
      }
    }

    @media (orientation: landscape), (min-width: 1025px) {
      .landscape-prompt-overlay {
        display: none !important;
      }
    }

    .landscape-phone-icon {
      width: 72px;
      height: 72px;
      margin-bottom: 16px;
      position: relative;
      animation: phoneRotateAnim 2.6s infinite ease-in-out;
    }

    @keyframes phoneRotateAnim {
      0%, 15% { transform: rotate(0deg); }
      50%, 75% { transform: rotate(-90deg); }
      100% { transform: rotate(0deg); }
    }

    .landscape-prompt-title {
      font-size: 1.25rem;
      font-weight: 900;
      color: var(--c-gold-light, #f5e4bd);
      margin-bottom: 8px;
      letter-spacing: 0.12em;
    }

    .landscape-prompt-desc {
      font-size: 0.88rem;
      color: rgba(245, 236, 213, 0.85);
      line-height: 1.7;
      max-width: 320px;
      margin-bottom: 0;
    }

    .landscape-enter-btn {
      margin-top: 18px;
      padding: 10px 22px;
      background: linear-gradient(135deg, #dfba68 0%, #b88628 100%);
      color: #1a1410;
      font-family: var(--f-serif, serif);
      font-size: 0.92rem;
      font-weight: 800;
      letter-spacing: 0.08em;
      border: 1px solid #f5e4bd;
      border-radius: 6px;
      box-shadow: 0 4px 16px rgba(223, 186, 104, 0.35);
      cursor: pointer;
      transition: all 0.25s ease;
      touch-action: manipulation;
    }

    .landscape-enter-btn:active {
      transform: scale(0.96);
      background: #c59f4e;
    }

    .landscape-close-btn {
      position: absolute;
      top: 18px;
      right: 18px;
      width: 32px;
      height: 32px;
      font-size: 1rem;
    }

    /* =============================================================
       🕹️ 手機左下角雙模操控群組 (Virtual Joystick & Elevation - Left Side)
       ============================================================= */
    .mobile-3d-controls {
      position: absolute;
      bottom: 22px;
      left: 16px;
      right: auto;
      z-index: 50;
      display: flex;
      align-items: center;
      gap: 12px;
      pointer-events: none; /* 子元件個別開啟點擊 */
      touch-action: none;
    }

    /* 視角升降按鈕直列 (Elevation Column) */
    .mobile-elev-cluster {
      display: flex;
      flex-direction: column;
      gap: 8px;
      pointer-events: auto;
    }

    .mobile-control-btn {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      background: rgba(24, 19, 16, 0.88);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border: 1.5px solid rgba(223, 186, 104, 0.45);
      color: var(--c-gold-light);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      font-size: 1.1rem;
      font-weight: 900;
      cursor: pointer;
      box-shadow: 0 8px 24px rgba(0,0,0,0.6);
      user-select: none;
      -webkit-user-select: none;
      transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
    }

    .mobile-control-btn span.btn-label {
      font-size: 0.58rem;
      letter-spacing: 0.05em;
      margin-top: -2px;
      color: rgba(223, 186, 104, 0.8);
    }

    .mobile-control-btn:active, .mobile-control-btn.is-active {
      transform: scale(0.92);
      background: rgba(184, 51, 42, 0.85);
      border-color: #dfba68;
      color: #fff;
    }

    /* 虛擬移動搖桿 (Virtual Movement Joystick) */
    .mobile-joystick-wrap {
      position: relative;
      width: 120px;
      height: 120px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(28, 22, 18, 0.75) 0%, rgba(14, 11, 9, 0.88) 100%);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border: 1.5px solid rgba(223, 186, 104, 0.4);
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65), inset 0 0 20px rgba(223, 186, 104, 0.12);
      display: flex;
      align-items: center;
      justify-content: center;
      pointer-events: auto;
      touch-action: none;
    }

    .mobile-joystick-thumb {
      position: absolute;
      width: 48px;
      height: 48px;
      border-radius: 50%;
      background: radial-gradient(circle at 35% 35%, #f7eed8 0%, #dfba68 60%, #a67c2e 100%);
      border: 1.5px solid #fff;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), 0 0 10px rgba(223, 186, 104, 0.5);
      pointer-events: none;
      transform: translate(0px, 0px);
      transition: transform 0.08s ease-out;
    }

    .mobile-joystick-hint {
      position: absolute;
      bottom: -22px;
      font-size: 0.68rem;
      color: rgba(223, 186, 104, 0.8);
      letter-spacing: 0.08em;
      white-space: nowrap;
      pointer-events: none;
    }

    @media (max-width: 600px) {
      .mobile-3d-controls {
        bottom: 24px;
        left: 14px;
        right: auto;
        gap: 12px;
      }
      .mobile-joystick-wrap {
        width: 106px;
        height: 106px;
      }
      .mobile-joystick-thumb {
        width: 42px;
        height: 42px;
      }
      .mobile-control-btn {
        width: 44px;
        height: 44px;
      }
    }

    /* =============================================================
       🎯 3D 專屬 圍棋十訣 靈籤互動彈窗樣式 (Palace Fortune Modal)
       ============================================================= */
    .fortune-3d-box {
      max-width: 580px !important;
      background: linear-gradient(135deg, #fffdf8 0%, #f7f1e3 100%) !important;
      border: 2px solid var(--c-gold, #dfba68) !important;
      box-shadow: 0 20px 60px rgba(0,0,0,0.7), 0 0 30px rgba(223, 186, 104, 0.25) !important;
      border-radius: 8px;
    }

    .fortune-3d-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      border-bottom: 2px solid rgba(194, 150, 61, 0.35);
      padding-bottom: 12px;
      margin-bottom: 16px;
      flex-wrap: wrap;
    }

    .fortune-3d-title {
      font-size: clamp(1.1rem, 2.5vw, 1.35rem);
      color: var(--c-ochre-dark, #5c2416);
      margin: 0;
      font-weight: 900;
      letter-spacing: 0.04em;
    }

    .fortune-3d-card {
      background: #ffffff;
      border: 1px solid rgba(223, 186, 104, 0.45);
      padding: clamp(14px, 2.5vw, 22px);
      box-shadow: inset 0 0 20px rgba(245, 238, 224, 0.6);
      border-radius: 6px;
      display: flex;
      flex-direction: column;
      gap: 14px;
      transition: all 0.3s ease;
    }

    .fortune-3d-card.is-shaking {
      animation: fortuneSlipShake 0.6s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
    }

    @keyframes fortuneSlipShake {
      0%, 100% { transform: translate(0, 0) rotate(0deg); }
      15% { transform: translate(-3px, -2px) rotate(-1.5deg); }
      30% { transform: translate(3px, 2px) rotate(1.5deg); }
      45% { transform: translate(-2px, 1px) rotate(-1deg); }
      60% { transform: translate(2px, -1px) rotate(1deg); }
      75% { transform: translate(-1px, 1px) rotate(-0.5deg); }
    }

    .fortune-3d-top {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
      border-bottom: 1px dashed rgba(194, 150, 61, 0.35);
      padding-bottom: 12px;
    }

    .fortune-3d-num-badge {
      font-size: clamp(1.25rem, 3vw, 1.6rem);
      font-weight: 900;
      color: var(--c-vermilion, #b8332a);
      letter-spacing: 0.08em;
      text-align: center;
      font-family: var(--font-serif, "Noto Serif TC", serif);
    }

    .fortune-3d-yiji-row {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      justify-content: center;
      width: 100%;
    }

    .fortune-badge-yi, .fortune-badge-ji {
      font-size: 0.84rem;
      font-weight: 700;
      padding: 4px 12px;
      border-radius: 20px;
      letter-spacing: 0.04em;
    }

    .fortune-badge-yi {
      background: #e8f5e9;
      color: #2e7d32;
      border: 1px solid #a5d6a7;
    }

    .fortune-badge-ji {
      background: #ffebee;
      color: #c62828;
      border: 1px solid #ffcdd2;
    }

    .fortune-3d-meaning {
      font-size: 0.94rem;
      line-height: 1.7;
      color: var(--c-ink-900, #1c1511);
      background: #fdfbf7;
      padding: 10px 14px;
      border-left: 3px solid var(--c-gold, #dfba68);
      border-radius: 0 4px 4px 0;
    }

    .fortune-3d-whisper-wrap {
      background: linear-gradient(135deg, rgba(223, 186, 104, 0.12) 0%, rgba(184, 51, 42, 0.08) 100%);
      border: 1px solid rgba(223, 186, 104, 0.35);
      padding: 12px 14px;
      border-radius: 6px;
    }

    .fortune-3d-whisper-wrap .whisper-label {
      font-size: 0.78rem;
      font-weight: 700;
      color: var(--c-ochre-dark, #5c2416);
      margin-bottom: 6px;
      letter-spacing: 0.05em;
    }

    .fortune-3d-whisper {
      margin: 0;
      font-size: 0.90rem;
      line-height: 1.75;
      color: var(--c-ink-800, #2b221d);
      font-style: italic;
    }

    .fortune-3d-actions {
      display: flex;
      justify-content: flex-end;
      gap: 12px;
      margin-top: 18px;
      flex-wrap: wrap;
    }

    /* =============================================================
       ✍️ 3D 專屬 書法臨摹 澄心堂揮毫互動彈窗樣式 (Calligraphy Modal)
       ============================================================= */
    .calligraphy-3d-box {
      max-width: 920px !important;
      width: 95vw !important;
      background: #1a1411 !important;
      border: 2px solid var(--c-gold, #dfba68) !important;
      box-shadow: 0 24px 70px rgba(0,0,0,0.85), 0 0 30px rgba(223, 186, 104, 0.25) !important;
      border-radius: 8px;
      padding: clamp(14px, 2.2vw, 20px) !important;
      display: flex;
      flex-direction: column;
      gap: 12px;
      max-height: 94vh;
      overflow-y: auto;
    }

    .callig-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-bottom: 2px solid rgba(223, 186, 104, 0.3);
      padding-bottom: 10px;
      flex-wrap: wrap;
      gap: 8px;
    }

    .callig-title-wrap {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .callig-title {
      font-size: clamp(1.05rem, 2.2vw, 1.35rem);
      color: #fceecb;
      margin: 0;
      font-weight: 900;
      letter-spacing: 0.06em;
      font-family: var(--font-serif, "Noto Serif TC", serif);
    }

    /* 宣紙切換導覽列 (5 張切換) */
    .callig-sheet-nav-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: rgba(45, 34, 27, 0.85);
      border: 1px solid rgba(223, 186, 104, 0.4);
      padding: 6px 12px;
      border-radius: 6px;
      gap: 10px;
      flex-wrap: wrap;
    }

    .callig-sheet-btn {
      background: rgba(223, 186, 104, 0.15);
      border: 1px solid var(--c-gold, #dfba68);
      color: #fceecb;
      padding: 6px 14px;
      font-size: 0.86rem;
      border-radius: 4px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-family: var(--font-serif, "Noto Serif TC", serif);
      font-weight: 700;
      transition: all 0.2s ease;
    }

    .callig-sheet-btn:hover:not(:disabled) {
      background: rgba(223, 186, 104, 0.35);
      color: #ffffff;
      transform: translateY(-1px);
    }

    .callig-sheet-btn:disabled {
      opacity: 0.4;
      cursor: not-allowed;
      border-color: rgba(255,255,255,0.2);
    }

    .callig-sheet-info {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 2px;
    }

    .callig-sheet-current-name {
      color: #f7dfa5;
      font-weight: 700;
      font-size: 0.95rem;
      letter-spacing: 0.04em;
    }

    .callig-sheet-dots {
      display: flex;
      gap: 6px;
      align-items: center;
    }

    .callig-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: rgba(223, 186, 104, 0.3);
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .callig-dot.is-active {
      background: var(--c-gold, #dfba68);
      transform: scale(1.3);
      box-shadow: 0 0 6px rgba(223, 186, 104, 0.8);
    }

    /* 書法舞台與宣紙案台 */
    .callig-stage-desk {
      background: #11171a;
      border: 1px solid rgba(223, 186, 104, 0.25);
      padding: clamp(8px, 1.5vw, 14px);
      border-radius: 6px;
      box-shadow: inset 0 0 30px rgba(0,0,0,0.9);
      position: relative;
    }

    .callig-felt-mat {
      background: #182226;
      border: 2px solid #2d3e45;
      border-radius: 4px;
      padding: 8px;
      box-shadow: inset 0 0 15px rgba(0,0,0,0.8);
      position: relative;
    }

    .callig-paper-canvas-wrap {
      position: relative;
      width: 100%;
      height: clamp(260px, 46vh, 440px);
      background: #fbf7ec;
      box-shadow: 0 4px 18px rgba(0,0,0,0.5), inset 0 0 30px rgba(225, 212, 185, 0.4);
      border-radius: 2px;
      overflow: hidden;
      touch-action: none;
      user-select: none;
    }

    /* 水印底帖層 (臨摹名句 / 詩詞 / 米字格) */
    .callig-watermark-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 24px;
      box-sizing: border-box;
      z-index: 1;
    }

    .callig-watermark-text {
      font-family: var(--font-serif, "Noto Serif TC", serif);
      font-weight: 700;
      color: rgba(100, 90, 80, 0.16);
      letter-spacing: 0.28em;
      line-height: 1.8;
      text-align: center;
      user-select: none;
      font-size: clamp(1.2rem, 3.2vw, 2.2rem);
      writing-mode: vertical-rl;
      text-orientation: upright;
      max-height: 90%;
    }

    .callig-grid-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      z-index: 1;
      opacity: 0.22;
      background-image: 
        linear-gradient(to right, #b8332a 1px, transparent 1px),
        linear-gradient(to bottom, #b8332a 1px, transparent 1px);
      background-size: 60px 60px;
    }

    /* 真正的書寫畫布 */
    #calligraphyCanvas {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 2;
      touch-action: none;
      cursor: crosshair;
    }

    /* 硯台、墨色、筆鋒工具列 */
    .callig-controls-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      flex-wrap: wrap;
      background: rgba(30, 24, 20, 0.85);
      border: 1px solid rgba(223, 186, 104, 0.3);
      padding: 8px 12px;
      border-radius: 6px;
    }

    .callig-ctrl-group {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }

    .callig-ctrl-label {
      color: #dfba68;
      font-size: 0.78rem;
      font-weight: 700;
      letter-spacing: 0.05em;
    }

    /* 筆尖大小按鈕 */
    .callig-size-btn {
      background: rgba(255,255,255,0.06);
      border: 1px solid rgba(223, 186, 104, 0.4);
      color: #e5d5b8;
      padding: 4px 10px;
      font-size: 0.80rem;
      border-radius: 4px;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .callig-size-btn.is-active, .callig-size-btn:hover {
      background: rgba(223, 186, 104, 0.35);
      color: #fff;
      border-color: #dfba68;
    }

    /* 墨色按鈕 */
    .callig-ink-btn {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      border: 2px solid transparent;
      cursor: pointer;
      position: relative;
      transition: all 0.2s ease;
    }

    .callig-ink-btn.is-active {
      transform: scale(1.22);
      border-color: #dfba68;
      box-shadow: 0 0 8px rgba(223, 186, 104, 0.7);
    }

    .callig-action-btn {
      background: rgba(255,255,255,0.08);
      border: 1px solid rgba(223, 186, 104, 0.4);
      color: #fceecb;
      padding: 6px 12px;
      font-size: 0.82rem;
      border-radius: 4px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      transition: all 0.2s ease;
    }

    .callig-action-btn:hover {
      background: rgba(223, 186, 104, 0.3);
      color: #ffffff;
      border-color: #dfba68;
    }

    .callig-action-btn-seal {
      background: rgba(184, 51, 42, 0.35) !important;
      border-color: #b8332a !important;
      color: #ffcdd2 !important;
    }

    .callig-action-btn-seal:hover {
      background: rgba(184, 51, 42, 0.65) !important;
      color: #fff !important;
    }

    .tour-btn-gold {
      background: linear-gradient(135deg, rgba(223, 186, 104, 0.3), rgba(184, 51, 42, 0.2)) !important;
      border-color: var(--c-gold, #dfba68) !important;
      color: #fff !important;
      font-weight: 700 !important;
    }

    .tour-btn-gold:hover {
      background: linear-gradient(135deg, rgba(223, 186, 104, 0.5), rgba(184, 51, 42, 0.4)) !important;
      transform: translateY(-2px) !important;
    }

    /* =============================================================
       ⚪⚫ 3D 專屬 爛柯仙弈 圍棋人機對局彈窗樣式 (Weiqi Modal)
       ============================================================= */
    .weiqi-3d-box {
      max-width: 860px !important;
      width: 95vw !important;
      background: #18120e !important;
      border: 2px solid var(--c-gold, #dfba68) !important;
      box-shadow: 0 24px 70px rgba(0,0,0,0.9), 0 0 35px rgba(223, 186, 104, 0.28) !important;
      border-radius: 8px;
      padding: clamp(12px, 2vw, 18px) !important;
      display: flex;
      flex-direction: column;
      gap: 10px;
      max-height: 94vh;
      overflow-y: auto;
      position: relative;
    }

    .weiqi-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-bottom: 2px solid rgba(223, 186, 104, 0.3);
      padding-bottom: 8px;
      flex-wrap: wrap;
      gap: 8px;
    }

    .weiqi-title-wrap {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .weiqi-title {
      font-size: clamp(1.05rem, 2.2vw, 1.35rem);
      color: #fceecb;
      margin: 0;
      font-weight: 900;
      letter-spacing: 0.06em;
      font-family: var(--font-serif, "Noto Serif TC", serif);
    }

    /* 設定與選項橫列 (棋盤大小、多人匹配與房號) */
    .weiqi-toolbar-strip {
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: rgba(45, 34, 27, 0.85);
      border: 1px solid rgba(223, 186, 104, 0.35);
      padding: 6px 10px;
      border-radius: 6px;
      gap: 8px;
      flex-wrap: wrap;
    }

    .weiqi-option-group {
      display: flex;
      align-items: center;
      gap: 6px;
      flex-wrap: wrap;
    }

    .weiqi-opt-label {
      color: #dfba68;
      font-size: 0.78rem;
      font-weight: 700;
      letter-spacing: 0.04em;
    }

    .weiqi-btn-segmented {
      display: inline-flex;
      background: rgba(0, 0, 0, 0.4);
      border-radius: 4px;
      padding: 2px;
      border: 1px solid rgba(223, 186, 104, 0.25);
    }

    .weiqi-seg-btn {
      background: transparent;
      border: none;
      color: #c9bca8;
      padding: 4px 8px;
      font-size: 0.75rem;
      font-family: var(--font-serif, "Noto Serif TC", serif);
      font-weight: 600;
      border-radius: 3px;
      cursor: pointer;
      transition: all 0.18s ease;
    }

    .weiqi-seg-btn.is-active {
      background: linear-gradient(135deg, rgba(223, 186, 104, 0.85), rgba(184, 51, 42, 0.75));
      color: #ffffff;
      box-shadow: 0 2px 6px rgba(0,0,0,0.5);
      font-weight: 700;
    }

    .weiqi-seg-btn:hover:not(.is-active) {
      color: #fceecb;
      background: rgba(223, 186, 104, 0.15);
    }

    /* 1v1 多人聯機匹配控制項 */
    .weiqi-lobby-btns {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .weiqi-action-btn {
      background: rgba(45, 34, 27, 0.9);
      border: 1px solid rgba(223, 186, 104, 0.45);
      color: #e6dfd5;
      padding: 4px 10px;
      font-size: 0.76rem;
      font-family: var(--font-serif, "Noto Serif TC", serif);
      font-weight: 600;
      border-radius: 4px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
      white-space: nowrap;
    }

    .weiqi-action-btn:hover:not(:disabled) {
      border-color: #dfba68;
      transform: translateY(-1px);
      box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    }

    .weiqi-btn-primary {
      background: linear-gradient(135deg, rgba(223, 186, 104, 0.9), rgba(184, 51, 42, 0.85));
      color: #ffffff;
      border-color: rgba(223, 186, 104, 0.9);
      font-weight: 700;
    }

    .weiqi-btn-primary:hover:not(:disabled) {
      background: linear-gradient(135deg, rgba(235, 202, 128, 0.95), rgba(204, 61, 51, 0.9));
      box-shadow: 0 4px 12px rgba(184, 51, 42, 0.4);
    }

    .weiqi-btn-secondary {
      background: rgba(60, 48, 38, 0.8);
      border-color: rgba(223, 186, 104, 0.5);
      color: #dfba68;
    }

    .weiqi-btn-secondary:hover:not(:disabled) {
      background: rgba(80, 64, 50, 0.9);
      color: #fff;
    }

    .weiqi-btn-accent {
      background: rgba(184, 51, 42, 0.85);
      border-color: rgba(223, 186, 104, 0.6);
      color: #ffffff;
    }

    .weiqi-btn-accent:hover:not(:disabled) {
      background: rgba(210, 60, 50, 0.95);
    }

    .weiqi-btn-danger {
      background: rgba(120, 30, 25, 0.85);
      border-color: rgba(200, 60, 50, 0.6);
      color: #ffcccc;
    }

    .weiqi-btn-danger:hover:not(:disabled) {
      background: rgba(150, 35, 30, 0.95);
      color: #ffffff;
    }

    .weiqi-join-group {
      display: inline-flex;
      align-items: center;
      gap: 2px;
    }

    .weiqi-room-input {
      width: 90px;
      padding: 3px 8px;
      background: rgba(18, 14, 11, 0.9);
      border: 1px solid rgba(223, 186, 104, 0.4);
      border-radius: 4px 0 0 4px;
      color: #f7eedf;
      font-size: 0.76rem;
      font-family: inherit;
      outline: none;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    .weiqi-room-input:focus {
      border-color: #dfba68;
      box-shadow: 0 0 6px rgba(223, 186, 104, 0.35);
    }

    .weiqi-join-group .weiqi-action-btn {
      border-radius: 0 4px 4px 0;
      border-left: none;
    }

    /* 對陣選手狀態欄 (黑方 vs 白方) */
    .weiqi-matchup-bar {
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: center;
      gap: 8px;
      background: rgba(28, 20, 16, 0.9);
      border: 1px solid rgba(223, 186, 104, 0.25);
      padding: 8px 12px;
      border-radius: 6px;
    }

    .weiqi-player-card {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 6px 10px;
      border-radius: 6px;
      border: 1px solid transparent;
      transition: all 0.25s ease;
    }

    .weiqi-player-card.is-active {
      background: rgba(223, 186, 104, 0.12);
      border-color: rgba(223, 186, 104, 0.6);
      box-shadow: 0 0 12px rgba(223, 186, 104, 0.25);
    }

    .weiqi-stone-badge {
      width: 22px;
      height: 22px;
      border-radius: 50%;
      flex-shrink: 0;
      box-shadow: 0 2px 6px rgba(0,0,0,0.6);
    }

    .black-stone-icon {
      background: radial-gradient(circle at 35% 35%, #555, #111);
      border: 1px solid rgba(255,255,255,0.2);
    }

    .white-stone-icon {
      background: radial-gradient(circle at 35% 35%, #fff, #ddd);
      border: 1px solid rgba(0,0,0,0.3);
    }

    .weiqi-player-details {
      display: flex;
      flex-direction: column;
      gap: 1px;
    }

    .weiqi-player-name {
      font-size: 0.84rem;
      font-weight: 700;
      color: #fceecb;
      letter-spacing: 0.04em;
    }

    .weiqi-player-sub {
      font-size: 0.72rem;
      color: #a89a88;
    }

    .weiqi-num-highlight {
      color: var(--c-gold, #dfba68);
      font-weight: 700;
      font-size: 0.85rem;
    }

    /* 中央當前輪到與靈籤提示 */
    .weiqi-status-center {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
      text-align: center;
    }

    .weiqi-turn-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 3px 12px;
      border-radius: 20px;
      font-size: 0.76rem;
      font-weight: 700;
      background: rgba(0,0,0,0.5);
      border: 1px solid rgba(223, 186, 104, 0.4);
      color: #f7dfa5;
    }

    .weiqi-turn-badge.is-thinking {
      border-color: #dfba68;
      animation: weiqiPulse 1.2s infinite alternate;
      color: #ffe082;
    }

    .weiqi-turn-pulse {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: #4ade80;
      box-shadow: 0 0 6px #4ade80;
    }

    .weiqi-wisdom-quote {
      font-size: 0.68rem;
      color: #cfbda2;
      font-style: italic;
      letter-spacing: 0.03em;
      max-width: 260px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    /* 榧木棋盤工作台 */
    .weiqi-stage-desk {
      display: flex;
      justify-content: center;
      align-items: center;
      background: #100b08;
      border: 1px solid rgba(223, 186, 104, 0.2);
      padding: clamp(6px, 1.5vw, 12px);
      border-radius: 6px;
      box-shadow: inset 0 0 25px rgba(0,0,0,0.85);
      position: relative;
    }

    .weiqi-board-container {
      position: relative;
      display: flex;
      justify-content: center;
      align-items: center;
      border-radius: 4px;
      box-shadow: 0 8px 30px rgba(0,0,0,0.75);
      background: #deb368;
      border: 3px solid #2b1b12;
      touch-action: none;
    }

    #weiqiCanvas {
      display: block;
      cursor: crosshair;
      border-radius: 2px;
    }

    /* AI 著手動態語音對白氣泡 */
    .weiqi-ai-bubble {
      position: absolute;
      bottom: 12px;
      left: 50%;
      transform: translateX(-50%);
      background: rgba(22, 16, 13, 0.94);
      border: 1px solid var(--c-gold, #dfba68);
      color: #fceecb;
      padding: 6px 16px;
      border-radius: 20px;
      font-size: 0.78rem;
      font-weight: 700;
      box-shadow: 0 4px 18px rgba(0,0,0,0.8), 0 0 10px rgba(223, 186, 104, 0.3);
      pointer-events: none;
      transition: opacity 0.25s ease, transform 0.25s ease;
      white-space: nowrap;
      z-index: 10;
    }

    .weiqi-ai-bubble.is-hidden {
      opacity: 0;
      transform: translateX(-50%) translateY(8px);
    }

    /* 底部動作工具列 */
    .weiqi-actions-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      flex-wrap: wrap;
      background: rgba(30, 22, 17, 0.85);
      border: 1px solid rgba(223, 186, 104, 0.3);
      padding: 6px 10px;
      border-radius: 6px;
    }

    .weiqi-actions-left, .weiqi-actions-right {
      display: flex;
      align-items: center;
      gap: 6px;
      flex-wrap: wrap;
    }

    .weiqi-act-btn {
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid rgba(223, 186, 104, 0.35);
      color: #fceecb;
      padding: 5px 11px;
      font-size: 0.78rem;
      border-radius: 4px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      font-family: var(--font-serif, "Noto Serif TC", serif);
      font-weight: 600;
      transition: all 0.2s ease;
    }

    .weiqi-act-btn:hover:not(:disabled) {
      background: rgba(223, 186, 104, 0.3);
      color: #ffffff;
      border-color: #dfba68;
      transform: translateY(-1px);
    }

    .weiqi-act-btn:disabled {
      opacity: 0.35;
      cursor: not-allowed;
      border-color: rgba(255,255,255,0.15);
    }

    .weiqi-act-hint {
      background: rgba(223, 186, 104, 0.22) !important;
      border-color: #dfba68 !important;
      color: #ffe082 !important;
    }

    .weiqi-act-resign {
      background: rgba(184, 51, 42, 0.2) !important;
      border-color: rgba(184, 51, 42, 0.5) !important;
      color: #ffcdd2 !important;
    }

    .weiqi-act-resign:hover:not(:disabled) {
      background: rgba(184, 51, 42, 0.5) !important;
      color: #fff !important;
    }

    /* 結算彈窗浮層 (Result Overlay) */
    .weiqi-result-overlay {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(10, 7, 5, 0.88);
      backdrop-filter: blur(6px);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 100;
      padding: 16px;
      transition: opacity 0.25s ease;
    }

    .weiqi-result-overlay.is-hidden {
      display: none;
    }

    .weiqi-result-card {
      background: #1c1410;
      border: 2px solid var(--c-gold, #dfba68);
      border-radius: 8px;
      padding: 24px;
      max-width: 440px;
      width: 100%;
      text-align: center;
      display: flex;
      flex-direction: column;
      gap: 12px;
      box-shadow: 0 20px 50px rgba(0,0,0,0.9), 0 0 30px rgba(223, 186, 104, 0.4);
    }

    .weiqi-result-badge {
      display: inline-block;
      align-self: center;
      background: rgba(184, 51, 42, 0.35);
      border: 1px solid #b8332a;
      color: #ffcdd2;
      font-size: 0.72rem;
      padding: 3px 10px;
      border-radius: 12px;
      font-weight: 700;
    }

    .weiqi-result-title {
      color: #fceecb;
      font-size: 1.35rem;
      margin: 0;
      font-weight: 900;
      letter-spacing: 0.05em;
    }

    .weiqi-result-breakdown {
      font-size: 0.80rem;
      color: #cfbda2;
      line-height: 1.7;
      background: rgba(0, 0, 0, 0.35);
      border: 1px solid rgba(223, 186, 104, 0.2);
      padding: 10px 14px;
      border-radius: 6px;
      text-align: left;
    }

    .weiqi-result-actions {
      display: flex;
      justify-content: center;
      gap: 12px;
      margin-top: 8px;
    }

    @keyframes weiqiPulse {
      0% { box-shadow: 0 0 4px rgba(223, 186, 104, 0.3); }
      100% { box-shadow: 0 0 14px rgba(223, 186, 104, 0.8); }
    }

    /* =============================================================
       🎵 3D 專屬 七弦古琴 撫琴試彈互動彈窗樣式 (Guqin Modal)
       ============================================================= */
    .guqin-3d-box {
      max-width: 880px !important;
      width: 95vw !important;
      background: #18120e !important;
      border: 2px solid var(--c-gold, #dfba68) !important;
      box-shadow: 0 24px 70px rgba(0,0,0,0.92), 0 0 35px rgba(223, 186, 104, 0.28) !important;
      border-radius: 8px;
      padding: clamp(12px, 2vw, 18px) !important;
      display: flex;
      flex-direction: column;
      gap: 10px;
      max-height: 94vh;
      overflow-y: auto;
      position: relative;
    }

    .guqin-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-bottom: 2px solid rgba(223, 186, 104, 0.3);
      padding-bottom: 8px;
      flex-wrap: wrap;
      gap: 8px;
    }

    .guqin-title-wrap {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .guqin-title {
      font-size: clamp(1.05rem, 2.2vw, 1.35rem);
      color: #fceecb;
      margin: 0;
      font-weight: 900;
      letter-spacing: 0.06em;
      font-family: var(--font-serif, "Noto Serif TC", serif);
    }

    .guqin-intro-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      background: rgba(45, 34, 27, 0.85);
      border: 1px solid rgba(223, 186, 104, 0.35);
      padding: 6px 10px;
      border-radius: 6px;
      flex-wrap: wrap;
    }

    .guqin-story-pill {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 0.76rem;
      color: #e5d5b8;
      letter-spacing: 0.03em;
    }

    .guqin-demo-group {
      display: flex;
      align-items: center;
      gap: 6px;
      flex-wrap: wrap;
    }

    .guqin-tune-btn {
      padding: 4px 9px;
      font-size: 0.74rem;
      border-radius: 4px;
      cursor: pointer;
      font-family: inherit;
      white-space: nowrap;
      transition: all 0.2s ease;
    }

    .guqin-tune-btn.is-active {
      background: linear-gradient(135deg, rgba(223, 186, 104, 0.85), rgba(184, 51, 42, 0.85));
      border-color: #dfba68;
      color: #ffffff;
      font-weight: 700;
      box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    }

    .guqin-auto-play-btn {
      padding: 4px 12px;
      font-size: 0.76rem;
      border-radius: 4px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      white-space: nowrap;
      font-weight: 700;
      background: linear-gradient(135deg, #dfba68 0%, #b88628 100%);
      color: #1a1208;
      border: 1px solid #ffeed0;
      box-shadow: 0 2px 8px rgba(223, 186, 104, 0.35);
      transition: all 0.2s ease;
    }

    .guqin-auto-play-btn:hover {
      filter: brightness(1.1);
      transform: translateY(-1px);
    }

    .guqin-auto-play-btn.is-playing {
      background: linear-gradient(135deg, #b8332a 0%, #8e221a 100%);
      color: #fff;
      border-color: #dfba68;
    }

    /* 琴身舞台 */
    .guqin-stage-wrap {
      background: radial-gradient(ellipse at 50% 50%, #221812 0%, #0c0907 100%);
      border: 1.5px solid rgba(223, 186, 104, 0.4);
      border-radius: 8px;
      padding: 14px 16px;
      box-shadow: inset 0 0 35px rgba(0,0,0,0.9);
      display: flex;
      flex-direction: column;
      gap: 12px;
      position: relative;
    }

    /* 漆黑沉穆古琴身 (鳳勢式琴體) */
    .guqin-body-frame {
      position: relative;
      width: 100%;
      height: clamp(230px, 34vh, 310px);
      background: linear-gradient(90deg, #30170b 0%, #170b05 18%, #140904 82%, #261107 100%);
      border-radius: 12px 36px 12px 28px;
      border: 2px solid #5a3316;
      box-shadow: 0 12px 35px rgba(0,0,0,0.85), inset 0 0 20px rgba(223, 186, 104, 0.08);
      display: flex;
      flex-direction: column;
      justify-content: space-evenly;
      padding: 10px 24px 10px 18px;
      box-sizing: border-box;
      user-select: none;
      touch-action: none;
      overflow: hidden;
    }

    /* 琴身木質雅緻斷紋光澤 */
    .guqin-body-frame::before {
      content: "";
      position: absolute;
      inset: 0;
      background: repeating-linear-gradient(90deg, transparent, transparent 18px, rgba(223, 186, 104, 0.02) 19px, transparent 20px);
      pointer-events: none;
    }

    /* 13 琴徽 */
    .guqin-hui-row {
      position: absolute;
      top: 6px;
      left: 110px;
      right: 28px;
      height: 10px;
      pointer-events: none;
    }

    .guqin-hui {
      position: absolute;
      top: 2px;
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: #fbf9f2;
      box-shadow: 0 0 4px #ffffff, 0 0 8px rgba(223, 186, 104, 0.7);
      transform: translateX(-50%);
    }

    .guqin-hui-center {
      width: 7px;
      height: 7px;
      background: #dfba68;
      box-shadow: 0 0 6px #dfba68, 0 0 12px rgba(223, 186, 104, 0.9);
    }

    /* 琴弦單行 */
    .guqin-string-row {
      display: flex;
      align-items: center;
      gap: 10px;
      height: 28px;
      cursor: pointer;
      position: relative;
      border-radius: 4px;
      padding: 0 6px;
      transition: background 0.15s ease;
      touch-action: manipulation;
    }

    .guqin-string-row:hover {
      background: rgba(223, 186, 104, 0.08);
    }

    .guqin-string-row:active, .guqin-string-row.is-vibrating {
      background: rgba(223, 186, 104, 0.16);
    }

    .guqin-string-tag {
      width: 90px;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 0.74rem;
      font-weight: 700;
      color: #dfba68;
      font-family: var(--font-serif, "Noto Serif TC", serif);
      letter-spacing: 0.05em;
    }

    .guqin-string-tag kbd {
      background: rgba(0,0,0,0.5);
      border: 1px solid rgba(223, 186, 104, 0.4);
      border-radius: 3px;
      padding: 1px 4px;
      font-size: 0.65rem;
      color: #fff9ee;
      font-family: monospace;
    }

    .guqin-string-line-wrap {
      flex: 1;
      height: 100%;
      display: flex;
      align-items: center;
      position: relative;
    }

    .guqin-string-line {
      width: 100%;
      height: var(--str-thick, 2px);
      background: linear-gradient(90deg, #968361 0%, #fae6b8 50%, #968361 100%);
      border-radius: 2px;
      box-shadow: 0 1px 3px rgba(0,0,0,0.85);
      transition: transform 0.06s ease, box-shadow 0.15s ease;
      transform-origin: center;
    }

    .guqin-string-row.is-vibrating .guqin-string-line {
      animation: guqinVibrate 0.45s ease-out;
      box-shadow: 0 0 12px #ffdf80, 0 0 24px rgba(223, 186, 104, 0.85);
      background: #ffffff;
    }

    @keyframes guqinVibrate {
      0% { transform: scaleY(3.2) translateY(-2px); }
      20% { transform: scaleY(2.4) translateY(2px); }
      40% { transform: scaleY(1.8) translateY(-1px); }
      60% { transform: scaleY(1.3) translateY(1px); }
      80% { transform: scaleY(1.1) translateY(0); }
      100% { transform: scaleY(1.0) translateY(0); }
    }

    /* 曲譜跟彈指引盒 */
    .guqin-score-box {
      background: rgba(22, 17, 13, 0.88);
      border: 1px solid rgba(223, 186, 104, 0.28);
      border-radius: 6px;
      padding: 8px 12px;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .guqin-score-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 0.74rem;
      color: #c9bca8;
      border-bottom: 1px dashed rgba(223, 186, 104, 0.2);
      padding-bottom: 4px;
    }

    .guqin-score-title {
      font-weight: 700;
      color: #f7dfa5;
    }

    .guqin-notes-flow {
      display: flex;
      align-items: center;
      gap: 6px;
      overflow-x: auto;
      padding: 4px 2px;
      scrollbar-width: none;
    }

    .guqin-notes-flow::-webkit-scrollbar { display: none; }

    .guqin-note-pill {
      flex-shrink: 0;
      padding: 3px 8px;
      border-radius: 4px;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(223, 186, 104, 0.25);
      font-size: 0.72rem;
      color: #dfd7cc;
      cursor: pointer;
      transition: all 0.2s ease;
      font-family: var(--font-serif, "Noto Serif TC", serif);
    }

    .guqin-note-pill.is-current {
      background: linear-gradient(135deg, rgba(223, 186, 104, 0.9), rgba(184, 51, 42, 0.85));
      border-color: #dfba68;
      color: #ffffff;
      font-weight: 800;
      transform: scale(1.12);
      box-shadow: 0 0 10px rgba(223, 186, 104, 0.6);
    }

    .guqin-note-pill.is-played {
      opacity: 0.45;
      border-color: rgba(255, 255, 255, 0.1);
    }

    /* 底部狀態與功能列 */
    .guqin-footer-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      flex-wrap: wrap;
      padding-top: 4px;
    }

    .guqin-sound-info {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 0.76rem;
      color: #f5eedf;
    }

    .guqin-sound-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: #4ade80;
      box-shadow: 0 0 6px #4ade80;
    }

    .guqin-footer-actions {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    @media (max-width: 680px) {
      .guqin-string-tag {
        width: 74px;
        font-size: 0.68rem;
      }
      .guqin-story-pill {
        font-size: 0.70rem;
      }
    }

    /* ===================================================================
       👻 3D 展廳多人即時在線同遊與幽靈化身樣式 (Ghost Multiplayer UI)
       =================================================================== */
    
    /* 頂部在線人數膠囊徽章 */
    .tour-online-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: rgba(22, 18, 15, 0.90);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
      border: 1px solid rgba(112, 214, 255, 0.45);
      padding: 5px 12px;
      box-shadow: 0 8px 24px rgba(0,0,0,0.55), 0 0 10px rgba(112, 214, 255, 0.15);
      border-radius: 30px;
      white-space: nowrap;
      cursor: pointer;
      font-family: inherit;
      color: #e8f4f8;
      font-size: 0.76rem;
      transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
      user-select: none;
      -webkit-tap-highlight-color: transparent;
    }

    .tour-online-badge:hover {
      background: rgba(32, 26, 22, 0.96);
      border-color: #70d6ff;
      transform: translateY(-1.5px);
      box-shadow: 0 10px 28px rgba(0,0,0,0.7), 0 0 16px rgba(112, 214, 255, 0.35);
    }

    .online-pulse-dot, .online-dot {
      display: inline-block;
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: #4ade80;
      box-shadow: 0 0 8px #4ade80;
      animation: onlinePulse 2s infinite ease-in-out;
    }

    @keyframes onlinePulse {
      0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 8px #4ade80; }
      50% { opacity: 0.5; transform: scale(0.85); box-shadow: 0 0 2px #4ade80; }
    }

    /* =============================================================
       📝 3D 專屬 便利貼心聲互動彈窗樣式 (Sticky Note Modal)
       ============================================================= */
    .sticky-note-3d-box {
      max-width: 920px !important;
      width: min(95vw, 920px) !important;
      margin: auto !important;
      background: linear-gradient(135deg, #1c1511 0%, #120e0b 100%) !important;
      border: 2px solid var(--c-gold, #dfba68) !important;
      box-shadow: 0 24px 70px rgba(0,0,0,0.92), 0 0 35px rgba(223, 186, 104, 0.28) !important;
      border-radius: 10px;
      padding: clamp(14px, 2vw, 20px) !important;
      display: flex;
      flex-direction: column;
      gap: 12px;
      max-height: min(90vh, 760px);
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      position: relative;
    }

    /* 隱藏彈窗內捲動時易錯位的絕對定位邊角裝飾 */
    .sticky-note-3d-box .palace-frame-corner-tr,
    .sticky-note-3d-box .palace-frame-corner-bl {
      display: none !important;
    }

    .sticky-3d-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-bottom: 2px solid rgba(223, 186, 104, 0.3);
      padding-bottom: 8px;
      flex-wrap: wrap;
      gap: 8px;
    }

    .sticky-3d-title-wrap {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
    }

    .sticky-3d-title {
      font-size: clamp(1.05rem, 2vw, 1.3rem);
      color: #fceecb;
      margin: 0;
      font-weight: 900;
      letter-spacing: 0.06em;
      font-family: var(--font-serif, "Noto Serif TC", serif);
    }

    .sticky-3d-prompt-banner {
      display: flex;
      align-items: center;
      gap: 10px;
      background: linear-gradient(135deg, rgba(223, 186, 104, 0.15) 0%, rgba(184, 51, 42, 0.12) 100%);
      border: 1px solid rgba(223, 186, 104, 0.35);
      padding: 8px 12px;
      border-radius: 6px;
      color: #f7e6c4;
      font-size: 0.88rem;
      line-height: 1.5;
      font-family: var(--font-serif, "Noto Serif TC", serif);
    }

    .sticky-3d-prompt-banner .prompt-icon {
      font-size: 1.1rem;
      flex-shrink: 0;
    }

    .sticky-3d-body-grid {
      display: grid;
      grid-template-columns: 1.05fr 1fr;
      gap: 14px;
      align-items: stretch;
      min-height: 0;
    }

    .sticky-3d-post-col, .sticky-3d-gallery-col {
      background: rgba(36, 27, 22, 0.85);
      border: 1px solid rgba(223, 186, 104, 0.3);
      border-radius: 8px;
      padding: 14px;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .sticky-3d-form-title, .sticky-3d-gallery-title {
      margin: 0;
      font-size: 0.95rem;
      font-weight: 700;
      color: #dfba68;
      letter-spacing: 0.04em;
    }

    .sticky-3d-form-group {
      display: flex;
      flex-direction: column;
      gap: 4px;
      margin-bottom: 6px;
    }

    .sticky-3d-label-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .sticky-3d-label {
      font-size: 0.80rem;
      color: #e5d7c3;
      font-weight: 600;
    }

    .sticky-3d-char-count {
      font-size: 0.72rem;
      color: rgba(229, 215, 195, 0.6);
    }

    .sticky-3d-input, .sticky-3d-textarea {
      background: rgba(18, 14, 11, 0.85);
      border: 1px solid rgba(223, 186, 104, 0.35);
      color: #fef7ea;
      padding: 7px 10px;
      border-radius: 6px;
      font-size: 0.86rem;
      font-family: inherit;
      transition: all 0.2s ease;
      outline: none;
    }

    .sticky-3d-input:focus, .sticky-3d-textarea:focus {
      border-color: #dfba68;
      box-shadow: 0 0 10px rgba(223, 186, 104, 0.35);
    }

    .sticky-3d-textarea {
      resize: vertical;
      min-height: 56px;
      line-height: 1.45;
    }

    .sticky-3d-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 5px;
    }

    .sticky-chip-btn {
      background: rgba(223, 186, 104, 0.12);
      border: 1px solid rgba(223, 186, 104, 0.3);
      color: #f3ddb3;
      padding: 3px 8px;
      border-radius: 14px;
      font-size: 0.72rem;
      cursor: pointer;
      font-family: inherit;
      transition: all 0.18s ease;
    }

    .sticky-chip-btn:hover {
      background: rgba(223, 186, 104, 0.3);
      border-color: #dfba68;
      color: #ffffff;
      transform: translateY(-1px);
    }

    .sticky-3d-color-picker {
      display: flex;
      gap: 10px;
      align-items: center;
      padding: 2px 0;
    }

    .sticky-color-btn {
      width: 26px;
      height: 26px;
      border-radius: 6px;
      border: 2px solid transparent;
      cursor: pointer;
      position: relative;
      transition: all 0.2s ease;
    }

    .sticky-color-btn.is-active {
      transform: scale(1.15);
      box-shadow: 0 0 8px #dfba68, 0 2px 6px rgba(0,0,0,0.5);
    }

    .sticky-color-btn.is-active::after {
      content: '✓';
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 13px;
      font-weight: 900;
      color: #332211;
    }

    .sticky-3d-submit-btn {
      width: 100%;
      background: linear-gradient(135deg, #dfba68 0%, #b8332a 100%);
      color: #ffffff;
      border: 1px solid #dfba68;
      padding: 8px 16px;
      border-radius: 6px;
      font-size: 0.90rem;
      font-weight: 700;
      font-family: inherit;
      cursor: pointer;
      box-shadow: 0 4px 14px rgba(184, 51, 42, 0.45);
      transition: all 0.25s ease;
      letter-spacing: 0.05em;
    }

    .sticky-3d-submit-btn:hover:not(:disabled) {
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(223, 186, 104, 0.6);
      filter: brightness(1.1);
    }

    .sticky-3d-submit-btn:disabled {
      opacity: 0.6;
      cursor: not-allowed;
    }

    .sticky-3d-gallery-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: 1px dashed rgba(223, 186, 104, 0.25);
      padding-bottom: 6px;
    }

    .sticky-3d-notes-count {
      font-size: 0.76rem;
      color: #dfba68;
      font-weight: 700;
    }

    .sticky-3d-gallery-list {
      display: flex;
      flex-direction: column;
      gap: 12px;
      max-height: 310px;
      overflow-y: auto;
      padding-right: 4px;
      padding-top: 6px;
    }

    .sticky-3d-gallery-list::-webkit-scrollbar {
      width: 5px;
    }
    .sticky-3d-gallery-list::-webkit-scrollbar-thumb {
      background: var(--c-gold, #dfba68);
      border-radius: 3px;
    }

    .sticky-3d-note-card {
      padding: 12px 14px 10px;
      border-radius: 6px;
      box-shadow: 0 3px 8px rgba(0,0,0,0.28);
      position: relative;
      font-size: 0.85rem;
      line-height: 1.5;
      color: #2b1b12;
      animation: noteCardFadeIn 0.35s ease;
      margin-top: 4px;
    }

    @keyframes noteCardFadeIn {
      from { opacity: 0; transform: translateY(-6px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .sticky-3d-note-card::before {
      content: "";
      position: absolute;
      top: -5px;
      left: 50%;
      transform: translateX(-50%);
      width: 36px;
      height: 9px;
      background: rgba(184, 93, 67, 0.45);
      border-radius: 2px;
      box-shadow: 0 1px 2px rgba(0,0,0,0.15);
      z-index: 2;
    }

    .sticky-3d-note-card.note-paper-yellow::before { background: rgba(215, 140, 75, 0.5); }
    .sticky-3d-note-card.note-paper-pink::before { background: rgba(230, 95, 125, 0.5); }
    .sticky-3d-note-card.note-paper-cyan::before { background: rgba(55, 160, 145, 0.5); }
    .sticky-3d-note-card.note-paper-white::before { background: rgba(180, 150, 120, 0.5); }

    .sticky-3d-note-card p {
      margin: 0 0 5px 0;
      word-break: break-word;
      font-weight: 600;
      font-size: 0.86rem;
      color: inherit;
    }

    .sticky-3d-note-meta {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.70rem;
      color: rgba(55, 35, 20, 0.75);
      font-weight: 700;
      border-top: 1px dashed rgba(0, 0, 0, 0.12);
      padding-top: 4px;
      margin-top: 2px;
    }

    .sticky-3d-empty-hint {
      text-align: center;
      color: rgba(229, 215, 195, 0.6);
      font-size: 0.84rem;
      padding: 30px 10px;
    }

    /* 手機窄螢幕 (直向或極窄寬度) 自適應堆疊 */
    @media (max-width: 720px) and (orientation: portrait), (max-width: 560px) {
      .sticky-note-3d-box {
        width: 96vw !important;
        max-height: 88vh !important;
        padding: 12px !important;
        gap: 8px;
      }
      .sticky-3d-body-grid {
        grid-template-columns: 1fr !important;
        gap: 10px;
      }
      .sticky-3d-post-col, .sticky-3d-gallery-col {
        padding: 10px !important;
        gap: 8px !important;
      }
      .sticky-3d-gallery-list {
        max-height: 200px !important;
      }
    }

    /* 👻 幽靈化身與暱稱自訂彈窗 (Ghost Nickname Modal - 故宮仙靈萌系美學) */
    .ghost-nickname-modal-backdrop {
      position: fixed;
      inset: 0;
      z-index: 10000;
      background: radial-gradient(ellipse at 50% 40%, rgba(30, 22, 18, 0.88) 0%, rgba(10, 8, 7, 0.96) 100%);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 12px;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
    }

    .ghost-nickname-modal-backdrop.is-active {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
    }

    .ghost-nickname-card {
      width: 100%;
      max-width: 580px;
      max-height: 94vh;
      background: linear-gradient(165deg, rgba(32, 25, 20, 0.98) 0%, rgba(16, 12, 10, 0.99) 100%);
      border: 1.5px solid rgba(223, 186, 104, 0.6);
      border-radius: 18px;
      padding: 20px 22px;
      box-shadow: 0 28px 70px rgba(0, 0, 0, 0.9), 0 0 35px rgba(223, 186, 104, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.15);
      display: flex;
      flex-direction: column;
      gap: 12px;
      transform: scale(0.92) translateY(18px);
      transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
      position: relative;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
    }

    /* 背景柔和光紋裝飾 */
    .ghost-nickname-card::before {
      content: '';
      position: absolute;
      top: -50px;
      right: -50px;
      width: 160px;
      height: 160px;
      background: radial-gradient(circle, rgba(223, 186, 104, 0.15) 0%, transparent 70%);
      pointer-events: none;
    }

    .ghost-nickname-modal-backdrop.is-active .ghost-nickname-card {
      transform: scale(1) translateY(0);
    }

    .ghost-modal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-bottom: 1px solid rgba(223, 186, 104, 0.25);
      padding-bottom: 10px;
      gap: 10px;
    }

    .ghost-modal-seal {
      font-size: 0.68rem;
      background: linear-gradient(135deg, #b8332a, #8e221a);
      color: #fff9ee;
      padding: 3px 10px;
      border-radius: 6px;
      border: 1px solid rgba(223, 186, 104, 0.55);
      font-weight: 800;
      letter-spacing: 0.08em;
      box-shadow: 0 2px 8px rgba(184, 51, 42, 0.4);
    }

    .ghost-modal-title {
      font-size: 1.05rem;
      font-weight: 900;
      color: var(--c-gold-light, #f5e4bd);
      letter-spacing: 0.08em;
      flex: 1;
      margin: 0;
    }

    /* 雙欄左右響應式容器 (Desktop & Landscape 2-Column Layout) */
    .ghost-modal-body-grid {
      display: grid;
      grid-template-columns: 185px 1fr;
      gap: 16px;
      align-items: stretch;
    }

    .ghost-modal-left-col {
      display: flex;
      flex-direction: column;
    }

    .ghost-modal-right-col {
      display: flex;
      flex-direction: column;
      gap: 10px;
      justify-content: space-between;
    }

    /* 幽靈即時靈動展示台 (Stage Preview - 仙靈浮空蓮台) */
    .ghost-preview-stage {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 16px 8px 14px 8px;
      background: radial-gradient(circle at 50% 60%, rgba(223, 186, 104, 0.12) 0%, rgba(10, 8, 7, 0.7) 75%);
      border-radius: 14px;
      border: 1px dashed rgba(223, 186, 104, 0.35);
      position: relative;
      height: 100%;
      min-height: 140px;
      overflow: hidden;
      box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.6);
    }

    /* 背景漂浮微星 */
    .stage-stars-bg {
      position: absolute;
      inset: 0;
      pointer-events: none;
      display: flex;
      justify-content: space-around;
      align-items: center;
      opacity: 0.6;
    }

    .stage-star {
      position: absolute;
      color: #ffd166;
      font-size: 0.7rem;
      animation: starTwinkle 3s infinite ease-in-out alternate;
    }
    .stage-star:nth-child(1) { top: 15%; left: 18%; animation-delay: 0.2s; }
    .stage-star:nth-child(2) { top: 22%; right: 20%; animation-delay: 1.1s; font-size: 0.85rem; }
    .stage-star:nth-child(3) { bottom: 25%; left: 14%; animation-delay: 1.8s; font-size: 0.6rem; }
    .stage-star:nth-child(4) { bottom: 30%; right: 16%; animation-delay: 0.7s; }

    @keyframes starTwinkle {
      0% { opacity: 0.2; transform: scale(0.8) translateY(0); }
      100% { opacity: 1; transform: scale(1.3) translateY(-4px); text-shadow: 0 0 8px #ffd166; }
    }

    .ghost-preview-avatar {
      --ghost-color: #70d6ff;
      --ghost-glow: #38b6ff;
      position: relative;
      width: 68px;
      height: 74px;
      margin-bottom: 10px;
      animation: ghostPreviewFloat 3s infinite ease-in-out;
      z-index: 2;
    }

    @keyframes ghostPreviewFloat {
      0%, 100% { transform: translateY(0) rotate(0deg); }
      50% { transform: translateY(-8px) rotate(2.5deg); }
    }

    /* 蓮台同心光暈底座 */
    .ghost-preview-stage::after {
      content: '';
      position: absolute;
      bottom: 42px;
      width: 70px;
      height: 16px;
      background: radial-gradient(ellipse, var(--ghost-glow, #38b6ff) 0%, transparent 70%);
      opacity: 0.45;
      border-radius: 50%;
      animation: lotusGlowPulse 3s infinite ease-in-out;
    }

    @keyframes lotusGlowPulse {
      0%, 100% { transform: scale(1); opacity: 0.35; }
      50% { transform: scale(1.3); opacity: 0.65; }
    }

    .pixel-ghost-figure {
      width: 100%;
      height: 100%;
      background: var(--ghost-color);
      border-radius: 35px 35px 8px 8px;
      position: relative;
      box-shadow: 0 0 20px var(--ghost-glow), inset 0 3px 6px rgba(255, 255, 255, 0.7), inset 0 -3px 6px rgba(0, 0, 0, 0.15);
      opacity: 0.92;
      transition: background 0.3s ease, box-shadow 0.3s ease;
    }

    /* 可愛拍動小短手 */
    .ghost-cute-arm {
      position: absolute;
      width: 16px;
      height: 16px;
      background: var(--ghost-color);
      border-radius: 50%;
      top: 34px;
      box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.6);
      transition: background 0.3s ease;
    }

    .ghost-cute-arm.left {
      left: -8px;
      animation: armFlapLeft 2.4s infinite ease-in-out;
    }

    .ghost-cute-arm.right {
      right: -8px;
      animation: armFlapRight 2.4s infinite ease-in-out;
    }

    @keyframes armFlapLeft {
      0%, 100% { transform: rotate(0deg) translateY(0); }
      50% { transform: rotate(-22deg) translateY(-4px); }
    }

    @keyframes armFlapRight {
      0%, 100% { transform: rotate(0deg) translateY(0); }
      50% { transform: rotate(22deg) translateY(-4px); }
    }

    /* 頭頂小金星髮飾 */
    .ghost-star-hairpin {
      position: absolute;
      top: -6px;
      right: 8px;
      font-size: 0.85rem;
      color: #ffe066;
      filter: drop-shadow(0 0 6px #ffd166);
      animation: hairpinSpin 4s infinite linear;
      z-index: 5;
    }

    @keyframes hairpinSpin {
      0%, 100% { transform: rotate(-10deg) scale(1); }
      50% { transform: rotate(15deg) scale(1.15); }
    }

    /* 裙擺可愛波浪 */
    .ghost-skirt-waves {
      position: absolute;
      bottom: -6px;
      left: 0;
      right: 0;
      height: 12px;
      background: radial-gradient(circle at 7px 0, transparent 6px, var(--ghost-color) 7px);
      background-size: 13.6px 12px;
      transition: background 0.3s ease;
    }

    /* 水汪汪眨眼大眼睛 */
    .ghost-eyes {
      position: absolute;
      top: 22px;
      left: 17px;
      right: 17px;
      display: flex;
      justify-content: space-between;
    }

    .ghost-eye {
      width: 8px;
      height: 11px;
      background: #141216;
      border-radius: 50%;
      position: relative;
      animation: chibiBlink 4.5s infinite ease-in-out;
    }

    .ghost-eye::after {
      content: '';
      position: absolute;
      top: 2px;
      right: 1.5px;
      width: 3px;
      height: 3px;
      background: #ffffff;
      border-radius: 50%;
    }

    .ghost-eye::before {
      content: '';
      position: absolute;
      bottom: 2px;
      left: 1.5px;
      width: 2px;
      height: 2px;
      background: #cbe9ff;
      border-radius: 50%;
      opacity: 0.8;
    }

    @keyframes chibiBlink {
      0%, 92%, 100% { transform: scaleY(1); }
      96% { transform: scaleY(0.08); }
    }

    /* 可愛微笑 */
    .ghost-smile-mouth {
      position: absolute;
      top: 35px;
      left: 50%;
      transform: translateX(-50%);
      width: 9px;
      height: 4.5px;
      border-bottom: 2px solid #221815;
      border-radius: 0 0 10px 10px;
    }

    .ghost-cheeks {
      position: absolute;
      top: 31px;
      left: 10px;
      right: 10px;
      display: flex;
      justify-content: space-between;
    }

    .ghost-blush {
      width: 9px;
      height: 5px;
      background: #ff5e84;
      border-radius: 50%;
      opacity: 0.75;
      box-shadow: 0 0 6px rgba(255, 94, 132, 0.5);
    }

    /* Pixel 像素風格暱稱卡預覽 (Crisp Retro Badge) */
    .ghost-pixel-name-tag {
      font-family: "DotGothic16", "Press Start 2P", monospace;
      font-size: 0.82rem;
      font-weight: 700;
      color: #ffffff;
      background: rgba(14, 11, 9, 0.94);
      border: 2px solid var(--ghost-glow, #70d6ff);
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.75), 0 0 10px var(--ghost-glow, #70d6ff);
      padding: 4px 12px;
      border-radius: 4px;
      letter-spacing: 0.06em;
      text-shadow: 0 0 8px var(--ghost-glow, #70d6ff);
      image-rendering: pixelated;
      z-index: 3;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 100%;
      transition: border-color 0.3s ease, box-shadow 0.3s ease, text-shadow 0.3s ease;
    }

    /* 表單組件 */
    .ghost-form-group {
      display: flex;
      flex-direction: column;
      gap: 5px;
    }

    .ghost-form-label {
      font-size: 0.76rem;
      font-weight: 700;
      color: var(--c-gold-light, #f5e4bd);
      letter-spacing: 0.04em;
    }

    .ghost-input-row {
      display: flex;
      gap: 6px;
    }

    .ghost-input-row input {
      flex: 1;
      background: rgba(12, 9, 8, 0.88);
      border: 1.5px solid rgba(223, 186, 104, 0.45);
      border-radius: 8px;
      padding: 7px 12px;
      color: #fff8eb;
      font-size: 0.88rem;
      font-family: inherit;
      outline: none;
      transition: all 0.25s ease;
      box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
      min-width: 0;
    }

    .ghost-input-row input:focus {
      border-color: var(--c-gold, #dfba68);
      box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6), 0 0 12px rgba(223, 186, 104, 0.4);
    }

    .ghost-dice-btn {
      background: linear-gradient(135deg, rgba(223, 186, 104, 0.22) 0%, rgba(184, 134, 40, 0.28) 100%);
      border: 1.5px solid rgba(223, 186, 104, 0.55);
      border-radius: 8px;
      color: #fff0cf;
      padding: 0 12px;
      font-size: 0.78rem;
      font-weight: 700;
      cursor: pointer;
      font-family: inherit;
      transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
      white-space: nowrap;
      user-select: none;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.4);
      flex-shrink: 0;
    }

    .ghost-dice-btn:hover {
      background: linear-gradient(135deg, rgba(223, 186, 104, 0.38) 0%, rgba(184, 134, 40, 0.45) 100%);
      border-color: #dfba68;
      color: #ffffff;
      transform: translateY(-1.5px);
      box-shadow: 0 6px 16px rgba(0,0,0,0.5), 0 0 12px rgba(223, 186, 104, 0.4);
    }

    .ghost-dice-btn:active .dice-icon {
      animation: diceRollAnim 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    @keyframes diceRollAnim {
      0% { transform: rotate(0deg) scale(1); }
      50% { transform: rotate(180deg) scale(1.3); }
      100% { transform: rotate(360deg) scale(1); }
    }

    /* 文人雅趣主題快速詞標籤 (Quick Persona Chips) */
    .ghost-persona-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 4px;
      margin-top: 1px;
    }

    .persona-chip {
      background: rgba(223, 186, 104, 0.08);
      border: 1px solid rgba(223, 186, 104, 0.25);
      color: #dfd7cc;
      font-size: 0.65rem;
      padding: 2px 7px;
      border-radius: 20px;
      cursor: pointer;
      transition: all 0.2s ease;
      user-select: none;
      white-space: nowrap;
    }

    .persona-chip:hover {
      background: rgba(223, 186, 104, 0.22);
      border-color: rgba(223, 186, 104, 0.6);
      color: #ffffff;
      transform: translateY(-1px);
    }

    /* 靈光寶石調色盤 (Gemstone Palette) */
    .ghost-color-palette {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 5px;
    }

    .ghost-color-swatch {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      background: rgba(22, 18, 15, 0.85);
      border: 1.5px solid rgba(255, 255, 255, 0.12);
      border-radius: 8px;
      padding: 5px 7px;
      cursor: pointer;
      color: #dfd7cc;
      font-size: 0.70rem;
      font-family: inherit;
      transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
      user-select: none;
      -webkit-tap-highlight-color: transparent;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
      white-space: nowrap;
    }

    .ghost-color-swatch:hover {
      border-color: var(--swatch-color);
      background: rgba(38, 30, 25, 0.95);
      color: #ffffff;
      transform: translateY(-1.5px);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), 0 0 10px var(--swatch-glow);
    }

    .ghost-color-swatch.is-selected {
      border-color: var(--swatch-color);
      background: linear-gradient(135deg, rgba(48, 38, 32, 0.98), rgba(28, 22, 18, 0.98));
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.7), 0 0 12px var(--swatch-glow);
      font-weight: 800;
      color: #ffffff;
      transform: translateY(-1px);
    }

    .ghost-color-swatch .swatch-dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      display: inline-block;
      flex-shrink: 0;
      transition: transform 0.2s ease;
    }

    .ghost-color-swatch.is-selected .swatch-dot {
      transform: scale(1.15);
    }

    /* 確認進入按鈕 (Palace Gold Shimmer CTA) */
    .ghost-confirm-btn {
      width: 100%;
      background: linear-gradient(135deg, #dfba68 0%, #c29333 100%);
      color: #1a120b;
      border: 1.5px solid #ffdf94;
      border-radius: 10px;
      padding: 10px 16px;
      font-size: 0.92rem;
      font-weight: 900;
      font-family: inherit;
      cursor: pointer;
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55), 0 0 16px rgba(223, 186, 104, 0.45);
      transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
      letter-spacing: 0.08em;
      margin-top: 2px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
    }

    .ghost-confirm-btn:hover {
      background: linear-gradient(135deg, #fae09c 0%, #dda73d 100%);
      transform: translateY(-2px);
      box-shadow: 0 8px 26px rgba(0, 0, 0, 0.7), 0 0 22px rgba(223, 186, 104, 0.65);
      color: #0d0805;
    }

    .ghost-confirm-btn:active {
      transform: translateY(0) scale(0.98);
    }

    /* 📱 手機橫屏極致緊湊適配 (Mobile Landscape Extreme Fit) */
    @media (max-height: 540px) or (max-width: 680px) {
      .ghost-nickname-card {
        padding: 10px 14px;
        max-width: min(540px, 96vw);
        max-height: calc(100dvh - 16px);
        gap: 6px;
        border-radius: 14px;
      }
      .ghost-modal-header {
        padding-bottom: 5px;
      }
      .ghost-modal-title {
        font-size: 0.88rem;
      }
      .ghost-modal-seal {
        font-size: 0.62rem;
        padding: 2px 7px;
      }
      .ghost-modal-body-grid {
        grid-template-columns: 130px 1fr;
        gap: 10px;
      }
      .ghost-preview-stage {
        min-height: 100px;
        padding: 6px 4px;
      }
      .ghost-preview-avatar {
        width: 48px;
        height: 52px;
        margin-bottom: 4px;
      }
      .ghost-pixel-name-tag {
        font-size: 0.68rem;
        padding: 2px 6px;
      }
      .ghost-form-group {
        gap: 2px;
      }
      .ghost-form-label {
        font-size: 0.68rem;
      }
      .ghost-input-row input {
        padding: 4px 7px;
        font-size: 0.78rem;
      }
      .ghost-dice-btn {
        padding: 0 8px;
        font-size: 0.70rem;
      }
      .ghost-form-hint {
        display: none;
      }
      .persona-chip {
        font-size: 0.56rem;
        padding: 1px 4px;
      }
      .ghost-color-palette {
        grid-template-columns: repeat(4, 1fr);
        gap: 3px;
      }
      .ghost-color-swatch {
        padding: 2px 4px;
        font-size: 0.58rem;
        gap: 3px;
      }
      .ghost-color-swatch .swatch-dot {
        width: 7px;
        height: 7px;
      }
      .ghost-confirm-btn {
        padding: 6px 10px;
        font-size: 0.78rem;
        margin-top: 1px;
      }
    }

    /* 📱 極窄直屏手機適配 (Ultra Narrow Portrait Fallback) */
    @media (max-width: 480px) and (orientation: portrait) {
      .ghost-nickname-card {
        padding: 12px 14px;
        max-height: calc(100dvh - 20px);
        gap: 8px;
      }
      .ghost-modal-body-grid {
        display: flex;
        flex-direction: column;
        gap: 8px;
      }
      .ghost-preview-stage {
        min-height: 95px;
        padding: 6px 4px;
      }
      .ghost-color-palette {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
      }
      .ghost-form-hint {
        display: none;
      }
    }

    /* 右上角優雅 Toast 提示容器 */
    .ghost-toast-container {
      position: fixed;
      top: 68px;
      left: 16px;
      z-index: 9999;
      display: flex;
      flex-direction: column;
      gap: 8px;
      pointer-events: none;
    }

    .ghost-toast-item {
      background: rgba(18, 14, 12, 0.92);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border: 1px solid rgba(112, 214, 255, 0.45);
      border-radius: 20px;
      padding: 6px 14px;
      color: #f0f8ff;
      font-size: 0.74rem;
      font-family: inherit;
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
      animation: ghostToastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
      transition: opacity 0.35s ease, transform 0.35s ease;
      letter-spacing: 0.03em;
    }

    /* =============================================================
       💬 幽靈即時表情與作揖互動快捷盤 (Ghost Reactions Dock - 純 Icon 精簡模式)
       ============================================================= */
    .ghost-reaction-dock {
      position: fixed;
      right: clamp(14px, 2.5vw, 24px);
      bottom: 62px;
      z-index: 88;
      display: flex;
      align-items: center;
      gap: 6px;
      background: rgba(20, 15, 12, 0.90);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      border: 1.5px solid rgba(223, 186, 104, 0.45);
      border-radius: 30px;
      padding: 5px 8px;
      box-shadow: 0 10px 32px rgba(0, 0, 0, 0.7), 0 0 18px rgba(223, 186, 104, 0.2);
      user-select: none;
      transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    body.drawer-open .ghost-reaction-dock,
    body:has(#tourActionsGroup.is-open) .ghost-reaction-dock {
      opacity: 0;
      pointer-events: none;
      transform: translateY(10px);
    }

    .ghost-reaction-dock-title {
      display: none;
    }

    .ghost-reaction-btn {
      background: rgba(223, 186, 104, 0.10);
      border: 1px solid rgba(223, 186, 104, 0.3);
      border-radius: 50%;
      width: 38px;
      height: 38px;
      padding: 0;
      color: #fff6e0;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
      position: relative;
    }

    .ghost-reaction-btn:hover {
      background: rgba(223, 186, 104, 0.32);
      border-color: #dfba68;
      color: #ffffff;
      transform: translateY(-2px) scale(1.1);
      box-shadow: 0 4px 14px rgba(223, 186, 104, 0.35);
    }

    .ghost-reaction-btn:active {
      transform: translateY(0) scale(0.95);
    }

    .ghost-reaction-btn .reaction-icon {
      font-size: 1.15rem;
      line-height: 1;
    }

    .ghost-reaction-btn .reaction-label,
    .ghost-reaction-btn .reaction-key {
      display: none;
    }

    @media (max-width: 768px), (max-height: 580px) {
      .ghost-reaction-dock {
        right: 10px;
        bottom: 52px;
        padding: 4px 6px;
        gap: 5px;
        border-radius: 24px;
      }
      .ghost-reaction-dock-title {
        display: none;
      }
      .ghost-reaction-btn {
        width: 32px;
        height: 32px;
        border-radius: 50%;
      }
      .ghost-reaction-btn .reaction-icon {
        font-size: 1.0rem;
      }
    }

    /* =============================================================
       🏮 點亮祈願天燈／心願宮燈彈窗樣式 (Wish Lantern Modal)
       ============================================================= */
    .wish-lantern-box {
      max-width: 820px !important;
      width: min(94vw, 820px) !important;
      margin: auto !important;
      background: linear-gradient(150deg, #1c1410 0%, #110d0a 100%) !important;
      border: 2px solid var(--c-gold, #dfba68) !important;
      box-shadow: 0 24px 70px rgba(0,0,0,0.92), 0 0 35px rgba(223, 186, 104, 0.28) !important;
      border-radius: 14px;
      padding: clamp(14px, 2.5vw, 22px) !important;
      display: flex;
      flex-direction: column;
      gap: 12px;
      max-height: min(90vh, 740px);
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      position: relative;
    }

    .wish-lantern-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-bottom: 2px solid rgba(223, 186, 104, 0.3);
      padding-bottom: 8px;
      flex-wrap: wrap;
      gap: 8px;
    }

    .wish-lantern-grid {
      display: grid;
      grid-template-columns: 240px 1fr;
      gap: 16px;
      align-items: stretch;
    }

    .wish-lantern-preview-card {
      background: radial-gradient(circle at 50% 45%, rgba(45, 30, 22, 0.95) 0%, rgba(18, 12, 9, 0.98) 100%);
      border: 1.5px solid rgba(223, 186, 104, 0.35);
      border-radius: 10px;
      padding: 16px 12px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      position: relative;
      overflow: hidden;
      box-shadow: inset 0 0 25px rgba(0,0,0,0.6);
    }

    .wish-lantern-glow-ambient {
      position: absolute;
      width: 130px;
      height: 130px;
      background: radial-gradient(circle, var(--lantern-glow, rgba(235, 110, 50, 0.45)) 0%, transparent 70%);
      border-radius: 50%;
      pointer-events: none;
      animation: lanternGlowPulse 2.5s infinite ease-in-out;
    }

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

    .wish-lantern-3d-mockup {
      width: 90px;
      height: 120px;
      background: var(--lantern-bg, linear-gradient(180deg, #f59e0b 0%, #b8332a 100%));
      border: 2px solid #dfba68;
      border-radius: 14px 14px 18px 18px;
      box-shadow: 0 0 25px var(--lantern-glow, rgba(245, 158, 11, 0.6)), inset 0 0 12px rgba(255, 255, 255, 0.3);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      position: relative;
      z-index: 2;
      animation: lanternFloatGentle 3.5s infinite ease-in-out;
    }

    @keyframes lanternFloatGentle {
      0%, 100% { transform: translateY(0) rotate(0deg); }
      50% { transform: translateY(-8px) rotate(1.5deg); }
    }

    .wish-lantern-3d-mockup::before {
      content: '';
      position: absolute;
      top: -10px;
      width: 28px;
      height: 10px;
      background: #8e2b1e;
      border: 1px solid #dfba68;
      border-radius: 4px 4px 0 0;
    }

    .wish-lantern-3d-mockup::after {
      content: '🏮';
      position: absolute;
      bottom: -18px;
      font-size: 0.9rem;
      filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
    }

    .wish-lantern-mockup-text {
      writing-mode: vertical-rl;
      color: #2b1408;
      font-weight: 900;
      font-size: 0.82rem;
      letter-spacing: 0.15em;
      font-family: var(--font-serif, "Noto Serif TC", serif);
      max-height: 80px;
      overflow: hidden;
      text-shadow: 0 0 3px rgba(255,255,255,0.6);
    }

    .wish-lantern-style-picker {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 6px;
    }

    .wish-lantern-style-btn {
      background: rgba(30, 22, 17, 0.85);
      border: 1.5px solid rgba(223, 186, 104, 0.3);
      border-radius: 8px;
      padding: 6px;
      color: #f7e6c4;
      font-size: 0.72rem;
      cursor: pointer;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
      transition: all 0.2s ease;
      font-family: inherit;
    }

    .wish-lantern-style-btn.is-active {
      border-color: #dfba68;
      background: rgba(223, 186, 104, 0.22);
      box-shadow: 0 0 12px rgba(223, 186, 104, 0.4);
      transform: scale(1.04);
    }

    .wish-lantern-launch-btn {
      width: 100%;
      background: linear-gradient(135deg, #dfba68 0%, #b8332a 100%);
      color: #ffffff;
      border: 1.5px solid #dfba68;
      padding: 10px 18px;
      border-radius: 8px;
      font-size: 0.95rem;
      font-weight: 700;
      font-family: inherit;
      cursor: pointer;
      box-shadow: 0 6px 20px rgba(184, 51, 42, 0.5);
      transition: all 0.25s ease;
      letter-spacing: 0.06em;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      margin-top: 6px;
    }

    .wish-lantern-launch-btn:hover:not(:disabled) {
      transform: translateY(-2px);
      box-shadow: 0 8px 25px rgba(223, 186, 104, 0.7);
      filter: brightness(1.1);
    }

    @media (max-width: 720px) {
      .wish-lantern-grid {
        grid-template-columns: 1fr;
        gap: 12px;
      }
      .wish-lantern-preview-card {
        padding: 10px;
        min-height: 120px;
      }
      .wish-lantern-3d-mockup {
        width: 70px;
        height: 90px;
      }
    }
