.store-shell {
  position: relative;
  min-height: 0;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,0,0,0.3);
  background: #8b98a0;
}

.wall-top, .wall-bottom {
  position: absolute;
  left: 0; right: 0;
  height: 92px;
  background:
    /* horizontal plank shadow lines */
    repeating-linear-gradient(180deg,
      transparent 0 18px,
      rgba(0,0,0,0.18) 18px 19px,
      rgba(255,255,255,0.05) 19px 20px),
    /* vertical wood grain */
    repeating-linear-gradient(90deg,
      rgba(0,0,0,0.06) 0 2px,
      transparent 2px 6px,
      rgba(255,255,255,0.04) 6px 7px,
      transparent 7px 11px),
    linear-gradient(180deg, #a07651 0%, #7d5836 45%, #5a3d22 100%);
  z-index: 6;
  border-bottom: 4px solid #2d1a0e;
  box-shadow:
    inset 0 -6px 0 rgba(0,0,0,0.18),
    inset 0 4px 0 rgba(255,255,255,0.08),
    0 6px 16px rgba(0,0,0,0.35);
  image-rendering: auto;
}

/* Crown molding trim across the bottom edge of the wall */
.wall-top::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 10px;
  background:
    repeating-linear-gradient(90deg,
      #fbbf24 0 4px,
      #d97706 4px 8px,
      #92400e 8px 12px,
      #d97706 12px 16px);
  border-top: 2px solid #3d1f08;
  border-bottom: 2px solid #1a0a02;
  box-shadow: 0 3px 8px rgba(0,0,0,0.4);
  z-index: 1;
}

.wall-bottom {
  display: none;
}

.windows-sky {
  position: absolute;
  top: 10px;
  left: 28px;
  right: 28px;
  height: 70px;
  border-radius: 2px;
  z-index: 7;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(180deg, #8fd3ff 0%, #5a9fe0 60%, #4f81c7 100%);
  --night-opacity: 0.95;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.15);
}

.windows-sky::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 7% 20%, rgba(255,255,255,0.35) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 14% 55%, rgba(255,255,255,0.22) 0 1px, transparent 2px),
    radial-gradient(circle at 22% 28%, rgba(255,255,255,0.3) 0 1px, transparent 2px),
    radial-gradient(circle at 33% 15%, rgba(255,255,255,0.28) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 39% 68%, rgba(255,255,255,0.2) 0 1px, transparent 2px),
    radial-gradient(circle at 48% 35%, rgba(255,255,255,0.26) 0 1px, transparent 2px),
    radial-gradient(circle at 55% 18%, rgba(255,255,255,0.32) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 62% 52%, rgba(255,255,255,0.24) 0 1px, transparent 2px),
    radial-gradient(circle at 70% 25%, rgba(255,255,255,0.3) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 60%, rgba(255,255,255,0.22) 0 1px, transparent 2px),
    radial-gradient(circle at 82% 20%, rgba(255,255,255,0.28) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 91% 42%, rgba(255,255,255,0.25) 0 1px, transparent 2px),
    radial-gradient(circle at 95% 15%, rgba(255,255,255,0.2) 0 1px, transparent 2px);
  opacity: 0;
  transition: opacity 0.6s ease;
}

.windows-sky.night::before {
  opacity: var(--night-opacity);
}

.windows-sky::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(transparent, rgba(0,0,0,0.12));
  pointer-events: none;
}

.sky-orb {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  top: 8px;
  left: 0;
  transform: translateX(0);
  background: #ffe066;
  box-shadow: 0 0 24px rgba(255, 214, 102, 0.9), 0 0 60px rgba(255,180,50,0.3), 0 0 8px rgba(255,238,102,0.6);
  transition: background 0.8s ease, box-shadow 0.8s ease, width 0.3s ease, height 0.3s ease;
}

.windows {
  position: absolute;
  top: 10px;
  left: 28px;
  right: 28px;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
  z-index: 8;
  pointer-events: none;
}

