/* ==========================================================================
   BANKER: Cash Register & Money Counting Quest Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hub Screen Box 6 (Dollar Sign Card)
   -------------------------------------------------------------------------- */
.dollar-sign-stage {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FDE047 0%, #EAB308 50%, #CA8A04 100%);
  border: 4px solid #FEF08A;
  box-shadow: 
    0 0 20px rgba(250, 204, 21, 0.6),
    0 8px 0 #854D0E,
    inset 0 2px 4px rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dollar-sign-stage:hover {
  transform: scale(1.1) rotate(5deg);
}

.dollar-sign-stage .dollar-symbol {
  font-size: 3.4rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: #14532D;
  text-shadow: 
    0 2px 0 #BBF7D0,
    0 4px 10px rgba(0, 0, 0, 0.4);
}

/* --------------------------------------------------------------------------
   Banker Game Workspace Layout
   -------------------------------------------------------------------------- */
#banker-app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: radial-gradient(circle at 50% 20%, #0F2A1D 0%, #061A10 100%);
  color: #FFFFFF;
}

.banker-workspace-main {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 16px 24px;
}

@media (max-width: 960px) {
  .banker-workspace-main {
    grid-template-columns: 1fr;
  }
}

.banker-arena {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Top Delivery Card & Target Display */
.banker-target-dock {
  background: rgba(6, 78, 59, 0.7);
  border: 3px solid #10B981;
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.4),
    0 4px 0 #064E3B;
  position: relative;
  overflow: hidden;
}

.banker-target-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.banker-target-label {
  font-size: 0.95rem;
  font-weight: 800;
  color: #A7F3D0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.banker-target-value {
  font-family: var(--font-mono);
  font-size: 2.8rem;
  font-weight: 900;
  color: #FDE047;
  text-shadow: 
    0 0 15px rgba(253, 224, 71, 0.8),
    0 2px 6px rgba(0, 0, 0, 0.8);
  letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   Banker Vault / Upper Cash Tray (Where moved bills go)
   -------------------------------------------------------------------------- */
.banker-vault-tray-box {
  background: rgba(15, 23, 42, 0.85);
  border: 3px solid #334155;
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.6);
  min-height: 170px;
}

.vault-tray-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 6px;
}

.vault-tray-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: #38BDF8;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.vault-tray-hint {
  font-size: 0.8rem;
  color: #94A3B8;
  font-weight: 600;
}

.banker-vault-bills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  min-height: 100px;
}

.vault-empty-message {
  width: 100%;
  text-align: center;
  color: #64748B;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 24px 0;
}

/* --------------------------------------------------------------------------
   Tactile Banknote Bill Cards
   -------------------------------------------------------------------------- */
.banker-bill {
  width: 110px;
  height: 58px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px;
  user-select: none;
  cursor: pointer;
  position: relative;
  box-shadow: 
    0 4px 0 rgba(0, 0, 0, 0.5),
    0 6px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  font-family: var(--font-mono);
}

.banker-bill:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 
    0 8px 0 rgba(0, 0, 0, 0.5),
    0 12px 20px rgba(0, 0, 0, 0.6);
}

.banker-bill:active {
  transform: translateY(1px) scale(0.98);
}

/* In Vault: Click to return hint */
.banker-bill.in-vault {
  animation: billFlyUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  margin: 6px 4px;
}

/* Explicit Red Remove Button on Vault Bills */
.bill-remove-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  background: radial-gradient(circle at 35% 35%, #EF4444 0%, #DC2626 60%, #991B1B 100%);
  color: #FFFFFF;
  border: 2px solid #FEE2E2;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 15;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5), 0 0 8px rgba(239, 68, 68, 0.7);
  padding: 0;
  line-height: 1;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.15s ease, background 0.15s ease;
  pointer-events: auto;
}

