/* ==========================================================================
   BOSSUN COOKING - NON-INVASIVE EXPANSION PACK (v1.3.0)
   Modules: Mystery Box Challenge | Daily Chef Orders (15-Pool) | Tactile Haptics
            Pixelate-Anime Food Art | Toko Kostum VIP (30 Kostum + Tier Aura)
   Namespace: .bc-exp-* (100% isolated from base game styles)
   ========================================================================== */

:root {
  --bc-exp-bg: #2b1d16;
  --bc-exp-panel: #fff6e5;
  --bc-exp-panel-dark: #f2dfc1;
  --bc-exp-border: #4a2e1b;
  --bc-exp-gold: #ffb703;
  --bc-exp-gold-dark: #d98a00;
  --bc-exp-accent: #e63946;
  --bc-exp-teal: #2a9d8f;
  --bc-exp-text: #2b1d16;
  --bc-exp-muted: #7a5c47;
}

/* Crisp Pixelate-Anime Food & Costume Artwork Styling */
.bc-exp-pixel-art {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  display: inline-block;
  vertical-align: middle;
  user-select: none;
  -webkit-user-drag: none;
}

.bc-exp-ing-art {
  width: 44px;
  height: 44px;
  margin: 0 auto 4px;
  display: block;
  filter: drop-shadow(0 2px 0 rgba(36, 17, 10, 0.28));
  animation: bcExpPixelBob 1.8s steps(2, end) infinite;
}

.bc-exp-dish-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bc-exp-dish-art {
  width: 72px;
  height: 48px;
  flex-shrink: 0;
  background: #fff3d6;
  border: 2px solid var(--bc-exp-border);
  border-radius: 8px;
  padding: 2px;
  box-shadow: inset 0 -2px 0 rgba(74, 46, 27, 0.16);
}

.bc-exp-stage-art {
  width: 126px;
  height: 84px;
  margin: 6px auto;
  display: block;
  filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.45));
  animation: bcExpPixelBob 1.2s steps(2, end) infinite;
}

.bc-exp-mini-ing-strip {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.bc-exp-mini-ing-strip img {
  width: 30px;
  height: 30px;
  background: rgba(255, 246, 229, 0.12);
  border: 2px solid rgba(255, 202, 58, 0.45);
  border-radius: 7px;
  padding: 2px;
}

.bc-exp-showcase-box {
  background: radial-gradient(circle at center, #fff9eb 0%, #f2dfc1 100%);
  border: 3px solid var(--bc-exp-border);
  border-radius: 12px;
  padding: 8px;
  margin: 6px 0 8px;
  box-shadow: inset 0 2px 0 #fff;
}

.bc-exp-showcase-art {
  width: 144px;
  height: 96px;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 3px 0 rgba(36, 17, 10, 0.3));
  animation: bcExpPixelBob 1.6s steps(2, end) infinite;
}

@keyframes bcExpPixelBob {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-2px); }
}

/* ==========================================================================
   SEJAJAR & RAPI: DROPDOWN MENU DI BAWAH TOP HUD (TANPA TUMPUK)
   ========================================================================== */
.bc-exp-fab-wrap {
  position: fixed;
  top: max(38px, calc(env(safe-area-inset-top, 8px) + 32px));
  right: max(10px, env(safe-area-inset-right, 10px));
  z-index: 2147483640;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  font-family: 'Courier New', Courier, monospace;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  pointer-events: none;
}

