/* ============================================
   🌟 ULTRA-LIGHTWEIGHT CATEGORY SECTION
   Minimal CSS - Maximum Performance
   ============================================ */

/* ============================================
   CSS VARIABLES
   ============================================ */
/* ============================================
   CATEGORY SECTION — follows product card tokens
   ============================================ */

/* Override the hardcoded :root vars */
.categories-section {
  --section-bg:   var(--bg);
  --card-bg:      var(--card);
  --card-border:  var(--line-md);
  --text-color:   var(--text);
  --accent:       var(--gold);
}

body.dark-mode .categories-section {
  --section-bg:   var(--bg);
  --card-bg:      var(--card);
  --card-border:  var(--line-md);
  --text-color:   var(--text);
  --accent:       var(--gold);
}


/* ── Section title ── */
.section-title {
  font-family: var(--font-display) !important;
  color: var(--text) !important;
}

.section-title::after {
  background: linear-gradient(90deg, var(--gold), var(--gold-2)) !important;
}

/* ── Card hover ── */
.category-card:hover {
  box-shadow: var(--s-hover) !important;
  border-color: var(--gold-glow) !important;
}

/* ── Category title hover ── */
.category-card:hover .category-title {
  color: var(--gold-deep) !important;
}

body.dark-mode .category-card:hover .category-title {
  color: var(--gold-2) !important;
}

/* ── View All button ── */
.view-all-btn {
  background-image: linear-gradient(
    to right, var(--gold-2) 50%, var(--gold) 50%) !important;
  background-size: 200% 100% !important;
  background-position: right center !important;
  color: #fff !important;
  font-family: var(--font-ui) !important;
  transition: background-position 0.32s cubic-bezier(0.4,0,0.2,1) !important;
}

.view-all-btn:hover {
  background-position: left center !important;
  opacity: 1 !important;
  box-shadow: 0 4px 14px var(--gold-glow) !important;
}

/* ── Category footer ── */
.category-footer {
  border-top: 1px solid var(--line-md) !important;
  font-family: var(--font-ui) !important;
  background: var(--card) !important;
}

/* ── Category title ── */
.category-title {
  font-family: var(--font-ui) !important;
  color: var(--text) !important;
}

/* ── Section background ── */
.categories-section {
  background: var(--bg) !important;
}


/* ============================================
   MAIN SECTION
   ============================================ */
.categories-section {
    padding: 60px 20px 40px 20px;
    background: var(--section-bg);
    max-width: 1400px;
    margin: 0 auto;
}

/* ============================================
   SECTION TITLE
   ============================================ */
.section-title {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 900;
    color: var(--text-color);
    margin-bottom: 50px;
    text-align: center;
    letter-spacing: -1px;
}

/* ============================================
   CATEGORIES GRID - 3 COLUMNS
   ============================================ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* ============================================
   CATEGORY CARD - MINIMAL STYLING
   ============================================ */
.category-card {
    background: var(--card-bg);
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--card-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Lightweight hover - slight lift + shadow */


.category-card:active {
    transform: translateY(-2px);
}

/* ============================================
   PRODUCT IMAGE - SINGLE IMAGE
   ============================================ */
.category-products {
    display: block;
    padding: 0;
    border-radius: 20px 20px 0 0;
    aspect-ratio: 1;
    overflow: hidden;
}

.product-item {
    display: none !important;
}

.product-item:nth-child(2) {
    display: flex !important;
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
}

.product-item:nth-child(2) img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s ease;
}

/* Subtle image fade on hover */
.category-card:hover .product-item:nth-child(2) img {
    opacity: 0.9;
}

/* ============================================
   CARD FOOTER - SIMPLE
   ============================================ */
.category-footer {
    padding: 20px 24px;
    background: var(--card-bg);
    border-radius: 0 0 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--card-border);
}

/* ============================================
   CATEGORY TITLE - PLAIN TEXT
   ============================================ */
.category-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.5px;
    transition: color 0.2s ease;
}

/* Title color change on hover */
.category-card:hover .category-title {
    color: var(--accent);
}

/* ============================================
   VIEW ALL BUTTON - SIMPLE
   ============================================ */
.view-all-btn {
    padding: 10px 20px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: opacity 0.2s ease;
}

.view-all-btn:hover {
    opacity: 0.9;
}

.view-all-btn:active {
    opacity: 0.7;
}

/* ============================================
   📱 RESPONSIVE BREAKPOINTS
   ============================================ */

