/* ==========================================================================
 * Velvet Crema: Cozy Barista Sim — Commercial UI Vault Stylesheet (Round 9)
 * UI Vault Contract v2.2: cozy_stationery_craft (Daylight Cream & Cocoa Craft)
 * Zero dark cyberpunk, zero boxed login title, zero SaaS prose walls, zero backdrop blur.
 * ========================================================================== */

:root,
[data-ui-vault-style="cozy_stationery_craft"] {
  --vc-cream: #FBF2DF;
  --vc-cream-warm: #F8ECD5;
  --vc-honey: #EEDDC4;
  --vc-caramel: #C89872;
  --vc-latte: #C8B7A1;
  --vc-oak: #94664E;
  --vc-border: #6D4538;
  --vc-ink: #2E1A12;
  --vc-ink-soft: #4A2D22;
  --vc-sage: #95B853;
  --vc-sky: #66B3DE;
  --vc-coral: #DB6653;
  --vc-gold: #F4B956;
  --font-display: 'Segoe UI Rounded', 'Hiragino Maru Gothic ProN', 'Yu Gothic UI', 'Trebuchet MS', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Segoe UI', 'Hiragino Sans', 'Yu Gothic UI', system-ui, sans-serif;

  /* TrackBUIMotion v2.9.0 <-> UI Vault Slot Contract v2.2 */
  --tb-slot-style: 'cozy_stationery_craft';
  --tb-slot-shape: rect;
  --tb-slot-radius: 14px;
  --tb-slot-chamfer: 0px;
  --tb-slot-inset: 3px 3px 3px 3px;
  --tb-slot-palette: warm_honey;
  --tb-slot-mode: chaser_slot;
  --tb-slot-daylight: 1;
  --tb-slot-z: 3;
}

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

html,
body {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: #EEDDC4;
  color: var(--vc-ink);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

.hidden {
  display: none !important;
}

#app-shell {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* ==================== FULL-BLEED 100vw x 100vh CANVASES ==================== */

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

.idle-overlay-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none !important;
  display: none;
}

#ui-motion-overlay {
  z-index: 85;
}

#cutin-overlay-canvas {
  z-index: 140;
}

/* ==================== >= 20 REAL 9-SLICE BORDER-IMAGE REGIONS ==================== */

.uiv-modal-frame,
.modal-card {
  background-color: #FBF2DF;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 16px 17px 16px 17px;
  border-image: url('../assets/ui/vault_cozy_stationery_craft/frame_modal.png') 44 46 45 46 fill / 16px 17px 16px 17px / 0 stretch;
  color: var(--vc-ink);
}

.uiv-modal-frame-compact {
  background-color: #FBF2DF;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 12px 13px 12px 13px;
  border-image: url('../assets/ui/vault_cozy_stationery_craft/frame_modal.png') 44 46 45 46 fill / 12px 13px 12px 13px / 0 stretch;
  color: var(--vc-ink);
}

.uiv-subpanel-frame {
  background-color: #F8E2BC;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 12px 12px 12px 12px;
  border-image: url('../assets/ui/vault_cozy_stationery_craft/frame_subpanel.png') 63 57 63 60 fill / 12px 12px 12px 12px / 0 stretch;
  color: var(--vc-ink);
}

.modal-subpanel {
  background-color: #FBF2DF;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 12px 12px 12px 12px;
  border-image: url('../assets/ui/vault_cozy_stationery_craft/frame_subpanel.png') 63 57 63 60 fill / 12px 12px 12px 12px / 0 stretch;
  color: var(--vc-ink);
}

.uiv-ribbon-header,
.modal-ribbon-title {
  background-color: #F7DCB1;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 11px 18px 11px 18px;
  border-image: url('../assets/ui/vault_cozy_stationery_craft/ribbon_header.png') 66 85 66 90 fill / 11px 18px 11px 18px / 0 stretch;
  color: var(--vc-ink);
  font-family: var(--font-display);
}

.uiv-hud-pill {
  background-color: #F8DFB7;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 9px 14px 9px 14px;
  border-image: url('../assets/ui/vault_cozy_stationery_craft/hud_pill.png') 69 98 67 97 fill / 9px 14px 9px 14px / 0 stretch;
  color: var(--vc-ink);
}

.uiv-pill-btn {
  background-color: #F8DFB7;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 9px 13px 9px 13px;
  border-image: url('../assets/ui/vault_cozy_stationery_craft/hud_pill.png') 69 98 67 97 fill / 9px 13px 9px 13px / 0 stretch;
  color: var(--vc-ink);
  font-family: var(--font-display);
  cursor: pointer;
}

.uiv-slot-btn,
.ingredient-btn {
  background-color: #EFD6AD;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 8px 8px 9px 8px;
  border-image: url('../assets/ui/vault_cozy_stationery_craft/slot_tile.png') 57 55 58 55 fill / 8px 8px 9px 8px / 0 stretch;
  color: var(--vc-ink);
  cursor: pointer;
}

.uiv-btn-primary {
  background-color: #95B853;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 9px 11px 10px 11px;
  border-image: url('../assets/ui/vault_cozy_stationery_craft/btn_primary.png') 50 53 49 54 fill / 9px 11px 10px 11px / 0 stretch;
  color: #1F140E;
  font-family: var(--font-display);
  cursor: pointer;
}

