/* =========================================================================
   🏪 주점 타이쿤 (Tycoon Main Game) - 붕어빵 타이쿤 카운터·접시·서비스 벨 & 6단계 점포 스타일
   ========================================================================= */

/* 인게임 진행 중 글로벌 상단 헤더 및 하단 탭바 완전 숨김으로 100vh 작업 영역 확보 */
body.tycoon-playing-fullscreen > #app-container > header,
body.tycoon-playing-fullscreen > #app-container > nav.tab-bar {
  display: none !important;
}

#view-tycoon {
  padding: 0 !important;
  overflow: hidden !important;
  display: none;
  flex-direction: column;
  width: 100%;
  height: 100%;
  flex: 1;
}

#view-tycoon.active {
  display: flex;
}

.tycoon-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top, #171226 0%, #090d16 100%);
  color: #f8fafc;
  position: relative;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  box-sizing: border-box;
}

/* =========================================================================
   1. 인게임 100vh 고정 분할 구조 (상단 50% 카운터 씬 / 하단 50% 주조대)
   ========================================================================= */
.tycoon-shell.playing-100vh {
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}

.tycoon-top-45 {
  height: 50%;
  flex: 0 0 50%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #090d16;
  border-bottom: 2px solid rgba(251, 191, 36, 0.55);
  box-sizing: border-box;
  overflow: hidden;
}

.tycoon-bottom-55 {
  height: 50%;
  flex: 0 0 50%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 5px 7px;
  box-sizing: border-box;
  overflow: hidden;
}

/* =========================================================================
   2. 상단 컴팩트 HUD 바
   ========================================================================= */
.tycoon-compact-hud {
  flex-shrink: 0;
  height: 36px;
  min-height: 36px;
  padding: 0 8px;
  background: rgba(9, 13, 22, 0.94);
  border-bottom: 1px solid rgba(71, 85, 105, 0.45);
  display: flex;
  flex-direction: row !important;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  z-index: 10;
  box-sizing: border-box;
}

.hud-left {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.hud-stage-pill {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(180, 83, 9, 0.35));
  border: 1px solid rgba(251, 191, 36, 0.55);
  color: #fde047;
  font-size: 0.63rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 6px;
  white-space: nowrap;
  max-width: 106px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hud-stat {
  color: #e2e8f0;
  font-weight: 700;
  white-space: nowrap;
}

.hud-stat b {
  color: #38bdf8;
  font-weight: 900;
  margin-left: 2px;
}

.hud-stat.gold b {
  color: #fde047;
}

.hud-combo {
  background: rgba(249, 115, 22, 0.2);
  border: 1px solid #fb923c;
  color: #fdba74;
  font-size: 0.62rem;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 999px;
  flex-shrink: 0;
}

.hud-pill {
  font-size: 0.72rem;
  line-height: 1;
  font-weight: 900;
  padding: 3px 6px;
  border-radius: 6px;
  background: rgba(30, 41, 59, 0.9);
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}

.hud-pill.lives-pill {
  border: 1px solid rgba(244, 63, 94, 0.45);
  letter-spacing: 1px;
}

.hud-pill.timer-pill {
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.45);
}

.hud-pill.timer-pill.urgent {
  color: #f43f5e;
  border-color: #f43f5e;
  animation: tycoonPulse 0.6s infinite alternate;
}

@keyframes tycoonPulse {
  from { transform: scale(1); }
  to { transform: scale(1.07); }
}

