/* ── 플로팅 HUD ─────────────────────────────── */

/* 좌상단: 일차 · 시간 */
[hidden] {
  display: none !important;
}

#hud-left {
  font-size: 14px;
  font-weight: 700;
  color: #f7f8fb;
  letter-spacing: 0.03em;
}

#hud-left .hud-sep {
  color: rgba(255, 255, 255, 0.50);
  font-weight: 400;
}

#hud-left #day-display {
  color: #ffd98a;
}

#hud-left #time-display {
  color: #c8d8ff;
}

/* 우상단: 현금 / 체력 / 에너지 */
.hud-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.hud-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hud-val {
  font-size: 14px;
  font-weight: 700;
}

.hud-val.money  { color: #7fff7f; }
.hud-val.bank { color: #7ee0ff; }
.hud-val.stamina { color: #87ceeb; }
.hud-val.energy  { color: #ffb36b; }
.hud-val.hunger  { color: #ff8f6b; }

.hud-val.is-warning {
  color: #ffd36b !important;
}

.hud-val.is-danger {
  color: #ff7b7b !important;
}

.hud-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.20);
  flex-shrink: 0;
}

.headline-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 215, 0, 0.18);
  color: #ffe28a;
  font-size: 10px;
  font-weight: bold;
  white-space: nowrap;
  flex-shrink: 0;
}

.headline-text {
  color: #e6ebf5;
  font-size: 12px;
  line-height: 1.58;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

#speaker {
  display: none;
  font-size: 12px;
  font-weight: bold;
  color: #ffe28a;
  letter-spacing: 0.07em;
  background: rgba(255, 215, 0, 0.14);
  border: 1px solid rgba(255, 215, 0, 0.28);
  border-radius: 999px;
  padding: 4px 10px;
}

#textbox.has-speaker:not(.is-choice-only) #speaker {
  display: inline-flex;
}

.scene-tags {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.scene-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  color: #dde4f0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

#message {
  color: #eaeaea;
  width: min(100%, 760px);
  max-width: none;
  align-self: center;
}

#message:empty {
  display: none;
}

#textbox.is-awaiting-advance #message {
  cursor: pointer;
}

#textbox.is-choice-only .textbox-top,
#textbox.is-choice-only .message-narration {
  display: none;
}

.message-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 8px;
  color: #fff;
}

.message-copy {
  color: rgba(245, 247, 252, 0.96);
  font-size: 15px;
  line-height: 1.9;
}

.message-continue {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.message-narration {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-width: none;
  padding: 18px 20px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(10, 12, 22, 0.84), rgba(8, 10, 18, 0.7)),
    radial-gradient(circle at top left, rgba(255, 233, 171, 0.12), transparent 42%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 20px 36px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.location-map {
  margin-top: 0;
  padding: 14px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(15, 20, 34, 0.58), rgba(9, 12, 22, 0.46)),
    radial-gradient(circle at top left, rgba(255, 215, 0, 0.14), transparent 48%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  width: min(100%, 680px);
  max-width: none;
  align-self: center;
}

.location-map-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.location-map-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ffd98a;
  text-transform: uppercase;
}

.location-map-subtitle {
  font-size: 11px;
  line-height: 1.5;
  color: rgba(220, 226, 236, 0.72);
}

.location-map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}

.location-map-node {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 11px;
  min-height: 74px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.location-map-node.is-current {
  background: rgba(255, 215, 0, 0.12);
  border-color: rgba(255, 215, 0, 0.42);
}

.location-map-label-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.location-map-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #f4f4f4;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.location-map-emoji {
  font-size: 15px;
  line-height: 1;
}

.location-map-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 215, 0, 0.18);
  color: #ffe49c;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.location-map-note {
  color: rgba(214, 220, 228, 0.76);
  font-size: 11px;
  line-height: 1.45;
}

/* ===== 즉석복권 스크래치 ===== */

.lotto-scratch-shell {
  margin-top: 14px;
  width: min(100%, 480px);
  align-self: center;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.32);
  gap: 0;
}

.lotto-scratch-shell.is-result {
  gap: 0;
}

/* ── 티켓 헤더 ── */
.lotto-ticket-header {
  background: linear-gradient(135deg, #b8860b 0%, #ffd700 40%, #daa520 70%, #b8860b 100%);
  padding: 12px 16px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px dashed rgba(0, 0, 0, 0.18);
}

.lotto-ticket-brand {
  font-size: 18px;
  font-weight: 900;
  color: #1a0a00;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 0 rgba(255,255,255,0.3);
}

.lotto-ticket-price-badge {
  background: rgba(0, 0, 0, 0.18);
  color: #1a0a00;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 99px;
}

/* ── 스크래치 영역 ── */
.lotto-scratch-area {
  background: #fffef5;
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lotto-scratch-instruction {
  font-size: 12px;
  font-weight: 700;
  color: #8a6000;
  text-align: center;
  letter-spacing: 0.02em;
}

/* ── 상태 칩 ── */
.lotto-scratch-status {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lotto-scratch-status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.07);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #5a4000;
  font-size: 11px;
  font-weight: 700;
}

/* ── 스크래치 보드 ── */
.lotto-scratch-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.lotto-scratch-cell {
  position: relative;
  min-height: 100px;
  border: none;
  border-radius: 10px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

/* 미긁은 셀 — 은색 메탈릭 */
.lotto-scratch-cell.is-hidden {
  background: linear-gradient(145deg, #d8d8d8 0%, #b0b0b0 40%, #d4d4d4 60%, #989898 100%);
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, 0.65),
    inset 0 -2px 3px rgba(0, 0, 0, 0.22),
    0 3px 8px rgba(0, 0, 0, 0.2);
}

.lotto-scratch-cell.is-hidden:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, 0.65),
    inset 0 -2px 3px rgba(0, 0, 0, 0.22),
    0 6px 16px rgba(0, 0, 0, 0.28);
}

.lotto-scratch-cell.is-hidden strong {
  font-size: 11px;
  font-weight: 800;
  color: rgba(60, 60, 60, 0.7);
  letter-spacing: 0.05em;
}

.lotto-scratch-cell.is-hidden::before {
  content: "🪙";
  font-size: 34px;
  line-height: 1;
}

/* 긁힌 셀 — 흰 카드 */
.lotto-scratch-cell.is-revealed {
  background: #ffffff;
  border: 2px solid #e8e8e8;
  cursor: default;
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.06);
}