.uiv-btn-secondary {
  background-color: #66B3DE;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 9px 11px 10px 11px;
  border-image: url('../assets/ui/vault_cozy_stationery_craft/btn_secondary.png') 50 54 49 53 fill / 9px 11px 10px 11px / 0 stretch;
  color: #1A1412;
  font-family: var(--font-display);
  cursor: pointer;
}

.uiv-btn-danger {
  background-color: #DB6653;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 9px 11px 10px 11px;
  border-image: url('../assets/ui/vault_cozy_stationery_craft/btn_danger.png') 49 52 50 52 fill / 9px 11px 10px 11px / 0 stretch;
  color: #1A100E;
  font-family: var(--font-display);
  cursor: pointer;
}

.uiv-btn-disabled,
button.uiv-btn-primary:disabled,
button.uiv-btn-secondary:disabled,
button.uiv-slot-btn:disabled {
  background-color: #CAB399 !important;
  background-clip: padding-box !important;
  border-style: solid !important;
  border-color: transparent !important;
  border-width: 9px 11px 9px 11px !important;
  border-image: url('../assets/ui/vault_cozy_stationery_craft/btn_disabled.png') 50 52 50 52 fill / 9px 11px 9px 11px / 0 stretch !important;
  color: #3A251B !important;
  cursor: not-allowed;
  opacity: 0.9;
}

.uiv-card-common,
.recipe-item-card,
.upgrade-item-card {
  background-color: #F9EFDA;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 9px 8px 9px 8px;
  border-image: url('../assets/ui/vault_cozy_stationery_craft/card_common.png') 44 37 43 41 fill / 9px 8px 9px 8px / 0 stretch;
  color: var(--vc-ink);
}

.uiv-card-rare,
.shop-item-card {
  background-color: #F9EFDA;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 9px 8px 9px 8px;
  border-image: url('../assets/ui/vault_cozy_stationery_craft/card_rare.png') 44 38 43 38 fill / 9px 8px 9px 8px / 0 stretch;
  color: var(--vc-ink);
}

.uiv-card-epic,
.shop-item-card.tier-epic {
  background-color: #F9EFDA;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 9px 8px 9px 8px;
  border-image: url('../assets/ui/vault_cozy_stationery_craft/card_epic.png') 44 37 41 40 fill / 9px 8px 9px 8px / 0 stretch;
  color: var(--vc-ink);
}

.uiv-card-legendary,
.shop-item-card.featured {
  background-color: #F9EFDA;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 10px 9px 10px 9px;
  border-image: url('../assets/ui/vault_cozy_stationery_craft/card_legendary.png') 44 39 43 39 fill / 10px 9px 10px 9px / 0 stretch;
  color: var(--vc-ink);
}

.uiv-card-btn-gold {
  background-color: #FDE2AE;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 9px 9px 9px 9px;
  border-image: url('../assets/ui/vault_cozy_stationery_craft/card_legendary.png') 44 39 43 39 fill / 9px 9px 9px 9px / 0 stretch;
  color: var(--vc-ink);
  font-family: var(--font-display);
  cursor: pointer;
}

.uiv-bar-track {
  background-color: #D7B48A;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 5px 6px 4px 7px;
  border-image: url('../assets/ui/vault_cozy_stationery_craft/bar_track.png') 70 67 29 89 fill / 5px 6px 4px 7px / 0 stretch;
}

.uiv-bar-fill {
  background-color: #95B853;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 3px 4px 3px 4px;
  border-image: url('../assets/ui/vault_cozy_stationery_craft/bar_fill_primary.png') 38 38 36 35 fill / 3px 4px 3px 4px / 0 stretch;
}

.bench-tab.active,
.modal-tab.active {
  background-color: #FDE2AE;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 9px 7px 5px 12px;
  border-image: url('../assets/ui/vault_cozy_stationery_craft/tab_active.png') 96 30 29 161 fill / 9px 7px 5px 12px / 0 stretch;
  color: var(--vc-ink);
}

.gazette-story-sheet {
  background-color: #F9EFD6;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 20px 10px 20px 10px;
  border-image: url('../assets/ui/frame_panel.png') 121 37 120 36 fill / 20px 10px 20px 10px / 0 stretch;
  color: var(--vc-ink);
}

.modal-close-btn {
  width: 40px;
  height: 40px;
  min-width: 40px;
  padding: 0;
  border: none;
  background: url('../assets/ui/vault_cozy_stationery_craft/btn_close.png') center / contain no-repeat transparent;
  cursor: pointer;
  flex-shrink: 0;
  overflow: visible !important;
}

/* ==================== GLOBAL BUTTON & OUTER BADGE INVARIANTS ==================== */

button {
  position: relative;
  overflow: visible !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  transition: transform 95ms cubic-bezier(0.22, 1.4, 0.36, 1), filter 120ms ease;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

button:active:not(:disabled) {
  transform: translateY(2px) scale(var(--uiv-press-sx, 0.965), var(--uiv-press-sy, 0.935));
}

button .btn-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  max-width: 100%;
  line-height: 1.15;
}

.notify-badge {
  position: absolute;
  top: -12px;
  right: 0;
  z-index: 8;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background-color: #D93829;
  border: 2px solid #FFFDF7;
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
  pointer-events: none;
  box-shadow: 0 2px 4px rgba(46, 26, 18, 0.35);
}

