/* Store atmosphere (tonight pack Batch 10). Brand Guide V3.1 fonts and colors from woocommerce.css. */

/* ============================================================
   1. TAKEOVER MODE
   ============================================================ */
.kfr-takeover-tint {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.45s ease;
  background: none;
}

body[data-kfr-takeover] .kfr-takeover-tint {
  opacity: 1;
}

.kfr-shop-hero,
.kfr-shop-title,
.kfr-shop-tagline,
.kfr-shop-eyebrow {
  transition: color 0.45s ease, text-shadow 0.45s ease, background 0.45s ease, border-color 0.45s ease;
}

/* Sugar Cones: Adrip, yellow with a teal edge */
body[data-kfr-takeover="sugar-cones-collection"] .kfr-takeover-tint {
  background: radial-gradient(ellipse 120% 90% at 50% 50%, transparent 62%, rgba(6, 226, 223, 0.10) 82%, rgba(234, 255, 0, 0.10) 100%);
}

body[data-kfr-takeover="sugar-cones-collection"] .kfr-shop-hero {
  border-block-end-color: rgba(6, 226, 223, 0.45);
  background: radial-gradient(ellipse 65% 80% at 50% 0%, rgba(6, 226, 223, 0.16) 0%, rgba(10, 10, 10, 0) 75%);
}

body[data-kfr-takeover="sugar-cones-collection"] .kfr-shop-title {
  font-family: var(--font-sugarcones);
  letter-spacing: 0.02em;
  color: var(--sc-yellow) !important;
  text-shadow: 3px 3px 0 var(--sc-teal), 0 0 26px rgba(234, 255, 0, 0.3);
}

body[data-kfr-takeover="sugar-cones-collection"] .kfr-shop-tagline {
  color: var(--sc-teal) !important;
  text-shadow: 0 0 14px rgba(6, 226, 223, 0.4);
}

body[data-kfr-takeover="sugar-cones-collection"] .kfr-pill.is-active {
  background: var(--sc-yellow);
  border-color: var(--sc-yellow);
  box-shadow: 0 0 18px rgba(234, 255, 0, 0.45);
}

/* enemyX: DK Carbonara, cold crime-file red */
body[data-kfr-takeover="enemyx-collection"] .kfr-takeover-tint {
  background:
    radial-gradient(ellipse 120% 90% at 50% 50%, transparent 60%, rgba(255, 0, 0, 0.12) 100%),
    linear-gradient(180deg, rgba(120, 160, 190, 0.04), rgba(120, 160, 190, 0.04));
}

body[data-kfr-takeover="enemyx-collection"] .kfr-shop-title {
  font-family: var(--font-enemyx);
  letter-spacing: 0.04em;
  color: var(--kfr-red) !important;
  text-shadow: 0 0 22px rgba(255, 0, 0, 0.45), 0 2px 12px rgba(0, 0, 0, 0.9);
}

body[data-kfr-takeover="enemyx-collection"] .kfr-shop-tagline {
  color: var(--kfr-white) !important;
  text-shadow: none;
}

/* Jinx: GothicFont, Sanguine and Gold. Still and quiet: no motion, no glitch, no flicker. */
body[data-kfr-takeover="jinx-collection"] .kfr-takeover-tint {
  background: radial-gradient(ellipse 120% 90% at 50% 50%, transparent 58%, rgba(116, 3, 16, 0.22) 100%);
}

body[data-kfr-takeover="jinx-collection"] .kfr-shop-hero {
  border-block-end-color: rgba(222, 184, 5, 0.35);
  background: radial-gradient(ellipse 65% 80% at 50% 0%, rgba(116, 3, 16, 0.32) 0%, rgba(10, 10, 10, 0) 75%);
}

body[data-kfr-takeover="jinx-collection"] .kfr-shop-hero::after {
  background: linear-gradient(90deg, transparent, var(--jinx-gold), transparent);
  box-shadow: none;
}

body[data-kfr-takeover="jinx-collection"] .kfr-shop-title {
  font-family: var(--font-jinx);
  letter-spacing: 0.03em;
  color: var(--jinx-gold) !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
  animation: none !important;
}