/* TABLET: 601px - 900px */
@media (min-width: 601px) and (max-width: 900px) {
    .categories-section {
        padding: 50px 18px 35px 18px;
    }
    
    .section-title {
        font-size: 38px;
        margin-bottom: 40px;
    }
    
    .categories-grid {
        gap: 20px;
    }
    
    .category-footer {
        padding: 16px 18px;
    }
    
    .category-title {
        font-size: 16px;
    }
    
    .view-all-btn {
        padding: 8px 16px;
        font-size: 11px;
    }
}

/* MOBILE: 481px - 600px */
@media (min-width: 481px) and (max-width: 600px) {
    .categories-section {
        padding: 45px 15px 30px 15px;
    }
    
    .section-title {
        font-size: 34px;
        margin-bottom: 35px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .category-card {
        border-radius: 18px;
    }
    
    .category-products {
        border-radius: 18px 18px 0 0;
    }
    
    .category-footer {
        padding: 14px 14px;
        border-radius: 0 0 18px 18px;
    }
    
    .category-title {
        font-size: 14px;
    }
    
    .view-all-btn {
        padding: 7px 14px;
        font-size: 10px;
        gap: 5px;
    }
    
    .view-all-btn svg {
        width: 13px;
        height: 13px;
    }
}

/* MOBILE: Below 480px */
@media (max-width: 480px) {
    .categories-section {
        padding: 25px 12px 20px 12px;
    }
    
    .category-desc {
  display: none !important;
} 
    .section-title {
        font-size: 32px;
        margin-bottom: 18px;
        letter-spacing: -1.5px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .category-card {
        border-radius: 20px;
    }
    
    .category-products {
        border-radius: 20px 20px 0 0;
        aspect-ratio: 0.65;
        min-height: 140px;
    }
    
    /* Show FIRST image on mobile */
    .product-item {
        display: none !important;
    }
    
    .product-item:first-child {
        display: flex !important;
        width: 100%;
        height: 100%;
    }
    
    .product-item:first-child img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .category-footer {
        padding: 16px 12px;
        flex-direction: column;
        gap: 0;
        border-radius: 0 0 20px 20px;
    }
    
    .view-all-btn {
        display: none !important;
    }
    
    .category-title {
        font-size: 16px;
        font-weight: 900;
        text-align: center;
        width: 100%;
        letter-spacing: -0.4px;
        line-height: 1.3;
    }
    
    /* Mobile tap feedback */
    .category-card:active {
        transform: scale(0.98);
        opacity: 0.9;
    }
}

/* SMALLER MOBILE: 361px - 400px */
@media (max-width: 400px) {
    .categories-section {
        padding: 22px 10px 18px 10px;
    }
    
    .section-title {
        font-size: 30px;
        margin-bottom: 16px;
    }
    
    .categories-grid {
        gap: 10px;
    }
    
    .category-card {
        border-radius: 18px;
    }
    
    .category-products {
        border-radius: 18px 18px 0 0;
        min-height: 120px;
    }
    
    .category-footer {
        padding: 14px 10px;
        border-radius: 0 0 18px 18px;
    }
    
    .category-title {
        font-size: 14px;
        font-weight: 800;
    }
}

/* ULTRA TINY: Below 360px */
@media (max-width: 360px) {
    .categories-section {
        padding: 20px 8px 16px 8px;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 14px;
    }
    
    .categories-grid {
        gap: 9px;
    }
    
    .category-card {
        border-radius: 16px;
    }
    
    .category-products {
        border-radius: 16px 16px 0 0;
        min-height: 110px;
    }
    
    .category-footer {
        padding: 13px 8px;
        border-radius: 0 0 16px 16px;
    }
    
    .category-title {
        font-size: 13px;
    }
}

/* ============================================
   💻 LAPTOP / DESKTOP OPTIMIZATION
   ============================================ */
@media (min-width: 1024px) {
    .categories-section {
        max-width: 1200px;
        padding: 40px 20px 30px;
    }

    .categories-section .section-title {
        font-size: clamp(34px, 4.5vw, 50px) !important;
        margin-bottom: 40px;
        letter-spacing: -2px;
    }

    .categories-grid {
        gap: 20px;
    }

    .category-card {
        border-radius: 20px;
    }

    .category-products {
        aspect-ratio: 0.85;
    }

    .category-footer {
        padding: 14px 18px;
    }

    .category-title {
        font-size: 16px;
    }

    .view-all-btn {
        padding: 8px 16px;
        font-size: 11px;
        letter-spacing: 0.8px;
    }
}
/* ── Palette fix — replace red with navy×yellow ── */
:root {
    --section-bg: #f5f5f5;
    --card-bg: #ffffff;
    --card-border: #e8e8e8;
    --text-color: #1a1a1a;
    --accent: #141E30;        /* navy instead of red */
    --accent-hover: #243B55;
    --btn-color: #F8D800;     /* yellow for button */
}


/* ── Section title — match DM Sans style ── */
.section-title {
    font-family: 'DM Sans', system-ui, sans-serif !important;
    font-weight: 900 !important;
    color: var(--text-color) !important;
    position: relative !important;
    display: inline-block !important;
    width: 100% !important;
    text-align: center !important;
}

/* Gold underline accent under title */


body.dark-mode .section-title::after {
    background: linear-gradient(90deg, #F8D800, #FFB300) !important;
}

/* ── Card hover — navy instead of lift only ── */
.category-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 24px rgba(20,30,48,0.12) !important;
    border-color: rgba(20,30,48,0.20) !important;
}

body.dark-mode .category-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.35) !important;
    border-color: rgba(248,216,0,0.20) !important;
}