button.hud-pill:has(> .notify-badge:not(.hidden)),
button.hud-nav-btn:has(> .notify-badge:not(.hidden)) {
  padding-right: 18px;
}

/* ==================== PILLAR 1: HEROIC NO-BOX TITLE SCREEN ==================== */

.title-screen {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 24px 28px;
  overflow: hidden;
}

.title-bg-layer {
  position: absolute;
  inset: 0;
  background: #EEDDC4 url('../assets/art/title_bg.png') center / cover no-repeat;
  z-index: 0;
}

.title-sunbeam-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 64% 46%, rgba(58, 30, 18, 0.24) 0%, rgba(255, 249, 232, 0.10) 56%, rgba(58, 30, 18, 0.28) 100%);
  pointer-events: none;
  z-index: 1;
}

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

.title-top-left,
.title-top-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.uiv-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  font-size: 14px;
}

.uiv-pill-btn img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.lang-globe-svg {
  display: inline-flex;
  align-items: center;
  color: var(--vc-ink);
}

.title-center-stage {
  position: relative;
  z-index: 4;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3.2vw, 48px);
  max-width: min(1140px, 95vw);
  background: transparent !important;
  border: none !important;
  border-image: none !important;
}

.title-portrait-frame {
  position: relative;
  width: clamp(220px, 24vw, 330px);
  height: clamp(300px, 36vw, 450px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex-shrink: 0;
}

.title-portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(46, 24, 14, 0.36));
}

/* Strictly NO background/border box over full-bleed café artwork! */
.title-hero-float {
  width: clamp(380px, 46vw, 620px);
  padding: 6px 8px;
  transform: translateY(-28px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  background: transparent !important;
  border: none !important;
  border-image: none !important;
}

.title-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 16px;
  font-size: 14px;
  font-weight: 800;
  color: var(--vc-ink);
}

.title-ribbon-ico {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.title-logo {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(48px, 4.1vw, 62px);
  font-weight: 800;
  line-height: 1.08;
  color: #FFFDF7;
  -webkit-text-stroke: 3.5px #4A281C;
  paint-order: stroke fill;
  text-shadow: 0 4px 0 #3A1E14, 0 8px 18px rgba(42, 22, 14, 0.48);
}

.title-tagline {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(15px, 1.3vw, 18.5px);
  font-weight: 700;
  line-height: 1.3;
  color: #FFF9EE;
  -webkit-text-stroke: 2px #4A281C;
  paint-order: stroke fill;
  text-shadow: 0 2px 0 #3A1E14, 0 4px 10px rgba(42, 22, 14, 0.55);
  max-width: 520px;
}

.title-loading-box {
  width: min(380px, 100%);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.loading-bar-track {
  width: 100%;
  height: 24px;
  position: relative;
  overflow: hidden;
}

.loading-bar-fill {
  height: 100%;
  transition: width 0.16s ease-out;
}

.title-loading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.title-loading-label {
  font-size: 14px;
  color: #FFFDF7;
  -webkit-text-stroke: 1.8px #4A281C;
  paint-order: stroke fill;
  text-align: left;
  min-width: 0;
}

.title-skip-btn {
  flex-shrink: 0;
  height: 30px;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.title-cta-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.title-play-cta {
  width: 280px;
  min-width: 240px;
  min-height: 60px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  filter: drop-shadow(0 6px 12px rgba(42, 22, 14, 0.34));
}

.title-play-ico {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
}

.title-secondary-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: min(360px, 100%);
}

.title-secondary-row > button {
  min-width: 0;
  max-width: 100%;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  filter: drop-shadow(0 4px 10px rgba(42, 22, 14, 0.28));
}

.title-secondary-row > button img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ==================== FLOATING 3-ZONE GAMEPLAY HUD (ROUND 5 SPATIAL) ==================== */

.game-hud {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
}

.top-hud {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  min-height: 54px;
  padding: 7px 14px;
  display: flex;
  flex-wrap: nowrap !important;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: linear-gradient(180deg, rgba(90, 57, 46, 0.36) 0%, rgba(90, 57, 46, 0) 100%);
  pointer-events: none;
  z-index: 50;
}

.hud-cluster {
  display: flex;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 7px;
  pointer-events: auto;
  min-width: 0;
}

.hud-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 38px;
  padding: 0 6px 0 2px;
  white-space: nowrap;
  overflow: visible !important;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--vc-ink);
}

.popout-pill .pop-icon {
  width: 28px;
  height: 28px;
  margin: -8px 2px -8px -10px;
  object-fit: contain;
  flex-shrink: 0;
  pointer-events: none;
}

.pill-value {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: 14px;
  color: var(--vc-ink);
}

.pill-text {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--vc-ink);
}

.pill-sub {
  font-size: 13px;
  padding: 1px 6px;
  border-radius: 8px;
  background-color: #E8C794;
  color: #2E1A12;
  font-weight: 800;
}

.pill-sub.rush-active {
  background-color: #95B853;
  color: #1F140E;
}

.hud-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 40px;
  padding: 0 8px;
  font-size: 13.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

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