body[data-kfr-takeover="jinx-collection"] .kfr-shop-tagline {
  color: #d4d4d4 !important;
  text-shadow: none;
}

body[data-kfr-takeover="jinx-collection"] .kfr-pill.is-active {
  background: var(--jinx-gold);
  border-color: var(--jinx-gold);
  box-shadow: none;
}

/* ============================================================
   2. AUDITION DECK
   ============================================================ */
/* The list keeps its own track numbers (::marker); the button sits inline before the title */
.kfr-liner-notes.kfr-has-deck .kfr-liner-tracks li {
  padding-block: 0.3rem;
}

.kfr-liner-notes .kfr-deck-btn {
  flex: 0 0 auto;
  inline-size: 2rem !important;
  block-size: 2rem !important;
  min-block-size: 0 !important;
  padding: 0 !important;
  display: inline-grid !important;
  place-items: center;
  vertical-align: middle;
  margin-inline-end: 0.55rem !important;
  border: 1px solid currentColor !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: var(--liner-accent, var(--kfr-red)) !important;
  box-shadow: none !important;
  cursor: pointer !important;
  font-size: 0 !important;
}

/* Play triangle / stop square, drawn in CSS so the button has no visible text */
.kfr-liner-notes .kfr-deck-btn::before {
  content: "";
  display: block;
  inline-size: 0;
  block-size: 0;
  margin-inline-start: 3px;
  border-block: 6px solid transparent;
  border-inline-start: 10px solid currentColor;
}

.kfr-liner-notes .kfr-deck-btn.is-playing {
  background: var(--liner-accent, var(--kfr-red)) !important;
  color: #0a0a0a !important;
  border-color: var(--liner-accent, var(--kfr-red)) !important;
}

.kfr-liner-notes .kfr-deck-btn.is-playing::before {
  margin: 0;
  inline-size: 10px;
  block-size: 10px;
  border: 0;
  background: currentColor;
}

.kfr-liner-notes .kfr-deck-btn:focus {
  outline: none !important;
}

.kfr-liner-notes .kfr-deck-btn:focus-visible {
  outline: 2px solid var(--kfr-white) !important;
  outline-offset: 2px !important;
}

/* ============================================================
   3. BAGHEADDDD EGG
   ============================================================ */
.kfr-bag-peek.kfr-bag-egg {
  cursor: pointer;
}

.kfr-bag-peek.is-hopping .kfr-bag-peek-img {
  animation: kfrBagHop 0.6s cubic-bezier(0.22, 1, 0.36, 1) 1 !important;
}

@keyframes kfrBagHop {
  0% { transform: translateY(0) rotate(-6deg) scale(1.05); }
  35% { transform: translateY(-14px) rotate(10deg) scale(1.16); }
  70% { transform: translateY(2px) rotate(-8deg) scale(1.06); }
  100% { transform: translateY(0) rotate(0) scale(1.08); }
}

/* ============================================================
   4. CARD TILT + GLARE (applied by JS only with a fine pointer and no reduced motion)
   ============================================================ */
ul.products li.product .kfr-card-media.is-tilting {
  transform: perspective(700px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 0.08s linear;
}

ul.products li.product .kfr-card-media {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

ul.products li.product .kfr-card-media .kfr-glare {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: radial-gradient(circle at var(--glare-x, 50%) var(--glare-y, 50%), rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 55%);
  mix-blend-mode: screen;
}

ul.products li.product .kfr-card-media.is-tilting .kfr-glare {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .kfr-takeover-tint,
  .kfr-shop-hero,
  .kfr-shop-title,
  .kfr-shop-tagline,
  .kfr-shop-eyebrow,
  ul.products li.product .kfr-card-media {
    transition: none !important;
  }

  ul.products li.product .kfr-card-media.is-tilting {
    transform: none !important;
  }

  .kfr-bag-peek.is-hopping .kfr-bag-peek-img {
    animation: none !important;
  }
}
