/* ==========================================================================
   ARCANIKA DESKTOP DESIGN SYSTEM (desktop.css)
   Стили и визуальное оформление веб-версии Mira App (ПК / Widescreen)
   ========================================================================== */

    :root {
      --app-height: 100dvh;
      --safe-top: var(--tg-safe-area-inset-top, env(safe-area-inset-top, 78px));
      --safe-bottom: var(--tg-safe-area-inset-bottom, env(safe-area-inset-bottom, 0px));
    }

    html, body {
      position: relative !important;
      width: 100vw !important;
      min-width: 100vw !important;
      height: 100vh !important;
      max-height: 100vh !important;
      margin: 0 !important;
      padding: 0 !important;
      overflow: hidden !important;
      background-color: #080310 !important;
      background-image: none !important;
      color: #FFFFFF !important;
      font-family: 'Plus Jakarta Sans', sans-serif !important;
    }

    #app-root {
      width: 100vw !important;
      max-width: 100vw !important;
      min-width: 100vw !important;
      height: 100vh !important;
      max-height: 100vh !important;
      display: flex !important;
      flex-direction: column !important;
      overflow: hidden !important;
      background: transparent !important;
    }

    #view-home {
      height: 100% !important;
      max-height: 100% !important;
      overflow: hidden !important;
      overscroll-behavior: none !important;
      overscroll-behavior-y: none !important;
      overscroll-behavior-x: none !important;
      touch-action: none !important; /* Фоновая плоскость главного экрана абсолютно неподвижна */
    }

    #spread-modal {
      overflow-x: hidden !important;
      max-width: 100vw !important;
      width: 100% !important;
      overscroll-behavior-x: none !important;
      touch-action: pan-y !important;
    }

    #tarot-catalogue-modal,
    #spread-detail-modal {
      overflow-y: auto !important;
      overflow-x: hidden !important;
      -webkit-overflow-scrolling: touch !important;
      touch-action: pan-y !important;
      overscroll-behavior-y: contain !important;
    }

    #tarot-catalogue-modal > div,
    #spread-detail-modal > div {
      flex-shrink: 0 !important;
      min-height: min-content !important;
      touch-action: pan-y !important;
    }

    #theme-filter-chips {
      overflow-x: auto !important;
      -webkit-overflow-scrolling: touch !important;
      touch-action: pan-x !important;
      overscroll-behavior-x: contain !important;
    }

    #modal-orb-ritual-box {
      overflow: visible !important;
      max-width: 100% !important;
      width: 100% !important;
      overscroll-behavior-x: none !important;
    }

    #modal-reveal-box {
      max-width: 100% !important;
      width: 100% !important;
      touch-action: pan-y !important;
      overscroll-behavior-y: contain !important;
      -webkit-overflow-scrolling: touch !important;
    }

    #view-diary {
      touch-action: pan-y !important;
      overscroll-behavior-y: contain !important;
      -webkit-overflow-scrolling: touch !important;
      scrollbar-width: none;
      -ms-overflow-style: none;
      mask-image: linear-gradient(to bottom, black 0%, black calc(100% - 95px), transparent 100%);
      -webkit-mask-image: linear-gradient(to bottom, black 0%, black calc(100% - 95px), transparent 100%);
    }
    #view-diary::-webkit-scrollbar {
      display: none;
    }

    #view-random {
      touch-action: pan-y !important;
      overscroll-behavior-y: contain !important;
      -webkit-overflow-scrolling: touch !important;
      scrollbar-width: none;
      -ms-overflow-style: none;
      mask-image: linear-gradient(to bottom, black 0%, black calc(100% - 95px), transparent 100%);
      -webkit-mask-image: linear-gradient(to bottom, black 0%, black calc(100% - 95px), transparent 100%);
    }
    #view-random::-webkit-scrollbar {
      display: none;
    }

    #view-random,
    #view-diary,
    #view-analytics,
    #view-profile,
    #view-numerology,
    #view-meditations {
      padding-top: var(--header-pt, calc(var(--safe-top, env(safe-area-inset-top, 10px)) + 8px)) !important;
    }

    #view-games {
      padding-top: 0 !important;
      padding-bottom: 0 !important;
    }

    .games-hero-content {
      padding-top: var(--header-pt, calc(var(--safe-top, env(safe-area-inset-top, 10px)) + 8px)) !important;
      touch-action: pan-y !important;
      overscroll-behavior-y: contain !important;
      -webkit-overflow-scrolling: touch !important;
    }

    @keyframes floatSubtle {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-4px); }
    }
    .animate-float-subtle {
      animation: floatSubtle 4s ease-in-out infinite;
    }

    #mira-top-bar {
      padding-top: var(--header-pt, calc(var(--safe-top, env(safe-area-inset-top, 10px)) + 8px)) !important;
      background: transparent !important;
      border: none !important;
      border-bottom: none !important;
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
    }

    #view-mira,
    #view-analytics,
    #view-profile,
    #view-games,
    .games-hero-content,
    #view-numerology,
    #view-meditations {
      touch-action: pan-y !important;
      overscroll-behavior-y: contain !important;
      -webkit-overflow-scrolling: touch !important;
    }

    /* Тропа 22 Арканов Квеста «Путь Героя» */
    .quest-step-pill {
      flex: 0 0 auto;
      width: 48px;
      height: 58px;
      border-radius: 14px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 2px;
      background: rgba(18, 6, 38, 0.88);
      border: 1px solid rgba(168, 85, 247, 0.35);
      cursor: pointer;
      user-select: none;
      transition: all 0.22s ease;
      position: relative;
    }
    .quest-step-pill.is-active {
      background: linear-gradient(135deg, rgba(245, 211, 123, 0.28) 0%, rgba(168, 85, 247, 0.28) 100%), rgba(26, 10, 54, 0.95);
      border: 1.5px solid rgba(245, 211, 123, 0.95);
      box-shadow: 0 0 16px rgba(245, 211, 123, 0.45);
      transform: translateY(-2px) scale(1.04);
    }
    .quest-step-pill.is-done {
      border-color: rgba(52, 211, 153, 0.5);
      background: rgba(6, 44, 30, 0.7);
    }
    .quest-step-pill.is-locked {
      opacity: 0.45;
      cursor: not-allowed;
      filter: grayscale(0.5);
    }

    .numerology-filter-chip {
      background: rgba(38, 16, 74, 0.95);
      border: 1.5px solid rgba(192, 132, 252, 0.55);
      color: #FFFFFF;
      font-weight: 700;
      letter-spacing: 0.01em;
      white-space: nowrap;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), inset 0 1px 1.5px rgba(255, 255, 255, 0.25);
      user-select: none;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
      transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    .numerology-filter-chip:active {
      transform: scale(0.95);
    }
    .numerology-filter-chip.active {
      background: linear-gradient(135deg, #FFFFFF 0%, #FEF08A 45%, #F59E0B 100%) !important;
      color: #0B0218 !important;
      border: 1.5px solid #FEF08A !important;
      font-weight: 800 !important;
      box-shadow: 0 0 20px rgba(245, 158, 11, 0.7), 0 4px 14px rgba(0, 0, 0, 0.6) !important;
    }
    .numerology-filter-chip.num-chip-angel {
      background: rgba(10, 36, 60, 0.95) !important;
      border: 1.5px solid rgba(34, 211, 238, 0.75) !important;
      color: #E0F2FE !important;
      box-shadow: 0 0 14px rgba(6, 182, 212, 0.4), 0 4px 12px rgba(0, 0, 0, 0.5) !important;
    }
    .numerology-filter-chip.num-chip-angel:active {
      background: rgba(8, 51, 68, 0.95) !important;
    }
    .numerology-filter-chip.num-chip-lunar {
      background: rgba(54, 28, 8, 0.95) !important;
      border: 1.5px solid rgba(251, 191, 36, 0.75) !important;
      color: #FEF3C7 !important;
      box-shadow: 0 0 14px rgba(245, 158, 11, 0.4), 0 4px 12px rgba(0, 0, 0, 0.5) !important;
    }
    .numerology-filter-chip.num-chip-lunar:active {
      background: rgba(69, 36, 10, 0.95) !important;
    }

    /* Высококонтрастная плашка: Мира видит */
    .mira-vidit-box {
      background: linear-gradient(135deg, rgba(34, 12, 64, 0.96) 0%, rgba(18, 5, 36, 0.98) 100%) !important;
      border: 1.5px solid rgba(251, 191, 36, 0.6) !important;
      border-radius: 18px !important;
      box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65), 0 0 20px rgba(245, 158, 11, 0.18), inset 0 1px 1px rgba(255, 255, 255, 0.25) !important;
    }
    .mira-vidit-box p {
      color: #FFFFFF !important;
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
      font-size: 14px !important;
      font-weight: 500 !important;
      font-style: normal !important;
      letter-spacing: 0.015em !important;
      line-height: 1.65 !important;
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
    }

    .game-filter-chip {
      background: rgba(30, 10, 60, 0.7);
      border: 1px solid rgba(168, 85, 247, 0.4);
      color: rgba(233, 213, 255, 0.95);
      user-select: none;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
    }
    .game-filter-chip.active {
      background: linear-gradient(135deg, #FFFFFF 0%, #F5EEDB 100%);
      color: #0E0420;
      border-color: #FFFFFF;
      font-weight: 700;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    }

    /* 3D КУБИК СУДЬБЫ */
    .dice-scene {
      width: 56px;
      height: 56px;
      perspective: 350px;
      margin: 0 auto;
      cursor: pointer;
    }
    .dice-cube {
      width: 100%;
      height: 100%;
      position: relative;
      transform-style: preserve-3d;
      transition: transform 0.8s cubic-bezier(0.2, 0.9, 0.3, 1.2);
    }
    .dice-cube.rolling {
      animation: diceRollAnim 2.85s cubic-bezier(0.25, 1, 0.5, 1);
    }
    @keyframes diceRollAnim {
      0% { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg) translateY(0); }
      18% { transform: rotateX(360deg) rotateY(240deg) rotateZ(90deg) translateY(-36px) scale(1.16); }
      38% { transform: rotateX(720deg) rotateY(500deg) rotateZ(190deg) translateY(-26px) scale(1.1); }
      58% { transform: rotateX(1100deg) rotateY(760deg) rotateZ(300deg) translateY(-16px) scale(1.06); }
      78% { transform: rotateX(1460deg) rotateY(1020deg) rotateZ(420deg) translateY(-8px) scale(1.03); }
      90% { transform: rotateX(1680deg) rotateY(1220deg) rotateZ(540deg) translateY(-2px) scale(1.01); }
      100% { transform: rotateX(1800deg) rotateY(1440deg) rotateZ(720deg) translateY(0) scale(1); }
    }
    .dice-face {
      position: absolute;
      width: 56px;
      height: 56px;
      border-radius: 14px;
      background: linear-gradient(135deg, #2b0c54 0%, #130328 100%);
      border: 2px solid #fde047;
      box-shadow: inset 0 0 10px rgba(253, 224, 71, 0.45), 0 0 15px rgba(168, 85, 247, 0.5);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 22px;
      font-weight: 800;
      color: #fffbeb;
      text-shadow: 0 0 8px #f59e0b;
      user-select: none;
    }
    .dice-face-1 { transform: rotateY(0deg) translateZ(28px); }
    .dice-face-2 { transform: rotateY(90deg) translateZ(28px); }
    .dice-face-3 { transform: rotateY(180deg) translateZ(28px); }
    .dice-face-4 { transform: rotateY(-90deg) translateZ(28px); }
    .dice-face-5 { transform: rotateX(90deg) translateZ(28px); }
    .dice-face-6 { transform: rotateX(-90deg) translateZ(28px); }

    /* КЛЕТКИ ИГРОВОГО ПОЛЯ */
    .board-track-node {
      position: absolute;
      width: 38px;
      height: 38px;
      border-radius: 50%;
      background: rgba(16, 6, 32, 0.9);
      border: 1.5px solid rgba(253, 224, 71, 0.55);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      box-shadow: 0 0 12px rgba(168, 85, 247, 0.45), inset 0 0 6px rgba(253, 224, 71, 0.25);
      transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
      cursor: pointer;
      user-select: none;
      z-index: 15;
      transform: translate(-50%, -50%);
    }
    .board-track-node:active {
      transform: translate(-50%, -50%) scale(0.92);
    }
    .board-track-node.active-step {
      border-color: #fde047;
      background: linear-gradient(135deg, rgba(245, 158, 11, 0.7) 0%, rgba(168, 85, 247, 0.8) 100%);
      box-shadow: 0 0 24px rgba(253, 224, 71, 0.95), inset 0 0 10px #fffbeb;
      transform: translate(-50%, -50%) scale(1.18);
      z-index: 25;
    }
    /* 3D СЦЕНА ИГРОВОГО СТОЛА ТАРО */
    .arena-board-scene {
      perspective: 1100px;
      perspective-origin: 50% 36%;
    }
    #arena-board-wrapper {
      transform: rotateX(13.5deg) translateZ(0);
      transform-style: preserve-3d;
      transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
      box-shadow: 0 30px 75px -10px rgba(0, 0, 0, 0.98), 0 20px 45px rgba(147, 51, 234, 0.35), 0 0 45px rgba(245, 158, 11, 0.35), inset 0 2px 4px rgba(255, 255, 255, 0.35), inset 0 -4px 12px rgba(0, 0, 0, 0.9);
    }
    .board-pawn {
      position: absolute;
      transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
      pointer-events: none;
      z-index: 30;
      filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 10px rgba(253, 224, 71, 0.9));
      transform: translate(-50%, -70%) rotateX(-13.5deg);
    }
    #arena-top-header {
      padding-top: calc(max(var(--safe-top, 54px), 54px, env(safe-area-inset-top, 54px)) + 6px) !important;
    }
    @media (min-width: 1024px) {
      #arena-top-header {
        padding-top: 14px !important;
      }
    }
    .arena-speech-bubble {
      position: relative;
      background: rgba(22, 9, 44, 0.94);
      border: 1px solid rgba(253, 224, 71, 0.45);
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(168, 85, 247, 0.3);
    }
    .arena-speech-bubble::before {
      content: '';
      position: absolute;
      top: 14px;
      left: -7px;
      width: 0;
      height: 0;
      border-top: 5px solid transparent;
      border-bottom: 5px solid transparent;
      border-right: 7px solid rgba(253, 224, 71, 0.5);
    }
    .arena-speech-bubble-right {
      position: relative;
      background: rgba(22, 9, 44, 0.94);
      border: 1px solid rgba(253, 224, 71, 0.45);
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(168, 85, 247, 0.3);
    }
    .arena-speech-bubble-right::before {
      content: '';
      position: absolute;
      top: 14px;
      right: -7px;
      width: 0;
      height: 0;
      border-top: 5px solid transparent;
      border-bottom: 5px solid transparent;
      border-left: 7px solid rgba(253, 224, 71, 0.5);
    }

    /* 2 ИГРАЛЬНЫХ КУБИКА (2 x D6) В НАСТОЯЩЕМ 3D */
    .dual-dice-scene {
      width: 46px;
      height: 46px;
      perspective: 420px;
      cursor: pointer;
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    .dual-dice-scene:hover {
      transform: scale(1.08);
    }
    .dual-dice-cube {
      width: 44px;
      height: 44px;
      position: relative;
      transform-style: preserve-3d;
      transition: transform 0.6s cubic-bezier(0.18, 0.9, 0.25, 1.15);
      z-index: 2;
    }
    .dual-dice-cube-1.rolling {
      animation: diceRollAnim1 2.85s cubic-bezier(0.25, 1, 0.5, 1);
    }
    .dual-dice-cube-2.rolling {
      animation: diceRollAnim2 2.85s cubic-bezier(0.25, 1, 0.5, 1);
    }
    @keyframes diceRollAnim1 {
      0% { transform: rotateX(-16deg) rotateY(20deg) translateY(0); }
      14% { transform: rotateX(320deg) rotateY(210deg) rotateZ(70deg) translateY(-38px) scale(1.16); }
      32% { transform: rotateX(720deg) rotateY(460deg) rotateZ(190deg) translateY(-28px) scale(1.12); }
      52% { transform: rotateX(1120deg) rotateY(740deg) rotateZ(320deg) translateY(-18px) scale(1.08); }
      72% { transform: rotateX(1500deg) rotateY(1040deg) rotateZ(460deg) translateY(-9px) scale(1.04); }
      88% { transform: rotateX(1740deg) rotateY(1280deg) rotateZ(600deg) translateY(-3px) scale(1.01); }
      100% { transform: rotateX(1880deg) rotateY(1440deg) rotateZ(720deg) translateY(0) scale(1); }
    }
    @keyframes diceRollAnim2 {
      0% { transform: rotateX(-16deg) rotateY(-20deg) translateY(0); }
      14% { transform: rotateX(-300deg) rotateY(-220deg) rotateZ(-70deg) translateY(-40px) scale(1.16); }
      32% { transform: rotateX(-700deg) rotateY(-480deg) rotateZ(-190deg) translateY(-30px) scale(1.12); }
      52% { transform: rotateX(-1100deg) rotateY(-760deg) rotateZ(-320deg) translateY(-19px) scale(1.08); }
      72% { transform: rotateX(-1480deg) rotateY(-1060deg) rotateZ(-460deg) translateY(-9px) scale(1.04); }
      88% { transform: rotateX(-1720deg) rotateY(-1300deg) rotateZ(-600deg) translateY(-3px) scale(1.01); }
      100% { transform: rotateX(-1880deg) rotateY(-1440deg) rotateZ(-720deg) translateY(0) scale(1); }
    }
    .dual-dice-shadow {
      position: absolute;
      bottom: -6px;
      left: 50%;
      width: 36px;
      height: 9px;
      transform: translateX(-50%);
      background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 72%);
      border-radius: 50%;
      pointer-events: none;
      transition: transform 2.85s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 2.85s ease;
      z-index: 1;
    }
    .dual-dice-scene.is-rolling .dual-dice-shadow {
      transform: translateX(-50%) scale(0.45);
      opacity: 0.25;
    }
    .dual-dice-face {
      position: absolute;
      width: 44px;
      height: 44px;
      border-radius: 9px;
      background: linear-gradient(145deg, #2a0b4d 0%, #150328 65%, #080112 100%);
      border: 1.5px solid rgba(253, 224, 71, 0.75);
      box-shadow: inset 0 0 7px rgba(253, 224, 71, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.3), 0 3px 8px rgba(0, 0, 0, 0.7);
      box-sizing: border-box;
      backface-visibility: hidden;
      user-select: none;
      overflow: hidden;
    }
    .dual-face-top {
      background: linear-gradient(145deg, #3c0f68 0%, #1c0534 65%, #0c011a 100%);
    }
    .dual-face-1 { transform: rotateY(0deg) translateZ(22px); }
    .dual-face-2 { transform: rotateY(90deg) translateZ(22px); }
    .dual-face-3 { transform: rotateY(180deg) translateZ(22px); }
    .dual-face-4 { transform: rotateY(-90deg) translateZ(22px); }
    .dual-face-5 { transform: rotateX(90deg) translateZ(22px); }
    .dual-face-6 { transform: rotateX(-90deg) translateZ(22px); }

    /* Точки (Pips) для 3D кубиков D6 */
    .dice-pip-grid {
      width: 100%;
      height: 100%;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      grid-template-rows: repeat(3, 1fr);
      padding: 5px;
      box-sizing: border-box;
      place-items: center;
    }
    .dice-pip {
      width: 6.5px;
      height: 6.5px;
      border-radius: 50%;
      background: radial-gradient(circle at 35% 30%, #ffffff 0%, #fef08a 25%, #f59e0b 60%, #b45309 88%, #451a03 100%);
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 0 4px rgba(245, 158, 11, 0.75), inset 0 1px 1px rgba(255, 255, 255, 0.9);
      display: block;
    }
    .dice-pip.pip-single {
      width: 9.5px;
      height: 9.5px;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 0 8px rgba(245, 158, 11, 0.9), inset 0 1.5px 2px #fff;
    }
    .pip-tl { grid-column: 1; grid-row: 1; }
    .pip-tr { grid-column: 3; grid-row: 1; }
    .pip-ml { grid-column: 1; grid-row: 2; }
    .pip-center { grid-column: 2; grid-row: 2; }
    .pip-mr { grid-column: 3; grid-row: 2; }
    .pip-bl { grid-column: 1; grid-row: 3; }
    .pip-br { grid-column: 3; grid-row: 3; }

    /* Анимации для колод Задания и Сюрприза */
    @keyframes deckShakeAnim {
      0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.4)); }
      20% { transform: scale(0.95) rotate(-5deg); filter: drop-shadow(0 0 14px rgba(239, 68, 68, 0.9)); }
      40% { transform: scale(1.05) rotate(5deg); filter: drop-shadow(0 0 14px rgba(239, 68, 68, 0.9)); }
      60% { transform: scale(0.97) rotate(-3deg); filter: drop-shadow(0 0 12px rgba(239, 68, 68, 0.8)); }
      80% { transform: scale(1.03) rotate(2deg); filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.7)); }
    }
    .deck-locked-shake {
      animation: deckShakeAnim 0.5s ease-in-out;
    }
    @keyframes deckGlowPulseAnim {
      0%, 100% { transform: scale(1); filter: drop-shadow(0 0 12px rgba(253, 224, 71, 0.6)); }
      50% { transform: scale(1.2); filter: drop-shadow(0 0 24px rgba(253, 224, 71, 1)) brightness(1.3); }
    }
    .deck-glow-pulse {
      animation: deckGlowPulseAnim 0.75s ease-in-out 3;
      z-index: 35 !important;
    }

    /* Клетки поля Т-игры */
    .panfilov-node {
      position: absolute;
      width: 24px;
      height: 24px;
      border-radius: 6px;
      background: rgba(14, 5, 28, 0.9);
      border: 1px solid rgba(253, 224, 71, 0.55);
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 0 8px rgba(168, 85, 247, 0.4);
      transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
      cursor: pointer;
      user-select: none;
      z-index: 15;
      transform: translate(-50%, -50%);
      font-size: 10px;
    }
    .panfilov-node.active-step {
      border-color: #fde047;
      background: linear-gradient(135deg, rgba(245, 158, 11, 0.8) 0%, rgba(168, 85, 247, 0.9) 100%);
      box-shadow: 0 0 20px rgba(253, 224, 71, 0.95), inset 0 0 8px #fffbeb;
      transform: translate(-50%, -50%) scale(1.3);
      z-index: 25;
    }
    .panfilov-node.node-special {
      border-color: #38bdf8;
      box-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
    }
    .panfilov-node.node-karma {
      border-color: #f43f5e;
      background: rgba(38, 6, 24, 0.88);
    }
    .panfilov-node.node-final {
      border-color: #eab308;
      background: rgba(42, 28, 6, 0.88);
    }
    .panfilov-node.node-energy {
      width: 25px;
      height: 19px;
      border-radius: 5px;
      background: linear-gradient(135deg, rgba(28, 9, 54, 0.92) 0%, rgba(14, 4, 28, 0.96) 100%);
      border: 1px solid rgba(245, 158, 11, 0.75);
      color: #fde047;
      font-size: 7.5px;
      font-weight: 800;
      box-shadow: 0 0 8px rgba(245, 158, 11, 0.35);
    }

    /* МИНИ-КАРТЫ ТАРО НА ПОЛЕ (72 Карты по периметру) */
    .panfilov-mini-card {
      width: 14px;
      height: 21.5px;
      border-radius: 2.5px;
      border: 0.8px solid rgba(245, 158, 11, 0.85);
      background: #090314;
      overflow: visible;
      box-shadow: 0 1.5px 5px rgba(0, 0, 0, 0.85), 0 0 4px rgba(245, 158, 11, 0.3);
      transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
      cursor: pointer;
      position: absolute;
      transform: translate(-50%, -50%);
      z-index: 18;
    }
    @media (min-width: 390px) {
      .panfilov-mini-card {
        width: 15px;
        height: 23px;
      }
    }
    .panfilov-mini-card:hover {
      transform: translate(-50%, -50%) scale(2.2);
      z-index: 50;
      box-shadow: 0 6px 16px rgba(0, 0, 0, 0.95), 0 0 14px rgba(253, 224, 71, 0.9);
      border-color: #fde047;
    }
    .panfilov-mini-card.active-step {
      transform: translate(-50%, -50%) scale(2.4) translateY(-3px);
      z-index: 55;
      border-color: #fef08a;
      box-shadow: 0 0 20px rgba(253, 224, 71, 0.95), 0 0 35px rgba(245, 158, 11, 0.85), 0 8px 16px rgba(0, 0, 0, 0.95);
      animation: cardPulseGlow 1.6s infinite alternate;
    }
    /* Горизонтальные карты по бокам поля (чтобы не перекрывали друг друга и читались по кругу) */
    .panfilov-mini-card.side-card-right {
      transform: translate(-50%, -50%) rotate(90deg);
    }
    .panfilov-mini-card.side-card-left {
      transform: translate(-50%, -50%) rotate(-90deg);
    }
    .panfilov-mini-card.side-card-right:hover,
    .panfilov-mini-card.side-card-left:hover {
      transform: translate(-50%, -50%) rotate(0deg) scale(2.2);
      z-index: 50;
      box-shadow: 0 6px 16px rgba(0, 0, 0, 0.95), 0 0 14px rgba(253, 224, 71, 0.9);
      border-color: #fde047;
    }
    .panfilov-mini-card.side-card-right.active-step,
    .panfilov-mini-card.side-card-left.active-step {
      transform: translate(-50%, -50%) rotate(0deg) scale(2.4) translateY(-3px);
      z-index: 55;
      border-color: #fef08a;
      box-shadow: 0 0 20px rgba(253, 224, 71, 0.95), 0 0 35px rgba(245, 158, 11, 0.85), 0 8px 16px rgba(0, 0, 0, 0.95);
      animation: cardPulseGlow 1.6s infinite alternate;
    }
    @keyframes cardPulseGlow {
      0% { filter: brightness(1) drop-shadow(0 0 4px #f59e0b); }
      100% { filter: brightness(1.25) drop-shadow(0 0 12px #fde047); }
    }
    .panfilov-mini-card .mini-card-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 2px;
      display: block;
      pointer-events: none;
    }
    .panfilov-mini-card .mini-card-glow {
      position: absolute;
      inset: 0;
      border-radius: 2px;
      background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, transparent 60%);
      pointer-events: none;
    }
    .panfilov-mini-card .mini-card-roman {
      position: absolute;
      bottom: -4px;
      left: 50%;
      transform: translateX(-50%);
      font-size: 5px;
      font-weight: 800;
      letter-spacing: -0.02em;
      background: #0d041c;
      color: #fde047;
      padding: 0 1.5px;
      border-radius: 2px;
      border: 0.5px solid rgba(245, 158, 11, 0.7);
      line-height: 1.1;
      white-space: nowrap;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
      pointer-events: none;
    }
    .node-corner {
      width: 25px;
      height: 25px;
      border-radius: 5px;
      border: 1.5px solid #f59e0b;
      background: radial-gradient(circle, #3b0764 0%, #0d041c 100%);
      color: #fde047;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      position: absolute;
      transform: translate(-50%, -50%);
      z-index: 22;
      box-shadow: 0 0 10px rgba(245, 158, 11, 0.65), 0 3px 6px rgba(0, 0, 0, 0.85);
      cursor: pointer;
      transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    .node-corner:hover {
      transform: translate(-50%, -50%) scale(1.3);
      z-index: 45;
      box-shadow: 0 0 18px rgba(253, 224, 71, 0.95);
    }
    .node-corner.active-step {
      transform: translate(-50%, -50%) scale(1.4);
      z-index: 48;
      border-color: #fef08a;
      box-shadow: 0 0 25px rgba(253, 224, 71, 1), 0 0 35px rgba(245, 158, 11, 0.85);
      animation: cardPulseGlow 1.8s infinite alternate;
    }
    .node-corner .corner-glyph {
      font-size: 8.5px;
      line-height: 1;
    }
    .node-corner .corner-title {
      font-size: 5px;
      font-weight: 900;
      letter-spacing: -0.02em;
      color: #fde047;
      text-transform: uppercase;
      line-height: 1;
      margin-top: 1px;
      white-space: nowrap;
    }

    /* ==========================================================================
       DESKTOP RESPONSIVE SIZES FOR TAROT GAME ARENA (КАРТЫ ТАРО И УЗЛЫ)
       ========================================================================== */
    @media (min-width: 1024px) {
      /* Мини-карты Таро по внешнему периметру: увеличенные, четкие, с красивой рамкой */
      .panfilov-mini-card {
        width: 29px !important;
        height: 46px !important;
        border-radius: 4px !important;
        border: 1.2px solid rgba(245, 158, 11, 0.9) !important;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.95), 0 0 10px rgba(245, 158, 11, 0.45) !important;
      }
      /* Боковые карты Таро (слева и справа стола): увеличены в длину до 54px, заполняя свободное пространство */
      .panfilov-mini-card.side-card-right,
      .panfilov-mini-card.side-card-left {
        width: 30px !important;
        height: 54px !important;
      }
      /* Римский номер аркана под картой */
      .panfilov-mini-card .mini-card-roman {
        font-size: 8px !important;
        bottom: -6px !important;
        padding: 0 3px !important;
        border-radius: 3px !important;
        border-width: 0.8px !important;
      }
      /* Угловые сакральные порталы */
      .node-corner {
        width: 44px !important;
        height: 44px !important;
        border-radius: 8px !important;
        border-width: 2px !important;
      }
      .node-corner .corner-glyph {
        font-size: 16px !important;
      }
      .node-corner .corner-title {
        font-size: 8px !important;
      }
      /* Узлы Кармы и Ступени Финала */
      .panfilov-node.node-karma,
      .panfilov-node.node-final {
        width: 34px !important;
        height: 34px !important;
        font-size: 13px !important;
        border-radius: 8px !important;
      }
      /* 3D-фишки игроков на поле */
      .board-pawn {
        transform: translate(-50%, -75%) rotateX(-13.5deg) scale(1.3) !important;
      }
    }

    /* 3D КРИСТАЛЬНЫЕ ФИШКИ РЕАКЦИЙ ЗА СТОЛОМ */
    .table-3d-reaction-chip {
      position: relative;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      border: 1.5px solid rgba(255, 255, 255, 0.4);
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.55), 
                  inset 0 2px 3px rgba(255, 255, 255, 0.5), 
                  inset 0 -3px 4px rgba(0, 0, 0, 0.5);
      transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
      user-select: none;
      transform: translateY(0);
    }
    .table-3d-reaction-chip:hover {
      transform: translateY(-2.5px) scale(1.14);
    }
    .table-3d-reaction-chip:active {
      transform: translateY(1.5px) scale(0.9);
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), 
                  inset 0 1px 2px rgba(255, 255, 255, 0.3), 
                  inset 0 2px 4px rgba(0, 0, 0, 0.6);
    }
    .table-3d-reaction-chip .reaction-emoji {
      font-size: 14px;
      position: relative;
      z-index: 2;
      filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.8));
    }
    .table-3d-reaction-chip .reaction-gloss {
      position: absolute;
      top: 1.5px;
      left: 3px;
      right: 3px;
      height: 40%;
      border-radius: 50% 50% 40% 40%;
      background: linear-gradient(to bottom, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0.05) 100%);
      pointer-events: none;
      z-index: 1;
    }
    .chip-love {
      background: radial-gradient(circle at 35% 30%, #f43f5e 0%, #be123c 55%, #4c0519 100%);
      border-color: rgba(251, 113, 133, 0.85);
      box-shadow: 0 4px 12px rgba(244, 63, 94, 0.4), inset 0 2px 3px rgba(255, 255, 255, 0.6), inset 0 -3px 4px rgba(0, 0, 0, 0.5);
    }
    .chip-insight {
      background: radial-gradient(circle at 35% 30%, #fef08a 0%, #f59e0b 55%, #78350f 100%);
      border-color: rgba(253, 224, 71, 0.85);
      box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4), inset 0 2px 3px rgba(255, 255, 255, 0.7), inset 0 -3px 4px rgba(0, 0, 0, 0.5);
    }
    .chip-fire {
      background: radial-gradient(circle at 35% 30%, #fb923c 0%, #ea580c 55%, #7c2d12 100%);
      border-color: rgba(251, 146, 60, 0.85);
      box-shadow: 0 4px 12px rgba(234, 88, 12, 0.4), inset 0 2px 3px rgba(255, 255, 255, 0.6), inset 0 -3px 4px rgba(0, 0, 0, 0.5);
    }
    .chip-peace {
      background: radial-gradient(circle at 35% 30%, #67e8f9 0%, #0284c7 55%, #082f49 100%);
      border-color: rgba(103, 232, 249, 0.85);
      box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4), inset 0 2px 3px rgba(255, 255, 255, 0.6), inset 0 -3px 4px rgba(0, 0, 0, 0.5);
    }
    .chip-bravo {
      background: radial-gradient(circle at 35% 30%, #d8b4fe 0%, #9333ea 55%, #3b0764 100%);
      border-color: rgba(216, 180, 254, 0.85);
      box-shadow: 0 4px 12px rgba(147, 51, 234, 0.4), inset 0 2px 3px rgba(255, 255, 255, 0.6), inset 0 -3px 4px rgba(0, 0, 0, 0.5);
    }

    @keyframes floatUpReaction {
      0% { transform: translateY(0) scale(0.6) rotate(-8deg); opacity: 0; }
      20% { transform: translateY(-20px) scale(1.3) rotate(6deg); opacity: 1; }
      80% { transform: translateY(-90px) scale(1.1) rotate(-4deg); opacity: 0.95; }
      100% { transform: translateY(-145px) scale(0.7) rotate(0deg); opacity: 0; }
    }
    .arena-floating-reaction {
      position: absolute;
      animation: floatUpReaction 1.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
      pointer-events: none;
      font-size: 30px;
      filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 14px rgba(253, 224, 71, 0.8));
      z-index: 45;
    }
    .arena-chip {
      background: rgba(59, 15, 102, 0.55);
      border: 1px solid rgba(216, 180, 254, 0.35);
      color: #f3e8ff;
      border-radius: 9999px;
      padding: 4px 10px;
      font-size: 10px;
      font-weight: 600;
      white-space: nowrap;
      cursor: pointer;
      transition: all 0.2s ease;
      flex-shrink: 0;
    }
    .arena-chip:active {
      transform: scale(0.92);
      background: rgba(245, 158, 11, 0.4);
      border-color: #fde047;
    }
    #mira-messages-container {
      touch-action: pan-y !important;
      overscroll-behavior-y: contain !important;
      -webkit-overflow-scrolling: touch !important;
      scrollbar-width: none;
      -ms-overflow-style: none;
      mask-image: linear-gradient(to bottom, transparent 0%, black 48px, black calc(100% - 16px), transparent 100%);
      -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 48px, black calc(100% - 16px), transparent 100%);
    }
    #mira-messages-container::-webkit-scrollbar {
      display: none;
    }

    .mira-topic-chip {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 6px 12px;
      border-radius: 9999px;
      font-size: 11px;
      font-weight: 600;
      white-space: nowrap;
      background: rgba(46, 16, 101, 0.45);
      border: 1px solid rgba(192, 132, 252, 0.28);
      color: rgba(243, 232, 255, 0.95);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
      transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
      cursor: pointer;
      user-select: none;
      flex-shrink: 0;
    }
    .mira-topic-chip:active {
      transform: scale(0.93);
      background: rgba(168, 85, 247, 0.35);
      border-color: rgba(253, 224, 71, 0.6);
    }

    .spread-3d-item {
      scroll-snap-align: center;
      border-radius: 16px;
      background: rgba(14, 8, 28, 0.78);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      border: 1px solid rgba(168, 85, 247, 0.28);
      transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
      cursor: pointer;
      flex-shrink: 0;
      user-select: none;
      -webkit-tap-highlight-color: transparent;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
    }

    .spread-3d-item:active {
      transform: scale(0.95);
    }

    .spread-3d-item.active {
      border-color: rgba(251, 191, 36, 0.95);
      background: linear-gradient(180deg, rgba(88, 28, 135, 0.55) 0%, rgba(20, 8, 42, 0.95) 100%);
      box-shadow: 
        0 0 16px rgba(251, 191, 36, 0.35),
        inset 0 0 10px rgba(251, 191, 36, 0.12),
        0 6px 18px rgba(0, 0, 0, 0.6);
      transform: translateY(-2px) scale(1.02);
    }

    .spread-3d-item.active .spread-item-title {
      color: #fde047;
      text-shadow: 0 0 10px rgba(253, 224, 71, 0.5);
    }

    .spread-3d-item.active .spread-item-sub {
      color: #fef08a;
    }

    /* Визуал мини-карт внутри каждого варианта расклада */
    .mini-card-num {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      font-size: 11px;
      font-weight: 800;
      color: #fde047;
      font-family: 'Plus Jakarta Sans', sans-serif;
      text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95);
      pointer-events: none;
      line-height: 1;
      z-index: 5;
    }
    .mini-card-icon.front-card::after {
      display: none !important;
    }
    .mini-card-icon {
      width: 17px;
      height: 26px;
      border-radius: 3px;
      background: linear-gradient(145deg, #2e1065 0%, #1e1b4b 60%, #0c0a1f 100%);
      border: 1px solid rgba(253, 224, 71, 0.6);
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.75);
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.25s ease;
      will-change: transform;
    }

    .mini-card-icon::after {
      content: '';
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: radial-gradient(circle, #fffbeb 20%, #fde047 60%, #d97706 100%);
      box-shadow: 0 0 4px #fde047;
    }

    .spread-3d-item.active .mini-card-icon {
      border-color: #fde047;
      box-shadow: 0 0 8px rgba(253, 224, 71, 0.55), 0 2px 6px rgba(0, 0, 0, 0.85);
    }

    .spread-3d-item.active .mini-card-icon::after {
      background: radial-gradient(circle, #ffffff 30%, #fde047 80%, #f59e0b 100%);
      box-shadow: 0 0 6px rgba(253, 224, 71, 0.9);
    }
    * {
      box-sizing: border-box;
      -webkit-tap-highlight-color: transparent;
      user-select: none;
    }


    #video-bg-container {
      position: fixed !important;
      top: -60px !important;
      left: 0 !important;
      right: 0 !important;
      bottom: -60px !important;
      width: 100vw !important;
      height: calc(100vh + 120px) !important;
      z-index: 0 !important;
      pointer-events: none !important;
      overflow: hidden !important;
    }
    #video-bg-container video {
      position: absolute !important;
      inset: 0 !important;
      top: 0 !important;
      left: 0 !important;
      width: 100% !important;
      height: 100% !important;
      object-fit: cover !important;
    }

    .font-serif-lux {
      font-family: 'Cormorant Garamond', Georgia, serif;
    }

    /* Динамический фон с мягким cross-fade */
    #ambient-bg {
      position: fixed;
      inset: 0;
      z-index: 0;
      transition: background 0.75s cubic-bezier(0.4, 0, 0.2, 1);
      pointer-events: none;
    }
    #ambient-particles {
      position: fixed;
      inset: 0;
      z-index: 1;
      pointer-events: none;
      opacity: 0.65;
      background-image: 
        radial-gradient(1.5px 1.5px at 30px 40px, rgba(255,255,255,0.9), rgba(0,0,0,0)),
        radial-gradient(1px 1px at 150px 120px, rgba(245,211,123,0.8), rgba(0,0,0,0)),
        radial-gradient(2px 2px at 280px 220px, rgba(168,85,247,0.7), rgba(0,0,0,0)),
        radial-gradient(1px 1px at 80px 380px, rgba(255,255,255,0.8), rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 220px 520px, rgba(236,72,153,0.7), rgba(0,0,0,0)),
        radial-gradient(2px 2px at 340px 680px, rgba(245,211,123,0.7), rgba(0,0,0,0)),
        radial-gradient(1px 1px at 60px 820px, rgba(255,255,255,0.8), rgba(0,0,0,0));
      background-size: 380px 880px;
    }

    /* ================= ЦЕНТРАЛЬНЫЙ 3D-БАРАБАН РАСКЛАДОВ (CENTER 3D CYLINDER DRUM) ================= */
    .wheel-container {
      position: relative;
      width: 100%;
      height: 100%;
      min-height: 400px;
      max-height: calc(100vh - 200px);
      overflow-y: scroll !important;
      overflow-x: hidden !important;
      scroll-snap-type: y mandatory;
      scrollbar-width: none;
      -ms-overflow-style: none;
      -webkit-overflow-scrolling: touch !important;
      touch-action: pan-y !important;
      overscroll-behavior: contain !important;
      overscroll-behavior-y: contain !important;
      perspective: 750px;
      perspective-origin: center center;
      transform-style: preserve-3d;
      mask-image: linear-gradient(to bottom, transparent 0%, black 4%, black 96%, transparent 100%);
      -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 4%, black 96%, transparent 100%);
    }
    .wheel-container::-webkit-scrollbar {
      display: none;
    }

    #wheel-items-list {
      transform-style: preserve-3d;
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .wheel-item {
      position: relative;
      height: 94px;
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      scroll-snap-align: center;
      padding: 0 14px 0 10px;
      cursor: pointer;
      user-select: none;
      -webkit-tap-highlight-color: transparent;
      transform-origin: center center;
      will-change: transform, opacity;
      transition: transform 0.15s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.15s ease-out;
      touch-action: pan-y !important;
    }
    .wheel-item:active {
      transform: scale(0.975) !important;
    }

    /* Фоновая плашка-капсула элемента барабана (неактивная - чёткая, плотная, видимая и контрастная) */
    .wheel-pill-bg {
      position: absolute;
      top: 4px;
      bottom: 4px;
      left: 4px;
      right: 4px;
      border-radius: 28px;
      background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(147, 51, 234, 0.10) 40%, rgba(255, 255, 255, 0.03) 100%), #14092b;
      backdrop-filter: blur(28px);
      -webkit-backdrop-filter: blur(28px);
      border: 1.5px solid rgba(255, 255, 255, 0.38);
      box-shadow: 
        0 14px 34px -4px rgba(0, 0, 0, 0.90),
        0 0 20px rgba(168, 85, 247, 0.22),
        inset 0 1px 1.5px rgba(255, 255, 255, 0.5);
      opacity: 1;
      transform: scale(0.97);
      transition: opacity 0.24s ease, transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1), border 0.24s ease, background 0.24s ease, box-shadow 0.24s ease;
      pointer-events: none;
      z-index: 1;
    }

    /* Активная центральная плашка-капсула: королевский золотой кристалл */
    .wheel-item.is-active .wheel-pill-bg {
      opacity: 1;
      transform: scale(1);
      background: linear-gradient(135deg, rgba(255, 255, 255, 0.24) 0%, rgba(245, 211, 123, 0.22) 42%, rgba(168, 85, 247, 0.18) 100%), #1a0b38;
      border: 2px solid rgba(245, 211, 123, 0.95);
      box-shadow: 
        0 20px 48px -4px rgba(0, 0, 0, 0.95),
        0 0 35px rgba(245, 211, 123, 0.45),
        0 0 20px rgba(168, 85, 247, 0.28),
        inset 0 1.5px 2px rgba(255, 255, 255, 0.8),
        inset 0 -1px 2px rgba(245, 211, 123, 0.35);
    }

    /* Круглая тематическая иллюстрация (увеличена и оформлена) */
    .wheel-thumb-wrap {
      position: relative;
      width: 54px;
      height: 54px;
      border-radius: 9999px;
      overflow: hidden;
      border: 1.5px solid rgba(255, 255, 255, 0.35);
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.65);
      flex-shrink: 0;
      margin-left: 4px;
      transition: all 0.26s cubic-bezier(0.34, 1.56, 0.64, 1);
      z-index: 2;
    }

    .wheel-item.is-active .wheel-thumb-wrap {
      width: 62px;
      height: 62px;
      border: 2px solid rgba(245, 211, 123, 0.95);
      box-shadow: 
        0 0 24px rgba(245, 211, 123, 0.55),
        0 6px 20px rgba(0, 0, 0, 0.75);
      margin-left: 2px;
    }

    .wheel-thumb-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transform: scale(1.15);
      transition: transform 0.25s ease;
      pointer-events: none;
    }
    .wheel-item.is-active .wheel-thumb-img {
      transform: scale(1.22);
    }

    .wheel-thumb-sheen {
      position: absolute;
      inset: 0;
      border-radius: 9999px;
      background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.45) 0%, transparent 60%);
      pointer-events: none;
    }

    /* Метаданные: название и описание — БЕЗ МНОГОТОЧИЯ, пишется полностью */
    .wheel-meta-wrap {
      position: relative;
      margin-left: 12px;
      margin-right: 6px;
      flex: 1;
      min-width: 0;
      text-align: left;
      z-index: 2;
    }

    .wheel-title {
      color: #FFFFFF;
      font-size: 16.5px;
      font-weight: 700;
      letter-spacing: 0.015em;
      line-height: 1.2;
      white-space: nowrap;
      text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
      transition: all 0.2s ease;
    }

    .wheel-item.is-active .wheel-title {
      color: #FFFFFF;
      font-size: 18px;
      font-weight: 800;
      letter-spacing: 0.02em;
      text-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.98),
        0 0 16px rgba(245, 211, 123, 0.55);
    }

    .wheel-subtitle {
      color: rgba(226, 204, 254, 0.95);
      font-size: 12px;
      font-weight: 500;
      margin-top: 3px;
      white-space: nowrap;
      text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
      transition: all 0.2s ease;
    }

    .wheel-item.is-active .wheel-subtitle {
      color: rgba(253, 230, 138, 1);
      font-size: 13px;
      font-weight: 600;
      text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
    }

    /* Элегантная золотая стрелочка перехода на активной карточке (компактная, не сжимает текст) */
    .wheel-action-arrow {
      position: relative;
      z-index: 2;
      margin-right: 8px;
      margin-left: 4px;
      width: 28px;
      height: 28px;
      border-radius: 9999px;
      background: linear-gradient(135deg, rgba(253, 224, 71, 0.28) 0%, rgba(245, 158, 11, 0.18) 100%);
      border: 1px solid rgba(245, 211, 123, 0.6);
      color: #fde047;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      opacity: 0;
      transform: scale(0.8) translateX(-4px);
      transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
      pointer-events: none;
      box-shadow: 0 0 12px rgba(245, 211, 123, 0.25);
    }

    .wheel-item.is-active .wheel-action-arrow {
      opacity: 1;
      transform: scale(1) translateX(0);
      box-shadow: 0 0 16px rgba(245, 211, 123, 0.5);
      animation: actionArrowPulse 2.4s ease-in-out infinite alternate;
    }

    @keyframes actionArrowPulse {
      0% {
        box-shadow: 0 0 10px rgba(245, 211, 123, 0.35);
        transform: scale(1);
      }
      100% {
        box-shadow: 0 0 20px rgba(245, 211, 123, 0.7);
        transform: scale(1.06);
      }
    }

    /* Адаптивность для ультракомпактных мобильных экранов (< 370px) */
    @media (max-width: 370px) {
      .wheel-item {
        padding: 0 10px 0 6px;
      }
      .wheel-thumb-wrap {
        width: 52px;
        height: 52px;
      }
      .wheel-item.is-active .wheel-thumb-wrap {
        width: 60px;
        height: 60px;
      }
      .wheel-title {
        font-size: 15px;
      }
      .wheel-item.is-active .wheel-title {
        font-size: 17px;
      }
      .wheel-subtitle {
        font-size: 11px;
      }
      .wheel-item.is-active .wheel-subtitle {
        font-size: 12px;
      }
      .wheel-action-arrow {
        width: 28px;
        height: 28px;
        margin-right: 6px;
      }
    }

    #wheel-drum-wrapper {
      transform: translateY(-24px);
      will-change: transform;
    }



    /* Четкий, резкий текст без размытия */
    .sharp-gold-text {
      color: #FFFFFF;
      font-weight: 700;
      letter-spacing: 0.04em;
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8), 0 0 1px rgba(245, 211, 123, 0.7);
    }

    /* Стекло карточек */
    .glass-card {
      background: rgba(20, 8, 38, 0.45);
      backdrop-filter: blur(24px);
      -webkit-backdrop-filter: blur(24px);
      border: 1px solid rgba(255, 255, 255, 0.12);
    }

    /* ================= 3D МИСТИЧЕСКИЙ ШАР РИТУАЛА (BLOOMING PLASMA FLOWER) ================= */
    .orb-3d-sphere {
      border: none !important;
      background: transparent !important;
      box-shadow: none !important;
      will-change: transform;
      mix-blend-mode: normal !important;
      pointer-events: none;
      border-radius: 9999px !important;
      overflow: hidden !important;
      -webkit-mask-image: radial-gradient(circle, #000 64%, transparent 72%);
      mask-image: radial-gradient(circle, #000 64%, transparent 72%);
    }

    #orb-plasma-img {
      mix-blend-mode: normal !important;
      background: transparent !important;
      border: none !important;
      outline: none !important;
      box-shadow: none !important;
      -webkit-box-shadow: none !important;
      filter: none !important;
      -webkit-filter: none !important;
      border-radius: 9999px !important;
      -webkit-mask-image: radial-gradient(circle, #000 64%, transparent 72%);
      mask-image: radial-gradient(circle, #000 64%, transparent 72%);
    }

    /* Мягкое живое дыхание в покое (маленький начальный размер) */
    .orb-idle-breathe {
      animation: orbIdlePulse 4.5s ease-in-out infinite alternate;
    }

    @keyframes orbIdlePulse {
      0% { transform: scale(0.60) rotate(0deg); }
      50% { transform: scale(0.64) rotate(4deg); }
      100% { transform: scale(0.61) rotate(-3deg); }
    }

    .orb-charging #orb-plasma-img {
      filter: none !important;
      -webkit-filter: none !important;
    }

    .orb-glow-overlay {
      position: absolute;
      inset: 0;
      border-radius: 9999px;
      background: radial-gradient(circle at 50% 50%, rgba(253, 224, 71, 0.45) 0%, rgba(56, 189, 248, 0.35) 50%, transparent 80%);
      opacity: 0;
      transition: opacity 0.3s ease;
      pointer-events: none;
    }

    .orb-charging .orb-glow-overlay {
      opacity: 1;
      animation: orbGlowPulse 1.1s ease-in-out infinite alternate;
    }

    @keyframes orbGlowPulse {
      0% { opacity: 0.65; transform: scale(0.96); }
      100% { opacity: 1.0; transform: scale(1.06); }
    }

    /* ================= 3D КНОПКИ И 3D НАВИГАЦИЯ ================= */
    /* Вариант: 3D Эфирный Кристалл без жесткой обводки (Translucent Celestial Crystal) */
    .btn-3d-celestial {
      position: relative;
      background: 
        linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.02) 48%, rgba(0, 0, 0, 0.12) 50%, rgba(0, 0, 0, 0.32) 100%),
        linear-gradient(135deg, rgba(245, 211, 123, 0.1) 0%, rgba(168, 85, 247, 0.14) 50%, rgba(236, 72, 153, 0.08) 100%),
        rgba(16, 7, 32, 0.68);
      backdrop-filter: blur(28px);
      -webkit-backdrop-filter: blur(28px);
      border: 1px solid rgba(255, 255, 255, 0.12);
      box-shadow: 
        0 8px 24px -2px rgba(0, 0, 0, 0.55),
        0 0 16px rgba(168, 85, 247, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.35);
      border-radius: 24px;
      transition: all 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
      cursor: pointer;
      overflow: hidden;
    }
    .btn-3d-celestial:active {
      transform: scale(0.975);
      background-color: rgba(26, 10, 52, 0.8);
      box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.45),
        inset 0 1px 1px rgba(255, 255, 255, 0.25);
    }
    .btn-3d-text {
      color: #FFFFFF;
      font-weight: 700;
      letter-spacing: 0.05em;
      text-shadow: 
        0 0 10px rgba(245, 211, 123, 0.6),
        0 1px 2px rgba(0, 0, 0, 0.8);
    }
    /* Мягкий анимированный 3D световой блик */
    .btn-3d-celestial::after {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: 22px;
      background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.25) 50%, transparent 100%);
      transform: translateX(-120%);
      animation: btnShimmer 4s ease-in-out infinite;
      pointer-events: none;
    }
    @keyframes btnShimmer {
      0%, 65% { transform: translateX(-120%); }
      80%, 100% { transform: translateX(120%); }
    }

    /* ================= ПРОЗРАЧНАЯ ПЛАШКА С БЛЮРОМ ДЛЯ ЗАГОЛОВКА ================= */
    .glass-pill-blur {
      background: rgba(255, 255, 255, 0.08);
      backdrop-filter: blur(24px);
      -webkit-backdrop-filter: blur(24px);
      border: 1px solid rgba(255, 255, 255, 0.22);
      box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.45),
        inset 0 1px 1.5px rgba(255, 255, 255, 0.35);
      border-radius: 9999px;
      padding: 7px 18px;
      display: inline-flex;
      align-items: center;
      gap: 9px;
    }

    /* ================= 3D ОБЪЕМНАЯ ЛЕВИТИРУЮЩАЯ КАРТА ================= */
    .card-3d-wrap {
      perspective: 1200px;
      perspective-origin: center center;
    }
    .card-3d-body {
      transform-style: preserve-3d;
      animation: card3dLevitate 5.5s ease-in-out infinite alternate;
      border-radius: 28px;
      border: 2.5px solid rgba(245, 211, 123, 0.75);
      overflow: hidden !important;
      isolation: isolate;
      -webkit-mask-image: -webkit-radial-gradient(white, black);
      mask-image: radial-gradient(white, black);
      box-shadow: 
        0 28px 65px -10px rgba(0, 0, 0, 0.98),
        0 10px 30px rgba(0, 0, 0, 0.85),
        0 0 35px rgba(245, 211, 123, 0.35),
        inset 0 2.5px 3px rgba(255, 255, 255, 0.8),
        inset 0 -3.5px 6px rgba(0, 0, 0, 0.85),
        inset 2px 0 3px rgba(255, 255, 255, 0.25),
        inset -2px 0 3px rgba(0, 0, 0, 0.5);
      transition: transform 0.25s ease-out;
    }

    /* Устранение черных полос и артефактов зума в видеокартах оракулов (1.06x overscan) */
    #spread-video-el,
    #spread-img-el,
    #mac-hero-video,
    #mac-hero-img {
      width: 100% !important;
      height: 100% !important;
      object-fit: cover !important;
      object-position: center center !important;
      transform: scale(1.06) !important;
      transform-origin: center center !important;
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
      border-radius: inherit;
    }
    .card-3d-body:active {
      transform: perspective(1000px) rotateX(1deg) scale(0.98) !important;
    }
    @keyframes card3dLevitate {
      0% {
        transform: perspective(1000px) rotateX(3.5deg) rotateY(-1.5deg) translateY(0px);
      }
      100% {
        transform: perspective(1000px) rotateX(1deg) rotateY(1.5deg) translateY(-8px);
      }
    }
        /* ========================================================
       ДЕЛИКАТНОЕ СИЯНИЕ И МЯГКИЙ БЛЕСК КАРТ (HERO CARDS SOFT SHINE)
       ======================================================== */
    .hero-sparkle-layer {
      position: absolute;
      inset: 0;
      pointer-events: none;
      overflow: hidden;
      z-index: 5;
    }

    /* 1. Тонкий, редкий скользящий блик света по картам (раз в 8.5 секунд) */
    .hero-cards-sheen {
      position: absolute;
      top: -30%;
      bottom: -30%;
      left: 20%;
      width: 45%;
      background: linear-gradient(
        115deg,
        transparent 20%,
        rgba(255, 220, 140, 0.05) 40%,
        rgba(255, 245, 200, 0.22) 49%,
        rgba(255, 255, 255, 0.32) 50%,
        rgba(255, 220, 140, 0.22) 51%,
        rgba(192, 132, 252, 0.08) 60%,
        transparent 80%
      );
      transform: translateX(-160%) rotate(-10deg);
      mix-blend-mode: screen;
      pointer-events: none;
      animation: heroCardsSheenSweep 8.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    }

    .group:hover .hero-cards-sheen {
      animation-duration: 4.5s;
    }

    @keyframes heroCardsSheenSweep {
      0%, 65% {
        transform: translateX(-160%) rotate(-10deg);
        opacity: 0;
      }
      72% {
        opacity: 0.65;
      }
      88% {
        transform: translateX(180%) rotate(-10deg);
        opacity: 0.65;
      }
      92%, 100% {
        transform: translateX(200%) rotate(-10deg);
        opacity: 0;
      }
    }

    /* 2. Деликатные микро-блики звёздочки на ключевых точках золотого узора */
    .hero-star-glint {
      position: absolute;
      width: 11px;
      height: 11px;
      pointer-events: none;
      transform: translate(-50%, -50%) scale(0);
      animation: heroGlintTwinkle 6.5s ease-in-out infinite;
      animation-delay: var(--delay, 0s);
      z-index: 6;
      filter: drop-shadow(0 0 3px rgba(251, 191, 36, 0.7));
    }

    .hero-star-glint::before {
      content: '';
      position: absolute;
      left: 0;
      right: 0;
      top: 50%;
      height: 1px;
      margin-top: -0.5px;
      background: linear-gradient(90deg, transparent 0%, #ffffff 45%, #fde68a 55%, transparent 100%);
      border-radius: 9999px;
    }

    .hero-star-glint::after {
      content: '';
      position: absolute;
      top: 0;
      bottom: 0;
      left: 50%;
      width: 1px;
      margin-left: -0.5px;
      background: linear-gradient(180deg, transparent 0%, #ffffff 45%, #fde68a 55%, transparent 100%);
      border-radius: 9999px;
    }

    .hero-star-glint .glint-core {
      position: absolute;
      left: 50%;
      top: 50%;
      width: 2.5px;
      height: 2.5px;
      margin-left: -1.25px;
      margin-top: -1.25px;
      transform: rotate(45deg);
      background: #ffffff;
      box-shadow: 0 0 3px #ffffff, 0 0 6px #fde68a;
      border-radius: 0.5px;
    }

    @keyframes heroGlintTwinkle {
      0%, 75% {
        transform: translate(-50%, -50%) scale(0) rotate(0deg);
        opacity: 0;
      }
      82% {
        transform: translate(-50%, -50%) scale(var(--scale, 0.9)) rotate(25deg);
        opacity: 0.75;
      }
      88% {
        transform: translate(-50%, -50%) scale(calc(var(--scale, 0.9) * 0.75)) rotate(50deg);
        opacity: 0.5;
      }
      94%, 100% {
        transform: translate(-50%, -50%) scale(0) rotate(70deg);
        opacity: 0;
      }
    }

    /* 3. Невесомые золотые пылинки */
    .hero-card-dust {
      position: absolute;
      border-radius: 50%;
      pointer-events: none;
      background: #fde68a;
      box-shadow: 0 0 4px rgba(251, 191, 36, 0.5);
      opacity: 0.35;
      animation: heroDustFloat var(--dur, 4s) ease-in-out infinite alternate;
      animation-delay: var(--delay, 0s);
    }

    @keyframes heroDustFloat {
      0% {
        transform: translateY(0) scale(0.8);
        opacity: 0.15;
      }
      50% {
        transform: translateY(-5px) scale(1.05);
        opacity: 0.45;
      }
      100% {
        transform: translateY(-10px) scale(0.9);
        opacity: 0.2;
      }
    }
    .hero-sparkle-layer {
      position: absolute;
      inset: 0;
      pointer-events: none;
      overflow: hidden;
      z-index: 5;
    }

    /* 1. Мягкая золотая и фиолетовая аура Аркана Солнца и веера карт */
    .hero-cards-glow {
      position: absolute;
      inset: 0;
      background: radial-gradient(
        circle at 58% 46%,
        rgba(253, 224, 71, 0.3) 0%,
        rgba(245, 158, 11, 0.18) 28%,
        rgba(168, 85, 247, 0.2) 54%,
        transparent 75%
      );
      mix-blend-mode: screen;
      pointer-events: none;
      animation: heroCardsAuraPulse 4.5s ease-in-out infinite alternate;
      transition: opacity 0.5s ease, filter 0.5s ease;
    }

    .group:hover .hero-cards-glow {
      opacity: 1.35;
      filter: brightness(1.25);
    }

    @keyframes heroCardsAuraPulse {
      0% { opacity: 0.65; transform: scale(0.97); }
      50% { opacity: 0.98; transform: scale(1.02); }
      100% { opacity: 0.75; transform: scale(0.99); }
    }

    /* 2. Скользящий голографический луч света по картам (Золотое фольгирование) */
    .hero-cards-sheen {
      position: absolute;
      top: -60%;
      bottom: -60%;
      left: 15%;
      width: 130%;
      background: linear-gradient(
        114deg,
        transparent 22%,
        rgba(255, 215, 120, 0.06) 36%,
        rgba(255, 235, 160, 0.35) 46%,
        rgba(255, 255, 255, 0.75) 50%,
        rgba(255, 215, 120, 0.38) 54%,
        rgba(192, 132, 252, 0.2) 64%,
        transparent 78%
      );
      transform: translateX(-150%) rotate(-9deg);
      mix-blend-mode: color-dodge;
      pointer-events: none;
      animation: heroCardsSheenSweep 4.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    }

    .group:hover .hero-cards-sheen {
      animation-duration: 2.8s;
      filter: brightness(1.3);
    }

    @keyframes heroCardsSheenSweep {
      0%, 30% {
        transform: translateX(-150%) rotate(-8deg);
        opacity: 0;
      }
      35% {
        opacity: 0.85;
      }
      65% {
        transform: translateX(120%) rotate(-8deg);
        opacity: 0.95;
      }
      70%, 100% {
        transform: translateX(150%) rotate(-8deg);
        opacity: 0;
      }
    }

    /* 3. Драгоценные 4-конечные сияющие блики-звёздочки (Diamond Star Glints) */
    .hero-star-glint {
      position: absolute;
      width: 20px;
      height: 20px;
      pointer-events: none;
      transform: translate(-50%, -50%) scale(0);
      animation: heroGlintTwinkle 2.8s ease-in-out infinite;
      animation-delay: var(--delay, 0s);
      z-index: 6;
      filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.9)) drop-shadow(0 0 14px rgba(245, 158, 11, 0.7));
    }

    .hero-star-glint::before {
      content: '';
      position: absolute;
      left: 0;
      right: 0;
      top: 50%;
      height: 2px;
      margin-top: -1px;
      background: linear-gradient(90deg, transparent 0%, #ffffff 42%, #fef08a 58%, transparent 100%);
      border-radius: 9999px;
      box-shadow: 0 0 8px #ffffff, 0 0 16px #fcd34d;
    }

    .hero-star-glint::after {
      content: '';
      position: absolute;
      top: 0;
      bottom: 0;
      left: 50%;
      width: 2px;
      margin-left: -1px;
      background: linear-gradient(180deg, transparent 0%, #ffffff 42%, #fef08a 58%, transparent 100%);
      border-radius: 9999px;
      box-shadow: 0 0 8px #ffffff, 0 0 16px #fcd34d;
    }

    .hero-star-glint .glint-core {
      position: absolute;
      left: 50%;
      top: 50%;
      width: 4.5px;
      height: 4.5px;
      margin-left: -2.25px;
      margin-top: -2.25px;
      transform: rotate(45deg);
      background: #ffffff;
      box-shadow: 0 0 5px #ffffff, 0 0 12px #fef08a, 0 0 20px #f59e0b;
      border-radius: 1px;
    }

    @keyframes heroGlintTwinkle {
      0%, 15% {
        transform: translate(-50%, -50%) scale(0) rotate(0deg);
        opacity: 0;
      }
      26% {
        transform: translate(-50%, -50%) scale(calc(var(--scale, 1) * 1.4)) rotate(22deg);
        opacity: 1;
      }
      38% {
        transform: translate(-50%, -50%) scale(var(--scale, 1)) rotate(45deg);
        opacity: 0.9;
      }
      50% {
        transform: translate(-50%, -50%) scale(calc(var(--scale, 1) * 1.2)) rotate(65deg);
        opacity: 1;
      }
      65% {
        transform: translate(-50%, -50%) scale(0) rotate(90deg);
        opacity: 0;
      }
      100% {
        transform: translate(-50%, -50%) scale(0) rotate(90deg);
        opacity: 0;
      }
    }

    .group:hover .hero-star-glint {
      animation-duration: 2.2s;
    }

    /* 4. Парящие золотые и фиолетовые частицы-искорки (Floating Gold Dust) */
    .hero-card-dust {
      position: absolute;
      border-radius: 50%;
      pointer-events: none;
      background: radial-gradient(circle, #ffffff 15%, #fde68a 55%, #f59e0b 100%);
      box-shadow: 0 0 6px #fde68a, 0 0 12px rgba(245, 158, 11, 0.7);
      opacity: 0.75;
      animation: heroDustFloat var(--dur, 3s) ease-in-out infinite alternate;
      animation-delay: var(--delay, 0s);
    }

    @keyframes heroDustFloat {
      0% {
        transform: translateY(0) scale(0.7);
        opacity: 0.35;
      }
      50% {
        transform: translateY(-8px) scale(1.15);
        opacity: 0.95;
      }
      100% {
        transform: translateY(-16px) scale(0.85);
        opacity: 0.45;
      }
    }

.card-3d-sheen {
      position: absolute;
      inset: 0;
      border-radius: 26px;
      background: linear-gradient(125deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.06) 28%, transparent 50%, rgba(245,211,123,0.14) 75%, transparent 100%);
      pointer-events: none;
      z-index: 25;
    }

    /* Стрелочки переключения карт по бокам 3D-карты в стиле Арканики (высокие открытые шевроны без фона) */
    .card-side-nav-btn {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      width: 46px;
      height: 156px;
      background: transparent !important;
      border: none !important;
      outline: none !important;
      color: rgba(255, 255, 255, 0.72);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0;
      z-index: 30;
      cursor: pointer;
      box-shadow: none !important;
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
      filter: drop-shadow(0 0 7px rgba(255, 255, 255, 0.38)) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.75));
      transition: color 0.2s ease, filter 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
      -webkit-tap-highlight-color: transparent;
      user-select: none;
      -webkit-user-select: none;
    }
    .card-side-nav-btn:hover {
      color: #ffffff;
      filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.85)) drop-shadow(0 2px 10px rgba(0, 0, 0, 0.95));
      transform: translateY(-50%) scale(1.04);
    }
    .card-side-nav-btn:active {
      transform: translateY(-50%) scale(0.93) !important;
      color: #ffffff;
    }
    #card-side-prev-btn {
      left: max(-4px, calc(50% - 148px - 48px));
    }
    #card-side-next-btn {
      right: max(-4px, calc(50% - 148px - 48px));
    }

    /* ================= ПЛАВАЮЩИЙ GLASS-ДОК (КАПСУЛА С БЛЮРОМ) ВО ВСЕХ ВКЛАДКАХ ================= */
    #app-bottom-nav {
      position: fixed !important;
      bottom: 0 !important;
      left: 0 !important;
      right: 0 !important;
      z-index: 60 !important;
      pointer-events: none !important;
      width: 100% !important;
      max-width: 448px !important;
      margin-left: auto !important;
      margin-right: auto !important;
    }

    #app-bottom-nav .glass-dock {
      pointer-events: auto !important;
    }

    .glass-dock {
      background: rgba(18, 9, 36, 0.65);
      backdrop-filter: blur(28px);
      -webkit-backdrop-filter: blur(28px);
      border: 1px solid rgba(255, 255, 255, 0.18);
      box-shadow: 
        0 14px 36px -4px rgba(0, 0, 0, 0.65),
        0 0 20px rgba(168, 85, 247, 0.14),
        inset 0 1px 1.5px rgba(255, 255, 255, 0.3);
      border-radius: 9999px;
      padding: 3.5px 4.5px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 2px;
      flex-wrap: nowrap;
      white-space: nowrap;
      max-width: calc(100vw - 12px);
    }

    .dock-tab {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 4px;
      padding: 5.5px 7px;
      min-height: 35px;
      border-radius: 9999px;
      transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
      cursor: pointer;
      color: rgba(255, 255, 255, 0.75);
      background: transparent;
      border: none;
      outline: none;
      user-select: none;
      -webkit-tap-highlight-color: transparent;
      flex-shrink: 0;
    }
    .dock-tab:active {
      transform: scale(0.92);
    }
    .dock-tab.active {
      background: linear-gradient(135deg, #FFFFFF 0%, #F5EEDB 100%);
      color: #0E0420;
      font-weight: 700;
      padding: 5.5px 10px;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
      flex-shrink: 0;
    }
    .dock-tab .tab-label {
      font-size: 10px;
      font-weight: 700;
      letter-spacing: -0.01em;
      white-space: nowrap;
      display: none;
      line-height: 1;
      max-width: 66px;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .dock-tab.active .tab-label {
      display: inline-block;
      color: #0E0420;
    }
    .dock-tab.active .nav-icon-wrap {
      transform: scale(1.05);
    }
    .nav-icon-wrap {
      transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
      flex-shrink: 0;
    }

    @media (max-width: 380px) {
      .glass-dock {
        padding: 3px 3.5px;
        gap: 1.5px;
      }
      .dock-tab {
        padding: 5px 5.5px;
        min-height: 33px;
        gap: 3px;
      }
      .dock-tab.active {
        padding: 5px 8.5px;
      }
      .dock-tab .nav-icon-wrap {
        width: 18px;
        height: 18px;
      }
      .dock-tab .tab-label {
        font-size: 9px;
        max-width: 52px;
      }
    }
  
    /* ==================== СТИЛИ ДЛЯ ВЕБ-САЙТА НА ПК (ARCANIKA DESKTOP) ==================== */
    #app-root {
      max-width: 100% !important;
      width: 100% !important;
      height: 100vh !important;
      max-height: 100vh !important;
      display: flex !important;
      flex-direction: column !important;
      overflow: hidden !important;
      margin: 0 !important;
      background: transparent !important;
    }
    #app-bottom-nav {
      display: none !important;
    }
    #app-top-header {
      display: none !important;
    }
    #wheel-drum-wrapper {
      display: none !important;
    }
    #desktop-topbar {
      display: none !important;
    }
    #mira-consent-banner {
      display: none !important;
    }
    #desktop-main-layout {
      display: flex !important;
      flex-direction: row !important;
      justify-content: center !important;
      width: 100% !important;
      max-width: 1540px !important;
      margin: 0 auto !important;
      height: 100vh !important;
      max-height: 100vh !important;
      flex: 1 1 0% !important;
      overflow: hidden !important;
      gap: 16px !important;
      padding: 12px 24px !important;
      box-sizing: border-box !important;
      background: transparent !important;
    }
    #desktop-sidebar-left {
      position: relative !important;
      z-index: 40 !important;
      display: flex !important;
      width: 226px !important;
      min-width: 226px !important;
      max-width: 236px !important;
      flex-shrink: 0 !important;
      height: 100% !important;
      overflow-y: auto !important;
      flex-direction: column !important;
      gap: 14px !important;
      padding-bottom: 8px !important;
    }

    /* ==================== ВОЛШЕБНОЕ СИЯНИЕ ЗВЕЗД И САКРАЛЬНЫЙ НЕБОСВОД ОРАКУЛА ✨ ==================== */
    .moon-fx-container {
      position: absolute;
      inset: 0;
      pointer-events: none;
      overflow: hidden;
      z-index: 5;
    }

    /* Мягкое естественное свечение полумесяца (без резких скользящих бликов) */
    .moon-soft-aura {
      position: absolute;
      left: 4px;
      top: 4px;
      width: 74px;
      height: 64px;
      border-radius: 50%;
      background: radial-gradient(circle at 48% 46%, rgba(255, 252, 235, 0.45) 0%, rgba(255, 225, 140, 0.25) 45%, rgba(192, 132, 252, 0.15) 70%, transparent 85%);
      filter: blur(6px);
      mix-blend-mode: screen;
      animation: moonAuraBreathe 4s ease-in-out infinite alternate;
    }
    @keyframes moonAuraBreathe {
      0% { opacity: 0.6; transform: scale(0.95); }
      100% { opacity: 0.95; transform: scale(1.06); }
    }

    /* Базовый класс сияющей звезды */
    .c-star {
      position: absolute;
      transform: translate(-50%, -50%);
      mix-blend-mode: screen;
      pointer-events: none;
    }

    /* 1. Бриллиантовая 4-лучевая звезда (Diamond Star) */
    .c-star-diamond {
      width: 28px;
      height: 28px;
    }
    .c-star-diamond .core {
      position: absolute;
      top: 50%; left: 50%;
      width: 5px; height: 5px;
      margin-left: -2.5px; margin-top: -2.5px;
      border-radius: 50%;
      background: #ffffff;
      box-shadow: 0 0 6px 2px #fff8e0, 0 0 14px 4px rgba(255, 225, 130, 0.95), 0 0 22px 6px rgba(192, 132, 252, 0.6);
    }
    .c-star-diamond .ray-h {
      position: absolute;
      top: 50%; left: 50%;
      width: 28px; height: 1.5px;
      margin-left: -14px; margin-top: -0.75px;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,1) 50%, transparent);
      filter: drop-shadow(0 0 2px rgba(255, 235, 160, 0.95));
    }
    .c-star-diamond .ray-v {
      position: absolute;
      top: 50%; left: 50%;
      width: 1.5px; height: 28px;
      margin-left: -0.75px; margin-top: -14px;
      background: linear-gradient(180deg, transparent, rgba(255,255,255,1) 50%, transparent);
      filter: drop-shadow(0 0 2px rgba(255, 235, 160, 0.95));
    }
    .c-star-diamond .ray-d {
      position: absolute;
      top: 50%; left: 50%;
      width: 12px; height: 1px;
      margin-left: -6px; margin-top: -0.5px;
      background: linear-gradient(90deg, transparent, rgba(255, 245, 200, 0.8) 50%, transparent);
      transform: rotate(45deg);
    }

    /* 2. Крестообразная мерцающая звезда (Cross Star) */
    .c-star-cross {
      width: 16px;
      height: 16px;
    }
    .c-star-cross .core {
      position: absolute;
      top: 50%; left: 50%;
      width: 3.5px; height: 3.5px;
      margin-left: -1.75px; margin-top: -1.75px;
      border-radius: 50%;
      background: #ffffff;
      box-shadow: 0 0 5px 1.5px #fffde8, 0 0 10px 3px rgba(255, 220, 120, 0.85);
    }
    .c-star-cross .ray-h {
      position: absolute;
      top: 50%; left: 50%;
      width: 16px; height: 1.2px;
      margin-left: -8px; margin-top: -0.6px;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.95) 50%, transparent);
    }
    .c-star-cross .ray-v {
      position: absolute;
      top: 50%; left: 50%;
      width: 1.2px; height: 16px;
      margin-left: -0.6px; margin-top: -8px;
      background: linear-gradient(180deg, transparent, rgba(255,255,255,0.95) 50%, transparent);
    }

    /* 3. Крошечная точечная искра (Point Star) */
    .c-star-point {
      width: 3px;
      height: 3px;
      border-radius: 50%;
      background: #ffffff;
      box-shadow: 0 0 5px 2px rgba(255, 248, 200, 0.95), 0 0 10px 3px rgba(192, 132, 252, 0.6);
    }

    /* Анимации сияния и мерцания */
    @keyframes starPulseDiamond {
      0%, 15% { opacity: 0.35; transform: translate(-50%, -50%) scale(0.6) rotate(0deg); }
      45% { opacity: 1; transform: translate(-50%, -50%) scale(1.3) rotate(15deg); }
      70% { opacity: 0.8; transform: translate(-50%, -50%) scale(0.9) rotate(25deg); }
      100% { opacity: 0.35; transform: translate(-50%, -50%) scale(0.6) rotate(35deg); }
    }
    @keyframes starPulseCross {
      0%, 15% { opacity: 0.3; transform: translate(-50%, -50%) scale(0.5); }
      50% { opacity: 1; transform: translate(-50%, -50%) scale(1.25); }
      100% { opacity: 0.3; transform: translate(-50%, -50%) scale(0.5); }
    }
    @keyframes starTwinklePoint {
      0%, 100% { opacity: 0.25; transform: translate(-50%, -50%) scale(0.6); }
      50% { opacity: 1; transform: translate(-50%, -50%) scale(1.4); }
    }
    #desktop-center-container {
      display: flex !important;
      flex: 1 1 0% !important;
      min-width: 0 !important;
      height: 100% !important;
      overflow-y: auto !important;
      padding-right: 0 !important;
    }
    #desktop-sidebar-right {
      position: relative !important;
      z-index: 40 !important;
      display: flex !important;
      width: 310px !important;
      min-width: 300px !important;
      max-width: 326px !important;
      flex-shrink: 0 !important;
      height: 100% !important;
      overflow-y: auto !important;
      flex-direction: column !important;
      gap: 6px !important;
      padding-top: 0 !important;
      padding-bottom: 60px !important;
    }
    #view-games,
    #games-subview-board,
    #games-subview-quest {
      background: transparent !important;
    }
    @media (min-width: 1280px) {
      #desktop-sidebar-right {
        padding-top: 0 !important;
        padding-bottom: 86px !important;
      }
    }
    #desktop-home-hero {
      display: flex !important;
      flex-direction: column !important;
      width: 100% !important;
    }
    #view-home {
      display: flex !important;
      flex-direction: column !important;
      width: 100% !important;
      height: auto !important;
      max-height: none !important;
      overflow: visible !important;
      touch-action: auto !important;
      padding: 0 !important;
    }
    /* На десктопе все экраны разворачиваются широко по центру */
    #view-profile,
    #view-profile > div,
    #view-numerology,
    #view-numerology > div,
    #view-meditations,
    #view-meditations > div,
    #view-diary,
    #view-diary > div,
    #view-mira,
    #view-mira > div,
    #view-games,
    #view-games > div,
    .games-hero-content {
      max-width: 980px !important;
      width: 100% !important;
      margin-left: auto !important;
      margin-right: auto !important;
    }
    .modal-screen > div:not([id*="ambient"]):not([class*="ambient"]):not(.arcanika-bg-canvas):not([id*="canvas"]):not([id*="flash"]):not(.fixed),
    #tarot-catalogue-modal > div:not([id*="ambient"]):not([class*="ambient"]),
    #angel-numbers-modal > div:not([id*="ambient"]):not([class*="ambient"]),
    #lunar-calendar-modal > div:not([id*="ambient"]):not([class*="ambient"]),
    #numerology-tool-modal > div:not([id*="ambient"]):not([class*="ambient"]),
    #sacred-art-gallery-modal > div:not([id*="ambient"]):not([class*="ambient"]),
    #rewards-modal > div:not([id*="ambient"]):not([class*="ambient"]),
    #tarot-lobby-modal > div:not([id*="ambient"]):not([class*="ambient"]),
    #tarot-rules-modal > div:not([id*="ambient"]):not([class*="ambient"]) {
      max-width: 1200px !important;
      width: 100% !important;
      margin-left: auto !important;
      margin-right: auto !important;
    }
    /* Сетки каталога 396 раскладов — на ПК в 4 колонки с крупными карточками */
    #catalogue-themes-grid {
      grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
      gap: 20px !important;
    }
    #catalogue-theme-spreads-list {
      display: grid !important;
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      gap: 16px !important;
    }
    #art-gallery-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
    #angel-numbers-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