.hud-icon-only {
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hud-icon-only img {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.exit-door-svg {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.cozy-toast-banner {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 55;
  padding: 4px 16px;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--vc-ink);
  pointer-events: none !important;
  white-space: nowrap;
}

#cozy-toast-text {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.toast-inline-ico {
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ==================== COMPACT FLOATING BENCH WINGS (PLAYFIELD >= 70%) ==================== */

.bench-wing {
  position: fixed;
  top: 56px;
  bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  pointer-events: none;
  z-index: 35;
}

.left-wing {
  left: 10px;
  width: clamp(248px, 14.8vw, 282px);
}

.right-wing {
  right: 10px;
  width: clamp(260px, 15.6vw, 298px);
}

.bench-wing > section,
.bench-wing > div {
  pointer-events: auto;
}

.order-ticket-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px 6px;
}

.ticket-header-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ticket-avatar {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background-color: #FBF2DF;
  border: 2px solid var(--vc-border);
  object-fit: contain;
  flex-shrink: 0;
}

.ticket-title-col {
  flex: 1;
  min-width: 0;
}

.ticket-cust-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.ticket-cust-name {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--vc-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-order-badge {
  font-size: 13px;
  padding: 1px 6px;
  border-radius: 6px;
  background-color: #E7C89E;
  color: var(--vc-ink);
  flex-shrink: 0;
}

.ticket-drink-name {
  font-family: var(--font-display);
  font-size: 14px;
  color: #5C301E;
  line-height: 1.18;
  overflow-wrap: break-word;
}

.ticket-dialogue {
  margin: 0;
  font-size: 13px;
  line-height: 1.26;
  color: #3D2319;
  background-color: #FFF9EC;
  border-radius: 8px;
  padding: 4px 6px;
  border: 1.5px dashed #B58B6D;
}

.ticket-reply-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.reply-chip {
  min-width: 0;
  max-width: 100%;
  min-height: 32px;
  padding: 1px 4px;
  font-size: 13px;
  cursor: pointer;
  text-align: center;
}

.ticket-patience-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ticket-mood-label {
  font-size: 13px;
  color: var(--vc-ink);
  white-space: nowrap;
}

.patience-track {
  flex: 1;
  height: 14px;
  overflow: hidden;
}

.patience-fill {
  height: 100%;
  transition: width 0.2s linear;
}

.recipe-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.recipe-checklist li {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 3px 5px;
  border-radius: 7px;
  background-color: #FFFDF7;
  border: 1.5px solid #D5B895;
  font-size: 13px;
  color: var(--vc-ink);
}

.recipe-checklist li.done {
  background-color: #E3F1C8;
  border-color: #6B9436;
  color: #1F2E0E;
}

.recipe-checklist li.active-step {
  background-color: #FDE7BA;
  border-color: #B8742A;
}

.recipe-checklist li .chk-name {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.1;
}

.recipe-checklist li .chk-mark {
  font-weight: 800;
  flex-shrink: 0;
}

/* Left Syrup, Milk & Ice Shelf — Roomy 2-Column Readable Grid (>=13px) */
.syrup-shelf-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px 5px;
  overflow-y: auto;
  max-height: 100%;
  scrollbar-width: thin;
}

.shelf-header-row,
.latte-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  flex-wrap: wrap;
}

.shelf-title {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--vc-ink);
}

.shelf-hint,
.latte-acc-pill {
  font-size: 13px;
  padding: 1px 7px;
  border-radius: 999px;
  background-color: #EAD3B2;
  color: var(--vc-ink);
  white-space: nowrap;
}

.shelf-unlock-hint {
  font-size: 12px;
  line-height: 1.25;
  padding: 3px 7px;
  border-radius: 7px;
  background-color: #FFF2C9;
  border: 1.5px solid #C8923E;
  color: #5A3518;
  font-weight: 700;
  text-align: center;
}

.ingredient-shelf-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  align-content: start;
}

.ingredient-btn {
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  border-width: 6px 6px 7px 6px;
  padding: 1px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  text-align: center;
  font-size: 13px;
}

.ingredient-btn.needed {
  outline: 2.5px solid #6E9E2D;
  outline-offset: -1px;
  background-color: #EAF5D3;
}

.ingredient-btn.added {
  background-color: #DCEFC0;
}

.ingredient-btn.locked-ing {
  opacity: 0.88;
  background-color: #F4E6CE;
}

.ing-top-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
}

.ing-swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid #5A392E;
  flex-shrink: 0;
}

.ing-hotkey {
  font-size: 12px;
  padding: 0 4px;
  border-radius: 4px;
  background-color: #FBF2DF;
  color: var(--vc-ink);
  white-space: nowrap;
}

.ing-hotkey.is-unlock {
  background-color: #FCE2A6;
  border: 1px solid #B57B2B;
  color: #4D2B12;
  font-weight: 800;
}

.ing-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 17px;
  padding: 0 4px;
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  color: #4A281C;
  background-color: #FFFBF2;
  border: 1px solid #8A5D43;
  border-bottom-width: 2.5px;
  border-radius: 4px;
}

.ing-inf {
  font-size: 12px;
  font-weight: 800;
  color: #547A26;
  line-height: 1;
}

.ing-label {
  display: block;
  width: 100%;
  font-size: 13px;
  line-height: 1.08;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  color: var(--vc-ink);
}