.hud-right {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.hud-icon-btn {
  width: 26px;
  height: 25px;
  border-radius: 7px;
  border: 1px solid #475569;
  background: #1e293b;
  color: #f8fafc;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.hud-icon-btn.exit-btn {
  border-color: rgba(244, 63, 94, 0.55);
  color: #fda4af;
}

/* =========================================================================
   3. 상단 45% 내 붕어빵 타이쿤 스타일 카운터 씬 (배경 + 1인 손님/말풍선 + 중앙 접시 + 오른쪽 서비스 종)
   ========================================================================= */
.tycoon-counter-scene {
  flex: 1;
  min-height: 0;
  position: relative;
  width: 100%;
  height: 100%;
  background-size: 100% 100%;
  background-position: center bottom;
  background-repeat: no-repeat;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.counter-scene-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(9, 13, 22, 0.18) 0%,
    rgba(9, 13, 22, 0.02) 55%,
    rgba(9, 13, 22, 0.14) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* (A) 카운터 바 바로 너머로 찾아온 상반신 일러스트 손님 1명 & 말풍선 영역 (배경 1:1 절대 좌표계) */
.counter-customer-stage {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.counter-cust-figure {
  position: absolute;
  left: 50.1%;
  bottom: 20%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  pointer-events: auto;
}

.counter-cust-figure.cust-enter-anim {
  animation: custArrivePop 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.counter-cust-figure.cust-leave-home-anim {
  pointer-events: none;
  animation: custWalkHomeLeave 0.52s ease-in forwards;
}

.counter-order-bubble.bubble-leave-fade {
  opacity: 0;
  transform: scale(0.85);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

@keyframes custWalkHomeLeave {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scaleX(1);
  }
  20% {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px) scaleX(-1);
  }
  45% {
    opacity: 0.95;
    transform: translateX(calc(-50% - 34px)) translateY(2px) scaleX(-1);
  }
  70% {
    opacity: 0.65;
    transform: translateX(calc(-50% - 76px)) translateY(-3px) scaleX(-1);
  }
  100% {
    opacity: 0;
    transform: translateX(calc(-50% - 125px)) translateY(6px) scaleX(-1) scale(0.92);
  }
}

.counter-cust-avatar-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  line-height: 0;
  margin-bottom: -2px;
}

@keyframes custArrivePop {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(12px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

.cust-angry-shake {
  animation: angryCustShake 0.45s infinite alternate;
}

@keyframes angryCustShake {
  from { transform: translateX(-1.5px) rotate(-1deg); }
  to { transform: translateX(1.5px) rotate(1deg); }
}

/* 붕어빵 타이쿤 스타일 주문 말풍선 (아이콘 + 주류/음료명 + 대기시간 게이지만 담는 컴팩트 말풍선) */
.counter-order-bubble {
  position: absolute;
  left: calc(50% + 36px);
  bottom: 34%;
  width: fit-content;
  min-width: 96px;
  max-width: 154px;
  pointer-events: auto;
  cursor: default;
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  border: 2.5px solid #1e293b;
  border-radius: 14px;
  padding: 6px 9px 6px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.55);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.counter-order-bubble.bubble-enter-anim {
  animation: bubblePopIn 0.22s ease-out;
}

/* 말풍선 왼쪽 꼬리 */
.counter-order-bubble::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 7px 10px 7px 0;
  border-style: solid;
  border-color: transparent #1e293b transparent transparent;
}

.counter-order-bubble::after {
  content: '';
  position: absolute;
  left: -6.5px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 5px 8px 5px 0;
  border-style: solid;
  border-color: transparent rgba(255, 255, 255, 0.96) transparent transparent;
}

.counter-order-bubble.urgent-bubble {
  background: #fef2f2;
  border-color: #dc2626;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.65);
  animation: tycoonPulse 0.45s infinite alternate;
}

.counter-order-bubble.urgent-bubble::after {
  border-color: transparent #fef2f2 transparent transparent;
}

@keyframes bubblePopIn {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.bubble-top-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bubble-drink-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.order-mystery-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f3e8ff;
  border: 2px dashed #9333ea;
  color: #6b21a8;
  font-size: 1.05rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bubble-drink-name {
  font-size: 0.78rem;
  font-weight: 900;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.bubble-patience-track {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
}

.bubble-patience-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #38bdf8);
  border-radius: 999px;
  transition: width 0.35s linear, background 0.25s ease;
}

.bubble-patience-fill.warn {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.bubble-patience-fill.danger {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

/* (B) 카운터 바 인터랙션 오버레이 (배경 560x440 좌표계와 1:1 매핑) */
.counter-bar-interactive-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

/* 왼쪽 메뉴판 핫스팟 */
.counter-menu-hotspot {
  position: absolute;
  left: 28%;
  bottom: 12%;
  transform: translate(-50%, 50%);
  pointer-events: auto;
  background: rgba(9, 13, 22, 0.78);
  border: 1px solid rgba(251, 191, 36, 0.65);
  color: #fef3c7;
  font-size: 0.58rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 7px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
}

.counter-menu-hotspot:active {
  transform: translate(-50%, 50%) scale(0.94);
}

/* 정중앙 서빙 접시 (배경 이미지의 중앙 접시 타원 림 위치·비율과 1:1 매칭) */
.counter-plate-zone {
  position: absolute;
  left: 50.1%;
  bottom: 11.5%;
  transform: translate(-50%, 50%);
  width: 21.5%;
  height: 12.5%;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.counter-plate-zone.empty-plate {
  border: 1.5px dashed rgba(255, 255, 255, 0.22);
  background: transparent;
  pointer-events: none;
}

.empty-plate-hint {
  font-size: 0.56rem;
  font-weight: 800;
  color: rgba(248, 250, 252, 0.78);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.counter-plate-zone.has-item {
  pointer-events: auto;
  cursor: pointer;
  background: radial-gradient(ellipse at center, rgba(254, 240, 138, 0.32) 0%, rgba(15, 23, 42, 0.42) 75%);
  border: 2px solid rgba(251, 191, 36, 0.85);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.65);
  animation: plateItemDrop 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.counter-plate-zone.has-item.match-glow {
  border-color: #4ade80;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.75);
}

.counter-plate-zone.has-item:active {
  transform: translate(-50%, 50%) scale(0.93);
}

@keyframes plateItemDrop {
  from {
    transform: translate(-50%, calc(50% - 14px)) scale(0.8);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 50%) scale(1);
    opacity: 1;
  }
}

.plated-drink-visual {
  position: relative;
  margin-top: -14px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.65));
  display: flex;
  align-items: center;
  justify-content: center;
}

.plate-store-hint {
  position: absolute;
  top: -6px;
  right: -18px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid #38bdf8;
  color: #bae6fd;
  font-size: 0.48rem;
  font-weight: 900;
  padding: 1px 4px;
  border-radius: 999px;
  white-space: nowrap;
  pointer-events: none;
}

.plated-drink-label {
  background: rgba(9, 13, 22, 0.92);
  border: 1px solid #fbbf24;
  color: #fde047;
  font-size: 0.6rem;
  font-weight: 900;
  padding: 1px 7px;
  border-radius: 999px;
  white-space: nowrap;
  max-width: 118px;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

/* 배경 이미지에 직접 그려진 오른쪽 종 위치의 투명 터치 핫스팟 */
.counter-service-bell-spot {
  position: absolute;
  left: 70%;
  bottom: 11%;
  transform: translate(-50%, 50%);
  width: 68px;
  height: 54px;
  border-radius: 50%;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: transparent;
  border: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.1s ease, box-shadow 0.2s ease;
}

.counter-service-bell-spot:active {
  transform: translate(-50%, 50%) scale(0.92);
}

.counter-service-bell-spot.bell-ready-match {
  box-shadow: 0 0 18px 4px rgba(74, 222, 128, 0.55);
}

.counter-service-bell-spot.bell-ready-any {
  box-shadow: 0 0 14px 3px rgba(251, 191, 36, 0.45);
}

.bell-sound-waves {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 28px;
  pointer-events: none;
  opacity: 0;
}

.counter-service-bell-spot.bell-ringing .bell-sound-waves {
  opacity: 1;
}

.bell-wave {
  position: absolute;
  inset: 0;
  border-top: 2.8px solid #fde047;
  border-radius: 50%;
  animation: bellWaveSpread 0.42s ease-out infinite;
}

.bell-wave.w2 {
  animation-delay: 0.12s;
}

@keyframes bellWaveSpread {
  from {
    transform: scale(0.5);
    opacity: 1;
  }
  to {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* 접시에 올려두고 일정 시간 종을 울리지 않았을 때 뜨는 작은 하얀 말풍선 */
.bell-nudge-bubble {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  color: #0f172a;
  border: 1.8px solid #0f172a;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.62rem;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.55);
  pointer-events: none;
  animation: bellNudgeBounce 0.55s ease-in-out infinite alternate;
}

.bell-nudge-bubble::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px 5px 0 5px;
  border-style: solid;
  border-color: #0f172a transparent transparent transparent;
}

@keyframes bellNudgeBounce {
  from { transform: translateX(-50%) translateY(0); }
  to { transform: translateX(-50%) translateY(-4px); }
}

/* 종을 눌러 서빙했을 때 손님 머리 위로 COMBO +N 과 +가격이 떠오르며 페이드아웃하는 연출 */
.tycoon-floating-earn {
  position: absolute;
  left: 50%;
  bottom: calc(20% + 114px);
  transform: translateX(-50%);
  z-index: 30;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  white-space: nowrap;
  animation: tycoonFloatUpFade 0.92s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.tycoon-floating-earn .floating-combo-line {
  color: #38bdf8;
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.2px;
  line-height: 1.1;
  text-shadow:
    -1.5px -1.5px 0 #082f49,
     1.5px -1.5px 0 #082f49,
    -1.5px  1.5px 0 #082f49,
     1.5px  1.5px 0 #082f49,
     0 2px 6px rgba(0, 0, 0, 0.85);
}

.tycoon-floating-earn .floating-price-line {
  color: #fde047;
  font-size: 1.48rem;
  font-weight: 900;
  letter-spacing: -0.3px;
  line-height: 1.1;
  text-shadow:
    -2px -2px 0 #451a03,
     2px -2px 0 #451a03,
    -2px  2px 0 #451a03,
     2px  2px 0 #451a03,
     0 4px 10px rgba(0, 0, 0, 0.85);
}

@keyframes tycoonFloatUpFade {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(6px) scale(0.84);
  }
  18% {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px) scale(1.05);
  }
  75% {
    opacity: 1;
    transform: translateX(-50%) translateY(-22px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-34px) scale(0.96);
  }
}

/* =========================================================================
   4. 하단 55% 주조대 (가마솥 슬롯 + [재고/재료 카테고리 탭] + 그리드)
   ========================================================================= */

/* (1) 가마솥 슬롯 + 조합 버튼 한 줄 */
.tycoon-compact-pot-row {
  flex-shrink: 0;
  height: 58px;
  display: flex;
  align-items: stretch;
  gap: 5px;
}

.cp-slots-wrap {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.cp-slot {
  background: rgba(9, 13, 22, 0.85);
  border: 1px dashed #334155;
  border-radius: 9px;
  padding: 3px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  position: relative;
}

.cp-slot.filled {
  border-style: solid;
  border-color: #38bdf8;
  background: linear-gradient(145deg, #1e293b, #172554);
  cursor: pointer;
}

.cp-slot.filled:active {
  transform: scale(0.95);
}

.cp-name {
  font-size: 0.6rem;
  font-weight: 800;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  margin-top: 2px;
}

.cp-actions-col {
  width: 86px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cp-craft-btn {
  flex: 1;
  border: none;
  border-radius: 7px;
  background: #334155;
  color: #94a3b8;
  font-size: 0.68rem;
  font-weight: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  cursor: not-allowed;
}

.cp-craft-btn.ready {
  background: linear-gradient(135deg, #f59e0b, #eab308);
  color: #090d16;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.cp-craft-btn small {
  font-size: 0.54rem;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cp-clear-btn {
  height: 18px;
  border: 1px solid #475569;
  border-radius: 5px;
  background: #1e293b;
  color: #cbd5e1;
  font-size: 0.56rem;
  font-weight: 800;
  cursor: pointer;
}

/* (2) 카테고리 탭 + 재료 그리드 */
.tycoon-compact-ings-area {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(71, 85, 105, 0.45);
  border-radius: 10px;
  padding: 6px;
  overflow: hidden;
}

.tycoon-cat-strip {
  flex-shrink: 0;
  display: flex;
  flex-wrap: nowrap !important;
  gap: 5px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.tycoon-cat-strip::-webkit-scrollbar {
  display: none;
}

.tycoon-cat-chip {
  padding: 4px 9px !important;
  font-size: 0.66rem !important;
  flex-shrink: 0;
}

.tycoon-ings-scroll-grid {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: max-content;
  gap: 6px;
  padding: 5px 3px 8px 5px;
}

.tycoon-compact-ing {
  min-height: 56px !important;
  padding: 5px 4px !important;
}

.tycoon-compact-ing .ing-name {
  font-size: 0.62rem !important;
  min-height: 22px !important;
}

.stock-tab-chip {
  border-color: rgba(56, 189, 248, 0.5) !important;
  color: #bae6fd !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.stock-tab-chip.active {
  background: linear-gradient(135deg, #0284c7, #0369a1) !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
}

.stock-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 999px;
  background: #f59e0b;
  color: #090d16;
  font-size: 0.56rem;
  font-weight: 900;
}

.stock-count-badge {
  position: absolute;
  top: 3px;
  left: 3px;
  background: rgba(2, 132, 199, 0.92);
  border: 1px solid #7dd3fc;
  color: #f0f9ff;
  font-size: 0.52rem;
  font-weight: 900;
  padding: 1px 4px;
  border-radius: 6px;
  line-height: 1.1;
  pointer-events: none;
  z-index: 2;
}

.stock-count-badge.plate-badge {
  background: rgba(234, 88, 12, 0.92);
  border-color: #fdba74;
  color: #fff7ed;
}

.stock-item-card {
  border-color: rgba(56, 189, 248, 0.55) !important;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(12, 74, 110, 0.45)) !important;
  cursor: pointer;
}

.stock-item-card.is-plated {
  border-color: rgba(251, 146, 60, 0.75) !important;
  background: linear-gradient(145deg, rgba(30, 20, 15, 0.95), rgba(124, 45, 18, 0.45)) !important;
}

.tycoon-stock-empty-msg {
  grid-column: 1 / -1;
  padding: 18px 12px;
  text-align: center;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.5;
  background: rgba(9, 13, 22, 0.55);
  border: 1px dashed rgba(71, 85, 105, 0.55);
  border-radius: 10px;
}

.tycoon-stock-empty-msg span {
  display: block;
  margin-top: 4px;
  font-size: 0.64rem;
  font-weight: 500;
  color: #64748b;
}

/* =========================================================================
   5. 로비 (6단계 점포 배경 해금 상점 포함) & 게임오버 & 서브모달
   ========================================================================= */
.tycoon-lobby-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
}

.tycoon-lobby-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 14px;
}

.tycoon-hero-banner {
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.45), rgba(15, 23, 42, 0.92));
  border: 1.5px solid rgba(251, 191, 36, 0.55);
  border-radius: 12px;
  padding: 10px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.tycoon-hero-banner .hero-badge {
  background: rgba(9, 13, 22, 0.85);
  border: 1px solid #f59e0b;
  color: #fde047;
  font-size: 0.64rem;
  font-weight: 900;
  padding: 2px 9px;
  border-radius: 999px;
}

.tycoon-hero-banner h2 {
  margin: 0;
  font-size: 0.95rem;
  color: #fef3c7;
  font-weight: 900;
}

.tycoon-hero-banner p {
  margin: 0;
  font-size: 0.68rem;
  color: #e2e8f0;
}

.tycoon-wallet-pill {
  background: rgba(9, 13, 22, 0.9);
  border: 1px solid #475569;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  color: #e2e8f0;
}

.tycoon-wallet-pill b {
  color: #fde047;
}

.tycoon-mode-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.tycoon-mode-cards-grid.two-cols {
  grid-template-columns: 1fr 1fr;
}

.tycoon-mode-card {
  background: rgba(15, 23, 42, 0.92);
  border: 1.5px solid #334155;
  border-radius: 12px;
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 7px;
}

.tycoon-mode-card.mode-infinite-card { border-color: rgba(192, 132, 252, 0.55); }
.tycoon-mode-card.mode-timeattack-card { border-color: rgba(56, 189, 248, 0.55); }

.mode-card-header {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mode-card-header .mode-icon { font-size: 1.3rem; }
.mode-card-header .mode-name { font-size: 0.78rem; font-weight: 900; color: #f8fafc; }
.mode-card-header .mode-tag { font-size: 0.6rem; color: #94a3b8; font-weight: 700; }

.tycoon-start-btn {
  width: 100%;
  padding: 8px 6px;
  border-radius: 8px;
  border: none;
  font-size: 0.75rem;
  font-weight: 900;
  color: #090d16;
  cursor: pointer;
}

.tycoon-start-btn.start-infinite { background: linear-gradient(135deg, #c084fc, #f472b6); }
.tycoon-start-btn.start-timeattack { background: linear-gradient(135deg, #38bdf8, #34d399); }

/* 6단계 점포 배경 해금 & 선택 섹션 */
.tycoon-stage-shop-section {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stage-shop-hdr {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stage-shop-hdr span {
  font-size: 0.8rem;
  font-weight: 900;
  color: #fde047;
}

.stage-shop-hdr small {
  font-size: 0.64rem;
  color: #94a3b8;
}

.tycoon-stages-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.tycoon-stage-card {
  background: rgba(9, 13, 22, 0.9);
  border: 1.5px solid #334155;
  border-radius: 10px;
  padding: 7px;
  display: flex;
  align-items: stretch;
  gap: 9px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.tycoon-stage-card:active {
  transform: scale(0.97) translateY(2px);
}

.tycoon-stage-card.is-selected {
  border: 2px solid #fbbf24;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.94));
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.7), 0 0 12px rgba(251, 191, 36, 0.35);
  transform: translateY(1px);
}

.stage-status-chip {
  font-size: 0.6rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.stage-status-chip.selected {
  background: rgba(34, 197, 94, 0.22);
  border: 1px solid #4ade80;
  color: #4ade80;
}

.stage-status-chip.unlocked {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #34d399;
}

.stage-status-chip.unlock.can-buy {
  background: linear-gradient(135deg, #f59e0b, #eab308);
  color: #090d16;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.stage-status-chip.unlock.locked {
  background: #1e293b;
  border: 1px solid #475569;
  color: #94a3b8;
}

.tycoon-stage-card.is-locked .stage-thumb {
  filter: grayscale(0.45) brightness(0.8);
}

.stage-thumb {
  width: 92px;
  min-height: 68px;
  border-radius: 8px;
  background-size: cover;
  background-position: center bottom;
  border: 1px solid rgba(148, 163, 184, 0.35);
  flex-shrink: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4px;
  box-sizing: border-box;
}

.stage-num-badge {
  align-self: flex-start;
  background: rgba(9, 13, 22, 0.85);
  color: #38bdf8;
  font-size: 0.54rem;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 4px;
}

.stage-mult-badge {
  align-self: flex-end;
  background: rgba(245, 158, 11, 0.92);
  color: #090d16;
  font-size: 0.54rem;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 4px;
}

.stage-info-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
}

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

.stage-name {
  font-size: 0.78rem;
  font-weight: 900;
  color: #f8fafc;
}

.stage-recipe-cnt {
  font-size: 0.6rem;
  font-weight: 800;
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.35);
  padding: 1px 6px;
  border-radius: 999px;
}

.stage-desc {
  font-size: 0.63rem;
  color: #cbd5e1;
  line-height: 1.35;
}

.stage-action-row {
  display: flex;
  justify-content: flex-end;
}

.stage-card-btn {
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 0.66rem;
  font-weight: 900;
  cursor: pointer;
  border: 1px solid transparent;
}

.stage-card-btn.selected {
  background: rgba(34, 197, 94, 0.2);
  border-color: #4ade80;
  color: #4ade80;
  cursor: default;
}

.stage-card-btn.select {
  background: #38bdf8;
  color: #090d16;
}

.stage-card-btn.unlock.can-buy {
  background: linear-gradient(135deg, #f59e0b, #eab308);
  color: #090d16;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.stage-card-btn.unlock.locked {
  background: #1e293b;
  border-color: #475569;
  color: #94a3b8;
}

/* 서브 모달 */
.tycoon-submodal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(6px);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.tycoon-submodal-card {
  width: 100%;
  max-width: 440px;
  max-height: 86%;
  background: #0f172a;
  border: 1.5px solid #38bdf8;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.submodal-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.submodal-hdr h3 { margin: 0; font-size: 0.86rem; color: #fde047; }

.submodal-close-btn {
  background: #1e293b;
  border: 1px solid #475569;
  color: #f8fafc;
  border-radius: 7px;
  width: 26px;
  height: 26px;
  cursor: pointer;
}

.submodal-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.submodal-tab {
  background: #1e293b;
  border: 1px solid #334155;
  color: #94a3b8;
  padding: 6px;
  border-radius: 7px;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.submodal-tab.active {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #f8fafc;
}

.tycoon-rank-list,
.notebook-cust-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.tycoon-rank-row {
  background: rgba(9, 13, 22, 0.75);
  border: 1px solid #1e293b;
  border-radius: 7px;
  padding: 6px 8px;
  display: grid;
  grid-template-columns: 44px 1fr auto auto;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
}

.r-pos { font-weight: 900; color: #fde047; }
.r-user { font-weight: 800; color: #f8fafc; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-served { color: #38bdf8; }
.r-earn { color: #fcd34d; font-weight: 800; }

.notebook-cust-card {
  background: rgba(9, 13, 22, 0.82);
  border: 1px solid #334155;
  border-radius: 9px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nb-info {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
}

.nb-top { display: flex; align-items: center; gap: 5px; }
.nb-name { font-weight: 900; color: #f8fafc; }
.nb-group { font-size: 0.62rem; color: #94a3b8; }
.nb-price-badge {
  font-size: 0.66rem;
  font-weight: 900;
  color: #fde047;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 999px;
  padding: 1px 7px;
  flex-shrink: 0;
}
.nb-fav { display: inline-flex; align-items: center; gap: 4px; color: #fde047; }

/* 게임 오버 - 영수증(Receipt) 디자인 */
.tycoon-gameover-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 2px 14px;
}

.tycoon-receipt-paper {
  position: relative;
  background: #fdfbf7;
  color: #1e293b;
  border-radius: 6px;
  padding: 18px 16px 16px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.receipt-sawtooth {
  position: absolute;
  left: 0;
  right: 0;
  height: 8px;
  background-size: 14px 8px;
  pointer-events: none;
}

.receipt-sawtooth.top {
  top: 0;
  background-image: linear-gradient(135deg, #0b1120 33.33%, transparent 33.33%),
                    linear-gradient(225deg, #0b1120 33.33%, transparent 33.33%);
}

.receipt-sawtooth.bottom {
  bottom: 0;
  background-image: linear-gradient(45deg, #0b1120 33.33%, transparent 33.33%),
                    linear-gradient(315deg, #0b1120 33.33%, transparent 33.33%);
}

.receipt-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  padding-top: 2px;
}

.receipt-mode-tag {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  color: #92400e;
  font-size: 0.66rem;
  font-weight: 900;
  padding: 2px 9px;
  border-radius: 999px;
}

.receipt-title {
  margin: 2px 0 0;
  font-size: 1.12rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.3px;
}

.receipt-shop-meta {
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  font-weight: 700;
  color: #475569;
  margin-top: 3px;
}

.receipt-dashed-divider {
  width: 100%;
  border-bottom: 1.5px dashed #cbd5e1;
}

.receipt-dashed-divider.double {
  border-bottom: 3px double #94a3b8;
}

.receipt-col-head {
  display: grid;
  grid-template-columns: 1fr auto 74px;
  gap: 8px;
  font-size: 0.65rem;
  font-weight: 800;
  color: #64748b;
  padding: 0 2px;
}

.receipt-col-head span:last-child {
  text-align: right;
}

.receipt-items-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.receipt-item-row {
  display: grid;
  grid-template-columns: 1fr auto 74px;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  color: #1e293b;
  padding: 2px;
}

.receipt-item-row.combo-bonus-row {
  color: #b45309;
  background: rgba(254, 243, 199, 0.55);
  border-radius: 5px;
  padding: 3px 5px;
}

.r-item-name {
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.r-item-qty {
  font-size: 0.68rem;
  color: #64748b;
  font-weight: 700;
}

.r-item-sub {
  text-align: right;
  font-weight: 900;
  color: #0f172a;
}

.receipt-item-row.combo-bonus-row .r-item-sub {
  color: #d97706;
}

.receipt-empty-row {
  text-align: center;
  padding: 12px 0;
  font-size: 0.74rem;
  color: #94a3b8;
  font-weight: 700;
}

.receipt-total-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
}

.receipt-today-sales-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.rts-label {
  font-size: 0.88rem;
  font-weight: 900;
  color: #0f172a;
}

.rts-amount {
  font-size: 1.38rem;
  font-weight: 900;
  color: #d97706;
}

.rts-amount span {
  font-size: 0.84rem;
  margin-left: 2px;
}

.receipt-wallet-balance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  color: #475569;
  padding-top: 5px;
  border-top: 1px dotted #cbd5e1;
}

.receipt-wallet-balance-row b {
  color: #0284c7;
  font-weight: 900;
}

.receipt-rank-box {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.receipt-rank-box .rank-submit-title {
  color: #0f172a;
}

.receipt-footer-stamp {
  text-align: center;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 1.4px;
  color: #94a3b8;
  padding-top: 2px;
}

.receipt-outside-actions {
  margin-top: 2px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.receipt-action-btn {
  width: 100%;
  padding: 11px 6px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.15s ease, background 0.15s ease;
  box-sizing: border-box;
}

.receipt-action-btn:active {
  transform: scale(0.96);
}

.receipt-action-btn.primary {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  border: 1px solid #3b82f6;
  color: #eff6ff;
  box-shadow: 0 3px 10px rgba(30, 64, 175, 0.35);
}

.receipt-action-btn.shop {
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.55), #1e293b);
  border: 1px solid rgba(245, 158, 11, 0.65);
  color: #fde047;
}

.receipt-action-btn.secondary {
  background: #1e293b;
  border: 1px solid #475569;
  color: #e2e8f0;
}

/* 영업 시작 전 해금 가능 레시피 확인(Confirm) 모달 */
.confirm-challenge-modal-card {
  max-width: 340px;
  text-align: center;
  align-items: center;
  padding: 18px 16px 16px;
  gap: 10px;
  border: 1.5px solid #38bdf8;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.72);
}

.confirm-challenge-badge {
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.55);
  color: #7dd3fc;
  font-size: 0.68rem;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 999px;
}

.confirm-challenge-icon {
  font-size: 2.4rem;
  line-height: 1.1;
}

.confirm-challenge-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 900;
  color: #f8fafc;
}

.confirm-challenge-desc {
  margin: 0;
  font-size: 0.76rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.confirm-challenge-desc b {
  color: #fde047;
}

.confirm-challenge-chips-box {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  background: rgba(9, 13, 22, 0.78);
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 9px 8px;
  box-sizing: border-box;
}

.confirm-challenge-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #1e293b;
  border: 1px solid #475569;
  font-size: 0.68rem;
  color: #f8fafc;
}

.confirm-challenge-chip .ccc-num {
  color: #60a5fa;
  font-weight: 900;
}

.confirm-challenge-chip .ccc-name {
  font-weight: 800;
}

.confirm-challenge-more {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  font-size: 0.66rem;
  font-weight: 800;
  color: #94a3b8;
}

.confirm-challenge-actions {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}

.confirm-btn-lab {
  padding: 11px 8px;
  border-radius: 10px;
  border: 1px solid #38bdf8;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.confirm-btn-start {
  padding: 11px 8px;
  border-radius: 10px;
  border: 1px solid #475569;
  background: #1e293b;
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.rank-submit-title { font-size: 0.72rem; font-weight: 900; color: #bae6fd; }
.rank-submit-form { display: flex; gap: 6px; }
.rank-nick-input {
  flex: 1;
  background: #0f172a;
  border: 1px solid #475569;
  border-radius: 7px;
  padding: 6px 8px;
  color: #f8fafc;
  font-size: 0.75rem;
}
.rank-submit-btn {
  background: #38bdf8;
  color: #090d16;
  border: none;
  border-radius: 7px;
  padding: 6px 10px;
  font-size: 0.74rem;
  font-weight: 900;
  cursor: pointer;
}
.rank-submitted-done { font-size: 0.72rem; color: #34d399; font-weight: 800; }
.gameover-actions { display: flex; gap: 6px; }
.tycoon-secondary-btn {
  background: #1e293b;
  border: 1px solid #475569;
  color: #e2e8f0;
  border-radius: 9px;
  padding: 9px 12px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

/* =========================================================================
   6. 점포 마스터 현황 박스 · 재료 상점 모달 · 해금 조건 배지
   ========================================================================= */
.hud-pill.growth-pill {
  background: rgba(16, 185, 129, 0.22);
  border: 1px solid #34d399;
  color: #6ee7b7;
  font-weight: 900;
}

.hero-top-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.hero-story-replay-btn {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid #38bdf8;
  color: #7dd3fc;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

.stage-mastery-box {
  width: 100%;
  margin-top: 4px;
  background: rgba(9, 13, 22, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 10px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-sizing: border-box;
}

.mastery-stat-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  font-size: 0.66rem;
  color: #cbd5e1;
}

.mastery-stat-row .m-label {
  color: #94a3b8;
  font-weight: 700;
}

.mastery-stat-row .m-val {
  color: #fde047;
  font-weight: 900;
}

.mastery-stat-row .m-val.is-clear {
  color: #34d399;
}

.mastery-stat-row .m-divider {
  opacity: 0.35;
}

.mastery-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.lobby-prep-btn {
  padding: 7px 6px;
  border-radius: 8px;
  font-size: 0.68rem;
  font-weight: 900;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lobby-prep-btn.prep-lab-btn {
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: #ffffff;
  border-color: #38bdf8;
}

.lobby-prep-btn.prep-shop-btn {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  color: #090d16;
  border-color: #fde047;
}

.tycoon-mode-card.mode-growth-card {
  border-color: rgba(16, 185, 129, 0.65);
  background: linear-gradient(145deg, rgba(6, 78, 59, 0.32), rgba(15, 23, 42, 0.94));
}

.tycoon-mode-card.needs-research-pulse {
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

.tycoon-mode-card.is-locked-mode {
  opacity: 0.72;
  border-color: #334155;
}

.tycoon-start-btn.start-growth {
  background: linear-gradient(135deg, #10b981, #34d399);
  color: #052e16;
}

.tycoon-mode-card.is-locked-mode .tycoon-start-btn {
  background: #1e293b;
  color: #94a3b8;
  border: 1px solid #475569;
}

.stage-unlock-reqs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}

.req-pill {
  font-size: 0.56rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid #334155;
  color: #94a3b8;
}

.req-pill.done {
  border-color: rgba(52, 211, 153, 0.5);
  color: #6ee7b7;
  background: rgba(6, 78, 59, 0.35);
}

.req-pill.active-prog {
  border-color: rgba(251, 191, 36, 0.45);
  color: #fde047;
}

/* 상점 서브모달 */
.shop-modal-card {
  border-color: #f59e0b;
}

.shop-wallet-bar {
  background: rgba(9, 13, 22, 0.9);
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 6px 9px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.72rem;
  color: #f8fafc;
}

.shop-wallet-bar b {
  color: #fde047;
}

.shop-wallet-bar small {
  font-size: 0.6rem;
  color: #94a3b8;
}

.shop-free-starter-notice {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #a7f3d0;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 0.64rem;
  margin-bottom: 4px;
}

.shop-stage-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 8px;
}

.shop-stage-title {
  font-size: 0.72rem;
  font-weight: 900;
  color: #38bdf8;
  padding: 2px 4px;
}

.shop-stage-items {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.shop-ing-row {
  background: rgba(9, 13, 22, 0.85);
  border: 1px solid #334155;
  border-radius: 9px;
  padding: 7px 9px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.shop-ing-row.is-owned {
  border-color: rgba(52, 211, 153, 0.35);
  opacity: 0.82;
}

.shop-ing-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.shop-ing-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.shop-ing-title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.shop-ing-name {
  font-size: 0.74rem;
  font-weight: 900;
  color: #f8fafc;
}

.shop-ing-price {
  font-size: 0.66rem;
  font-weight: 900;
  color: #fde047;
}

.shop-ing-hint {
  font-size: 0.62rem;
  color: #94a3b8;
}

.shop-owned-badge {
  font-size: 0.64rem;
  font-weight: 900;
  color: #34d399;
  padding: 4px 8px;
}

.shop-buy-btn {
  padding: 6px 11px;
  border-radius: 7px;
  border: none;
  font-size: 0.68rem;
  font-weight: 900;
  cursor: pointer;
}

.shop-buy-btn.can-afford {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #090d16;
}

.shop-buy-btn.no-funds {
  background: #1e293b;
  border: 1px solid #475569;
  color: #64748b;
}

.notebook-cust-card.is-locked-menu {
  opacity: 0.65;
  border-style: dashed;
}

/* =========================================================================
   7. 애니메이션 컷신 스토리 & 가이드 튜토리얼 플레이어 (#story-tutorial-modal)
   ========================================================================= */
.story-cutscene-overlay {
  z-index: 9500 !important;
  background: rgba(2, 6, 23, 0.94) !important;
  backdrop-filter: blur(10px);
  padding: 12px;
}

.story-cutscene-modal-card {
  width: 100%;
  max-width: 460px;
  background: #070b14;
  border: 2px solid rgba(251, 191, 36, 0.65);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.85), 0 0 28px rgba(245, 158, 11, 0.25);
}

.cutscene-player-stage {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.cutscene-player-stage.is-tutorial-mode {
  border-color: rgba(56, 189, 248, 0.65);
}

.cutscene-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #090e1a;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.cutscene-step-pill {
  font-size: 0.66rem;
  font-weight: 900;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.4px;
}

.cutscene-step-pill.story-pill {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid #f59e0b;
  color: #fde047;
}

.cutscene-step-pill.tutorial-pill {
  background: rgba(56, 189, 248, 0.2);
  border: 1px solid #38bdf8;
  color: #7dd3fc;
}

.cutscene-dots-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
}

.cutscene-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #334155;
  transition: all 0.2s ease;
}

.cutscene-dot.done {
  background: #64748b;
}

.cutscene-dot.active {
  width: 18px;
  background: #fbbf24;
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.7);
}

.cutscene-skip-btn {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid #475569;
  color: #cbd5e1;
  font-size: 0.64rem;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 6px;
  cursor: pointer;
}

.cutscene-artwork-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
  overflow: hidden;
}

.cutscene-artwork-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: cutsceneSlowZoom 6s ease-out forwards;
}

@keyframes cutsceneSlowZoom {
  0% { transform: scale(1.04); filter: brightness(0.9); }
  100% { transform: scale(1); filter: brightness(1); }
}

.cutscene-vignette-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,11,20,0.12) 0%, rgba(7,11,20,0) 55%, rgba(7,11,20,0.85) 100%);
  pointer-events: none;
}

.cutscene-subtitle-box {
  background: linear-gradient(180deg, #0b1120 0%, #070b14 100%);
  padding: 14px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid rgba(251, 191, 36, 0.25);
}

.cutscene-speaker-tag {
  align-self: flex-start;
  font-size: 0.64rem;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 5px;
}

.cutscene-speaker-tag.tag-monologue {
  background: rgba(245, 158, 11, 0.22);
  color: #fde047;
  border: 1px solid rgba(245, 158, 11, 0.45);
}

.cutscene-speaker-tag.tag-guide {
  background: rgba(56, 189, 248, 0.22);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.45);
}

.cutscene-dialogue-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 54px;
}

.cutscene-line-primary {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 900;
  color: #fef3c7;
  line-height: 1.4;
  word-break: keep-all;
}

.cutscene-line-secondary {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #cbd5e1;
  line-height: 1.45;
  word-break: keep-all;
}

.cutscene-Prompt-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px dashed rgba(148, 163, 184, 0.2);
}

.cutscene-prev-mini {
  background: transparent;
  border: 1px solid #334155;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cutscene-prev-mini:hover {
  background: rgba(51, 65, 85, 0.4);
  color: #f1f5f9;
}

.cutscene-next-btn {
  padding: 8px 20px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #0f172a;
  font-size: 0.88rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(251, 191, 36, 0.45);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  animation: cutsceneNextPulse 1.8s ease-in-out infinite;
  transition: transform 0.12s ease;
}

.cutscene-next-btn:hover {
  transform: translateY(-1px);
}

.cutscene-next-btn:active {
  transform: scale(0.96);
}

.cutscene-next-btn.is-start {
  background: linear-gradient(135deg, #38bdf8, #10b981);
  color: #022c22;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.45);
}

@keyframes cutsceneNextPulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(251, 191, 36, 0.45); transform: scale(1); }
  50% { box-shadow: 0 6px 22px rgba(251, 191, 36, 0.75); transform: scale(1.03); }
}

.cutscene-tap-prompt {
  font-size: 0.72rem;
  font-weight: 900;
  color: #fbbf24;
  animation: cutsceneBlinkPrompt 1.2s ease-in-out infinite;
}

@keyframes cutsceneBlinkPrompt {
  0%, 100% { opacity: 1; transform: translateX(0); }
  50% { opacity: 0.45; transform: translateX(3px); }
}

.gameover-growth-links {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.gameover-growth-links .lobby-prep-btn {
  flex: 1;
  padding: 10px 8px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

/* =========================================================================
   심플 점포 로비 (상단 스테이지 정보 배너 + 단독 영업 시작 버튼 + 단계별 점포 선택)
   ========================================================================= */
.lobby-stage-info-banner {
  width: 100%;
  border: 1.5px solid #334155;
  border-radius: 14px;
  padding: 16px 14px;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  text-align: center;
  box-sizing: border-box;
}

.main-play-stage-tag {
  background: rgba(9, 13, 22, 0.86);
  border: 1px solid rgba(251, 191, 36, 0.65);
  color: #fde047;
  font-size: 0.74rem;
  font-weight: 900;
  padding: 3px 12px;
  border-radius: 999px;
}

.lobby-stage-info-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #e2e8f0;
  background: rgba(9, 13, 22, 0.72);
  padding: 4px 12px;
  border-radius: 999px;
}

.lobby-stage-info-stats b {
  color: #6ee7b7;
}

.lobby-stage-info-stats .stat-dot {
  color: #64748b;
}

.lobby-start-biz-btn {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1.5px solid #3b82f6;
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  color: #eff6ff;
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0.2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(30, 64, 175, 0.4);
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  box-sizing: border-box;
}

.lobby-start-biz-btn:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: #60a5fa;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.lobby-start-biz-btn.needs-research {
  border-color: #38bdf8;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #f0f9ff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.lobby-start-biz-btn.needs-research:hover {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  border-color: #7dd3fc;
}

.lobby-start-biz-btn:active {
  transform: scale(0.98) translateY(2px);
}

.tycoon-stage-card.is-locked-mystery {
  background: rgba(15, 23, 42, 0.78);
  border-style: dashed;
  border-color: #475569;
  align-items: center;
}

.tycoon-stage-card.is-locked-mystery.can-unlock-now {
  border-style: solid;
  border-color: #fbbf24;
  background: linear-gradient(145deg, rgba(120, 53, 15, 0.35), rgba(15, 23, 42, 0.95));
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.28);
}

.stage-mystery-box {
  width: 92px;
  min-height: 54px;
  border-radius: 8px;
  background: #090d16;
  border: 1px solid #334155;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex-shrink: 0;
}

.mystery-lock-icon {
  font-size: 1rem;
  line-height: 1;
}

.mystery-stage-num {
  font-size: 0.58rem;
  font-weight: 900;
  color: #94a3b8;
}

.tycoon-infinite-surprise-btn {
  width: 100%;
  margin-top: 2px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1.5px solid #c084fc;
  background: linear-gradient(135deg, rgba(126, 34, 206, 0.38), rgba(15, 23, 42, 0.96));
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(192, 132, 252, 0.25);
  transition: transform 0.12s ease;
}

.tycoon-infinite-surprise-btn:active {
  transform: scale(0.98) translateY(2px);
}

.inf-surprise-title {
  font-size: 0.82rem;
  font-weight: 900;
  color: #f3e8ff;
}

.inf-surprise-meta {
  font-size: 0.68rem;
  font-weight: 800;
  color: #e9d5ff;
}

.stage-mult-inline {
  font-size: 0.64rem;
  font-weight: 800;
  color: #fbbf24;
  margin-left: 3px;
}

.stage-state-label {
  font-size: 0.68rem;
  font-weight: 900;
  white-space: nowrap;
}

.stage-state-label.is-active {
  color: #4ade80;
}

.stage-state-label.is-open {
  color: #38bdf8;
}

.stage-state-label.is-buyable {
  color: #fde047;
}

.stage-state-label.is-locked {
  color: #94a3b8;
}

.stage-simple-sub {
  font-size: 0.66rem;
  font-weight: 700;
  color: #94a3b8;
}

.tycoon-stage-card.is-selected .stage-simple-sub {
  color: #cbd5e1;
}

.tycoon-stage-card.can-unlock-now {
  border-color: rgba(251, 191, 36, 0.65);
}

/* =========================================================================
   인게임 실제 화면 + 반투명 오버레이 가이드 (GUIDE 01 ~ 04)
   ========================================================================= */
.cutscene-artwork-frame.guide-overlay-frame {
  aspect-ratio: auto;
  min-height: 310px;
  background: #070b14;
  padding: 8px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.guide-screen-mockup {
  position: relative;
  width: 100%;
  flex: 1;
  background: #0b1120;
  border: 1.5px solid #1e293b;
  border-radius: 12px;
  padding: 8px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}

/* 공통 하이라이트 타겟 박스 & 번호 배지 */
.gm-highlight-target {
  position: relative;
  border-radius: 8px;
  z-index: 5;
}

.gm-highlight-target.target-sky {
  outline: 2px solid #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.55);
}

.gm-highlight-target.target-emerald {
  outline: 2px solid #34d399;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.55);
}

.gm-highlight-target.target-amber {
  outline: 2px solid #fbbf24;
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.6);
}

.gm-highlight-target.target-rose {
  outline: 2px solid #fb7185;
  box-shadow: 0 0 12px rgba(251, 113, 133, 0.55);
}

.gm-badge-num {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #090d16;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
  z-index: 12;
}

.gm-badge-num.badge-sky { background: #38bdf8; }
.gm-badge-num.badge-emerald { background: #34d399; }
.gm-badge-num.badge-amber { background: #fbbf24; }
.gm-badge-num.badge-rose { background: #fb7185; color: #fff; }

/* 반투명 겹침 설명 콜아웃 박스 */
.gm-callout-card {
  position: absolute;
  z-index: 15;
  background: rgba(9, 13, 22, 0.84);
  backdrop-filter: blur(4px);
  border-radius: 9px;
  padding: 5px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 68%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.75);
  pointer-events: none;
}

.gm-callout-card b {
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.25;
}

.gm-callout-card span {
  font-size: 0.6rem;
  color: #e2e8f0;
  line-height: 1.3;
}

.gm-callout-card em {
  font-style: normal;
  color: #fde047;
  font-weight: 800;
}

.gm-callout-card.callout-sky {
  border: 1.5px solid rgba(56, 189, 248, 0.85);
}
.gm-callout-card.callout-sky b { color: #7dd3fc; }

.gm-callout-card.callout-emerald {
  border: 1.5px solid rgba(52, 211, 153, 0.85);
}
.gm-callout-card.callout-emerald b { color: #6ee7b7; }

.gm-callout-card.callout-amber {
  border: 1.5px solid rgba(251, 191, 36, 0.85);
}
.gm-callout-card.callout-amber b { color: #fde047; }

/* GUIDE 01: 연구실 제조 & 재료 상점 토글 화면 목업 */
.gm-lab-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background: rgba(15, 23, 42, 0.9);
  padding: 4px 8px;
  border-radius: 7px;
  font-size: 0.62rem;
  font-weight: 800;
}

.gm-pill {
  background: #1e293b;
  color: #fde047;
  padding: 2px 7px;
  border-radius: 999px;
}

.gm-gold {
  color: #fde047;
}

.gm-mode-toggle-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 9px;
  padding: 3px;
}

.gm-mode-tab {
  font-size: 0.62rem;
  font-weight: 900;
  padding: 5px 6px;
  border-radius: 6px;
  text-align: center;
  color: #94a3b8;
}

.gm-mode-tab.active {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #ffffff;
}

.gm-mode-tab.shop {
  background: rgba(245, 158, 11, 0.22);
  color: #fde047;
}

.gm-quiz-box {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid #3b82f6;
  border-radius: 9px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gm-quiz-box.gm-quiz-compact {
  padding: 5px 8px;
}

.gm-quiz-icon {
  width: 34px;
  height: 34px;
  background: #090d16;
  border: 1px solid #475569;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.gm-quiz-icon.locked {
  border-style: dashed;
}

.gm-hint-btn-mini {
  background: #334155;
  color: #e2e8f0;
  font-size: 0.5rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
}

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

.gm-quiz-title {
  font-size: 0.72rem;
  font-weight: 900;
  color: #f8fafc;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gm-quiz-title small {
  color: #38bdf8;
  font-size: 0.58rem;
}

.gm-quiz-desc {
  font-size: 0.6rem;
  color: #cbd5e1;
}

.gm-pot-stack {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: rgba(15, 23, 42, 0.65);
  padding: 5px;
  border-radius: 9px;
}

.gm-pot-slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.gm-slot {
  background: #090d16;
  border: 1px dashed #334155;
  border-radius: 7px;
  height: 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  color: #64748b;
  position: relative;
}

.gm-slot.filled {
  border: 1px solid #38bdf8;
  color: #f8fafc;
  background: rgba(14, 116, 144, 0.2);
}

.gm-slot span {
  font-size: 0.52rem;
  font-weight: 800;
}

.gm-slot b {
  position: absolute;
  top: 2px;
  right: 3px;
  background: #f59e0b;
  color: #090d16;
  font-size: 0.48rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gm-pot-action-row {
  display: flex;
  gap: 5px;
  align-items: stretch;
}

.gm-mix-btn {
  flex: 1;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #052e16;
  font-size: 0.66rem;
  font-weight: 900;
  padding: 5px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gm-clear-btn {
  background: #1e293b;
  color: #fca5a5;
  font-size: 0.58rem;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gm-ings-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gm-cat-row {
  display: flex;
  gap: 4px;
}

.gm-cat {
  font-size: 0.54rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: #1e293b;
  color: #94a3b8;
}

.gm-cat.active {
  background: #38bdf8;
  color: #090d16;
}

.gm-ings-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 4px;
  background: rgba(15, 23, 42, 0.85);
}

.gm-ing {
  position: relative;
  background: #090d16;
  border: 1px solid #334155;
  border-radius: 7px;
  padding: 4px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.82rem;
}

.gm-ing.selected {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.16);
}

.gm-ing span {
  font-size: 0.52rem;
  font-weight: 800;
  color: #e2e8f0;
  margin-top: 1px;
}

.gm-ing b {
  position: absolute;
  top: 2px;
  right: 2px;
  background: #f59e0b;
  color: #090d16;
  font-size: 0.46rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 버튼과 전혀 겹치지 않는 GUIDE 01 하단 설명 바 */
.gm-nonoverlap-legend-grid {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: auto;
}

.gm-legend-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background: rgba(9, 13, 22, 0.92);
  padding: 3px 7px;
  border-radius: 6px;
  border-left: 3px solid #38bdf8;
  font-size: 0.56rem;
}

.gm-legend-chip b {
  font-weight: 900;
  white-space: nowrap;
}

.gm-legend-chip span {
  color: #cbd5e1;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gm-legend-chip.chip-sky { border-left-color: #38bdf8; }
.gm-legend-chip.chip-sky b { color: #7dd3fc; }
.gm-legend-chip.chip-emerald { border-left-color: #34d399; }
.gm-legend-chip.chip-emerald b { color: #6ee7b7; }
.gm-legend-chip.chip-amber { border-left-color: #fbbf24; }
.gm-legend-chip.chip-amber b { color: #fde047; }

/* GUIDE 02: [힌트] 버튼 위치 + 눌렀을 때 열리는 실제 힌트 모달 화면 목업 */
.gm-hint-step1-bar {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gm-quiz-col-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.gm-hint-btn {
  background: #f59e0b;
  color: #090d16;
  font-size: 0.56rem;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 5px;
}

.gm-locked-desc-bar {
  background: rgba(15, 23, 42, 0.95);
  border: 1px dashed #475569;
  color: #cbd5e1;
  font-size: 0.58rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
}

.gm-hint-arrow-banner {
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fde047;
  font-size: 0.58rem;
  padding: 3px 8px;
  border-radius: 6px;
  text-align: center;
}

.gm-actual-hint-modal-box {
  flex: 1;
  background: #131c31;
  border: 1.5px solid #38bdf8;
  border-radius: 10px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  justify-content: space-between;
}

.gm-ahm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.64rem;
  font-weight: 900;
  color: #f8fafc;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.gm-ahm-close {
  color: #94a3b8;
  font-size: 0.62rem;
}

.gm-ahm-target-card {
  background: #0b1120;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 5px 7px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gm-ahm-target-top {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.62rem;
  font-weight: 900;
}

.gm-ahm-q {
  background: #1e293b;
  padding: 1px 5px;
  border-radius: 4px;
}

.gm-ahm-num { color: #60a5fa; }
.gm-ahm-name { color: #fde047; }

.gm-ahm-foil-strip {
  background: linear-gradient(90deg, #475569, #64748b, #475569);
  color: #f8fafc;
  border-radius: 6px;
  padding: 4px 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.56rem;
  font-weight: 800;
}

.gm-ahm-foil-btn {
  background: #0f172a;
  color: #fde047;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.54rem;
}

.gm-ahm-foil-btn b {
  background: #f59e0b;
  color: #090d16;
  padding: 0 3px;
  border-radius: 3px;
  margin-right: 2px;
}

.gm-ahm-step-card {
  background: #0b1120;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 5px 7px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.gm-ahm-step-ico {
  font-size: 1rem;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gm-ahm-step-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.gm-ahm-step-hdr {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.6rem;
  color: #f8fafc;
}

.gm-ahm-badge {
  font-size: 0.5rem;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 4px;
}

.gm-ahm-badge.purple { background: rgba(168, 85, 247, 0.25); color: #d8b4fe; }
.gm-ahm-badge.cyan { background: rgba(56, 189, 248, 0.25); color: #7dd3fc; }

.gm-ahm-tag {
  margin-left: auto;
  font-size: 0.54rem;
  font-weight: 900;
  color: #fde047;
}

.gm-ahm-step-body small {
  font-size: 0.54rem;
  color: #cbd5e1;
}

.gm-rules-summary-box {
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 7px 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  justify-content: center;
}

.gm-hint-explain-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(9, 13, 22, 0.85);
  padding: 5px 8px;
  border-radius: 8px;
  border-left: 3px solid #38bdf8;
}

.gm-hint-explain-item.item-emerald { border-left-color: #34d399; }
.gm-hint-explain-item.item-amber { border-left-color: #fbbf24; }
.gm-hint-explain-item.item-rose { border-left-color: #fb7185; }

.gm-step-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #090d16;
  flex-shrink: 0;
}

.gm-step-circle.sky { background: #38bdf8; }
.gm-step-circle.emerald { background: #34d399; }
.gm-step-circle.amber { background: #fbbf24; }
.gm-step-circle.rose { background: #fb7185; color: #fff; }

.gm-hint-explain-item b {
  display: block;
  font-size: 0.64rem;
  color: #f8fafc;
  margin-bottom: 1px;
}

.gm-hint-explain-item small {
  display: block;
  font-size: 0.56rem;
  color: #cbd5e1;
  line-height: 1.28;
}

/* GUIDE 03 & 04: 실제 주점 카운터 & 조리대 오버레이 목업 */
.gm-counter-scene {
  position: relative;
  height: 138px;
  border-radius: 9px;
  background-size: cover;
  background-position: center bottom;
  overflow: hidden;
  border: 1px solid #334155;
  flex-shrink: 0;
}

.gm-counter-scene.rules-scene {
  height: 138px;
}

.gm-counter-dim {
  position: absolute;
  inset: 0;
  background: rgba(9, 13, 22, 0.25);
}

/* 상단 좌/우 2열 분리 배치로 절대 겹치지 않는 콜아웃 */
.gm-counter-top-callouts {
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  z-index: 15;
}

.gm-callout-card.gm-static-callout {
  position: static;
  max-width: 100%;
  padding: 4px 6px;
}

.gm-callout-card.gm-static-callout b {
  font-size: 0.62rem;
}

.gm-callout-card.gm-static-callout span {
  font-size: 0.54rem;
}

.gm-order-bubble {
  position: absolute;
  left: 50%;
  top: 52px;
  transform: translateX(-50%);
  background: #ffffff;
  color: #0f172a;
  border: 2px solid #0f172a;
  border-radius: 10px;
  padding: 3px 8px;
  font-size: 0.62rem;
  font-weight: 900;
  display: flex;
  flex-direction: column;
  gap: 3px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.55);
  z-index: 10;
  white-space: nowrap;
}

.gm-order-bubble.gm-rules-bubble-right {
  left: auto;
  right: 10px;
  top: 14px;
  transform: none;
}

.gm-bubble-gauge {
  height: 4px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.gm-gauge-fill {
  height: 100%;
  background: #22c55e;
}

.gm-gauge-fill.danger {
  background: #ef4444;
}

.gm-menu-board-passive {
  position: absolute;
  left: 20%;
  bottom: 12%;
  transform: translateX(-50%);
  background: rgba(9, 13, 22, 0.85);
  border: 1px solid #475569;
  border-radius: 6px;
  color: #fde047;
  font-size: 0.56rem;
  font-weight: 900;
  padding: 2px 6px;
}

/* 카운터 중앙 접시 위 완성 음료 표시 (사람 아바타 제거, 접시 위치에 음료 배치) */
.gm-plate-spot {
  position: absolute;
  left: 50%;
  bottom: 11%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.88);
  padding: 3px 10px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  z-index: 10;
}

.gm-plated-drink-icon {
  font-size: 1.35rem;
  line-height: 1;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.7));
}

.gm-plated-drink-name {
  color: #fde047;
  font-size: 0.56rem;
  font-weight: 900;
  white-space: nowrap;
}

.gm-bell-spot {
  position: absolute;
  left: 73%;
  bottom: 11%;
  transform: translateX(-50%);
  background: rgba(251, 191, 36, 0.28);
  padding: 4px 8px;
  color: #fde047;
  font-size: 0.6rem;
  font-weight: 900;
  white-space: nowrap;
  z-index: 10;
}

/* 실제 주점 하단 조리대와 100% 동일한 목업 레이아웃 */
.gm-tycoon-bottom {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(15, 23, 42, 0.92);
  padding: 6px;
  border-radius: 9px;
}

.gm-tycoon-pot-row {
  display: flex;
  gap: 5px;
  align-items: stretch;
}

.gm-mini-slots-4 {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.gm-cp-slot {
  position: relative;
  background: #090d16;
  border: 1px solid #38bdf8;
  border-radius: 7px;
  height: 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #f8fafc;
}

.gm-cp-slot.empty {
  border-style: dashed;
  border-color: #334155;
  color: #64748b;
  font-size: 0.72rem;
}

.gm-cp-ico {
  font-size: 0.85rem;
  line-height: 1;
}

.gm-cp-nm {
  font-size: 0.5rem;
  font-weight: 800;
  margin-top: 1px;
}

.gm-cp-slot b {
  position: absolute;
  top: 2px;
  right: 2px;
  background: #f59e0b;
  color: #090d16;
  font-size: 0.46rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gm-cp-actions-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 68px;
}

.gm-cp-craft-btn {
  flex: 1;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #052e16;
  border-radius: 6px;
  padding: 2px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
}

.gm-cp-craft-btn b {
  font-size: 0.58rem;
  font-weight: 900;
}

.gm-cp-craft-btn small {
  font-size: 0.48rem;
  font-weight: 800;
}

.gm-cp-clear-btn {
  background: #1e293b;
  color: #fca5a5;
  font-size: 0.52rem;
  font-weight: 800;
  padding: 2px 0;
  border-radius: 5px;
  text-align: center;
}

.gm-tycoon-cats {
  padding: 1px 0;
}

.gm-tycoon-ings-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 4px;
}

.gm-mini-ing {
  position: relative;
  background: #090d16;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 3px 2px;
  font-size: 0.78rem;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gm-mini-ing span {
  font-size: 0.5rem;
  font-weight: 800;
  margin-top: 1px;
}

.gm-mini-ing b {
  position: absolute;
  top: 2px;
  right: 2px;
  background: #f59e0b;
  color: #090d16;
  font-size: 0.44rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gm-mini-ing.active {
  border-color: #34d399;
  background: rgba(16, 185, 129, 0.18);
  color: #ffffff;
}

.gm-bottom-Floating-callout {
  position: static;
  max-width: 100%;
  margin-top: auto;
  padding: 4px 7px;
}

.gm-head-combo-popup {
  position: absolute;
  left: 50%;
  top: 12px;
  transform: translateX(-50%);
  background: rgba(9, 13, 22, 0.9);
  padding: 4px 10px;
  text-align: center;
  z-index: 12;
}

.gm-combo-txt {
  font-size: 0.62rem;
  font-weight: 900;
  color: #38bdf8;
  line-height: 1.1;
}

.gm-earn-txt {
  font-size: 0.84rem;
  font-weight: 900;
  color: #fde047;
  line-height: 1.1;
}

.gm-menu-board-spot {
  position: absolute;
  left: 20%;
  bottom: 11%;
  transform: translateX(-50%);
  background: rgba(9, 13, 22, 0.92);
  color: #fde047;
  font-size: 0.6rem;
  font-weight: 900;
  padding: 3px 8px;
  z-index: 12;
}

.gm-menu-popup-mini {
  position: absolute;
  left: 8px;
  top: 10px;
  background: rgba(9, 13, 22, 0.92);
  border: 1px solid #38bdf8;
  border-radius: 8px;
  padding: 4px 7px;
  width: 124px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 11;
}

.gm-mp-title {
  font-size: 0.52rem;
  font-weight: 900;
  color: #7dd3fc;
  margin-bottom: 1px;
}

.gm-mp-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.52rem;
  color: #e2e8f0;
}

.gm-mp-row b {
  color: #fde047;
}

/* =========================================================================
   🎓 실제 인게임 화면 오버랩 코치마크 튜토리얼 (Live Interactive Coach-Mark)
   ========================================================================= */
.live-coach-overlay {
  position: fixed;
  inset: 0;
  z-index: 9500;
  pointer-events: auto;
  overflow: hidden;
  user-select: none;
}

.coach-spotlight-hole {
  position: fixed;
  z-index: 9502;
  border-radius: 12px;
  border: 2.5px solid #38bdf8;
  box-shadow:
    0 0 0 9999px rgba(4, 8, 18, 0.78),
    0 0 22px 4px rgba(56, 189, 248, 0.85),
    inset 0 0 12px rgba(56, 189, 248, 0.45);
  transition: left 0.22s ease, top 0.22s ease, width 0.22s ease, height 0.22s ease;
}

.coach-spotlight-hole.is-clickable {
  cursor: pointer;
  animation: coachHolePulse 1.2s ease-in-out infinite;
}

.coach-spotlight-hole.is-readonly {
  border-color: #fde047;
  box-shadow:
    0 0 0 9999px rgba(4, 8, 18, 0.76),
    0 0 18px 2px rgba(251, 191, 36, 0.65);
  pointer-events: none;
}

@keyframes coachHolePulse {
  0%, 100% {
    border-color: #38bdf8;
    box-shadow:
      0 0 0 9999px rgba(4, 8, 18, 0.78),
      0 0 16px 2px rgba(56, 189, 248, 0.75),
      inset 0 0 10px rgba(56, 189, 248, 0.35);
  }
  50% {
    border-color: #fde047;
    box-shadow:
      0 0 0 9999px rgba(4, 8, 18, 0.78),
      0 0 26px 6px rgba(251, 191, 36, 0.95),
      inset 0 0 14px rgba(251, 191, 36, 0.55);
  }
}

.coach-spotlight-hole.coach-pulse-warn {
  animation: coachShakeWarn 0.36s ease;
}

@keyframes coachShakeWarn {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.coach-hand-pointer {
  position: absolute;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  pointer-events: none;
  z-index: 9506;
  white-space: nowrap;
}

.coach-hand-pointer.point-from-bottom {
  top: calc(100% + 6px);
  transform: translateX(-50%);
  animation: coachHandBounceUp 0.85s ease-in-out infinite;
}

.coach-hand-pointer.point-from-top {
  bottom: calc(100% + 6px);
  flex-direction: column-reverse;
  transform: translateX(-50%);
  animation: coachHandBounceDown 0.85s ease-in-out infinite;
}

@keyframes coachHandBounceUp {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 7px); }
}

@keyframes coachHandBounceDown {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -7px); }
}

.coach-hand-emoji {
  font-size: 1.55rem;
  line-height: 1;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.9));
}

.coach-hand-label {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #090d16;
  font-size: 0.68rem;
  font-weight: 900;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1.5px solid #fef08a;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.85);
}

/* 실제 화면 위 보조 핀 박스 & 라벨 */
.coach-pin-outline {
  position: fixed;
  z-index: 9504;
  border-radius: 8px;
  border: 2px dashed #38bdf8;
  background: rgba(56, 189, 248, 0.14);
  pointer-events: none;
}

.coach-pin-outline.pin-emerald {
  border-color: #34d399;
  background: rgba(52, 211, 153, 0.14);
}

.coach-pin-outline.pin-amber {
  border-color: #fbbf24;
  background: rgba(251, 191, 36, 0.14);
}

.coach-pin-outline.pin-rose {
  border-color: #fb7185;
  background: rgba(251, 113, 133, 0.16);
}

.coach-pin-tag {
  position: absolute;
  top: -19px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.6rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 999px;
  color: #090d16;
  background: #38bdf8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

.coach-pin-tag.tag-emerald { background: #34d399; }
.coach-pin-tag.tag-amber { background: #fbbf24; }
.coach-pin-tag.tag-rose { background: #fb7185; color: #ffffff; }

/* 반투명 코치마크 가이드 설명 카드 */
.coach-message-card {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: min(92vw, 440px);
  z-index: 9510;
  background: rgba(9, 13, 22, 0.94);
  backdrop-filter: blur(10px);
  border: 2px solid #38bdf8;
  border-radius: 16px;
  padding: 12px 16px 14px;
  box-sizing: border-box;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.88), 0 0 20px rgba(56, 189, 248, 0.35);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.coach-progress-bar-wrap {
  width: 100%;
  height: 4px;
  background: rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 2px;
}

.coach-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #10b981);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.coach-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.coach-step-badge {
  background: rgba(56, 189, 248, 0.22);
  border: 1px solid rgba(56, 189, 248, 0.7);
  color: #7dd3fc;
  font-size: 0.68rem;
  font-weight: 900;
  padding: 2px 10px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}

.coach-skip-btn {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid #475569;
  color: #cbd5e1;
  font-size: 0.66rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.coach-skip-btn:hover {
  border-color: #94a3b8;
  color: #ffffff;
  background: rgba(51, 65, 85, 0.95);
}

.coach-card-title {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 900;
  color: #fde047;
  line-height: 1.35;
  display: flex;
  align-items: center;
  gap: 6px;
}

.coach-card-desc {
  font-size: 0.8rem;
  color: #f1f5f9;
  line-height: 1.5;
  margin: 0;
}

.coach-card-desc b {
  color: #6ee7b7;
  font-weight: 900;
}

.coach-card-desc em {
  font-style: normal;
  color: #fde047;
}

.coach-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(148, 163, 184, 0.25);
}

.coach-action-hint {
  font-size: 0.74rem;
  font-weight: 800;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 4px;
}

.coach-next-step-btn {
  padding: 8px 18px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: #041021;
  font-size: 0.84rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.45);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  animation: coachNextPulse 1.8s ease-in-out infinite;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.coach-next-step-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(56, 189, 248, 0.65);
}

.coach-next-step-btn:active {
  transform: scale(0.96);
}

.coach-next-step-btn.is-finish {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.45);
}

@keyframes coachNextPulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(56, 189, 248, 0.45); transform: scale(1); }
  50% { box-shadow: 0 6px 22px rgba(56, 189, 248, 0.75); transform: scale(1.02); }
}

/* 설정 모달 내 [📖 게임 가이드] & [🎓 실전 튜토리얼] 버튼 */
.settings-guide-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.settings-guide-btn {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 900;
  cursor: pointer;
  text-align: center;
  transition: transform 0.12s ease;
}

.settings-guide-btn:active {
  transform: scale(0.98);
}

.settings-guide-btn.guide-popup-btn {
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.35), rgba(15, 23, 42, 0.95));
  border: 1.5px solid #38bdf8;
  color: #bae6fd;
}

.settings-guide-btn.live-tutorial-btn {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(15, 23, 42, 0.95));
  border: 1.5px solid #34d399;
  color: #a7f3d0;
}


/* 타이쿤 컴팩트 재료 카드 재고 부족(0개) 비활성화 & 뱃지 스타일 */
.tycoon-compact-ing.is-disabled {
  opacity: 0.38 !important;
  cursor: not-allowed !important;
  filter: grayscale(0.55) !important;
  border-style: dashed !important;
}

.tycoon-compact-ing.is-disabled:hover {
  background: rgba(30, 41, 59, 0.7) !important;
  border-color: rgba(71, 85, 105, 0.45) !important;
  transform: none !important;
}

.tycoon-compact-ing.is-disabled:active {
  transform: none !important;
}

.tycoon-compact-ing .ing-stock-badge {
  position: absolute;
  top: -4px;
  left: -4px;
  z-index: 4;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  font-size: 0.63rem;
  font-weight: 900;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