.lotto-scratch-cell.is-revealed strong {
  font-size: 15px;
  font-weight: 900;
  text-align: center;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.lotto-scratch-cell-index {
  display: none;
}

/* 등급별 색상 */
.lotto-scratch-cell.is-revealed.is-miss strong { color: #bbb; }
.lotto-scratch-cell.is-revealed.is-refund strong { color: #3b82f6; }
.lotto-scratch-cell.is-revealed.is-small strong { color: #16a34a; }
.lotto-scratch-cell.is-revealed.is-medium strong { color: #059669; font-size: 13px; }
.lotto-scratch-cell.is-revealed.is-large strong { color: #d97706; font-size: 13px; }
.lotto-scratch-cell.is-revealed.is-jackpot {
  background: linear-gradient(135deg, #fff9e6, #fff3c4);
  border-color: #fbbf24;
}
.lotto-scratch-cell.is-revealed.is-jackpot strong {
  color: #b45309;
  font-size: 11px;
}
.lotto-scratch-cell.is-revealed.is-super {
  background: linear-gradient(135deg, #fdf4ff, #f3e8ff);
  border-color: #a855f7;
  animation: lotto-super-pulse 1.2s ease-in-out infinite alternate;
}
.lotto-scratch-cell.is-revealed.is-super strong {
  color: #7c3aed;
  font-size: 10px;
}

@keyframes lotto-super-pulse {
  from { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.4); }
  to   { box-shadow: 0 0 0 6px rgba(168, 85, 247, 0); }
}

/* ── 확률표 ── */
.lotto-scratch-odds {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.lotto-scratch-odds-title {
  color: #8a6000;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.lotto-scratch-odds-row {
  color: #555;
  font-size: 12px;
  line-height: 1.45;
}

/* ── 하단 바 (액션 + 안내) ── */
.lotto-scratch-footer {
  background: #f0ead0;
  border-top: 2px dashed rgba(0, 0, 0, 0.12);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lotto-scratch-note {
  color: #7a6030;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.lotto-scratch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.lotto-scratch-action {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.8);
  color: #333;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.1s;
}

.lotto-scratch-action:hover {
  background: #fff;
}

.lotto-scratch-action.is-primary {
  background: linear-gradient(180deg, #ffd45a, #ffbc2d);
  border-color: #e6a800;
  color: #3a2000;
  box-shadow: 0 2px 8px rgba(255, 190, 50, 0.4);
}

/* ── 결과 화면 ── */
.lotto-scratch-result-payout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  gap: 4px;
  padding: 20px 16px;
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.04em;
  border-radius: 10px;
  color: #bbb;
}

.lotto-scratch-result-payout.is-win {
  background: linear-gradient(160deg, #fff9e0, #ffe680);
  color: #7a4f00;
}

.lotto-scratch-result-payout.is-win.is-jackpot,
.lotto-scratch-result-payout.is-win.is-super {
  background: linear-gradient(160deg, #f5e6ff, #e0b8ff);
  color: #5b00b5;
  font-size: 32px;
}

.lotto-scratch-result-payout.is-miss {
  color: #bbb;
}

.lotto-scratch-result-sub {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.7;
  letter-spacing: 0;
}

.location-map-bus-route {
  padding: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(236, 244, 255, 0.96), rgba(225, 236, 252, 0.92)),
    radial-gradient(circle at top left, rgba(84, 155, 255, 0.26), transparent 46%);
  border: 1px solid rgba(132, 171, 232, 0.34);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.location-map-route-hero {
  padding: 18px 18px 16px;
  background:
    linear-gradient(180deg, rgba(21, 88, 201, 0.96), rgba(10, 71, 172, 0.94)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 34%);
  color: #ffffff;
}

.location-map-route-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.location-map-route-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #f7fbff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.location-map-route-chip.is-alert {
  background: rgba(235, 68, 90, 0.92);
}

.location-map-route-name {
  font-size: 27px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.location-map-route-direction {
  margin-top: 6px;
  color: rgba(235, 244, 255, 0.9);
  font-size: 13px;
  font-weight: 600;
}

.location-map-route-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.location-map-route-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 11px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.location-map-route-stat span {
  color: rgba(228, 238, 255, 0.84);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.location-map-route-stat strong {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
}

.location-map-route-helper {
  padding: 14px 18px 16px;
  color: rgba(34, 48, 74, 0.8);
  font-size: 12px;
  line-height: 1.55;
}

.location-map-terminal-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 14px 0;
}

.location-map-terminal-tab {
  appearance: none;
  border: 0;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(21, 88, 201, 0.08);
  color: rgba(29, 53, 95, 0.72);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.12s ease,
    box-shadow 0.18s ease;
}

.location-map-terminal-tab:hover {
  transform: translateY(-1px);
  color: #12346f;
  background: rgba(21, 88, 201, 0.12);
}

.location-map-terminal-tab.is-active {
  background: linear-gradient(180deg, rgba(21, 88, 201, 0.96), rgba(10, 71, 172, 0.94));
  color: #ffffff;
  box-shadow: 0 10px 18px rgba(16, 56, 126, 0.18);
}

.location-map-bus-route.is-terminal-schedule {
  background:
    linear-gradient(180deg, rgba(247, 250, 255, 0.98), rgba(236, 242, 252, 0.96)),
    radial-gradient(circle at top left, rgba(120, 139, 176, 0.16), transparent 44%);
}

.location-map-terminal-hero {
  padding: 16px 18px;
  margin: 12px 14px 0;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(27, 33, 46, 0.96), rgba(16, 21, 33, 0.94)),
    radial-gradient(circle at top left, rgba(81, 133, 255, 0.18), transparent 38%);
  color: #ffffff;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.16);
}

.location-map-terminal-name {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.location-map-terminal-subtitle {
  margin-top: 5px;
  color: rgba(222, 230, 244, 0.82);
  font-size: 12px;
  font-weight: 600;
}

.location-map-terminal-schedule-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
}

.location-map-terminal-card {
  padding: 14px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.96)),
    radial-gradient(circle at top left, rgba(67, 132, 255, 0.08), transparent 38%);
  border: 1px solid rgba(160, 179, 214, 0.28);
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.location-map-terminal-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.location-map-terminal-card-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.location-map-terminal-destination {
  color: #16294f;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.35;
}

.location-map-terminal-meta {
  color: rgba(55, 71, 98, 0.72);
  font-size: 11px;
  font-weight: 700;
}

.location-map-terminal-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.location-map-terminal-status.is-calm {
  background: rgba(79, 196, 117, 0.16);
  color: #248743;
}

.location-map-terminal-status.is-busy {
  background: rgba(235, 68, 90, 0.14);
  color: #bf2942;
}

.location-map-terminal-status.is-normal {
  background: rgba(255, 162, 61, 0.16);
  color: #bc6900;
}

.location-map-terminal-times {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.location-map-terminal-time {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  min-height: 56px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(243, 247, 255, 0.94);
  border: 1px solid rgba(176, 192, 220, 0.32);
}

.location-map-terminal-time strong {
  color: #243a67;
  font-size: 13px;
  font-weight: 900;
}

.location-map-terminal-time span {
  margin-top: 4px;
  color: rgba(63, 80, 109, 0.68);
  font-size: 10px;
  font-weight: 700;
}

.location-map-terminal-time.is-highlight {
  background: rgba(222, 236, 255, 0.98);
  border-color: rgba(57, 122, 224, 0.48);
  box-shadow: inset 0 0 0 1px rgba(57, 122, 224, 0.14);
}

.location-map-terminal-time.is-highlight strong,
.location-map-terminal-time.is-highlight span {
  color: #1550b8;
}

.location-map-terminal-notice {
  padding: 0 16px 16px;
  color: rgba(57, 74, 103, 0.7);
  font-size: 11px;
  line-height: 1.55;
}

#choices {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: fit-content;
  max-width: 560px;
  justify-content: flex-start;
  align-items: stretch;
  align-self: flex-start;
  margin-top: 0;
}

#choices:empty {
  display: none;
  margin-top: 0;
}

#choices.is-bus-route {
  position: relative;
  gap: 14px;
  width: min(100%, 520px);
  max-width: 520px;
  padding: 6px 0 2px;
}

#choices.is-bus-route::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 18px;
  bottom: 20px;
  width: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(50, 126, 248, 0.96), rgba(21, 88, 201, 0.88));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.choice-btn {
  width: 100%;
  min-width: 0;
  max-width: 560px;
  padding: 14px 18px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(12, 15, 26, 0.9), rgba(8, 10, 18, 0.76)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 46%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f5f7fb;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.12s ease,
    box-shadow 0.18s ease;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  word-break: keep-all;
  white-space: normal;
  line-height: 1.45;
  box-shadow:
    0 16px 30px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.choice-btn.has-earn {
  min-width: 0;
  max-width: none;
}

.choice-btn.choice-btn-bus-route {
  position: relative;
  max-width: none;
  padding: 0 0 0 54px;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  gap: 0;
  color: #13233f;
}

.choice-btn.choice-btn-bus-route:hover {
  background: transparent;
  border-color: transparent;
  color: #13233f;
  transform: none;
  box-shadow: none;
}

.choice-route-marker {
  position: absolute;
  left: 9px;
  top: 18px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #2f7cf6;
  border: 4px solid #ffffff;
  box-shadow:
    0 10px 20px rgba(18, 50, 108, 0.18),
    0 0 0 1px rgba(21, 88, 201, 0.18);
}

.choice-btn.choice-btn-bus-route.is-major .choice-route-marker {
  left: 6px;
  top: 15px;
  width: 28px;
  height: 28px;
  background: #ffffff;
  border: 4px solid #1560db;
}

.choice-btn.choice-btn-bus-route.is-major .choice-route-marker::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 999px;
  background: #1560db;
}

.choice-route-main {
  width: 100%;
  padding: 14px 16px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(237, 244, 253, 0.96)),
    radial-gradient(circle at top left, rgba(66, 139, 255, 0.14), transparent 40%);
  border: 1px solid rgba(148, 176, 221, 0.4);
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition:
    transform 0.14s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.choice-btn.choice-btn-bus-route:hover .choice-route-main {
  transform: translateY(-2px);
  border-color: rgba(57, 122, 224, 0.52);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(240, 247, 255, 0.98)),
    radial-gradient(circle at top left, rgba(66, 139, 255, 0.18), transparent 42%);
}

.choice-route-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.choice-route-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.choice-route-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.choice-route-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 10px;
  background: rgba(21, 96, 219, 0.12);
  font-size: 14px;
  line-height: 1;
}

.choice-route-title {
  font-size: 15px;
  font-weight: 800;
  color: #10213f;
}

.choice-route-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(21, 96, 219, 0.1);
  color: #1560db;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.choice-route-desc {
  color: rgba(37, 52, 78, 0.72);
  font-size: 12px;
  line-height: 1.5;
}

.choice-route-eta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 12px;
  background: rgba(21, 96, 219, 0.08);
  color: #1560db;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.choice-btn:hover {
  background:
    linear-gradient(180deg, rgba(54, 44, 18, 0.86), rgba(20, 15, 8, 0.72)),
    radial-gradient(circle at top left, rgba(255, 215, 0, 0.18), transparent 44%);
  border-color: rgba(255, 215, 0, 0.55);
  color: #fff;
  transform: translateY(-1px);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.choice-main {
  display: block;
  flex: 0 1 auto;
}

.choice-title {
  display: block;
  font-size: 14px;
  font-weight: bold;
  line-height: 1.55;
}

.choice-earn {
  color: #7fff7f;
  font-size: 12px;
  font-weight: bold;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.trash-item {
  position: absolute;
  width: 96px;
  height: 96px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  transition: transform 0.14s ease;
}

.trash-item:hover {
  transform: translate(-50%, -50%) scale(1.08);
}

.trash-item.dev-position-target,
.scene-actor.dev-position-target {
  cursor: grab;
  pointer-events: auto;
}

.trash-item.dev-position-target:hover {
  transform: translate(-50%, -50%);
}

.trash-item.dev-position-target.is-selected,
.scene-actor.dev-position-target.is-selected {
  outline: 2px dashed rgba(255, 200, 60, 0.92);
  outline-offset: 4px;
}

.trash-item.dev-position-target.is-dragging,
.scene-actor.dev-position-target.is-dragging {
  cursor: grabbing;
  filter: brightness(1.06);
}

.trash-item-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.24));
  pointer-events: none;
}

.scene-actor {
  position: absolute;
  transform-origin: bottom center;
  max-height: none;
  overflow: visible;
}

.scene-actor.is-interactive {
  padding: 0;
  border: 0;
  background: none;
  appearance: none;
  cursor: pointer;
  pointer-events: auto;
}

.scene-actor.is-interactive:hover .scene-actor-image,
.scene-actor.is-interactive:focus-visible .scene-actor-image {
  filter:
    drop-shadow(0 18px 28px rgba(0, 0, 0, 0.34))
    drop-shadow(0 0 14px rgba(255, 214, 130, 0.24));
}

.scene-actor.is-interactive:focus-visible {
  outline: 0;
}

.scene-actor-image {
  display: block;
  height: 100%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.28));
  transform-origin: center center;
}