/* ==================== CENTER COUNTER SERVE ACTION BAR ==================== */

.center-serve-bar {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 42;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.serve-bar-btn {
  height: 46px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  white-space: nowrap;
}

.serve-bar-btn img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.serve-primary-cta {
  height: 52px;
  padding: 0 18px;
  font-size: 16px;
}

.serve-primary-cta.serve-not-ready {
  opacity: 0.68;
  filter: saturate(0.55);
}

.serve-primary-cta img {
  width: 32px;
  height: 32px;
}

/* ==================== RIGHT ZONE: ESPRESSO GROUPHEAD & LATTE ART ==================== */

.bench-tabs-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.bench-tab {
  min-width: 0;
  max-width: 100%;
  height: 34px;
  border-radius: 10px 10px 4px 4px;
  border: 2px solid var(--vc-border);
  background-color: #EAD6B8;
  color: var(--vc-ink);
  font-size: 13px;
  padding: 0 4px;
  cursor: pointer;
}

.bench-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 6px;
}

.bench-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.bench-active-title {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--vc-ink);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bench-grade-chip {
  font-size: 13px;
  padding: 0 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.sweetspot-dial-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sweetspot-bar-outer {
  position: relative;
  width: 100%;
  height: 24px;
  overflow: hidden;
  cursor: pointer;
}

.sweetspot-target-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  background-color: rgba(114, 178, 56, 0.52);
  border-left: 2px solid #2E5A12;
  border-right: 2px solid #2E5A12;
  z-index: 2;
  pointer-events: none;
}

.sweetspot-fill {
  position: relative;
  z-index: 1;
  height: 100%;
  transition: width 0.04s linear;
}

.sweetspot-needle {
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 4px;
  margin-left: -2px;
  background-color: #2E1A12;
  border: 1px solid #FFFDF7;
  border-radius: 2px;
  z-index: 4;
  pointer-events: none;
}

.sweetspot-labels-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #4A2D22;
}

.sweetspot-zone-lbl {
  color: #295210;
  font-weight: 800;
}

.bench-controls-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  align-content: start;
}

.craft-step-btn {
  min-width: 0;
  max-width: 100%;
  min-height: 48px;
  border-width: 7px 7px 8px 7px;
  padding: 2px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 13px;
}

.craft-step-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  line-height: 1.1;
  color: var(--vc-ink);
  text-align: center;
  font-size: 13px;
}

.craft-step-btn.step-current {
  outline: 2.5px solid #6E9E2D;
  background-color: #EAF5D3;
}

.craft-step-btn.step-done {
  background-color: #DCEFC0;
}

.step-key-tag {
  font-size: 12px;
  color: #4A2D22;
}

.step-score-mini {
  font-size: 12px;
  color: #295210;
  font-weight: 800;
}

.steam-depth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding-top: 2px;
}

.steam-depth-lbl {
  font-size: 13px;
  color: var(--vc-ink);
  min-width: 0;
  white-space: nowrap;
}

.wand-chip {
  height: 28px;
  padding: 0 7px;
  border-radius: 8px;
  border: 1.5px solid var(--vc-border);
  background-color: #FBF2DF;
  color: var(--vc-ink);
  font-size: 13px;
  cursor: pointer;
  flex-shrink: 0;
}

.wand-chip.active {
  background-color: #95B853;
  color: #1F140E;
}

/* Mouse-Drawn Latte Art Studio — Clean Vertical Stack so Buttons Have Full Width */
.latte-art-card {
  gap: 5px;
  overflow-y: auto;
}

