/* Frostkettle Bistro Merge — Cozy Pastel Storybook UI (vault_plush_stitched_casual) */
/* 100% Offline MS Store WebView2 Safe — Zero External Fonts/CDNs, Zero backdrop-filter */

:root {
  --fb-cream: #FBEBD1;
  --fb-cream-soft: #FFF7EA;
  --fb-cocoa: #4E2A1A;
  --fb-cocoa-mid: #6E4530;
  --fb-terracotta: #AE7F5E;
  --fb-honey: #D5AC7C;
  --fb-gold: #F2B84B;
  --fb-berry: #C84B52;
  --fb-meadow: #55D418;
  --fb-meadow-dark: #2C8C08;
  --fb-sky: #2A8AD8;
  --fb-font-display: 'Trebuchet MS', 'Segoe UI', system-ui, sans-serif;
  --fb-font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #3E281B;
  color: var(--fb-cocoa);
  font-family: var(--fb-font-body);
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.hidden {
  display: none !important;
}

/* ==================== TITLE SCREEN (Full-Bleed Unboxed Storybook Splash) ==================== */
#title-screen {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: url('../assets/art/title_bg.jpg') center center / cover no-repeat #3B281E;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 42px 26px 42px;
  overflow: hidden;
}

.title-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(96deg, rgba(42, 23, 14, 0.56) 0%, rgba(42, 23, 14, 0.22) 48%, rgba(42, 23, 14, 0.08) 100%);
  pointer-events: none;
  z-index: 1;
}

.title-topbar {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.title-hero-stage {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 0;
}

/* Strictly transparent, borderless hero copy wrapper (ZERO boxed login card!) */
.title-brand-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: 58%;
  background: transparent;
  border: none;
}

.game-main-title {
  font-family: var(--fb-font-display);
  font-size: clamp(38px, 4.4vw, 68px);
  font-weight: 900;
  line-height: 1.04;
  color: #FFF9EE;
  letter-spacing: 0.01em;
  text-shadow:
    0 3px 0 #4E2A1A,
    2px 0 0 #4E2A1A,
    -2px 0 0 #4E2A1A,
    0 -2px 0 #4E2A1A,
    0 8px 18px rgba(34, 16, 8, 0.55);
}

.title-subtitle-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-width: 8px 20px 9px 20px !important;
  border-image-width: 8px 20px 9px 20px !important;
  font-size: clamp(15px, 1.3vw, 20px);
  font-weight: 800;
  color: var(--fb-cocoa);
}

.title-boot-wrap {
  width: min(360px, 44vw);
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.boot-bar-track {
  position: relative;
  width: 100%;
  height: 26px;
  border-width: 6px 8px !important;
  border-image-width: 6px 8px !important;
  overflow: hidden;
  padding: 0;
}

.boot-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #F5A623 0%, #55D418 100%);
  border-radius: 6px;
  transition: width 140ms ease-out;
}

.boot-bar-label {
  font-size: 14px;
  font-weight: 800;
  color: #FFF7EA;
  text-shadow: 0 2px 3px rgba(35, 16, 8, 0.85);
}

.title-cta-group {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

#btn-title-play {
  min-width: 224px;
  padding: 6px 26px;
  border-width: 11px 18px 12px 18px !important;
  border-image-width: 11px 18px 12px 18px !important;
  font-size: clamp(19px, 1.75vw, 26px);
  font-weight: 900;
  color: #1F3B09;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

#btn-title-play img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.title-portrait-box {
  position: relative;
  width: clamp(240px, 28vw, 410px);
  height: clamp(320px, 64vh, 560px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

#title-chef-portrait {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(35, 16, 8, 0.45));
}

.title-bottombar {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.title-lang-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.lang-chip {
  padding: 5px 10px;
  border-radius: 12px;
  border: 2px solid var(--fb-cocoa);
  background: var(--fb-cream);
  color: var(--fb-cocoa);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 90ms ease, background 120ms ease;
}

.lang-chip.is-active {
  background: var(--fb-gold);
  border-color: #FFF9EE;
  box-shadow: 0 2px 0 var(--fb-cocoa);
}

.lang-chip:hover {
  transform: translateY(-1px);
}

.title-util-btn {
  padding: 4px 14px;
  border-width: 8px 14px 10px 14px !important;
  border-image-width: 8px 14px 10px 14px !important;
  font-size: 14px;
  font-weight: 800;
  color: var(--fb-cocoa);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.title-util-btn img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* ==================== GAMEPLAY STAGE (Full-Bleed 100vw x 100vh Canvas + Floating HUD) ==================== */
#game-screen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

#bistro-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  z-index: 1;
}

#vfx3d-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 8;
}

#cutin-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 85;
}