.bc-exp-fab-dot {
  position: absolute;
  top: -5px;
  right: -3px;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  border-radius: 999px;
  background: #2a9d8f;
  color: #ffffff;
  border: 1.5px solid #2b1d16;
  font-size: 9px;
  font-weight: 900;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.bc-exp-fab-dot.is-visible {
  display: inline-flex;
}

/* Expandable Vertical Stack (Only visible when inline VIP button is tapped) */
.bc-exp-fab-menu {
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  min-width: 200px;
  pointer-events: auto;
  animation: bcExpMenuPop 0.15s ease-out forwards;
}

.bc-exp-fab-wrap.is-expanded .bc-exp-fab-menu {
  display: flex;
}

@keyframes bcExpMenuPop {
  0% { opacity: 0; transform: translateY(-4px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.bc-exp-pill-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 36px;
  background: linear-gradient(180deg, #ffca3a 0%, #ff9f1c 100%);
  color: #2b1d16;
  border: 2.5px solid var(--bc-exp-border);
  border-radius: 11px;
  padding: 5px 10px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 0.2px;
  box-shadow: 0 2.5px 0 var(--bc-exp-border), 0 5px 12px rgba(0, 0, 0, 0.32);
  cursor: pointer;
  white-space: nowrap;
}

.bc-exp-pill-btn.is-mystery {
  background: linear-gradient(180deg, #ff758f 0%, #e63946 100%);
  color: #fff;
}

.bc-exp-pill-btn.is-costume {
  background: linear-gradient(180deg, #9d4edd 0%, #5a189a 100%);
  color: #fff8eb;
}

.bc-exp-pill-btn.is-haptic {
  background: var(--bc-exp-panel);
  color: var(--bc-exp-text);
}

.bc-exp-pill-btn.is-haptic.is-off {
  background: #d8cfc2;
  color: #6b5e55;
}

.bc-exp-pill-btn:active {
  transform: translateY(1.5px);
  box-shadow: 0 1px 0 var(--bc-exp-border);
}

.bc-exp-pill-badge {
  background: #2b1d16;
  color: #ffca3a;
  border: 1.5px solid var(--bc-exp-border);
  border-radius: 999px;
  padding: 1px 6px;
  font-size: 9.5px;
  font-weight: 900;
  line-height: 1.2;
}

.bc-exp-pill-badge.has-claim {
  background: #2a9d8f;
  color: #fff;
}

/* Invisible scrim when menu is expanded */
.bc-exp-fab-scrim {
  position: fixed;
  inset: 0;
  z-index: 2147483639;
  display: none;
  background: rgba(24, 14, 9, 0.18);
}

.bc-exp-fab-scrim.is-open {
  display: block;
}

/* Tactile Visual Ripple Fallback */
.bc-exp-tactile-pulse {
  position: fixed;
  width: 34px;
  height: 34px;
  margin-left: -17px;
  margin-top: -17px;
  border-radius: 50%;
  border: 3px solid rgba(255, 183, 3, 0.85);
  pointer-events: none;
  z-index: 2147483647;
  animation: bcExpPulseOut 0.28s ease-out forwards;
}

@keyframes bcExpPulseOut {
  0% { transform: scale(0.4); opacity: 1; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* Toast Notification */
.bc-exp-toast {
  position: fixed;
  top: max(14px, env(safe-area-inset-top, 14px));
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: var(--bc-exp-bg);
  color: #fff6e5;
  border: 3px solid var(--bc-exp-gold);
  border-radius: 12px;
  padding: 8px 14px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px;
  font-weight: 800;
  z-index: 2147483646;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
  max-width: 92vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bc-exp-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Modal Backdrop & Container */
.bc-exp-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(24, 14, 9, 0.82);
  backdrop-filter: blur(2px);
  z-index: 2147483645;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 10px;
  font-family: 'Courier New', Courier, monospace;
}

.bc-exp-backdrop.is-open {
  display: flex;
}

.bc-exp-modal {
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  background: var(--bc-exp-panel);
  color: var(--bc-exp-text);
  border: 4px solid var(--bc-exp-border);
  border-radius: 16px;
  box-shadow: 0 8px 0 #1a0f0a;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Header */
.bc-exp-header {
  background: linear-gradient(180deg, #ff9f1c 0%, #e87a00 100%);
  border-bottom: 4px solid var(--bc-exp-border);
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bc-exp-title {
  font-size: 13.5px;
  font-weight: 900;
  color: #2b1d16;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  gap: 6px;
}

.bc-exp-close {
  background: var(--bc-exp-accent);
  color: #fff;
  border: 3px solid var(--bc-exp-border);
  border-radius: 8px;
  width: 30px;
  height: 30px;
  font-weight: 900;
  font-size: 14px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

/* Tabs (3 Tabs: Mystery Box | Daily Orders | Haptic) */
.bc-exp-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--bc-exp-panel-dark);
  border-bottom: 3px solid var(--bc-exp-border);
}

.bc-exp-tab {
  padding: 8px 4px;
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 900;
  text-align: center;
  background: transparent;
  border: none;
  border-right: 2px solid var(--bc-exp-border);
  color: var(--bc-exp-muted);
  cursor: pointer;
  line-height: 1.25;
}

.bc-exp-tab:last-child {
  border-right: none;
}

.bc-exp-tab.is-active {
  background: var(--bc-exp-panel);
  color: var(--bc-exp-text);
  box-shadow: inset 0 -3px 0 var(--bc-exp-accent);
}

/* Body */
.bc-exp-body {
  padding: 11px;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

.bc-exp-wallet-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  background: #2b1d16;
  color: #ffca3a;
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 10px;
}

/* Cards & Buttons */
.bc-exp-card {
  background: #fffdf8;
  border: 3px solid var(--bc-exp-border);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 10px;
  box-shadow: 0 3px 0 rgba(74, 46, 27, 0.25);
}

.bc-exp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 9px 10px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 900;
  border: 3px solid var(--bc-exp-border);
  border-radius: 10px;
  background: linear-gradient(180deg, #ffca3a 0%, #ff9f1c 100%);
  color: #2b1d16;
  box-shadow: 0 3px 0 var(--bc-exp-border);
  cursor: pointer;
}

.bc-exp-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--bc-exp-border);
}

.bc-exp-btn.is-teal {
  background: linear-gradient(180deg, #38b2a3 0%, #2a9d8f 100%);
  color: #fff;
}

.bc-exp-btn.is-purple {
  background: linear-gradient(180deg, #9d4edd 0%, #5a189a 100%);
  color: #fff8eb;
}

.bc-exp-btn.is-claimed,
.bc-exp-btn:disabled {
  background: #d6ccc2;
  color: #6b5e55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Daily Chef Orders */
.bc-exp-mission-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.bc-exp-mission-title {
  font-size: 13px;
  font-weight: 900;
}

.bc-exp-mission-tag {
  font-size: 10px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--bc-exp-panel-dark);
  border: 2px solid var(--bc-exp-border);
}

.bc-exp-progress-wrap {
  height: 12px;
  background: #e5d5bc;
  border: 2px solid var(--bc-exp-border);
  border-radius: 999px;
  overflow: hidden;
  margin: 6px 0;
}

.bc-exp-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2a9d8f, #52b788);
  transition: width 0.25s ease;
}

/* Mystery Box Arena */
.bc-exp-ing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 10px 0;
}

.bc-exp-ing-chip {
  background: linear-gradient(180deg, #fffaf0 0%, var(--bc-exp-panel-dark) 100%);
  border: 2px solid var(--bc-exp-border);
  border-radius: 10px;
  padding: 8px 6px;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
}

.bc-exp-dish-option {
  text-align: left;
  background: #fff;
  border: 3px solid var(--bc-exp-border);
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 8px;
  cursor: pointer;
  width: 100%;
  font-family: inherit;
}

.bc-exp-dish-option:hover,
.bc-exp-dish-option:active {
  background: #fff3d1;
  border-color: var(--bc-exp-accent);
}

.bc-exp-minigame-pad {
  background: #2b1d16;
  color: #fff6e5;
  border: 4px solid var(--bc-exp-gold);
  border-radius: 14px;
  padding: 14px 12px;
  text-align: center;
  touch-action: none;
  user-select: none;
}

.bc-exp-gauge-bar {
  width: 100%;
  height: 22px;
  background: #4a2e1b;
  border: 3px solid #fff6e5;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  margin: 10px 0 12px;
}

.bc-exp-gauge-sweetspot {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 38%;
  width: 24%;
  background: rgba(82, 183, 136, 0.55);
  border-left: 2px dashed #ffca3a;
  border-right: 2px dashed #ffca3a;
}

.bc-exp-gauge-needle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 8px;
  background: #ffca3a;
  box-shadow: 0 0 8px #ffca3a;
}

.bc-exp-judge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bc-exp-panel-dark);
  border: 2px solid var(--bc-exp-border);
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 6px;
}

.bc-exp-judge-score {
  font-size: 16px;
  font-weight: 900;
  color: var(--bc-exp-accent);
}

/* ==========================================================================
   TOKO KOSTUM VIP (30 KOSTUM PIXELATE-ANIME + TIERED ANIMATED AURAS)
   ========================================================================== */
.bc-exp-wardrobe-stage {
  background: radial-gradient(circle at 50% 45%, #3d2447 0%, #1d1226 100%);
  color: #fff8eb;
  border: 3px solid var(--bc-exp-border);
  border-radius: 14px;
  padding: 10px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.bc-exp-avatar-frame {
  width: 96px;
  height: 112px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(15, 10, 24, 0.72);
  border: 2px solid rgba(255, 202, 58, 0.5);
  display: grid;
  place-items: center;
  position: relative;
}

.bc-exp-avatar-canvas {
  width: 84px;
  height: 98px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.bc-exp-filter-bar {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.bc-exp-filter-chip {
  flex-shrink: 0;
  background: var(--bc-exp-panel-dark);
  color: var(--bc-exp-text);
  border: 2px solid var(--bc-exp-border);
  border-radius: 999px;
  padding: 4px 9px;
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 900;
  cursor: pointer;
}

.bc-exp-filter-chip.is-active {
  background: #2b1d16;
  color: #ffca3a;
  border-color: #ffca3a;
}

.bc-exp-costume-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.bc-exp-costume-card {
  background: #fffdf8;
  border: 3px solid var(--bc-exp-border);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  cursor: pointer;
  transition: transform 0.08s ease;
  position: relative;
}

.bc-exp-costume-card.is-selected {
  border-color: #9d4edd;
  box-shadow: 0 0 0 2px #e0aaff, 0 4px 0 var(--bc-exp-border);
}

.bc-exp-costume-card.tier-rare {
  background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%);
}

.bc-exp-costume-card.tier-epic {
  background: linear-gradient(180deg, #faf5ff 0%, #f3e8ff 100%);
}

.bc-exp-costume-card.tier-legendary {
  background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #d97706;
}

.bc-exp-costume-card.tier-mythic {
  background: linear-gradient(180deg, #fff1f2 0%, #ffe4e6 50%, #fef9c3 100%);
  border-color: #e63946;
}

.bc-exp-tier-pill {
  display: inline-block;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1.5px solid var(--bc-exp-border);
  margin-bottom: 4px;
}

.bc-exp-tier-pill.tier-common { background: #e9ecef; color: #343a40; }
.bc-exp-tier-pill.tier-rare { background: #38bdf8; color: #082f49; }
.bc-exp-tier-pill.tier-epic { background: #a855f7; color: #ffffff; }
.bc-exp-tier-pill.tier-legendary { background: #f59e0b; color: #2b1d16; }
.bc-exp-tier-pill.tier-mythic {
  background: linear-gradient(90deg, #ff0055, #ffbe0b, #00f5d4);
  color: #1a0f0a;
}

.bc-exp-costume-thumb-box {
  width: 66px;
  height: 76px;
  margin: 2px auto 5px;
  border-radius: 10px;
  background: #23162b;
  border: 2px solid var(--bc-exp-border);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.bc-exp-costume-thumb-box img {
  width: 60px;
  height: 70px;
}

.bc-exp-mini-action-btn {
  width: 100%;
  padding: 6px 6px;
  margin-top: 5px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 900;
  border: 2px solid var(--bc-exp-border);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffca3a 0%, #ff9f1c 100%);
  color: #2b1d16;
  cursor: pointer;
}

.bc-exp-mini-action-btn.is-equip {
  background: linear-gradient(180deg, #38b2a3 0%, #2a9d8f 100%);
  color: #fff;
}

.bc-exp-mini-action-btn.is-equipped {
  background: #2b1d16;
  color: #ffca3a;
}

/* ==========================================================================
   MOBILE BOTTOM-SHEET & TOUCH-TARGET RESPONSIVE TUNING (<= 540px)
   ========================================================================== */
@media (max-width: 540px) {
  .bc-exp-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .bc-exp-modal {
    max-width: 100vw;
    width: 100vw;
    max-height: 86dvh;
    border-radius: 18px 18px 0 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    padding-bottom: env(safe-area-inset-bottom, 8px);
  }

  .bc-exp-header {
    padding: 10px 14px;
  }

  .bc-exp-close {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .bc-exp-tab {
    padding: 10px 2px;
    font-size: 10px;
    min-height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
  }

  .bc-exp-body {
    padding: 10px 12px calc(16px + env(safe-area-inset-bottom, 10px));
  }

  .bc-exp-wardrobe-stage {
    flex-direction: row;
    padding: 9px;
    gap: 10px;
  }

  .bc-exp-avatar-frame {
    width: 82px;
    height: 96px;
  }

  .bc-exp-avatar-canvas {
    width: 72px;
    height: 84px;
  }

  .bc-exp-filter-chip {
    padding: 6px 11px;
    font-size: 11px;
    min-height: 32px;
  }

  .bc-exp-mini-action-btn {
    min-height: 34px;
    font-size: 11px;
  }
}

/* Mystery Box Varied Mini-Game Pads */
.bc-exp-slice-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin: 10px 0;
}

.bc-exp-slice-slot {
  height: 62px;
  background: #fff3d6;
  color: #2b1d16;
  border: 2.5px dashed #ff4d6d;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 900;
  transition: transform 0.1s ease, background 0.15s ease;
}

.bc-exp-slice-slot.is-cut {
  background: #83decb;
  border: 2.5px solid #2b1d16;
  transform: scale(0.94);
}

.bc-exp-whisk-bowl {
  width: 112px;
  height: 112px;
  margin: 8px auto;
  border-radius: 50%;
  background: radial-gradient(circle at center, #ffb703 0%, #fb8500 70%, #4a2e1b 100%);
  border: 4px solid #fff6e5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.35);
}