/* ── Category title hover — navy instead of red ── */
.category-card:hover .category-title {
    color: #141E30 !important;
}

body.dark-mode .category-card:hover .category-title {
    color: #F8D800 !important;
}

/* ── View All button — navy bg, yellow text ── */

.view-all-btn:hover {
    background-position: left center !important;
    opacity: 1 !important;
    box-shadow: 0 4px 14px rgba(20,30,48,0.25) !important;
}

body.dark-mode .view-all-btn {
    background: linear-gradient(to right, #F8D800 50%, #FFB300 50%) !important;
    background-size: 200% 100% !important;
    background-position: right center !important;
    color: #141E30 !important;
}

body.dark-mode .view-all-btn:hover {
    box-shadow: 0 4px 14px rgba(248,216,0,0.25) !important;
}

/* ── Category footer border ── */
.category-footer {
    border-top: 1px solid var(--card-border) !important;
    font-family: 'DM Sans', system-ui, sans-serif !important;
}

/* ── Category title font ── */
.category-title {
    font-family: 'DM Sans', system-ui, sans-serif !important;
}
/* ── Editorial header — compact ── */
.categories-header {
  text-align: center;
  margin-bottom: 32px;
  padding: 0 16px;
}

.section-title {
  font-family: var(--font-display) !important;
  font-size: clamp(22px, 5vw, 48px) !important;
  font-weight: 900 !important;
  color: var(--text) !important;
  letter-spacing: -1px !important;
  line-height: 1.15 !important;
  margin-bottom: 8px !important;
}

.section-title::after {
  margin-top: 8px !important;
}

.section-subtitle {
  font-family: var(--font-ui);
  font-size: clamp(13px, 2vw, 16px);
  font-weight: 400;
  color: var(--text-2);
  line-height: 1.5;
  margin-top: 6px;
  letter-spacing: 0.1px;
}

/* Highlight certain words in subtitle */
.section-subtitle .highlight-gold {
  color: var(--gold);
  font-weight: 600;
}

.section-subtitle .highlight-warm {
  color: var(--discount); /* warm red — draws eye */
  font-weight: 600;
}

/* ── Card footer ── */
.category-footer {
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 4px !important;
  padding: 14px 16px 16px !important;
}

/* ── Category title — vibrant on hover ── */
.category-title {
  font-family: var(--font-display) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--text) !important;
  font-style: italic !important;
  line-height: 1.2 !important;
  transition: color var(--ease) !important;
}

.category-card:hover .category-title {
  color: var(--gold-deep) !important;
}

body.dark-mode .category-card:hover .category-title {
  color: var(--gold-2) !important;
}

/* ── Category desc — muted but readable ── */
.category-desc {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-2);
  line-height: 1.45;
  margin: 0;
}

/* Highlight key words in desc */
.category-desc .pop {
  color: var(--gold);
  font-weight: 600;
  font-style: normal;
}

/* ── Hide button ── */
.view-all-btn {
  display: none !important;
}

/* ── Mobile compact ── */
@media (max-width: 480px) {
  .categories-header {
    margin-bottom: 20px;
    padding: 0 12px;
  }

  .section-title {
    font-size: clamp(20px, 6vw, 28px) !important;
    margin-bottom: 4px !important;
  }

  .section-subtitle {
    font-size: 12px;
    margin-top: 4px;
  }

  .category-footer {
    padding: 10px 10px 12px !important;
    gap: 3px !important;
  }

  .category-title {
    font-size: 13px !important;
  }

  .category-desc {
    font-size: 11px !important;
  }
}