/* ==================== FLOATING TOP HUD (flex-wrap: nowrap, 720p & 1080p Safe) ==================== */
#top-hud {
  position: fixed;
  top: 6px;
  left: 10px;
  right: 10px;
  height: 52px;
  z-index: 25;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  pointer-events: none;
}

#top-hud > * {
  pointer-events: auto;
}

.hud-left-cluster,
.hud-right-cluster {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.hud-pill-compact {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 40px;
  padding: 0 8px;
  border-width: 7px 9px 7px 9px !important;
  border-image-width: 7px 9px 7px 9px !important;
  font-size: clamp(13px, 0.96vw, 15px);
  font-weight: 800;
  color: var(--fb-cocoa);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.hud-pill-compact img.chip-ic {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

.hud-day-pill {
  background-color: rgba(251, 235, 209, 0.08);
  gap: 7px;
}

.hud-warmth-tag {
  background: #F4B956;
  color: var(--fb-cocoa);
  padding: 2px 7px;
  border-radius: 10px;
  border: 1.5px solid var(--fb-cocoa);
  font-size: 12.5px;
  font-weight: 900;
}

.hud-fever-pill {
  background: #C84B52;
  color: #FFF9EE;
  padding: 4px 10px;
  border-radius: 14px;
  border: 2px solid #FFF2C6;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.hud-vip-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(180deg, #FFE182 0%, #E09F2E 100%);
  color: var(--fb-cocoa);
  padding: 3px 9px;
  border-radius: 14px;
  border: 2px solid var(--fb-cocoa);
  font-size: 13px;
  font-weight: 900;
}

.hud-vip-pill img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.hud-nav-btn {
  position: relative;
  overflow: visible !important;
  height: 40px;
  padding: 0 9px;
  border-width: 7px 11px 9px 11px !important;
  border-image-width: 7px 11px 9px 11px !important;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: clamp(12.5px, 0.92vw, 14.5px);
  font-weight: 800;
  color: var(--fb-cocoa);
  white-space: nowrap;
  min-width: 0;
}

.hud-nav-btn img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

.hud-nav-btn .btn-lbl {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 96px;
}

.hud-icon-only {
  width: 40px;
  height: 40px;
  padding: 0;
  justify-content: center;
}

.hud-dev-btn {
  background: #C84B52;
  color: #FFF9EE;
  border: 2px solid #FFF2C6;
  border-radius: 10px;
  padding: 4px 8px;
  font-size: 12.5px;
  font-weight: 900;
  cursor: pointer;
}

.notify-badge {
  position: absolute;
  top: -8px;
  right: -7px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: #E02D44;
  color: #FFFFFF;
  border: 2px solid #FFF9EE;
  font-size: 11.5px;
  font-weight: 900;
  line-height: 15px;
  text-align: center;
  z-index: 32;
  pointer-events: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

/* ==================== TOP-LEFT OBJECTIVE RIBBON (Never overlapped by FTUE Skip!) ==================== */
#objective-ribbon {
  position: fixed;
  top: 64px;
  left: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 12px;
  border-width: 8px 10px !important;
  border-image-width: 8px 10px !important;
  max-width: min(340px, 34vw);
  cursor: pointer;
}

#objective-ribbon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.obj-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.obj-head {
  font-size: 12.5px;
  font-weight: 900;
  color: #9A4D25;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.obj-text {
  font-size: 14px;
  font-weight: 800;
  color: var(--fb-cocoa);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==================== FLOATING GUEST ORDER STRIP (Upper Right above Merge Board) ==================== */
#orders-strip {
  position: fixed;
  top: 64px;
  right: 14px;
  width: min(51vw, 880px);
  z-index: 22;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  pointer-events: auto;
}

.order-ticket {
  position: relative;
  overflow: visible !important;
  height: 82px;
  padding: 4px 8px;
  border-width: 9px 10px !important;
  border-image-width: 9px 10px !important;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: transform 120ms ease, filter 120ms ease;
}

.order-ticket.is-ready {
  box-shadow: 0 0 0 3px #55D418, 0 4px 12px rgba(44, 140, 8, 0.35);
}

.order-ticket.is-golden {
  box-shadow: 0 0 0 3px #F2B84B, 0 4px 12px rgba(213, 142, 22, 0.38);
}

.order-dish-art {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #FFF7EA;
  border: 2px solid var(--fb-terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.order-dish-art img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.order-tier-pip {
  position: absolute;
  bottom: -5px;
  right: -5px;
  background: var(--fb-cocoa);
  color: #FFF9EE;
  font-size: 11.5px;
  font-weight: 900;
  padding: 0 5px;
  border-radius: 8px;
  border: 1.5px solid #FFF9EE;
}

.order-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.order-guest-name {
  font-size: 13px;
  font-weight: 900;
  color: var(--fb-cocoa);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-payout-chips {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mini-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--fb-cocoa);
  font-variant-numeric: tabular-nums;
}

.mini-chip img {
  width: 17px;
  height: 17px;
  object-fit: contain;
}

.btn-order-serve {
  padding: 4px 10px;
  border-width: 7px 10px 8px 10px !important;
  border-image-width: 7px 10px 8px 10px !important;
  font-size: 13px;
  font-weight: 900;
  color: #1B3A08;
  flex-shrink: 0;
}

/* ==================== BOTTOM ACTION BAR (Boosters + Pantry + Bottom Hint / FTUE Skip) ==================== */
#bottom-dock {
  position: fixed;
  bottom: 10px;
  left: 12px;
  right: 14px;
  height: 78px;
  z-index: 24;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}

#bottom-dock > * {
  pointer-events: auto;
}

.booster-strip {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Round 5 Golden Ratio: 72x72px booster button with 42x42px icon (58% height ratio, overflow: visible!) */
.booster-btn {
  position: relative;
  overflow: visible !important;
  width: 76px;
  height: 78px;
  padding: 2px 3px 4px;
  border-width: 7px 8px 9px 8px !important;
  border-image-width: 7px 8px 9px 8px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  cursor: pointer;
}

.booster-btn > img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  pointer-events: none;
}

.booster-lbl {
  font-size: 12px;
  font-weight: 900;
  color: var(--fb-cocoa);
  line-height: 1;
  white-space: nowrap;
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.booster-key {
  position: absolute;
  top: -7px;
  left: -5px;
  background: var(--fb-cocoa);
  color: #FFF9EE;
  font-size: 11.5px;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 7px;
  border: 1.5px solid #FFF7EA;
  pointer-events: none;
}

.booster-cost-badge {
  position: absolute;
  top: -8px;
  right: -6px;
  background: #F4B956;
  color: var(--fb-cocoa);
  font-size: 11.5px;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 8px;
  border: 1.5px solid var(--fb-cocoa);
  display: inline-flex;
  align-items: center;
  gap: 2px;
  pointer-events: none;
}

.booster-cost-badge img {
  width: 14px;
  height: 14px;
}

.pantry-dock {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-width: 8px 10px !important;
  border-image-width: 8px 10px !important;
}

.pantry-title {
  font-size: 12.5px;
  font-weight: 900;
  color: var(--fb-cocoa);
  margin-right: 2px;
  white-space: nowrap;
}

.pantry-cell-btn {
  position: relative;
  overflow: visible !important;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  border: 2px solid var(--fb-terracotta);
  background: #FFF7EA;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.pantry-cell-btn img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.pantry-cell-btn.is-empty {
  border-style: dashed;
  background: rgba(255, 247, 234, 0.72);
  color: #9A7153;
  font-size: 12px;
  font-weight: 800;
}

.pantry-cells-expanded .pantry-cell-btn {
  width: 48px;
  height: 48px;
}

.pantry-cells-expanded .pantry-cell-btn img {
  width: 34px;
  height: 34px;
}

/* Before / After Bistro Photo Album Visual Treatment */
.sn-photo-before {
  background: rgba(212, 224, 232, 0.76);
  border-color: rgba(124, 152, 174, 0.55);
}

.sn-photo-before img {
  filter: grayscale(0.75) sepia(0.28) brightness(0.84);
}

.sn-photo-after {
  background: rgba(255, 244, 212, 0.90);
  border-color: rgba(242, 184, 75, 0.78);
}

.stg-version-line {
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--fb-cocoa-mid);
  padding: 5px 12px;
}

/* Fixed Bottom Hint & FTUE Skip Bar (anchored cleanly bottom-right, NEVER touching top-left Objective Ribbon!) */
#bottom-hint-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 54px;
  padding: 0 12px;
  border-width: 8px 10px !important;
  border-image-width: 8px 10px !important;
  max-width: min(390px, 34vw);
  min-width: 210px;
}

#bottom-hint-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex-shrink: 0;
}