/* ── 우측 세로 툴바 ──────────────────────────── */

#side-toolbar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border-radius: 16px;
  background: rgba(8, 10, 20, 0.60);
  border: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  min-width: 60px;
}

#side-toolbar button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 12px;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.12s;
}

#side-toolbar button:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

#side-toolbar button[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
}

.toolbar-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.toolbar-badge {
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(240, 240, 240, 0.9);
  font-size: 10px;
  font-weight: 700;
}

/* ── 공통 패널 스타일 ────────────────────────── */

#character-panel,
#inventory-panel,
#memory-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(8, 11, 22, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
}

#character-panel[hidden],
#inventory-panel[hidden],
#memory-panel[hidden] {
  display: none;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.panel-kicker {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(200, 210, 230, 0.60);
}

.panel-title {
  margin-top: 2px;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.panel-close-button {
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(240, 240, 240, 0.88);
  font-size: 11px;
  cursor: pointer;
}

.panel-close-button:hover {
  background: rgba(255, 255, 255, 0.10);
}

.memory-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
  padding-right: 2px;
}

.memory-empty {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.memory-empty-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.memory-empty-body {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(218, 222, 230, 0.76);
}

.memory-entry {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.memory-entry--npc {
  border-color: rgba(255, 214, 130, 0.2);
}

.memory-entry--finance {
  border-color: rgba(118, 205, 168, 0.2);
}

.memory-entry-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
  color: rgba(196, 202, 214, 0.66);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.memory-entry-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  color: #ffffff;
}

.memory-entry-body {
  font-size: 12px;
  line-height: 1.7;
  color: rgba(226, 229, 236, 0.84);
}

.memory-entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.memory-entry-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(239, 240, 243, 0.82);
  font-size: 10px;
}


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