.latte-studio-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.latte-canvas-wrap {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  padding: 4px;
  background-color: #FFFDF7;
  border: 3px solid var(--vc-border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#latte-art-canvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  cursor: crosshair;
  touch-action: none;
  display: block;
}

.latte-side-controls {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.stencil-pills-wrap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}

.stencil-pill {
  min-width: 0;
  max-width: 100%;
  min-height: 28px;
  padding: 1px 3px;
  border-radius: 7px;
  border: 1.5px solid var(--vc-border);
  background-color: #FFF9EC;
  color: var(--vc-ink);
  font-size: 12.5px;
  cursor: pointer;
}

.stencil-pill.active {
  background-color: #FDE2AE;
  border-width: 2px;
}

.stencil-pill.locked-stencil {
  opacity: 0.62;
}

.latte-tool-btn {
  width: 100%;
  min-height: 32px;
  font-size: 13px;
  padding: 0 4px;
}

.latte-mini-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.latte-mini-btn {
  min-width: 0;
  max-width: 100%;
  min-height: 34px;
  border-width: 6px 6px 6px 6px;
  font-size: 13px;
  padding: 0 4px;
  cursor: pointer;
}

.latte-mini-btn .btn-label,
.reply-chip .btn-label,
.stencil-pill .btn-label {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  line-height: 1.08;
}

/* ==================== PILLAR 3: SPOTLIGHT RING + POINTER HAND + 3-5 WORD FTUE ==================== */

.tut-spotlight {
  position: fixed;
  z-index: 43;
  border-radius: 14px;
  border: 3px solid #F4B956;
  outline: 2px solid #4A281C;
  pointer-events: none !important;
  will-change: transform;
  animation: tbSpotPulse 1.2s ease-in-out infinite alternate;
}

@keyframes tbSpotPulse {
  from { transform: scale3d(0.98, 0.98, 1); }
  to { transform: scale3d(1.03, 1.03, 1); }
}

.tut-hand {
  position: fixed;
  z-index: 45;
  width: 42px;
  height: 42px;
  pointer-events: none !important;
  will-change: transform;
  animation: tbHandBob 0.9s ease-in-out infinite alternate;
}

@keyframes tbHandBob {
  from { transform: translate3d(0, 0, 0) rotate(-8deg); }
  to { transform: translate3d(-5px, -8px, 0) rotate(-14deg); }
}

.tut-hand.tut-hand-corner {
  animation: tbHandCornerBob 0.9s ease-in-out infinite alternate;
}

@keyframes tbHandCornerBob {
  from { transform: translate3d(2px, 0, 0) rotate(-24deg); }
  to { transform: translate3d(6px, 4px, 0) rotate(-28deg); }
}

.ftue-coach-layer {
  position: fixed;
  bottom: 68px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 44;
  pointer-events: none !important;
}

.ftue-coach-card {
  pointer-events: auto;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.ftue-step-ico {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.ftue-step-badge {
  font-family: var(--font-display);
  font-size: 13px;
  padding: 1px 7px;
  border-radius: 999px;
  background-color: #EAD3B2;
  color: #5C301E;
}

.ftue-coach-text {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--vc-ink);
}

.ftue-skip-btn {
  height: 30px;
  padding: 0 10px;
  font-size: 13px;
}

/* ==================== PILLAR 5: VISUAL-FIRST (60/25/15) MODAL SYSTEM ==================== */

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 110;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(46, 26, 18, 0.58);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.modal-card {
  width: min(940px, 94vw);
  max-height: 91vh;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 14px 10px;
  overflow: hidden;
  box-shadow: 0 6px 0 rgba(38, 20, 12, 0.35);
}

.modal-card.modal-compact {
  width: min(640px, 92vw);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 5px;
  border-bottom: 2px dashed #C7A786;
}

.vf-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.vf-help-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.vf-help-btn img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.modal-ribbon-title {
  margin: 0;
  font-size: 19px;
  padding: 1px 14px;
  color: var(--vc-ink);
}

.modal-tabs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.modal-tab {
  height: 38px;
  padding: 0 10px;
  border-radius: 10px 10px 4px 4px;
  border: 2px solid var(--vc-border);
  background-color: #EAD6B8;
  color: var(--vc-ink);
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.modal-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 2px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 5px;
  border-top: 2px dashed #C7A786;
}

.settings-ver-tag {
  margin-right: auto;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--vc-ink-soft);
  opacity: 0.78;
}

/* Visual-First Grids (Balanced 2, 3, 4, 7 cols — zero orphan rows!) */
.shop-grid,
.vf-grid-3,
.modal-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

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

.vf-grid-2,
.modal-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.daily-grid-7 {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

/* 60/25/15 Portrait & Medal Cards (>= 55% Artwork Prominence!) */
.vf-card-portrait,
.vf-medal-tile {
  position: relative;
  min-width: 0;
  max-width: 100%;
  padding: 5px 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  text-align: center;
}

.vf-card-top-badges {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.vf-lv-badge {
  margin-left: auto;
  padding: 1px 7px;
  border-radius: 999px;
  background-color: #EAD3B2;
  border: 1.5px solid #B58B6D;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 800;
  color: var(--vc-ink);
}

.vf-art-stage {
  width: 100%;
  height: 68px;
  border-radius: 10px;
  background: radial-gradient(circle at 50% 45%, #FFFDF8 0%, #F3DFBE 100%);
  border: 1.5px solid #D5B895;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.vf-art-stage.lg {
  height: 76px;
}

.vf-art-stage.sm {
  height: 54px;
}

.vf-art-img {
  max-width: 88%;
  max-height: 92%;
  width: auto;
  height: 100%;
  object-fit: contain;
}

.vf-theme-preview {
  width: 100%;
  height: 68px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--vc-border);
}

.vf-theme-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vf-card-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--vc-ink);
  max-width: 100%;
  overflow-wrap: anywhere;
}

.vf-stat-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background-color: #EAF5D3;
  border: 1.5px solid #8AB24E;
  font-size: 13px;
  font-weight: 800;
  color: #24480E;
}

