@charset "UTF-8";

  /* ═══════════════════════════════════════════════════════════
     PHASE 2D — LIVE PREVIEW CAPTION OVERLAY
     ═══════════════════════════════════════════════════════════ */
  
  /* Container — positioned absolutely over the phone screen bottom */
  .kw-2d-caption-preview {
    position: absolute;
    bottom: 22%;
    left: 8%;
    right: 8%;
    z-index: 10;
    pointer-events: none;
    text-align: center;
    transition: opacity 0.2s;
  }
  
  /* The actual rendered text */
  .kw-2d-caption-text {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: 900;
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    max-width: 100%;
    word-wrap: break-word;
    transition: all 0.25s ease-out;
  }
  
  /* Style indicator label above caption */
  .kw-2d-style-label {
    display: block;
    font-size: 9px;
    font-weight: 700;
    color: rgba(255,255,255,.5);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 6px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
  }
  
  /* ═══════════════════════════════════════════════════════════
     PER-PRESET PREVIEW STYLES (large text, full animation)
     Distinct from .kw-pp-* (which is for the small card icons)
     ═══════════════════════════════════════════════════════════ */
  
  /* Default / Auto / Clean / Minimal — base white */
  .kw-2d-style-auto .kw-2d-caption-text,
  .kw-2d-style-default .kw-2d-caption-text,
  .kw-2d-style-tiktok_bold .kw-2d-caption-text {
    background: rgba(0,0,0,0.7);
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
  }
  .kw-2d-style-minimal .kw-2d-caption-text {
    background: transparent;
    color: rgba(255,255,255,0.92);
    font-weight: 600;
    font-size: 16px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.9);
  }
  
  /* Bold Yellow */
  .kw-2d-style-mrbeast .kw-2d-caption-text {
    background: #000;
    color: #FFD600;
    border: 2px solid #FFD600;
    text-shadow: 2px 2px 0 #000, -2px -2px 0 #000;
    animation: kw2d_mrbeast_bounce 0.8s ease-in-out infinite;
  }
  @keyframes kw2d_mrbeast_bounce {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50%      { transform: scale(1.04) rotate(-0.5deg); }
  }
  
  /* Boxed */
  .kw-2d-style-boxed .kw-2d-caption-text {
    background: #000;
    color: #fff;
    border: 2px solid #fff;
    box-shadow: 0 0 0 4px #000;
  }
  
  /* Bold Green */
  .kw-2d-style-hormozi .kw-2d-caption-text {
    background: #000;
    color: #22c55e;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    border-bottom: 3px solid #22c55e;
  }
  
  /* Neon */
  .kw-2d-style-neon .kw-2d-caption-text {
    background: rgba(0,0,0,0.6);
    color: #39FF14;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    text-shadow: 0 0 8px #39FF14, 0 0 16px #39FF14, 0 0 24px rgba(57,255,20,0.6);
    animation: kw2d_neon_pulse 1.4s ease-in-out infinite;
  }
  @keyframes kw2d_neon_pulse {
    0%, 100% { text-shadow: 0 0 8px #39FF14, 0 0 16px #39FF14; }
    50%      { text-shadow: 0 0 16px #39FF14, 0 0 32px #39FF14, 0 0 48px rgba(57,255,20,0.5); }
  }
  
  /* Cinema */
  .kw-2d-style-cinema .kw-2d-caption-text {
    background: rgba(20,15,8,0.85);
    color: #d4af37;
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    border-bottom: 2px solid #d4af37;
    text-shadow: 0 2px 6px rgba(0,0,0,0.9);
  }
  
  /* Ice */
  .kw-2d-style-ice .kw-2d-caption-text {
    background: rgba(10,21,37,0.7);
    color: #7dd3fc;
    text-shadow: 0 0 8px #7dd3fc, 0 0 16px rgba(125,211,252,0.5);
    animation: kw2d_ice_shimmer 2s ease-in-out infinite;
  }
  @keyframes kw2d_ice_shimmer {
    0%, 100% { text-shadow: 0 0 8px #7dd3fc, 0 0 16px rgba(125,211,252,0.4); }
    50%      { text-shadow: 0 0 12px #7dd3fc, 0 0 24px rgba(125,211,252,0.7), 0 0 36px rgba(125,211,252,0.3); }
  }
  
  /* Beast Mode */
  .kw-2d-style-beast .kw-2d-caption-text {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    color: #fff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
    box-shadow: 0 4px 16px rgba(168,85,247,0.5);
    animation: kw2d_beast_slide 2.5s ease-in-out infinite;
  }
  @keyframes kw2d_beast_slide {
    0%, 100% { background: linear-gradient(135deg, #a855f7, #ec4899); }
    50%      { background: linear-gradient(135deg, #ec4899, #a855f7); }
  }
  
  /* Fire */
  .kw-2d-style-fire .kw-2d-caption-text {
    background: linear-gradient(135deg, #ff6b35, #dc2626);
    color: #fff;
    text-shadow: 0 0 8px rgba(255,107,53,0.6), 0 2px 4px rgba(0,0,0,0.5);
    box-shadow: 0 4px 20px rgba(255,107,53,0.6);
    animation: kw2d_fire_flicker 0.7s ease-in-out infinite;
  }
  @keyframes kw2d_fire_flicker {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 20px rgba(255,107,53,0.6); }
    50%      { transform: scale(1.02); box-shadow: 0 6px 28px rgba(255,107,53,0.8); }
  }
  
  /* Dream */
  .kw-2d-style-dream .kw-2d-caption-text {
    background: linear-gradient(135deg, #f9a8d4, #c4b5fd);
    color: #fff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.4);
    box-shadow: 0 4px 16px rgba(249,168,212,0.5);
  }
  
  /* Outline */
  .kw-2d-style-outline .kw-2d-caption-text {
    background: transparent;
    color: transparent;
    -webkit-text-stroke: 2px #fff;
    font-weight: 900;
    text-shadow: 0 2px 8px rgba(0,0,0,0.9);
  }
  
  /* Retro */
  .kw-2d-style-retro .kw-2d-caption-text {
    background: #fb923c;
    color: #0a0a14;
    transform: rotate(-3deg);
    box-shadow: 4px 4px 0 #000;
    border: 2px solid #000;
  }
  
  /* Karaoke */
  .kw-2d-style-karaoke .kw-2d-caption-text {
    position: relative;
    background: rgba(0,0,0,0.7);
    color: #fff;
    overflow: hidden;
  }
  .kw-2d-style-karaoke .kw-2d-caption-text::after {
    content: attr(data-text);
    position: absolute;
    top: 8px; left: 14px;
    color: #fde047;
    overflow: hidden;
    white-space: nowrap;
    animation: kw2d_karaoke_wipe 2.4s steps(20) infinite;
  }
  @keyframes kw2d_karaoke_wipe {
    0%   { width: 0; }
    50%  { width: 100%; }
    100% { width: 0; }
  }
  
  /* Persian (RTL gold serif) */
  .kw-2d-style-persian .kw-2d-caption-text {
    background: rgba(0,0,0,0.7);
    color: #d4af37;
    font-family: Tahoma, sans-serif;
    direction: ltr;
    text-shadow: 0 0 6px rgba(212,175,55,0.5);
    border: 1px solid #d4af37;
  }
  
  /* Glitch */
  .kw-2d-style-glitch .kw-2d-caption-text {
    background: rgba(0,0,0,0.7);
    color: #0ff;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    text-shadow: 2px 0 #f0f, -2px 0 #0ff, 0 2px 4px #000;
    animation: kw2d_glitch_jitter 0.4s steps(4) infinite;
  }
  @keyframes kw2d_glitch_jitter {
    0%, 100% { text-shadow: 2px 0 #f0f, -2px 0 #0ff; transform: translate(0,0); }
    25%      { text-shadow: -3px 0 #f0f, 3px 0 #0ff; transform: translate(1px,0); }
    50%      { text-shadow: 2px 1px #f0f, -2px -1px #0ff; transform: translate(-1px,0); }
    75%      { text-shadow: -2px 0 #f0f, 2px 0 #0ff; transform: translate(0,1px); }
  }
  
  /* Rainbow */
  .kw-2d-style-rainbow .kw-2d-caption-text {
    background: linear-gradient(90deg, #ff0000, #ff8800, #ffff00, #00ff00, #0099ff, #9900ff, #ff0000);
    background-size: 200% 100%;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.7);
    animation: kw2d_rainbow_slide 3s linear infinite;
  }
  @keyframes kw2d_rainbow_slide {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
  }
  
  /* Typewriter */
  .kw-2d-style-typewriter .kw-2d-caption-text {
    background: rgba(20,18,12,0.85);
    color: #E0D4B8;
    font-family: 'Courier New', monospace;
    border-right: 3px solid #E0D4B8;
    animation: kw2d_typewriter_blink 0.7s step-end infinite;
  }
  @keyframes kw2d_typewriter_blink {
    0%, 49%   { border-right-color: #E0D4B8; }
    50%, 100% { border-right-color: transparent; }
  }
  
  /* Matrix */
  .kw-2d-style-matrix .kw-2d-caption-text {
    background: rgba(0,8,0,0.85);
    color: #00FF41;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 6px #00FF41, 0 0 12px rgba(0,255,65,0.5);
    border: 1px solid rgba(0,255,65,0.3);
    animation: kw2d_matrix_flicker 0.5s steps(3) infinite;
  }
  @keyframes kw2d_matrix_flicker {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.85; text-shadow: 0 0 10px #00FF41, 0 0 20px rgba(0,255,65,0.7); }
  }
  
  /* Comic */
  .kw-2d-style-comic .kw-2d-caption-text {
    background: #fde047;
    color: #0a0a14;
    transform: rotate(-2deg);
    border: 3px solid #000;
    box-shadow: 5px 5px 0 #000;
    animation: kw2d_comic_bounce 1.4s ease-in-out infinite;
  }
  @keyframes kw2d_comic_bounce {
    0%, 100% { transform: rotate(-2deg) translateY(0); }
    50%      { transform: rotate(2deg) translateY(-3px); }
  }
  
  /* News */
  .kw-2d-style-news .kw-2d-caption-text {
    background: #dc2626;
    color: #fff;
    font-weight: 900;
    border-left: 4px solid #fff;
    border-right: 4px solid #fff;
    letter-spacing: 0.05em;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  }
  
  /* Luxury */
  .kw-2d-style-luxury .kw-2d-caption-text {
    background: #000;
    color: #d4af37;
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    border: 1px solid #d4af37;
    box-shadow: 0 0 16px rgba(212,175,55,0.4);
    text-shadow: 0 0 8px rgba(212,175,55,0.5);
    animation: kw2d_luxury_shimmer 2.4s ease-in-out infinite;
  }
  @keyframes kw2d_luxury_shimmer {
    0%, 100% { box-shadow: 0 0 16px rgba(212,175,55,0.4); border-color: #d4af37; }
    50%      { box-shadow: 0 0 24px rgba(212,175,55,0.7); border-color: #f5d76e; }
  }
  
  /* No captions — just a hint */
  .kw-2d-style-none .kw-2d-caption-text {
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.4);
    border: 1px dashed rgba(255,255,255,0.2);
    font-style: italic;
    font-weight: 400;
    text-transform: none;
  }