#bottom-hint-text {
  flex: 1;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--fb-cocoa);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#btn-tut-skip {
  padding: 4px 12px;
  border-radius: 10px;
  border: 2px solid var(--fb-cocoa);
  background: #F4B956;
  color: var(--fb-cocoa);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  flex-shrink: 0;
}

/* Non-blocking FTUE Spotlight Overlay */
#ftue-overlay {
  position: fixed;
  inset: 0;
  z-index: 45;
  pointer-events: none;
}

#ftue-ring {
  position: fixed;
  pointer-events: none;
  border-radius: 18px;
  border: 4px solid #FF9F1C;
  box-shadow: 0 0 0 6px rgba(255, 159, 28, 0.36);
  animation: uivSpotlightPulse 1.25s ease-in-out infinite;
}

#ftue-hand {
  position: fixed;
  width: 48px;
  height: 48px;
  pointer-events: none;
  z-index: 46;
}

#ftue-pill {
  position: fixed;
  padding: 6px 14px;
  border-radius: 14px;
  border: 2.5px solid var(--fb-cocoa);
  background: #FFF7EA;
  color: var(--fb-cocoa);
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 4px 10px rgba(45, 22, 10, 0.32);
  pointer-events: none;
  white-space: nowrap;
}

/* ==================== MODAL SYSTEM (Anti-SaaS 60/25/15 Plush Storybook) ==================== */
#modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(36, 20, 12, 0.56);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#active-modal-card.modal-card {
  position: relative;
  width: min(940px, 92vw);
  max-height: 86vh;
  padding: 10px 16px 14px 16px;
  border-width: 16px 18px 18px 18px !important;
  border-image-width: 16px 18px 18px 18px !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  color: var(--fb-cocoa);
}