.window {
  width: 100%;
  height: 70px;
  border: 3px solid #2d1a0a;
  border-radius: 2px;
  background:
    /* frame inner highlight */
    linear-gradient(180deg,
      rgba(255,255,255,0.25) 0%,
      rgba(255,255,255,0.08) 35%,
      rgba(255,255,255,0) 60%),
    /* glass */
    linear-gradient(180deg,
      rgba(201, 236, 255, 0.35) 0%,
      rgba(143, 195, 250, 0.18) 55%,
      rgba(85, 141, 214, 0.3) 100%);
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,0.18),
    inset 2px 2px 0 rgba(255,255,255,0.3),
    inset -2px -2px 0 rgba(0,0,0,0.25),
    0 2px 4px rgba(0,0,0,0.25);
}

/* Diagonal glass shine */
.window::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    transparent 0 30%,
    rgba(255,255,255,0.22) 30% 40%,
    transparent 40% 62%,
    rgba(255,255,255,0.1) 62% 68%,
    transparent 68%);
  pointer-events: none;
}

/* Muntin bar (cross) for window panes */
.window::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      transparent calc(50% - 2px),
      #3d2818 calc(50% - 2px) calc(50% + 2px),
      transparent calc(50% + 2px)),
    linear-gradient(180deg,
      transparent calc(50% - 2px),
      #3d2818 calc(50% - 2px) calc(50% + 2px),
      transparent calc(50% + 2px));
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.1);
  pointer-events: none;
}

.store-floor {
  position: relative;
  min-height: 0;
  height: 100%;
  padding: clamp(108px, 13dvh, 124px) 334px 16px 24px;
  background:
    /* ambient lights */
    radial-gradient(ellipse at 18% 6%, rgba(255, 245, 200, 0.28), transparent 30%),
    radial-gradient(ellipse at 82% 8%, rgba(255, 245, 200, 0.22), transparent 32%),
    radial-gradient(circle at 50% 110%, rgba(0,0,0,0.12), transparent 45%),
    /* checkerboard (alternating darker tiles) */
    repeating-conic-gradient(
      rgba(0,0,0,0.06) 0% 25%,
      transparent 25% 50%)
      0 0 / 64px 64px,
    /* grout lines */
    linear-gradient(90deg, rgba(0,0,0,0.22) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(180deg, rgba(0,0,0,0.22) 1px, transparent 1px) 0 0 / 32px 32px,
    /* tile highlight */
    linear-gradient(90deg, rgba(255,255,255,0.18) 1px, transparent 1px) 1px 1px / 32px 32px,
    linear-gradient(180deg, rgba(255,255,255,0.18) 1px, transparent 1px) 1px 1px / 32px 32px,
    /* base tile color */
    linear-gradient(180deg, #e7efee 0%, #d5e2e0 50%, #bfd0cd 100%);
}

.store-banner {
  position: absolute;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 7;
  background:
    linear-gradient(180deg,
      rgba(255,255,255,0.25) 0 40%,
      transparent 40%),
    linear-gradient(135deg, #ef4444 0%, #b91c1c 55%, #7f1d1d 100%);
  border: 3px solid #fef9c3;
  border-radius: 6px;
  color: #fff7d6;
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  padding: 10px 22px;
  box-shadow:
    0 0 0 3px #1f0a0a,
    0 6px 0 #4a0e0e,
    0 10px 22px rgba(0, 0, 0, 0.5),
    inset 0 2px 0 rgba(255, 255, 255, 0.4),
    inset 0 -3px 0 rgba(0, 0, 0, 0.25);
  text-shadow: 1px 1px 0 #7f1d1d, 2px 2px 0 rgba(0, 0, 0, 0.4);
  letter-spacing: 3px;
}

.lanes-area {
  position: relative;
  display: grid;
  grid-template-columns: 292px minmax(760px, 1fr);
  gap: 18px;
  align-items: stretch;
  height: 100%;
  min-height: 0;
}

.service-office {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(25, 35, 52, 0.95) 0%, rgba(12, 18, 35, 0.97) 100%);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  padding: 10px;
  color: #f1f5f9;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.office-action-cta {
  width: 100%;
  border: 1px solid rgba(20, 184, 166, 0.25);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.2), rgba(15, 118, 110, 0.12));
  color: #ccfbf1;
  font-family: 'VT323', monospace;
  font-size: 14px;
  line-height: 1.3;
  text-align: left;
  padding: 8px 12px;
  margin-bottom: 0;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.office-action-cta:hover {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.32), rgba(15, 118, 110, 0.24));
  border-color: rgba(20, 184, 166, 0.45);
  box-shadow: 0 0 16px rgba(20, 184, 166, 0.12);
  transform: translateY(-1px);
}