.vf-cta-btn {
  width: 100%;
  min-height: 36px;
  padding: 0 8px;
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.vf-sub-pill {
  min-height: 34px;
  padding: 0 10px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.vf-pill-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.vf-ico-sm {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.vf-ico-xs {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Hero Banner Cards inside Modals */
.vf-hero-card {
  padding: 6px 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.vf-hero-art {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  background-color: #FFFDF7;
  border: 2px solid #C8A682;
  object-fit: contain;
  flex-shrink: 0;
}

.vf-hero-art.round {
  border-radius: 50%;
}

.vf-hero-meta {
  flex: 1;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.vf-hero-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--vc-ink);
}

.vf-mini-bar {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background-color: #D7B48A;
  border: 1.5px solid var(--vc-border);
  overflow: hidden;
}

.vf-mini-bar-fill {
  height: 100%;
  background-color: #83B84E;
  transition: width 0.2s ease;
}

.shop-badge-tag {
  position: absolute;
  top: -10px;
  right: 6px;
  z-index: 5;
  padding: 2px 8px;
  border-radius: 999px;
  background-color: #D9483B;
  border: 2px solid #FFFDF7;
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
}

/* House Special Creator & Gift Bar */
.vf-special-editor {
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vf-special-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.house-special-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.vf-gift-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cozy-input,
.cozy-select {
  width: 100%;
  height: 36px;
  padding: 0 8px;
  border-radius: 8px;
  border: 2px solid var(--vc-border);
  background-color: #FFFDF7;
  color: var(--vc-ink);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
}

/* 3-Icon Visual Feature Guide Strip */
.fg-tabs-bar {
  justify-content: center;
}

.fg-visual-strip {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
  padding: 6px 0;
}

.fg-step-card {
  flex: 1;
  min-width: 0;
}

.fg-strip-arrow {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--vc-border);
}

/* Victory 3-Star Ledger & Audio Sliders */
.vf-victory-banner {
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.ledger-stars-trio {
  display: inline-flex;
  align-items: flex-end;
  gap: 10px;
}

.vf-star-medal {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.vf-star-medal.lg {
  width: 56px;
  height: 56px;
}

.vf-victory-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--vc-ink);
}

.vf-audio-card {
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.vf-audio-ico {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}

.vf-audio-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vf-audio-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.vf-mute-pill {
  min-height: 28px;
  padding: 0 8px;
  font-size: 12.5px;
}

.vf-range {
  width: 100%;
  accent-color: #79A642;
  cursor: pointer;
}

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

.lang-choice-btn {
  min-width: 0;
  height: 38px;
  font-size: 13.5px;
}

/* ==================== 3-SEASON ALMANAC & ORDER PEEK STYLES ==================== */

.peek-chip-btn {
  height: 24px;
  padding: 0 6px;
  border-radius: 6px;
  border: 1.5px solid var(--vc-border);
  background-color: #FDE2AE;
  color: var(--vc-ink);
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
}

.ticket-peek-box {
  margin-top: 2px;
  padding: 2px 6px;
  border-radius: 6px;
  background-color: #EAF5D3;
  border: 1.5px solid #6E9E2D;
  font-size: 12.5px;
  color: #1F2E0E;
  line-height: 1.2;
}

.shelf-filter-tabs {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

.shelf-tab-pill {
  height: 24px;
  padding: 0 6px;
  border-radius: 6px;
  border: 1.5px solid var(--vc-border);
  background-color: #FFF9EC;
  color: var(--vc-ink);
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
}

.shelf-tab-pill.active {
  background-color: #FDE2AE;
}

.sz-tabs-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.sz-tabs-bar .modal-tab {
  min-width: 0;
  width: 100%;
  padding: 0 6px;
  font-size: 13px;
  text-align: center;
}

.sz-tab-pane {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ==================== PREVIEW-ONLY DEBUG PANEL ==================== */

.debug-root {
  position: fixed;
  bottom: 10px;
  right: 10px;
  z-index: 160;
}

.dev-pill-btn {
  height: 28px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1.5px solid var(--vc-border);
  background-color: #FDE2AE;
  color: var(--vc-ink);
  font-size: 12px;
  cursor: pointer;
}

.debug-drawer {
  margin-top: 6px;
  width: 260px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.debug-drawer button {
  height: 32px;
  font-size: 12.5px;
}

/* ==================== 1280x720 LAPTOP COMPACT RESPONSIVE FIT (PLAYFIELD >= 65.8%, TEXT >= 12px) ==================== */

@media (max-width: 1460px), (max-height: 820px) {
  .top-hud {
    min-height: 46px;
    padding: 5px 8px;
    gap: 4px;
  }

  .hud-cluster {
    gap: 4px;
  }

  .hud-pill {
    height: 32px;
    border-width: 7px 10px 7px 10px;
    font-size: 12.5px;
    padding: 0 4px 0 1px;
  }

  .pill-value,
  .pill-text,
  .pill-sub {
    font-size: 12px;
  }

  .popout-pill .pop-icon {
    width: 22px;
    height: 22px;
    margin: -5px 2px -5px -8px;
  }

  .hud-nav-btn {
    height: 34px;
    padding: 0 5px;
    font-size: 12px;
    border-width: 6px 7px 7px 7px;
    gap: 3px;
  }

  .hud-nav-btn img {
    width: 19px;
    height: 19px;
  }

  .hud-icon-only {
    width: 34px;
    height: 34px;
    border-width: 7px 7px 8px 7px;
  }

  .hud-icon-only img {
    width: 20px;
    height: 20px;
  }

  .notify-badge {
    top: -10px;
    right: 0;
    min-width: 18px;
    height: 18px;
    font-size: 12px;
    line-height: 14px;
    padding: 0 4px;
  }

  button.hud-pill:has(> .notify-badge:not(.hidden)),
  button.hud-nav-btn:has(> .notify-badge:not(.hidden)) {
    padding-right: 16px;
  }

  /* Combined Sidebars: 212 + 222 = 434 / 1280 = 33.9% <= 36% (Playfield = 66.1%!) */
  .bench-wing {
    top: 48px;
    bottom: 8px;
    gap: 5px;
  }

  .left-wing {
    left: 6px;
    width: 212px;
  }

  .right-wing {
    right: 6px;
    width: 222px;
  }

  .order-ticket-card,
  .bench-card {
    padding: 3px 4px;
    gap: 4px;
    border-width: 9px 9px 9px 9px;
  }

  .ticket-avatar {
    width: 34px;
    height: 34px;
  }

  .ticket-cust-name,
  .ticket-drink-name,
  .shelf-title,
  .bench-active-title {
    font-size: 12.5px;
  }

  .ticket-order-badge,
  .ticket-dialogue,
  .reply-chip,
  .ticket-mood-label,
  .recipe-checklist li,
  .shelf-hint,
  .latte-acc-pill,
  .ingredient-btn,
  .ing-hotkey,
  .ing-label,
  .bench-tab,
  .bench-grade-chip,
  .sweetspot-labels-row,
  .craft-step-btn,
  .craft-step-top,
  .step-key-tag,
  .step-score-mini,
  .steam-depth-lbl,
  .wand-chip,
  .stencil-pill,
  .latte-tool-btn,
  .latte-mini-btn {
    font-size: 12px;
  }

  .ticket-dialogue {
    padding: 3px 5px;
    line-height: 1.18;
  }

  .reply-chip {
    min-height: 26px;
    border-width: 5px 5px 5px 5px;
  }

  .recipe-checklist li {
    padding: 2px 4px;
  }

  .ingredient-btn {
    min-height: 38px;
    border-width: 5px 5px 6px 5px;
  }

  .center-serve-bar {
    bottom: 8px;
    gap: 6px;
  }

  .serve-bar-btn {
    height: 38px;
    padding: 0 8px;
    font-size: 12px;
    border-width: 7px 8px 8px 8px;
  }

  .serve-bar-btn img {
    width: 22px;
    height: 22px;
  }

  .serve-primary-cta {
    height: 42px;
    padding: 0 12px;
    font-size: 13.5px;
  }

  .serve-primary-cta img {
    width: 26px;
    height: 26px;
  }

  .bench-tab {
    height: 28px;
  }

  .sweetspot-bar-outer {
    height: 19px;
  }

  .craft-step-btn {
    min-height: 40px;
    border-width: 5px 5px 6px 5px;
  }

  .latte-canvas-wrap {
    width: 96px;
    height: 96px;
    padding: 3px;
  }

  .stencil-pills-wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stencil-pill {
    min-height: 24px;
  }

  .latte-tool-btn,
  .latte-mini-btn {
    min-height: 28px;
    border-width: 5px 5px 5px 5px;
  }

  .ftue-coach-layer {
    bottom: 54px;
  }

  .modal-card {
    width: min(900px, 95vw);
    max-height: 93vh;
    padding: 6px 10px 8px;
    gap: 6px;
  }

  /* #3576: Zero-scroll 1280x720 Roastery Boutique fit (all 9 packs visible cleanly without vertical scroll!) */
  .modal-card.modal-shop {
    max-height: 96vh;
    border-width: 12px 13px 12px 13px;
    padding: 4px 10px 5px;
    gap: 4px;
  }

  .modal-card.modal-shop .modal-header {
    padding-bottom: 2px;
  }

  .modal-card.modal-shop .modal-ribbon-title {
    font-size: 16px;
    border-width: 8px 14px 8px 14px;
    padding: 0 10px;
  }

  .modal-card.modal-shop .modal-body {
    padding: 1px;
    gap: 4px;
    overflow-y: visible;
  }

  .modal-card.modal-shop .shop-grid {
    gap: 5px 8px;
    padding-top: 6px;
  }

  .modal-card.modal-shop .shop-vf-card {
    padding: 3px 6px;
    gap: 2px;
    border-width: 7px 7px 7px 7px;
  }

  .modal-card.modal-shop .shop-vf-card .vf-art-stage.lg {
    height: 50px;
    padding: 2px;
  }

  .modal-card.modal-shop .shop-vf-card .vf-card-name {
    font-size: 12.5px;
    line-height: 1.1;
  }

  .modal-card.modal-shop .shop-vf-card .vf-stat-chip {
    padding: 1px 7px;
    font-size: 12px;
  }

  .modal-card.modal-shop .shop-vf-card .vf-cta-btn {
    min-height: 29px;
    border-width: 6px 8px 7px 8px;
    font-size: 12px;
  }

  .modal-card.modal-shop .modal-footer {
    padding-top: 3px;
  }

  .modal-card.modal-shop #btn-shop-restore {
    height: 30px !important;
    border-width: 6px 8px 7px 8px;
    font-size: 12px !important;
  }

  .vf-art-stage {
    height: 54px;
  }

  .vf-art-stage.lg {
    height: 60px;
  }

  .vf-art-stage.sm {
    height: 44px;
  }

  .vf-card-name,
  .vf-cta-btn {
    font-size: 12.5px;
  }

  .vf-cta-btn {
    min-height: 32px;
  }

  .house-special-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .left-wing,
  .right-wing {
    width: 46vw;
    max-height: 48vh;
    top: auto;
    bottom: 50px;
  }

  .shop-grid,
  .vf-grid-3,
  .vf-grid-4,
  .modal-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fg-visual-strip {
    flex-direction: column;
  }
}