/* ── Below 340px — hide subtitle ── */
@media (max-width: 340px) {
  .section-subtitle {
    display: none !important;
  }

  .categories-header {
    margin-bottom: 16px !important;
  }

  .category-desc {
    display: none !important;
  }

  .category-footer {
    padding: 8px 8px 10px !important;
  }

  .category-title {
    font-size: 12px !important;
    text-align: center !important;
    width: 100% !important;
  }
}

.categories-section {
  position: relative; /* needed for canvas positioning */
}
/* Video stays behind footer */
[data-inject="categoryVideo"] {
  z-index: 1;
}

/* Footer sits above video */
.category-footer {
  position: relative;
  z-index: 2;
}

#snake-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* cards stay clickable */
  z-index: 10;
}
.categories-section { position: relative; }
#chubby-canvas {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 10;
}
.categories-section { position: relative; }
#ladoo-canvas {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 20;
}

#butterfly-canvas {
          position: absolute; top: 0; left: 0;
          width: 100%; height: 100%;
          pointer-events: none; z-index: 20;
        }

        .bloom-veil {
          position: absolute; inset: 0;
          background: rgba(0,0,0,0.65);
          z-index: 3;
          transition: none;
          pointer-events: none;
        }
        .bloom-veil.open {
          animation: veilLift 1.2s cubic-bezier(0.16,1,0.3,1) forwards;
        }
        .bloom-veil.open::after {
          content: '';
          position: absolute; inset: 0;
          background: radial-gradient(circle at 50% 40%, rgba(255,220,100,0.35), transparent 70%);
          animation: shimmerBurst 0.8s ease-out forwards;
        }
        @keyframes veilLift {
          0%   { opacity: 1; transform: scale(1); }
          40%  { opacity: 0.6; transform: scale(1.04); }
          100% { opacity: 0; transform: scale(1.08); pointer-events: none; }
        }
        @keyframes shimmerBurst {
          0%   { opacity: 0; transform: scale(0.5); }
          50%  { opacity: 1; }
          100% { opacity: 0; transform: scale(1.5); }
        }

        #butterfly-canvas.interactive { pointer-events: none; }

         .categories-section { position: relative; }

      #magician-canvas {
        position: absolute; top: 0; left: 0;
        width: 100%; height: 100%;
        pointer-events: none; z-index: 20;
      }

      .magic-world {
        position: absolute; inset: 0; z-index: 5;
        opacity: 0; pointer-events: none;
        overflow: hidden; border-radius: inherit;
        transition: opacity 0.3s ease;
      }
      .magic-world.show { opacity: 1; }

      .world-bg {
        position: absolute; inset: 0;
        display: flex; flex-direction: column;
        align-items: center; justify-content: center;
        gap: 4px;
      }
      .world-canvas {
        position: absolute; top: 0; left: 0;
        width: 100%; height: 100%;
        pointer-events: none;
      }
      .world-icon {
        font-size: clamp(28px, 6vw, 42px); position: relative; z-index: 2;
        opacity: 0; transform: scale(0) rotate(-20deg);
        transition: none;
      }
      .world-icon.pop {
        animation: iconPop 0.4s cubic-bezier(0.34,1.56,0.64,1) forwards;
      }
      .world-name {
        font-size: clamp(11px, 2.5vw, 16px); font-weight: 900;
        letter-spacing: 0.1em; text-transform: uppercase;
        position: relative; z-index: 2;
        opacity: 0; transform: translateY(10px);
        transition: none;
        text-shadow: 0 0 20px currentColor, 0 0 40px currentColor;
      }
      .world-name.show {
        animation: nameSlide 0.5s ease-out forwards;
      }
      @keyframes iconPop {
        0%  { opacity: 0; transform: scale(0) rotate(-20deg); }
        100%{ opacity: 1; transform: scale(1) rotate(0deg); }
      }
      @keyframes nameSlide {
        0%  { opacity: 0; transform: translateY(10px) scale(0.8); }
        100%{ opacity: 1; transform: translateY(0) scale(1); }
      }

 /* ══════════════════════════════════════════
   DOOR TOKENS
   Uncomment one theme block per client.
   Default = Royal Indigo (purple)
══════════════════════════════════════════ */