.inventory-summary-chip {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 11px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.inventory-summary-label {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(201, 213, 225, 0.68);
}

.inventory-summary-value {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: #f8fbff;
}

.inventory-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inventory-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(233, 238, 245, 0.86);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.inventory-tab.is-active {
  border-color: rgba(122, 214, 255, 0.44);
  background: rgba(122, 214, 255, 0.14);
  color: #ffffff;
}

.inventory-tab-count {
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 10px;
}

.inventory-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
  padding-right: 2px;
}

.inventory-empty {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.inventory-empty-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.inventory-empty-body {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(218, 222, 230, 0.76);
}

/* ── 인벤토리 그리드 ──────────────────────────── */

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

.inv-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 4px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: default;
  transition: background 0.12s, border-color 0.12s;
}

.inv-cell.has-action {
  padding-bottom: 12px;
}

.inv-cell:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.inv-cell.is-equipped {
  border-color: rgba(122, 214, 255, 0.35);
  background: rgba(122, 214, 255, 0.06);
}

.inv-cell-icon {
  font-size: 26px;
  line-height: 1;
}

.inv-cell-name {
  font-size: 10px;
  font-weight: 600;
  color: rgba(220, 226, 238, 0.88);
  text-align: center;
  line-height: 1.3;
  word-break: keep-all;
}

.inv-cell-qty {
  position: absolute;
  top: 5px;
  right: 6px;
  font-size: 9px;
  font-weight: 700;
  color: rgba(200, 220, 255, 0.7);
}

.inv-cell-use {
  margin-top: 4px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 170, 120, 0.28);
  border-radius: 999px;
  background: rgba(255, 145, 77, 0.14);
  color: #ffd6bf;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
}

.inv-cell-use:hover {
  background: rgba(255, 145, 77, 0.22);
  border-color: rgba(255, 186, 120, 0.42);
  transform: translateY(-1px);
}

/* ── 캐릭터 패널 스탯 ────────────────────────── */

.character-stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.character-stat-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.character-stat-section-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: rgba(255, 219, 161, 0.92);
  text-transform: uppercase;
}

.character-stat-section-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.character-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.character-stat-name {
  font-size: 13px;
  color: rgba(240, 230, 210, 0.82);
}

.character-stat-name-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 78px;
}

.character-stat-meta {
  font-size: 10px;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.10);
}

.character-stat-meta.steady {
  background: rgba(77, 208, 168, 0.18);
  color: #7ef2c7;
}

.character-stat-meta.sated {
  background: rgba(120, 207, 126, 0.18);
  color: #a7ffac;
}

.character-stat-meta.low {
  background: rgba(255, 193, 94, 0.18);
  color: #ffd27a;
}

.character-stat-meta.depressed {
  background: rgba(255, 107, 107, 0.18);
  color: #ff9c9c;
}

.character-stat-meta.hungry {
  background: rgba(255, 157, 92, 0.18);
  color: #ffbe8e;
}

.character-stat-meta.critical {
  background: rgba(255, 92, 92, 0.20);
  color: #ff8d8d;
}

.character-stat-bar-wrap {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.10);
  border-radius: 2px;
  overflow: hidden;
  max-width: 80px;
}

.character-stat-bar {
  height: 100%;
  border-radius: 2px;
  transition: width 0.35s ease;
}