.bill-remove-badge:hover {
  transform: scale(1.25);
  background: radial-gradient(circle at 35% 35%, #F87171 0%, #EF4444 60%, #B91C1C 100%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6), 0 0 14px rgba(239, 68, 68, 1);
}

.bill-remove-badge:active {
  transform: scale(0.95);
}

/* Bill Denomination Color Themes */
/* $100 Bill - Royal Blue / Gold */
.bill-100 {
  background: linear-gradient(135deg, #1E3A8A 0%, #1E40AF 50%, #172554 100%);
  border: 2px solid #60A5FA;
  color: #DBEAFE;
}
.bill-100 .bill-center-seal {
  border: 1.5px dashed #93C5FD;
  background: rgba(30, 58, 138, 0.8);
}

/* $10 Bill - Amber / LEGO Orange-Yellow */
.bill-10 {
  background: linear-gradient(135deg, #B45309 0%, #D97706 50%, #78350F 100%);
  border: 2px solid #FBBF24;
  color: #FEF08A;
}
.bill-10 .bill-center-seal {
  border: 1.5px dashed #FDE047;
  background: rgba(180, 83, 9, 0.8);
}

/* $5 Bill - Rich Violet / Cyan */
.bill-5 {
  background: linear-gradient(135deg, #6D28D9 0%, #7C3AED 50%, #4C1D95 100%);
  border: 2px solid #C084FC;
  color: #F3E8FF;
}
.bill-5 .bill-center-seal {
  border: 1.5px dashed #E9D5FF;
  background: rgba(109, 40, 217, 0.8);
}

/* $1 Bill - Classic Banknote Mint Green */
.bill-1 {
  background: linear-gradient(135deg, #065F46 0%, #059669 50%, #022C22 100%);
  border: 2px solid #34D399;
  color: #D1FAE5;
}
.bill-1 .bill-center-seal {
  border: 1.5px dashed #6EE7B7;
  background: rgba(6, 95, 70, 0.8);
}

.bill-top-row, .bill-bottom-row {
  display: flex;
  width: 100%;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1;
}

.bill-center-seal {
  width: 48px;
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   Four Money Stacks Rack at the Bottom ($100, $10, $5, $1)
   -------------------------------------------------------------------------- */
.money-stacks-rack {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

@media (max-width: 768px) {
  .money-stacks-rack {
    grid-template-columns: repeat(2, 1fr);
  }
}

.money-stack-box {
  background: rgba(15, 23, 42, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 12px 8px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.money-stack-box:hover {
  border-color: #38BDF8;
  transform: translateY(-2px);
}

.money-stack-label {
  font-size: 0.85rem;
  font-weight: 800;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* 3D Visual Stack Effect */
.stack-visual-wrapper {
  position: relative;
  width: 110px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.stack-layer-base, .stack-layer-mid {
  position: absolute;
  width: 106px;
  height: 56px;
  border-radius: 6px;
  pointer-events: none;
}

.stack-layer-base {
  top: 10px;
  left: 2px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: rotate(-3deg);
}

.stack-layer-mid {
  top: 6px;
  left: 3px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform: rotate(2deg);
}

.stack-top-bill {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
}

/* --------------------------------------------------------------------------
   Live Bank Register Counter Sidebar
   -------------------------------------------------------------------------- */
.banker-register-card {
  background: rgba(15, 23, 42, 0.95);
  border: 3px solid #0284C7;
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 
    0 10px 25px rgba(0, 0, 0, 0.6),
    0 4px 0 #0369A1;
}

.register-led-screen {
  background: #022C22;
  border: 2px solid #10B981;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8);
}

.register-led-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: #6EE7B7;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.register-led-total {
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 900;
  color: #34D399;
  text-shadow: 
    0 0 12px rgba(52, 211, 153, 0.9),
    0 2px 4px rgba(0, 0, 0, 0.9);
}

.register-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(30, 41, 59, 0.7);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #CBD5E1;
  font-weight: 700;
}

.breakdown-row.active-row {
  color: #FDE047;
}

/* --------------------------------------------------------------------------
   Animations: Bill Flight, Coin Toss Fountain, Unhappy Companion
   -------------------------------------------------------------------------- */
@keyframes billFlyUp {
  0% {
    opacity: 0;
    transform: translateY(60px) scale(0.6) rotate(-8deg);
  }
  70% {
    transform: translateY(-8px) scale(1.08) rotate(2deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

/* Coin Toss Fountain Burst */
.coin-toss-fountain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.fountain-coin {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FEF08A 0%, #F59E0B 70%, #B45309 100%);
  border: 2px solid #FEF08A;
  box-shadow: 
    0 0 10px rgba(245, 158, 11, 0.8),
    0 4px 8px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  color: #78350F;
  animation: coinFountain 1.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes coinFountain {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(0.4) rotate(0deg);
  }
  45% {
    transform: translate(var(--dx), var(--peak-y)) scale(1.3) rotate(360deg);
  }
  85% {
    opacity: 1;
    transform: translate(calc(var(--dx) * 1.3), 110vh) scale(1) rotate(720deg);
  }
  100% {
    opacity: 0;
    transform: translate(calc(var(--dx) * 1.3), 120vh) scale(0.8) rotate(900deg);
  }
}

/* Unhappy Companion Reaction */
.companion-unhappy {
  animation: unhappyShiver 0.5s ease-in-out;
  filter: drop-shadow(0 0 15px rgba(239, 68, 68, 0.8));
}

@keyframes unhappyShiver {
  0%, 100% { transform: translateY(0) rotate(0); }
  20% { transform: translateY(-4px) rotate(-6deg); }
  40% { transform: translateY(2px) rotate(6deg); }
  60% { transform: translateY(-3px) rotate(-4deg); }
  80% { transform: translateY(1px) rotate(3deg); }
}