/* ── Royal Indigo (default) ── */
/* .categories-section {
  --door-l:          linear-gradient(to right, #2a0060, #3300aa, #4a18c0);
  --door-r:          linear-gradient(to left,  #2a0060, #3300aa, #4a18c0);
  --door-panel:      rgba(200,150,255,0.30);
  --door-inset-a:    rgba(0,0,0,0.15);
  --door-inset-b:    rgba(200,150,255,0.07);
  --door-knob:       radial-gradient(circle at 35% 35%, #ffe8a0, #d4900a);
  --door-knob-glow:  rgba(255,170,0,0.53);
  --door-star-color: rgba(255,220,100,0.65);
}
body.dark-mode .categories-section {
  --door-l:          linear-gradient(to right, #1a003a, #4400bb, #6622dd);
  --door-r:          linear-gradient(to left,  #1a003a, #4400bb, #6622dd);
  --door-panel:      rgba(180,130,255,0.25);
  --door-inset-a:    rgba(0,0,0,0.20);
  --door-inset-b:    rgba(180,130,255,0.09);
  --door-knob:       radial-gradient(circle at 35% 35%, #ffe8a0, #d4900a);
  --door-knob-glow:  rgba(255,170,0,0.53);
  --door-star-color: rgba(255,220,100,0.55);
} */