.office-action-cta strong {
  display: block;
  margin-bottom: 2px;
  color: #5eead4;
  font-size: 14px;
}

/* Deposit-active: service office border glows amber when a lane needs cash deposit */
.service-office.deposit-active {
  border-color: rgba(251, 191, 36, 0.5);
  animation: officeDepositGlow 1.8s ease-in-out infinite;
}

/* Urgent CTA button when deposit is pending */
.office-action-cta.deposit-urgent {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.3), rgba(217, 119, 6, 0.2));
  border-color: rgba(251, 191, 36, 0.6);
  color: #fef3c7;
  animation: ctaDepositPulse 1.4s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.2), 0 0 24px rgba(251, 191, 36, 0.1);
}
.office-action-cta.deposit-urgent:hover {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.45), rgba(217, 119, 6, 0.3));
  border-color: rgba(251, 191, 36, 0.8);
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.35), 0 0 32px rgba(251, 191, 36, 0.15);
}
.office-action-cta.deposit-urgent strong {
  color: #fbbf24;
}

.service-office h2,
.staff-panel h2 {
  font-family: 'VT323', monospace;
  font-size: 18px;
  letter-spacing: 3px;
  margin: 0 0 4px;
  color: #e2e8f0;
  flex-shrink: 0;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(226, 232, 240, 0.15);
}

.staff-panel h2 {
  margin-bottom: 6px;
}

.office-door {
  display: none;
}

.office-stats,
.office-assigned,
.office-insights {
  background: rgba(15, 23, 42, 0.35);
  padding: 6px;
  border: 1px solid rgba(148, 163, 184, 0.06);
  border-radius: 10px;
  margin-bottom: 0;
  line-height: 1.3;
  font-size: 13px;
  flex-shrink: 0;
}

.office-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2px 6px;
}

.office-stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 4px;
  font-size: 13px;
}

.office-stat-item .stat-label {
  color: #94a3b8;
}

.office-stat-item .stat-value {
  color: #e2e8f0;
  font-family: 'VT323', monospace;
  font-size: 15px;
  font-weight: 700;
}

.office-stat-item .stat-value.bad {
  color: #fb7185;
}

.office-insights {
  display: grid;
  gap: 2px;
  font-size: 13px;
}

.insight-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 3px 6px;
  border: none;
  border-radius: 6px;
  background: rgba(30, 41, 59, 0.35);
}

.insight-line span {
  color: #94a3b8;
}

.insight-line b {
  font-family: 'VT323', monospace;
  font-size: 14px;
  color: #67e8f9;
}

.office-assigned {
  display: grid;
  gap: 3px;
  flex: 0 1 auto;
  min-height: 0;
  overflow: hidden;
}

.office-cashier {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 3px 6px;
  background: rgba(30, 41, 59, 0.3);
  border: 1px solid rgba(148, 163, 184, 0.06);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.office-cashier strong {
  color: #e2e8f0;
  font-size: 13px;
}

.office-cashier span {
  display: block;
  text-align: right;
  font-size: 12px;
  color: #94a3b8;
}

.office-cashier.ready span {
  color: #4ade80;
}

.office-cashier.busy {
  border-color: rgba(251, 113, 133, 0.3);
  background: rgba(251, 113, 133, 0.08);
}

.office-cashier.busy span {
  color: #fb7185;
}