/* ==================== 3D СЕТКА РАСКЛАДОВ ТАРО В КАТАЛОГЕ (3 КОЛОНКИ НА ДЕСКТОПЕ) ✨ ==================== */
    #theme-spreads-list,
    #catalogue-theme-spreads-list {
      display: grid !important;
      grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
      gap: 16px !important;
      width: 100% !important;
    }
    @media (min-width: 768px) {
      #theme-spreads-list,
      #catalogue-theme-spreads-list {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 18px !important;
      }
    }
    @media (min-width: 1180px) {
      #theme-spreads-list,
      #catalogue-theme-spreads-list {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 20px !important;
      }
    }

    .tarot-spread-3d-card {
      display: flex !important;
      flex-direction: column !important;
      justify-content: space-between !important;
      min-height: 205px !important;
      padding: 18px 20px !important;
      border-radius: 20px !important;
      background: linear-gradient(180deg, #1e0d37 0%, #150627 60%, #0d0319 100%) !important;
      border: 1px solid rgba(168, 85, 247, 0.35) !important;
      box-shadow: 
        inset 0 1.5px 1px rgba(255, 255, 255, 0.16),
        inset 0 -2px 3px rgba(0, 0, 0, 0.7),
        0 8px 24px rgba(0, 0, 0, 0.6) !important;
      backdrop-filter: blur(14px) !important;
      -webkit-backdrop-filter: blur(14px) !important;
      transition: all 0.25s cubic-bezier(0.34, 1.4, 0.64, 1) !important;
      position: relative !important;
      box-sizing: border-box !important;
    }

    .tarot-spread-3d-card:hover {
      transform: translateY(-4px) scale(1.01) !important;
      border-color: rgba(245, 211, 123, 0.75) !important;
      box-shadow: 
        inset 0 1.5px 1.5px rgba(255, 255, 255, 0.35),
        inset 0 -2px 3px rgba(0, 0, 0, 0.7),
        0 14px 32px rgba(0, 0, 0, 0.75),
        0 0 22px rgba(168, 85, 247, 0.45) !important;
    }

    .spread-card-icon-wrap {
      width: 48px !important;
      height: 48px !important;
      min-width: 48px !important;
      max-width: 48px !important;
      border-radius: 50% !important;
      border: 1.5px solid rgba(245, 211, 123, 0.7) !important;
      padding: 2px !important;
      box-shadow: 0 0 12px rgba(245, 211, 123, 0.35) !important;
      flex-shrink: 0 !important;
      overflow: hidden !important;
      background: #18082c !important;
      transition: transform 0.25s ease !important;
    }

    .tarot-spread-3d-card:hover .spread-card-icon-wrap {
      transform: scale(1.08) rotate(4deg) !important;
    }

    .spread-card-count-badge {
      font-size: 10.5px !important;
      font-weight: 800 !important;
      letter-spacing: 0.05em !important;
      text-transform: uppercase !important;
      color: #fde68a !important;
      background: rgba(30, 10, 50, 0.85) !important;
      padding: 3.5px 9px !important;
      border-radius: 12px !important;
      border: 1px solid rgba(245, 211, 123, 0.45) !important;
      box-shadow: 0 2px 6px rgba(0,0,0,0.4) !important;
      white-space: nowrap !important;
    }

    .spread-popular-badge {
      font-size: 10px !important;
      font-weight: 800 !important;
      letter-spacing: 0.04em !important;
      color: #fef08a !important;
      background: linear-gradient(135deg, rgba(180, 83, 9, 0.9), rgba(120, 53, 15, 0.95)) !important;
      border: 1px solid rgba(245, 158, 11, 0.7) !important;
      padding: 3.5px 8px !important;
      border-radius: 12px !important;
      box-shadow: 0 0 8px rgba(245, 158, 11, 0.4) !important;
      white-space: nowrap !important;
    }

    .spread-btn-launch {
      flex: 1 1 0% !important;
      padding: 9.5px 12px !important;
      border-radius: 12px !important;
      background: linear-gradient(180deg, #fcd34d 0%, #f59e0b 50%, #d97706 100%) !important;
      border: 1px solid rgba(255, 255, 255, 0.4) !important;
      box-shadow: 
        inset 0 1px 1px rgba(255, 255, 255, 0.6),
        inset 0 -1.5px 2px rgba(0,0,0,0.4),
        0 3px 8px rgba(0,0,0,0.5),
        0 0 12px rgba(245, 158, 11, 0.35) !important;
      color: #170624 !important;
      font-size: 12px !important;
      font-weight: 800 !important;
      letter-spacing: 0.06em !important;
      text-transform: uppercase !important;
      cursor: pointer !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 6px !important;
      transition: all 0.2s ease !important;
      outline: none !important;
    }

    .spread-btn-launch:hover {
      transform: translateY(-1.5px) !important;
      box-shadow: 0 6px 14px rgba(245, 158, 11, 0.5), 0 0 16px rgba(255, 240, 180, 0.6) !important;
    }

    .spread-btn-launch:active {
      transform: translateY(1px) scale(0.98) !important;
    }

    .spread-btn-detail {
      padding: 9.5px 14px !important;
      border-radius: 12px !important;
      background: linear-gradient(180deg, #2d134c 0%, #1a0830 100%) !important;
      border: 1px solid rgba(168, 85, 247, 0.45) !important;
      box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15), 0 2px 6px rgba(0,0,0,0.4) !important;
      color: #e9d5ff !important;
      font-size: 12px !important;
      font-weight: 700 !important;
      cursor: pointer !important;
      display: flex !important;
      align-items: center !important;
      gap: 4px !important;
      transition: all 0.2s ease !important;
      outline: none !important;
    }

    .spread-btn-detail:hover {
      color: #ffffff !important;
      border-color: rgba(245, 211, 123, 0.65) !important;
      background: linear-gradient(180deg, #3d1b64 0%, #280d46 100%) !important;
    }

    .spread-btn-detail:active {
      transform: translateY(1px) scale(0.98) !important;
    }

    .modal-screen {
      padding-top: 32px !important;
    }

/* ==================== 3D ВЫПУКЛЫЕ ПЛАШКИ МУДРОСТИ (ПОСЛАНИЕ, ШАГИ, СОВЕТ, АФФИРМАЦИЯ) ✨ ==================== */
    .wisdom-3d-tabs-wrap {
      display: flex !important;
      align-items: stretch !important;
      gap: 7px !important;
      width: 100% !important;
      padding: 6px !important;
      border-radius: 18px !important;
      background: linear-gradient(180deg, rgba(10, 3, 22, 0.95) 0%, rgba(18, 6, 36, 0.9) 100%) !important;
      border: 1px solid rgba(168, 85, 247, 0.35) !important;
      box-shadow: 
        inset 0 3px 8px rgba(0, 0, 0, 0.85),
        inset 0 -1px 2px rgba(255, 255, 255, 0.08),
        0 6px 20px rgba(0, 0, 0, 0.6) !important;
      box-sizing: border-box !important;
    }

    .wisdom-3d-tab {
      flex: 1 1 0% !important;
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 6px !important;
      padding: 9px 12px !important;
      min-height: 40px !important;
      border-radius: 14px !important;
      font-size: 12.5px !important;
      font-weight: 700 !important;
      letter-spacing: 0.01em !important;
      white-space: nowrap !important;
      color: #f1e6ff !important;
      background: linear-gradient(180deg, #2e134d 0%, #200b37 50%, #160627 100%) !important;
      border: 1px solid rgba(168, 85, 247, 0.45) !important;
      box-shadow: 
        inset 0 1.5px 1px rgba(255, 255, 255, 0.35),
        inset 0 -2px 3px rgba(0, 0, 0, 0.7),
        0 4px 10px rgba(0, 0, 0, 0.65),
        0 1px 2px rgba(0, 0, 0, 0.8) !important;
      outline: none !important;
      cursor: pointer !important;
      user-select: none !important;
      transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
      box-sizing: border-box !important;
      position: relative !important;
    }

    .wisdom-3d-tab:hover:not(.active) {
      color: #ffffff !important;
      background: linear-gradient(180deg, #441c72 0%, #2e1150 50%, #200a39 100%) !important;
      border-color: rgba(245, 211, 123, 0.6) !important;
      box-shadow: 
        inset 0 1.5px 1.5px rgba(255, 255, 255, 0.5),
        inset 0 -2px 3px rgba(0, 0, 0, 0.7),
        0 6px 14px rgba(0, 0, 0, 0.7),
        0 0 14px rgba(168, 85, 247, 0.45) !important;
      transform: translateY(-1.5px) !important;
    }

    .wisdom-3d-tab:active {
      transform: translateY(1px) scale(0.97) !important;
      box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.8),
        inset 0 -1px 1px rgba(255, 255, 255, 0.2),
        0 2px 4px rgba(0, 0, 0, 0.5) !important;
    }

    .wisdom-3d-tab .tab-icon {
      font-size: 14px !important;
      line-height: 1 !important;
      flex-shrink: 0 !important;
      filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.5)) !important;
      transition: transform 0.2s ease !important;
    }

    .wisdom-3d-tab:hover .tab-icon {
      transform: scale(1.15) !important;
    }

    .wisdom-3d-tab .tab-txt {
      line-height: 1 !important;
      white-space: nowrap !important;
      text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9) !important;
    }

    /* АКТИВНЫЕ 3D ПЛАШКИ С ИНДИВИДУАЛЬНЫМ САКРАЛЬНЫМ СВЕЧЕНИЕМ */
    .wisdom-3d-tab.active {
      color: #ffffff !important;
      transform: translateY(-2px) !important;
      border: 1px solid rgba(245, 211, 123, 0.9) !important;
    }

    /* 1. Послание: Королевский аметист */
    .wisdom-3d-tab.active#mtab-msg {
      background: linear-gradient(180deg, #a855f7 0%, #7e22ce 45%, #581c87 100%) !important;
      box-shadow: 
        inset 0 2px 2px rgba(255, 255, 255, 0.85),
        inset 0 -2px 4px rgba(0, 0, 0, 0.7),
        0 6px 18px rgba(168, 85, 247, 0.65),
        0 0 16px rgba(245, 211, 123, 0.45) !important;
    }

    /* 2. Шаги: Сапфир / Индиго */
    .wisdom-3d-tab.active#mtab-steps {
      background: linear-gradient(180deg, #6366f1 0%, #4338ca 45%, #312e81 100%) !important;
      box-shadow: 
        inset 0 2px 2px rgba(255, 255, 255, 0.85),
        inset 0 -2px 4px rgba(0, 0, 0, 0.7),
        0 6px 18px rgba(99, 102, 241, 0.65),
        0 0 16px rgba(245, 211, 123, 0.45) !important;
    }

    /* 3. Совет: Золотистый янтарь */
    .wisdom-3d-tab.active#mtab-warn {
      background: linear-gradient(180deg, #f59e0b 0%, #d97706 45%, #78350f 100%) !important;
      box-shadow: 
        inset 0 2px 2px rgba(255, 255, 255, 0.85),
        inset 0 -2px 4px rgba(0, 0, 0, 0.7),
        0 6px 18px rgba(245, 158, 11, 0.65),
        0 0 16px rgba(255, 240, 180, 0.5) !important;
    }

    /* 4. Аффирмация: Сакральная роза / фуксия */
    .wisdom-3d-tab.active#mtab-aff {
      background: linear-gradient(180deg, #ec4899 0%, #c026d3 45%, #701a75 100%) !important;
      box-shadow: 
        inset 0 2px 2px rgba(255, 255, 255, 0.85),
        inset 0 -2px 4px rgba(0, 0, 0, 0.7),
        0 6px 18px rgba(236, 72, 153, 0.65),
        0 0 16px rgba(245, 211, 123, 0.45) !important;
    }

    @media (min-width: 1024px) {
      .wisdom-3d-tabs-wrap {
        gap: 8px !important;
        padding: 6px !important;
        border-radius: 18px !important;
      }
      .wisdom-3d-tab {
        font-size: 13px !important;
        padding: 10px 14px !important;
        min-height: 42px !important;
        border-radius: 14px !important;
        gap: 6px !important;
      }
      .wisdom-3d-tab .tab-icon {
        font-size: 15px !important;
      }
    }
    /* Полное скрытие полос прокрутки (скроллбаров) — сайт скроллится колёсиком/жестами без визуальных серых полос */
    .custom-scrollbar,
    #desktop-center-container,
    #desktop-sidebar-left,
    #desktop-sidebar-right,
    #desktop-main-layout,
    .no-scrollbar,
    html,
    body {
      scrollbar-width: none !important;
      -ms-overflow-style: none !important;
    }
    .custom-scrollbar::-webkit-scrollbar,
    #desktop-center-container::-webkit-scrollbar,
    #desktop-sidebar-left::-webkit-scrollbar,
    #desktop-sidebar-right::-webkit-scrollbar,
    #desktop-main-layout::-webkit-scrollbar,
    .no-scrollbar::-webkit-scrollbar,
    html::-webkit-scrollbar,
    body::-webkit-scrollbar,
    *::-webkit-scrollbar {
      display: none !important;
      width: 0 !important;
      height: 0 !important;
    }

  
    /* ==================== АУРЫ АВАТАРА ДЛЯ ИГР С ПОДРУГАМИ И ПРОФИЛЯ ==================== */
    .avatar-aura-amethyst {
      background: linear-gradient(135deg, #a855f7, #ec4899, #8b5cf6) !important;
      box-shadow: 0 0 16px rgba(168, 85, 247, 0.7) !important;
    }

    .avatar-aura-sun_crown {
      background: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706) !important;
      box-shadow: 0 0 20px rgba(245, 158, 11, 0.85), inset 0 0 8px rgba(254, 240, 138, 0.6) !important;
      animation: auraSunPulse 2.5s infinite alternate !important;
    }

    .avatar-aura-quantum {
      background: linear-gradient(45deg, #06b6d4, #a855f7, #f43f5e, #eab308) !important;
      background-size: 250% 250% !important;
      box-shadow: 0 0 22px rgba(6, 182, 212, 0.8) !important;
      animation: auraQuantumShift 4s ease infinite !important;
    }

    .avatar-aura-dragon {
      background: linear-gradient(135deg, #ef4444, #f97316, #dc2626) !important;
      box-shadow: 0 0 22px rgba(239, 68, 68, 0.9) !important;
      animation: auraDragonPulse 2s infinite alternate !important;
    }

    @keyframes auraSunPulse {
      0% { box-shadow: 0 0 14px rgba(245, 158, 11, 0.7); }
      100% { box-shadow: 0 0 24px rgba(251, 191, 36, 1), 0 0 35px rgba(245, 158, 11, 0.5); }
    }

    @keyframes auraQuantumShift {
      0% { background-position: 0% 50%; box-shadow: 0 0 16px rgba(6, 182, 212, 0.7); }
      50% { background-position: 100% 50%; box-shadow: 0 0 24px rgba(236, 72, 153, 0.8); }
      100% { background-position: 0% 50%; box-shadow: 0 0 16px rgba(6, 182, 212, 0.7); }
    }

    @keyframes auraDragonPulse {
      0% { box-shadow: 0 0 15px rgba(239, 68, 68, 0.7); }
      100% { box-shadow: 0 0 26px rgba(249, 115, 22, 1), 0 0 38px rgba(220, 38, 38, 0.6); }
    }

    @keyframes moveStripe {
      0% { background-position: 0 0; }
      100% { background-position: 28px 0; }
    }


    #ranks-carousel {
      scrollbar-width: none !important;
      -ms-overflow-style: none !important;
    }
    #ranks-carousel::-webkit-scrollbar {
      display: none !important;
      width: 0 !important;
      height: 0 !important;
    }
    
    .mac-shuffle-card-item {
      position: absolute;
      inset: 0;
      border-radius: 20px;
      overflow: hidden;
      box-shadow: 0 12px 32px rgba(0, 0, 0, 0.85), 0 0 18px rgba(245, 191, 36, 0.3);
      border: 1.5px solid rgba(245, 191, 36, 0.65);
      transform-style: preserve-3d;
      will-change: transform, opacity;
      transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
      backface-visibility: hidden;
    }
  
    /* ==================== RPG СЕТКА ИНВЕНТАРЯ (GAME INVENTORY SLOTS) ==================== */
    .inv-grid-slot {
      position: relative;
      aspect-ratio: 1 / 1;
      border-radius: 18px;
      background: linear-gradient(145deg, rgba(30, 10, 52, 0.88) 0%, rgba(14, 4, 26, 0.95) 100%);
      border: 1.5px solid rgba(168, 85, 247, 0.28);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      user-select: none;
      transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
      box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6), 0 4px 10px rgba(0, 0, 0, 0.35);
      overflow: hidden;
    }
    .inv-grid-slot:active {
      transform: scale(0.93);
    }
    .inv-grid-slot.is-selected {
      border: 2px solid #ffd875 !important;
      box-shadow: 0 0 16px rgba(245, 211, 123, 0.6), inset 0 0 8px rgba(254, 240, 138, 0.25) !important;
    }
    .inv-grid-slot.is-equipped {
      border-color: #ffd875;
      box-shadow: 0 0 10px rgba(245, 211, 123, 0.4);
    }
    .inv-grid-slot.is-locked {
      opacity: 0.5;
      border-style: dashed;
      border-color: rgba(168, 85, 247, 0.2);
      background: rgba(10, 3, 20, 0.65);
    }
    .inv-grid-slot.is-empty {
      opacity: 0.2;
      border-style: dashed;
      border-color: rgba(255, 255, 255, 0.12);
      background: rgba(255, 255, 255, 0.01);
      cursor: default;
    }

    /* ==================== ПЕРЕЛИВАЮЩИЕСЯ РУБАШКИ КАРТ МАК (IRIDESCENT CARD COVERS) ==================== */
    .mac-cover-art-wrap {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      border-radius: 26px;
      overflow: hidden;
      box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8), 0 10px 30px rgba(0, 0, 0, 0.7);
    }
    .mac-cover-bg-flow {
      position: absolute;
      inset: -25%;
      width: 150%;
      height: 150%;
      background-size: 200% 200%;
      animation: macLiquidFlow 10s ease-in-out infinite alternate;
      will-change: background-position, filter;
    }
    @keyframes macLiquidFlow {
      0% { background-position: 0% 10%; filter: hue-rotate(0deg) saturate(1.1); }
      50% { background-position: 100% 90%; filter: hue-rotate(20deg) saturate(1.3); }
      100% { background-position: 30% 100%; filter: hue-rotate(-10deg) saturate(1.15); }
    }
    .mac-cover-holo-sheen {
      position: absolute;
      inset: -120%;
      width: 340%;
      height: 340%;
      background: linear-gradient(
        115deg,
        transparent 20%,
        rgba(255, 255, 255, 0.02) 32%,
        rgba(251, 191, 36, 0.16) 42%,
        rgba(244, 114, 182, 0.28) 47%,
        rgba(56, 189, 248, 0.32) 50%,
        rgba(168, 85, 247, 0.28) 53%,
        rgba(251, 191, 36, 0.18) 58%,
        rgba(255, 255, 255, 0.04) 66%,
        transparent 80%
      );
      transform: rotate(28deg);
      animation: macHoloSweep 5.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
      mix-blend-mode: screen;
      pointer-events: none;
    }
    @keyframes macHoloSweep {
      0% { transform: translateY(-55%) translateX(-30%) rotate(28deg); opacity: 0; }
      15% { opacity: 0.95; }
      50% { opacity: 1; }
      85% { opacity: 0.95; }
      100% { transform: translateY(55%) translateX(30%) rotate(28deg); opacity: 0; }
    }
    .mac-cover-sparkles {
      position: absolute;
      inset: 0;
      background-image: 
        radial-gradient(1.5px 1.5px at 25px 40px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 160px 85px, #fde047, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 70px 200px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 240px 160px, #f472b6, rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 190px 310px, #38bdf8, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 45px 390px, #fde047, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 230px 440px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 110px 490px, #c084fc, rgba(0,0,0,0));
      background-repeat: repeat;
      background-size: 280px 520px;
      opacity: 0.8;
      animation: macSparkleTwinkle 3.5s ease-in-out infinite alternate;
      pointer-events: none;
    }
    @keyframes macSparkleTwinkle {
      0% { opacity: 0.5; }
      50% { opacity: 0.95; }
      100% { opacity: 0.65; }
    }
    .mac-cover-frame {
      position: absolute;
      inset: 10px;
      border: 1.5px solid rgba(253, 224, 71, 0.6);
      border-radius: 18px;
      pointer-events: none;
      box-shadow: inset 0 0 16px rgba(245, 211, 123, 0.25), 0 0 14px rgba(0,0,0,0.6);
      z-index: 10;
    }
    .mac-cover-frame::before {
      content: '';
      position: absolute;
      inset: 5px;
      border: 1px dashed rgba(253, 224, 71, 0.4);
      border-radius: 14px;
    }
    .mac-cover-mandala {
      position: absolute;
      top: 50%;
      left: 50%;
      width: 220px;
      height: 220px;
      transform: translate(-50%, -50%);
      opacity: 0.8;
      pointer-events: none;
      animation: macMandalaPulse 10s ease-in-out infinite;
      filter: drop-shadow(0 0 16px rgba(253, 224, 71, 0.45));
      z-index: 5;
    }
    @keyframes macMandalaPulse {
      0%, 100% { transform: translate(-50%, -50%) rotate(0deg) scale(0.96); opacity: 0.72; }
      50% { transform: translate(-50%, -50%) rotate(180deg) scale(1.04); opacity: 0.95; }
    }

    /* ТЕМЫ ОБЛОЖЕК КАРТ МАК */
    .mac-theme-moonstone_opal .mac-cover-bg-flow {
      background: linear-gradient(135deg, #1d0933 0%, #3b1154 20%, #15375b 40%, #581c87 60%, #0c4a56 80%, #2f0e40 100%);
    }
    .mac-theme-moonstone_opal .mac-cover-frame {
      border-color: rgba(244, 114, 182, 0.65);
      box-shadow: inset 0 0 20px rgba(244, 114, 182, 0.25), 0 0 16px rgba(168, 85, 247, 0.35);
    }
    .mac-theme-emerald_malachite .mac-cover-bg-flow {
      background: linear-gradient(135deg, #012117 0%, #064e3b 25%, #047857 45%, #065f46 65%, #0d3829 85%, #012117 100%);
    }
    .mac-theme-emerald_malachite .mac-cover-frame {
      border-color: rgba(52, 211, 153, 0.75);
      box-shadow: inset 0 0 20px rgba(16, 185, 129, 0.35), 0 0 16px rgba(245, 158, 11, 0.4);
    }
    .mac-theme-emerald_malachite .mac-cover-mandala {
      filter: drop-shadow(0 0 16px rgba(52, 211, 153, 0.5));
    }
    .mac-theme-solar_phoenix .mac-cover-bg-flow {
      background: linear-gradient(135deg, #2b0e02 0%, #78350f 25%, #b45309 45%, #d97706 65%, #9a3412 85%, #2b0e02 100%);
    }
    .mac-theme-solar_phoenix .mac-cover-frame {
      border-color: rgba(251, 191, 36, 0.85);
      box-shadow: inset 0 0 25px rgba(245, 158, 11, 0.45), 0 0 20px rgba(245, 158, 11, 0.55);
    }
    .mac-theme-solar_phoenix .mac-cover-mandala {
      filter: drop-shadow(0 0 18px rgba(251, 191, 36, 0.65));
    }
    .mac-theme-cosmic_nebula .mac-cover-bg-flow {
      background: linear-gradient(135deg, #040612 0%, #1e1b4b 25%, #4338ca 45%, #581c87 65%, #0e1628 85%, #040612 100%);
    }
    .mac-theme-cosmic_nebula .mac-cover-frame {
      border-color: rgba(129, 140, 248, 0.75);
      box-shadow: inset 0 0 20px rgba(99, 102, 241, 0.4), 0 0 20px rgba(168, 85, 247, 0.45);
    }
    .mac-theme-cosmic_nebula .mac-cover-mandala {
      filter: drop-shadow(0 0 18px rgba(129, 140, 248, 0.55));
    }
    .mac-theme-prismatic_amethyst .mac-cover-bg-flow {
      background: linear-gradient(135deg, #2a074c 0%, #6b21a8 25%, #a21caf 45%, #be185d 65%, #4c1d95 85%, #2a074c 100%);
    }
    .mac-theme-prismatic_amethyst .mac-cover-frame {
      border-color: rgba(232, 121, 249, 0.8);
      box-shadow: inset 0 0 25px rgba(217, 70, 239, 0.4), 0 0 20px rgba(236, 72, 153, 0.5);
    }
    .mac-theme-prismatic_amethyst .mac-cover-mandala {
      filter: drop-shadow(0 0 18px rgba(232, 121, 249, 0.6));
    }
    .mac-theme-celestial_obsidian .mac-cover-bg-flow {
      background: linear-gradient(135deg, #08080a 0%, #16161a 30%, #24242c 50%, #16161a 70%, #08080a 100%);
    }
    .mac-theme-celestial_obsidian .mac-cover-frame {
      border-color: rgba(245, 211, 123, 0.9);
      box-shadow: inset 0 0 25px rgba(245, 211, 123, 0.5), 0 0 25px rgba(245, 211, 123, 0.65);
    }
    .mac-theme-celestial_obsidian .mac-cover-mandala {
      filter: drop-shadow(0 0 20px rgba(245, 211, 123, 0.7));
    }
    #metaphoric-modal > div,
    #mac-covers-modal > div {
      max-width: 820px !important;
      width: 100% !important;
      margin: 0 auto !important;
    }

    .avatar-aura-emerald {
      background: linear-gradient(135deg, #10b981, #059669, #34d399) !important;
      box-shadow: 0 0 18px rgba(16, 185, 129, 0.8) !important;
    }
    .avatar-aura-cyan {
      background: linear-gradient(135deg, #06b6d4, #0ea5e9, #38bdf8) !important;
      box-shadow: 0 0 18px rgba(6, 182, 212, 0.8) !important;
    }
    .avatar-aura-indigo {
      background: linear-gradient(135deg, #6366f1, #4f46e5, #818cf8) !important;
      box-shadow: 0 0 18px rgba(99, 102, 241, 0.8) !important;
    }
    .avatar-aura-rose {
      background: linear-gradient(135deg, #f43f5e, #ec4899, #fda4af) !important;
      box-shadow: 0 0 18px rgba(244, 63, 94, 0.8) !important;
    }
    .avatar-aura-star {
      background: linear-gradient(135deg, #38bdf8, #818cf8, #c084fc) !important;
      box-shadow: 0 0 20px rgba(56, 189, 248, 0.85) !important;
    }
    .avatar-aura-world {
      background: linear-gradient(135deg, #fbbf24, #f43f5e, #8b5cf6, #06b6d4) !important;
      box-shadow: 0 0 24px rgba(251, 191, 36, 0.9) !important;
      animation: auraQuantumShift 3s ease infinite !important;
    }

    /* Гарантированное скрытие и показ представлений десктопа */
    #view-home.hidden,
    #view-games.hidden,
    #view-numerology.hidden,
    #view-meditations.hidden,
    #view-diary.hidden,
    #view-mira.hidden,
    #view-profile.hidden {
      display: none !important;
    }
    #view-games:not(.hidden),
    #view-numerology:not(.hidden) {
      display: flex !important;
      flex-direction: column !important;
      width: 100% !important;
      height: 100% !important;
      max-height: 100% !important;
      overflow-y: auto !important;
    }

    /* ==================== 14. DESKTOP SPREAD MODAL & MAIN COSMIC BACKGROUND ==================== */
    /* Десктоп-версия: в окне раскладов используется чистый живой космический видеофон главной страницы сайта */
    #spread-modal,
    #metaphoric-modal,
    #tarot-catalogue-modal,
    #spread-detail-modal {
      background: #080310 !important;
      background-color: #080310 !important;
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
      filter: none !important;
      transform: none !important;
      perspective: none !important;
      contain: none !important;
      will-change: auto !important;
      width: 100vw !important;
      max-width: 100vw !important;
      min-width: 100vw !important;
      overflow-x: hidden !important;
    }

    /* Нижняя плашка описания карт: строго по центру и уже по ширине (в соответствии с разметкой пользователя) */
    #modal-card-detail-panel,
    #mac-card-detail-panel {
      max-width: 820px !important;
      width: min(820px, calc(100% - 32px)) !important;
      margin-left: auto !important;
      margin-right: auto !important;
      border-radius: 26px !important;
      background: rgba(18, 7, 34, 0.55) !important;
      backdrop-filter: blur(24px) !important;
      -webkit-backdrop-filter: blur(24px) !important;
      border: 1px solid rgba(192, 132, 252, 0.35) !important;
      box-shadow: 0 16px 48px rgba(0, 0, 0, 0.75), 0 0 35px rgba(168, 85, 247, 0.2) !important;
      margin-bottom: 32px !important;
    }

    /* Отключаем размытое амбиент-видео карты и градиент-заглушки за раскладом */
    #modal-ambient-video,
    #mac-ambient-video,
    #modal-ambient-gradient,
    #mac-ambient-gradient,
    #modal-ambient-img,
    #mac-ambient-img {
      display: none !important;
      opacity: 0 !important;
      visibility: hidden !important;
      pointer-events: none !important;
    }

    #modal-ambient-wrap,
    #mac-ambient-wrap,
    .modal-ambient-fullscreen,
    [id$="-ambient-wrap"] {
      position: fixed !important;
      inset: 0 !important;
      top: 0 !important;
      left: 0 !important;
      right: 0 !important;
      bottom: 0 !important;
      width: 100vw !important;
      min-width: 100vw !important;
      max-width: 100vw !important;
      height: 100vh !important;
      min-height: 100vh !important;
      max-height: 100vh !important;
      margin: 0 !important;
      padding: 0 !important;
      display: block !important;
      opacity: 1 !important;
      visibility: visible !important;
      pointer-events: none !important;
      z-index: 0 !important;
    }

    #modal-ambient-wrap > div,
    #mac-ambient-wrap > div,
    [id$="-ambient-wrap"] > div {
      width: 100% !important;
      max-width: 100vw !important;
      height: 100% !important;
      margin: 0 !important;
    }

    /* Нижняя плашка описания карт: строго по центру и уже по ширине (в соответствии с разметкой пользователя) */
    #modal-card-detail-panel,
    #mac-card-detail-panel {
      max-width: 820px !important;
      width: min(820px, calc(100% - 32px)) !important;
      margin-left: auto !important;
      margin-right: auto !important;
      border-radius: 26px !important;
      background: rgba(18, 7, 34, 0.55) !important;
      backdrop-filter: blur(24px) !important;
      -webkit-backdrop-filter: blur(24px) !important;
      border: 1px solid rgba(192, 132, 252, 0.35) !important;
      box-shadow: 0 16px 48px rgba(0, 0, 0, 0.75), 0 0 35px rgba(168, 85, 247, 0.2) !important;
      margin-bottom: 32px !important;
    }

    /* ==================== ARCANIKA-STYLE LIVE BACKGROUND ==================== */
    :root {
      --bg-top: #150826;
      --bg-base: #080310;
      --orb-primary: rgba(138, 75, 255, 0.42);
      --orb-secondary: rgba(75, 25, 175, 0.32);
      --orb-gold: rgba(212, 175, 106, 0.22);
      --orb-rose: rgba(195, 75, 155, 0.18);
      --orb1: rgba(138, 75, 255, 0.38);
      --orb2: rgba(82, 35, 195, 0.30);
      --orb3: rgba(212, 175, 106, 0.20);
      --gold: #d4af6a;
      --gold-bright: #f0c97a;
      --violet-glow: #c878a8;
    }

    .arcanika-bg-canvas {
      position: fixed !important;
      inset: 0 !important;
      top: 0 !important;
      left: 0 !important;
      right: 0 !important;
      bottom: 0 !important;
      width: 100vw !important;
      max-width: 100vw !important;
      min-width: 100vw !important;
      height: 100vh !important;
      max-height: 100vh !important;
      margin: 0 !important;
      inset: 0;
      pointer-events: none;
      background:
        radial-gradient(55% 45% at 22% 28%, var(--orb-primary) 0%, transparent 68%),
        radial-gradient(40% 35% at 85% 18%, var(--orb-gold) 0%, transparent 60%),
        radial-gradient(50% 45% at 12% 78%, var(--orb-secondary) 0%, transparent 65%),
        radial-gradient(45% 35% at 65% 65%, var(--orb-rose) 0%, transparent 60%),
        linear-gradient(168deg, var(--bg-top) 0%, var(--bg-base) 55%, #050208 100%);
    }

    .arcanika-bg-canvas::after {
      content: "";
      position: absolute;
      inset: 0;
      opacity: 0.75;
      background-image:
        radial-gradient(1.2px 1.2px at 15% 22%, rgba(255, 240, 200, 0.70), transparent),
        radial-gradient(1px 1px at 32% 12%, rgba(212, 175, 106, 0.55), transparent),
        radial-gradient(1.5px 1.5px at 68% 16%, rgba(255, 240, 200, 0.65), transparent),
        radial-gradient(1px 1px at 85% 28%, rgba(200, 160, 255, 0.60), transparent),
        radial-gradient(1.2px 1.2px at 45% 48%, rgba(255, 240, 200, 0.55), transparent),
        radial-gradient(1px 1px at 78% 62%, rgba(200, 160, 255, 0.55), transparent),
        radial-gradient(1.5px 1.5px at 20% 82%, rgba(255, 240, 200, 0.60), transparent),
        radial-gradient(1px 1px at 58% 88%, rgba(212, 175, 106, 0.50), transparent),
        radial-gradient(1.2px 1.2px at 92% 78%, rgba(255, 240, 200, 0.55), transparent);
      background-repeat: repeat;
      background-size: 440px 440px;
    }

    .sl-orbs {
      position: absolute;
      inset: 0;
      pointer-events: none;
      overflow: hidden;
      z-index: 1;
    }

    .sl-orb {
      position: absolute;
      border-radius: 50%;
      filter: blur(80px);
      will-change: transform, opacity;
      animation: slOrb linear infinite;
    }

    .sl-orb:first-child {
      width: 480px;
      height: 480px;
      top: 6%;
      left: -60px;
      background: var(--orb1);
      animation-duration: 22s;
      animation-delay: 0s;
    }

    .sl-orb:nth-child(2) {
      width: 380px;
      height: 380px;
      top: 24%;
      right: -70px;
      background: var(--orb2);
      animation-duration: 28s;
      animation-delay: -9s;
    }

    .sl-orb:nth-child(3) {
      width: 340px;
      height: 340px;
      bottom: 16%;
      left: 28%;
      background: var(--orb3);
      animation-duration: 18s;
      animation-delay: -5s;
    }

    @keyframes slOrb {
      0% {
        opacity: 0.35;
        transform: translateY(0) scale(1);
      }
      10% {
        opacity: 0.85;
      }
      50% {
        opacity: 1;
        transform: translateY(-40px) scale(1.08);
      }
      90% {
        opacity: 0.85;
      }
      100% {
        opacity: 0.35;
        transform: translateY(-10px) scale(0.97);
      }
    }

    .sl-particles {
      position: absolute;
      inset: 0;
      pointer-events: none;
      overflow: hidden;
      z-index: 2;
    }

    .fan-particles {
      position: absolute;
      inset: 0;
      pointer-events: none;
      overflow: hidden;
    }

    .fan-particles .fp {
      position: absolute;
      border-radius: 50%;
      background: var(--gold);
      box-shadow: 0 0 5px var(--gold), 0 0 14px var(--gold-bright);
      opacity: 0;
      animation: fpDrift var(--dur, 14s) linear infinite;
      animation-delay: var(--delay, 0s);
      pointer-events: none;
    }

    .fan-particles .fp.violet {
      background: var(--violet-glow);
      box-shadow: 0 0 5px var(--violet-glow), 0 0 16px rgba(200, 120, 168, 0.75);
    }

    @keyframes fpDrift {
      0% {
        opacity: 0;
        transform: translateY(30px) scale(0);
      }
      10% {
        opacity: 0.9;
        transform: translate(var(--dx, 0px), 0) scale(1);
      }
      85% {
        opacity: 0.65;
        transform: translate(calc(var(--dx, 0px) * 1.4), -75vh) scale(0.85);
      }
      100% {
        opacity: 0;
        transform: translate(calc(var(--dx, 0px) * 1.6), -88vh) scale(0);
      }
    }

    /* ================= ДЕСКТОПНЫЙ ДВУХКОЛОНОЧНЫЙ РАСКЛАД (КАРТА СЛЕВА, ПЛАШКА СПРАВА) ================= */
    @media (min-width: 1024px) {
      #spread-modal,
      #mac-modal {
        padding-bottom: 24px !important;
        justify-content: center !important;
        align-items: center !important;
      }
      #metaphoric-modal {
        padding-bottom: 24px !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
      }

      #mac-floating-nav-bar {
        top: 42px !important;
      }

      #modal-reveal-box,
      #mac-session-view {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        max-width: 1220px !important;
        width: 100% !important;
        margin: auto !important;
        gap: 36px !important;
        padding: 24px 32px !important;
        box-sizing: border-box !important;
      }

      #modal-reveal-box.hidden,
      #mac-session-view.hidden {
        display: none !important;
      }

      /* Левая колонка: сакральная 3D-видеокарта с навигацией */
      #modal-reveal-box > .card-3d-wrap,
      #mac-session-view > .card-3d-wrap {
        width: auto !important;
        flex-shrink: 0 !important;
        padding: 0 44px !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
      }

      #modal-reveal-box .card-3d-body,
      #mac-session-view .card-3d-body {
        height: 68vh !important;
        max-height: 600px !important;
        min-height: 480px !important;
        aspect-ratio: 9 / 16 !important;
      }

      #card-side-prev-btn,
      #mac-side-prev-btn {
        left: -12px !important;
      }

      #card-side-next-btn,
      #mac-side-next-btn {
        right: -12px !important;
      }

      /* Правая колонка: плашка с текстом и мудростью */
      #modal-card-detail-panel,
      #mac-card-detail-panel {
        flex: 1 1 0% !important;
        width: 100% !important;
        max-width: 580px !important;
        margin: 0 !important;
        max-height: 82vh !important;
        overflow-y: auto !important;
        box-sizing: border-box !important;
        align-self: center !important;
        padding: 24px !important;
      }

      /* МАК: расширение родительского контейнера на десктопе при открытой сессии */
      #metaphoric-modal > div {
        max-width: 1280px !important;
        width: 100% !important;
        margin: 0 auto !important;
      }

      #mac-hub-view {
        max-width: 1240px !important;
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
      }

      #mac-spread-detail-view,
      #mac-summary-view {
        max-width: 900px !important;
        margin-left: auto !important;
        margin-right: auto !important;
      }

      /* ==================== СЕТКА И 3D-КАРТОЧКИ СЕССИЙ МАК ==================== */
      #mac-spreads-grid {
        display: grid !important;
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
        gap: 16px !important;
        width: 100% !important;
      }
      @media (min-width: 680px) {
        #mac-spreads-grid {
          grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
          gap: 18px !important;
        }
      }
      @media (min-width: 1100px) {
        #mac-spreads-grid {
          grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
          gap: 20px !important;
        }
        /* 7-я сессия (одиночка в 3-м ряду) аккуратно центрируется по центру сетки */
        #mac-spreads-grid > :last-child:nth-child(3n + 1) {
          grid-column: 2 / 3 !important;
        }
      }

      .mac-session-3d-card {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        min-height: 200px !important;
        padding: 16px 18px !important;
        border-radius: 20px !important;
        background: linear-gradient(180deg, #1e0d37 0%, #150627 60%, #0d0319 100%) !important;
        border: 1px solid rgba(168, 85, 247, 0.35) !important;
        box-shadow: 
          inset 0 1.5px 1px rgba(255, 255, 255, 0.16),
          inset 0 -2px 3px rgba(0, 0, 0, 0.7),
          0 8px 24px rgba(0, 0, 0, 0.6) !important;
        backdrop-filter: blur(14px) !important;
        -webkit-backdrop-filter: blur(14px) !important;
        transition: all 0.25s cubic-bezier(0.34, 1.4, 0.64, 1) !important;
        position: relative !important;
        box-sizing: border-box !important;
      }

      .mac-session-3d-card:hover {
        transform: translateY(-4px) scale(1.01) !important;
        border-color: rgba(245, 211, 123, 0.75) !important;
        box-shadow: 
          inset 0 1.5px 1.5px rgba(255, 255, 255, 0.35),
          inset 0 -2px 3px rgba(0, 0, 0, 0.7),
          0 14px 32px rgba(0, 0, 0, 0.75),
          0 0 22px rgba(168, 85, 247, 0.45) !important;
      }

      .mac-session-thumb-wrap {
        width: 58px !important;
        height: 84px !important;
        min-width: 58px !important;
        max-width: 58px !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        border: 1px solid rgba(245, 211, 123, 0.5) !important;
        box-shadow: 0 4px 14px rgba(0,0,0,0.6) !important;
        background: #000000 !important;
        position: relative !important;
        flex-shrink: 0 !important;
        transition: transform 0.25s ease, border-color 0.25s ease !important;
      }

      .mac-session-3d-card:hover .mac-session-thumb-wrap {
        transform: scale(1.05) rotate(-1deg) !important;
        border-color: rgba(245, 211, 123, 0.9) !important;
      }

      .mac-badge-pill {
        font-size: 10px !important;
        font-weight: 800 !important;
        letter-spacing: 0.05em !important;
        text-transform: uppercase !important;
        color: #fde68a !important;
        background: rgba(30, 10, 50, 0.85) !important;
        padding: 3px 8.5px !important;
        border-radius: 12px !important;
        border: 1px solid rgba(245, 211, 123, 0.45) !important;
        box-shadow: 0 2px 6px rgba(0,0,0,0.4) !important;
        white-space: nowrap !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 4px !important;
      }

      .mac-word-pill {
        font-size: 9.5px !important;
        font-weight: 800 !important;
        letter-spacing: 0.04em !important;
        text-transform: uppercase !important;
        color: #a7f3d0 !important;
        background: rgba(6, 78, 59, 0.8) !important;
        padding: 3px 7px !important;
        border-radius: 12px !important;
        border: 1px solid rgba(52, 211, 153, 0.5) !important;
        box-shadow: 0 2px 6px rgba(0,0,0,0.4) !important;
        white-space: nowrap !important;
      }

      .mac-featured-badge {
        font-size: 9.5px !important;
        font-weight: 800 !important;
        letter-spacing: 0.04em !important;
        text-transform: uppercase !important;
        color: #fef08a !important;
        background: linear-gradient(135deg, rgba(180, 83, 9, 0.85), rgba(120, 53, 15, 0.9)) !important;
        border: 1px solid rgba(245, 158, 11, 0.6) !important;
        padding: 3px 7px !important;
        border-radius: 12px !important;
        box-shadow: 0 0 8px rgba(245, 158, 11, 0.35) !important;
        white-space: nowrap !important;
      }

      #mac-session-view {
        gap: 28px !important;
      }

      /* ========================================================
         МЕТАФОРИЧЕСКИЕ ОБРАЗЫ: ВЕРТИКАЛЬНАЯ 3D-СТОЙКА НАВИГАЦИИ (ОБРАЗЫ)
         ======================================================== */
      #mac-step-dots {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        flex-shrink: 0 !important;
        z-index: 25 !important;
        margin: 0 !important;
        padding: 12px 10px !important;
        background: linear-gradient(180deg, rgba(22, 9, 44, 0.78) 0%, rgba(14, 5, 30, 0.88) 100%) !important;
        border: 1px solid rgba(168, 85, 247, 0.32) !important;
        border-radius: 22px !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
        box-shadow: 
          0 12px 32px rgba(0, 0, 0, 0.55),
          inset 0 1px 1px rgba(255, 255, 255, 0.15),
          0 0 20px rgba(168, 85, 247, 0.18) !important;
      }

      #mac-step-dots.hidden {
        display: none !important;
      }

      /* 3D-плашки переключения шагов / образов */
      #mac-step-dots button,
      #mac-step-dots .mac-step-pill {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        min-width: 108px !important;
        width: 100% !important;
        height: 38px !important;
        padding: 0 14px !important;
        border-radius: 12px !important;
        font-family: inherit !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        letter-spacing: 0.03em !important;
        cursor: pointer !important;
        white-space: nowrap !important;
        user-select: none !important;
        transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
        position: relative !important;
        overflow: hidden !important;
      }

      /* Неактивная выпуклая 3D-плашка */
      #mac-step-dots button:not(.active):not(.mac-step-active),
      #mac-step-dots .mac-step-pill:not(.active):not(.mac-step-active) {
        background: linear-gradient(180deg, #2b1248 0%, #1c0a32 55%, #130522 100%) !important;
        border: 1px solid rgba(168, 85, 247, 0.38) !important;
        color: rgba(233, 213, 255, 0.88) !important;
        box-shadow: 
          inset 0 1px 1.5px rgba(255, 255, 255, 0.25),
          inset 0 -1.5px 2px rgba(0, 0, 0, 0.65),
          0 3px 8px rgba(0, 0, 0, 0.45) !important;
        transform: translateY(0) scale(1) !important;
      }

      /* Hover на неактивную плашку */
      #mac-step-dots button:not(.active):not(.mac-step-active):hover,
      #mac-step-dots .mac-step-pill:not(.active):not(.mac-step-active):hover {
        background: linear-gradient(180deg, #3f1969 0%, #290e48 55%, #1d0734 100%) !important;
        border-color: rgba(245, 211, 123, 0.7) !important;
        color: #ffffff !important;
        box-shadow: 
          inset 0 1.5px 2px rgba(255, 255, 255, 0.45),
          inset 0 -2px 3px rgba(0, 0, 0, 0.75),
          0 6px 16px rgba(0, 0, 0, 0.6),
          0 0 14px rgba(245, 211, 123, 0.3) !important;
        transform: translateY(-1.5px) scale(1.025) !important;
      }

      #mac-step-dots button:active,
      #mac-step-dots .mac-step-pill:active {
        transform: translateY(1px) scale(0.97) !important;
        box-shadow: 
          inset 0 2px 4px rgba(0, 0, 0, 0.8),
          0 1px 2px rgba(0, 0, 0, 0.4) !important;
      }

      /* Активная сияющая 3D-плашка текущего образа */
      #mac-step-dots button.active,
      #mac-step-dots button.mac-step-active,
      #mac-step-dots .mac-step-pill.active,
      #mac-step-dots .mac-step-pill.mac-step-active {
        background: linear-gradient(180deg, #fcd34d 0%, #f59e0b 45%, #b45309 100%) !important;
        border: 1px solid rgba(255, 251, 235, 0.95) !important;
        color: #1a082e !important;
        font-weight: 800 !important;
        box-shadow: 
          inset 0 2px 2px rgba(255, 255, 255, 0.95),
          inset 0 -2px 4px rgba(0, 0, 0, 0.45),
          0 6px 18px rgba(245, 158, 11, 0.55),
          0 0 18px rgba(245, 211, 123, 0.5) !important;
        transform: scale(1.05) !important;
        text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5) !important;
      }
    }

    @media (min-width: 1440px) {
      #metaphoric-modal > div {
        max-width: 1400px !important;
      }

      #modal-reveal-box,
      #mac-session-view {
        max-width: 1380px !important;
        gap: 36px !important;
      }

      #modal-reveal-box .card-3d-body,
      #mac-session-view .card-3d-body {
        height: 72vh !important;
        max-height: 660px !important;
      }

      #modal-card-detail-panel,
      #mac-card-detail-panel {
        max-width: 640px !important;
        max-height: 84vh !important;
        padding: 28px !important;
      }
    }