.character-stat-bar.intelligence { background: #87ceeb; }
.character-stat-bar.reputation   { background: #ffd700; }
.character-stat-bar.crime        { background: #ff6b6b; }
.character-stat-bar.stamina      { background: #8aa8ff; }
.character-stat-bar.energy       { background: #c9ff7a; }
.character-stat-bar.happiness    { background: #4dd0a8; }
.character-stat-bar.hunger       { background: #ff8f6b; }
.character-stat-bar.attractiveness { background: #ff8bd2; }
.character-stat-bar.service      { background: #63b3ff; }
.character-stat-bar.labor        { background: #ffb347; }
.character-stat-bar.office       { background: #9c8cff; }
.character-stat-bar.academic     { background: #63e6be; }

.character-stat-val {
  font-size: 14px;
  font-weight: 700;
  min-width: 28px;
  text-align: right;
}

.character-stat-val.intelligence { color: #87ceeb; }
.character-stat-val.reputation   { color: #ffd700; }
.character-stat-val.crime        { color: #ff6b6b; }
.character-stat-val.stamina      { color: #8aa8ff; }
.character-stat-val.energy       { color: #d9ff8f; }
.character-stat-val.happiness    { color: #4dd0a8; }
.character-stat-val.hunger       { color: #ffb08f; }
.character-stat-val.attractiveness { color: #ff8bd2; }
.character-stat-val.service      { color: #63b3ff; }
.character-stat-val.labor        { color: #ffb347; }
.character-stat-val.office       { color: #9c8cff; }
.character-stat-val.academic     { color: #63e6be; }

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

.character-summary-card {
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.character-summary-label {
  font-size: 11px;
  color: rgba(220, 210, 190, 0.65);
}

.character-summary-value {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #f7f1e3;
  word-break: keep-all;
}

.character-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.character-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(240, 232, 220, 0.84);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.character-chip.is-ready {
  border-color: rgba(87, 215, 166, 0.34);
  background: rgba(87, 215, 166, 0.16);
  color: #8dffcf;
}

.character-chip.is-missing {
  border-color: rgba(255, 120, 120, 0.28);
  background: rgba(255, 120, 120, 0.14);
  color: #ffb1b1;
}

.start-ranking-panel {
  --start-ranking-accent: #cbd5e1;
  --start-ranking-accent-soft: rgba(203, 213, 225, 0.14);
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 3;
  width: min(320px, calc(100vw - 32px));
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 18px 16px;
  border-radius: 20px;
  background: rgba(6, 8, 12, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
  pointer-events: none;
}

.start-ranking-panel--overlay {
  top: 18px;
  right: 18px;
  z-index: 5;
}

.start-ranking-kicker {
  color: var(--start-ranking-accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.start-ranking-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.start-ranking-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.start-ranking-label {
  color: rgba(255, 255, 255, 0.52);
  font-size: 11px;
  font-weight: 600;
}

.start-ranking-value {
  color: #ffffff;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.start-ranking-badge {
  max-width: 112px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--start-ranking-accent-soft);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  line-height: 1.35;
}

.start-ranking-current {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 13px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.start-ranking-current-label {
  color: rgba(255, 255, 255, 0.44);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.start-ranking-current-name {
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.start-ranking-current-desc {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  line-height: 1.55;
}

.start-ranking-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.start-ranking-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.start-ranking-item.is-active {
  border-color: rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, var(--start-ranking-accent-soft) 0%, rgba(255, 255, 255, 0.04) 100%);
}

.start-ranking-item-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.start-ranking-item-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.start-ranking-item-name {
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.start-ranking-item-note {
  color: rgba(255, 255, 255, 0.54);
  font-size: 11px;
  line-height: 1.45;
}

.start-ranking-foot {
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  line-height: 1.45;
}

.start-card {
  --start-origin-accent: #94a3b8;
  --start-origin-accent-soft: rgba(148, 163, 184, 0.14);
  --start-origin-glow: rgba(148, 163, 184, 0.22);
  width: min(480px, 100%);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 28px;
  border-radius: 22px;
  background: rgba(10, 12, 18, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(10px);
}

.start-card[data-screen-mode="origin"] {
  width: min(420px, 100%);
  min-height: min(680px, 84vh);
  justify-content: center;
  gap: 18px;
  padding: 24px 22px;
  background: rgba(2, 3, 5, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.42);
  backdrop-filter: none;
}

.start-origin-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.03) 100%),
    radial-gradient(circle at top, var(--start-origin-accent-soft) 0%, rgba(255, 255, 255, 0) 58%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.start-card[data-screen-mode="origin"] .start-origin-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%),
    radial-gradient(circle at top, var(--start-origin-accent-soft) 0%, rgba(255, 255, 255, 0) 58%);
  border-color: rgba(255, 255, 255, 0.08);
}

.start-origin-machine {
  position: relative;
  min-height: 188px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(circle at top, var(--start-origin-accent-soft) 0%, rgba(255, 255, 255, 0) 48%),
    linear-gradient(180deg, rgba(9, 12, 20, 0.96) 0%, rgba(5, 7, 11, 0.92) 100%);
  perspective: 900px;
}

.start-origin-machine-glow {
  position: absolute;
  inset: auto 14% 10%;
  height: 26px;
  border-radius: 999px;
  background: var(--start-origin-glow);
  filter: blur(14px);
}

.start-origin-machine-ring {
  position: absolute;
  top: 18px;
  left: 50%;
  width: 136px;
  height: 136px;
  border-radius: 50%;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 0 0 8px rgba(255, 255, 255, 0.02),
    0 0 0 1px rgba(255, 255, 255, 0.02);
}

.start-origin-capsule {
  position: relative;
  z-index: 1;
  width: 132px;
  height: 132px;
  border-radius: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.03) 26%, rgba(255, 255, 255, 0.08) 100%),
    linear-gradient(180deg, rgba(18, 23, 35, 0.96) 0%, rgba(8, 11, 18, 0.94) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 22px 44px rgba(0, 0, 0, 0.34),
    0 0 32px var(--start-origin-glow);
  transform: rotateX(18deg) rotateZ(-6deg);
}

.start-origin-machine[data-phase="drawing"] .start-origin-capsule {
  animation: start-origin-spin 0.82s linear infinite;
}

.start-origin-machine[data-phase="result"] .start-origin-capsule {
  animation: start-origin-settle 0.5s ease;
}

.start-origin-machine-base {
  position: absolute;
  left: 50%;
  bottom: 16px;
  width: 164px;
  height: 22px;
  border-radius: 999px;
  transform: translateX(-50%);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.02) 100%),
    linear-gradient(180deg, rgba(12, 15, 26, 0.96) 0%, rgba(7, 9, 16, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.start-origin-emblem {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--start-origin-accent);
  text-shadow: 0 0 18px var(--start-origin-glow);
}

.start-origin-spoon {
  font-size: 21px;
  opacity: 0.92;
  transform: translateY(-2px);
}

.start-origin-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.start-origin-kicker {
  color: var(--start-origin-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.start-origin-name {
  color: #ffffff;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.18;
}

.start-origin-desc {
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  line-height: 1.6;
}

.start-origin-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.start-origin-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 600;
}

@keyframes start-origin-spin {
  0% {
    transform: rotateX(18deg) rotateZ(-6deg) rotateY(0deg);
  }
  100% {
    transform: rotateX(18deg) rotateZ(-6deg) rotateY(360deg);
  }
}

@keyframes start-origin-settle {
  0% {
    transform: rotateX(18deg) rotateZ(-6deg) scale(0.96);
  }
  60% {
    transform: rotateX(18deg) rotateZ(-3deg) scale(1.04);
  }
  100% {
    transform: rotateX(18deg) rotateZ(-6deg) scale(1);
  }
}

.start-ranking-trigger {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 4;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 214, 102, 0.32);
  border-radius: 18px;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 236, 168, 0.26) 0%, rgba(255, 236, 168, 0.02) 42%),
    linear-gradient(180deg, rgba(21, 26, 38, 0.96) 0%, rgba(10, 14, 24, 0.94) 100%);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: #ffd978;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.start-ranking-trigger::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.start-ranking-trigger:hover {
  transform: translateY(-1px) scale(1.02);
  border-color: rgba(255, 224, 138, 0.5);
  box-shadow:
    0 22px 40px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(255, 214, 102, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.start-ranking-trigger:disabled {
  opacity: 0.72;
  cursor: wait;
  transform: none;
}

.start-ranking-trigger.is-loading {
  animation: start-ranking-trigger-pulse 0.9s ease-in-out infinite alternate;
}

.start-ranking-trigger-icon {
  position: relative;
  z-index: 1;
  font-size: 27px;
  line-height: 1;
  filter: drop-shadow(0 6px 14px rgba(255, 196, 80, 0.24));
}

@keyframes start-ranking-trigger-pulse {
  0% {
    box-shadow:
      0 18px 34px rgba(0, 0, 0, 0.34),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
  100% {
    box-shadow:
      0 20px 38px rgba(0, 0, 0, 0.38),
      0 0 0 1px rgba(255, 214, 102, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }
}

.start-kicker {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f4cf7a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.start-title {
  color: #ffffff;
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.start-sub {
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.6;
}

.start-body {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  line-height: 1.7;
}

.start-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.start-highlight {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
}

.start-kicker,
.start-sub,
.start-body,
.start-highlights {
  display: none !important;
}

.name-input {
  width: 100%;
  max-width: 100%;
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  padding: 13px 16px;
  text-align: left;
  outline: none;
}

.name-input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.name-input:focus {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.16);
}

.start-btn {
  display: block;
  width: 100%;
  margin: 6px 0 0;
  background: #f3f4f6;
  color: #111827;
  border: none;
  padding: 13px 18px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, transform 0.2s ease;
  box-shadow: none;
}

.start-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.start-card[data-screen-mode="origin"] .start-actions {
  margin-top: 2px;
}

.start-btn-secondary {
  background: rgba(255, 255, 255, 0.14);
  color: #f3f4f6;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.start-btn:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

.start-btn:disabled {
  opacity: 0.72;
  cursor: wait;
  transform: none;
}

.start-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ── 로그인 섹션 ── */
.start-login-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.start-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.96);
  color: #3c4043;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
}

.start-google-btn:hover {
  background: #ffffff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
  transform: translateY(-1px);
}

.start-google-btn:disabled,
.start-login-btn:disabled,
.start-guest-btn:disabled {
  opacity: 0.58;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.start-google-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.start-login-divider {
  display: flex;
  align-items: center;
  gap: 10px;
}

.start-login-divider-line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.start-login-divider-text {
  color: rgba(244, 247, 255, 0.38);
  font-size: 11px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.start-login-btn {
  display: block;
  width: 100%;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(244, 247, 255, 0.88);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.start-login-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.start-guest-btn {
  display: block;
  width: 100%;
  padding: 13px 18px;
  border-radius: 12px;
  border: 1px solid rgba(112, 176, 255, 0.42);
  background: linear-gradient(135deg, rgba(67, 123, 255, 0.92), rgba(81, 189, 158, 0.9));
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(21, 84, 160, 0.32);
  transition: box-shadow 0.15s, transform 0.15s, filter 0.15s;
}

.start-guest-btn:hover {
  filter: brightness(1.05);
  box-shadow: 0 18px 38px rgba(21, 84, 160, 0.4);
  transform: translateY(-1px);
}

.start-login-status {
  margin: 2px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(244, 247, 255, 0.78);
  font-size: 12px;
  line-height: 1.5;
}

.start-login-status[data-tone="success"] {
  border-color: rgba(110, 231, 183, 0.22);
  background: rgba(16, 185, 129, 0.12);
  color: rgba(209, 250, 229, 0.92);
}

.start-login-status[data-tone="error"] {
  border-color: rgba(248, 113, 113, 0.24);
  background: rgba(127, 29, 29, 0.24);
  color: rgba(254, 226, 226, 0.92);
}

.start-login-status[data-tone="warn"] {
  border-color: rgba(251, 191, 36, 0.24);
  background: rgba(120, 53, 15, 0.22);
  color: rgba(254, 243, 199, 0.92);
}

.start-guest-note {
  margin: -2px 0 0;
  color: rgba(244, 247, 255, 0.34);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.start-auth-modal {
  position: absolute;
  inset: 0;
  z-index: 260;
  display: grid;
  place-items: center;
  padding: 24px;
}

.start-auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 12, 0.72);
  backdrop-filter: blur(12px);
}

.start-auth-dialog {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100vw - 32px));
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(24, 29, 41, 0.96) 0%, rgba(13, 17, 27, 0.98) 100%);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.start-auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(244, 247, 255, 0.78);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.start-auth-tabs {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 16px;
}

.start-auth-tab {
  min-width: 88px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(244, 247, 255, 0.66);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.start-auth-tab[aria-selected="true"] {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.start-auth-copy {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

.start-auth-title {
  color: #ffffff;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.start-auth-subtitle {
  color: rgba(244, 247, 255, 0.62);
  font-size: 13px;
  line-height: 1.6;
}

.start-auth-form {
  display: grid;
  gap: 12px;
}

.start-auth-field {
  display: grid;
  gap: 8px;
}

.start-auth-label {
  color: rgba(244, 247, 255, 0.72);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.start-auth-input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 14px;
  outline: none;
}

.start-auth-input::placeholder {
  color: rgba(244, 247, 255, 0.28);
}

.start-auth-input:focus {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.1);
}

.start-auth-message {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(244, 247, 255, 0.84);
  font-size: 12px;
  line-height: 1.5;
}

.start-auth-message[data-tone="error"] {
  border-color: rgba(248, 113, 113, 0.24);
  background: rgba(127, 29, 29, 0.24);
  color: rgba(254, 226, 226, 0.94);
}

.start-auth-message[data-tone="success"] {
  border-color: rgba(110, 231, 183, 0.24);
  background: rgba(16, 185, 129, 0.14);
  color: rgba(209, 250, 229, 0.94);
}

.start-auth-submit {
  width: 100%;
  margin-top: 4px;
  padding: 13px 16px;
  border: none;
  border-radius: 14px;
  background: #f3f4f6;
  color: #111827;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}

.start-auth-submit:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

.start-auth-submit:disabled,
.start-auth-close:disabled,
.start-auth-tab:disabled {
  opacity: 0.62;
  cursor: default;
  transform: none;
}

/* ── 개인정보 고지 ── */
.start-privacy-notice {
  margin: 0;
  font-size: 11px;
  line-height: 1.6;
  color: rgba(244, 247, 255, 0.34);
  text-align: center;
}

.start-privacy-link {
  color: rgba(244, 247, 255, 0.52);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  transition: color 0.15s;
}

.start-privacy-link:hover {
  color: rgba(244, 247, 255, 0.8);
}

@media (max-width: 600px) {
  .start-ranking-trigger {
    top: 12px;
    right: 12px;
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }

  .start-ranking-trigger::after {
    inset: 5px;
    border-radius: 11px;
  }

  .start-ranking-trigger-icon {
    font-size: 24px;
  }

  .start-ranking-panel {
    top: 12px;
    right: 12px;
    width: min(216px, calc(100vw - 24px));
    gap: 10px;
    padding: 14px 14px 12px;
  }

  .start-ranking-value {
    font-size: 32px;
  }

  .start-ranking-badge {
    display: none;
    max-width: 84px;
    font-size: 10px;
    padding: 6px 8px;
  }

  .start-ranking-current-name {
    font-size: 17px;
  }

  .start-ranking-list {
    display: none;
  }

  .start-origin-panel {
    padding: 14px;
    gap: 12px;
  }

  .start-origin-machine {
    min-height: 164px;
  }

  .start-origin-capsule {
    width: 118px;
    height: 118px;
    border-radius: 30px;
  }

  .start-origin-emblem {
    font-size: 34px;
  }

  .start-origin-name {
    font-size: 21px;
  }

  .start-origin-desc {
    font-size: 12px;
  }

  .start-origin-chip {
    font-size: 11px;
    padding: 6px 9px;
  }
}

.job-minigame-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

#job-minigame-hud {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(8, 12, 22, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
}

#job-minigame-title {
  color: #f8fbff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

#job-minigame-note {
  color: rgba(228, 235, 246, 0.82);
  font-size: 11px;
  line-height: 1.45;
}

#job-minigame-progress {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(61, 130, 255, 0.18);
  color: #cfe1ff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

#job-minigame-items {
  position: absolute;
  inset: 0;
  overflow: visible;
  pointer-events: none;
}

.job-task-item {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 10px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(29, 96, 214, 0.92);
  color: #f8fbff;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.24);
  pointer-events: auto;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform 0.14s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.job-task-item.is-target {
  background: linear-gradient(180deg, rgba(36, 108, 235, 0.96), rgba(18, 78, 184, 0.92));
}

.job-task-item.is-target.is-finish {
  background: linear-gradient(180deg, rgba(41, 154, 255, 0.98), rgba(22, 106, 222, 0.94));
  box-shadow: 0 16px 30px rgba(16, 58, 132, 0.34);
}

.job-task-item.is-decoy {
  background: linear-gradient(180deg, rgba(145, 70, 70, 0.92), rgba(104, 44, 44, 0.9));
}

.job-task-item:hover {
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.28);
}

.job-task-icon {
  font-size: 18px;
  line-height: 1;
}

.job-task-label {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  word-break: keep-all;
}

@media (max-width: 600px) {
  .lotto-scratch-shell {
    padding: 13px;
    border-radius: 18px;
  }

  .lotto-scratch-board {
    gap: 8px;
  }

  .lotto-scratch-cell {
    min-height: 82px;
    padding: 12px 10px 10px;
    border-radius: 14px;
  }

  .lotto-scratch-cell strong {
    font-size: 18px;
  }

  .lotto-scratch-cell.is-hidden strong {
    font-size: 15px;
  }

  .lotto-scratch-actions {
    flex-direction: column;
  }

  .lotto-scratch-action {
    width: 100%;
  }

  .lotto-scratch-result-payout {
    min-height: 66px;
    font-size: 24px;
  }

  .trash-item {
    width: 78px;
    height: 78px;
  }

  /* 패널 전체 컴팩트 */
  #character-panel,
  #inventory-panel,
  #memory-panel {
    padding: 10px;
    gap: 8px;
    border-radius: 16px;
  }

  .panel-title {
    font-size: 14px;
  }

  .panel-kicker {
    font-size: 9px;
  }

  .panel-close-button {
    padding: 4px 8px;
    font-size: 10px;
  }

  /* 인벤토리 summary 2열 유지, 패딩만 줄임 */
  .inventory-summary {
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
  }

  .inventory-summary-chip {
    padding: 6px 8px;
    border-radius: 10px;
  }

  .inventory-summary-label {
    font-size: 9px;
  }

  .inventory-summary-value {
    font-size: 12px;
  }

  /* 탭 */
  .inventory-tab-btn {
    padding: 5px 8px;
    font-size: 10px;
  }

  /* 그리드 셀 */
  .inv-cell {
    padding: 7px 3px 6px;
  }

  .inv-cell-icon {
    font-size: 20px;
  }

  .inv-cell-name {
    font-size: 9px;
  }

  .choice-btn {
    padding: 10px 12px;
    font-size: 12px;
  }

  #side-toolbar button {
    padding: 7px 10px;
    font-size: 16px;
  }

  .toolbar-badge {
    min-width: 15px;
    height: 15px;
    font-size: 9px;
  }

  .message-title {
    font-size: 16px;
  }

  .message-copy {
    font-size: 13px;
  }

  #job-minigame-hud {
    left: 10px;
    right: 10px;
    padding: 8px 10px;
  }

  #job-minigame-note {
    font-size: 10px;
  }

  .job-task-item {
    min-height: 48px;
    padding: 8px 10px;
    border-radius: 16px;
  }

  .job-task-label {
    font-size: 12px;
  }

  .status-value {
    font-size: 13px;
  }
}

/* ── 수저 뽑기 오버레이 ──────────────────────────────────── */
#spoon-draw-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  --spd-accent: #94a3b8;
  --spd-accent-soft: rgba(148, 163, 184, 0.14);
  --spd-glow: rgba(148, 163, 184, 0.28);
  --spd-bg-overlay: rgba(12, 14, 22, 0.0);
}

#spoon-draw-overlay[hidden] {
  display: none;
}

/* Tier-specific accent vars */
#spoon-draw-overlay[data-tier="gold"] {
  --spd-accent: #f4c24d;
  --spd-accent-soft: rgba(244, 194, 77, 0.18);
  --spd-glow: rgba(244, 194, 77, 0.44);
  --spd-bg-overlay: rgba(80, 50, 5, 0.28);
}

#spoon-draw-overlay[data-tier="silver"] {
  --spd-accent: #cbd5e1;
  --spd-accent-soft: rgba(203, 213, 225, 0.16);
  --spd-glow: rgba(203, 213, 225, 0.36);
  --spd-bg-overlay: rgba(50, 65, 90, 0.28);
}

#spoon-draw-overlay[data-tier="bronze"] {
  --spd-accent: #cf7c56;
  --spd-accent-soft: rgba(207, 124, 86, 0.18);
  --spd-glow: rgba(207, 124, 86, 0.38);
  --spd-bg-overlay: rgba(80, 40, 20, 0.28);
}

#spoon-draw-overlay[data-tier="steel"] {
  --spd-accent: #7f95b2;
  --spd-accent-soft: rgba(127, 149, 178, 0.16);
  --spd-glow: rgba(127, 149, 178, 0.32);
  --spd-bg-overlay: rgba(30, 42, 65, 0.28);
}

#spoon-draw-overlay[data-tier="dirt"] {
  --spd-accent: #a07850;
  --spd-accent-soft: rgba(141, 91, 55, 0.18);
  --spd-glow: rgba(141, 91, 55, 0.32);
  --spd-bg-overlay: rgba(50, 28, 12, 0.28);
}

.spd-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 38%, var(--spd-bg-overlay) 0%, transparent 62%),
    rgba(4, 5, 10, 0.97);
  transition: background 0.9s ease;
  backdrop-filter: blur(2px);
}

.spd-surface {
  position: relative;
  z-index: 1;
  width: min(400px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 40px 24px 36px;
  text-align: center;
}

/* Header */
.spd-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.spd-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--spd-accent);
  transition: color 0.5s ease;
}

.spd-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1.15;
}

.spd-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.46);
  line-height: 1.6;
}

/* Stage */
.spd-stage {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.spd-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 188px;
  height: 188px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.07);
  transform: translate(-50%, -56%);
  transition: border-color 0.6s ease, box-shadow 0.6s ease;
  pointer-events: none;
}

#spoon-draw-overlay[data-tier]:not([data-tier=""]) .spd-ring {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 48px var(--spd-glow),
    inset 0 0 48px var(--spd-glow);
}

#spoon-draw-overlay[data-phase="drawing"] .spd-ring {
  animation: spd-ring-pulse 1s ease-in-out infinite;
}

.spd-capsule {
  position: relative;
  z-index: 2;
  width: 158px;
  height: 158px;
  border-radius: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.04) 28%, rgba(255, 255, 255, 0.07) 100%),
    linear-gradient(180deg, rgba(14, 18, 30, 0.97) 0%, rgba(6, 8, 14, 0.97) 100%);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 32px 64px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(0, 0, 0, 0.3),
    0 0 56px var(--spd-glow);
  transform: rotateX(16deg) rotateZ(-5deg);
  transition: box-shadow 0.6s ease, border-color 0.6s ease;
  margin-top: -16px;
}

#spoon-draw-overlay[data-tier]:not([data-tier=""]) .spd-capsule {
  border-color: rgba(255, 255, 255, 0.18);
}

#spoon-draw-overlay[data-phase="drawing"] .spd-capsule {
  animation: spd-spin 0.74s linear infinite;
}

#spoon-draw-overlay[data-phase="result"] .spd-capsule {
  animation: spd-settle 0.52s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.spd-emblem {
  font-size: 50px;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--spd-accent);
  text-shadow: 0 0 28px var(--spd-glow);
  line-height: 1;
  transition: color 0.5s ease, text-shadow 0.5s ease;
}

.spd-spoon-icon {
  font-size: 20px;
  opacity: 0.82;
}

.spd-pedestal {
  position: absolute;
  bottom: 12px;
  left: 50%;
  width: 172px;
  height: 20px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

/* Result area */
.spd-result-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.spd-result-area:not([hidden]) {
  animation: spd-slide-up 0.44s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.spd-result-bracket {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--spd-accent);
}

.spd-result-name {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #ffffff;
  line-height: 1;
}

.spd-result-summary {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.58);
  margin-bottom: 6px;
}

.spd-result-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}

.spd-result-chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--spd-accent-soft);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 600;
}

/* Odds */
.spd-odds {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.spd-odd {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid transparent;
}

.spd-odd-gold   { color: #f4c24d; background: rgba(244, 194, 77, 0.1);  border-color: rgba(244, 194, 77, 0.22); }
.spd-odd-silver { color: #cbd5e1; background: rgba(203, 213, 225, 0.08); border-color: rgba(203, 213, 225, 0.16); }
.spd-odd-bronze { color: #cf7c56; background: rgba(207, 124, 86, 0.1);  border-color: rgba(207, 124, 86, 0.2); }
.spd-odd-steel  { color: #7f95b2; background: rgba(127, 149, 178, 0.1); border-color: rgba(127, 149, 178, 0.18); }
.spd-odd-dirt   { color: #a07850; background: rgba(141, 91, 55, 0.1);   border-color: rgba(141, 91, 55, 0.2); }

/* Buttons */
.spd-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.spd-draw-btn {
  width: 100%;
  max-width: 280px;
  padding: 15px 28px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffd35a 0%, #ffb020 100%);
  color: #111;
  font-size: 16px;
  font-weight: 800;
  border: 0;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: transform 0.14s ease, opacity 0.14s ease;
  box-shadow: 0 8px 20px rgba(255, 176, 32, 0.3);
}

.spd-draw-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 176, 32, 0.38);
}

.spd-draw-btn:disabled {
  opacity: 0.5;
  cursor: wait;
  transform: none;
}

.spd-start-btn {
  width: 100%;
  max-width: 280px;
  padding: 15px 28px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffd35a 0%, #ffb020 100%);
  color: #111;
  font-size: 16px;
  font-weight: 800;
  border: 0;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: transform 0.14s ease;
  box-shadow: 0 8px 20px rgba(255, 176, 32, 0.32);
}

.spd-start-btn:not([hidden]) {
  animation: spd-slide-up 0.5s 0.15s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.spd-start-btn:hover {
  transform: translateY(-2px);
}

/* Animations */
@keyframes spd-spin {
  from { transform: rotateX(16deg) rotateZ(-5deg) rotateY(0deg); }
  to   { transform: rotateX(16deg) rotateZ(-5deg) rotateY(360deg); }
}

@keyframes spd-settle {
  0%   { transform: rotateX(16deg) rotateZ(-5deg) scale(0.92); }
  55%  { transform: rotateX(16deg) rotateZ(-3deg) scale(1.07); }
  100% { transform: rotateX(16deg) rotateZ(-5deg) scale(1); }
}

@keyframes spd-ring-pulse {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1; }
}

@keyframes spd-slide-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