.modal-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}

.modal-title-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 20px;
  border-width: 8px 22px 9px 22px !important;
  border-image-width: 8px 22px 9px 22px !important;
  font-size: clamp(17px, 1.45vw, 22px);
  font-weight: 900;
  color: var(--fb-cocoa);
}

.modal-title-banner img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.modal-close-x {
  width: 40px;
  height: 40px;
  border: none;
  background: url('../assets/ui/vault_plush_stitched_casual/btn_close.png') center center / contain no-repeat;
  cursor: pointer;
  flex-shrink: 0;
  color: transparent;
  font-size: 0;
}

.modal-tabs-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.modal-tab-btn {
  position: relative;
  overflow: visible !important;
  padding: 4px 14px;
  border-width: 7px 11px 8px 11px !important;
  border-image-width: 7px 11px 8px 11px !important;
  font-size: 14px;
  font-weight: 800;
  color: var(--fb-cocoa);
  cursor: pointer;
}

.modal-body-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px 2px 6px 2px;
  min-height: 0;
}

/* Vault Grid + Outer Cards (`.vault-tile` ONLY on outer cards!) */
.vault-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.vault-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.vault-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.vault-tile {
  position: relative;
  overflow: visible !important;
  padding: 8px 10px 10px 10px;
  border-width: 11px 12px 12px 12px !important;
  border-image-width: 11px 12px 12px 12px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  text-align: center;
  min-height: 176px;
}

.vt-badge {
  position: absolute;
  top: -10px;
  right: 8px;
  background: var(--fb-berry);
  color: #FFF9EE;
  font-size: 11.5px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 10px;
  border: 2px solid #FFF7EA;
  z-index: 4;
}

.vt-art {
  width: 100%;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 249, 236, 0.72);
  border-radius: 12px;
  border: 1.5px solid rgba(174, 127, 94, 0.45);
}

.vt-art img {
  max-width: 76px;
  max-height: 76px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.vt-head {
  font-size: 14.5px;
  font-weight: 900;
  color: var(--fb-cocoa);
  line-height: 1.15;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vt-meta {
  font-size: 13px;
  font-weight: 800;
  color: var(--fb-cocoa-mid);
}

.vt-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.vt-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(255, 247, 234, 0.92);
  border: 1.5px solid var(--fb-terracotta);
  font-size: 13px;
  font-weight: 800;
  color: var(--fb-cocoa);
}

.vt-chip img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.vt-cta {
  width: 100%;
  padding: 5px 10px;
  border-width: 7px 12px 8px 12px !important;
  border-image-width: 7px 12px 8px 12px !important;
  font-size: 13.5px;
  font-weight: 900;
  color: var(--fb-cocoa);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.vt-cta img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.vt-cta-dual {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

/* Event Summary Header Strip */
.ev-hero-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  margin-bottom: 10px;
  border-width: 9px 11px !important;
  border-image-width: 9px 11px !important;
}

.ev-hero-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ev-hero-left img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.ev-hero-stats {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ev-hero-name {
  font-size: 16px;
  font-weight: 900;
  color: var(--fb-cocoa);
}

.ev-hero-sub {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--fb-cocoa-mid);
}

.ev-hero-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Settings Clean Controls */
.stg-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stg-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(255, 249, 238, 0.86);
  border: 2px solid var(--fb-terracotta);
}

.stg-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 900;
  color: var(--fb-cocoa);
}

