    :root,
    :root[data-theme="tavern"] {
      --background: #14100d;
      --foreground: #f4ebd9;
      --card: #1d1713;
      --border: #63492c;
      --muted-foreground: #b2a28c;
      --ui-accent: #f5b942;
      --ui-accent-2: #f97316;
      --ui-accent-light: #fde68a;
      --ui-accent-soft: rgba(217, 154, 48, 0.24);
      --ui-accent-strong: rgba(206, 134, 34, 0.44);
      --ui-grad: linear-gradient(135deg, #f5b942 0%, #f97316 100%);
      --ui-grad-h: linear-gradient(90deg, #f5b942 0%, #f97316 100%);
      --ui-border: #9a6e32;
      --ui-border-sub: #5c462a;
      --ui-topbar-top: #261e18;
      --ui-topbar-bot: #17120e;
      --ui-panel-top: rgba(28, 21, 16, 0.86);
      --ui-panel-bot: rgba(17, 13, 10, 0.93);
      --ui-cta-top: #e58e19;
      --ui-cta-bot: #c44126;
      --ui-cta-border: #ffd479;
      --ui-cta-base: #3a1209;
      --ui-glow: rgba(245, 185, 66, 0.38);
      --ui-logo-rim-1: #fbbf24;
      --ui-logo-rim-2: #ea580c;
      --ui-logo-light: #fef08a;
      --ui-logo-dark: #92400e;
      --ui-logo-gem: #ef4444;
      --ui-logo-field-1: #261710;
      --ui-logo-field-2: #18100b;
      --env-mist: rgba(20, 14, 10, 0.94);
      --env-mist-mid: rgba(20, 14, 10, 0.45);
      --env-sky-fade: rgba(14, 10, 7, 0.65);
      color-scheme: dark;
    }
    :root[data-theme="dragon"] {
      --background: #140c0a;
      --foreground: #fae8dc;
      --card: #1e120f;
      --border: #7c3522;
      --muted-foreground: #bfa093;
      --ui-accent: #f97316;
      --ui-accent-2: #ef4444;
      --ui-accent-light: #fdba74;
      --ui-accent-soft: rgba(239, 68, 68, 0.24);
      --ui-accent-strong: rgba(220, 38, 38, 0.44);
      --ui-grad: linear-gradient(135deg, #f97316 0%, #dc2626 100%);
      --ui-grad-h: linear-gradient(90deg, #f97316 0%, #dc2626 100%);
      --ui-border: #c2410c;
      --ui-border-sub: #6b2b1d;
      --ui-topbar-top: #291310;
      --ui-topbar-bot: #160a08;
      --ui-panel-top: rgba(34, 16, 13, 0.86);
      --ui-panel-bot: rgba(20, 10, 8, 0.93);
      --ui-cta-top: #ef4444;
      --ui-cta-bot: #991b1b;
      --ui-cta-border: #fdba74;
      --ui-cta-base: #450a0a;
      --ui-glow: rgba(249, 115, 22, 0.46);
      --ui-logo-rim-1: #fb923c;
      --ui-logo-rim-2: #dc2626;
      --ui-logo-light: #fed7aa;
      --ui-logo-dark: #7f1d1d;
      --ui-logo-gem: #fde047;
      --ui-logo-field-1: #2b130e;
      --ui-logo-field-2: #170907;
      --env-mist: rgba(28, 12, 8, 0.94);
      --env-mist-mid: rgba(44, 16, 10, 0.48);
      --env-sky-fade: rgba(20, 8, 6, 0.7);
    }
    :root[data-theme="forest"] {
      --background: #0b1610;
      --foreground: #e6f5ea;
      --card: #122119;
      --border: #2e6649;
      --muted-foreground: #96baa4;
      --ui-accent: #34d399;
      --ui-accent-2: #10b981;
      --ui-accent-light: #a7f3d0;
      --ui-accent-soft: rgba(52, 211, 153, 0.22);
      --ui-accent-strong: rgba(16, 185, 129, 0.40);
      --ui-grad: linear-gradient(135deg, #34d399 0%, #059669 100%);
      --ui-grad-h: linear-gradient(90deg, #34d399 0%, #10b981 100%);
      --ui-border: #3d9a6c;
      --ui-border-sub: #27583e;
      --ui-topbar-top: #152b20;
      --ui-topbar-bot: #0c1a13;
      --ui-panel-top: rgba(16, 34, 24, 0.85);
      --ui-panel-bot: rgba(10, 21, 15, 0.92);
      --ui-cta-top: #10b981;
      --ui-cta-bot: #047857;
      --ui-cta-border: #a7f3d0;
      --ui-cta-base: #064e3b;
      --ui-glow: rgba(52, 211, 153, 0.40);
      --ui-logo-rim-1: #34d399;
      --ui-logo-rim-2: #059669;
      --ui-logo-light: #d1fae5;
      --ui-logo-dark: #065f46;
      --ui-logo-gem: #fde047;
      --ui-logo-field-1: #122b1e;
      --ui-logo-field-2: #091810;
      --env-mist: rgba(15, 38, 26, 0.94);
      --env-mist-mid: rgba(18, 48, 33, 0.52);
      --env-sky-fade: rgba(10, 26, 19, 0.55);
    }
    :root[data-theme="japan"] {
      --background: #140f1c;
      --foreground: #f8eaf3;
      --card: #1d1629;
      --border: #7a4264;
      --muted-foreground: #bfa4b9;
      --ui-accent: #f472b6;
      --ui-accent-2: #c084fc;
      --ui-accent-light: #fbcfe8;
      --ui-accent-soft: rgba(244, 114, 182, 0.22);
      --ui-accent-strong: rgba(219, 39, 119, 0.40);
      --ui-grad: linear-gradient(135deg, #f472b6 0%, #c084fc 100%);
      --ui-grad-h: linear-gradient(90deg, #f472b6 0%, #c084fc 100%);
      --ui-border: #b85c94;
      --ui-border-sub: #653554;
      --ui-topbar-top: #261a36;
      --ui-topbar-bot: #150e20;
      --ui-panel-top: rgba(30, 21, 42, 0.85);
      --ui-panel-bot: rgba(18, 12, 26, 0.92);
      --ui-cta-top: #ec4899;
      --ui-cta-bot: #9333ea;
      --ui-cta-border: #fbcfe8;
      --ui-cta-base: #500724;
      --ui-glow: rgba(244, 114, 182, 0.42);
      --ui-logo-rim-1: #f472b6;
      --ui-logo-rim-2: #a855f7;
      --ui-logo-light: #fce7f3;
      --ui-logo-dark: #831843;
      --ui-logo-gem: #fde047;
      --ui-logo-field-1: #2a1836;
      --ui-logo-field-2: #160d1f;
      --env-mist: rgba(28, 18, 40, 0.94);
      --env-mist-mid: rgba(38, 22, 52, 0.5);
      --env-sky-fade: rgba(20, 12, 30, 0.58);
    }
    :root[data-theme="china"] {
      --background: #170e0e;
      --foreground: #fbf0e1;
      --card: #221414;
      --border: #8a4332;
      --muted-foreground: #c4a495;
      --ui-accent: #ef4444;
      --ui-accent-2: #f59e0b;
      --ui-accent-light: #fde68a;
      --ui-accent-soft: rgba(220, 38, 38, 0.24);
      --ui-accent-strong: rgba(185, 28, 28, 0.44);
      --ui-grad: linear-gradient(135deg, #ef4444 0%, #f59e0b 100%);
      --ui-grad-h: linear-gradient(90deg, #ef4444 0%, #f59e0b 100%);
      --ui-border: #c25134;
      --ui-border-sub: #733326;
      --ui-topbar-top: #2c1716;
      --ui-topbar-bot: #190d0d;
      --ui-panel-top: rgba(36, 19, 18, 0.86);
      --ui-panel-bot: rgba(21, 11, 11, 0.93);
      --ui-cta-top: #dc2626;
      --ui-cta-bot: #b45309;
      --ui-cta-border: #fde68a;
      --ui-cta-base: #450a0a;
      --ui-glow: rgba(239, 68, 68, 0.42);
      --ui-logo-rim-1: #ef4444;
      --ui-logo-rim-2: #fbbf24;
      --ui-logo-light: #fef08a;
      --ui-logo-dark: #7f1d1d;
      --ui-logo-gem: #fde047;
      --ui-logo-field-1: #2c1514;
      --ui-logo-field-2: #180b0b;
      --env-mist: rgba(30, 16, 14, 0.94);
      --env-mist-mid: rgba(42, 20, 16, 0.48);
      --env-sky-fade: rgba(20, 10, 10, 0.6);
    }
    :root[data-theme="scifi"] {
      --background: #070e1b;
      --foreground: #e0f4ff;
      --card: #0d182b;
      --border: #23587d;
      --muted-foreground: #8fb4cf;
      --ui-accent: #38bdf8;
      --ui-accent-2: #6366f1;
      --ui-accent-light: #bae6fd;
      --ui-accent-soft: rgba(56, 189, 248, 0.22);
      --ui-accent-strong: rgba(14, 165, 233, 0.40);
      --ui-grad: linear-gradient(135deg, #38bdf8 0%, #6366f1 100%);
      --ui-grad-h: linear-gradient(90deg, #38bdf8 0%, #6366f1 100%);
      --ui-border: #388cc0;
      --ui-border-sub: #1c4c6e;
      --ui-topbar-top: #0f2038;
      --ui-topbar-bot: #081222;
      --ui-panel-top: rgba(13, 27, 48, 0.85);
      --ui-panel-bot: rgba(7, 15, 29, 0.93);
      --ui-cta-top: #0ea5e9;
      --ui-cta-bot: #2563eb;
      --ui-cta-border: #bae6fd;
      --ui-cta-base: #0c254f;
      --ui-glow: rgba(56, 189, 248, 0.45);
      --ui-logo-rim-1: #38bdf8;
      --ui-logo-rim-2: #6366f1;
      --ui-logo-light: #e0f2fe;
      --ui-logo-dark: #1e3a8a;
      --ui-logo-gem: #22d3ee;
      --ui-logo-field-1: #0f223d;
      --ui-logo-field-2: #081224;
      --env-mist: rgba(7, 18, 36, 0.95);
      --env-mist-mid: rgba(10, 26, 52, 0.52);
      --env-sky-fade: rgba(5, 11, 24, 0.55);
    }
    :root[data-theme="spacemarine"] {
      --background: #090d1c;
      --foreground: #eae8ff;
      --card: #12152b;
      --border: #4f46a5;
      --muted-foreground: #a5a8d4;
      --ui-accent: #3b82f6;
      --ui-accent-2: #a855f7;
      --ui-accent-light: #d8b4fe;
      --ui-accent-soft: rgba(59, 130, 246, 0.24);
      --ui-accent-strong: rgba(147, 51, 234, 0.42);
      --ui-grad: linear-gradient(125deg, #2563eb 0%, #3b82f6 42%, #9333ea 64%, #c084fc 100%);
      --ui-grad-h: linear-gradient(90deg, #3b82f6 0%, #6366f1 50%, #a855f7 100%);
      --ui-border: #6d5ce7;
      --ui-border-sub: #3b3575;
      --ui-topbar-top: #111b3b;
      --ui-topbar-bot: #160e2e;
      --ui-panel-top: rgba(17, 26, 54, 0.85);
      --ui-panel-bot: rgba(24, 14, 46, 0.92);
      --ui-cta-top: #2563eb;
      --ui-cta-bot: #9333ea;
      --ui-cta-border: #c4b5fd;
      --ui-cta-base: #2e1065;
      --ui-glow: rgba(139, 92, 246, 0.52);
      --ui-logo-rim-1: #3b82f6;
      --ui-logo-rim-2: #a855f7;
      --ui-logo-light: #bfdbfe;
      --ui-logo-dark: #4c1d95;
      --ui-logo-gem: #c084fc;
      --ui-logo-field-1: #102454;
      --ui-logo-field-2: #261042;
      --env-mist: rgba(12, 16, 38, 0.95);
      --env-mist-mid: rgba(34, 16, 58, 0.52);
      --env-sky-fade: rgba(8, 12, 28, 0.58);
    }
    :root[data-theme="minecraft"] {
      --background: #131c14;
      --foreground: #f2f7ec;
      --card: #1d261a;
      --border: #558b3e;
      --muted-foreground: #b2c7a4;
      --ui-accent: #4ade80;
      --ui-accent-2: #38bdf8;
      --ui-accent-light: #bbf7d0;
      --ui-accent-soft: rgba(74, 222, 128, 0.22);
      --ui-accent-strong: rgba(56, 189, 248, 0.36);
      --ui-grad: linear-gradient(125deg, #22c55e 0%, #4ade80 48%, #38bdf8 100%);
      --ui-grad-h: linear-gradient(90deg, #4ade80 0%, #86efac 52%, #38bdf8 100%);
      --ui-border: #68a347;
      --ui-border-sub: #3c592e;
      --ui-topbar-top: #1d2a1b;
      --ui-topbar-bot: #19140e;
      --ui-panel-top: rgba(27, 36, 24, 0.88);
      --ui-panel-bot: rgba(29, 22, 16, 0.93);
      --ui-cta-top: #22c55e;
      --ui-cta-bot: #15803d;
      --ui-cta-border: #bbf7d0;
      --ui-cta-base: #14532d;
      --ui-glow: rgba(74, 222, 128, 0.44);
      --ui-logo-rim-1: #4ade80;
      --ui-logo-rim-2: #38bdf8;
      --ui-logo-light: #dcfce7;
      --ui-logo-dark: #166534;
      --ui-logo-gem: #38bdf8;
      --ui-logo-field-1: #1a2d1b;
      --ui-logo-field-2: #241911;
      --env-mist: rgba(18, 28, 19, 0.94);
      --env-mist-mid: rgba(26, 44, 27, 0.50);
      --env-sky-fade: rgba(12, 20, 14, 0.56);
    }
    :root[data-theme="shenzhen"] {
      --background: #080d18;
      --foreground: #f4efe6;
      --card: #101829;
      --border: #4a5568;
      --muted-foreground: #9db0c8;
      --ui-accent: #f5c35e;
      --ui-accent-2: #2dd4bf;
      --ui-accent-light: #fef08a;
      --ui-accent-soft: rgba(245, 195, 94, 0.20);
      --ui-accent-strong: rgba(245, 195, 94, 0.36);
      --ui-grad: linear-gradient(135deg, #f5c35e 0%, #2dd4bf 100%);
      --ui-grad-h: linear-gradient(90deg, #f5c35e 0%, #2dd4bf 100%);
      --ui-border: #c59f59;
      --ui-border-sub: #334155;
      --ui-topbar-top: #141e30;
      --ui-topbar-bot: #0b111e;
      --ui-panel-top: rgba(16, 25, 42, 0.88);
      --ui-panel-bot: rgba(9, 15, 27, 0.94);
      --ui-cta-top: #f5b942;
      --ui-cta-bot: #c88622;
      --ui-cta-border: #fef08a;
      --ui-cta-base: #3b2307;
      --ui-glow: rgba(245, 195, 94, 0.42);
      --ui-logo-rim-1: #f5c35e;
      --ui-logo-rim-2: #2dd4bf;
      --ui-logo-light: #fef9c3;
      --ui-logo-dark: #1e293b;
      --ui-logo-gem: #2dd4bf;
      --ui-logo-field-1: #162238;
      --ui-logo-field-2: #0a111f;
      --env-mist: rgba(8, 14, 28, 0.94);
      --env-mist-mid: rgba(14, 24, 44, 0.48);
      --env-sky-fade: rgba(6, 10, 22, 0.48);
    }
    :root[data-theme="zombie"] {
      --background: #0d120e;
      --foreground: #eef2e6;
      --card: #161e18;
      --border: #4d5c48;
      --muted-foreground: #9fb098;
      --ui-accent: #a3e635;
      --ui-accent-2: #eab308;
      --ui-accent-light: #d9f99d;
      --ui-accent-soft: rgba(163, 230, 53, 0.20);
      --ui-accent-strong: rgba(163, 230, 53, 0.36);
      --ui-grad: linear-gradient(135deg, #a3e635 0%, #eab308 100%);
      --ui-grad-h: linear-gradient(90deg, #a3e635 0%, #eab308 100%);
      --ui-border: #84cc16;
      --ui-border-sub: #3b4738;
      --ui-topbar-top: #1a211b;
      --ui-topbar-bot: #0f1410;
      --ui-panel-top: rgba(20, 28, 21, 0.90);
      --ui-panel-bot: rgba(11, 16, 12, 0.95);
      --ui-cta-top: #a3e635;
      --ui-cta-bot: #4d7c0f;
      --ui-cta-border: #d9f99d;
      --ui-cta-base: #1a2e05;
      --ui-glow: rgba(163, 230, 53, 0.42);
      --ui-logo-rim-1: #a3e635;
      --ui-logo-rim-2: #eab308;
      --ui-logo-light: #ecfccb;
      --ui-logo-dark: #1f291e;
      --ui-logo-gem: #ef4444;
      --ui-logo-field-1: #1a241b;
      --ui-logo-field-2: #0c120d;
      --env-mist: rgba(12, 17, 13, 0.94);
      --env-mist-mid: rgba(24, 34, 24, 0.50);
      --env-sky-fade: rgba(10, 14, 10, 0.52);
    }
    * { box-sizing: border-box; }
    html, body {
      margin: 0;
      padding: 0;
      overflow-x: hidden;
      background-color: var(--background);
      color: var(--foreground);
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    }
    input, select, textarea { color: var(--foreground); }
    select option { background-color: var(--card); color: var(--foreground); }

    /* Ambient Live Pixel Particle Canvas + Stepped 16-Bit Character Idle Breathing */
    .ambient-fx-canvas {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      z-index: 6;
      image-rendering: pixelated;
    }
    /* Selectable Fighter Idle Animations (2-frame discrete 0.6s 1px pixel breathing; origin strictly 0px 0px so pieces never dodge cursor) */
    @keyframes pxPieceFly {
      0%, 100% { transform: translateY(0px); }
      50% { transform: translateY(-3.5px); }
    }
    @keyframes pxWindSway {
      0%, 100% { filter: brightness(1); }
      50% { filter: brightness(1.045); }
    }
    /* True 4-frame pixel dolls animate internally via SVG steps(1); zero fake vertical sticker wobble on grounded feet! */
    .px-idle-breathe {
      animation: none;
      transform-origin: 0px 0px;
    }
    .px-idle-fly {
      animation: pxPieceFly 1.5s ease-in-out infinite;
      transform-origin: 0px 0px;
    }
    .px-idle-none {
      animation: none;
      transform-origin: 0px 0px;
    }
    .fighter-node:hover .px-idle-breathe,
    .fighter-node:hover .px-idle-fly {
      animation-play-state: paused;
    }
    .px-idle-portrait {
      animation: none;
      transform-origin: center center;
    }
    .lounge-actor {
      position: absolute;
      transform: translateX(-50%);
      display: flex;
      flex-direction: column;
      align-items: center;
      cursor: pointer;
      user-select: none;
      will-change: left, bottom;
    }
    .lounge-actor .lounge-px-shadow {
      width: 50px;
      height: 6px;
      margin-top: -10px;
      background: rgba(5, 4, 3, 0.58);
      box-shadow: 0 2px 0 rgba(0, 0, 0, 0.34);
      clip-path: polygon(14% 0%, 86% 0%, 100% 50%, 86% 100%, 14% 100%, 0% 50%);
      pointer-events: none;
      z-index: 1;
    }
    .lounge-actor.lounge-actor-sm .lounge-px-shadow {
      width: 34px;
      height: 5px;
      margin-top: -8px;
    }
    .lounge-actor .lounge-actor-name {
      position: absolute;
      left: 50%;
      top: calc(100% - 6px);
      transform: translateX(-50%);
      z-index: 4;
      pointer-events: none;
    }
    .lounge-actor:hover .lounge-actor-name {
      border-color: #fde047 !important;
      color: #fef9c3 !important;
    }
    .px-pixel-img, .standee-preview-img, .px-part-canvas {
      image-rendering: pixelated;
      image-rendering: crisp-edges;
    }
    body.ambient-off .px-idle-breathe,
    body.ambient-off .px-idle-fly,
    body.ambient-off .px-idle-portrait,
    body.ambient-off .px-stage-particle,
    body.ambient-off .cta-px-sheen,
    body.ambient-off .cta-px-spark,
    body.ambient-off .cta-px-hero,
    body.ambient-off .um-fullart-holo-sheen,
    body.ambient-off .um-fullart-orbit-border {
      animation: none !important;
    }
    body.ambient-off .ambient-fx-canvas {
      display: none !important;
    }

    /* ==================== CARDS & DYNAMIC FAN HAND ==================== */
    .um-card {
      position: relative;
      box-sizing: border-box;
      width: 122px;
      height: 170px;
      flex-shrink: 0;
      border-radius: 9px;
      background: #f3ecdf;
      color: #1f1a15;
      border: 2px solid #2d241c;
      box-shadow: -2px 5px 14px rgba(0, 0, 0, 0.42);
      display: flex;
      flex-direction: column;
      overflow: hidden;
      cursor: grab;
      transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), margin 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease, border-color 0.16s ease, filter 0.16s ease;
      user-select: none;
    }
    .um-card:active { cursor: grabbing; }
    .um-card.playable-glow {
      border-color: rgba(235, 198, 118, 0.92);
      box-shadow: 0 0 0 1.5px rgba(235, 198, 118, 0.5), -2px 6px 16px rgba(0, 0, 0, 0.45);
    }
    .um-card.dimmed { opacity: 0.42; filter: grayscale(0.55); cursor: not-allowed; }
    .um-card.lg { width: 174px; height: 240px; cursor: default; }

    .fan-hand {
      flex: 1;
      display: flex;
      align-items: flex-end;
      justify-content: center;
      min-width: 0;
      height: 174px;
      padding: 0 22px 6px;
      overflow: visible;
      position: relative;
    }
    .fan-card-slot {
      position: relative;
      transition: margin 0.2s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .fan-card-visual {
      transform: translateY(var(--rest-y, 0px)) rotate(var(--rest-rot, 0deg));
      transform-origin: bottom center;
      transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
      will-change: transform;
    }
    .fan-card-slot:hover {
      z-index: 60 !important;
    }
    .fan-card-slot:hover .fan-card-visual {
      transform: translateY(-46px) scale(1.18) rotate(0deg) !important;
    }
    .fan-card-slot:hover .um-card {
      border-color: #f4d382;
      box-shadow: 0 20px 36px rgba(0, 0, 0, 0.72), 0 0 0 2px #f4d382;
    }
    .fan-card-slot:hover + .fan-card-slot .fan-card-visual {
      transform: translateX(12px) translateY(calc(var(--rest-y, 0px) + 4px)) rotate(var(--rest-rot, 0deg));
    }

    /* ===== Tutorial forced-guidance highlight ===== */
    .fan-card-slot.tut-force-slot { z-index: 70 !important; }
    .fan-card-slot.tut-force-slot .fan-card-visual,
    .fs-viewer-hand .fan-card-slot.tut-force-slot .fan-card-visual { transform: translateY(-52px) scale(1.24) rotate(0deg) !important; }
    .tut-force-slot .um-card { border-color: #fde047 !important; animation: tutForcePulse 1.05s ease-in-out infinite; }
    @keyframes tutForcePulse { 0%,100% { box-shadow: 0 0 0 3px #fde047, 0 0 18px 4px rgba(250,204,21,0.7); } 50% { box-shadow: 0 0 0 4px #fff7ae, 0 0 34px 10px rgba(250,204,21,0.95); } }
    .tut-force-tag { position: absolute; left: 50%; top: -12px; transform: translateX(-50%); z-index: 90; white-space: nowrap; padding: 4px 11px; border-radius: 999px; background: #fde047; color: #1c1305; font-size: 12px; font-weight: 900; border: 2px solid #1c1305; box-shadow: 0 6px 18px rgba(0,0,0,0.75); animation: tutTagBounce 0.9s ease-in-out infinite; pointer-events: none; }
    .tut-force-tag.tut-deck-tag { top: -40px; }
    @keyframes tutTagBounce { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -6px); } }
    .tut-force-deck { border-color: #fde047 !important; animation: tutForcePulse 1.05s ease-in-out infinite; }
    .tut-viz-card-wrap { position: relative; display: inline-block; padding: 2px 30px 28px 30px; }
    .tut-viz-mark { position: absolute; width: 22px; height: 22px; border-radius: 6px; background: #e11d48; color: #fff; font-weight: 900; font-size: 12px; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,0.6); z-index: 6; border: 1.5px solid #fff1f2; }
    .tut-viz-mark::after { content: ''; position: absolute; width: 10px; height: 2px; background: #fb7185; top: 50%; }
    .tut-viz-mark.l::after { left: 100%; }
    .tut-viz-mark.r::after { right: 100%; }
    .tut-viz-mark.b::after { width: 2px; height: 8px; left: 50%; top: auto; bottom: 100%; }
    .tut-viz-ring { position: absolute; border-radius: 999px; border: 3px solid #fde047; box-shadow: 0 0 16px 4px rgba(250,204,21,0.85); animation: tutForcePulse 1.05s ease-in-out infinite; pointer-events: none; z-index: 6; }
    .ribbon-attack { background: #c43a31; color: #fff; }
    .ribbon-defense { background: #2d6da3; color: #fff; }
    .ribbon-versatile { background: #704296; color: #fff; }
    .ribbon-scheme { background: #e8aa42; color: #1b1509; }

    /* ==================== OFFICIAL-STYLE TABLETOP CARD LAYOUT ==================== */
    .um-card.um-official {
      --oc-pad: 3.5px;
      --oc-pen-w: 22px;
      --oc-boost: 19px;
      --oc-title-sz: 9.2px;
      --oc-body-sz: 7.4px;
      --oc-val-sz: 12px;
      --oc-owner-sz: 7.4px;
      --oc-foot-sz: 6.6px;
      --oc-icon-sz: 12px;
      --oc-notch: 6px;
      background: var(--card-border-col, #f4efe4);
      color: #f8f5ee;
      padding: var(--oc-pad);
      border: 1.5px solid #2b231b;
    }
    .fs-viewer-hand .um-card.um-official {
      --oc-pad: calc(3px * var(--big-hud-mult, 1));
      --oc-pen-w: calc(20px * var(--big-hud-mult, 1));
      --oc-boost: calc(18px * var(--big-hud-mult, 1));
      --oc-title-sz: calc(8.8px * var(--big-hud-mult, 1));
      --oc-body-sz: calc(7.1px * var(--big-hud-mult, 1));
      --oc-val-sz: calc(11.5px * var(--big-hud-mult, 1));
      --oc-owner-sz: calc(7px * var(--big-hud-mult, 1));
      --oc-foot-sz: calc(6.3px * var(--big-hud-mult, 1));
      --oc-icon-sz: calc(11px * var(--big-hud-mult, 1));
      --oc-notch: calc(5px * var(--big-hud-mult, 1));
    }
    .um-card.um-official.lg {
      --oc-pad: 5px;
      --oc-pen-w: 31px;
      --oc-boost: 26px;
      --oc-title-sz: 12.2px;
      --oc-body-sz: 9.4px;
      --oc-val-sz: 16.5px;
      --oc-owner-sz: 9.2px;
      --oc-foot-sz: 8.2px;
      --oc-icon-sz: 16.5px;
      --oc-notch: 8px;
      border-radius: 10px;
    }
    .um-card.um-official.xl {
      --oc-pad: 8px;
      --oc-pen-w: 54px;
      --oc-boost: 44px;
      --oc-title-sz: 21px;
      --oc-body-sz: 14px;
      --oc-val-sz: 28px;
      --oc-owner-sz: 14px;
      --oc-foot-sz: 12px;
      --oc-icon-sz: 28px;
      --oc-notch: 13px;
      border-radius: 14px;
    }
    .active-played-card-dock .apc-card-stage .um-card.um-official.xl {
      --oc-pad: 5.5px;
      --oc-pen-w: 36px;
      --oc-boost: 30px;
      --oc-title-sz: 14.5px;
      --oc-body-sz: 10.6px;
      --oc-val-sz: 20px;
      --oc-owner-sz: 10.5px;
      --oc-foot-sz: 9px;
      --oc-icon-sz: 20px;
      --oc-notch: 9px;
    }
    .um-official-inner {
      position: relative;
      display: flex;
      flex-direction: column;
      width: 100%;
      height: 100%;
      border-radius: 5px;
      overflow: hidden;
      background: var(--card-box-bg, #0d1d26);
    }
    .um-card.um-official.xl .um-official-inner { border-radius: 8px; }
    .um-art-window {
      position: relative;
      flex: 1 1 0%;
      min-height: 44%;
      width: 100%;
      overflow: hidden;
      background: var(--card-box-bg, #13222b);
    }
    .um-card.um-official.um-density-md .um-card-body { font-size: calc(var(--oc-body-sz) * 0.94); line-height: 1.18; }
    .um-card.um-official.um-density-lg .um-card-body { font-size: calc(var(--oc-body-sz) * 0.87); line-height: 1.15; }
    .um-card.um-official.um-density-xl .um-card-body { font-size: calc(var(--oc-body-sz) * 0.79); line-height: 1.12; }
    .um-card.um-official.um-density-md .um-title-rule,
    .um-card.um-official.um-density-lg .um-title-rule,
    .um-card.um-official.um-density-xl .um-title-rule { margin: 1.5px 0 2px; }
    .um-card.um-official.xl.um-density-md .um-card-body { font-size: calc(var(--oc-body-sz) * 0.95); line-height: 1.30; }
    .um-card.um-official.xl.um-density-lg .um-card-body { font-size: calc(var(--oc-body-sz) * 0.89); line-height: 1.24; }
    .um-card.um-official.xl.um-density-xl .um-card-body { font-size: calc(var(--oc-body-sz) * 0.82); line-height: 1.18; }
    .um-card.um-official.has-combo .um-art-window { min-height: 38%; }
    .um-card.um-official.has-combo .um-text-box { min-height: 0; max-height: 44%; }
    .um-card.um-official.has-combo:not(.lg):not(.xl) .um-text-box { padding: 2px 4.5px 1.5px; }
    .um-card.um-official.has-combo:not(.lg):not(.xl) .um-title-rule { margin: 1px 0 1.5px; }
    .um-card.um-official.has-combo:not(.lg):not(.xl) .um-card-body { font-size: calc(var(--oc-body-sz) * 0.84); line-height: 1.12; }
    .um-card.um-official.has-combo:not(.lg):not(.xl) .um-combo-footer { border-top-width: 2px; padding: 1.5px 5px 1.5px 0; gap: 1px; }
    .um-card.um-official.has-combo:not(.lg):not(.xl) .um-combo-flag { --oc-icon-sz: 8.5px; font-size: 9px; padding: 1.5px 8px 1.5px 4px; }
    .um-card.um-official.has-combo:not(.lg):not(.xl) .um-combo-meta { font-size: calc(var(--oc-body-sz) * 0.82); line-height: 1.04; }

    /* ==================== 16-BIT PIXEL SIGNATURE FOIL CARD ANIMATIONS (HARD-EDGE INTEGER PIXELS) ==================== */
    .um-card.um-foil-card {
      border-color: var(--foil-rim, #f59e0b);
      box-shadow: 0 0 0 1px #140f0a, 0 0 0 2.5px var(--foil-rim, #f59e0b), 0 4px 0 rgba(0, 0, 0, 0.55);
    }
    .um-card.um-foil-card.xl {
      box-shadow: 0 0 0 2px #140f0a, 0 0 0 4px var(--foil-rim, #f59e0b), 0 8px 0 rgba(0, 0, 0, 0.65);
    }
    .um-foil-fx-layer {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      border-radius: inherit;
      pointer-events: none;
      z-index: 9;
      overflow: hidden;
    }
    .um-foil-fx-svg {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      display: block;
      overflow: hidden;
      image-rendering: pixelated;
    }
    .um-foil-fx-svg .px-fx-f1 { animation: umPxFoilF1 0.72s steps(1, end) infinite; }
    .um-foil-fx-svg .px-fx-f2 { animation: umPxFoilF2 0.72s steps(1, end) infinite; }
    .um-foil-fx-svg .px-fx-f3 { animation: umPxFoilF3 0.72s steps(1, end) infinite; }
    .um-foil-fx-svg .px-fx-sweep {
      animation: umPxFoilSweep 2.6s steps(9, end) infinite;
      will-change: transform, opacity;
    }
    @keyframes umPxFoilF1 {
      0%, 33.32% { opacity: 1; }
      33.33%, 100% { opacity: 0; }
    }
    @keyframes umPxFoilF2 {
      0%, 33.32% { opacity: 0; }
      33.33%, 66.65% { opacity: 1; }
      66.66%, 100% { opacity: 0; }
    }
    @keyframes umPxFoilF3 {
      0%, 66.65% { opacity: 0; }
      66.66%, 100% { opacity: 1; }
    }
    @keyframes umPxFoilSweep {
      0%   { transform: translate(-72px, 0); opacity: 0; }
      10%  { transform: translate(-54px, 0); opacity: 0.72; }
      44%  { transform: translate(66px, 0);  opacity: 0.72; }
      52%, 100% { transform: translate(84px, 0); opacity: 0; }
    }
    body.ambient-off .um-foil-fx-svg .px-fx-f1 { animation: none; opacity: 1; }
    body.ambient-off .um-foil-fx-svg .px-fx-f2,
    body.ambient-off .um-foil-fx-svg .px-fx-f3,
    body.ambient-off .um-foil-fx-svg .px-fx-sweep { animation: none; opacity: 0; }

    /* V33: FULL-ART BORDERLESS CARD MODE (隐藏文本框 · 整卡铺满立绘 · 特效绕整卡边缘旋转!) */
    @property --fa-orbit-angle {
      syntax: '<angle>';
      initial-value: 0deg;
      inherits: false;
    }
    @keyframes fullArtOrbitSpin {
      0%   { --fa-orbit-angle: 0deg; }
      100% { --fa-orbit-angle: 360deg; }
    }
    @keyframes fullArtHoloSweep {
      0%   { background-position: -160% 0%; }
      100% { background-position: 260% 0%; }
    }
    .um-card.um-official.is-full-art {
      padding: 1.5px;
      background: #141114;
      border-color: rgba(244, 239, 228, 0.35);
    }
    .um-card.um-official.is-full-art.um-foil-card {
      padding: 2.5px;
      border-color: var(--foil-rim, #fbbf24);
    }
    .um-card.um-official.is-full-art .um-official-inner {
      position: relative;
      background: #0c0a0d;
      overflow: hidden;
    }
    .um-fullart-bg-img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center 22%;
      z-index: 1;
      pointer-events: none;
    }
    .um-fullart-scrim {
      position: absolute;
      inset: 0;
      z-index: 2;
      background: linear-gradient(
        180deg,
        rgba(8, 6, 12, 0.08) 0%,
        rgba(8, 6, 12, 0.0) 36%,
        rgba(8, 6, 12, 0.44) 56%,
        rgba(6, 5, 10, 0.78) 76%,
        rgba(5, 4, 9, 0.92) 100%
      );
      pointer-events: none;
    }
    .um-fullart-holo-sheen {
      position: absolute;
      inset: 0;
      z-index: 3;
      background-image: linear-gradient(
        118deg,
        transparent 18%,
        rgba(255, 255, 255, 0.08) 32%,
        rgba(253, 224, 71, 0.14) 38%,
        rgba(56, 189, 248, 0.14) 44%,
        rgba(244, 114, 182, 0.12) 50%,
        transparent 62%
      );
      background-size: 260% 100%;
      mix-blend-mode: screen;
      pointer-events: none;
      animation: fullArtHoloSweep 4.2s steps(28, end) infinite;
    }
    .um-fullart-orbit-border {
      position: absolute;
      inset: 0;
      z-index: 18;
      border-radius: inherit;
      padding: 2.5px;
      pointer-events: none;
      background: conic-gradient(
        from var(--fa-orbit-angle),
        transparent 0deg,
        transparent 50deg,
        var(--foil-rim, #fbbf24) 115deg,
        #ffffff 145deg,
        var(--foil-rim, #fbbf24) 175deg,
        transparent 230deg,
        var(--foil-rim, #fbbf24) 295deg,
        #ffffff 325deg,
        transparent 360deg
      );
      -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
      -webkit-mask-composite: xor;
      mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
      mask-composite: exclude;
      animation: fullArtOrbitSpin 2.6s steps(24, end) infinite;
    }
    .lounge-card-strip .um-fullart-holo-sheen,
    .lounge-card-strip .um-fullart-orbit-border,
    #hero-overview-modal .um-fullart-holo-sheen,
    #hero-overview-modal .um-fullart-orbit-border,
    #deck-preview-modal .um-fullart-holo-sheen,
    #deck-preview-modal .um-fullart-orbit-border,
    #hero-poster-modal .um-fullart-holo-sheen,
    #hero-poster-modal .um-fullart-orbit-border {
      animation-play-state: paused;
    }
    .lounge-card-strip .um-card:hover .um-fullart-holo-sheen,
    .lounge-card-strip .um-card:hover .um-fullart-orbit-border,
    #hero-overview-modal .um-card:hover .um-fullart-holo-sheen,
    #hero-overview-modal .um-card:hover .um-fullart-orbit-border,
    #deck-preview-modal .um-card:hover .um-fullart-holo-sheen,
    #deck-preview-modal .um-card:hover .um-fullart-orbit-border,
    #hero-poster-modal .um-card:hover .um-fullart-holo-sheen,
    #hero-poster-modal .um-card:hover .um-fullart-orbit-border {
      animation-play-state: running;
    }
    .um-card.um-official.is-full-art.xl .um-fullart-orbit-border {
      padding: 4.5px;
    }
    .um-card.um-official.is-full-art .um-art-window {
      background: transparent !important;
      z-index: 5;
    }
    .um-card.um-official.is-full-art .um-pennant-shell {
      background: rgba(244, 239, 228, 0.34) !important;
    }
    .um-card.um-official.is-full-art .um-pennant-owner {
      background: rgba(10, 10, 14, 0.72) !important;
    }
    .um-card.um-official.is-full-art .um-divider-bar {
      background: transparent !important;
      height: 0 !important;
      overflow: visible !important;
      z-index: 14;
    }
    .um-card.um-official.is-full-art .um-boost-coin {
      background: rgba(10, 10, 14, 0.88) !important;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.85);
    }
    .um-card.um-official.is-full-art .um-text-box {
      position: relative;
      z-index: 8;
      background: transparent !important;
      background-image: none !important;
    }
    .um-card.um-official.is-full-art .um-card-title {
      color: #ffffff !important;
      text-shadow: 0 1px 3px rgba(0,0,0,0.96), 0 0 8px rgba(0,0,0,0.88);
    }
    .um-card.um-official.is-full-art .um-title-rule {
      background: linear-gradient(90deg, rgba(244, 63, 94, 0.85) 0%, rgba(251, 191, 36, 0.65) 55%, transparent 100%) !important;
      height: 1.5px;
    }
    .um-card.um-official.is-full-art .um-card-body {
      color: #f8fafc !important;
      text-shadow: 0 1px 2.5px rgba(0,0,0,0.98), 0 0 6px rgba(0,0,0,0.90);
    }
    .um-card.um-official.is-full-art .um-card-footer {
      color: rgba(248, 250, 252, 0.90) !important;
      text-shadow: 0 1px 2px rgba(0,0,0,0.96);
    }
    .um-card.um-official.is-full-art .um-combo-footer {
      position: relative;
      z-index: 8;
      background: rgba(10, 8, 14, 0.72) !important;
      background-image: none !important;
      border-top-color: rgba(251, 191, 36, 0.55) !important;
    }
    .um-card.um-official.is-full-art > .um-official-inner > .um-foil-fx-layer {
      z-index: 16;
    }
    body.ambient-off .um-fullart-orbit-border,
    body.ambient-off .um-fullart-holo-sheen { animation: none; }
    .um-art-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      image-rendering: pixelated;
    }
    .um-pennant-shell {
      position: absolute;
      top: 0;
      left: 0;
      z-index: 12;
      width: calc(var(--oc-pen-w) + 2px);
      max-height: calc(100% - 2px);
      display: flex;
      flex-direction: column;
      background: var(--card-border-col, #f4efe4);
      padding: 0 2px 2.5px 0;
      clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--oc-notch) - 1px), 50% 100%, 0 calc(100% - var(--oc-notch) - 1px));
      filter: drop-shadow(1px 2px 3px rgba(0, 0, 0, 0.55));
    }
    .um-pennant-body {
      width: 100%;
      flex: 1;
      min-height: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      background: var(--card-box-bg, #0d1d26);
      background-image: repeating-linear-gradient(45deg, transparent 0 4px, rgba(255,255,255,0.04) 4px 5px);
      clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--oc-notch)), 50% 100%, 0 calc(100% - var(--oc-notch)));
    }
    .um-pennant-top {
      width: 100%;
      flex-shrink: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 0.5px;
      padding: 2px 2px calc(var(--oc-notch) + 1.5px);
      clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--oc-notch)), 50% 100%, 0 calc(100% - var(--oc-notch)));
    }
    .um-pennant-top.type-attack    { background: linear-gradient(180deg, #df2c2d 0%, #bd1c20 100%); color: #ffffff; }
    .um-pennant-top.type-defense   { background: linear-gradient(180deg, #2d7ec2 0%, #1d5d96 100%); color: #ffffff; }
    .um-pennant-top.type-versatile { background: linear-gradient(180deg, #7a48a6 0%, #5c3185 100%); color: #ffffff; }
    .um-pennant-top.type-scheme    { background: linear-gradient(180deg, #f7bf60 0%, #e09a32 100%); color: #ffffff; }
    .um-pennant-val {
      font-family: 'Arial Narrow', 'Impact', ui-sans-serif, system-ui, sans-serif;
      font-size: var(--oc-val-sz);
      font-weight: 900;
      line-height: 0.92;
      color: #ffffff;
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
    }
    .um-pennant-owner {
      width: 100%;
      flex: 0 1 auto;
      min-height: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 4px 1px calc(var(--oc-notch) + 4px);
      color: #f8f5ee;
      font-size: var(--oc-owner-sz);
      font-weight: 900;
      line-height: 1;
      overflow: hidden;
    }
    .um-pennant-owner-txt {
      display: inline-block;
      writing-mode: vertical-rl;
      text-orientation: sideways;
      transform: rotate(180deg);
      white-space: nowrap;
      line-height: 1;
      letter-spacing: 0.04em;
    }
    .um-pennant-owner.compact-owner {
      font-size: calc(var(--oc-owner-sz) * 0.84);
      padding: 3px 1px calc(var(--oc-notch) + 3px);
    }
    .um-pennant-owner.ultra-compact-owner {
      font-size: calc(var(--oc-owner-sz) * 0.72);
      padding: 2px 0 calc(var(--oc-notch) + 2px);
    }
    .um-pennant-owner.en-vertical {
      font-size: calc(var(--oc-owner-sz) * 0.82);
      text-transform: uppercase;
    }
    .um-pennant-owner.en-vertical.compact-owner {
      font-size: calc(var(--oc-owner-sz) * 0.64);
    }
    .um-pennant-owner.en-vertical.ultra-compact-owner {
      font-size: calc(var(--oc-owner-sz) * 0.46);
    }
    .um-pennant-owner.en-vertical .um-pennant-owner-txt {
      letter-spacing: 0.05em;
    }
    .um-pennant-owner.en-vertical.ultra-compact-owner .um-pennant-owner-txt {
      letter-spacing: 0.01em;
    }
    .um-card.um-official.xl .um-pennant-owner { padding: 6px 2px calc(var(--oc-notch) + 6px); }
    .um-card.um-official.lg .um-pennant-owner { padding: 5px 1px calc(var(--oc-notch) + 5px); }
    .um-divider-bar {
      position: relative;
      height: 2.5px;
      width: 100%;
      background: var(--card-border-col, #f4efe4);
      flex-shrink: 0;
      z-index: 14;
    }
    .um-card.um-official.xl .um-divider-bar { height: 4px; }
    .um-boost-coin {
      position: absolute;
      right: 5px;
      top: 50%;
      transform: translateY(-50%);
      width: var(--oc-boost);
      height: var(--oc-boost);
      border-radius: 9999px;
      background: #10151d;
      border: 2px solid var(--card-border-col, #f4efe4);
      color: #ffffff;
      font-family: ui-sans-serif, system-ui, sans-serif;
      font-size: calc(var(--oc-boost) * 0.56);
      font-weight: 900;
      display: grid;
      place-items: center;
      line-height: 1;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.72);
      z-index: 16;
    }
    @keyframes sicilyWarnStripe {
      0% { background-position: 0 0; }
      100% { background-position: 64px 0; }
    }
    @keyframes sicilyLogoFloat {
      0%, 100% { transform: translateY(0px) scale(1); filter: drop-shadow(0 6px 18px rgba(0,0,0,0.92)) drop-shadow(0 0 14px rgba(251,191,36,0.45)); }
      50% { transform: translateY(-6px) scale(1.025); filter: drop-shadow(0 12px 24px rgba(0,0,0,0.95)) drop-shadow(0 0 28px rgba(251,191,36,0.85)) drop-shadow(0 0 42px rgba(244,63,94,0.45)); }
    }
    @keyframes sicilyLogoSheen {
      0% { transform: translateX(-140%) skewX(-24deg); opacity: 0; }
      20% { opacity: 0.72; }
      55% { transform: translateX(240%) skewX(-24deg); opacity: 0; }
      100% { transform: translateX(240%) skewX(-24deg); opacity: 0; }
    }
    @keyframes sicilyStarTwinkle {
      0%, 100% { transform: scale(0.5) rotate(0deg); opacity: 0.25; }
      50% { transform: scale(1.25) rotate(45deg); opacity: 1; }
    }
    .sicily-warn-bar {
      background: repeating-linear-gradient(-45deg, #facc15 0 16px, #1c0b12 16px 32px);
      background-size: 64px 64px;
      animation: sicilyWarnStripe 0.55s linear infinite;
    }
    .sicily-logo-wrap {
      position: relative;
      display: inline-block;
      overflow: hidden;
      animation: sicilyLogoFloat 3.2s ease-in-out infinite;
    }
    .sicily-logo-wrap::after {
      content: '';
      position: absolute;
      inset: 0;
      width: 42%;
      background: linear-gradient(90deg, transparent 0%, rgba(255, 248, 200, 0.55) 50%, transparent 100%);
      pointer-events: none;
      mix-blend-mode: screen;
      animation: sicilyLogoSheen 3.6s ease-in-out infinite;
    }
    .sicily-sparkle {
      position: absolute;
      pointer-events: none;
      color: #fef08a;
      text-shadow: 0 0 8px #f59e0b, 0 0 14px #f43f5e;
      animation: sicilyStarTwinkle 2.1s ease-in-out infinite;
    }
    .sicily-px-frame {
      border-image-source: url('../assets/sicily_boss_panel_frame.png');
      border-image-slice: 24 fill;
      border-image-width: 14px;
      border-image-repeat: round;
      image-rendering: pixelated;
    }
    .sicily-px-cta {
      position: relative;
      background-image: url('../assets/sicily_boss_cta_btn.png');
      background-size: 100% 100%;
      background-repeat: no-repeat;
      image-rendering: pixelated;
      filter: drop-shadow(0 6px 18px rgba(0,0,0,0.85)) drop-shadow(0 0 22px rgba(251,191,36,0.55));
      transition: transform 0.14s ease, filter 0.14s ease;
    }
    .sicily-px-cta:hover {
      transform: translateY(-2px) scale(1.03);
      filter: drop-shadow(0 8px 22px rgba(0,0,0,0.9)) drop-shadow(0 0 32px rgba(251,191,36,0.85));
    }
    .sicily-px-cta:active {
      transform: translateY(1px) scale(0.98);
    }
    .um-card.um-official.xl .um-boost-coin { right: 10px; border-width: 3px; }
    .um-boost-coin.has-boost-trick {
      border-color: #fbbf24;
      color: #fef08a;
      box-shadow: 0 0 8px rgba(251, 191, 36, 0.55), 0 2px 5px rgba(0, 0, 0, 0.78);
    }
    .um-boost-trick-box {
      position: absolute;
      right: calc(5px + var(--oc-boost) * 0.58);
      top: 50%;
      transform: translateY(-50%);
      max-width: calc(100% - var(--oc-pennant-w, 28px) - var(--oc-boost) - 10px);
      min-height: calc(var(--oc-boost) * 0.84);
      padding: 1.5px calc(var(--oc-boost) * 0.46) 1.5px 5px;
      border-radius: 4px 0 0 4px;
      background: linear-gradient(90deg, rgba(14, 18, 26, 0.96) 0%, rgba(30, 22, 14, 0.96) 100%);
      border: 1.5px solid #fbbf24;
      border-right: none;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.78);
      color: #fef3c7;
      font-family: var(--card-font, 'Inter', 'Noto Sans SC', system-ui, sans-serif);
      font-size: max(6.5px, calc(var(--oc-boost) * 0.35));
      font-weight: 800;
      line-height: 1.12;
      display: flex;
      align-items: center;
      z-index: 15;
      pointer-events: auto;
    }
    .um-boost-trick-txt {
      display: block;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
    }
    .um-card.um-official.lg .um-boost-trick-box {
      font-size: 8.5px;
      padding: 2px calc(var(--oc-boost) * 0.46) 2px 6px;
    }
    .um-card.um-official.xl .um-boost-trick-box {
      right: calc(10px + var(--oc-boost) * 0.58);
      border-width: 2.5px;
      border-radius: 7px 0 0 7px;
      padding: 3.5px calc(var(--oc-boost) * 0.48) 3.5px 10px;
      font-size: 13px;
      line-height: 1.22;
    }
    .um-card.um-official.xl .um-boost-trick-txt {
      white-space: normal;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
    }
    .um-text-box {
      position: relative;
      flex: 0 0 auto;
      min-height: 22%;
      max-height: 54%;
      display: flex;
      flex-direction: column;
      padding: 2.5px 5px 2px;
      background-color: var(--card-box-bg, #0d1d26);
      font-family: var(--card-font, 'Inter', 'Noto Sans SC', system-ui, sans-serif);
      overflow: hidden;
    }
    .pat-grid {
      background-color: var(--card-box-bg, #0d1d26);
      background-image:
        repeating-linear-gradient(90deg, transparent 0 11px, var(--card-pat-col, rgba(255,255,255,0.06)) 11px 13px),
        repeating-linear-gradient(0deg, transparent 0 11px, var(--card-pat-col, rgba(255,255,255,0.06)) 11px 13px);
    }
    .pat-diamond {
      background-color: var(--card-box-bg, #0d1d26);
      background-image:
        repeating-linear-gradient(45deg, transparent 0 10px, var(--card-pat-col, rgba(255,255,255,0.07)) 10px 11.5px),
        repeating-linear-gradient(-45deg, transparent 0 10px, var(--card-pat-col, rgba(255,255,255,0.07)) 10px 11.5px);
    }
    .pat-diagonal {
      background-color: var(--card-box-bg, #0d1d26);
      background-image:
        repeating-linear-gradient(-45deg, transparent 0 7px, var(--card-pat-col, rgba(255,255,255,0.08)) 7px 10px);
    }
    .pat-dots {
      background-color: var(--card-box-bg, #0d1d26);
      background-image: radial-gradient(var(--card-pat-col, rgba(255,255,255,0.12)) 1.6px, transparent 1.6px);
      background-size: 11px 11px;
    }
    .pat-hex {
      background-color: var(--card-box-bg, #0d1d26);
      background-image:
        repeating-linear-gradient(30deg, transparent 0 12px, var(--card-pat-col, rgba(255,255,255,0.065)) 12px 13px),
        repeating-linear-gradient(150deg, transparent 0 12px, var(--card-pat-col, rgba(255,255,255,0.065)) 12px 13px),
        repeating-linear-gradient(90deg, transparent 0 21px, var(--card-pat-col, rgba(255,255,255,0.05)) 21px 22px);
    }
    .pat-waves {
      background-color: var(--card-box-bg, #0d1d26);
      background-image:
        radial-gradient(circle at 100% 150%, transparent 24%, var(--card-pat-col, rgba(255,255,255,0.08)) 25%, var(--card-pat-col, rgba(255,255,255,0.08)) 28%, transparent 29%),
        radial-gradient(circle at 0% 150%, transparent 24%, var(--card-pat-col, rgba(255,255,255,0.08)) 25%, var(--card-pat-col, rgba(255,255,255,0.08)) 28%, transparent 29%);
      background-size: 20px 12px;
    }
    .pat-fret {
      background-color: var(--card-box-bg, #0d1d26);
      background-image:
        linear-gradient(90deg, var(--card-pat-col, rgba(255,255,255,0.07)) 1px, transparent 1px),
        linear-gradient(0deg, var(--card-pat-col, rgba(255,255,255,0.07)) 1px, transparent 1px),
        linear-gradient(90deg, transparent 5px, var(--card-pat-col, rgba(255,255,255,0.05)) 5px 6px, transparent 6px),
        linear-gradient(0deg, transparent 5px, var(--card-pat-col, rgba(255,255,255,0.05)) 5px 6px, transparent 6px);
      background-size: 16px 16px;
    }
    .pat-solid {
      background-color: var(--card-box-bg, #0d1d26);
      background-image: none;
    }
    .pat-shutter {
      background-color: var(--card-box-bg, #1a242b);
      background-image:
        repeating-linear-gradient(125deg, transparent 0 11px, var(--card-pat-col, rgba(110,240,226,0.09)) 11px 13px),
        repeating-linear-gradient(35deg, transparent 0 18px, var(--card-pat-col, rgba(212,155,42,0.07)) 18px 19.5px);
    }
    .pat-cubicle {
      background-color: var(--card-box-bg, #1e241b);
      background-image:
        repeating-linear-gradient(0deg, transparent 0 15px, var(--card-pat-col, rgba(196,220,104,0.08)) 15px 16px),
        repeating-linear-gradient(90deg, transparent 0 15px, var(--card-pat-col, rgba(196,220,104,0.06)) 15px 16px);
    }
    .pat-film_reel {
      background-color: var(--card-box-bg, #141414);
      background-image:
        repeating-linear-gradient(0deg, transparent 0 8px, var(--card-pat-col, rgba(232,223,200,0.075)) 8px 13px),
        linear-gradient(90deg, var(--card-pat-col, rgba(232,223,200,0.1)) 0 10px, transparent 10px calc(100% - 10px), var(--card-pat-col, rgba(232,223,200,0.1)) calc(100% - 10px));
    }
    .pat-bamboo_moon {
      background-color: var(--card-box-bg, #1b2622);
      background-image:
        radial-gradient(circle at 84% 18%, rgba(224,155,50,0.14) 0 18px, transparent 22px),
        repeating-linear-gradient(112deg, transparent 0 14px, var(--card-pat-col, rgba(76,166,122,0.10)) 14px 16px),
        repeating-linear-gradient(22deg, transparent 0 22px, rgba(230,223,209,0.045) 22px 23px);
    }
    .pat-cathedral_eye {
      background-color: var(--card-box-bg, #191524);
      background-image:
        radial-gradient(ellipse 14px 26px at 50% 42%, rgba(212,168,67,0.15) 0 40%, rgba(124,58,237,0.12) 60%, transparent 72%),
        repeating-linear-gradient(45deg, transparent 0 14px, var(--card-pat-col, rgba(212,168,67,0.08)) 14px 15px),
        repeating-linear-gradient(-45deg, transparent 0 14px, rgba(124,58,237,0.08) 14px 15px);
    }
    .um-card.um-official.lg .um-text-box { padding: 4.5px 7.5px 3.5px; }
    .um-card.um-official.xl .um-text-box { padding: 10px 14px 8px; }
    .um-card-title {
      font-size: var(--oc-title-sz);
      font-weight: 900;
      color: #ffffff;
      line-height: 1.12;
      letter-spacing: 0.02em;
      padding-right: calc(var(--oc-boost) + 3px);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
    }
    .um-title-rule {
      height: 1px;
      width: 100%;
      background: rgba(244, 239, 228, 0.82);
      margin: 1.5px 0 2px;
      flex-shrink: 0;
    }
    .um-card.um-official.xl .um-title-rule { height: 1.5px; margin: 5px 0 7px; }
    .um-card-body {
      font-size: var(--oc-body-sz);
      line-height: 1.21;
      color: var(--card-text-col, #f0ede6);
      white-space: pre-line;
      word-break: break-word;
      overflow-y: auto;
      scrollbar-width: none;
      flex: 0 1 auto;
      min-height: 0;
      padding-bottom: 1px;
    }
    .um-card.um-official.xl .um-card-body { line-height: 1.36; }
    .um-ongoing-section {
      margin-top: 1px;
    }
    .um-ongoing-divider {
      height: 1px;
      width: 100%;
      background: linear-gradient(90deg, var(--card-ongoing-col, #fbbf24), rgba(251, 191, 36, 0.25));
      margin: 1px 0 1.5px;
      border-radius: 99px;
    }
    .um-card.um-official.xl .um-ongoing-section { margin-top: 4px; }
    .um-card.um-official.xl .um-ongoing-divider {
      height: 2px;
      margin: 6px 0 6px;
    }
    .um-ongoing-text {
      color: var(--card-ongoing-col, #fbbf24);
      font-weight: 700;
      font-size: 100%;
      line-height: 1.24;
    }
    .um-card.um-official.xl .um-ongoing-text {
      font-size: 100%;
      line-height: 1.42;
    }
    .um-ongoing-text strong {
      color: var(--card-ongoing-col, #fde047);
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
    }
    /* Rich Inline Formatting: Manual Dividers (--- / ===) & Per-Word Font Sizes */
    .um-rich-divider {
      height: 1px;
      width: 100%;
      background: rgba(244, 239, 228, 0.42);
      margin: 3px 0;
    }
    .um-rich-divider-heavy {
      height: 2.5px;
      width: 100%;
      background: linear-gradient(90deg, var(--card-ongoing-col, #fbbf24), rgba(251, 191, 36, 0.35));
      margin: 4px 0;
      border-radius: 1px;
    }
    .um-card.um-official.xl .um-rich-divider { height: 1.5px; margin: 6px 0; }
    .um-card.um-official.xl .um-rich-divider-heavy { height: 3.5px; margin: 7px 0; }
    .um-rt-lg { font-size: 118%; font-weight: 700; }
    .um-rt-sm { font-size: 86%; }
    .um-rt-xs { font-size: 74%; }

    /* Official Unmatched Split-Panel Combo (Bonus Attack) Card Layout */
    .um-combo-inline-ref {
      display: inline-flex;
      align-items: center;
      gap: 3px;
      vertical-align: -1.5px;
      font-weight: 900;
      color: #ffffff;
      white-space: nowrap;
    }
    .um-combo-chevron {
      --oc-icon-sz: 10px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: #c9332b;
      color: #ffffff;
      padding: 1.5px 6px 1.5px 3.5px;
      clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 50%, calc(100% - 4px) 100%, 0 100%);
      line-height: 1;
      flex-shrink: 0;
    }
    .um-card.um-official .um-combo-chevron {
      --oc-icon-sz: 7px;
      padding: 1px 4.5px 1px 2.5px;
      clip-path: polygon(0 0, calc(100% - 3px) 0, 100% 50%, calc(100% - 3px) 100%, 0 100%);
    }
    .um-card.um-official.lg .um-combo-chevron {
      --oc-icon-sz: 8.5px;
      padding: 1.5px 5.5px 1.5px 3px;
      clip-path: polygon(0 0, calc(100% - 3.5px) 0, 100% 50%, calc(100% - 3.5px) 100%, 0 100%);
    }
    .um-card.um-official.xl .um-combo-chevron {
      --oc-icon-sz: 12px;
      padding: 2px 7px 2px 4px;
      clip-path: polygon(0 0, calc(100% - 4.5px) 0, 100% 50%, calc(100% - 4.5px) 100%, 0 100%);
    }
    .um-combo-footer {
      border-top: 2.5px solid var(--card-border-col, #f4efe4);
      background-color: var(--card-box-bg, #1c1917);
      padding: 3px 6px 3px 0;
      display: flex;
      flex-direction: column;
      gap: 1.5px;
      flex-shrink: 0;
      transition: box-shadow 0.25s ease, background-color 0.25s ease;
    }
    .um-combo-footer.is-combo-firing {
      border-top-color: #fde047 !important;
      background: linear-gradient(135deg, rgba(185, 28, 28, 0.92), rgba(124, 45, 18, 0.96)) !important;
      box-shadow: inset 0 0 12px rgba(253, 224, 71, 0.55), 0 0 18px rgba(251, 191, 36, 0.65);
    }
    .um-card.um-official.is-combo-firing-card {
      box-shadow: 0 0 0 2.5px #fbbf24, 0 0 24px rgba(245, 158, 11, 0.7) !important;
    }
    .um-card.um-official.lg .um-combo-footer { border-top-width: 3px; padding: 4px 7px 4px 0; }
    .um-card.um-official.xl .um-combo-footer { border-top-width: 4px; padding: 7px 11px 6px 0; gap: 3px; }
    .um-combo-bar {
      display: flex;
      align-items: center;
      gap: 5px;
      min-width: 0;
    }
    .um-card.um-official.xl .um-combo-bar { gap: 8px; }
    .um-combo-flag {
      --oc-icon-sz: 9.5px;
      display: inline-flex;
      align-items: center;
      gap: 2.5px;
      background: #c9332b;
      color: #ffffff;
      padding: 2px 9px 2px 5px;
      clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 50%, calc(100% - 6px) 100%, 0 100%);
      font-family: 'Arial Narrow', 'Impact', ui-sans-serif, system-ui, sans-serif;
      font-weight: 900;
      font-size: 10px;
      line-height: 1;
      flex-shrink: 0;
    }
    .um-card.um-official.lg .um-combo-flag { --oc-icon-sz: 11px; font-size: 12px; gap: 3px; padding: 2.5px 11px 2.5px 6px; clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 50%, calc(100% - 7px) 100%, 0 100%); }
    .um-card.um-official.xl .um-combo-flag { --oc-icon-sz: 15px; font-size: 17px; padding: 4px 15px 4px 9px; gap: 4px; clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, 0 100%); }
    .um-combo-flag svg { width: var(--oc-icon-sz); height: var(--oc-icon-sz); }
    .um-combo-title {
      font-weight: 900;
      color: #ffffff;
      font-size: var(--oc-title-sz);
      line-height: 1.05;
      letter-spacing: 0.02em;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .um-combo-meta {
      padding-left: 6px;
      font-size: calc(var(--oc-body-sz) * 0.92);
      color: var(--card-text-col, #f0ede6);
      font-weight: 700;
      line-height: 1.15;
      white-space: pre-line;
    }
    .um-card.um-official.xl .um-combo-meta { padding-left: 10px; }
    .um-card-body::-webkit-scrollbar { display: none; }
    .um-card.um-official.xl .um-card-body { line-height: 1.42; }
    .um-card-footer {
      margin-top: auto;
      padding-top: 2px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 3px;
      flex-shrink: 0;
    }
    .um-deck-stamp {
      margin-left: auto;
      display: inline-flex;
      align-items: center;
      gap: 3px;
      font-size: var(--oc-foot-sz);
      font-weight: 800;
      color: rgba(244, 239, 228, 0.9);
      letter-spacing: 0.03em;
      line-height: 1;
      white-space: nowrap;
    }
    .um-deck-stamp-sep {
      display: inline-block;
      width: 1px;
      height: 0.95em;
      background: rgba(244, 239, 228, 0.65);
    }

    /* ==================== ORIGINAL HERO CHARACTER CARD & TEXT RULE CARD ==================== */
    .ub-char-card {
      background: #f4efe4;
      padding: 6px;
      border-radius: 13px;
      border: 2px solid #2b231b;
      box-shadow: 0 10px 28px rgba(0, 0, 0, 0.62);
      color: #f8f5ee;
      display: flex;
      flex-direction: column;
      user-select: text;
      flex-shrink: 0;
      height: 396px;
      min-height: 396px;
      max-height: 396px;
    }
    .ub-char-card.is-compact {
      height: 316px;
      min-height: 316px;
      max-height: 316px;
    }
    .ub-char-card.is-sheet-6up {
      width: 100%;
      height: 316px;
      min-height: 316px;
      max-height: 316px;
    }
    .ub-char-card.is-lounge-lock {
      height: 312px;
      min-height: 312px;
      max-height: 312px;
    }
    .ub-char-card.is-lounge-rule-lock {
      height: 280px;
      min-height: 280px;
      max-height: 280px;
    }
    .ub-char-card-inner {
      display: flex;
      flex-direction: column;
      border-radius: 8px;
      overflow: hidden;
      background: #0d161d;
      border: 1px solid rgba(255, 255, 255, 0.08);
      height: 100%;
      flex: 1;
    }
    .ub-cc-band {
      background: #0b1319;
      display: grid;
      grid-template-columns: 20px 1fr;
      border-bottom: 2px solid #f4efe4;
      flex-shrink: 0;
    }
    .ub-cc-band.is-bottom {
      border-bottom: none;
      border-top: 2px solid #f4efe4;
    }
    .ub-cc-vtag {
      writing-mode: vertical-rl;
      text-orientation: upright;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 8.5px;
      font-weight: 900;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: #c9d2da;
      border-right: 1.5px solid rgba(244, 239, 228, 0.35);
      padding: 4px 1px;
      background: rgba(255, 255, 255, 0.03);
    }
    .ub-cc-vtag.is-en {
      font-size: 8px;
      text-orientation: mixed;
      transform: rotate(180deg);
      border-right: none;
      border-left: 1.5px solid rgba(244, 239, 228, 0.35);
    }
    .ub-cc-statbar {
      display: grid;
      grid-template-columns: 1fr auto;
      border-top: 1.5px solid rgba(244, 239, 228, 0.28);
      background: #0e1922;
    }
    .ub-cc-hp-hex {
      clip-path: polygon(50% 0%, 96% 24%, 96% 76%, 50% 100%, 4% 76%, 4% 24%);
      display: grid;
      place-items: center;
      font-family: 'Arial Narrow', 'Impact', ui-sans-serif, system-ui, sans-serif;
      font-weight: 900;
      line-height: 1;
      color: #0b1319;
    }
    .ub-cc-ability-wrap {
      flex: 1;
      display: grid;
      grid-template-columns: 20px 1fr 48px;
      min-height: 122px;
      min-height: 0;
      overflow: hidden;
      background-color: var(--cc-bg, #152b22);
      background-image:
        repeating-linear-gradient(90deg, transparent 0 14px, var(--cc-pat, rgba(255,255,255,0.06)) 14px 16px),
        repeating-linear-gradient(0deg, transparent 0 14px, var(--cc-pat, rgba(255,255,255,0.06)) 14px 16px);
    }
    .ub-cc-move-rail {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: space-between;
      padding: 8px 4px;
      border-left: 1.5px solid rgba(244, 239, 228, 0.25);
      background: rgba(6, 12, 16, 0.32);
    }
    .ub-rule-card-body {
      flex: 1;
      padding: 10px 12px;
      background-color: var(--cc-bg, #101d2c);
      background-image:
        repeating-linear-gradient(90deg, transparent 0 14px, var(--cc-pat, rgba(255,255,255,0.055)) 14px 16px),
        repeating-linear-gradient(0deg, transparent 0 14px, var(--cc-pat, rgba(255,255,255,0.055)) 14px 16px);
      white-space: pre-line;
      word-break: break-word;
      overflow-y: auto;
    }

    /* Physical Deck Stack */
    .deck-pile {
      position: relative;
      width: 82px;
      height: 116px;
      border-radius: 8px;
      border: 2px solid #d2a85a;
      overflow: hidden;
      cursor: pointer;
      transition: transform 0.16s ease, box-shadow 0.16s ease;
      box-shadow: 3px 3px 0 #2a231c, 4px 4px 0 rgba(210, 168, 90, 0.45), 6px 6px 0 #1e1914, 0 10px 20px rgba(0, 0, 0, 0.55);
    }
    .deck-pile:hover { transform: translateY(-4px) scale(1.04); }
    .deck-pile.deck-pulse { animation: deckPulse 1.8s infinite; }
    @keyframes deckPulse {
      0%, 100% { box-shadow: 3px 3px 0 #2a231c, 0 0 0 0 rgba(231, 196, 122, 0.55); }
      50% { box-shadow: 3px 3px 0 #2a231c, 0 0 0 7px rgba(231, 196, 122, 0); }
    }

    /* Hero Portrait HUD & Hit / Jump Animations */
    .hero-hud-avatar {
      position: relative;
      width: 78px;
      height: 78px;
      border-radius: 50%;
      cursor: pointer;
      transition: transform 0.16s ease, box-shadow 0.16s ease;
      user-select: none;
    }
    .hero-hud-avatar:hover {
      transform: scale(1.06);
      box-shadow: 0 0 0 3px rgba(231, 196, 122, 0.65), 0 8px 20px rgba(0,0,0,0.6);
    }
    .portrait-hit-flash {
      animation: portraitHit 0.52s ease;
    }
    @keyframes portraitHit {
      0% { transform: scale(1); filter: brightness(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.9); }
      20% { transform: translate(-5px, 2px) scale(0.93); filter: brightness(1.4) saturate(1.8); box-shadow: 0 0 24px 6px rgba(239, 68, 68, 0.85); }
      45% { transform: translate(5px, -2px) scale(1.04); filter: brightness(1.2); }
      70% { transform: translate(-3px, 1px); }
      100% { transform: scale(1); filter: brightness(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
    }

    /* SVG Board Miniature Bounce Animation */
    @keyframes miniJump {
      0%, 100% { transform: translateY(0) scale(1); }
      30% { transform: translateY(-16px) scale(1.16); }
      55% { transform: translateY(-3px) scale(0.96); }
      75% { transform: translateY(-9px) scale(1.06); }
    }
    .mini-jumping {
      animation: miniJump 0.55s cubic-bezier(0.25, 0.9, 0.35, 1.2);
    }
    @keyframes pingExpand {
      0% { r: 20; opacity: 0.95; stroke-width: 4; }
      100% { r: 44; opacity: 0; stroke-width: 1; }
    }
    .mini-ping-ring {
      animation: pingExpand 0.65s ease-out forwards;
    }
    /* Expressive Hero Emote Board Animations (triggered when sending quick emotes) */
    @keyframes emoteLaugh {
      0% { transform: scale(1) translate(0, 0) rotate(0deg); }
      15% { transform: scale(1.26) translate(-3px, -5px) rotate(-6deg); }
      28% { transform: scale(1.28) translate(3px, -6px) rotate(6deg); }
      42% { transform: scale(1.18) translate(0, -2px) rotate(0deg); }
      58% { transform: scale(1.26) translate(-3px, -5px) rotate(-6deg); }
      72% { transform: scale(1.28) translate(3px, -6px) rotate(6deg); }
      88% { transform: scale(1.08) translate(0, -1px) rotate(0deg); }
      100% { transform: scale(1) translate(0, 0) rotate(0deg); }
    }
    @keyframes emoteBow {
      0%, 100% { transform: scale(1) translateY(0) rotate(0deg); }
      35%, 60% { transform: scale(1.12, 0.92) translateY(3px) rotate(7deg); }
      80% { transform: scale(1.06) translateY(-2px) rotate(-2deg); }
    }
    @keyframes emoteCheer {
      0%, 100% { transform: translateY(0) scale(1); }
      22% { transform: translateY(-9px) scale(1.16); }
      42% { transform: translateY(0) scale(0.96); }
      66% { transform: translateY(-8px) scale(1.18); }
      85% { transform: translateY(0) scale(1.03); }
    }
    @keyframes emotePop {
      0% { transform: scale(1); }
      28% { transform: scale(1.32) translateY(-6px); }
      52% { transform: scale(0.94) translateY(1px); }
      74% { transform: scale(1.14) translateY(-3px); }
      100% { transform: scale(1); }
    }
    @keyframes emoteOops {
      0%, 100% { transform: translateX(0) rotate(0deg) scale(1); }
      18% { transform: translateX(-4px) rotate(-8deg) scale(0.94); }
      36% { transform: translateX(4px) rotate(8deg) scale(0.94); }
      54% { transform: translateX(-3px) rotate(-6deg) scale(0.95); }
      72% { transform: translateX(3px) rotate(6deg) scale(0.96); }
    }
    @keyframes emoteTaunt {
      0%, 100% { transform: scale(1) translateY(0); filter: none; }
      25% { transform: scale(1.28) translateY(-7px); filter: drop-shadow(0 0 12px rgba(248, 113, 113, 0.95)); }
      45% { transform: scale(1.22) translate(-3px, -5px); filter: drop-shadow(0 0 14px rgba(251, 191, 36, 0.95)); }
      65% { transform: scale(1.25) translate(3px, -5px); filter: drop-shadow(0 0 12px rgba(248, 113, 113, 0.9)); }
    }
    .emote-anim-laugh { transform-box: fill-box; transform-origin: center; animation: emoteLaugh 0.95s ease-in-out 2; }
    .emote-anim-bow   { transform-box: fill-box; transform-origin: center; animation: emoteBow 1.05s ease-in-out 1; }
    .emote-anim-cheer { transform-box: fill-box; transform-origin: center; animation: emoteCheer 0.92s ease-in-out 2; }
    .emote-anim-pop   { transform-box: fill-box; transform-origin: center; animation: emotePop 0.85s cubic-bezier(0.22, 1.3, 0.36, 1) 1; }
    .emote-anim-oops  { transform-box: fill-box; transform-origin: center; animation: emoteOops 0.78s ease-in-out 2; }
    .emote-anim-taunt { transform-box: fill-box; transform-origin: center; animation: emoteTaunt 0.95s ease-in-out 2; }

    /* Hearthstone Emote Speech Bubble & Hover Zoom Buttons */
    .emote-bubble {
      animation: popBubble 0.22s cubic-bezier(0.22, 1.2, 0.36, 1);
    }
    .emote-option {
      position: relative;
      min-height: 36px;
      height: auto;
      line-height: 1.32;
      overflow: visible;
      transition: transform 0.16s cubic-bezier(0.22, 1.2, 0.36, 1), background 0.14s ease, box-shadow 0.16s ease, border-color 0.14s ease;
      transform-origin: center center;
    }
    .emote-option:hover {
      transform: scale(1.08) translateY(-2px);
      z-index: 60;
      box-shadow: 0 10px 24px rgba(0, 0, 0, 0.72), 0 0 0 1.5px #f4d382;
    }
    @keyframes popBubble {
      from { opacity: 0; transform: scale(0.7) translateY(8px); }
      to { opacity: 1; transform: scale(1) translateY(0); }
    }

    /* Breathing pulse prompt on End Turn button when 0 actions remain */
    .end-turn-pulse {
      animation: endTurnBreathe 1.45s ease-in-out infinite;
      background: linear-gradient(180deg, #3fb877 0%, #248a54 100%) !important;
      color: #f6fff9 !important;
      border-color: #7ef0b1 !important;
    }
    @keyframes endTurnBreathe {
      0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7), 0 4px 12px rgba(0, 0, 0, 0.4);
      }
      50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(74, 222, 128, 0), 0 0 22px rgba(74, 222, 128, 0.55);
      }
    }
    /* Breathing pulse prompt on Finish Move / Finish Maneuver button when all steps are used */
    .move-done-pulse {
      animation: moveDoneBreathe 1.35s ease-in-out infinite;
      background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%) !important;
      color: #14110f !important;
      border-color: #fef08a !important;
    }
    @keyframes moveDoneBreathe {
      0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.78), 0 6px 16px rgba(0, 0, 0, 0.52);
      }
      50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 11px rgba(251, 191, 36, 0), 0 0 26px rgba(251, 191, 36, 0.72);
      }
    }

    /* Discard pile hover zoomed card preview — strictly triggered ONLY when directly hovering #discard-pile-slot */
    .discard-pile-wrap { position: relative; }
    .discard-pile-wrap:has(#discard-pile-slot:hover) { z-index: 96 !important; }
    .discard-hit-wrap { position: relative; display: inline-block; }
    .discard-hit-wrap:hover { z-index: 110; }
    .discard-hover-preview {
      position: absolute;
      bottom: calc(100% + 14px);
      right: 0;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transform: translateY(10px) scale(0.9);
      transition: opacity 0.16s ease, transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.16s ease;
      z-index: 120;
      filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.78));
    }
    .discard-hit-wrap #discard-pile-slot:hover + .discard-hover-preview {
      opacity: 1;
      visibility: visible;
      transform: translateY(0) scale(1);
    }
    body.ua-dragging-hand-card .discard-hover-preview {
      opacity: 0 !important;
      visibility: hidden !important;
    }

    /* Hero portrait pure-CSS hover preview for Rules / Reference Cards (no JS flicker!) */
    .hero-hud-wrap { position: relative; }
    .hero-ref-hover-preview {
      position: absolute;
      bottom: 142px;
      left: 0;
      opacity: 0;
      pointer-events: none;
      transform: translateY(10px) scale(0.92);
      transition: opacity 0.16s ease, transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
      z-index: 64;
      filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.85));
    }
    .hero-hud-wrap:hover .hero-ref-hover-preview {
      opacity: 1;
      transform: translateY(0) scale(1);
    }

    /* Map Editor interactive edge delete hover */
    .me-edge-group { cursor: pointer; }
    .me-edge-group:hover .me-edge-vis {
      stroke: #ff5b52 !important;
      stroke-width: 6.5 !important;
      filter: drop-shadow(0 0 6px rgba(255, 91, 82, 0.9));
    }

    /* Tabletop Animations: Card Flight, 3D Reveal Flip, Fighter Hit Shake, Live Action Feed & Turn Banner */
    .flying-card-ghost {
      position: fixed;
      z-index: 95;
      pointer-events: none;
      width: 96px;
      height: 136px;
      border-radius: 10px;
      overflow: hidden;
      border: 2px solid #e7c47a;
      box-shadow: 0 18px 36px rgba(0, 0, 0, 0.72), 0 0 18px rgba(231, 196, 122, 0.45);
      will-change: transform, opacity;
    }
    .card-flip-in {
      animation: cardRevealFlip 0.46s cubic-bezier(0.22, 1, 0.36, 1);
      transform-style: preserve-3d;
    }
    @keyframes cardRevealFlip {
      0% { transform: perspective(700px) rotateY(92deg) scale(0.86); opacity: 0.35; }
      65% { transform: perspective(700px) rotateY(-8deg) scale(1.04); opacity: 1; }
      100% { transform: perspective(700px) rotateY(0deg) scale(1); opacity: 1; }
    }
    .hand-card-new {
      animation: handDrawPop 0.68s cubic-bezier(0.18, 0.96, 0.32, 1.04);
      position: relative;
    }
    .hand-card-new::after {
      content: '';
      position: absolute;
      inset: -2px;
      border-radius: 12px;
      pointer-events: none;
      background: linear-gradient(115deg, transparent 22%, rgba(254, 240, 138, 0.72) 48%, rgba(255, 255, 255, 0.85) 52%, transparent 78%);
      background-size: 240% 100%;
      animation: handCardSheen 0.68s ease-out forwards;
    }
    @keyframes handDrawPop {
      0% {
        opacity: 0;
        transform: translate3d(-44px, calc(var(--rest-y, 0px) + 52px), 0) rotate(calc(var(--rest-rot, 0deg) - 14deg)) scale(0.72);
        filter: brightness(1.55) drop-shadow(0 0 18px rgba(251, 191, 36, 0.9));
      }
      55% {
        opacity: 1;
        transform: translate3d(0, calc(var(--rest-y, 0px) - 18px), 0) rotate(calc(var(--rest-rot, 0deg) + 2deg)) scale(1.09);
        filter: brightness(1.22) drop-shadow(0 0 14px rgba(251, 191, 36, 0.65));
      }
      100% {
        opacity: 1;
        transform: translate3d(0, var(--rest-y, 0px), 0) rotate(var(--rest-rot, 0deg)) scale(1);
        filter: brightness(1);
      }
    }
    @keyframes handCardSheen {
      0% { background-position: 140% 0; opacity: 0.95; }
      100% { background-position: -120% 0; opacity: 0; }
    }
    .deck-draw-kick {
      animation: deckDrawKick 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    }
    @keyframes deckDrawKick {
      0% { transform: scale(1); }
      35% { transform: translateY(-5px) scale(1.08); box-shadow: 0 0 18px rgba(251, 191, 36, 0.75); }
      100% { transform: scale(1); }
    }
    .fighter-hit-shake {
      animation: fighterRecoil 0.48s ease-out;
    }
    @keyframes fighterRecoil {
      0% { transform: translate(0, 0) scale(1); filter: brightness(1.45) saturate(2.1) drop-shadow(0 0 14px #ff2b2b); }
      18% { transform: translate(-7px, -3px) scale(0.92); filter: brightness(1.35) saturate(2) drop-shadow(0 0 12px #ff2b2b); }
      42% { transform: translate(7px, 2px) scale(1.06); filter: brightness(1.25) saturate(1.7) drop-shadow(0 0 8px #ff2b2b); }
      72% { transform: translate(-4px, 0) scale(0.97); }
      100% { transform: translate(0, 0) scale(1); filter: none; }
    }
    .mc-hit-overlay {
      animation: mcRedFlash 0.46s ease-out forwards;
      pointer-events: none;
    }
    @keyframes mcRedFlash {
      0% { opacity: 0.78; }
      35% { opacity: 0.68; }
      100% { opacity: 0; }
    }
    .board-px-projectile {
      position: fixed;
      z-index: 105;
      pointer-events: none;
      width: 44px;
      height: 22px;
      image-rendering: pixelated;
      will-change: transform, opacity;
    }
    .ability-target-pulse {
      animation: abilityTargetRing 1.05s ease-in-out infinite;
    }
    @keyframes abilityTargetRing {
      0%, 100% { opacity: 0.95; stroke-width: 3.4; }
      50% { opacity: 0.45; stroke-width: 5.5; }
    }
    .fighter-sel-ring {
      animation: fighterSelPulse 1.05s ease-in-out infinite;
    }
    .fighter-sel-dash {
      animation: fighterSelDash 1.4s linear infinite;
    }
    .fighter-sel-arrow {
      animation: fighterSelBounce 0.95s ease-in-out infinite;
    }
    @keyframes fighterSelPulse {
      0%, 100% { opacity: 0.98; stroke-width: 4.2; }
      50% { opacity: 0.62; stroke-width: 6.0; }
    }
    @keyframes fighterSelDash {
      to { stroke-dashoffset: -20; }
    }
    @keyframes fighterSelBounce {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-5px); }
    }
    .live-action-feed {
      position: relative;
      z-index: 26;
      pointer-events: none;
      display: flex;
      flex-direction: column;
      gap: 4px;
      width: min(390px, 34vw);
      max-width: min(410px, 38vw);
    }
    .combat-feed-pinned {
      pointer-events: auto;
      display: flex;
      flex-direction: column;
      gap: 3px;
      padding: 5px 6px;
      border-radius: 12px;
      background: rgba(12, 13, 16, 0.92);
      border: 1px solid color-mix(in srgb, var(--ui-accent, #e7c47a) 42%, rgba(255,255,255,0.12));
      box-shadow: 0 6px 18px rgba(0, 0, 0, 0.52);
    }
    .combat-feed-card {
      display: flex;
      align-items: center;
      gap: 6px;
      width: 100%;
      padding: 3.5px 7px;
      border-radius: 8px;
      background: rgba(24, 21, 19, 0.88);
      border: 1px solid rgba(255, 255, 255, 0.11);
      color: #f3eadc;
      font-size: 10.5px;
      text-align: left;
      cursor: pointer;
      transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
    }
    .combat-feed-card:hover {
      transform: translateX(3px);
      border-color: var(--ui-accent, #fbbf24);
      background: rgba(38, 30, 24, 0.96);
    }
    .live-feed-box {
      pointer-events: auto;
      display: flex;
      flex-direction: column;
      gap: 4px;
      padding: 5px 6px;
      border-radius: 12px;
      background: rgba(12, 13, 16, 0.92);
      border: 1px solid color-mix(in srgb, var(--ui-accent, #e7c47a) 42%, rgba(255,255,255,0.12));
      box-shadow: 0 6px 18px rgba(0, 0, 0, 0.52);
    }
    .live-feed-list {
      display: flex;
      flex-direction: column;
      gap: 3px;
      max-height: 162px;
      overflow-y: auto;
      overflow-x: hidden;
      padding-right: 2px;
    }
    .live-feed-list.is-expanded {
      max-height: 360px;
    }
    .live-feed-row {
      display: flex;
      align-items: flex-start;
      gap: 6px;
      padding: 4px 8px;
      border-radius: 8px;
      background: rgba(24, 21, 19, 0.86);
      border: 1px solid rgba(255, 255, 255, 0.09);
      font-size: 11px;
      line-height: 1.34;
      color: #f5ede0;
      width: 100%;
    }
    .live-feed-row-fresh {
      animation: feedRowFlash 1.25s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }
    @keyframes feedRowFlash {
      0% { opacity: 0; transform: translateX(-10px); border-color: rgba(251, 191, 36, 0.92); background: rgba(68, 46, 18, 0.94); }
      25% { opacity: 1; transform: translateX(0); border-color: rgba(251, 191, 36, 0.8); background: rgba(54, 38, 16, 0.92); }
      100% { opacity: 1; transform: translateX(0); border-color: rgba(255, 255, 255, 0.09); background: rgba(24, 21, 19, 0.86); }
    }
    .feed-pill {
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.32);
    }
    .pinned-ref-window {
      position: fixed;
      z-index: 44;
      width: 266px;
      max-width: 92vw;
      border-radius: 13px;
      border: 2px solid rgba(251, 191, 36, 0.72);
      background: rgba(12, 12, 16, 0.94);
      box-shadow: 0 18px 42px rgba(0, 0, 0, 0.78), 0 0 0 1px rgba(255, 255, 255, 0.08);
      overflow: hidden;
      pointer-events: auto;
      user-select: none;
    }
    .pinned-ref-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 6px;
      padding: 6px 8px;
      background: linear-gradient(180deg, rgba(42, 30, 16, 0.96), rgba(20, 15, 11, 0.98));
      border-bottom: 1px solid rgba(251, 191, 36, 0.35);
      cursor: grab;
    }
    .pinned-ref-header:active { cursor: grabbing; }
    .feed-pill-fresh {
      animation: feedPopSettle 1.25s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }
    @keyframes feedPopSettle {
      0% { opacity: 0; transform: translateX(-16px) scale(1.22); border-color: rgba(251, 191, 36, 0.9); box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35); }
      14% { opacity: 1; transform: translateX(0) scale(1.16); border-color: rgba(251, 191, 36, 0.85); box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3); }
      52% { opacity: 1; transform: translateX(0) scale(1.08); border-color: rgba(251, 191, 36, 0.65); }
      100% { opacity: 1; transform: translateX(0) scale(1); border-color: rgba(231, 196, 122, 0.28); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.42); }
    }
    .turn-sweep-banner {
      position: fixed;
      top: 17%;
      left: 0;
      right: 0;
      z-index: 78;
      pointer-events: none;
      display: flex;
      align-items: center;
      justify-content: center;
      animation: turnSweepAnim 2.45s cubic-bezier(0.16, 0.94, 0.24, 1) forwards;
    }
    .turn-sweep-banner.turn-sweep-urgent {
      top: 11.5%;
      z-index: 79;
      animation: turnUrgentAnim 2.35s cubic-bezier(0.16, 0.94, 0.24, 1) forwards;
    }
    .turn-sweep-inner {
      position: relative;
      overflow: hidden;
      min-width: min(760px, 94vw);
      max-width: 95vw;
      padding: 20px 56px;
      background:
        repeating-linear-gradient(-28deg, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 8px, transparent 8px, transparent 22px),
        linear-gradient(90deg, rgba(12,9,7,0) 0%, rgba(16,12,10,0.94) 11%, rgba(38,24,14,0.98) 50%, rgba(16,12,10,0.94) 89%, rgba(12,9,7,0) 100%);
      border-top: 3.5px solid var(--turn-accent, #f59e0b);
      border-bottom: 3.5px solid var(--turn-accent, #f59e0b);
      text-align: center;
      box-shadow: 0 18px 54px rgba(0, 0, 0, 0.82), 0 0 36px color-mix(in srgb, var(--turn-accent, #f59e0b) 42%, transparent);
    }
    .turn-sweep-banner.turn-sweep-mine .turn-sweep-inner {
      padding: 24px 64px;
      background:
        repeating-linear-gradient(-28deg, rgba(251,191,36,0.06) 0px, rgba(251,191,36,0.06) 10px, transparent 10px, transparent 24px),
        linear-gradient(90deg, rgba(14,10,6,0) 0%, rgba(28,16,8,0.96) 10%, rgba(56,30,10,0.98) 50%, rgba(28,16,8,0.96) 90%, rgba(14,10,6,0) 100%);
      box-shadow: 0 22px 64px rgba(0, 0, 0, 0.88), 0 0 48px color-mix(in srgb, var(--turn-accent, #fbbf24) 55%, transparent);
    }
    .turn-sweep-banner.turn-sweep-urgent .turn-sweep-inner {
      min-width: min(680px, 92vw);
      padding: 18px 46px;
      background:
        repeating-linear-gradient(28deg, rgba(56,189,248,0.06) 0px, rgba(56,189,248,0.06) 8px, transparent 8px, transparent 20px),
        linear-gradient(90deg, rgba(8,14,24,0) 0%, rgba(12,20,34,0.96) 11%, rgba(22,36,56,0.98) 50%, rgba(12,20,34,0.96) 89%, rgba(8,14,24,0) 100%);
      box-shadow: 0 18px 52px rgba(0, 0, 0, 0.86), 0 0 42px color-mix(in srgb, var(--turn-accent, #38bdf8) 55%, transparent);
    }
    @keyframes turnSweepAnim {
      0% { opacity: 0; transform: translateX(-90px) scale(0.92); }
      11% { opacity: 1; transform: translateX(0) scale(1.02); }
      18% { opacity: 1; transform: translateX(0) scale(1); }
      84% { opacity: 1; transform: translateX(0) scale(1); }
      100% { opacity: 0; transform: translateX(80px) scale(0.95); }
    }
    @keyframes turnUrgentAnim {
      0% { opacity: 0; transform: translateY(-22px) scale(0.92); }
      12% { opacity: 1; transform: translateY(0) scale(1.03); }
      20% { opacity: 1; transform: translateY(0) scale(1); }
      84% { opacity: 1; transform: translateY(0) scale(1); }
      100% { opacity: 0; transform: translateY(-14px) scale(0.96); }
    }

    /* Giant Right-Click Card Zoom (much larger for reading fine card text) */
    .um-card.xl {
      width: min(370px, 44vw);
      height: min(518px, 76vh);
      cursor: default;
      border-width: 3px;
      border-color: #e7c47a;
      box-shadow: 0 24px 64px rgba(0, 0, 0, 0.88);
    }
    .um-card.xl:hover { transform: none; }

    /* TTS-Style Hold-Ctrl Instant Giant Card Preview */
    .tts-ctrl-zoom-overlay {
      position: fixed;
      inset: 0;
      z-index: 120;
      pointer-events: none;
      display: flex;
      align-items: center;
      justify-content: center;
      background: radial-gradient(circle at center, rgba(8, 6, 5, 0.56) 0%, rgba(8, 6, 5, 0.22) 68%, transparent 100%);
      animation: ttsZoomPop 0.11s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .tts-ctrl-zoom-stage {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
    }
    .tts-ctrl-zoom-overlay .um-card.xl {
      height: min(82vh, 600px);
      width: calc(min(82vh, 600px) * 0.715);
      max-width: 90vw;
      border-radius: 16px;
      border: 3px solid #f0cf85;
      box-shadow: 0 32px 90px rgba(0, 0, 0, 0.92), 0 0 38px rgba(240, 207, 133, 0.36);
      cursor: default;
    }
    .tts-ctrl-zoom-overlay .um-card.um-official.xl {
      --oc-pad: 10px;
      --oc-pen-w: 64px;
      --oc-boost: 52px;
      --oc-title-sz: 25px;
      --oc-body-sz: 16.5px;
      --oc-val-sz: 35px;
      --oc-owner-sz: 16.5px;
      --oc-foot-sz: 13.5px;
      --oc-icon-sz: 34px;
      --oc-notch: 15px;
    }
    .tts-ctrl-zoom-card {
      position: relative;
      height: min(86vh, 660px);
      width: calc(min(86vh, 660px) * 0.715);
      max-width: 90vw;
      border-radius: 16px;
      overflow: hidden;
      border: 3px solid #f0cf85;
      background: #171310;
      box-shadow: 0 32px 90px rgba(0, 0, 0, 0.92), 0 0 36px rgba(240, 207, 133, 0.35);
      display: flex;
      flex-direction: column;
    }
    @keyframes ttsZoomPop {
      from { opacity: 0; transform: scale(0.93); }
      to { opacity: 1; transform: scale(1); }
    }
    .board-fighter-dragging {
      opacity: 0.56;
      filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.78)) drop-shadow(0 0 10px rgba(245, 213, 133, 0.65));
      cursor: grabbing !important;
    }

    /* ==================== FULL-SCREEN 100VH 90° FLAT-LAY 4-PLAYMAT FOREST TABLETOP ==================== */
    #board-drop-stage {
      --table-size: min(98vh, 98vw);
      --table-size: min(98dvh, 98vw);
      position: relative;
      width: 100vw;
      height: 100vh;
      height: 100dvh;
      overflow: hidden;
      container-type: size;
    }
    /* Seamless outer mossy forest clearing filling widescreen margins around the 1:1 arena table */
    .fs-outer-clearing {
      position: absolute;
      inset: 0;
      z-index: 0;
      background-repeat: repeat;
      background-size: 256px 256px;
      background-position: center;
      image-rendering: pixelated;
      image-rendering: crisp-edges;
      pointer-events: none;
    }
    .fs-bg-vignette {
      position: absolute;
      inset: 0;
      z-index: 1;
      background: radial-gradient(ellipse 72% 72% at 50% 50%, rgba(0, 0, 0, 0) 44%, rgba(3, 10, 6, 0.58) 100%);
      pointer-events: none;
    }

    /* Non-Rotated 1:1 Tabletop Stage (real layout width/height zoom — ZERO CSS rotate or scale blur on SVG or cards!) */
    .fs-board-pan-layer {
      position: absolute;
      inset: 0;
      z-index: 6;
      display: flex;
      align-items: center;
      justify-content: center;
      pointer-events: none;
      transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .fs-board-pan-layer.is-panning {
      transition: none;
    }
    .fs-table-stage {
      pointer-events: auto;
      position: relative;
      width: calc(var(--table-size) * var(--board-zoom, 1));
      height: calc(var(--table-size) * var(--board-zoom, 1));
      flex-shrink: 0;
      border-radius: 14px;
      box-shadow:
        0 20px 64px rgba(0, 0, 0, 0.78),
        0 0 0 2px rgba(20, 42, 26, 0.92),
        0 0 0 4px rgba(188, 146, 70, 0.35);
      transition: width 0.16s cubic-bezier(0.22, 1, 0.36, 1), height 0.16s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .fs-table-stage.is-zooming {
      transition: none;
    }
    /* Rotates ONLY the pixel tabletop artwork & 4 corner toys — NEVER wraps the vector SVG board! */
    .fs-tabletop-bg-rotator {
      position: absolute;
      inset: 0;
      border-radius: 12px;
      transition: transform 0.52s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .fs-tabletop-art {
      position: absolute;
      inset: 0;
      border-radius: 12px;
      overflow: hidden;
      background-size: 100% 100%;
      background-position: center;
      image-rendering: pixelated;
      image-rendering: crisp-edges;
      pointer-events: none;
    }
    /* Central Recessed Board Well sitting pixel-accurately inside the 20.3%..79.7% dark walnut frame (real layout sizing -> ZERO bitmap scale blur!) */
    .fs-board-well {
      position: absolute;
      left: 50%;
      top: 50%;
      width: calc(59.4% * var(--board-well-scale, 1));
      height: calc(59.4% * var(--board-well-scale, 1));
      transform: translate(-50%, -50%);
      z-index: 6;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0;
      box-sizing: border-box;
      pointer-events: auto;
      transition: width 0.2s cubic-bezier(0.22, 1, 0.36, 1), height 0.2s cubic-bezier(0.22, 1, 0.36, 1);
    }
    /* Minecraft Tabletop: shrink & align board well snugly onto the central 3x3 Crafting Table (29.7%..70.3% = 40.6% x 41.6%) */
    :root[data-theme="minecraft"] .fs-board-well {
      width: calc(40.8% * var(--board-well-scale, 1));
      height: calc(40.8% * var(--board-well-scale, 1));
    }
    #arena-board-svg {
      position: relative;
      z-index: 2;
      width: 100%;
      height: 100%;
      max-width: 100%;
      max-height: 100%;
      display: block;
      margin: auto;
      overflow: visible;
    }

    /* Fighter Dynamic Hover Enlargement (1.72x Elastic Spring + Golden Glow + Topmost SVG Layer) */
    .fighter-node {
      cursor: pointer;
    }
    .fighter-hover-zoom {
      transform-origin: 0px 0px;
      transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.22s ease;
    }
    .fighter-hover-halo {
      opacity: 0;
      transition: opacity 0.22s ease;
      pointer-events: none;
    }
    .fighter-node:hover .fighter-hover-zoom {
      transform: scale(1.72);
      filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.90)) drop-shadow(0 0 8px rgba(251, 191, 36, 0.72));
    }
    .fighter-node:hover .fighter-hover-halo {
      opacity: 1;
    }
    .fighter-node.board-fighter-dragging .fighter-hover-zoom {
      transform: scale(1.16) !important;
      transition: none !important;
    }
    img[src*="data-pxdoll"] {
      image-rendering: pixelated;
      image-rendering: crisp-edges;
      object-fit: contain !important;
      background: transparent !important;
    }
    .pixel-standee-img {
      image-rendering: pixelated;
      image-rendering: crisp-edges;
    }
    /* V24: 16-Bit Grounded Stepped Breathing & Walk Hop for High-Res Sprites (feet stay glued to floor!) */
    @keyframes pxSpriteBreathe {
      0%, 100% { transform: scale(1, 1) translateY(0px); }
      50% { transform: scale(1.028, 0.962) translateY(0.8px); }
    }
    @keyframes pxSpriteFloat {
      0%, 100% { transform: translateY(0px); }
      50% { transform: translateY(-3px); }
    }
    @keyframes pxSpriteWalkHop {
      0%, 100% { transform: translateY(0px) rotate(0deg); }
      50% { transform: translateY(-3px) rotate(1.5deg); }
    }
    @keyframes pxSpriteBoardHop {
      0%   { transform: translateY(0px); }
      16%  { transform: translateY(calc(var(--walk-hop-h, 11px) * -0.48)); }
      34%  { transform: translateY(calc(var(--walk-hop-h, 11px) * -0.88)); }
      50%  { transform: translateY(calc(var(--walk-hop-h, 11px) * -1)); }
      66%  { transform: translateY(calc(var(--walk-hop-h, 11px) * -0.88)); }
      84%  { transform: translateY(calc(var(--walk-hop-h, 11px) * -0.48)); }
      100% { transform: translateY(0px); }
    }
    .px-sprite-board-hop {
      animation: pxSpriteBoardHop 0.34s linear infinite;
      will-change: transform;
    }
    .px-sprite-breathe {
      transform-box: fill-box;
      transform-origin: 50% 100%;
      animation: pxSpriteBreathe 0.92s steps(2, end) infinite;
    }
    .px-sprite-float {
      transform-box: fill-box;
      transform-origin: 50% 50%;
      animation: pxSpriteFloat 0.96s steps(2, end) infinite;
    }
    .lounge-actor.is-walking .px-sprite-breathe {
      animation: pxSpriteWalkHop 0.34s steps(2, end) infinite;
    }
    .mc-hurt-flash .px-sprite-breathe,
    .fighter-hit-shake .px-sprite-breathe {
      animation: none !important;
    }
    /* V25.1: Board Token Jump-Off (换位起跳) -> Airdrop (空降) -> Landing Action (落地动作) -> Idle Loop */
    @keyframes tokenJumpOff {
      0%   { transform: translateY(0px) scale(1, 1); opacity: 1; }
      28%  { transform: translateY(4px) scale(1.22, 0.76); opacity: 1; }
      55%  { transform: translateY(-28px) scale(0.84, 1.22); opacity: 1; }
      100% { transform: translateY(-98px) scale(0.80, 1.24); opacity: 0.15; }
    }
    @keyframes tokenJumpShadow {
      0%   { transform: scale(1.0); opacity: 0.62; }
      30%  { transform: scale(1.16); opacity: 0.68; }
      100% { transform: scale(0.22); opacity: 0.10; }
    }
    .token-jump-body {
      transform-box: fill-box;
      transform-origin: 50% 100%;
      animation: tokenJumpOff 0.28s cubic-bezier(0.22, 0.75, 0.45, 1) both;
    }
    .token-jump-shadow {
      transform-box: fill-box;
      transform-origin: 50% 50%;
      animation: tokenJumpShadow 0.28s ease-out both;
    }
    @keyframes tokenAirDropFall {
      0%   { transform: translateY(-92px) scale(0.84, 1.18); opacity: 0.25; }
      18%  { opacity: 1; }
      82%  { transform: translateY(-4px) scale(0.92, 1.10); opacity: 1; }
      100% { transform: translateY(0px) scale(1.20, 0.80); opacity: 1; }
    }
    @keyframes tokenAirDropShadow {
      0%   { transform: scale(0.28); opacity: 0.18; }
      100% { transform: scale(1.0); opacity: 0.62; }
    }
    @keyframes tokenLandBounce {
      0%   { transform: scale(1.22, 0.78) translateY(3px); }
      38%  { transform: scale(0.93, 1.10) translateY(-5px); }
      72%  { transform: scale(1.05, 0.96) translateY(0px); }
      100% { transform: scale(1, 1) translateY(0px); }
    }
    @keyframes tokenLandRingPop {
      0%   { transform: scale(0.45); opacity: 0.95; }
      100% { transform: scale(1.55); opacity: 0; }
    }
    @keyframes tokenDustPopL {
      0%   { transform: translate(0px, 0px) scale(1); opacity: 0.95; }
      100% { transform: translate(-18px, -7px) scale(0.4); opacity: 0; }
    }
    @keyframes tokenDustPopR {
      0%   { transform: translate(0px, 0px) scale(1); opacity: 0.95; }
      100% { transform: translate(18px, -7px) scale(0.4); opacity: 0; }
    }
    .token-airdrop-body {
      transform-box: fill-box;
      transform-origin: 50% 100%;
      animation: tokenAirDropFall 0.33s cubic-bezier(0.32, 0, 0.85, 0.45) both;
    }
    .token-airdrop-shadow {
      transform-box: fill-box;
      transform-origin: 50% 50%;
      animation: tokenAirDropShadow 0.33s ease-in both;
    }
    .token-land-body {
      transform-box: fill-box;
      transform-origin: 50% 100%;
      animation: tokenLandBounce 0.46s steps(4, end) both;
    }
    .token-land-ring {
      transform-box: fill-box;
      transform-origin: 50% 50%;
      animation: tokenLandRingPop 0.48s steps(5, end) both;
    }
    .token-dust-l { animation: tokenDustPopL 0.42s steps(4, end) both; }
    .token-dust-r { animation: tokenDustPopR 0.42s steps(4, end) both; }
    @keyframes tokenZombieEmerge {
      0%   { transform: translateY(16px) scale(0.14, 0.08); opacity: 0; }
      28%  { transform: translateY(9px) scale(0.48, 0.40); opacity: 0.95; }
      70%  { transform: translateY(-4px) scale(1.08, 1.06); opacity: 1; }
      88%  { transform: translateY(1px) scale(0.96, 0.96); opacity: 1; }
      100% { transform: translateY(0px) scale(1, 1); opacity: 1; }
    }
    @keyframes tokenZombieEmergeShadow {
      0%   { transform: scale(0.18); opacity: 0.25; }
      55%  { transform: scale(1.18); opacity: 0.88; }
      100% { transform: scale(1); opacity: 0.58; }
    }
    .token-emerge-body {
      transform-box: fill-box;
      transform-origin: 50% 100%;
      animation: tokenZombieEmerge 0.52s cubic-bezier(0.22, 1.15, 0.36, 1) both;
    }
    .token-emerge-shadow {
      transform-box: fill-box;
      transform-origin: 50% 50%;
      animation: tokenZombieEmergeShadow 0.52s ease-out both;
    }
    @keyframes tokenAuraSpacePulse {
      0%, 100% { opacity: 0.92; stroke-dashoffset: 0; }
      50%      { opacity: 0.52; stroke-dashoffset: 10; }
    }
    .token-aura-space-ring {
      animation: tokenAuraSpacePulse 1.1s steps(4, end) infinite;
    }
    @keyframes tokenPickTargetPulse {
      0%, 100% { transform: scale(1); opacity: 0.98; }
      50%      { transform: scale(1.16); opacity: 0.65; }
    }
    .token-pick-target-ring {
      transform-box: fill-box;
      transform-origin: 50% 50%;
      animation: tokenPickTargetPulse 0.72s steps(2, end) infinite;
    }
    /* V27.1: Startled Cat Hit-Reaction (胡椒/年糕被十二波及时炸毛抖动，不掉血纯演出！) */
    @keyframes tokenCatHitShake {
      0%   { transform: translate(0px, 0px) scale(1, 1); filter: brightness(1.8); }
      18%  { transform: translate(-5px, -6px) scale(0.92, 1.14) rotate(-8deg); filter: sepia(0.8) hue-rotate(-45deg) saturate(4) brightness(1.3); }
      38%  { transform: translate(5px, -4px) scale(1.08, 0.90) rotate(7deg); filter: brightness(1.45); }
      62%  { transform: translate(-3px, -2px) scale(0.96, 1.05) rotate(-4deg); filter: brightness(1.1); }
      84%  { transform: translate(2px, 0px) scale(1.02, 0.98) rotate(2deg); filter: none; }
      100% { transform: translate(0px, 0px) scale(1, 1) rotate(0deg); filter: none; }
    }
    @keyframes tokenHitBangPop {
      0%   { transform: translateY(4px) scale(0.5); opacity: 0; }
      25%  { transform: translateY(-4px) scale(1.15); opacity: 1; }
      80%  { transform: translateY(-9px) scale(1.0); opacity: 1; }
      100% { transform: translateY(-13px) scale(0.8); opacity: 0; }
    }
    .token-hit-body {
      transform-box: fill-box;
      transform-origin: 50% 100%;
      animation: tokenCatHitShake 0.46s steps(5, end) both;
    }
    .token-hit-bang {
      transform-box: fill-box;
      transform-origin: 50% 50%;
      animation: tokenHitBangPop 0.48s steps(4, end) both;
    }
    /* V28: Board Skyward Beam-Up KO (所有棋子阵亡：嗖一下被光束吸飞到天上!) */
    @keyframes boardKoBeamUp {
      0%   { transform: translateY(0px) scale(1, 1); opacity: 1; }
      18%  { transform: translateY(4px) scale(1.16, 0.82); opacity: 1; }
      42%  { transform: translateY(-22px) scale(0.68, 1.55); opacity: 1; }
      100% { transform: translateY(-235px) scale(0.36, 2.25); opacity: 0; }
    }
    @keyframes boardKoBeamStripe {
      0%   { transform: scaleX(0.2); opacity: 0; }
      22%  { transform: scaleX(1.0); opacity: 0.92; }
      72%  { transform: scaleX(0.75); opacity: 0.78; }
      100% { transform: scaleX(0.1); opacity: 0; }
    }
    /* V28: Combat Stage Normal KO — Grayscale Freeze -> Thanos Pixel Dust Dissolve */
    .ko-gray-freeze img {
      filter: grayscale(1) contrast(1.28) brightness(0.86) !important;
      animation: none !important;
    }
    @keyframes koThanosWipe {
      0%   { clip-path: inset(0% 0% 0% 0%); opacity: 0.96; transform: translate(0px, 0px); }
      45%  { clip-path: inset(0% 0% 38% 12%); opacity: 0.68; transform: translate(6px, -6px); }
      100% { clip-path: inset(0% 0% 100% 34%); opacity: 0; transform: translate(18px, -18px); }
    }
    .ko-thanos-dissolve img {
      filter: grayscale(1) contrast(1.32) brightness(0.92) !important;
      animation: koThanosWipe 1.05s steps(8, end) forwards !important;
    }
    /* Universal Board KO Dissolve (Fighters & Tokens, excluding Sicily) */
    @keyframes boardKoDissolveBody {
      0%   { filter: grayscale(1) contrast(1.3) brightness(0.88); clip-path: inset(0% 0% 0% 0%); opacity: 0.98; transform: translate(0px, 0px); }
      28%  { filter: grayscale(1) contrast(1.32) brightness(0.92); clip-path: inset(0% 0% 0% 0%); opacity: 0.96; transform: translate(0px, 0px); }
      64%  { filter: grayscale(1) contrast(1.36) brightness(0.95); clip-path: inset(0% 0% 42% 14%); opacity: 0.64; transform: translate(7px, -7px); }
      100% { filter: grayscale(1) contrast(1.4) brightness(1.0); clip-path: inset(0% 0% 100% 36%); opacity: 0; transform: translate(18px, -18px); }
    }
    @keyframes boardKoAshDrift {
      0%   { opacity: 0; transform: translate(0px, 0px) scale(0.9); }
      26%  { opacity: 0; transform: translate(0px, 0px) scale(1); }
      35%  { opacity: 0.95; transform: translate(2px, -2px) scale(1); }
      100% { opacity: 0; transform: translate(var(--dx, 18px), var(--dy, -24px)) scale(0.35); }
    }
    .board-ko-dissolve-body {
      transform-box: fill-box;
      transform-origin: 50% 50%;
      animation: boardKoDissolveBody 1.15s steps(9, end) both;
    }
    .board-ko-ash-px {
      transform-box: fill-box;
      transform-origin: 50% 50%;
      animation: boardKoAshDrift 1.12s steps(7, end) both;
    }
    /* Universal Board Teleport / Warp FX (so teleports never look like silent snapping) */
    @keyframes boardTpOut {
      0%   { transform: scale(1); opacity: 0.92; filter: brightness(2) saturate(1.8); }
      45%  { transform: scale(0.55, 1.35); opacity: 0.72; filter: brightness(2.4) hue-rotate(150deg); }
      100% { transform: scale(0.08, 1.7); opacity: 0; }
    }
    @keyframes boardTpRingOut {
      0%   { transform: scale(1.15); opacity: 0.95; }
      100% { transform: scale(0.2); opacity: 0; }
    }
    @keyframes boardTpRingIn {
      0%   { transform: scale(0.25); opacity: 1; }
      65%  { transform: scale(1.38); opacity: 0.78; }
      100% { transform: scale(1.65); opacity: 0; }
    }
    @keyframes boardTpBeamFade {
      0%   { opacity: 0.95; stroke-dashoffset: 28; }
      55%  { opacity: 0.75; stroke-dashoffset: 0; }
      100% { opacity: 0; stroke-dashoffset: -18; }
    }
    .board-tp-out { transform-box: fill-box; transform-origin: 50% 80%; animation: boardTpOut 0.38s ease-in both; }
    .board-tp-ring-out { transform-box: fill-box; transform-origin: 50% 50%; animation: boardTpRingOut 0.42s ease-in both; }
    .board-tp-ring-in { transform-box: fill-box; transform-origin: 50% 50%; animation: boardTpRingIn 0.48s ease-out both; }
    .board-tp-beam { animation: boardTpBeamFade 0.48s ease-out both; }
    /* V28: Combat Stage BOSS 西西里 Special KO — 呼吸两下 -> 气泡「好无聊，不玩了！」 -> 转身走掉 */
    @keyframes sicilyBubblePopIn {
      0%   { transform: translateY(6px) scale(0.75); opacity: 0; }
      35%  { transform: translateY(-2px) scale(1.06); opacity: 1; }
      100% { transform: translateY(0px) scale(1); opacity: 1; }
    }
    .sicily-bored-bubble {
      position: absolute;
      white-space: nowrap;
      padding: 5px 11px;
      border-radius: 8px;
      background: #fffbeb;
      color: #1c1917;
      border: 2.5px solid #d97706;
      font-size: 12px;
      font-weight: 900;
      letter-spacing: 0.02em;
      box-shadow: 3px 3px 0 rgba(0,0,0,0.75);
      z-index: 50;
      pointer-events: none;
      animation: sicilyBubblePopIn 0.28s steps(3, end) both;
    }
    .sicily-bored-bubble::after {
      content: '';
      position: absolute;
      bottom: -8px;
      left: var(--tail-x, 50%);
      width: 0;
      height: 0;
      border-left: 6px solid transparent;
      border-right: 6px solid transparent;
      border-top: 8px solid #d97706;
    }
    @keyframes sicilyWalkOffLeft {
      0%   { transform: translateX(0px); opacity: 1; }
      82%  { transform: translateX(-210px); opacity: 1; }
      100% { transform: translateX(-270px); opacity: 0; }
    }
    @keyframes sicilyWalkOffRight {
      0%   { transform: translateX(0px); opacity: 1; }
      82%  { transform: translateX(210px); opacity: 1; }
      100% { transform: translateX(270px); opacity: 0; }
    }
    .sicily-walk-off-left {
      animation: sicilyWalkOffLeft 0.95s linear forwards !important;
    }
    .sicily-walk-off-right {
      animation: sicilyWalkOffRight 0.95s linear forwards !important;
    }

    /* Dynamic Warm Candlelight / Bioluminescent Glow Halos inside Rotating 1:1 Tabletop */
    @keyframes hsCandleFlicker {
      0%, 100% { opacity: 0.62; transform: translate(-50%, -50%) scale(0.96); }
      25% { opacity: 0.86; transform: translate(-50%, -50%) scale(1.06); }
      52% { opacity: 0.56; transform: translate(-50%, -50%) scale(0.93); }
      78% { opacity: 0.92; transform: translate(-50%, -50%) scale(1.09); }
    }
    @keyframes hsMagicPulse {
      0%, 100% { opacity: 0.42; transform: translate(-50%, -50%) scale(0.92); }
      50% { opacity: 0.85; transform: translate(-50%, -50%) scale(1.12); }
    }
    .hs-glow-spot {
      position: absolute;
      border-radius: 50%;
      pointer-events: none;
      mix-blend-mode: screen;
      z-index: 3;
      animation: hsCandleFlicker 2.6s ease-in-out infinite;
    }
    .hs-glow-spot.magic {
      animation: hsMagicPulse 3.4s ease-in-out infinite;
    }
    body.ambient-off .hs-glow-spot {
      animation: none !important;
      opacity: 0.35;
    }

    /* Hearthstone-Style Clickable Corner Easter Egg Hotspots (inside rotating 1:1 tabletop corners) */
    .hs-toy-hotspot {
      position: absolute;
      transform: translate(-50%, -50%);
      width: 17.5%;
      height: 17.5%;
      border-radius: 50%;
      z-index: 8;
      cursor: pointer;
      background: transparent;
      border: 2px solid transparent;
      transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.14s ease;
    }
    .hs-toy-hotspot:hover {
      background: radial-gradient(circle, rgba(167, 243, 208, 0.22) 0%, rgba(167, 243, 208, 0.05) 68%, transparent 100%);
      border-color: rgba(167, 243, 208, 0.58);
      box-shadow: 0 0 18px rgba(52, 211, 153, 0.42);
    }
    .hs-toy-hotspot:active {
      transform: translate(-50%, -50%) scale(0.92);
    }
    .hs-toy-tip {
      position: absolute;
      left: 50%;
      top: 50%;
      pointer-events: none;
      opacity: 0;
      padding: 3px 9px;
      border-radius: 999px;
      background: rgba(10, 18, 13, 0.94);
      border: 1px solid var(--ui-accent, #34d399);
      color: #ecfdf5;
      font-size: 11px;
      font-weight: 800;
      white-space: nowrap;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.65);
      transition: opacity 0.16s ease;
    }
    .hs-toy-hotspot:hover .hs-toy-tip { opacity: 1; }
    @keyframes hsToyRingPop {
      0% { transform: translate(-50%, -50%) scale(0.45); opacity: 0.95; }
      100% { transform: translate(-50%, -50%) scale(1.65); opacity: 0; }
    }
    .hs-toy-ring {
      position: absolute;
      left: 50%;
      top: 50%;
      width: 100%;
      height: 100%;
      border-radius: 50%;
      border: 3px solid var(--ui-accent, #34d399);
      pointer-events: none;
      animation: hsToyRingPop 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }
    @keyframes hsToyFloatUp {
      0% { opacity: 0; transform: translate(-50%, 6px) scale(0.75); }
      18% { opacity: 1; transform: translate(-50%, -6px) scale(1.06); }
      80% { opacity: 1; transform: translate(-50%, -26px) scale(1); }
      100% { opacity: 0; transform: translate(-50%, -40px) scale(0.92); }
    }
    .hs-toy-burst-pill {
      position: absolute;
      z-index: 42;
      pointer-events: none;
      padding: 3px 10px;
      border-radius: 999px;
      background: rgba(10, 18, 13, 0.94);
      border: 1.5px solid var(--ui-accent, #34d399);
      color: #ecfdf5;
      font-size: 11px;
      font-weight: 900;
      white-space: nowrap;
      box-shadow: 0 6px 18px rgba(0, 0, 0, 0.7);
      animation: hsToyFloatUp 1.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }
    @keyframes hsSparkFly {
      0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
      100% { transform: translate(calc(-50% + var(--sx)), calc(-50% + var(--sy))) scale(0.2); opacity: 0; }
    }
    .hs-toy-spark {
      position: absolute;
      z-index: 41;
      pointer-events: none;
      font-size: 13px;
      line-height: 1;
      animation: hsSparkFly 0.72s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    /* Floating Lightweight Translucent Edge Capsules (No Heavy Header/Bottom Bars!) */
    .fs-capsule {
      background: rgba(10, 17, 13, 0.90);
      border: 1px solid rgba(110, 231, 183, 0.34);
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.48);
    }
    .fs-hud-tl {
      position: absolute;
      top: 10px;
      left: 12px;
      z-index: 32;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 6px;
      max-width: min(360px, 28vw);
      pointer-events: none;
    }
    .fs-hud-tl > * { pointer-events: auto; }
    .fs-hud-tr {
      position: absolute;
      top: 10px;
      right: 12px;
      z-index: 32;
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 6px;
      pointer-events: none;
    }
    .fs-hud-tr > * { pointer-events: auto; }

    /* Prominent Opaque Left-Side Dock when Decision or Combat Modal is Minimized */
    @keyframes uaSuspendedGlow {
      0%, 100% { box-shadow: 0 18px 46px rgba(0, 0, 0, 0.92), 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 18px rgba(251, 191, 36, 0.28); }
      50% { box-shadow: 0 18px 46px rgba(0, 0, 0, 0.92), 0 0 0 1px rgba(255, 255, 255, 0.14), 0 0 30px rgba(251, 191, 36, 0.56); }
    }
    .ua-suspended-dock {
      position: fixed;
      left: 14px;
      top: 50%;
      transform: translateY(-50%);
      z-index: 64;
      width: min(304px, calc(100vw - 28px));
      background: linear-gradient(160deg, rgba(18, 15, 26, 0.97), rgba(10, 9, 15, 0.98));
      border-radius: 16px;
      border: 2px solid var(--dock-accent, #f59e0b);
      padding: 14px;
      color: #f5f5f4;
      pointer-events: auto;
      animation: uaSuspendedGlow 2.4s ease-in-out infinite;
    }
    body.ambient-off .ua-suspended-dock {
      animation: none !important;
    }
    @media (min-width: 769px) {
      .ua-suspended-dock.is-shifted-right {
        left: auto;
        right: 16px;
      }
    }
    @media (max-width: 768px), (max-height: 540px) {
      .ua-suspended-dock {
        left: 10px;
        top: auto;
        bottom: 112px;
        transform: none;
        width: min(296px, calc(100vw - 20px));
        padding: 11px;
      }
      .active-played-card-dock.is-compact-mobile {
        left: 10px;
        top: 58px;
        transform: none;
        width: min(296px, calc(100vw - 20px));
        animation: none !important;
      }
      .active-played-card-dock.is-compact-mobile .apc-card-stage {
        display: none;
      }
    }

    /* Table-Anchored Opponent Playmats Layer (inside #fs-table-stage — TRUE layout sizing via cqw, ZERO transform:scale blur!) */
    .fs-table-seats-layer {
      position: absolute;
      inset: 0;
      container-type: size;
      z-index: 12;
      pointer-events: none;
      overflow: visible;
    }

    /* Fixed Opponent Zones Glued Pixel-for-Pixel onto Top / Left / Right Drawn Emerald Playmats */
    .fs-seat-zone {
      position: absolute;
      z-index: 12;
      pointer-events: none;
      overflow: visible;
    }
    .fs-seat-zone.seat-pos-top {
      left: 19.3%;
      top: 2.1%;
      width: 61.4%;
      height: 15.6%;
    }
    .fs-seat-zone.seat-pos-left {
      left: 2.1%;
      top: 19.3%;
      width: 15.6%;
      height: 61.4%;
    }
    .fs-seat-zone.seat-pos-right {
      right: 2.1%;
      top: 19.3%;
      width: 15.6%;
      height: 61.4%;
    }
    .fs-seat-zone.seat-pos-bottom {
      left: 19.3%;
      bottom: 2.1%;
      width: 61.4%;
      height: 15.6%;
    }
    .fs-seat-tray {
      pointer-events: none;
      position: relative;
      width: 100%;
      height: 100%;
      overflow: visible;
    }
    .fs-seat-tray > * {
      pointer-events: auto;
    }
    /* Exact Golden Dashed Slot Anchors inside Top Playmat (Deck center=11.2%, Hand center=50%, Discard center=89.1%) */
    .opp-top-deck-anchor {
      position: absolute;
      left: calc(11.2% + var(--opp-deck-dx, 0%));
      top: calc(50% + var(--opp-deck-dy, 0%));
      transform: translate(-50%, -50%);
    }
    .opp-top-hand-anchor {
      position: absolute;
      left: calc(50% + var(--opp-hand-dx, 0%));
      top: calc(50% + var(--opp-hand-dy, 0%));
      transform: translate(-50%, -50%);
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    .opp-top-discard-anchor {
      position: absolute;
      left: calc(89.1% + var(--opp-discard-dx, 0%));
      top: calc(50% + var(--opp-discard-dy, 0%));
      transform: translate(-50%, -50%);
    }
    /* Exact Golden Dashed Slot Anchors inside Left / Right Side Playmats (90° transpose) */
    .opp-side-deck-anchor {
      position: absolute;
      left: calc(50% + var(--opp-deck-dy, 0%));
      top: calc(11.2% + var(--opp-deck-dx, 0%));
      transform: translate(-50%, -50%);
    }
    .opp-side-hand-anchor {
      position: absolute;
      left: calc(50% + var(--opp-hand-dy, 0%));
      top: calc(50% + var(--opp-hand-dx, 0%));
      transform: translate(-50%, -50%);
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    .opp-side-discard-anchor {
      position: absolute;
      left: calc(50% + var(--opp-discard-dy, 0%));
      top: calc(89.1% + var(--opp-discard-dx, 0%));
      transform: translate(-50%, -50%);
    }
    /* Native cqw-Scaled Opponent Deck, Discard & Avatar (crisp at 65%–240% zoom!) */
    .opp-deck-box,
    .opp-discard-box {
      width: calc(7.3cqw * var(--opp-card-scale, 1));
      height: calc(10.2cqw * var(--opp-card-scale, 1));
      border-radius: calc(0.65cqw * var(--opp-card-scale, 1));
    }
    .opp-avatar-card {
      position: absolute;
      width: calc(7.8cqw * var(--opp-avatar-scale, 1));
      padding: calc(0.5cqw * var(--opp-avatar-scale, 1));
      border-radius: calc(1cqw * var(--opp-avatar-scale, 1));
      background: rgba(12, 16, 14, 0.84);
      border: 1px solid rgba(52, 211, 153, 0.34);
      box-shadow: 0 6px 18px rgba(0, 0, 0, 0.62);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: calc(0.32cqw * var(--opp-avatar-scale, 1));
      cursor: pointer;
    }
    .opp-avatar-img {
      width: calc(4.8cqw * var(--opp-avatar-scale, 1));
      height: calc(4.8cqw * var(--opp-avatar-scale, 1));
      border-radius: 999px;
      object-fit: cover;
      border-width: 2px;
      border-style: solid;
    }

    /* Fixed Screen-Bottom Viewer HUD (Independent of Board Zoom/Pan, Dynamically Skinned by Hero Card Border Color) */
    .fs-viewer-hud {
      position: fixed;
      bottom: var(--my-hud-bottom, 8px);
      left: 50%;
      transform: translateX(-50%);
      z-index: 38;
      pointer-events: none;
      display: flex;
      align-items: flex-end;
      justify-content: center;
      gap: 8px;
      max-width: 98vw;
      overflow: visible;
    }
    .fs-hud-tray {
      pointer-events: auto;
      position: relative;
      z-index: 37;
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 12px;
      flex: 0 1 auto;
      min-width: min(410px, 60vw);
      max-width: min(820px, 82vw);
      padding: 8px 14px 7px;
      border-radius: 16px;
      background: linear-gradient(180deg, var(--hud-bg-top, rgba(16, 26, 20, 0.93)) 0%, var(--hud-bg-bot, rgba(8, 14, 11, 0.97)) 100%);
      border: 2px solid var(--hud-border, #52cf8c);
      box-shadow:
        0 -2px 24px var(--hud-glow, rgba(82, 207, 140, 0.34)),
        0 14px 36px rgba(0, 0, 0, 0.82),
        inset 0 1px 0 var(--hud-highlight, rgba(167, 243, 208, 0.48)),
        inset 0 0 24px var(--hud-inner-glow, rgba(82, 207, 140, 0.14));
      transition: border-color 0.36s ease, box-shadow 0.36s ease, background 0.36s ease;
      overflow: visible;
    }
    .fs-hud-left-wing,
    .fs-hud-right-wing {
      position: relative;
      flex-shrink: 0;
      display: flex;
      align-items: flex-end;
      gap: 8px;
      padding: 8px 11px 7px;
      border-radius: 16px;
      background: linear-gradient(180deg, var(--hud-bg-top, rgba(16, 26, 20, 0.94)) 0%, var(--hud-bg-bot, rgba(8, 14, 11, 0.97)) 100%);
      border: 2px solid var(--hud-border, #52cf8c);
      box-shadow:
        0 -2px 20px var(--hud-glow, rgba(82, 207, 140, 0.30)),
        0 14px 34px rgba(0, 0, 0, 0.80),
        inset 0 1px 0 var(--hud-highlight, rgba(167, 243, 208, 0.48)),
        inset 0 0 22px var(--hud-inner-glow, rgba(82, 207, 140, 0.14));
      pointer-events: auto;
      overflow: visible;
      z-index: 36;
      transition: border-color 0.36s ease, box-shadow 0.36s ease, background 0.36s ease;
    }
    .fs-hud-accent-line {
      position: absolute;
      left: 22px;
      right: 22px;
      top: 0;
      height: 2px;
      border-radius: 999px;
      background: linear-gradient(90deg, transparent 0%, var(--hud-border, #52cf8c) 24%, var(--hud-highlight, #d1fae5) 50%, var(--hud-border, #52cf8c) 76%, transparent 100%);
      pointer-events: none;
      opacity: 0.92;
    }
    .fs-hud-corner {
      position: absolute;
      width: 10px;
      height: 10px;
      pointer-events: none;
      border-color: var(--hud-accent, #6be8a5);
      opacity: 0.85;
    }
    .fs-hud-corner.tl { top: 4px; left: 4px; border-top: 2px solid; border-left: 2px solid; border-top-left-radius: 6px; }
    .fs-hud-corner.tr { top: 4px; right: 4px; border-top: 2px solid; border-right: 2px solid; border-top-right-radius: 6px; }
    .fs-hud-corner.bl { bottom: 4px; left: 4px; border-bottom: 2px solid; border-left: 2px solid; border-bottom-left-radius: 6px; }
    .fs-hud-corner.br { bottom: 4px; right: 4px; border-bottom: 2px solid; border-right: 2px solid; border-bottom-right-radius: 6px; }
    .fs-hud-divider {
      width: 1px;
      align-self: stretch;
      margin: 6px 0;
      background: linear-gradient(180deg, transparent 0%, var(--hud-border, #52cf8c) 50%, transparent 100%);
      opacity: 0.45;
      flex-shrink: 0;
    }
    .fs-viewer-hand {
      display: flex;
      align-items: flex-end;
      justify-content: center;
      flex: 1 1 auto;
      min-width: 0;
      height: calc(114px * var(--my-card-scale, 1) * var(--big-hud-mult, 1));
      padding: 0 22px 2px;
      overflow: visible;
      position: relative;
      z-index: 14;
    }
    /* Real layout sizing on viewer hand/deck/discard cards — crisp vector text at ANY scale! */
    .fs-viewer-hand .um-card {
      width: calc(112px * var(--my-card-scale, 1) * var(--big-hud-mult, 1));
      height: calc(154px * var(--my-card-scale, 1) * var(--big-hud-mult, 1));
    }
    .fs-viewer-hand .fan-card-slot + .fan-card-slot {
      margin-left: clamp(
        calc(-1 * (112px * var(--my-card-scale, 1) * var(--big-hud-mult, 1) - 24px)),
        calc(var(--base-ml, -20px) + var(--my-hand-overlap-adj, 0px)),
        8px
      ) !important;
    }
    @media (hover: hover) and (pointer: fine) {
      .fs-viewer-hand:hover {
        z-index: 45;
      }
      .fs-viewer-hand .fan-card-slot + .fan-card-slot:hover {
        z-index: 60 !important;
        margin-left: clamp(
          calc(-1 * (112px * var(--my-card-scale, 1) * var(--big-hud-mult, 1) - 24px)),
          calc(var(--base-ml, -20px) + var(--my-hand-overlap-adj, 0px)),
          8px
        ) !important;
        margin-right: 0 !important;
      }
      .fs-viewer-hand .fan-card-slot:hover {
        z-index: 60 !important;
      }
      .fs-viewer-hand .fan-card-slot:hover .fan-card-visual {
        transform: translateY(-46px) scale(1.18) rotate(0deg) !important;
      }
      .fs-viewer-hand .fan-card-slot:hover + .fan-card-slot .fan-card-visual {
        transform: translateX(8px) translateY(calc(var(--rest-y, 0px) + 3px)) rotate(var(--rest-rot, 0deg));
      }
    }
    body.ua-dragging-hand-card .fan-card-slot:hover,
    body.ua-dragging-hand-card .fs-viewer-hand .fan-card-slot:hover,
    body.ua-dragging-hand-card .fs-viewer-hand .fan-card-slot + .fan-card-slot:hover {
      z-index: auto !important;
    }
    body.ua-dragging-hand-card .fan-card-slot:hover .fan-card-visual,
    body.ua-dragging-hand-card .fs-viewer-hand .fan-card-slot:hover .fan-card-visual {
      transform: translateY(var(--rest-y, 0px)) rotate(var(--rest-rot, 0deg)) !important;
    }
    body.ua-dragging-hand-card .discard-pile-wrap {
      z-index: 95 !important;
    }
    body.ua-dragging-hand-card #discard-pile-slot * {
      pointer-events: none !important;
    }
    .fs-my-pile-size {
      width: calc(66px * var(--my-card-scale, 1) * var(--big-hud-mult, 1));
      height: calc(92px * var(--my-card-scale, 1) * var(--big-hud-mult, 1));
    }

    /* Live Floating Card Layout Tuner Popover (non-blocking, instant 60fps preview) */
    .fs-tuner-panel {
      position: fixed;
      top: 84px;
      right: 12px;
      z-index: 44;
      width: 288px;
      max-height: calc(100vh - 180px);
      overflow-y: auto;
      padding: 12px 13px;
      border-radius: 14px;
      background: rgba(10, 17, 13, 0.92);
      border: 1.5px solid rgba(110, 231, 183, 0.48);
      backdrop-filter: blur(12px);
      box-shadow: 0 18px 46px rgba(0, 0, 0, 0.78);
      color: #ecfdf5;
    }
    .fs-tuner-panel input[type="range"] {
      accent-color: #34d399;
      height: 4px;
      cursor: pointer;
    }

    /* Dynamic-Thickness Deck Pile (scales stack layers live with deck.length) */
    .dyn-deck-pile {
      position: relative;
      border-radius: 7px;
      overflow: hidden;
      cursor: pointer;
      transition: transform 0.16s ease, box-shadow 0.16s ease;
    }
    .dyn-deck-pile:hover {
      transform: translateY(-3px) scale(1.04);
    }
    .dyn-deck-pile.deck-empty {
      border: 2px dashed rgba(209, 213, 219, 0.35);
      background: rgba(12, 18, 15, 0.55);
      box-shadow: none !important;
    }
    .dyn-deck-pile.deck-pulse {
      animation: deckPulse 1.8s infinite;
    }

    /* Flat Discard Pile (ZERO stack thickness, ALWAYS face-up top card, BOOST drop target) */
    .flat-discard-pile {
      position: relative;
      border-radius: 7px;
      overflow: hidden;
      cursor: pointer;
      transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.55);
    }
    .flat-discard-pile:hover {
      transform: translateY(-2px);
      border-color: #fbbf24;
    }

    /* Opponent Face-Down Hand Cards (native cqw sizing — razor sharp at any zoom!) */
    .opp-hand-row {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0 0.4cqw;
    }
    .opp-card-back {
      width: calc(6.9cqw * var(--opp-card-scale, 1));
      height: calc(9.7cqw * var(--opp-card-scale, 1));
      border-radius: calc(0.55cqw * var(--opp-card-scale, 1));
      border: 1.5px solid rgba(251, 191, 36, 0.65);
      background-size: cover;
      background-position: center;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.65);
      flex-shrink: 0;
      transition: transform 0.16s ease;
    }
    .opp-card-back:not(:first-child) {
      margin-left: calc(6.9cqw * var(--opp-card-scale, 1) * var(--opp-hand-overlap, -18) / 100);
    }
    .opp-card-back:hover {
      transform: translateY(0.5cqw) scale(1.08);
      z-index: 15 !important;
    }
    .opp-hand-col {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 0.4cqw 0;
    }
    .opp-card-back-side {
      position: relative;
      overflow: hidden;
      width: calc(9.2cqw * var(--opp-card-scale, 1));
      height: calc(6.5cqw * var(--opp-card-scale, 1));
      border-radius: calc(0.48cqw * var(--opp-card-scale, 1));
      border: 1.5px solid rgba(251, 191, 36, 0.65);
      background: #14110f;
      box-shadow: 0 3px 8px rgba(0, 0, 0, 0.65);
      flex-shrink: 0;
      transition: transform 0.16s ease;
    }
    .opp-card-back-side-art {
      position: absolute;
      left: 50%;
      top: 50%;
      width: calc(6.5cqw * var(--opp-card-scale, 1));
      height: calc(9.2cqw * var(--opp-card-scale, 1));
      background-size: cover;
      background-position: center;
      pointer-events: none;
    }
    .seat-pos-left .opp-card-back-side-art {
      transform: translate(-50%, -50%) rotate(90deg);
    }
    .seat-pos-right .opp-card-back-side-art {
      transform: translate(-50%, -50%) rotate(-90deg);
    }
    .opp-card-back-side:not(:first-child) {
      margin-top: calc(6.5cqw * var(--opp-card-scale, 1) * var(--opp-hand-overlap, -18) / 100);
    }

    /* Collapsible Right Sidebar Drawer */
    .fs-sidebar-drawer {
      position: fixed;
      top: 0;
      right: 0;
      bottom: 0;
      width: min(310px, 88vw);
      z-index: 46;
      background: rgba(11, 19, 14, 0.95);
      border-left: 1.5px solid rgba(110, 231, 183, 0.35);
      backdrop-filter: blur(12px);
      box-shadow: -14px 0 42px rgba(0, 0, 0, 0.72);
      display: flex;
      flex-direction: column;
    }

    /* Locked Theme Card Styling in Lobby */
    .scene-card-locked {
      filter: grayscale(1) brightness(0.75);
      opacity: 0.56;
      cursor: not-allowed !important;
    }
    .scene-card-locked:hover {
      border-color: rgba(120, 113, 108, 0.7) !important;
    }


    /* 16-Bit Pixel Castle Tabletop Aesthetics */
    .ow-lobby-bg {
      background-color: #120e0b;
      background-image:
        radial-gradient(ellipse 75% 65% at 50% 42%, rgba(18, 13, 10, 0.42) 0%, rgba(12, 9, 7, 0.84) 100%),
        linear-gradient(180deg, rgba(16, 12, 9, 0.68) 0%, rgba(14, 11, 8, 0.56) 50%, rgba(12, 9, 7, 0.86) 100%),
        url('../assets/themes/ow_lobby_bg.webp');
      background-size: cover;
      background-position: center center;
      background-attachment: fixed;
      image-rendering: pixelated;
    }
    .px-topbar {
      background: linear-gradient(180deg, var(--ui-topbar-top) 0%, var(--ui-topbar-bot) 100%);
      border-bottom: 2px solid var(--ui-border);
      box-shadow: 0 3px 0 #0a0806, 0 8px 24px rgba(0, 0, 0, 0.65);
    }
    .px-panel {
      background: linear-gradient(180deg, var(--ui-panel-top) 0%, var(--ui-panel-bot) 100%);
      border: 2px solid var(--ui-border);
      border-radius: 6px;
      box-shadow:
        inset 2px 2px 0 rgba(255, 255, 255, 0.12),
        inset -2px -2px 0 rgba(0, 0, 0, 0.65),
        0 0 0 2px #0a0806,
        0 14px 36px rgba(0, 0, 0, 0.72);
    }
    .px-subpanel {
      background: var(--ui-panel-bot);
      border: 2px solid var(--ui-border-sub);
      border-radius: 5px;
      box-shadow:
        inset 1px 1px 0 rgba(255, 255, 255, 0.10),
        inset -1px -1px 0 rgba(0, 0, 0, 0.55);
    }
    .board-zoom-hud {
      border-color: var(--ui-border) !important;
      background: var(--ui-panel-bot) !important;
    }
    @keyframes owSubIn {
      from { opacity: 0; transform: translateX(-8px); }
      to { opacity: 1; transform: translateX(0); }
    }
    .ow-cta-btn {
      position: relative;
      isolation: isolate;
      background: linear-gradient(180deg, var(--ui-cta-top) 0%, var(--ui-cta-bot) 100%);
      color: #fff9f0;
      letter-spacing: 0.08em;
      border: 2px solid var(--ui-cta-border);
      border-radius: 6px;
      text-shadow: 1px 2px 0 rgba(0, 0, 0, 0.72);
      box-shadow:
        inset 2px 2px 0 rgba(255, 255, 255, 0.38),
        inset -2px -2px 0 rgba(0, 0, 0, 0.45),
        0 5px 0 var(--ui-cta-base),
        0 12px 30px rgba(0, 0, 0, 0.65);
      transition: transform 0.14s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.14s ease, filter 0.14s ease;
    }
    .ow-cta-btn:hover {
      transform: translateY(-2px);
      filter: brightness(1.08);
      box-shadow:
        inset 2px 2px 0 rgba(255, 255, 255, 0.50),
        inset -2px -2px 0 rgba(0, 0, 0, 0.45),
        0 7px 0 var(--ui-cta-base),
        0 16px 36px var(--ui-glow);
    }
    .ow-cta-btn:active {
      transform: translateY(2px);
      box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.30), 0 2px 0 var(--ui-cta-base);
    }
    /* Eye-Catching 16-Bit Pixel Effects on Primary Start Game CTAs (#lobby-open-charselect-btn & #char-select-start-btn) */
    @keyframes ctaPxSheenSweep {
      0%, 58% { transform: translateX(-165%) skewX(-22deg); opacity: 0; }
      64% { opacity: 0.95; }
      88% { transform: translateX(310%) skewX(-22deg); opacity: 0.95; }
      92%, 100% { transform: translateX(340%) skewX(-22deg); opacity: 0; }
    }
    @keyframes ctaPxSparkTwinkle {
      0%, 100% { opacity: 0.18; transform: scale(0.7); }
      45%, 60% { opacity: 1; transform: scale(1.18); }
    }
    @keyframes ctaPxHeroPulse {
      0%, 100% { filter: drop-shadow(0 5px 0 rgba(0, 0, 0, 0.85)) drop-shadow(0 0 5px var(--ui-accent, #fbbf24)) brightness(1.02); }
      50% { filter: drop-shadow(0 5px 0 rgba(0, 0, 0, 0.85)) drop-shadow(0 0 13px var(--ui-accent-light, #fde68a)) brightness(1.13); }
    }
    .ow-cta-btn.cta-px-hero {
      overflow: visible !important;
      animation: ctaPxHeroPulse 2.4s ease-in-out infinite !important;
    }
    .ow-cta-btn.cta-px-hero:hover {
      animation: none !important;
      filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.9)) drop-shadow(0 0 18px var(--ui-accent-light, #fde68a)) brightness(1.18) !important;
      transform: translateY(-2px) !important;
    }
    .cta-px-sheen-wrap {
      position: absolute;
      inset: 1px;
      border-radius: inherit;
      overflow: hidden;
      pointer-events: none;
      z-index: 1;
    }
    .cta-px-sheen {
      position: absolute;
      top: -6px;
      bottom: -6px;
      left: 0;
      width: 44px;
      background: linear-gradient(90deg, transparent 0 16%, rgba(255, 250, 210, 0.36) 16% 34%, rgba(255, 255, 255, 0.78) 34% 58%, rgba(255, 250, 210, 0.32) 58% 76%, transparent 76% 100%);
      animation: ctaPxSheenSweep 2.9s linear infinite;
      pointer-events: none;
    }
    .cta-px-spark {
      position: absolute;
      width: 12px;
      height: 12px;
      pointer-events: none;
      z-index: 6;
      image-rendering: pixelated;
      animation: ctaPxSparkTwinkle 1.5s steps(2, end) infinite;
    }
    .cta-px-spark::before,
    .cta-px-spark::after {
      content: '';
      position: absolute;
      background: #fef08a;
      box-shadow: 0 0 0 1px #1c1008;
    }
    .cta-px-spark::before { left: 5px; top: 0; width: 2px; height: 12px; }
    .cta-px-spark::after { left: 0; top: 5px; width: 12px; height: 2px; }
    .cta-px-spark.sp-tl { top: -6px; left: 4px; animation-delay: 0s; }
    .cta-px-spark.sp-tr { top: -5px; right: 8px; animation-delay: 0.4s; }
    .cta-px-spark.sp-bl { bottom: -6px; left: 18px; animation-delay: 0.8s; }
    .cta-px-spark.sp-br { bottom: -6px; right: 6px; animation-delay: 1.15s; }
    .ow-cta-btn.cta-px-hero > span:not(.cta-px-sheen-wrap):not(.cta-px-spark) {
      position: relative;
      z-index: 3;
    }
    /* Lobby FFA Hover + Click Flyout Submenu (1v1 / 2v2 / FFA -> 3P / 4P) */
    .lobby-ffa-wrap {
      position: relative;
      z-index: 45;
    }
    .lobby-ffa-popover {
      position: absolute;
      top: -6px;
      left: 100%;
      padding-left: 10px;
      z-index: 80;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transform: translateX(-6px);
      transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s;
    }
    .lobby-ffa-wrap:hover .lobby-ffa-popover,
    .lobby-ffa-wrap.is-open .lobby-ffa-popover {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transform: translateX(0);
    }
    .lobby-ffa-panel {
      min-width: 196px;
      background: linear-gradient(180deg, rgba(18, 14, 12, 0.98) 0%, rgba(10, 8, 7, 0.99) 100%);
      border: 2px solid var(--ui-accent, #f5b942);
      box-shadow: 0 0 0 2px #090706, 0 12px 28px rgba(0, 0, 0, 0.85);
      padding: 10px;
    }
    @media (max-width: 1023px) {
      .lobby-ffa-popover {
        top: 100%;
        left: 0;
        right: 0;
        padding-left: 0;
        padding-top: 6px;
        transform: translateY(-4px);
      }
      .lobby-ffa-wrap:hover .lobby-ffa-popover,
      .lobby-ffa-wrap.is-open .lobby-ffa-popover {
        transform: translateY(0);
      }
    }

    /* Expandable Context-Aware Operations Guide Drawer (floats above Studio / Map Editor / MP / Char Select) */
    .guide-drawer {
      position: fixed;
      top: 56px;
      right: 12px;
      bottom: 12px;
      width: min(580px, 95vw);
      z-index: 90;
      display: flex;
      flex-direction: column;
      border-radius: 10px;
      background: var(--ui-panel-bot);
      border: 2px solid var(--ui-border);
      box-shadow: 0 24px 64px rgba(0, 0, 0, 0.88);
      backdrop-filter: blur(8px);
      animation: guideSlideIn 0.2s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .guide-viz-card {
      padding: 10px 12px;
      border-radius: 10px;
      background: rgba(10, 12, 18, 0.88);
      border: 1.5px solid var(--ui-border);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }
    @keyframes guideSlideIn {
      from { opacity: 0; transform: translateX(24px); }
      to { opacity: 1; transform: translateX(0); }
    }

    /* Builtin Hero Lounge Showcase — 2-Row Responsive Hover-Zoom Card Gallery */
    .lounge-card-strip {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px 8px;
      overflow: visible;
      padding: 10px 6px 8px 6px;
      margin-top: 2px;
      justify-items: center;
      align-items: start;
    }
    @media (min-width: 640px) { .lounge-card-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
    @media (min-width: 768px) { .lounge-card-strip { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
    @media (min-width: 1280px) { .lounge-card-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
    .lounge-card-item {
      position: relative;
      transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), filter 0.18s ease;
      transform-origin: center center;
      z-index: 2;
      cursor: pointer;
    }
    .lounge-card-item:hover {
      transform: translateY(-6px) scale(1.22);
      z-index: 45;
      filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.88));
    }
    .ua-workbench-cards-scroll .lounge-card-strip {
      grid-template-columns: repeat(auto-fill, minmax(186px, 1fr));
      gap: 18px 14px;
      padding: 14px 12px 24px 12px;
    }
    .ua-workbench-cards-scroll .lounge-card-item:hover {
      transform: translateY(-6px) scale(1.08);
    }
    @media (min-width: 1600px) {
      .ua-workbench-cards-scroll .lounge-card-strip {
        grid-template-columns: repeat(auto-fill, minmax(212px, 1fr));
        gap: 22px 18px;
      }
      .ua-workbench-cards-scroll .lounge-card-item {
        zoom: 1.14;
      }
    }
    @media (min-width: 2100px) {
      .ua-workbench-cards-scroll .lounge-card-strip {
        grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
        gap: 26px 20px;
      }
      .ua-workbench-cards-scroll .lounge-card-item {
        zoom: 1.28;
      }
    }

    /* Shared 16-Bit Pixel Stage Floor + Camera-Closer Foreground Framing & Drifting Pixel Particles (Lounge + Combat Stage) */
    .px-stage-floor-layer {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 4;
      pointer-events: none;
      image-rendering: pixelated;
      image-rendering: crisp-edges;
    }
    .px-stage-fg-layer {
      position: absolute;
      inset: 0;
      z-index: 32;
      pointer-events: none;
      overflow: hidden;
      image-rendering: pixelated;
      image-rendering: crisp-edges;
    }
    .px-stage-particle {
      position: absolute;
      pointer-events: none;
      image-rendering: pixelated;
      border-radius: 0 !important;
      z-index: 34;
    }
    @keyframes pxPetalDrift {
      0% { transform: translate(0px, -12px) rotate(0deg); opacity: 0; }
      12% { opacity: 0.96; }
      52% { transform: translate(var(--px-dx1, 34px), var(--px-dy1, 76px)) rotate(90deg); opacity: 0.96; }
      88% { opacity: 0.85; }
      100% { transform: translate(var(--px-dx2, 68px), var(--px-dy2, 168px)) rotate(180deg); opacity: 0; }
    }
    @keyframes pxEmberRise {
      0% { transform: translate(0px, 10px); opacity: 0; }
      16% { opacity: 0.96; }
      55% { transform: translate(var(--px-dx1, -14px), var(--px-dy1, -68px)); opacity: 0.9; }
      100% { transform: translate(var(--px-dx2, 16px), var(--px-dy2, -148px)); opacity: 0; }
    }
    @keyframes pxFireflyFloat {
      0%, 100% { transform: translate(0px, 0px); opacity: 0.25; }
      25% { transform: translate(var(--px-dx1, 14px), var(--px-dy1, -12px)); opacity: 1; }
      60% { transform: translate(var(--px-dx2, -10px), var(--px-dy2, -22px)); opacity: 0.85; }
      82% { transform: translate(6px, -6px); opacity: 0.35; }
    }

    /* Smash Bros.-Style Character Select Grid Tiles */
    .smash-roster-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(94px, 1fr));
      gap: 8px;
      align-content: start;
    }
    .smash-roster-wall {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
      gap: 8px;
      align-content: start;
      align-items: stretch;
    }
    @media (max-width: 1023px) {
      .smash-roster-wall {
        grid-template-columns: repeat(auto-fill, minmax(98px, 1fr));
        gap: 7px;
      }
    }
    @media (max-width: 639px) {
      .smash-roster-wall {
        grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
        gap: 6px;
      }
    }
    .smash-tile-arch-strip {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 3px;
      z-index: 7;
      pointer-events: none;
      opacity: 0.92;
    }
    .smash-stage-scroll {
      overscroll-behavior: contain;
      scrollbar-gutter: stable;
      scrollbar-width: thin;
      scrollbar-color: rgba(245, 158, 11, 0.55) rgba(12, 10, 9, 0.35);
    }
    .smash-stage-scroll::-webkit-scrollbar {
      width: 8px;
      height: 8px;
    }
    .smash-stage-scroll::-webkit-scrollbar-track {
      background: rgba(12, 10, 9, 0.42);
      border-radius: 99px;
    }
    .smash-stage-scroll::-webkit-scrollbar-thumb {
      background: linear-gradient(180deg, rgba(251, 191, 36, 0.58), rgba(217, 119, 6, 0.52));
      border-radius: 99px;
      border: 1.5px solid rgba(12, 10, 9, 0.65);
    }
    .smash-stage-scroll::-webkit-scrollbar-thumb:hover {
      background: linear-gradient(180deg, rgba(253, 224, 71, 0.85), rgba(245, 158, 11, 0.82));
    }
    .smash-archetype-wall {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: stretch;
    }
    .smash-arch-pod {
      display: flex;
      flex-direction: column;
      gap: 5px;
      padding: 6px;
      border-radius: 10px;
      border: 1.5px solid var(--arch-border, rgba(251,191,36,0.45));
      background: linear-gradient(180deg, var(--arch-bg, rgba(28,25,23,0.82)) 0%, rgba(12,10,9,0.92) 100%);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 4px 14px rgba(0,0,0,0.45);
      min-width: 0;
    }
    .smash-arch-pod-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 4px;
      padding: 2px 6px;
      border-radius: 6px;
      background: var(--arch-head-bg, rgba(251,191,36,0.16));
      border: 1px solid var(--arch-border, rgba(251,191,36,0.4));
    }
    .smash-arch-pod-tiles {
      display: grid;
      grid-template-columns: repeat(var(--arch-cols, 3), minmax(0, 1fr));
      gap: 6px;
      flex: 1;
    }
    @media (max-width: 1023px) {
      .smash-arch-pod {
        flex: 1 1 280px !important;
      }
      .smash-arch-random-pod {
        flex: 1 1 100% !important;
      }
    }
    /* V32: Metal Slug 4-Column Tall Vertical Character Pillars (P1..P4, unused slots locked in industrial gray!) */
    @keyframes mslugPortraitSlam {
      0%   { transform: scale(1.16) translateY(-16px); filter: brightness(2.0) contrast(1.2); opacity: 0.72; }
      38%  { transform: scale(0.985) translateY(3px);  filter: brightness(1.22) contrast(1.06); opacity: 1; }
      100% { transform: scale(1) translateY(0px);      filter: brightness(1) contrast(1); opacity: 1; }
    }
    @keyframes mslugFlashOverlay {
      0%   { opacity: 0.85; }
      100% { opacity: 0; }
    }
    .mslug-pillar {
      position: relative;
      border-radius: 12px;
      overflow: hidden;
      min-height: 295px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      transition: transform 0.14s ease, border-color 0.16s ease, box-shadow 0.16s ease;
      background: #0c0a09;
    }
    .mslug-pillar.is-active-pick {
      box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.85), 0 0 28px rgba(251, 191, 36, 0.36);
    }
    .mslug-pillar-art {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center 16%;
      image-rendering: pixelated;
      z-index: 1;
      transition: transform 0.25s ease;
    }
    .mslug-pillar:hover .mslug-pillar-art {
      transform: scale(1.03);
    }
    .mslug-pillar-art.is-slamming {
      animation: mslugPortraitSlam 0.36s cubic-bezier(0.22, 1, 0.36, 1) both;
    }
    .mslug-pillar-flash {
      position: absolute;
      inset: 0;
      z-index: 4;
      background: radial-gradient(circle at 50% 35%, rgba(255,251,235,0.95), rgba(251,191,36,0.35) 55%, transparent 80%);
      pointer-events: none;
      animation: mslugFlashOverlay 0.36s ease-out forwards;
    }
    .mslug-pillar-grad {
      position: absolute;
      inset: 0;
      z-index: 2;
      background: linear-gradient(180deg, rgba(10,8,10,0.74) 0%, rgba(10,8,10,0.08) 24%, rgba(10,8,10,0.14) 56%, rgba(10,8,10,0.94) 88%, rgba(8,6,8,0.98) 100%);
      pointer-events: none;
    }
    .mslug-pillar-scanlines {
      position: absolute;
      inset: 0;
      z-index: 2;
      background: repeating-linear-gradient(180deg, rgba(0,0,0,0.12) 0px, rgba(0,0,0,0.12) 2px, transparent 2px, transparent 5px);
      opacity: 0.38;
      pointer-events: none;
    }
    .mslug-pillar-locked {
      background:
        repeating-linear-gradient(-45deg, rgba(255,255,255,0.032) 0px, rgba(255,255,255,0.032) 12px, transparent 12px, transparent 24px),
        linear-gradient(180deg, #1c1917 0%, #141211 55%, #0c0a09 100%);
      border: 2px dashed rgba(120, 113, 108, 0.55);
      filter: grayscale(1);
      opacity: 0.78;
    }
    .mslug-pillar-locked:hover {
      opacity: 0.94;
      border-color: rgba(214, 211, 209, 0.75);
    }
    .smash-tile {
      position: relative;
      border: 2px solid rgba(212, 161, 62, 0.42);
      background: linear-gradient(180deg, rgba(24, 20, 16, 0.94) 0%, rgba(12, 10, 9, 0.97) 100%);
      border-radius: 8px;
      transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
      overflow: hidden;
    }
    .smash-tile:hover:not(.is-locked) {
      transform: translateY(-2px) scale(1.03);
      border-color: #fde047;
      box-shadow: 0 0 0 2px rgba(253, 224, 71, 0.35), 0 8px 20px rgba(0, 0, 0, 0.72);
      z-index: 10;
    }
    .smash-tile.is-picked-cur {
      border-color: #fbbf24;
      box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.55), 0 0 18px rgba(251, 191, 36, 0.35);
    }
    .smash-tile.is-locked {
      opacity: 0.48;
      filter: grayscale(0.55);
      cursor: not-allowed;
    }
    .smash-hover-popover {
      position: fixed;
      z-index: 82;
      pointer-events: none;
      max-width: min(94vw, 760px);
      filter: drop-shadow(0 14px 32px rgba(0, 0, 0, 0.92));
    }

    /* Scratch-Style Modular Effect Block Builder */
    .eff-block-row {
      border-radius: 10px;
      border: 1px solid rgba(231, 196, 122, 0.28);
      background: rgba(20, 17, 14, 0.85);
      padding: 8px;
      display: flex;
      flex-direction: column;
      gap: 6px;
      min-width: 0;
      max-width: 100%;
    }
    .eff-block-row select, #studio-ongoing-panel select {
      min-width: 0;
      max-width: 100%;
      text-overflow: ellipsis;
    }
    .eff-block-row select.flex-1, #studio-ongoing-panel select.flex-1 {
      width: 0;
    }
    .eff-chip-trigger { background: rgba(217, 119, 6, 0.22); border: 1px solid rgba(245, 158, 11, 0.55); color: #fcd34d; }
    .eff-chip-if { background: rgba(79, 70, 229, 0.22); border: 1px solid rgba(129, 140, 248, 0.55); color: #c7d2fe; }
    .eff-chip-act { background: rgba(5, 150, 105, 0.22); border: 1px solid rgba(52, 211, 153, 0.55); color: #a7f3d0; }
    .eff-chip-else { background: rgba(225, 29, 72, 0.18); border: 1px solid rgba(251, 113, 133, 0.48); color: #fecdd3; }

    .board-drop-active {
      outline: 2.5px dashed #e7c47a;
      outline-offset: -6px;
      background: radial-gradient(circle at 50% 50%, rgba(231, 196, 122, 0.12), rgba(20, 16, 13, 0.85)) !important;
    }
    .staged-card-float {
      position: absolute;
      top: 12px;
      right: 14px;
      z-index: 25;
      animation: floatHover 2.2s ease-in-out infinite;
    }
    @keyframes floatHover {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-5px); }
    }
    .active-played-card-dock {
      position: fixed;
      left: 18px;
      top: 47%;
      transform: translateY(-50%);
      z-index: 44;
      width: 268px;
      pointer-events: auto;
      animation: apcSlideInLeft 0.32s cubic-bezier(0.18, 0.92, 0.24, 1) forwards;
    }
    @keyframes apcSlideInLeft {
      0% { opacity: 0; transform: translate(-54px, -50%) scale(0.86) rotate(-3deg); }
      65% { opacity: 1; transform: translate(6px, -50%) scale(1.02) rotate(0.5deg); }
      100% { opacity: 1; transform: translate(0, -50%) scale(1) rotate(0deg); }
    }
    .active-played-card-dock .apc-card-stage {
      display: flex;
      justify-content: center;
    }
    .active-played-card-dock .apc-card-stage .um-card.xl {
      width: 242px;
      height: 338px;
      border-width: 2.5px;
      border-color: #f5c863;
      box-shadow: 0 18px 46px rgba(0, 0, 0, 0.85), 0 0 26px rgba(245, 200, 99, 0.34);
    }
    @keyframes apcCountdown {
      from { width: 100%; }
      to { width: 0%; }
    }
    .apc-progress-fill {
      height: 100%;
      border-radius: 999px;
      background: linear-gradient(90deg, #f59e0b, #fde047);
      animation: apcCountdown var(--apc-dur, 2800ms) linear forwards;
    }
    .range-tip-wrap {
      position: relative;
      display: inline-flex;
      align-items: center;
      cursor: help;
    }
    .range-tip-pop {
      position: absolute;
      left: 50%;
      bottom: calc(100% + 9px);
      transform: translateX(-50%) translateY(4px);
      width: 256px;
      max-width: 72vw;
      padding: 10px 12px;
      border-radius: 12px;
      background: rgba(12, 10, 9, 0.97);
      border: 1.5px solid var(--rt-border, #f59e0b);
      box-shadow: 0 14px 36px rgba(0, 0, 0, 0.88), 0 0 18px rgba(0, 0, 0, 0.55);
      color: #f5f5f4;
      z-index: 140;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s ease;
      text-align: left;
      white-space: normal;
      line-height: 1.45;
    }
    .range-tip-wrap.tip-down .range-tip-pop {
      bottom: auto;
      top: calc(100% + 9px);
      transform: translateX(-50%) translateY(-4px);
    }
    .range-tip-wrap.tip-left .range-tip-pop {
      left: 0;
      transform: translateY(4px);
    }
    .range-tip-wrap.tip-down.tip-left .range-tip-pop {
      left: 0;
      transform: translateY(-4px);
    }
    .range-tip-wrap:hover .range-tip-pop,
    .range-tip-wrap:focus-within .range-tip-pop {
      opacity: 1;
      visibility: visible;
      transform: translateX(-50%) translateY(0);
    }
    .range-tip-wrap.tip-left:hover .range-tip-pop,
    .range-tip-wrap.tip-left:focus-within .range-tip-pop {
      transform: translateY(0);
    }
    /* ==================== OPTION A FULLSCREEN 16-BIT COMIC-SLASH CUT-IN ENGINE ==================== */
    .ua-cutin-stage {
      position: fixed;
      inset: 0;
      z-index: 92;
      pointer-events: none;
      overflow: hidden;
    }
    .ua-cutin-dim {
      position: absolute;
      inset: 0;
      background: rgba(7, 5, 13, 0.74);
      opacity: 0;
      animation: uaCutinDimIn 0.14s steps(4, end) forwards;
    }
    .ua-cutin-stage.is-exiting .ua-cutin-dim {
      animation: uaCutinDimOut 0.22s steps(4, end) forwards;
    }
    .ua-cutin-panel {
      --cutin-bg: #18101c;
      --cutin-accent: #facc15;
      --cutin-accent2: #f97316;
      --cutin-ink: #09060d;
      position: absolute;
      left: 0;
      right: 0;
      overflow: hidden;
      will-change: transform, opacity;
      background: var(--cutin-ink);
    }
    .ua-cutin-panel.cutin-single {
      top: 50%;
      height: clamp(320px, 64vh, 660px);
      transform: translateY(-50%);
      z-index: 3;
      clip-path: polygon(0 11%, 100% 0%, 100% 89%, 0 100%);
      animation: uaCutinSingleIn 0.28s cubic-bezier(0.08, 0.96, 0.22, 1) forwards;
    }
    .ua-cutin-stage.is-exiting .ua-cutin-panel.cutin-single {
      animation: uaCutinSingleOut 0.24s cubic-bezier(0.55, 0.05, 0.9, 0.2) forwards;
    }
    .ua-cutin-panel.cutin-single.from-right {
      animation: uaCutinSingleRightIn 0.28s cubic-bezier(0.08, 0.96, 0.22, 1) forwards;
    }
    .ua-cutin-stage.is-exiting .ua-cutin-panel.cutin-single.from-right {
      animation: uaCutinSingleRightOut 0.24s cubic-bezier(0.55, 0.05, 0.9, 0.2) forwards;
    }
    .ua-cutin-panel.cutin-single.is-wide-scene {
      inset: 0;
      left: 0;
      right: 0;
      top: 0;
      bottom: 0;
      width: 100vw;
      height: 100vh;
      aspect-ratio: auto;
      max-height: none;
      clip-path: none;
      border: none;
      box-shadow: none;
      animation: uaCutinFullIn 0.28s cubic-bezier(0.08, 0.96, 0.22, 1) forwards;
    }
    .ua-cutin-panel.cutin-single.is-wide-scene.from-right {
      animation: uaCutinFullRightIn 0.28s cubic-bezier(0.08, 0.96, 0.22, 1) forwards;
    }
    .ua-cutin-stage.is-exiting .ua-cutin-panel.cutin-single.is-wide-scene {
      animation: uaCutinFullOut 0.24s cubic-bezier(0.55, 0.05, 0.9, 0.2) forwards;
    }
    .ua-cutin-stage.is-exiting .ua-cutin-panel.cutin-single.is-wide-scene.from-right {
      animation: uaCutinFullRightOut 0.24s cubic-bezier(0.55, 0.05, 0.9, 0.2) forwards;
    }
    .ua-cutin-panel.cutin-single.is-wide-scene::after {
      content: '';
      position: absolute;
      top: 0;
      bottom: 0;
      right: 0;
      width: 18vw;
      z-index: 9;
      pointer-events: none;
      background: linear-gradient(90deg, transparent 0%, var(--cutin-accent) 62%, #ffffff 100%);
      opacity: 0;
      animation: uaCutinSwipeFlash 0.30s ease-out forwards;
    }
    .ua-cutin-panel.cutin-single.is-wide-scene.from-right::after {
      left: 0;
      right: auto;
      background: linear-gradient(270deg, transparent 0%, var(--cutin-accent) 62%, #ffffff 100%);
    }
    .ua-cutin-panel.cutin-single.is-wide-scene .ua-cutin-frame-svg {
      display: none;
    }
    .ua-cutin-panel.cutin-top {
      top: 0;
      bottom: 0;
      height: 100vh;
      z-index: 3;
      clip-path: polygon(0 0, 74% 0, 26% 100%, 0 100%);
      animation: uaCutinTopIn 0.30s cubic-bezier(0.08, 0.96, 0.22, 1) forwards;
    }
    .ua-cutin-stage.is-exiting .ua-cutin-panel.cutin-top {
      animation: uaCutinTopOut 0.24s cubic-bezier(0.55, 0.05, 0.9, 0.2) forwards;
    }
    .ua-cutin-panel.cutin-bottom {
      top: 0;
      bottom: 0;
      height: 100vh;
      z-index: 4;
      clip-path: polygon(74% 0, 100% 0, 100% 100%, 26% 100%);
      animation: uaCutinBottomIn 0.30s cubic-bezier(0.08, 0.96, 0.22, 1) forwards;
    }
    .ua-cutin-stage.is-exiting .ua-cutin-panel.cutin-bottom {
      animation: uaCutinBottomOut 0.24s cubic-bezier(0.55, 0.05, 0.9, 0.2) forwards;
    }
    .ua-cutin-bg-layer {
      position: absolute;
      inset: 0;
      z-index: 1;
      background:
        repeating-linear-gradient(
          -14deg,
          transparent 0px,
          transparent 16px,
          rgba(255, 255, 255, 0.06) 16px,
          rgba(255, 255, 255, 0.06) 20px
        ),
        repeating-linear-gradient(
          0deg,
          transparent 0px,
          transparent 5px,
          rgba(0, 0, 0, 0.24) 5px,
          rgba(0, 0, 0, 0.24) 7px
        ),
        linear-gradient(90deg, var(--cutin-ink) 0%, var(--cutin-bg) 18%, var(--cutin-bg) 82%, var(--cutin-ink) 100%);
    }
    .ua-cutin-speedlines {
      position: absolute;
      inset: 0;
      opacity: 0.92;
      background-image:
        linear-gradient(90deg, transparent 0%, var(--cutin-accent) 22%, transparent 45%),
        linear-gradient(90deg, transparent 35%, var(--cutin-accent2) 62%, transparent 88%),
        linear-gradient(90deg, transparent 10%, #ffffff 28%, transparent 52%);
      background-size: 280px 5px, 340px 7px, 220px 3px;
      background-position: 0 22%, 60px 76%, 120px 46%;
      background-repeat: repeat-x;
      animation: uaCutinSpeedRush 0.36s steps(6, end) infinite;
    }
    .ua-cutin-art-layer {
      position: absolute;
      inset: 0;
      z-index: 2;
      overflow: hidden;
    }
    .ua-cutin-art-flip {
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .ua-cutin-panel.cutin-single.from-right .ua-cutin-art-flip,
    .ua-cutin-panel.cutin-bottom .ua-cutin-art-flip {
      transform: scaleX(-1);
    }
    .ua-cutin-scene-img {
      display: block;
      image-rendering: pixelated;
      user-select: none;
    }
    .ua-cutin-panel.is-wide-scene .ua-cutin-scene-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center 42%;
      animation: uaCutinSceneZoom 1.9s ease-out forwards;
    }
    .ua-cutin-panel.cutin-single .ua-cutin-scene-img,
    .ua-cutin-panel.cutin-single.is-wide-scene .ua-cutin-scene-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center center;
      animation: none;
    }
    .ua-cutin-panel.cutin-single.is-legacy-bust .ua-cutin-scene-img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }
    .ua-cutin-panel.cutin-top.is-wide-scene .ua-cutin-art-layer {
      left: 0;
      right: auto;
      width: 74vw;
      height: 100vh;
    }
    .ua-cutin-panel.cutin-bottom.is-wide-scene .ua-cutin-art-layer {
      left: auto;
      right: 0;
      width: 74vw;
      height: 100vh;
    }
    .ua-cutin-panel.cutin-top.is-wide-scene .ua-cutin-scene-img {
      object-position: 38% 46%;
      animation: uaCutinDualZoom 1.9s ease-out forwards;
    }
    .ua-cutin-panel.cutin-bottom.is-wide-scene .ua-cutin-scene-img {
      object-position: 30% 48%;
      animation: uaCutinDualZoom 1.9s ease-out forwards;
    }
    .ua-cutin-panel.is-legacy-bust .ua-cutin-art-layer {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      padding: 0 clamp(18px, 6vw, 96px);
    }
    .ua-cutin-panel.cutin-bottom.is-legacy-bust .ua-cutin-art-layer {
      flex-direction: row-reverse;
    }
    .ua-cutin-panel.is-legacy-bust .ua-cutin-art-flip {
      position: relative;
      width: clamp(220px, 38vw, 420px);
      height: clamp(220px, 44vh, 420px);
      flex-shrink: 0;
      animation: uaCutinPortraitSlam 0.28s cubic-bezier(0.12, 0.95, 0.2, 1) forwards;
    }
    .ua-cutin-panel.cutin-single.is-legacy-bust .ua-cutin-art-flip {
      animation: uaCutinPortraitSlideIn 0.26s cubic-bezier(0.12, 0.95, 0.2, 1) forwards;
    }
    .ua-cutin-panel.cutin-single.from-right.is-legacy-bust .ua-cutin-art-flip {
      animation: uaCutinPortraitSlideInRight 0.26s cubic-bezier(0.12, 0.95, 0.2, 1) forwards;
    }
    .ua-cutin-panel.cutin-bottom.is-legacy-bust .ua-cutin-art-flip {
      animation: uaCutinPortraitSlamRight 0.28s cubic-bezier(0.12, 0.95, 0.2, 1) forwards;
    }
    .ua-cutin-doll-backing {
      position: absolute;
      inset: 12% 8% 10% 8%;
      background: var(--cutin-accent);
      border: 4px solid var(--cutin-ink);
      clip-path: polygon(8% 0, 100% 6%, 92% 100%, 0 94%);
      transform: translate(-6px, 4px);
    }
    .ua-cutin-panel.is-legacy-bust .ua-cutin-scene-img {
      position: relative;
      z-index: 2;
      width: 100%;
      height: 100%;
      object-fit: contain;
    }
    .ua-cutin-panel.is-legacy-bust .ua-cutin-scene-img.is-dedicated-cutin {
      filter:
        drop-shadow(3px 0 0 #fffef5)
        drop-shadow(-3px 0 0 #fffef5)
        drop-shadow(0 3px 0 #fffef5)
        drop-shadow(0 -3px 0 #fffef5)
        drop-shadow(8px 8px 0 #09060d);
    }
    .ua-cutin-panel.is-legacy-bust .ua-cutin-scene-img.is-fallback-doll {
      width: 82%;
      height: 82%;
      filter: drop-shadow(5px 5px 0 #09060d);
    }
    .ua-cutin-hud-scrim {
      position: absolute;
      inset: 0;
      z-index: 3;
      pointer-events: none;
      display: none;
    }
    .ua-cutin-panel.is-wide-scene.cutin-single .ua-cutin-hud-scrim {
      display: block;
      background: linear-gradient(24deg, rgba(9, 6, 13, 0.86) 0%, rgba(9, 6, 13, 0.42) 32%, transparent 56%);
    }
    .ua-cutin-panel.is-wide-scene.cutin-single.from-right .ua-cutin-hud-scrim {
      background: linear-gradient(336deg, rgba(9, 6, 13, 0.86) 0%, rgba(9, 6, 13, 0.42) 32%, transparent 56%);
    }
    .ua-cutin-panel.is-wide-scene.cutin-top .ua-cutin-hud-scrim {
      display: block;
      background: linear-gradient(148deg, rgba(9, 6, 13, 0.84) 0%, rgba(9, 6, 13, 0.36) 28%, transparent 52%);
    }
    .ua-cutin-panel.is-wide-scene.cutin-bottom .ua-cutin-hud-scrim {
      display: block;
      background: linear-gradient(328deg, rgba(9, 6, 13, 0.86) 0%, rgba(9, 6, 13, 0.38) 28%, transparent 52%);
    }
    .ua-cutin-frame-svg {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      z-index: 4;
      pointer-events: none;
    }
    .ua-cutin-hud {
      position: absolute;
      z-index: 5;
      display: flex;
      flex-direction: column;
      gap: 4px;
      max-width: min(56vw, 560px);
      animation: uaCutinTextSlam 0.28s cubic-bezier(0.14, 0.92, 0.22, 1) forwards;
    }
    .ua-cutin-panel.cutin-single.is-wide-scene .ua-cutin-hud {
      bottom: clamp(20px, 3.6vh, 40px);
      left: clamp(22px, 3vw, 48px);
      align-items: flex-start;
    }
    .ua-cutin-panel.cutin-single.from-right.is-wide-scene .ua-cutin-hud {
      left: auto;
      right: clamp(22px, 3vw, 48px);
      align-items: flex-end;
      text-align: right;
      animation: uaCutinTextSlamRight 0.28s cubic-bezier(0.14, 0.92, 0.22, 1) forwards;
    }
    .ua-cutin-panel.cutin-single.is-legacy-bust .ua-cutin-hud {
      top: 50%;
      right: clamp(24px, 6vw, 96px);
      transform: translateY(-50%);
      align-items: flex-start;
    }
    .ua-cutin-panel.cutin-top.is-wide-scene .ua-cutin-hud {
      top: clamp(16px, 2.8vh, 32px);
      left: clamp(18px, 3vw, 44px);
      max-width: min(48vw, 480px);
      align-items: flex-start;
    }
    .ua-cutin-panel.cutin-top.is-legacy-bust .ua-cutin-hud {
      top: 44%;
      right: clamp(20px, 5vw, 80px);
      transform: translateY(-50%);
      align-items: flex-end;
      text-align: right;
    }
    .ua-cutin-panel.cutin-bottom.is-wide-scene .ua-cutin-hud {
      bottom: clamp(16px, 2.8vh, 32px);
      right: clamp(18px, 3vw, 44px);
      max-width: min(48vw, 480px);
      align-items: flex-end;
      text-align: right;
      animation: uaCutinTextSlamRight 0.28s cubic-bezier(0.14, 0.92, 0.22, 1) forwards;
    }
    .ua-cutin-panel.cutin-bottom.is-legacy-bust .ua-cutin-hud {
      top: 56%;
      left: clamp(20px, 5vw, 80px);
      transform: translateY(-50%);
      align-items: flex-start;
      text-align: left;
      animation: uaCutinTextSlamRight 0.28s cubic-bezier(0.14, 0.92, 0.22, 1) forwards;
    }
    .ua-cutin-hero-tag {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 2px 12px 2px 10px;
      background: var(--cutin-accent);
      color: var(--cutin-ink);
      border: 3px solid var(--cutin-ink);
      font-size: 12px;
      font-weight: 900;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      transform: skewX(-12deg);
      box-shadow: 4px 4px 0 var(--cutin-ink);
    }
    .ua-cutin-hero-tag > span {
      display: inline-block;
      transform: skewX(12deg);
    }
    .ua-cutin-card-title {
      font-size: clamp(24px, 3.4vw, 42px);
      font-weight: 900;
      line-height: 1.06;
      color: #fffef5;
      letter-spacing: 0.06em;
      text-shadow: 4px 4px 0 var(--cutin-ink), -2px -2px 0 var(--cutin-ink), 2px -2px 0 var(--cutin-ink), -2px 2px 0 var(--cutin-ink), 6px 6px 0 var(--cutin-accent2);
      transform: skewX(-8deg);
      white-space: nowrap;
    }
    .ua-cutin-voice-bar {
      display: inline-block;
      margin-top: 2px;
      padding: 3px 12px;
      background: var(--cutin-ink);
      border-left: 5px solid var(--cutin-accent);
      border-right: 3px solid var(--cutin-accent2);
      color: #fef08a;
      font-size: clamp(12px, 1.3vw, 15px);
      font-weight: 800;
      letter-spacing: 0.05em;
      transform: skewX(-8deg);
      box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.82);
    }
    .ua-cutin-clash-seam {
      position: absolute;
      inset: 0;
      z-index: 6;
      pointer-events: none;
    }
    .ua-cutin-clash-svg {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
    }
    .ua-cutin-clash-bolt {
      opacity: 0;
      animation: uaCutinSeamFlash 0.28s 0.11s steps(5, end) forwards;
    }
    .ua-cutin-stage.is-exiting .ua-cutin-clash-seam {
      animation: uaCutinDimOut 0.2s steps(4, end) forwards;
    }
    .ua-cutin-vs-badge {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      padding: 0;
      background: transparent;
      border: none;
      box-shadow: none;
      pointer-events: none;
      opacity: 0;
      animation: uaCutinVsPop 0.28s 0.12s cubic-bezier(0.12, 0.96, 0.2, 1) forwards;
    }
    .ua-cutin-clash-img {
      display: block;
      width: clamp(210px, 27vw, 390px);
      height: auto;
      image-rendering: pixelated;
      image-rendering: crisp-edges;
      user-select: none;
      filter: drop-shadow(5px 5px 0 rgba(9, 6, 13, 0.92));
    }
    @keyframes uaCutinDimIn {
      0% { opacity: 0; }
      100% { opacity: 1; }
    }
    @keyframes uaCutinDimOut {
      0% { opacity: 1; }
      100% { opacity: 0; }
    }
    @keyframes uaCutinSingleIn {
      0% { opacity: 0.35; transform: translateY(-50%) translateX(-106vw) skewX(-8deg); }
      74% { opacity: 1; transform: translateY(-50%) translateX(1.2vw) skewX(1deg); }
      100% { opacity: 1; transform: translateY(-50%) translateX(0) skewX(0deg); }
    }
    @keyframes uaCutinSingleOut {
      0% { opacity: 1; transform: translateY(-50%) translateX(0) skewX(0deg); }
      100% { opacity: 0; transform: translateY(-50%) translateX(106vw) skewX(8deg); }
    }
    @keyframes uaCutinSingleRightIn {
      0% { opacity: 0.35; transform: translateY(-50%) translateX(106vw) skewX(8deg); }
      74% { opacity: 1; transform: translateY(-50%) translateX(-1.2vw) skewX(-1deg); }
      100% { opacity: 1; transform: translateY(-50%) translateX(0) skewX(0deg); }
    }
    @keyframes uaCutinSingleRightOut {
      0% { opacity: 1; transform: translateY(-50%) translateX(0) skewX(0deg); }
      100% { opacity: 0; transform: translateY(-50%) translateX(-106vw) skewX(-8deg); }
    }
    @keyframes uaCutinFullIn {
      0% { opacity: 0.35; transform: translateX(-105vw) skewX(-6deg); }
      74% { opacity: 1; transform: translateX(0.8vw) skewX(0.8deg); }
      100% { opacity: 1; transform: translateX(0) skewX(0deg); }
    }
    @keyframes uaCutinFullOut {
      0% { opacity: 1; transform: translateX(0) skewX(0deg); }
      100% { opacity: 0; transform: translateX(105vw) skewX(6deg); }
    }
    @keyframes uaCutinFullRightIn {
      0% { opacity: 0.35; transform: translateX(105vw) skewX(6deg); }
      74% { opacity: 1; transform: translateX(-0.8vw) skewX(-0.8deg); }
      100% { opacity: 1; transform: translateX(0) skewX(0deg); }
    }
    @keyframes uaCutinFullRightOut {
      0% { opacity: 1; transform: translateX(0) skewX(0deg); }
      100% { opacity: 0; transform: translateX(-105vw) skewX(-6deg); }
    }
    @keyframes uaCutinSwipeFlash {
      0% { opacity: 0.92; }
      55% { opacity: 0.55; }
      100% { opacity: 0; }
    }
    @keyframes uaCutinFullZoom {
      0% { transform: scale(1.04); }
      100% { transform: scale(1); }
    }
    @keyframes uaCutinTopIn {
      0% { opacity: 0.35; transform: translate(-100vw, -22vh); }
      76% { opacity: 1; transform: translate(1vw, 0.5vh); }
      100% { opacity: 1; transform: translate(0, 0); }
    }
    @keyframes uaCutinTopOut {
      0% { opacity: 1; transform: translate(0, 0); }
      100% { opacity: 0; transform: translate(-100vw, -22vh); }
    }
    @keyframes uaCutinBottomIn {
      0% { opacity: 0.35; transform: translate(100vw, 22vh); }
      76% { opacity: 1; transform: translate(-1vw, -0.5vh); }
      100% { opacity: 1; transform: translate(0, 0); }
    }
    @keyframes uaCutinBottomOut {
      0% { opacity: 1; transform: translate(0, 0); }
      100% { opacity: 0; transform: translate(100vw, 22vh); }
    }
    @keyframes uaCutinDualZoom {
      0% { transform: scale(1.06); }
      100% { transform: scale(1.0); }
    }
    @keyframes uaCutinSceneZoom {
      0% { transform: scale(1.12); }
      100% { transform: scale(1.03); }
    }
    @keyframes uaCutinPortraitSlideIn {
      0% { opacity: 0; transform: translateX(-84px); }
      100% { opacity: 1; transform: translateX(0); }
    }
    @keyframes uaCutinPortraitSlideInRight {
      0% { opacity: 0; transform: translateX(84px); }
      100% { opacity: 1; transform: translateX(0); }
    }
    @keyframes uaCutinPortraitSlam {
      0% { opacity: 0; transform: translateX(-84px) scale(1.22); }
      100% { opacity: 1; transform: translateX(0) scale(1); }
    }
    @keyframes uaCutinPortraitSlamRight {
      0% { opacity: 0; transform: translateX(84px) scaleX(-1) scale(1.22); }
      100% { opacity: 1; transform: translateX(0) scaleX(-1) scale(1); }
    }
    @keyframes uaCutinTextSlam {
      0% { opacity: 0; transform: translateX(52px); }
      100% { opacity: 1; transform: translateX(0); }
    }
    @keyframes uaCutinTextSlamRight {
      0% { opacity: 0; transform: translateX(-52px); }
      100% { opacity: 1; transform: translateX(0); }
    }
    @keyframes uaCutinSpeedRush {
      0% { background-position: 0 22%, 60px 76%, 120px 46%; }
      100% { background-position: 280px 22%, 400px 76%, 340px 46%; }
    }
    @keyframes uaCutinSeamFlash {
      0% { opacity: 0; stroke-width: 24; }
      35% { opacity: 1; stroke-width: 14; }
      100% { opacity: 0.92; stroke-width: 6; }
    }
    @keyframes uaCutinVsPop {
      0% { opacity: 0; transform: translate(-50%, -50%) scale(1.85); }
      70% { opacity: 1; transform: translate(-50%, -50%) scale(0.95); }
      100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    }
    body.ambient-off .ua-cutin-speedlines { animation: none !important; }
    /* ==================== COMIC MECHANISM CUT-IN OVERLAY (v3_fx_cutin) ==================== */
    .ua-fx-cutin-overlay {
      position: fixed;
      inset: 0;
      z-index: 93;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(7, 9, 14, 0.72);
      pointer-events: none;
    }
    .ua-fx-cutin-overlay.is-skippable {
      pointer-events: auto;
      cursor: pointer;
    }
    .ua-fx-cutin-card {
      position: relative;
      width: min(86vw, 760px);
      aspect-ratio: 16 / 9;
      background: #0d1117;
      border: 5px solid #09060d;
      box-shadow: 0 0 0 3px #6ef0e2, 10px 10px 0 #09060d;
      overflow: hidden;
      transition: transform 0.38s cubic-bezier(0.22, 0.9, 0.25, 1), opacity 0.36s ease-in;
      animation: uaFxCardIn 0.18s cubic-bezier(0.14, 0.94, 0.24, 1) forwards;
    }
    .ua-fx-cutin-card.style-polaroid {
      padding: 12px 12px 34px 12px;
      background: #f6f1e4;
      border: 5px solid #09060d;
      box-shadow: 0 0 0 3px #2e9e96, 12px 12px 0 #09060d;
    }
    .ua-fx-cutin-card.style-p5_slash {
      clip-path: polygon(0 6%, 100% 0, 100% 94%, 0 100%);
      border: 5px solid #facc15;
    }
    .ua-fx-cutin-card.style-crt {
      border: 5px solid #22c55e;
      box-shadow: 0 0 0 4px #09060d, 10px 10px 0 #09060d;
    }
    .ua-fx-cutin-card.style-crt::after {
      content: '';
      position: absolute;
      inset: 0;
      z-index: 3;
      pointer-events: none;
      background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.22) 0 2px, transparent 2px 4px);
    }
    .ua-fx-cutin-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      image-rendering: pixelated;
      border: 2px solid #09060d;
    }
    .ua-fx-cutin-flash {
      position: absolute;
      inset: 0;
      z-index: 4;
      opacity: 0;
      pointer-events: none;
    }
    .ua-fx-cutin-flash.flash-white { background: #ffffff; animation: uaFxFlashPulse 0.18s steps(3, end) forwards; }
    .ua-fx-cutin-flash.flash-black { background: #050508; animation: uaFxFlashPulse 0.18s steps(3, end) forwards; }
    .ua-fx-cutin-flash.glitch {
      background: repeating-linear-gradient(0deg, rgba(110, 240, 226, 0.72) 0 4px, rgba(244, 63, 94, 0.68) 4px 8px, transparent 8px 14px);
      animation: uaFxFlashPulse 0.2s steps(4, end) forwards;
    }
    @keyframes uaFxWobble {
      0% { transform: rotate(0deg) translate(0, 0); }
      20% { transform: rotate(-3.5deg) translate(-8px, -3px); }
      45% { transform: rotate(3.5deg) translate(8px, 3px); }
      70% { transform: rotate(-1.8deg) translate(-4px, 0); }
      100% { transform: rotate(0deg) translate(0, 0); }
    }
    .ua-fx-cutin-card.is-shaking { animation: uaFxWobble 0.26s steps(4, end); }
    .ua-fx-cutin-caption {
      position: absolute;
      left: 14px;
      right: 14px;
      bottom: 6px;
      z-index: 5;
      text-align: center;
      font-size: 13px;
      font-weight: 900;
      letter-spacing: 0.08em;
      color: #09060d;
      text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
      pointer-events: none;
    }
    .ua-fx-cutin-card:not(.style-polaroid) .ua-fx-cutin-caption {
      bottom: 10px;
      color: #fffef5;
      background: rgba(9, 6, 13, 0.84);
      padding: 4px 10px;
      text-shadow: none;
    }
    .ua-fx-cutin-skip {
      position: absolute;
      top: 10px;
      right: 12px;
      z-index: 6;
      padding: 2px 8px;
      background: #09060d;
      color: #6ef0e2;
      border: 2px solid #6ef0e2;
      font-size: 10px;
      font-weight: 900;
      letter-spacing: 0.06em;
    }
    @keyframes uaFxCardIn {
      0% { opacity: 0; transform: scale(1.14) rotate(-2deg); }
      100% { opacity: 1; transform: scale(1) rotate(0deg); }
    }
    @keyframes uaFxFlashPulse {
      0% { opacity: 0.95; }
      65% { opacity: 0.75; }
      100% { opacity: 0; }
    }
    @media (max-width: 640px) {
      .ua-cutin-panel.cutin-single {
        height: clamp(220px, 48vh, 360px);
      }
      .ua-cutin-panel.is-legacy-bust .ua-cutin-art-layer {
        padding: 0 12px;
      }
      .ua-cutin-panel.is-legacy-bust .ua-cutin-art-flip {
        width: clamp(148px, 42vw, 220px);
        height: clamp(148px, 34vh, 220px);
      }
      .ua-cutin-hud {
        max-width: 68vw;
      }
      .ua-cutin-card-title {
        font-size: clamp(18px, 5.5vw, 28px);
      }
      .ua-cutin-hero-tag {
        font-size: 10px;
        padding: 1px 8px;
      }
      .ua-cutin-voice-bar {
        font-size: 11px;
        padding: 2px 8px;
      }
      .ua-cutin-vs-badge {
        font-size: 14px;
        padding: 3px 10px;
      }
    }
    .shake-hit { animation: shakeHit 0.34s ease; }
    @keyframes shakeHit {
      0%, 100% { transform: translate(0, 0); }
      20% { transform: translate(-6px, 4px); }
      40% { transform: translate(6px, -4px); }
      60% { transform: translate(-4px, -2px); }
      80% { transform: translate(4px, 2px); }
    }
    .thin-scroll::-webkit-scrollbar { width: 7px; height: 8px; }
    .thin-scroll::-webkit-scrollbar-thumb { background: rgba(212, 175, 115, 0.52); border-radius: 99px; }
    .thin-scroll::-webkit-scrollbar-thumb:hover { background: rgba(251, 191, 36, 0.78); }

    /* ==================== 16-BIT PIXEL TOP-CENTER TOAST BANNER ==================== */
    .ua-toast-stage {
      position: fixed;
      top: clamp(62px, 9vh, 104px);
      left: 50%;
      transform: translateX(-50%);
      z-index: 96;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      width: min(640px, calc(100vw - 24px));
      pointer-events: none;
    }
    @keyframes uaToastPopIn {
      0% { opacity: 0; transform: translateY(-14px) scale(0.92); }
      65% { opacity: 1; transform: translateY(2px) scale(1.02); }
      100% { opacity: 1; transform: translateY(0) scale(1); }
    }
    @keyframes uaToastCountdown {
      from { transform: scaleX(1); }
      to { transform: scaleX(0); }
    }
    .ua-toast-banner {
      pointer-events: auto;
      cursor: pointer;
      user-select: none;
      position: relative;
      overflow: hidden;
      display: flex;
      align-items: center;
      gap: 12px;
      min-width: min(340px, calc(100vw - 24px));
      max-width: 100%;
      padding: 12px 16px 15px 16px;
      border-radius: 4px;
      border: 3px solid var(--toast-accent, #fbbf24);
      background:
        repeating-linear-gradient(0deg, rgba(255,255,255,0.022) 0px, rgba(255,255,255,0.022) 2px, transparent 2px, transparent 4px),
        linear-gradient(180deg, rgba(28, 22, 18, 0.98) 0%, rgba(12, 10, 9, 0.99) 100%);
      box-shadow:
        0 0 0 3px #090706,
        0 0 0 5px color-mix(in srgb, var(--toast-accent, #fbbf24) 55%, #000),
        inset 0 2px 0 rgba(255,255,255,0.18),
        inset 0 -2px 0 rgba(0,0,0,0.68),
        0 18px 44px rgba(0,0,0,0.92),
        0 0 28px var(--toast-glow, rgba(251,191,36,0.36));
      animation: uaToastPopIn 200ms cubic-bezier(0.2, 0.9, 0.3, 1.15) both;
      image-rendering: pixelated;
    }
    .ua-toast-banner.is-closing {
      opacity: 0;
      transform: translateY(-8px) scale(0.96);
      transition: opacity 140ms ease, transform 140ms ease;
    }
    .ua-toast-info { --toast-accent: #fbbf24; --toast-glow: rgba(251, 191, 36, 0.38); --toast-badge-bg: rgba(245, 158, 11, 0.22); }
    .ua-toast-warn { --toast-accent: #fb923c; --toast-glow: rgba(251, 146, 60, 0.45); --toast-badge-bg: rgba(249, 115, 22, 0.26); }
    .ua-toast-err { --toast-accent: #fb7185; --toast-glow: rgba(244, 63, 94, 0.5); --toast-badge-bg: rgba(225, 29, 72, 0.28); }
    .ua-toast-ok { --toast-accent: #34d399; --toast-glow: rgba(52, 211, 153, 0.38); --toast-badge-bg: rgba(16, 185, 129, 0.24); }
    .ua-toast-icon {
      width: 34px;
      height: 34px;
      border-radius: 4px;
      border: 2px solid var(--toast-accent, #fbbf24);
      background: var(--toast-badge-bg, rgba(245, 158, 11, 0.22));
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      line-height: 1;
      flex-shrink: 0;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
    }
    .ua-toast-body {
      flex: 1;
      min-width: 0;
      font-size: clamp(14px, 1.08vw, 16px);
      font-weight: 800;
      line-height: 1.42;
      color: #fffbeb;
      text-shadow: 0 2px 0 rgba(0,0,0,0.94);
      letter-spacing: 0.015em;
      word-break: break-word;
    }
    .ua-toast-close {
      flex-shrink: 0;
      font-size: 11px;
      font-weight: 900;
      padding: 3px 7px;
      border-radius: 3px;
      border: 1px solid rgba(255,255,255,0.24);
      background: rgba(0,0,0,0.5);
      color: #e7e5e4;
      line-height: 1.1;
      transition: border-color 120ms ease, color 120ms ease;
    }
    .ua-toast-banner:hover .ua-toast-close {
      border-color: var(--toast-accent, #fbbf24);
      color: #fffbeb;
    }
    .ua-toast-bar {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      height: 3px;
      background: var(--toast-accent, #fbbf24);
      transform-origin: left center;
      animation: uaToastCountdown var(--toast-dur, 4200ms) linear forwards;
      opacity: 0.92;
    }