.categories-section {
  --door-l:          linear-gradient(to right, #060d1f, #0d1e40, #1e3a70);
  --door-r:          linear-gradient(to left,  #060d1f, #0d1e40, #1e3a70);
  --door-panel:      rgba(180,150,80,0.35);
  --door-inset-a:    rgba(0,0,0,0.18);
  --door-inset-b:    rgba(180,150,80,0.08);
  --door-knob:       radial-gradient(circle at 35% 35%, #ffe8a0, #c89030);
  --door-knob-glow:  rgba(212,168,64,0.53);
  --door-star-color: rgba(255,220,100,0.65);
}
body.dark-mode .categories-section {
  --door-l:          linear-gradient(to right, #030810, #06122a, #0d2050);
  --door-r:          linear-gradient(to left,  #030810, #06122a, #0d2050);
  --door-panel:      rgba(160,130,60,0.30);
  --door-inset-a:    rgba(0,0,0,0.25);
  --door-inset-b:    rgba(160,130,60,0.08);
  --door-knob:       radial-gradient(circle at 35% 35%, #ffe8a0, #c89030);
  --door-knob-glow:  rgba(212,168,64,0.53);
  --door-star-color: rgba(255,210,80,0.55);
}


/* ── Forest Green ──
.categories-section {
  --door-l:          linear-gradient(to right, #0a1f0a, #1a3a1a, #2e622e);
  --door-r:          linear-gradient(to left,  #0a1f0a, #1a3a1a, #2e622e);
  --door-panel:      rgba(100,200,80,0.30);
  --door-inset-a:    rgba(0,0,0,0.15);
  --door-inset-b:    rgba(100,200,80,0.07);
  --door-knob:       radial-gradient(circle at 35% 35%, #c8f0a0, #5a9020);
  --door-knob-glow:  rgba(138,176,80,0.53);
  --door-star-color: rgba(180,255,120,0.65);
}
body.dark-mode .categories-section {
  --door-l:          linear-gradient(to right, #050f05, #0f2010, #1a3a1a);
  --door-r:          linear-gradient(to left,  #050f05, #0f2010, #1a3a1a);
  --door-panel:      rgba(80,180,60,0.25);
  --door-inset-a:    rgba(0,0,0,0.22);
  --door-inset-b:    rgba(80,180,60,0.08);
  --door-knob:       radial-gradient(circle at 35% 35%, #c8f0a0, #5a9020);
  --door-knob-glow:  rgba(138,176,80,0.45);
  --door-star-color: rgba(160,255,100,0.55);
}
── */

/* ── Door rules — do not edit ── */
.door-l {
  position: absolute; top: 0; height: 100%; width: 50%;
  transform-style: preserve-3d; backface-visibility: hidden;
  z-index: 6; left: 0; transform-origin: left center;
  background: var(--door-l);
}
.door-r {
  position: absolute; top: 0; height: 100%; width: 50%;
  transform-style: preserve-3d; backface-visibility: hidden;
  z-index: 6; left: 50%; transform-origin: right center;
  background: var(--door-r);
}
.door-l, .door-r { display: none; }

.door-l::before, .door-r::before {
  content: ''; position: absolute; inset: 8px 10px;
  border: 1px solid var(--door-panel); border-radius: 4px;
  box-shadow: inset 0 0 0 6px var(--door-inset-a), inset 0 0 0 7px var(--door-inset-b);
}

.door-l::after {
  content: ''; position: absolute; right: 9px; top: 50%;
  transform: translateY(-50%);
  width: clamp(11px, 1.1vw, 18px);
  height: clamp(11px, 1.1vw, 18px);
  border-radius: 50%;
  background: var(--door-knob);
  box-shadow: 0 0 6px var(--door-knob-glow), 0 1px 3px rgba(0,0,0,0.5), inset 0 1px 1px rgba(255,255,200,0.5);
}
.door-r::after {
  content: ''; position: absolute; left: 9px; top: 50%;
  transform: translateY(-50%);
  width: clamp(11px, 1.1vw, 18px);
  height: clamp(11px, 1.1vw, 18px);
  border-radius: 50%;
  background: var(--door-knob);
  box-shadow: 0 0 6px var(--door-knob-glow), 0 1px 3px rgba(0,0,0,0.5), inset 0 1px 1px rgba(255,255,200,0.5);
}

.door-star { position: absolute; color: var(--door-star-color); font-size: 11px; }

/* ── Dino canvas ── */
#dino-canvas {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 20;
}

/* ── Per-card fire canvas ── */
.card-fire-canvas {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 5;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

.card-fire-canvas.active { opacity: 1; }

/* ── Dino data — invisible data holder ── */
.dino-data { display: none; }

/* ── Card ember glow ── */
.category-card.dino-ember {
  box-shadow: 0 0 0 2px #ff4400,
              0 0 25px #ff220066,
              0 0 50px #ff110033 !important;
  transition: box-shadow 0.4s ease !important;
}

.category-card.dino-cooling {
  box-shadow: 0 0 0 1px #441100,
              0 0 10px #22080011 !important;
  transition: box-shadow 1.8s ease-out !important;
}

/* ── Screen flash overlay ── */
#dino-flash {
  position: fixed; inset: 0;
  background: rgba(255, 80, 0, 0);
  pointer-events: none; z-index: 9999;
  transition: background 0.08s ease;
}

#dino-flash.on {
  background: rgba(255, 80, 0, 0.18);
}
#dino-canvas {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 20;
}

#dino-flash {
  position: absolute; inset: 0;
  background: rgba(255,100,0,0);
  pointer-events: none;
  z-index: 19;
  transition: background 0.3s ease-out;
}
/* ── Chef canvas ── */
#chef-canvas {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 20;
}

/* ── Per-card gold canvas ── */
.card-gold-canvas {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 5;
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: inherit;
}
.card-gold-canvas.active { opacity: 1; }

/* ── Chef data holder ── */
.chef-data { display: none; }

/* ── Card gold glow ── */
.category-card.chef-glow {
  box-shadow: 0 0 0 2px #E8A020,
              0 0 30px rgba(232,160,32,0.5),
              0 0 60px rgba(232,160,32,0.25) !important;
  transition: box-shadow 0.4s ease !important;
}
.category-card.chef-cooling {
  box-shadow: 0 0 0 1px rgba(232,160,32,0.3),
              0 0 10px rgba(232,160,32,0.1) !important;
  transition: box-shadow 2s ease-out !important;
}

/* ── Section flash ── */
#chef-flash {
  position: absolute; inset: 0;
  background: rgba(232,160,32,0);
  pointer-events: none; z-index: 19;
  transition: background 0.4s ease-out;
}
.category-card {
    background: var(--card-bg);
    border-radius: 24px;
    cursor: pointer;
    border: 1px solid var(--card-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;        /* ← ADD THIS */
    perspective: 500px;        /* ← ADD THIS */
}
.category-card {
    /* replace overflow:hidden with this */
    clip-path: inset(0 round 24px);
}


#dino-canvas {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 20;
}
.card-fire-canvas {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 5;
  opacity: 0; transition: opacity 0.3s ease;
  border-radius: inherit;
}
.card-fire-canvas.active { opacity: 1; }
#dino-flash {
  position: absolute; inset: 0;
  background: rgba(255,100,0,0);
  pointer-events: none; z-index: 19;
  transition: background 0.3s ease-out;
}
.category-card.dino-ember {
  box-shadow: 0 0 0 2px #ff4400, 0 0 25px #ff220066, 0 0 50px #ff110033 !important;
  transition: box-shadow 0.4s ease !important;
}
.category-card.dino-cooling {
  box-shadow: 0 0 0 1px #441100, 0 0 10px #22080011 !important;
  transition: box-shadow 1.8s ease-out !important;
}