.stg-label img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.stg-ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stg-slider {
  width: 150px;
  accent-color: #C84B52;
  cursor: pointer;
}

.stg-input {
  padding: 6px 10px;
  border-radius: 10px;
  border: 2px solid var(--fb-cocoa);
  background: #FFFDF8;
  color: var(--fb-cocoa);
  font-size: 14px;
  font-weight: 800;
  width: 156px;
  text-transform: uppercase;
}

/* Guide 3-Icon Visual Strip */
.guide-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 6px 0 10px 0;
}

/* Toast Notification */
#toast-stack {
  position: fixed;
  top: 152px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 95;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.fb-toast {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: 16px;
  border: 2.5px solid var(--fb-cocoa);
  background: #FFF7EA;
  color: var(--fb-cocoa);
  font-size: 14.5px;
  font-weight: 900;
  box-shadow: 0 5px 14px rgba(42, 22, 10, 0.35);
}

.fb-toast img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* Preview-Only F2 Debug Drawer */
#dev-debug-panel {
  position: fixed;
  top: 62px;
  left: 12px;
  width: 290px;
  z-index: 98;
  background: #2B1A12;
  color: #FFF7EA;
  border: 2.5px solid #F2B84B;
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

#dev-debug-panel h4 {
  font-size: 14px;
  color: #FFD57A;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dev-btn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.dev-action-btn {
  padding: 5px 7px;
  border-radius: 8px;
  border: 1.5px solid #D5AC7C;
  background: #4E2A1A;
  color: #FFF7EA;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
}

.dev-action-btn:hover {
  background: #6E3B25;
}

/* 720p Compact Adjustments (1280x720) */
@media (max-width: 1366px), (max-height: 768px) {
  #top-hud {
    height: 48px;
    top: 4px;
    left: 6px;
    right: 6px;
    gap: 4px;
  }
  .hud-pill-compact {
    height: 36px;
    padding: 0 5px;
    font-size: 12.5px;
    gap: 3px;
  }
  .hud-pill-compact img.chip-ic {
    width: 18px;
    height: 18px;
  }
  .hud-nav-btn {
    height: 36px;
    padding: 0 6px;
    font-size: 12px;
    gap: 3px;
  }
  .hud-nav-btn .btn-lbl {
    max-width: 56px;
  }
  .hud-nav-btn img {
    width: 18px;
    height: 18px;
  }
  #objective-ribbon {
    top: 56px;
    padding: 4px 10px;
  }
  #orders-strip {
    top: 56px;
    right: 10px;
    width: min(55vw, 700px);
    gap: 5px;
  }
  .order-ticket {
    height: 72px;
    padding: 2px 5px;
    gap: 4px;
  }
  .order-dish-art {
    width: 40px;
    height: 40px;
  }
  .order-dish-art img {
    width: 32px;
    height: 32px;
  }
  .order-payout-chips {
    gap: 4px;
  }
  .mini-chip {
    font-size: 11.5px;
    gap: 2px;
  }
  .mini-chip img {
    width: 14px;
    height: 14px;
  }
  .btn-order-serve {
    padding: 3px 7px;
    border-width: 6px 8px 7px 8px !important;
    border-image-width: 6px 8px 7px 8px !important;
    font-size: 11.5px;
  }
  .booster-btn {
    width: 70px;
    height: 72px;
    padding: 2px 2px 4px;
  }
  .booster-btn > img {
    width: 40px;
    height: 40px;
  }
  .pantry-cell-btn {
    width: 48px;
    height: 48px;
  }
  .pantry-cell-btn img {
    width: 32px;
    height: 32px;
  }
  .pantry-cells-expanded .pantry-cell-btn {
    width: 40px;
    height: 40px;
  }
  .pantry-cells-expanded .pantry-cell-btn img {
    width: 28px;
    height: 28px;
  }
  #bottom-hint-bar {
    height: 48px;
    max-width: 270px;
    min-width: 165px;
  }
  .vault-grid-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Reduced Motion Comfort Support */
body.reduced-motion *,
body.reduced-motion *::before,
body.reduced-motion *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}
