:root {
  --polish-strip-border: rgba(153, 205, 255, 0.72);
  --polish-strip-blue: rgba(230, 246, 255, 0.98);
  --polish-strip-cream: rgba(255, 249, 232, 0.94);
  --polish-card-border: rgba(180, 215, 249, 0.92);
}

#bottom-nav {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

@media (min-width: 1280px) {
  #bottom-nav {
    grid-template-columns: 1fr !important;
  }
}

.starter-mini-coach {
  min-width: 0;
}

.starter-mini-coach strong,
.starter-mini-coach em,
.starter-mission-copy b,
.starter-mission-copy span,
.starter-mission-cta,
.starter-mission-chip,
#action-buttons .action-label,
#action-buttons .action-status,
.trade-btn,
.buy-btn,
.milestone-buy-btn,
.ps-sellall-btn,
#sticky-sellall-btn,
#topbar-sellall-btn,
.modal-actions button {
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
}

#action-buttons .action-label,
#action-buttons .action-status {
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
}

.starter-mission-copy span {
  max-width: 100%;
}

body:not([data-active-panel="stocks"]) .starter-mission-card:not(.hidden) {
  margin-bottom: 10px !important;
}

body:not([data-active-panel="stocks"]) #main-screen .panel.active > .section-label:first-child {
  margin-top: 6px !important;
}

.starter-mission-card.soft-goal .starter-focus-row {
  display: grid !important;
  grid-template-columns: 76px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 9px !important;
}

.starter-mission-card.soft-goal .starter-mission-visual {
  display: block !important;
  width: 76px !important;
  height: 43px !important;
  object-fit: cover !important;
}

.starter-mission-card.soft-goal .starter-mission-copy span {
  display: block !important;
  color: #6b7684 !important;
  font-size: 10.5px !important;
  line-height: 1.22 !important;
}

.analyst-hire-content {
  background: #ffffff !important;
  border-top: 4px solid #3182f6;
  opacity: 1;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.work-tutorial-content {
  overflow: hidden !important;
  border-top: 4px solid #3182f6;
  background: #ffffff !important;
  opacity: 1;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.work-tutorial-visual {
  display: grid;
  width: min(100%, 278px);
  aspect-ratio: 16 / 9;
  height: auto;
  margin: 0 auto 10px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: #eff6ff;
  box-shadow: 0 12px 24px rgba(49, 130, 246, 0.14);
}

.work-tutorial-visual .reward-card-art {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: inherit !important;
}

#work-tutorial-text {
  display: grid;
  gap: 3px;
  margin-bottom: 10px;
}

#work-tutorial-text span {
  display: block;
  word-break: keep-all;
}

.work-tutorial-rewards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 8px;
}

.work-tutorial-rewards span {
  display: grid;
  min-width: 0;
  gap: 2px;
  padding: 8px 7px;
  border: 1px solid #e2edf8;
  border-radius: 9px;
  background: #f8fbff;
  color: #6b7684;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
}

.work-tutorial-rewards strong {
  min-width: 0;
  overflow: visible;
  color: #1769e5;
  font-size: 16px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  text-overflow: clip;
  white-space: nowrap;
}

.work-tutorial-next.loss-cut-next {
  margin: 0 0 10px;
}

.work-tutorial-next strong {
  white-space: normal;
  word-break: keep-all;
}

.analyst-hire-visual {
  display: grid;
  width: min(100%, 258px);
  aspect-ratio: 16 / 9;
  height: auto;
  margin: 0 auto 8px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.96), transparent 34%),
    linear-gradient(180deg, #eff6ff, #ffffff);
  box-shadow: 0 12px 24px rgba(49, 130, 246, 0.14);
}

.analyst-hire-visual .reward-card-art {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
}

#analyst-hire-text {
  display: grid;
  gap: 3px;
}

#analyst-hire-text span {
  display: block;
  word-break: keep-all;
}

#offline-modal .modal-badge {
  display: none !important;
}

#offline-breakdown:empty {
  display: none !important;
}

.stock-card-head {
  grid-template-columns: 68px minmax(0, 1fr) minmax(136px, auto) !important;
  align-items: center !important;
}

.stock-logo {
  width: 68px !important;
  height: 50px !important;
  padding: 7px 5px !important;
  border-radius: 11px !important;
}

.stock-logo span {
  display: grid !important;
  height: 100% !important;
  place-items: center !important;
  font-size: 9.6px !important;
  line-height: 1.03 !important;
  transform: translateY(-1.5px) !important;
  transform-origin: center !important;
}

.stock-card[data-logo="LGENSOLU"] .stock-logo span,
.stock-card[data-logo="CELTRIGON"] .stock-logo span {
  font-size: 9px !important;
}

.daily-reward-visual,
.milestone-reward-visual {
  display: grid;
  width: min(100%, 258px);
  aspect-ratio: 16 / 9;
  min-height: 0;
  margin: 0 auto 14px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #dce8f7;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  box-shadow: inset 0 -1px 0 rgba(49, 130, 246, 0.08), 0 10px 24px rgba(25, 31, 40, 0.06);
}

.daily-reward-visual .reward-card-art,
.milestone-reward-visual .reward-card-art {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
}

#milestone-modal .flex-glow-ring {
  display: none !important;
}

#milestone-modal .flex-content {
  padding-top: 20px !important;
}

.topbar-row1 {
  margin: 0 0 9px !important;
  padding: 6px 7px !important;
  border: 1px solid var(--polish-strip-border) !important;
  border-radius: 13px !important;
  background:
    linear-gradient(90deg, var(--polish-strip-blue), rgba(244, 250, 255, 0.92) 58%, var(--polish-strip-cream)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 7px 16px rgba(49, 130, 246, 0.08) !important;
}

.topbar-row1 #asset-title {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.62)) !important;
  border-color: var(--polish-card-border) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
}

.topbar-row1 .tier-name {
  color: #153455 !important;
}

.topbar-row1 .tier-next-label {
  color: #54708c !important;
}

.topbar-row1 #mute-btn,
.topbar-row1 #ranking-btn,
.topbar-row1 #invite-btn {
  background: rgba(255, 255, 255, 0.78) !important;
  border-color: rgba(166, 203, 240, 0.92) !important;
  color: #27415f !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.07) !important;
}

.topbar-row1 #invite-btn.glow {
  background: linear-gradient(180deg, #fff8df, #ffffff) !important;
  border-color: rgba(245, 181, 68, 0.82) !important;
  color: #4a3611 !important;
}

#topbar .tier-ant-img {
  justify-self: center !important;
  align-self: center !important;
  object-position: center bottom !important;
  transform: translate(-6px, 0) !important;
}

#topbar .tier-ant-mark[data-tier="8"] .tier-ant-img {
  transform: translate(-7px, -2px) !important;
}

#topbar .tier-ant-mark[data-tier="9"] .tier-ant-img {
  transform: translate(-6px, -2px) !important;
}

#help-modal .help-slide-card {
  isolation: isolate;
}

#help-modal .help-visual-frame {
  overflow: hidden !important;
  contain: paint;
  z-index: 1;
}

#help-modal .help-slide-copy {
  position: relative;
  z-index: 2;
}

#help-modal .help-slide-goal .help-visual-frame,
#help-modal .help-slide-evolve .help-visual-frame {
  min-height: 188px !important;
}

#help-modal .help-slide-goal .help-evolution-route,
#help-modal .help-slide-evolve .help-tier-codex-panel {
  max-height: 100%;
  align-content: center;
  padding: 9px !important;
  overflow: hidden;
}

#help-modal .help-slide-goal .help-tier-card.featured {
  min-height: 78px;
}

#help-modal .help-slide-goal .help-journey-path span {
  padding: 6px 5px;
}

#help-modal .help-slide-evolve .help-tier-codex {
  gap: 5px;
}

#help-modal .help-slide-evolve .help-tier-card {
  min-height: 66px;
  padding: 5px 3px 4px;
}

#help-modal .help-tier-ant-img {
  object-position: center bottom !important;
  transform: translate(0, 1px) scale(1.03) !important;
}

#help-modal .help-tier-card[data-tier="6"] .help-tier-ant-img,
#help-modal .help-tier-card[data-tier="8"] .help-tier-ant-img {
  transform: translate(-1px, 1px) scale(1.03) !important;
}

#help-modal .help-slide-evolve .help-tier-ant-img {
  width: 46px;
  height: 38px;
}

#help-modal .help-slide-goal .help-tier-card.featured .help-tier-ant-img {
  width: 60px;
  height: 50px;
}

@media (max-width: 699px) {
  #help-modal .help-slide-card {
    grid-template-rows: auto minmax(0, 1fr) !important;
  }
}

@media (min-width: 900px) {
  .topbar-row1 {
    margin-bottom: 0 !important;
  }
}

@media (max-width: 380px) {
  #splash .splash-content {
    padding: 18px 14px 15px !important;
  }

  #splash .splash-content h1 {
    font-size: 29px !important;
  }

  .splash-tagline {
    font-size: 12.8px !important;
  }

  .splash-policy-links {
    gap: 4px;
  }

  .splash-policy-links .privacy-link {
    min-height: 23px;
    padding: 0 3px;
    font-size: 9.1px;
  }

  .topbar-row1 {
    gap: 6px !important;
    padding: 5px !important;
  }

  #help-modal .help-slide-goal .help-visual-frame,
  #help-modal .help-slide-evolve .help-visual-frame {
    min-height: 178px !important;
  }

  #help-modal .help-slide-evolve .help-tier-card {
    min-height: 62px;
  }

  #help-modal .help-slide-evolve .help-tier-card strong {
    font-size: 9px;
  }

  #help-modal .help-slide-evolve .help-tier-card em {
    font-size: 7.4px;
  }
}

@media (max-width: 430px) {
  .starter-mini-coach strong,
  .starter-mini-coach em {
    white-space: nowrap !important;
  }

  .stock-card-head {
    grid-template-columns: 62px minmax(0, 1fr) minmax(124px, auto) !important;
    gap: 8px !important;
  }

  .stock-logo {
    width: 62px !important;
    height: 48px !important;
  }

  .stock-logo span {
    font-size: 9.4px !important;
  }

  .stock-card[data-logo="LGENSOLU"] .stock-logo span,
  .stock-card[data-logo="CELTRIGON"] .stock-logo span {
    font-size: 9px !important;
  }
}

@media (max-width: 340px) {
  #splash .splash-content h1 {
    font-size: 27px !important;
  }

  .splash-tagline {
    font-size: 12.2px !important;
  }

  .stock-card-head {
    grid-template-columns: 62px minmax(0, 1fr) minmax(108px, auto) !important;
  }

  .stock-logo {
    width: 62px !important;
    height: 48px !important;
  }

  .stock-logo span {
    font-size: 9.2px !important;
  }

  .stock-card[data-logo="LGENSOLU"] .stock-logo span,
  .stock-card[data-logo="CELTRIGON"] .stock-logo span {
    font-size: 8.8px !important;
  }
}

:root {
  --brand-primary: #3182f6;
  --market-up: #f04452;
  --market-down: #3182f6;
  --market-flat: #8b95a1;
  --ui-canvas: #f2f4f6;
  --ui-divider: #e5e8eb;
}

body,
button,
input,
textarea,
select {
  font-variant-numeric: tabular-nums;
}

body {
  background: var(--ui-canvas) !important;
}

#topbar {
  margin: 0 !important;
  padding: 16px 20px 18px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--ui-divider) !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
}

#topbar .hud-shine,
#mute-btn,
#invite-btn {
  display: none !important;
}

.topbar-row1 {
  min-height: 36px;
  margin-bottom: 12px !important;
}

.topbar-row1 #asset-title {
  width: auto !important;
  max-width: min(54vw, 220px);
  min-height: 36px !important;
  padding: 3px 9px 3px 5px !important;
  border: 1px solid var(--ui-divider) !important;
  border-radius: 999px !important;
  background: #fff !important;
  box-shadow: none !important;
  cursor: pointer;
}

#asset-title:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

#asset-title .tier-ant-mark {
  width: 30px !important;
  height: 30px !important;
}

#asset-title .tier-ant-img {
  width: 30px !important;
  height: 30px !important;
}

#asset-title .tier-name {
  font-size: 12px !important;
  font-weight: 750 !important;
}

#asset-title .tier-next-label,
#asset-title .tier-progress-row {
  display: none !important;
}

.topbar-btns {
  gap: 6px !important;
}

.topbar-row1 #ranking-btn,
.topbar-row1 #utility-btn {
  min-width: 44px !important;
  min-height: 44px !important;
  padding: 0 11px !important;
  border: 1px solid var(--ui-divider) !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #4e5968 !important;
  box-shadow: none !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

.topbar-row2 {
  align-items: end !important;
}

.networth-block .stat-label {
  color: #8b95a1 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

#networth-amount {
  color: #191f28 !important;
  font-size: clamp(32px, 8.8vw, 36px) !important;
  font-weight: 800 !important;
  line-height: 1.08 !important;
}

.coin-glyph {
  display: none !important;
}

#income-rate {
  color: #6b7684 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

.cash-chip {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.cash-chip .stat-label,
#cash-amount {
  font-size: 12px !important;
}

body[data-has-holdings="false"] .cash-action-wrap {
  display: none !important;
}

#milestone-progress-wrap {
  margin-top: 14px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#milestone-progress-wrap .progress-bar {
  height: 6px !important;
  border-radius: 999px !important;
  background: var(--ui-divider) !important;
}

#milestone-progress-wrap .progress-fill {
  background: var(--brand-primary) !important;
  box-shadow: none !important;
}

#milestone-progress-wrap .milestone-progress-label {
  color: #6b7684 !important;
  font-size: 12px !important;
}

#tip-ticker {
  margin: 0 !important;
  padding: 8px 20px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--ui-divider) !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
}

body:not([data-starter-phase]) #tip-ticker .tip-body {
  display: none !important;
}

#action-buttons {
  margin: 16px 20px 0 !important;
  gap: 8px !important;
}

#action-buttons button.action-primary,
#action-buttons button:not(.action-primary) {
  min-height: 48px !important;
  border: 1px solid var(--ui-divider) !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #4e5968 !important;
  box-shadow: none !important;
}

#action-buttons button::before {
  filter: grayscale(1) opacity(.72) !important;
}

#work-btn:not(:disabled) {
  border-color: var(--brand-primary) !important;
  background: var(--brand-primary) !important;
  color: #fff !important;
}

#work-btn:not(:disabled)::before {
  filter: brightness(0) invert(1) !important;
}

#action-buttons button.quest-focus {
  border-color: #f5b544 !important;
  box-shadow: 0 0 0 2px rgba(245, 181, 68, .2) !important;
}

.up,
.ps-pl.up,
.stock-change.up,
.holding-pl.up,
.sheet-pl.up,
.sell-preview-row .up {
  color: var(--market-up) !important;
}

.down,
.ps-pl.down,
.stock-change.down,
.holding-pl.down,
.sheet-pl.down,
.sell-preview-row .down {
  color: var(--market-down) !important;
}

.flat,
.ps-pl.flat,
.stock-change.flat,
.holding-pl.flat,
.sheet-pl.flat,
.sell-preview-row .flat {
  color: var(--market-flat) !important;
}

body:not([data-active-panel="milestones"]) #avatar-scene {
  display: none !important;
}

body[data-active-panel="milestones"] #avatar-scene {
  display: flex !important;
  margin: 16px 20px 0 !important;
  box-shadow: none !important;
}

.portfolio-summary,
.stock-card,
.starter-mission-card,
.market-news-feed {
  border-color: var(--ui-divider) !important;
  box-shadow: none !important;
}

.portfolio-summary[data-empty="true"] .ps-right,
.portfolio-summary[data-empty="true"] .ps-sellall-btn {
  display: none !important;
}

.portfolio-summary[data-empty="true"] .ps-value {
  color: #333d4b !important;
  font-size: 17px !important;
}

.stock-card {
  border-radius: 8px !important;
  background: #fff !important;
}

.cosmetic-card button {
  min-height: 44px;
}

@media (min-width: 700px) and (max-width: 1023px) {
  .cosmetics-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cosmetic-card strong,
  .cosmetic-card small {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }
}

@media (max-width: 380px) {
  #topbar {
    padding-inline: 16px !important;
  }

  #action-buttons,
  body[data-active-panel="milestones"] #avatar-scene {
    margin-inline: 16px !important;
  }

  #networth-amount {
    font-size: 30px !important;
  }

}

.help-guide-link {
  color: var(--brand-primary);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

#help-modal .help-visual-frame,
#help-modal .help-slide-trade .help-visual-frame,
#help-modal .help-slide-income .help-visual-frame,
#help-modal .help-slide-evolve .help-visual-frame,
#help-modal .help-slide-save .help-visual-frame {
  background: #f7f9fc !important;
  box-shadow: none !important;
}

#help-modal .help-visual-frame::before,
#help-modal .help-visual-frame::after {
  display: none !important;
}

#help-modal .help-tier-ant-img,
#help-modal .help-tier-card[data-tier="6"] .help-tier-ant-img,
#help-modal .help-tier-card[data-tier="8"] .help-tier-ant-img {
  transform: translate(-5px, 1px) !important;
}

@media (min-width: 700px) and (max-height: 560px) {
  #help-modal .help-content {
    box-sizing: border-box;
    width: min(820px, calc(100vw - 24px)) !important;
    height: calc(100dvh - 12px) !important;
    max-height: calc(100dvh - 12px) !important;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom)) !important;
    overflow: hidden !important;
  }

  #help-modal .help-content h2 {
    margin: 0 0 4px !important;
    font-size: 17px !important;
    line-height: 1.15 !important;
  }

  #help-body.help-carousel {
    gap: 4px !important;
    margin-bottom: 4px !important;
    grid-template-rows: minmax(0, 1fr) 44px !important;
  }

  #help-modal .help-slide-window,
  #help-modal .help-slide-track,
  #help-modal .help-slide-card {
    min-height: 0 !important;
    height: 100% !important;
  }

  #help-modal .help-slide-card {
    grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    gap: 6px !important;
  }

  #help-modal .help-visual-frame,
  #help-modal .help-slide-goal .help-visual-frame,
  #help-modal .help-slide-evolve .help-visual-frame {
    min-height: 0 !important;
    height: 100% !important;
    padding: 6px !important;
  }

  #help-modal .help-slide-copy {
    gap: 2px !important;
    padding: 6px 8px !important;
    overflow: hidden !important;
  }

  #help-modal .help-slide-copy h3 {
    margin-bottom: 2px !important;
    font-size: 14px !important;
    line-height: 1.15 !important;
  }

  #help-modal .help-slide-copy ul {
    gap: 3px !important;
  }

  #help-modal .help-slide-copy li {
    min-height: 0 !important;
    padding: 4px 6px 4px 20px !important;
    font-size: 10.5px !important;
    line-height: 1.2 !important;
  }

  #help-modal .help-slide-copy li::before {
    top: 9px !important;
    left: 8px !important;
  }

  #help-modal .help-disclaimer,
  #help-modal .help-guide-link {
    display: none !important;
  }

  #help-modal .help-carousel-controls {
    min-height: 44px !important;
  }

  #help-modal .help-arrow {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
  }

  #help-modal > .modal-content > .modal-actions {
    margin-top: 2px !important;
  }
}

.launch-loader-title,
#splash .splash-content h1.launch-surface-title {
  top: max(46px, calc(env(safe-area-inset-top) + 30px)) !important;
  width: min(calc(100% - 40px), 420px) !important;
}

.launch-title-text {
  gap: 1px !important;
  color: #102a43 !important;
  font-family: Pretendard, "Toss Product Sans", "Apple SD Gothic Neo", system-ui, sans-serif !important;
  font-size: clamp(40px, 12vw, 58px) !important;
  font-weight: 950 !important;
  line-height: 1.15 !important;
  text-shadow: 0 2px 0 rgba(255, 255, 255, .94), 0 5px 14px rgba(24, 76, 126, .2) !important;
}

.launch-title-text strong {
  color: #1769e5 !important;
  font-size: 1.12em !important;
}

.launch-title-text > span,
.launch-title-text > strong {
  line-height: 1.15 !important;
}

#topbar {
  width: 100% !important;
  padding: 0 !important;
  overflow: visible !important;
}

.topbar-row1 {
  box-sizing: border-box;
  width: 100% !important;
  min-height: 56px !important;
  margin: 0 !important;
  padding: 6px 20px !important;
  border-bottom: 1px solid #e8eef5;
  background: #f7faff;
}

#asset-title {
  width: auto !important;
  max-width: min(58vw, 230px) !important;
  min-height: 44px !important;
  gap: 7px !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#asset-title .tier-ant-mark {
  width: 42px !important;
  height: 44px !important;
  overflow: visible !important;
  background: transparent !important;
}

#asset-title .tier-ant-img,
#topbar .tier-ant-img,
#topbar .tier-ant-mark[data-tier="8"] .tier-ant-img,
#topbar .tier-ant-mark[data-tier="9"] .tier-ant-img {
  width: 40px !important;
  height: 40px !important;
  object-fit: contain !important;
  object-position: center !important;
}

#asset-title .tier-name {
  color: #263b54 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

.topbar-btns {
  gap: 2px !important;
}

#ranking-btn,
#utility-btn {
  min-width: 48px !important;
  min-height: 44px !important;
  padding: 0 8px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #536579 !important;
  box-shadow: none !important;
  font-size: 12px !important;
}

#asset-title:hover,
#ranking-btn:hover,
#utility-btn:hover {
  background: #edf5ff !important;
}

#asset-title:active,
#ranking-btn:active,
#utility-btn:active {
  background: #e4effc !important;
}

.topbar-row2 {
  box-sizing: border-box;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 14px 20px 12px !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: end !important;
  gap: 16px !important;
  background: #fff;
}

.networth-block,
.cash-action-wrap,
.cash-chip {
  min-width: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#networth-amount {
  max-width: 100% !important;
  padding: 0 !important;
  font-size: clamp(34px, 9.3vw, 38px) !important;
  line-height: 1.05 !important;
  white-space: nowrap !important;
}

.cash-action-wrap {
  align-items: flex-end !important;
}

#cash-amount {
  padding: 0 !important;
  white-space: nowrap !important;
}

#topbar-sellall-btn {
  border-radius: 6px !important;
}

#milestone-progress-wrap {
  box-sizing: border-box;
  width: auto !important;
  margin: 0 20px 14px !important;
}

#action-buttons button,
#action-buttons button.action-primary {
  border-radius: 6px !important;
}

.stock-card {
  overflow: hidden !important;
}

.stock-card-head {
  display: grid !important;
  box-sizing: border-box;
  width: 100% !important;
  min-height: 72px !important;
  margin: 0 !important;
  padding: 12px !important;
  grid-template-columns: 46px minmax(0, 1fr) minmax(88px, auto) 16px !important;
  align-items: center !important;
  gap: 10px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: inherit !important;
  box-shadow: none !important;
  text-align: left !important;
}

.stock-card-head:hover,
.stock-card-head:active {
  background: #f8fafc !important;
}

.stock-card-head:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: -2px;
}

.stock-card .stock-logo {
  width: 44px !important;
  height: 44px !important;
  align-self: center !important;
}

.stock-card .stock-name-block,
.stock-card .stock-price-block {
  min-width: 0;
}

.stock-card .stock-sector {
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap !important;
}

.stock-expand-indicator {
  width: 8px;
  height: 8px;
  border-right: 2px solid #8b95a1;
  border-bottom: 2px solid #8b95a1;
  transform: rotate(45deg) translate(-2px, 2px);
  transition: transform 160ms ease;
}

.stock-card.is-expanded .stock-expand-indicator {
  transform: rotate(225deg);
}

.stock-card-details {
  padding: 0 12px 12px;
  border-top: 1px solid #f0f2f4;
}

.stock-card-details[hidden] {
  display: none !important;
}

.stock-card.is-expanded {
  border-color: #c9d9ec !important;
}

@media (max-width: 380px) {
  .topbar-row1,
  .topbar-row2 {
    padding-inline: 16px !important;
  }

  #milestone-progress-wrap {
    margin-inline: 16px !important;
  }

  #networth-amount {
    font-size: 33px !important;
  }

  .stock-card-head {
    grid-template-columns: 42px minmax(0, 1fr) minmax(78px, auto) 14px !important;
    gap: 8px !important;
    padding: 10px !important;
  }

  .stock-card .stock-logo {
    width: 40px !important;
    height: 40px !important;
  }

}

@media (orientation: landscape) {
  .launch-loader-title,
  #splash .splash-content h1.launch-surface-title {
    top: max(12px, calc(env(safe-area-inset-top) + 8px)) !important;
    width: min(calc(100% - 32px), calc(66.667dvh - 8px), 300px) !important;
  }

  .launch-title-text {
    font-size: clamp(28px, 8.5dvh, 48px) !important;
  }
}

@media (orientation: landscape) and (min-height: 600px) {
  .launch-loader-title,
  #splash .splash-content h1.launch-surface-title {
    top: max(40px, calc(env(safe-area-inset-top) + 28px)) !important;
    width: 420px !important;
  }
}

@media (min-width: 900px) {
  .launch-title-text {
    font-size: 62px !important;
  }
}

#topbar {
  --topbar-side: 20px;
  overflow: visible !important;
  border-bottom: 0 !important;
  background: #f7f9fc !important;
}

.topbar-row1 {
  min-height: 60px !important;
  padding: 8px var(--topbar-side) !important;
  border: 0 !important;
  background: #f7f9fc !important;
}

.topbar-row1 #asset-title {
  max-width: min(68vw, 300px) !important;
  gap: 10px !important;
}

#asset-title .tier-copy {
  display: grid !important;
  min-width: 0 !important;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto !important;
  grid-template-areas:
    "name next pct"
    "track track track" !important;
  align-items: center !important;
  column-gap: 7px !important;
  row-gap: 4px !important;
}

#asset-title .tier-name {
  grid-area: name !important;
  color: #191f28 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

#asset-title .tier-next-label {
  display: block !important;
  grid-area: next !important;
  overflow: hidden !important;
  color: #6b7684 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}

#asset-title .tier-progress-row {
  display: contents !important;
}

#asset-title .tier-progress-track {
  display: block !important;
  grid-area: track !important;
  width: 100% !important;
  height: 4px !important;
  overflow: hidden !important;
  border-radius: 2px !important;
  background: #dfe5ec !important;
}

#asset-title .tier-progress-fill {
  display: block !important;
  height: 100% !important;
  border-radius: 2px !important;
  background: #3182f6 !important;
}

#asset-title .tier-progress-pct {
  display: block !important;
  grid-area: pct !important;
  color: #3182f6 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

.topbar-btns {
  gap: 2px !important;
}

.topbar-row1 #ranking-btn,
.topbar-row1 #utility-btn {
  display: grid !important;
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  place-items: center !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #4e5968 !important;
}

.topbar-row1 #ranking-btn:hover,
.topbar-row1 #utility-btn:hover,
.topbar-row1 #ranking-btn:focus-visible,
.topbar-row1 #utility-btn:focus-visible {
  background: #e9eef5 !important;
}

.topbar-btns svg {
  width: 21px !important;
  height: 21px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.8 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.asset-overview,
#asset-summary-toggle {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
}

#asset-summary-toggle {
  display: flex !important;
  min-height: 64px !important;
  padding: 0 !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: inherit !important;
  text-align: left !important;
}

#asset-summary-toggle .networth-block {
  display: block !important;
  min-width: 0 !important;
}

.asset-summary-chevron {
  width: 22px !important;
  height: 22px !important;
  flex: 0 0 auto !important;
  fill: none !important;
  stroke: #8b95a1 !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  transition: transform .18s ease !important;
}

#asset-summary-toggle[aria-expanded="true"] .asset-summary-chevron {
  transform: rotate(180deg) !important;
}

.asset-glance {
  display: flex !important;
  min-width: 0 !important;
  margin-top: 7px !important;
  align-items: center !important;
  gap: 8px !important;
  color: #6b7684 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
}

.asset-glance span {
  min-width: 0 !important;
}

.asset-glance strong {
  display: inline-block !important;
  max-width: 34vw !important;
  overflow: hidden !important;
  color: #333d4b !important;
  font-variant-numeric: tabular-nums !important;
  text-overflow: clip !important;
  vertical-align: bottom !important;
  white-space: nowrap !important;
}

.asset-glance-separator {
  width: 3px !important;
  height: 3px !important;
  flex: 0 0 3px !important;
  border-radius: 50% !important;
  background: #b0b8c1 !important;
}

.asset-summary-details {
  box-sizing: border-box !important;
  width: 100% !important;
  max-height: min(46vh, 360px) !important;
  margin-top: 12px !important;
  padding: 14px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  border: 0 !important;
  border-radius: 0 0 8px 8px !important;
  background: #f2f4f6 !important;
}

.asset-summary-details[hidden] {
  display: none !important;
}

.asset-summary-details .portfolio-summary {
  position: static !important;
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.asset-summary-details .ps-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 16px !important;
}

.asset-summary-details .ps-value {
  font-size: 22px !important;
  line-height: 1.15 !important;
}

.asset-summary-actions {
  display: grid !important;
  margin-top: 12px !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 8px !important;
}

.asset-summary-actions button {
  min-height: 44px !important;
  border-radius: 8px !important;
}

#panel-stocks {
  padding-top: 10px !important;
}

#panel-stocks #action-buttons {
  display: grid !important;
  box-sizing: border-box !important;
  width: auto !important;
  margin: 0 20px 10px !important;
  padding: 6px !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 4px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: #f2f4f6 !important;
  box-shadow: none !important;
}

#panel-stocks #action-buttons button,
#panel-stocks #action-buttons button.action-primary {
  min-width: 0 !important;
  min-height: 52px !important;
  padding: 5px 2px !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: transparent !important;
  color: #4e5968 !important;
  box-shadow: none !important;
}

#panel-stocks #action-buttons button.is-ready:not(:disabled) {
  background: #fff !important;
  color: #1b64da !important;
}

#panel-stocks #action-buttons button.quest-focus {
  background: #fff8e7 !important;
  box-shadow: inset 0 0 0 2px #f5b544 !important;
}

#panel-stocks #action-buttons button::before {
  width: 18px !important;
  height: 18px !important;
  margin-bottom: 3px !important;
  filter: grayscale(1) opacity(.72) !important;
}

#panel-stocks #action-buttons .action-label,
#panel-stocks #action-buttons .action-status {
  max-width: 100% !important;
  overflow: visible !important;
  text-align: center !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}

#panel-stocks #action-buttons .action-label {
  font-size: 11px !important;
  line-height: 1.15 !important;
}

#panel-stocks #action-buttons .action-status {
  margin-top: 2px !important;
  font-size: 9px !important;
  line-height: 1.1 !important;
}

#stock-list {
  margin-top: 0 !important;
}

#panel-stocks #market-news-feed {
  margin-top: 12px;
  border: 0;
  border-radius: 8px !important;
  background: #f7f9fc;
}

[data-icon="utility-guide"] {
  background-image: url('../assets/ui/guide-idle.svg') !important;
}

@media (max-width: 380px) {
  #topbar {
    --topbar-side: 16px;
  }

  .topbar-row1 #asset-title {
    max-width: calc(100vw - 116px) !important;
  }

  #asset-title .tier-ant-mark {
    width: 38px !important;
    height: 40px !important;
  }

  #asset-title .tier-ant-img,
  #topbar .tier-ant-img {
    width: 36px !important;
    height: 36px !important;
  }

  #networth-amount {
    font-size: 34px !important;
  }

  #panel-stocks #action-buttons {
    margin-inline: 16px !important;
  }

  #panel-stocks #action-buttons .action-label {
    font-size: 10px !important;
  }
}

@media (min-width: 900px) {
  #topbar,
#main-screen {
    max-width: none !important;
  }

  .topbar-row1,
.topbar-row2,
#panel-stocks #action-buttons,
#stock-list,
#panel-stocks #market-news-feed {
    width: min(100%, 1080px) !important;
    margin-right: auto !important;
    margin-left: auto !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stock-expand-indicator {
    transition: none;
  }
}

#asset-title {
  position: relative;
  min-height: 44px !important;
  padding-right: 27px !important;
  touch-action: manipulation;
  transition: background-color 140ms ease, border-color 140ms ease, transform 100ms ease;
}

#asset-title::after {
  position: absolute;
  top: 50%;
  right: 11px;
  width: 7px;
  height: 7px;
  border-top: 2px solid #8b95a1;
  border-right: 2px solid #8b95a1;
  content: '';
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
}

@media (hover: hover) {
  #asset-title:hover {
    border-color: #b0c8ea !important;
    background: #f7faff !important;
  }
}

#asset-title:active {
  transform: scale(0.985);
}

#asset-title:focus-visible {
  outline: 2px solid #3182f6 !important;
  outline-offset: 2px !important;
}

@media (prefers-reduced-motion: reduce) {
  #asset-title {
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #ant-avatar-wrap,
  #ant-avatar-wrap.ant-happy,
  #ant-avatar-wrap.ant-sad {
    animation: none !important;
  }
}

.launch-title-text {
  display: grid;
  gap: 0;
  width: 100%;
  color: #191f28;
  font-family: Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  font-size: clamp(28px, 8vw, 38px);
  font-weight: 900;
  line-height: 1.06;
  text-align: center;
  letter-spacing: 0;
  word-break: keep-all;
}

.launch-title-text span,
.launch-title-text strong {
  display: block;
  font: inherit;
}

.launch-title-text strong {
  color: var(--brand-primary);
  font-size: 1.18em;
}

.modal:not(#splash) {
  align-items: flex-end !important;
  padding: 0 !important;
  background: rgba(0, 0, 0, .5) !important;
}

.modal:not(#splash, #ranking-modal) > .modal-content {
  position: relative;
  width: min(100%, 480px) !important;
  max-width: 480px !important;
  max-height: calc(100dvh - max(12px, env(safe-area-inset-top))) !important;
  margin: 0 auto !important;
  padding: 28px 20px calc(20px + env(safe-area-inset-bottom)) !important;
  overflow-x: hidden;
  overflow-y: auto;
  border: 0 !important;
  border-radius: 24px 24px 0 0 !important;
  background: #fff !important;
  box-shadow: none !important;
  animation: sheetUp .22s ease-out !important;
}

.modal:not(#splash, #ranking-modal) > .modal-content::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: #d1d6db;
  transform: translateX(-50%);
}

.modal:not(#splash) .modal-actions button {
  min-height: 50px;
  border: 1px solid var(--ui-divider) !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #4e5968 !important;
  font-size: 16px;
  font-weight: 800;
  box-shadow: none !important;
}

.modal:not(#splash) .modal-actions button.highlight,
.modal:not(#splash) .modal-actions button.primary-action {
  border-color: var(--brand-primary) !important;
  background: var(--brand-primary) !important;
  color: #fff !important;
}

#sell-reward-double-btn,
#daytrade-double-btn {
  display: none !important;
}

@media (orientation: landscape) {
  .launch-title-text {
    font-size: clamp(20px, 7dvh, 32px);
  }
}

.story-modal-content {
  gap: 7px;
}

.tier-story-visual,
.story-modal .milestone-reward-visual,
.story-modal .analyst-hire-visual {
  width: min(100%, 310px) !important;
  aspect-ratio: 760 / 428 !important;
  margin: 0 auto 8px !important;
  overflow: hidden !important;
  border: 1px solid #d7e5f5 !important;
  border-radius: 12px !important;
  background: #f5f9ff !important;
}

.tier-story-visual .story-card-art,
.story-modal .story-card-art {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: inherit !important;
}

.story-modal[data-story-kind="evolution"][data-story-id="evolution-worker"] .modal-content {
  border-top: 4px solid #f5b544;
}

.story-modal[data-story-kind="analyst"] .modal-content {
  border-top: 4px solid #3182f6;
}

.story-modal[data-story-kind="luxury"] .modal-content {
  border-top: 4px solid #ff9f1c;
}

.growth-goal[data-mission="growth-worker"] .growth-goal-visual {
  object-fit: cover !important;
  object-position: center 48% !important;
  padding: 0 !important;
  background: #eef6ff;
}

.sell-reward-summary{display:grid;gap:0;margin:2px 0 4px;overflow:hidden;border:1px solid #e4ebf3;border-radius:8px;background:#f8fafc}
.sell-reward-summary>div{display:grid;grid-template-columns:72px minmax(0,1fr);align-items:center;min-width:0;min-height:var(--settlement-row-height,44px);gap:8px;padding:0 10px;border-bottom:1px solid #e4ebf3}
.sell-reward-summary>div:last-child{border-bottom:0}
.sell-reward-summary>div>span{color:#191f28;font-size:10px;font-weight:750;white-space:nowrap}

.sell-reward-summary strong{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;min-width:0;color:#18212f;font-size:clamp(13px,3.8vw,16px);font-weight:900;line-height:20px;white-space:nowrap}
.sell-reward-summary strong .settlement-amount-group{display:grid;grid-template-columns:minmax(0,1fr) max-content;gap:2px}
.sell-reward-summary strong .settlement-amount-group>span{text-align:right;font-variant-numeric:tabular-nums}

#sell-reward-pl.profit,#sell-reward-pl.profit span{color:#d62a3d}
#sell-reward-pl.loss,#sell-reward-pl.loss span{color:#1769e5}
#sell-reward-pl.flat,#sell-reward-pl.flat span{color:#191f28}

#sell-reward-modal[data-outcome="profit"] .sell-reward-content { border-top-color: #22c580; }
#sell-reward-modal[data-outcome="loss"] .sell-reward-content { border-top-color: #ff5c73; }
#sell-reward-modal[data-outcome="flat"] .sell-reward-content { border-top-color: #8290a3; }

.market-news-item[data-news-action="open-stock"] {
  width: 100%;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.market-news-item[data-news-action="open-stock"]:focus-visible {
  outline: 2px solid #3182f6;
  outline-offset: 2px;
}

.market-news-meta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  color: #69778a;
  font-size: 9.5px;
  font-weight: 800;
  white-space: nowrap;
}

.market-news-open {
  color: #3182f6;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.market-news-item[data-news-action="open-stock"] {
  grid-template-columns: auto minmax(0, 1fr) auto 8px !important;
}

.market-news-item[data-news-action="open-stock"] .market-news-meta {
  grid-column: 2 / 4;
  grid-row: 2;
  justify-content: flex-start;
}

.market-news-item[data-news-action="open-stock"] .market-news-time {
  display: block;
  grid-column: 3;
  grid-row: 1;
}

.market-news-item[data-news-action="open-stock"] .market-news-open {
  grid-column: 4;
  grid-row: 1 / span 2;
}

.stock-card.market-news-target {
  animation: marketNewsTarget 0.55s ease-in-out 2;
}

@keyframes marketNewsTarget {
  0%, 100% { box-shadow: 0 0 0 2px rgba(49, 130, 246, 0.18); }
  50% { box-shadow: 0 0 0 4px rgba(49, 130, 246, 0.38); }
}

@media (max-width: 520px) {
  .story-modal .modal-content {
    max-height: calc(100dvh - 24px);
  }

  .tier-story-visual,
  .story-modal .milestone-reward-visual,
  .story-modal .analyst-hire-visual {
    width: min(100%, 278px) !important;
  }

}

@media (max-height: 700px) {
  .tier-story-visual,
  .story-modal .milestone-reward-visual,
  .story-modal .analyst-hire-visual {
    width: min(100%, 232px) !important;
  }

  .story-modal .modal-content {
    gap: 5px;
    padding-top: 14px;
    padding-bottom: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stock-card.market-news-target {
    animation: none;
    box-shadow: 0 0 0 3px rgba(49, 130, 246, 0.32);
  }
}

#avatar-scene[data-residence] {
  height: clamp(232px, 56vw, 330px) !important;
  min-height: 0 !important;
  background-color: #eaf5ff !important;
  background-repeat: no-repeat !important;
  background-position: center 56% !important;
  background-size: cover !important;
}

#avatar-scene[data-residence="penthouse"] { background-image: url('../assets/generated/background-v169/residence/penthouse.webp') !important; }
#avatar-scene[data-residence="gosiwon"] { background-image: url('../assets/generated/background-v169/residence/gosiwon.webp') !important; }
#avatar-scene[data-residence="basement"] { background-image: url('../assets/generated/background-v169/residence/basement.webp') !important; }
#avatar-scene[data-residence="officetel"] { background-image: url('../assets/generated/background-v169/residence/officetel.webp') !important; }
#avatar-scene[data-residence="apartment"] { background-image: url('../assets/generated/background-v169/residence/apartment.webp') !important; }
#avatar-scene[data-residence="gangnam"] { background-image: url('../assets/generated/background-v169/residence/gangnam.webp') !important; }
#avatar-scene[data-residence="trading-office"] { background-image: url('../assets/generated/background-v169/residence/trading-office.webp') !important; }
#avatar-scene[data-residence="private-villa"] { background-image: url('../assets/generated/background-v169/residence/private-villa.webp') !important; }
#avatar-scene[data-residence="landmark-tower"] { background-image: url('../assets/generated/background-v169/residence/landmark-tower.webp') !important; }
#avatar-scene[data-residence="island-resort"] { background-image: url('../assets/generated/background-v169/residence/island-resort.webp') !important; }
#avatar-scene[data-residence="sky-trading-city"] { background-image: url('../assets/generated/background-v169/residence/sky-trading-city.webp') !important; }
#avatar-scene[data-residence="moon-market-villa"] { background-image: url('../assets/generated/background-v169/residence/moon-market-villa.webp') !important; }
#avatar-scene[data-residence="ant-finance-empire"] { background-image: url('../assets/generated/background-v169/residence/ant-finance-empire.webp') !important; }

@media (min-width: 900px) and (max-width: 1279px) {
  #avatar-scene[data-residence] {
    height: clamp(232px, 25vw, 260px) !important;
  }
}

#avatar-scene[data-residence]::before,
#avatar-scene[data-residence] #scene-skyline,
#avatar-scene[data-residence] #scene-road,
#avatar-scene[data-residence] #scene-runway,
#avatar-scene[data-residence] #scene-sea,
#avatar-scene[data-residence] #scene-penthouse,
#avatar-scene[data-residence] .estate-office,
#avatar-scene[data-residence] .estate-villa,
#avatar-scene[data-residence] .estate-tower,
#avatar-scene[data-residence] .estate-island {
  display: none !important;
}

#avatar-scene[data-residence]::after {
  display: none;
}

#avatar-scene[data-residence] #wall-art {
  top: 24px !important;
  left: 14px !important;
  transform: scale(0.82);
  transform-origin: left top;
}

#avatar-scene[data-residence] .scene-collection-chip[data-item] {
  background-color: rgba(255, 255, 255, 0.92);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 23px 23px;
}

#avatar-scene[data-residence] .scene-collection-chip[data-item]::before {
  display: none;
}

.scene-collection-chip[data-item="sportscar"],
.scene-collection-chip[data-item="supercar-garage"] { background-image: url('../assets/generated/luxury-sportscar.png'); }
.scene-collection-chip[data-item="yacht"] { background-image: url('../assets/generated/luxury-yacht.png'); }
.scene-collection-chip[data-item="art"] { background-image: url('../assets/generated/item-icons-v159/art.webp'); }
.scene-collection-chip[data-item="jet"] { background-image: url('../assets/generated/luxury-jet.png'); }
.scene-collection-chip[data-item="gold"] { background-image: url('../assets/generated/luxury-gold-bars.png'); }
.scene-collection-chip[data-item="bluechip-vault"] { background-image: url('../assets/generated/luxury-vault.png'); }

.cosmetic-skin-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 5px 9px;
  align-items: center;
  margin: 9px 0 12px;
  padding: 9px 11px;
  border: 1px solid #c9dcf6;
  border-radius: 8px;
  background: #f2f7ff;
  color: #334e70;
  font-size: 12px;
  line-height: 1.35;
}

.cosmetic-skin-note strong {
  color: #1769d8;
  white-space: nowrap;
}

@media (max-width: 390px) {
  .cosmetic-skin-note {
    grid-template-columns: 1fr;
  }
}

#avatar-scene.residence-moving::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 24;
  display: block;
  height: auto;
  background: #ffffff;
  pointer-events: none;
  animation: residenceCurtain 0.44s ease-in-out both;
}

#avatar-scene.residence-arrived {
  animation: residenceArrival 0.72s ease-out both;
}

@keyframes residenceCurtain {
  0% { opacity: 0; }
  45% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes residenceArrival {
  0% { filter: brightness(1.16); transform: scale(1.015); }
  100% { filter: brightness(1); transform: scale(1); }
}

.milestone-preview {
  display: block;
  width: 100%;
  aspect-ratio: 760 / 428;
  margin: 9px 0 8px;
  border: 1px solid #e1e9f2;
  border-radius: 7px;
  object-fit: cover;
  object-position: center;
  background: #f5f9ff;
}

.milestone-card[data-status="locked"] .milestone-preview {
  opacity: 0.68;
  filter: saturate(0.72);
}

.housing-section {
  margin: 0 0 18px;
  padding: 2px 0 18px;
  border-bottom: 1px solid #dbe5ef;
}

.milestone-view-tabs {
  position: sticky;
  top: calc(var(--sticky-topbar-height, 156px) + 8px);
  z-index: 12;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  margin: 0 0 14px;
  padding: 3px;
  border: 1px solid #d9e3ec;
  border-radius: 8px;
  background: rgba(244, 248, 251, 0.96);
  box-shadow: 0 5px 14px rgba(32, 54, 76, 0.08);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

#panel-milestones.panel.active {
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
}

#panel-milestones > *,
#panel-milestones .growth-view,
#panel-milestones .housing-section {
  min-width: 0;
  max-width: 100%;
}

.milestone-view-tabs button {
  min-width: 0;
  min-height: 44px;
  padding: 0 5px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #596d7f;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.milestone-view-tabs button[aria-selected="true"] {
  background: #fff;
  color: #1d5fa8;
  box-shadow: 0 2px 8px rgba(31, 75, 115, 0.12);
}

.milestone-view-tabs button[data-milestone-view="luxury"][aria-selected="true"] {
  background: #fff9e8;
  color: #98610a;
  box-shadow: 0 2px 8px rgba(139, 94, 15, 0.14);
}

.milestone-view-tabs button[data-milestone-view="legacy"][aria-selected="true"] {
  background: #effaf4;
  color: #24704a;
  box-shadow: 0 2px 8px rgba(35, 112, 74, 0.13);
}

.growth-view,
.housing-section {
  margin-inline: -10px;
  padding-inline: 10px;
  border-radius: 8px;
}

.housing-section {
  border-top: 3px solid #8fc3f1;
  background: #f5faff;
}

.growth-view-luxury {
  padding-top: 12px;
  padding-bottom: 16px;
  border-top: 3px solid #f2c35b;
  background: #fffbf1;
}

.growth-view-legacy {
  padding-top: 12px;
  padding-bottom: 16px;
  border-top: 3px solid #77c69d;
  background: #f5fbf7;
}

.luxury-view-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin: 0 0 10px;
  padding: 3px;
  border: 1px solid #efdcae;
  border-radius: 8px;
  background: #f8efd8;
}

.luxury-view-tabs button {
  min-width: 0;
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #806a3b;
  font-size: 12px;
  font-weight: 800;
}

.luxury-view-tabs button[aria-selected="true"] {
  background: #fff;
  color: #8b5907;
  box-shadow: 0 2px 7px rgba(124, 83, 17, 0.13);
}

.housing-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.housing-section-head h2 {
  margin: 2px 0 0;
  color: #172b3f;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: 0;
}

.section-kicker,
.housing-current-copy > span,
.housing-next-copy > span {
  color: #2d6aa7;
  font-size: 11px;
  font-weight: 800;
}

.housing-codex-count {
  flex: 0 0 auto;
  color: #526678;
  font-size: 12px;
  font-weight: 750;
}

.housing-current-card,
.housing-next-card {
  display: grid;
  grid-template-columns: minmax(132px, 42%) minmax(0, 1fr);
  min-height: 124px;
  overflow: hidden;
  border: 1px solid #d7e2ec;
  border-radius: 8px;
  background: #fff;
}

.housing-next-card {
  margin-top: 8px;
  border-color: #bfd7ed;
  background: #f7fbff;
}

.housing-current-card > img,
.housing-next-card > img {
  width: 100%;
  height: 100%;
  min-height: 124px;
  object-fit: cover;
  object-position: center;
}

.housing-current-copy,
.housing-next-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 4px;
  padding: 12px;
}

.housing-current-copy strong,
.housing-next-copy strong {
  color: #172b3f;
  font-size: 18px;
  line-height: 1.25;
}

.housing-current-copy small,
.housing-next-copy p {
  margin: 0;
  color: #657789;
  font-size: 11.5px;
  line-height: 1.45;
}

.housing-next-copy .mini-progress {
  width: 100%;
  margin: 3px 0;
}

.housing-buy-btn,
.housing-resell-btn {
  width: 100%;
  min-height: 38px;
  margin-top: 3px;
  border: 0;
  border-radius: 7px;
  background: #236fd1;
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.25;
}

.housing-resell-btn {
  min-height: 32px;
  background: #eef3f7;
  color: #3e566c;
}

.housing-buy-btn:disabled {
  background: #e2e9ef;
  color: #718293;
}

.housing-codex {
  display: grid;
  grid-auto-columns: 92px;
  grid-auto-flow: column;
  gap: 7px;
  margin-top: 10px;
  padding-bottom: 3px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
}

.housing-codex-item {
  position: relative;
  overflow: hidden;
  border: 1px solid #d6e1eb;
  border-radius: 7px;
  background: #f4f7fa;
}

.housing-codex-item img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.housing-codex-item span {
  display: block;
  min-width: 0;
  padding: 5px 4px 6px;
  overflow: hidden;
  color: #4f6173;
  font-size: 10.5px;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  text-overflow: clip;
  white-space: nowrap;
}

.housing-codex-item.locked img {
  opacity: 0.32;
  filter: grayscale(1) brightness(0.75);
}

.housing-codex-item.current {
  border-color: #2f80ed;
  box-shadow: 0 0 0 2px rgba(47, 128, 237, 0.16);
}

.housing-complete-note {
  display: flex;
  gap: 3px;
  flex-direction: column;
  margin-top: 8px;
  padding: 13px 14px;
  border: 1px solid #bfe4d1;
  border-radius: 8px;
  background: #f2fbf6;
  color: #335b47;
}

.milestone-card.housing-source-focus {
  animation: housingSourceFocus 0.8s ease-in-out 2;
}

@keyframes housingSourceFocus {
  50% { box-shadow: 0 0 0 4px rgba(255, 197, 61, 0.5); }
}

@media (max-width: 390px) {
  .housing-section-head h2 {
    font-size: 16px;
  }

  .housing-current-card,
  .housing-next-card {
    grid-template-columns: minmax(116px, 38%) minmax(0, 1fr);
  }

  .housing-current-copy,
  .housing-next-copy {
    padding: 10px;
  }

  .housing-current-copy strong,
  .housing-next-copy strong {
    font-size: 16px;
  }
}

.ps-positions-toggle {
  grid-column: 1 / -1;
  min-height: 34px;
  margin-top: 7px;
  border: 1px solid #cbd9e6;
  border-radius: 7px;
  background: #f4f8fb;
  color: #304c65;
  font-size: 12px;
  font-weight: 800;
}

.portfolio-positions {
  margin: -2px 0 10px;
  overflow: hidden;
  border: 1px solid #d8e3ed;
  border-radius: 8px;
  background: #fff;
}

.portfolio-positions-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 8px;
  border-bottom: 1px solid #edf1f5;
  color: #526779;
  font-size: 11px;
}

.portfolio-positions-head strong {
  color: #1c354c;
  font-size: 13px;
}

.portfolio-position-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) minmax(96px, auto);
  width: 100%;
  min-height: 58px;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border: 0;
  border-bottom: 1px solid #edf1f5;
  border-radius: 0;
  background: #fff;
  color: #20374c;
  text-align: left;
}

.portfolio-position-row:last-child {
  border-bottom: 0;
}

.portfolio-position-row:active {
  background: #f4f8fc;
}

.portfolio-position-logo {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--logo-border);
  border-radius: 7px;
  background: var(--logo-bg);
  color: var(--logo-text);
  font-size: 9px;
  font-weight: 900;
}

.portfolio-position-name,
.portfolio-position-value {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.portfolio-position-name strong,
.portfolio-position-value strong {
  overflow: hidden;
  font-size: 13px;
  line-height: 1.25;
  text-overflow: clip;
  white-space: nowrap;
}

.portfolio-position-name small,
.portfolio-position-value small {
  overflow: hidden;
  color: #718293;
  font-size: 10.5px;
  line-height: 1.25;
  text-overflow: clip;
  white-space: nowrap;
}

.portfolio-position-value {
  align-items: flex-end;
  text-align: right;
}

.stock-card.portfolio-row-focus {
  animation: housingSourceFocus 0.6s ease-in-out 2;
}

@media (prefers-reduced-motion: reduce) {
  .stock-card.portfolio-row-focus {
    animation: none !important;
    box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.24);
  }
}

.bucket-section {
  margin: 0;
  padding: 8px 0 2px;
  border: 0;
}

.bucket-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.bucket-section-head h2 {
  margin: 2px 0 0;
  color: #172b3f;
  font-size: 18px;
  line-height: 1.3;
}

.bucket-section-head > span {
  color: #526678;
  font-size: 12px;
  font-weight: 800;
}

.bucket-section-copy {
  margin: 5px 0 10px;
  color: #687b8c;
  font-size: 12px;
  line-height: 1.45;
}

.bucket-list {
  display: grid;
  width: 100%;
  max-width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 8px;
  padding-bottom: 0;
  overflow: visible;
}

.bucket-card {
  overflow: hidden;
  border: 1px solid #d8e3ed;
  border-radius: 8px;
  background: #fff;
}

.bucket-card > img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.bucket-card-copy {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px 7px;
}

.bucket-card-copy strong,
.bucket-card-copy span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.bucket-card-copy strong {
  color: #233b51;
  font-size: 13px;
}

.bucket-card-copy span {
  color: #708192;
  font-size: 10.5px;
}

.bucket-card > button {
  width: calc(100% - 20px);
  min-height: 36px;
  margin: 0 10px 10px;
  border: 0;
  border-radius: 7px;
  background: #236fd1;
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.25;
}

.bucket-card > button:disabled {
  background: #e7edf2;
  color: #748595;
}

.bucket-card.completed {
  border-color: #a9d7bf;
  background: #f5fbf7;
}

.bucket-card.completed > button {
  background: #2d8a5b;
}

.retirement-story-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 4px 0 8px;
  overflow: hidden;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  object-fit: cover;
}

#retirement-ending-modal .modal-content,
#prestige-modal .modal-content {
  width: min(92vw, 440px);
}

#retirement-ending-modal p {
  color: #526779;
  font-size: 13px;
  line-height: 1.55;
}

.cosmetics-section {
  margin: 0;
  padding-top: 8px;
}

.cosmetics-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 10px;
}

.cosmetic-card {
  display: grid;
  min-width: 0;
  justify-items: center;
  gap: 5px;
  padding: 11px 8px 9px;
  border: 1px solid #dbe4ec;
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.cosmetic-preview {
  position: relative;
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #d9e5ef;
  border-radius: 8px;
  background: linear-gradient(180deg, #f3f9ff, #fff8e9);
  box-shadow: inset 0 -5px 0 rgba(123, 79, 38, 0.04);
}

.cosmetic-preview::before,
.cosmetic-preview::after {
  content: none;
}

.cosmetic-preview-avatar {
  display: block;
  width: 76px;
  height: 76px;
  overflow: visible;
  transform: scale(1.02);
  transform-origin: center;
}

#ant-avatar .cosmetic:not(.hidden),
.cosmetic-preview-avatar .cosmetic:not(.hidden),
.story-character-avatar .cosmetic:not(.hidden),
.feature-character-avatar .cosmetic:not(.hidden) {
  filter:
    drop-shadow(0 1.2px 0.8px rgba(25, 31, 40, 0.24))
    drop-shadow(0 0.7px 1.5px rgba(255, 255, 255, 0.2));
}

.cosmetic-card strong,
.cosmetic-card small {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.cosmetic-card strong {
  color: #233b51;
  font-size: 12.5px;
  line-height: 1.25;
}

.cosmetic-card small {
  color: #758596;
  font-size: 10.5px;
  line-height: 1.3;
}

.cosmetic-card button {
  width: 100%;
  min-height: 32px;
  margin-top: 3px;
  border: 0;
  border-radius: 7px;
  background: #236fd1;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.cosmetic-card button:disabled {
  background: #e7edf2;
  color: #788896;
}

.cosmetic-card.equipped {
  border-color: #2f80ed;
  background: #f4f9ff;
  box-shadow: 0 0 0 2px rgba(47, 128, 237, 0.13);
}

@media (min-width: 760px) {
  .cosmetics-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .cosmetics-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.item-preview-button {
  display: grid;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.item-preview-button:focus-visible {
  outline: 3px solid rgba(49, 130, 246, 0.32);
  outline-offset: 2px;
}

.item-preview-button > img {
  pointer-events: none;
}

.upgrade-preview-button,
.analyst-preview-button {
  width: 52px;
  height: 52px;
}

@media (prefers-reduced-motion: reduce) {
  #avatar-scene.residence-moving::after,
  #avatar-scene.residence-arrived,
  .milestone-card.housing-source-focus {
    animation: none !important;
  }
}

@media (max-height: 600px) {
  #splash .splash-content {
    gap: 8px !important;
    padding: 14px 12px 13px !important;
  }

  #splash .splash-brand-mark {
    width: 136px !important;
    height: 136px !important;
  }

  #splash .splash-content h1 {
    font-size: 27px !important;
  }

  .splash-tagline {
    font-size: 12.2px !important;
    line-height: 1.32 !important;
  }

  .splash-disclaimer {
    gap: 4px;
    padding: 9px !important;
    font-size: 10px !important;
    line-height: 1.36 !important;
  }

  .splash-policy-links .privacy-link {
    min-height: 22px;
  }

  #splash-start-btn {
    min-height: 46px !important;
  }
}

@media (min-width: 700px) {
  #help-modal .help-slide-goal .help-visual-frame,
  #help-modal .help-slide-evolve .help-visual-frame {
    min-height: 0 !important;
  }

  #help-modal .help-slide-evolve .help-tier-card {
    min-height: 76px;
  }
}

@media (min-width: 520px) and (max-height: 560px) {
  #analyst-hire-modal[data-story-growth-coach="true"] :is(
    .analyst-hire-visual,
    .analyst-dream-preview
  ) {
    display: none !important;
  }

  #help-modal .help-slide-goal .help-visual-frame,
  #help-modal .help-slide-evolve .help-visual-frame {
    min-height: 118px !important;
  }

  #help-modal .help-slide-evolve .help-tier-card {
    min-height: 48px;
  }

  #help-modal .help-slide-evolve .help-tier-ant-img {
    width: 34px;
    height: 28px;
  }

  #help-modal .help-income-grid {
    gap: 6px !important;
  }

  #help-modal .help-income-grid span {
    min-height: 38px !important;
    padding: 5px !important;
    font-size: 11px !important;
  }

  #help-modal .help-income-grid span::before {
    width: 18px !important;
    height: 18px !important;
    margin-bottom: 2px !important;
  }
}

body[data-quest-priority="action"][data-quest-mission]::after {
  display: none !important;
  background: transparent !important;
}

body[data-quest-priority="action"][data-quest-mission] .quest-focus {
  outline: 2px solid rgba(245, 181, 68, 0.9) !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 3px rgba(245, 181, 68, 0.14) !important;
}

body[data-quest-priority="action"][data-quest-mission="buy"] .stock-card:not(.quest-surface),
body[data-quest-priority="action"][data-quest-mission="sell"] .stock-card:not(.quest-surface),
body[data-quest-priority="action"][data-quest-mission="analyst"] #panel-upgrades .item-row:not(.quest-surface) {
  opacity: 0.72 !important;
  filter: none !important;
}

.topbar-row2 {
  grid-template-columns: minmax(0, 1.24fr) minmax(108px, 0.76fr) !important;
}

.networth-block,
.cash-action-wrap,
.cash-chip,
.networth-line,
#networth-amount,
#cash-amount,
#asset-portfolio-glance {
  box-sizing: border-box;
  min-width: 0;
}

.networth-block,
.cash-chip {
  border-radius: 8px !important;
  overflow: visible !important;
}

.networth-line,
#networth-amount,
#cash-amount,
#asset-portfolio-glance {
  max-width: 100%;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0 !important;
  line-height: 1.18 !important;
  white-space: nowrap !important;
}

#networth-amount,
#cash-amount {
  display: block;
  padding-right: 2px;
}

#networth-amount {
  font-size: clamp(21px, 5.8vw, 25px) !important;
}

#cash-amount,
#asset-portfolio-glance {
  font-size: clamp(15px, 4vw, 17px) !important;
}

.starter-mission-card {
  padding: 10px 12px !important;
}

.starter-mission-card .starter-focus-row {
  grid-template-columns: 78px minmax(0, 1fr) !important;
  gap: 9px !important;
}

.starter-mission-card .starter-mission-visual {
  width: 78px !important;
  height: 44px !important;
  object-fit: cover !important;
}

.starter-step-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}

.starter-step-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #dfe8f5;
}

.starter-step-dot.active {
  width: 18px;
  border-radius: 999px;
  background: #3182f6;
}

.starter-step-dot.done {
  background: #17b978;
}

.milestone-card.purchased .milestone-sub {
  display: block;
  margin-top: 3px;
}

.milestone-card.purchased .milestone-resell-btn {
  min-height: 40px;
  margin-top: 9px;
  font-weight: 850;
  white-space: nowrap;
}

body[data-starter-phase="work"] #ranking-btn,
body[data-starter-phase="work"] #invite-btn,
body[data-starter-phase="buy"] #ranking-btn,
body[data-starter-phase="buy"] #invite-btn,
body[data-starter-phase="sell"] #ranking-btn,
body[data-starter-phase="sell"] #invite-btn,
body[data-starter-phase="analyst"] #ranking-btn,
body[data-starter-phase="analyst"] #invite-btn,
body[data-starter-phase="work"] #milestone-progress-wrap,
body[data-starter-phase="buy"] #milestone-progress-wrap,
body[data-starter-phase="sell"] #milestone-progress-wrap,
body[data-starter-phase="analyst"] #milestone-progress-wrap {
  display: none !important;
}

body[data-starter-phase="work"] #action-buttons {
  grid-template-columns: minmax(0, 1fr) !important;
}

body[data-starter-phase="work"] #daytrade-btn,
body[data-starter-phase="work"] #free-cash-btn,
body[data-starter-phase="work"] #boost-btn,
body[data-starter-phase="buy"] #action-buttons,
body[data-starter-phase="sell"] #action-buttons,
body[data-starter-phase="analyst"] #action-buttons {
  display: none !important;
}

@media (max-width: 380px) {
  .topbar-row2 {
    grid-template-columns: minmax(0, 1fr) minmax(102px, 34%) !important;
    gap: 7px !important;
  }

  .networth-block,
  .cash-chip {
    padding: 7px 8px !important;
  }

  #networth-amount {
    font-size: 21px !important;
  }

  #cash-amount,
  #asset-portfolio-glance {
    font-size: 14.5px !important;
  }
}

@media (prefers-reduced-motion: reduce), (max-width: 520px) {
  .stock-card.just-bought {
    animation-duration: 2.4s !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .quest-focus {
    animation: none !important;
  }
}

.launch-loader-progress span {
  width: 100% !important;
  animation: none !important;
  transform: scaleX(var(--launch-progress, 0)) !important;
  transform-origin: left center;
  transition: transform 180ms ease;
}

.launch-loader-error {
  position: absolute;
  z-index: 6;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 28px;
  background: rgba(248, 252, 255, 0.97);
  color: #4e5968;
  text-align: center;
}

.launch-loader-error.hidden {
  display: none;
}

.launch-loader-error strong {
  color: #191f28;
  font-size: 20px;
}

.launch-loader-error span {
  font-size: 13px;
  text-wrap: pretty;
}

.launch-loader-error button {
  min-width: 132px;
  min-height: 44px;
  margin-top: 8px;
  border: 1px solid #cbe1ff;
  border-radius: 8px;
  background: #3182f6;
  color: #ffffff;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
}

.topbar-row1 #invite-btn {
  min-width: 70px;
  white-space: nowrap;
}

.ps-head {
  grid-template-columns: minmax(0, 1fr) minmax(80px, auto) !important;
  gap: 5px !important;
}

.ps-right {
  min-width: 80px !important;
}

.ps-value {
  min-width: 0;
  font-size: clamp(21px, 5.5vw, 24px) !important;
  line-height: 1.12 !important;
  overflow-wrap: normal !important;
  word-break: keep-all !important;
  white-space: nowrap !important;
}

.ps-pl {
  font-size: clamp(17px, 4.3vw, 20px) !important;
  white-space: nowrap !important;
}

:is(
  .modal-content p,
  .modal-content p span,
  .panel-desc,
  .starter-mission-copy span,
  .starter-money-note,
  .help-disclaimer,
  .save-desc,
  .ranking-desc,
  .daytrade-desc,
  .market-news-text
) {
  overflow-wrap: normal !important;
  word-break: keep-all !important;
  text-wrap: pretty;
}

.nowrap,
.item-sub .nowrap,
.item-level.nowrap {
  display: inline-block;
  white-space: nowrap !important;
}

.item-name,
.item-sub,
.milestone-sub,
.milestone-owned-summary,
.achievement-name,
.achievement-desc {
  overflow-wrap: normal !important;
  word-break: keep-all !important;
  text-wrap: pretty;
}

.item-sub-lines,
.milestone-sub {
  display: grid;
  gap: 2px;
}

.item-sub-lines strong {
  color: #3182f6;
  font-size: inherit;
  font-weight: 900;
}

#loss-cut-text span,
#analyst-hire-text span,
#milestone-modal-text span,
#sell-reward-text span,
#offline-text span,
#daily-text span,
#guide-text span {
  text-wrap: balance;
}

@media (max-width: 340px) {
  .ps-head {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 2px !important;
  }

  .ps-right {
    min-width: 0 !important;
    text-align: left !important;
  }

  .ps-value {
    font-size: 21px !important;
  }
}

@media (max-width: 340px) {
  .item-row:has(> .buy-btn) {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .item-row:has(> .buy-btn) > .item-info {
    flex: 1 1 calc(100% - 50px);
  }

  .item-row:has(> .buy-btn) > .buy-btn {
    flex: 1 1 calc(100% - 46px);
    min-width: 0;
    margin-left: 46px;
  }
}

.daily-reward-visual,
.offline-reward-visual,
.sell-reward-visual,
.loss-cut-visual,
.analyst-hire-visual,
.milestone-reward-visual {
  width: min(100%, 278px) !important;
  min-height: 0 !important;
  aspect-ratio: 16 / 9 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 14px !important;
}

.daily-reward-visual .reward-card-art,
.offline-reward-visual .reward-card-art,
.sell-reward-visual .reward-card-art,
.loss-cut-visual .reward-card-art,
.analyst-hire-visual .reward-card-art,
.milestone-reward-visual .reward-card-art {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: inherit !important;
}

@media (max-width: 430px) {
  .stock-card-head {
    grid-template-columns: 74px minmax(0, 1fr) !important;
    grid-template-areas:
      "logo name"
      "price price" !important;
    align-items: start !important;
    column-gap: 10px !important;
  }

  .stock-logo {
    align-self: start !important;
    width: 72px !important;
    height: 52px !important;
    margin-top: 5px !important;
    padding: 6px 4px !important;
  }

  .stock-logo span {
    font-size: 9.6px !important;
    transform: translateY(-2.4px) scale(1.03) !important;
  }

  .stock-card[data-logo="LGENSOLU"] .stock-logo span,
  .stock-card[data-logo="CELTRIGON"] .stock-logo span {
    font-size: 9px !important;
  }

  .stock-sector {
    overflow: hidden !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
  }

  #action-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    padding: 9px 12px 8px !important;
  }

  #action-buttons button,
  #action-buttons button.action-primary {
    min-height: 52px !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    padding: 6px 8px !important;
    font-size: 12px !important;
    text-align: left !important;
  }

  #action-buttons button::after {
    top: 50% !important;
    left: 22px !important;
    transform: translate(-50%, -50%) !important;
  }

  #action-buttons .action-label,
  #action-buttons .action-status {
    text-align: left;
  }
}

@media (max-width: 380px) {
  #splash .splash-content {
    gap: 7px !important;
    padding: 0 10px 10px !important;
  }

  #splash .splash-brand-mark {
    width: calc(100% + 20px) !important;
    height: 210px !important;
    margin: 0 -10px !important;
    border-radius: 27px 27px 18px 18px !important;
  }

  #splash .splash-content h1 {
    font-size: 28px !important;
  }

  #splash .splash-tagline {
    font-size: 12.5px !important;
    line-height: 1.3 !important;
  }

  #splash .splash-disclaimer {
    padding: 8px !important;
  }
}

#sell-sheet {
  height: auto !important;
  max-height: calc(100dvh - 16px) !important;
  overflow-y: hidden !important;
  contain: none !important;
}

#sell-sheet .sell-preview {
  justify-content: stretch !important;
  align-content: center;
}

#sell-sheet .sell-preview-row {
  width: 100%;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) !important;
}

#sell-sheet-confirm {
  position: static !important;
  z-index: 2;
  background: linear-gradient(180deg, #3182f6, #206ad5) !important;
  box-shadow: 0 8px 18px rgba(49, 130, 246, 0.18) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
}

@media (max-width: 380px) {
  #sell-sheet {
    animation: none !important;
    contain: none !important;
    padding-bottom: calc(14px + env(safe-area-inset-bottom)) !important;
  }

  #sell-sheet-confirm {
    position: static !important;
    width: 100% !important;
  }

  #sell-sheet .sell-preview-row {
    grid-template-columns: 1fr !important;
  }

  #sell-sheet .sell-preview-row span:last-child {
    justify-self: start !important;
    text-align: left !important;
  }
}

@media (max-height: 600px) {
  #splash .splash-brand-mark {
    height: 206px !important;
  }

}

.feature-hero,
.daytrade-feature-visual,
.help-image-panel {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 0;
  aspect-ratio: 16 / 9;
  place-items: stretch;
  overflow: hidden;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: #f7fbff;
  box-shadow: 0 10px 22px rgba(49, 130, 246, 0.10);
}

.feature-hero-img,
.help-feature-img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
}

.bank-feature-visual {
  height: clamp(130px, 34vw, 148px);
  max-height: none;
  aspect-ratio: auto;
  margin: 0 0 10px;
  background: linear-gradient(90deg, #f2f8ff, #ffffff 48%, #eef8ff);
}

.bank-feature-visual .feature-hero-img {
  object-fit: contain;
  object-position: center;
}

.upgrade-feature-visual {
  height: clamp(134px, 38vw, 158px);
  max-height: none;
  aspect-ratio: auto;
  margin: 0 0 12px;
  background: linear-gradient(90deg, #f5f8ff, #ffffff 48%, #f2f8ff);
}

.upgrade-feature-visual .feature-hero-img {
  object-fit: contain;
  object-position: center;
}

.market-news-visual-card {
  height: clamp(132px, 36vw, 150px);
  max-height: none;
  aspect-ratio: auto;
  margin: 0 0 7px;
  border-radius: 10px;
  background: linear-gradient(90deg, #eaf7ff, #fff8ed 50%, #fff1db);
  box-shadow: 0 8px 18px rgba(49, 130, 246, 0.08);
}

.market-news-visual-card .feature-hero-img {
  object-fit: contain;
  object-position: center;
}

.daytrade-feature-visual {
  max-height: 94px;
  margin: 4px 0 8px;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(49, 130, 246, 0.10);
}

.daytrade-feature-visual .feature-hero-img {
  object-position: 48% 45%;
}

.help-image-panel {
  height: 100%;
  border-radius: 14px;
  box-shadow: none;
}

.help-image-panel-rumor .help-feature-img {
  object-position: 50% 43%;
}

.help-image-panel-share .help-feature-img {
  object-position: 48% 48%;
}

#panel-bank .panel-desc {
  word-break: keep-all;
}

@media (max-width: 430px) {
  .bank-feature-visual,
  .upgrade-feature-visual {
    border-radius: 12px;
  }

  .daytrade-feature-visual {
    max-height: 84px;
  }
}

@media (max-width: 360px) {
  .daytrade-feature-visual {
    max-height: 70px;
  }
}

@media (max-height: 680px) {
  .daytrade-content {
    padding: 12px !important;
  }

  .daytrade-desc {
    margin-bottom: 6px !important;
  }

  .daytrade-feature-visual {
    max-height: 64px;
    margin-bottom: 6px;
  }

  #daytrade-field {
    height: clamp(168px, 32dvh, 220px) !important;
  }

  #daytrade-field.done {
    height: 104px !important;
  }
}

@media (max-width: 520px) {
  #avatar-scene {
    min-height: 262px !important;
  }
}

#help-btn,
#utility-btn {
  min-height: 34px !important;
  padding: 0 13px !important;
  touch-action: manipulation;
}

#utility-btn {
  flex: 0 0 auto;
  border: 1px solid #b9d7f2;
  border-radius: 999px;
  background: #eef7ff;
  color: #27669e;
  font-size: 11px;
  font-weight: 800;
}

.utility-content {
  width: min(92vw, 420px);
}

.utility-desc {
  margin: -2px 0 10px;
  color: #66798a;
  font-size: 12px;
  line-height: 1.45;
}

.utility-action-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: 9px 10px;
  border-top: 1px solid #e0e8ef;
}

.utility-action-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: #eef6ff;
  color: #2f75b7;
}

.utility-action-icon::before {
  content: "";
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask: var(--ui-icon) center / contain no-repeat;
  mask: var(--ui-icon) center / contain no-repeat;
}

.utility-action-row > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.utility-action-row > button:not(:disabled) {
  border: 1px solid #e5e8eb !important;
  background: #f2f4f6 !important;
  color: #4e5968 !important;
  box-shadow: none !important;
}

.utility-action-row strong {
  color: #1d3347;
  font-size: 13px;
}

.utility-action-row small {
  overflow-wrap: anywhere;
  color: #5f7182;
  font-size: 12px;
  line-height: 1.35;
}

.utility-action-row > button {
  min-width: 58px;
  min-height: 36px;
  border: 0;
  border-radius: 7px;
  background: #236fd1;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.utility-action-row > button:disabled {
  background: #e5ebf0;
  color: #6e7f8e;
}

.loss-cut-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin: 8px 0;
  padding: 7px;
  border: 1px solid #dce6ef;
  border-radius: 7px;
  background: #f7fafc;
}

.loss-cut-summary > span {
  display: grid;
  min-width: 0;
  gap: 2px;
  text-align: center;
}

.loss-cut-summary small {
  color: #748597;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
}

.loss-cut-summary strong {
  min-width: 0;
  overflow: visible;
  color: #293d50;
  font-size: 16px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
  text-overflow: clip;
  white-space: nowrap;
}

.loss-cut-summary strong.profit { color: #0b8f68; }
.loss-cut-summary strong.loss { color: #e5484d; }
.loss-cut-summary strong.flat { color: #546577; }

.tier-next-label {
  max-width: 100%;
  text-overflow: clip !important;
}

@media (max-width: 360px) {
  .topbar-row1 .tier-next-label {
    font-size: 10px !important;
  }

  #main-screen {
    padding-bottom: calc(122px + env(safe-area-inset-bottom)) !important;
  }
}

@media (max-width: 360px) and (max-height: 640px) {
  #analyst-hire-modal[data-story-growth-coach="true"] :is(
    .analyst-hire-visual,
    .analyst-dream-preview
  ) {
    display: none !important;
  }

  body[data-quest-priority="action"][data-quest-mission="work"] .starter-mission-card {
    margin-top: 8px !important;
    padding: 8px 10px !important;
  }

  body[data-quest-priority="action"][data-quest-mission="work"] .starter-focus-row,
  body[data-quest-priority="action"][data-quest-mission="work"] .starter-progress,
  body[data-quest-priority="action"][data-quest-mission="work"] .starter-money-note,
  body[data-quest-priority="action"][data-quest-mission="work"] .starter-mission-actions,
  body[data-quest-priority="action"][data-quest-mission="work"] .starter-mission-chips {
    display: none !important;
  }

  body[data-quest-priority="action"][data-quest-mission="work"] #avatar-scene {
    display: none !important;
  }
}

.stock-logo {
  align-self: start !important;
  margin-top: 0 !important;
  transform: translateY(-1px);
}

.market-news-visual-card,
.bank-feature-visual,
.upgrade-feature-visual {
  width: min(100%, 281px);
  height: auto;
  aspect-ratio: 1672 / 941;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 1280px) {
  #bottom-nav .nav-btn {
    grid-template-columns: 24px minmax(0, 1fr) !important;
    grid-template-rows: 1fr !important;
    gap: 5px !important;
    align-content: center;
    padding: 0 5px !important;
  }

  #bottom-nav .nav-icon {
    box-sizing: border-box;
    width: 24px !important;
    min-width: 24px !important;
    max-width: 24px !important;
    height: 24px !important;
    padding: 0 !important;
    justify-self: center;
  }

  #bottom-nav .nav-label {
    min-width: 0;
    justify-self: start;
    font-size: 12px !important;
    white-space: nowrap;
  }
}

.daytrade-feature-visual {
  width: min(100%, 240px);
  height: auto;
  max-height: none;
  aspect-ratio: 1672 / 941;
  margin: 4px auto 8px;
}

.daytrade-feature-visual .feature-hero-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 430px) {
  .daytrade-feature-visual {
    width: min(100%, 220px);
  }
}

@media (max-width: 360px), (max-height: 680px) {
  .daytrade-feature-visual {
    width: min(100%, 196px);
  }
}

@media (min-width: 700px) and (max-height: 560px) {
  .daytrade-feature-visual {
    width: min(100%, 106px);
    margin-top: 2px;
    margin-bottom: 4px;
  }

  #daytrade-field {
    height: 118px !important;
    min-height: 118px !important;
  }

  #daytrade-field.done {
    height: 88px !important;
    min-height: 88px !important;
  }

  .daily-reward-visual,
  .offline-reward-visual,
  .sell-reward-visual,
  .loss-cut-visual,
  .analyst-hire-visual,
  .milestone-reward-visual {
    width: min(100%, 180px) !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 760 / 430 !important;
    margin-bottom: 6px !important;
    padding: 0 !important;
  }

  .work-tutorial-visual {
    width: min(100%, 180px);
    margin-bottom: 6px;
  }

  .daily-reward-visual .reward-card-art,
  .offline-reward-visual .reward-card-art,
  .sell-reward-visual .reward-card-art,
  .loss-cut-visual .reward-card-art,
  .analyst-hire-visual .reward-card-art,
  .milestone-reward-visual .reward-card-art {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: contain !important;
  }

  #sell-reward-modal .sell-reward-summary > div {
    min-height: 34px;
  }

  #daily-modal .modal-content,
  #offline-modal .modal-content,
  #loss-cut-modal .modal-content,
  #analyst-hire-modal .modal-content,
  #work-tutorial-modal .modal-content,
  #milestone-modal .modal-content,
  #daytrade-modal .modal-content {
    padding: 10px !important;
  }
}

#topbar .tier-ant-img {
  width: calc(100% - 4px) !important;
  height: calc(100% - 4px) !important;
  max-width: calc(100% - 4px) !important;
  max-height: calc(100% - 4px) !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
}

#topbar .tier-skin-snapshot {
  position: relative;
  display: grid;
  place-items: center;
}

#topbar .tier-skin-snapshot-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#topbar .tier-snapshot-watch {
  position: absolute;
  display: block;
  left: 8%;
  top: 58%;
  width: 23%;
  height: 23%;
  background: url('../assets/ui/milestone-watch.svg') center / contain no-repeat;
  filter: drop-shadow(0 1px 1px rgba(122, 79, 18, 0.34));
  transform: rotate(9deg);
}

#topbar .tier-ant-mark[data-tier="8"] .tier-ant-img,
#topbar .tier-ant-mark[data-tier="9"] .tier-ant-img {
  transform: none !important;
}

#wall-art {
  background-size: contain, auto !important;
  background-position: center, center !important;
  background-repeat: no-repeat, no-repeat !important;
}

#help-modal .help-image-panel-rumor,
#help-modal .help-image-panel-share {
  width: min(100%, 281px);
  height: auto;
  aspect-ratio: 1672 / 941;
  margin: auto;
}

#help-modal .help-image-panel-rumor .help-feature-img,
#help-modal .help-image-panel-share .help-feature-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

#help-modal .help-tier-ant-img,
#help-modal .help-tier-card[data-tier="6"] .help-tier-ant-img,
#help-modal .help-tier-card[data-tier="8"] .help-tier-ant-img {
  transform: translateY(1px) !important;
}

#help-modal .help-slide-evolve .help-tier-ant-img {
  width: min(100%, 46px);
}

@media (min-width: 700px) and (max-height: 560px) {
  #help-modal .help-image-panel-rumor,
  #help-modal .help-image-panel-share {
    width: min(100%, 214px);
  }

  #daytrade-modal .modal-content {
    overflow-y: hidden !important;
  }
}

@media (max-width: 699px) and (max-height: 640px) {
  #help-modal .help-content {
    height: calc(100dvh - 12px) !important;
    max-height: calc(100dvh - 12px) !important;
    padding: 8px !important;
  }

  #help-modal .help-content h2 {
    margin-bottom: 6px !important;
    font-size: 18px !important;
    line-height: 1.2 !important;
  }

  #help-body.help-carousel {
    gap: 6px !important;
  }

}

@media (min-width: 700px) and (max-height: 560px) {
  #help-modal .help-slide-card {
    grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr) !important;
  }

  #help-modal .help-slide-evolve .help-tier-codex-panel {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    padding: 4px !important;
  }

  #help-modal .help-slide-evolve .help-tier-codex {
    width: 100%;
    max-width: 100%;
    gap: 3px !important;
  }

  #help-modal .help-slide-evolve .help-tier-card {
    min-height: 0 !important;
    height: 52px;
    gap: 0 !important;
    padding: 2px !important;
    overflow: hidden;
  }

  #help-modal .help-slide-evolve .help-tier-ant-img {
    width: min(100%, 30px) !important;
    height: 25px !important;
  }

  #help-modal .help-slide-evolve .help-tier-card strong {
    font-size: 10px !important;
    line-height: 1 !important;
  }

  #help-modal .help-slide-evolve .help-tier-card em {
    font-size: 9px !important;
  }

  #help-modal .help-slide-copy {
    align-content: start;
    gap: 3px !important;
    padding: 6px 8px !important;
    overflow-y: auto !important;
  }

  #help-modal .help-kicker {
    min-height: 20px !important;
    margin-bottom: 2px !important;
    padding: 3px 7px !important;
    font-size: 9px !important;
  }

  #help-modal .help-slide-copy h3 {
    margin-bottom: 3px !important;
    font-size: 14px !important;
    line-height: 1.18 !important;
  }

  #help-modal .help-slide-copy ul {
    gap: 3px !important;
  }

  #help-modal .help-slide-copy li {
    min-height: 0 !important;
    padding: 4px 6px 4px 22px !important;
    font-size: 10.5px !important;
    line-height: 1.2 !important;
  }

  #help-modal .help-slide-copy li::before {
    top: 9px !important;
    left: 9px !important;
    width: 6px !important;
    height: 6px !important;
  }
}

#offline-modal .modal-content:has(.offline-breakdown-row:nth-child(5)) {
  padding: 10px !important;
}

#offline-modal .modal-content:has(.offline-breakdown-row:nth-child(5)) h2 {
  margin-bottom: 6px !important;
}

#offline-modal .modal-content:has(.offline-breakdown-row:nth-child(5)) .offline-reward-visual {
  width: min(100%, 170px) !important;
  margin-bottom: 6px !important;
}

#offline-modal .modal-content:has(.offline-breakdown-row:nth-child(5)) #offline-text {
  margin-bottom: 6px !important;
  font-size: 12px !important;
  line-height: 1.3 !important;
}

#offline-modal .modal-content:has(.offline-breakdown-row:nth-child(5)) #offline-amount {
  margin-bottom: 6px !important;
  font-size: 22px !important;
}

#offline-modal .modal-content:has(.offline-breakdown-row:nth-child(5)) #offline-breakdown {
  gap: 3px !important;
  margin: 6px 0 !important;
  padding: 7px !important;
}

#offline-modal .modal-content:has(.offline-breakdown-row:nth-child(5)) .offline-breakdown-row {
  font-size: 11px !important;
  line-height: 1.2 !important;
}

#offline-modal .modal-content:has(.offline-breakdown-row:nth-child(5)) .offline-breakdown-note {
  margin-top: 2px !important;
  font-size: 9.5px !important;
  line-height: 1.25 !important;
}

@media (min-width: 700px) and (max-height: 560px) {
  #offline-modal .modal-content:has(#offline-breakdown:not(:empty)) {
    display: grid;
    width: min(calc(100vw - 20px), 640px) !important;
    max-width: 640px !important;
    grid-template-columns: 180px minmax(0, 1fr);
    grid-template-areas:
      "title title"
      "visual text"
      "visual amount"
      "visual breakdown"
      "visual actions";
    column-gap: 12px;
    align-items: start;
    overflow-y: hidden !important;
  }

  #offline-modal .modal-content:has(#offline-breakdown:not(:empty)) h2 {
    grid-area: title;
  }

  #offline-modal .modal-content:has(#offline-breakdown:not(:empty)) .offline-reward-visual {
    grid-area: visual;
    align-self: center;
  }

  #offline-modal .modal-content:has(#offline-breakdown:not(:empty)) #offline-text {
    grid-area: text;
  }

  #offline-modal .modal-content:has(.offline-breakdown-row:nth-child(5)) #offline-text {
    display: none !important;
  }

  #offline-modal .modal-content:has(#offline-breakdown:not(:empty)) #offline-amount {
    grid-area: amount;
  }

  #offline-modal .modal-content:has(#offline-breakdown:not(:empty)) #offline-breakdown {
    grid-area: breakdown;
  }

  #offline-modal .modal-content:has(#offline-breakdown:not(:empty)) .modal-actions {
    grid-area: actions;
  }

  #sell-sheet {
    max-height: calc(100dvh - 8px) !important;
    padding: 6px 12px calc(8px + env(safe-area-inset-bottom)) !important;
  }

  #sell-sheet .sheet-handle {
    margin-bottom: 5px !important;
  }

  #sell-sheet .sheet-head {
    margin-bottom: 6px !important;
    padding-bottom: 6px !important;
  }

  #sell-sheet .sell-portion-chips {
    margin-bottom: 4px !important;
  }

  #sell-sheet .sell-portion-chips button {
    min-height: 44px !important;
  }

  #sell-sheet #sell-slider {
    height: 32px !important;
    margin-bottom: 2px !important;
  }

  #sell-sheet .sell-preview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 0;
    margin-bottom: 6px;
    padding: 6px;
  }

  #sell-sheet .sell-preview-row {
    grid-template-columns: 1fr !important;
    gap: 2px !important;
    min-height: 48px;
    align-content: center;
    padding: 5px 7px;
  }

  #sell-sheet .sell-preview-row span:last-child {
    justify-self: start !important;
    text-align: left !important;
  }

  #sell-sheet-confirm {
    min-height: 44px !important;
  }

  .daytrade-content:has(#daytrade-field.done) .daytrade-feature-visual,
  .daytrade-content:has(#daytrade-result:not(.hidden)) .daytrade-desc {
    display: none !important;
  }
}

#bottom-nav .nav-badge {
  position: absolute;
  top: 1px;
  right: auto;
  left: calc(50% + 18px);
  display: inline-grid;
  width: auto;
  min-width: 20px;
  height: 16px;
  place-items: center;
  border: 1px solid rgba(23, 105, 229, 0.2);
  border-radius: 6px;
  background: #1769e5;
  box-shadow: 0 2px 7px rgba(23, 105, 229, 0.22);
  color: #ffffff;
  font-size: 8.5px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  pointer-events: none;
}

@media (min-width: 900px) and (max-width: 1279px) {
  #bottom-nav .nav-badge {
    right: 6px;
    left: auto;
  }
}

#bottom-nav .nav-badge.hidden {
  display: none !important;
}

#market-news-feed.tutorial-locked {
  background: #f8fbff !important;
  box-shadow: none !important;
}

#market-news-feed.tutorial-locked #market-news-toggle:disabled {
  cursor: default;
  opacity: 1;
}

#market-news-feed.tutorial-locked .market-news-title em {
  border-radius: 6px;
  background: #edf3fa;
  color: #6b7684 !important;
}

#bonus-confirm-modal {
  z-index: 360;
  padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom));
  background: rgba(15, 23, 42, 0.68);
}

#bonus-confirm-modal .bonus-confirm-content {
  display: grid;
  width: min(100%, 360px);
  max-width: 360px;
  max-height: calc(100dvh - 20px);
  gap: 9px;
  overflow: hidden;
  border: 1px solid #d7e7f8;
  border-radius: 16px;
  background: #ffffff;
  padding: 12px;
  color: #191f28;
  box-shadow: 0 24px 64px rgba(15, 45, 82, 0.24);
}

.bonus-confirm-visual {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 760 / 430;
  overflow: hidden;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #f5f9ff;
}

.bonus-confirm-visual .reward-card-art {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  object-fit: cover !important;
  object-position: center !important;
}

.stock-price-line {
  overflow: visible !important;
  padding-block: 2px;
}

.stock-price {
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-end;
  min-height: 26px;
  padding: 2px 5px !important;
  overflow: visible !important;
  line-height: 1.2 !important;
  text-overflow: clip !important;
}

@media (max-width: 520px), (prefers-reduced-motion: reduce) {
  .daytrade-target {
    box-shadow: 0 5px 12px rgba(23, 185, 120, 0.2) !important;
  }

  .daytrade-target.gold {
    box-shadow: 0 5px 14px rgba(245, 181, 68, 0.24) !important;
  }
}

.bonus-confirm-copy {
  display: grid;
  gap: 3px;
}

.bonus-confirm-kicker {
  color: #1769e5;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
}

#bonus-confirm-title {
  margin: 0;
  color: #17233a;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0;
  word-break: keep-all;
}

#bonus-confirm-text,
.bonus-confirm-note {
  margin: 0;
  color: #4e5968;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.42;
  word-break: keep-all;
}

.bonus-confirm-benefit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  background: #f4f8ff;
  padding: 8px 10px;
  text-align: left;
}

.bonus-confirm-benefit span {
  color: #6b7684;
  font-size: 11px;
  font-weight: 800;
}

.bonus-confirm-benefit strong {
  min-width: 0;
  color: #1769e5;
  font-size: 15px;
  font-weight: 950;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
}

.bonus-confirm-note {
  color: #6b7684;
  font-size: 10.5px;
}

#bonus-confirm-modal .modal-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 8px;
  margin-top: 1px;
}

#bonus-confirm-modal .modal-actions button {
  min-width: 0;
  min-height: 44px;
  border-radius: 10px;
  font-size: 13px;
}

@media (max-width: 340px), (max-height: 600px) {
  #bonus-confirm-modal .bonus-confirm-content {
    gap: 7px;
    padding: 9px;
  }

  .bonus-confirm-visual {
    height: auto;
  }

  #bonus-confirm-title {
    font-size: 19px;
  }

  #bonus-confirm-text {
    font-size: 11.5px;
  }

  .bonus-confirm-benefit {
    min-height: 42px;
    padding: 6px 8px;
  }

  #bonus-confirm-modal .modal-actions button {
    min-height: 46px;
  }
}

@media (max-height: 440px) and (min-width: 480px) {
  #bonus-confirm-modal .bonus-confirm-content {
    width: min(100%, 680px);
    max-width: 680px;
    grid-template-columns: minmax(210px, 0.9fr) minmax(260px, 1.1fr);
    grid-template-rows: auto auto auto auto;
    column-gap: 12px;
    row-gap: 6px;
    padding: 10px;
  }

  #bonus-confirm-modal .bonus-confirm-visual {
    grid-column: 1;
    grid-row: 1 / span 4;
    align-self: center;
  }

  #bonus-confirm-modal .bonus-confirm-copy,
  #bonus-confirm-modal .bonus-confirm-benefit,
  #bonus-confirm-modal .bonus-confirm-note,
  #bonus-confirm-modal .modal-actions {
    grid-column: 2;
  }

  #bonus-confirm-modal .bonus-confirm-copy {
    grid-row: 1;
  }

  #bonus-confirm-modal .bonus-confirm-benefit {
    grid-row: 2;
  }

  #bonus-confirm-modal .bonus-confirm-note {
    grid-row: 3;
  }

  #bonus-confirm-modal .modal-actions {
    grid-row: 4;
  }
}

/* v120-v125: the loader and first-run action share one full-bleed key-art surface. */
:root {
  --launch-stage-color: #018af9;
  --launch-art-position: center 50%;
}

#launch-loader,
#splash {
  position: fixed !important;
  inset: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  background: var(--launch-stage-color) !important;
  animation: none !important;
}

#launch-loader {
  z-index: 500;
  display: block;
  opacity: 1;
  transition: none;
}

#launch-loader.is-complete {
  pointer-events: none;
  opacity: 0;
  transform: none;
}

.launch-loader-stage,
#splash .splash-content {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: 100dvh !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--launch-stage-color) !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.launch-loader-stage::after,
#splash .splash-content::before,
#splash .splash-content::after {
  display: none !important;
}

.launch-loader-art,
#splash .splash-hero-image {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: var(--launch-art-position) !important;
  transform: none !important;
  animation: none !important;
}

#splash .splash-brand-mark {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--launch-stage-color) !important;
  box-shadow: none !important;
  animation: none !important;
}

.launch-loader-status {
  position: absolute;
  z-index: 4;
  right: auto;
  bottom: max(42px, calc(env(safe-area-inset-bottom) + 36px));
  left: 50%;
  width: min(calc(100% - 48px), 342px);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  text-shadow: 0 2px 8px rgba(8, 38, 74, 0.72);
  transform: translateX(-50%);
  white-space: nowrap;
}

.launch-loader-title,
#splash .splash-content h1.launch-surface-title {
  position: absolute !important;
  z-index: 3;
  top: max(68px, calc(env(safe-area-inset-top) + 48px)) !important;
  left: 50% !important;
  display: block !important;
  width: clamp(180px, 56vw, 240px) !important;
  height: auto !important;
  margin: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  transform: translateX(-50%) !important;
}

.launch-loader-progress {
  position: absolute;
  z-index: 4;
  right: auto;
  bottom: max(24px, calc(env(safe-area-inset-bottom) + 18px));
  left: 50%;
  width: min(calc(100% - 48px), 342px);
  height: 7px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  background: rgba(8, 38, 74, 0.42);
  box-shadow: 0 4px 14px rgba(8, 38, 74, 0.26);
  transform: translateX(-50%);
}

.launch-loader-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: #ffffff !important;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.48);
}

#splash-start-btn {
  position: absolute !important;
  z-index: 5;
  right: auto !important;
  bottom: max(22px, calc(env(safe-area-inset-bottom) + 16px));
  left: 50% !important;
  width: min(calc(100% - 40px), 390px) !important;
  min-height: 64px !important;
  margin: 0 !important;
  border: 3px solid rgba(255, 255, 255, 0.92) !important;
  border-radius: 18px !important;
  background: #1769e5 !important;
  box-shadow: 0 6px 0 #0d4fae, 0 16px 30px rgba(8, 38, 74, 0.34) !important;
  color: #ffffff !important;
  font-family: Pretendard, "Toss Product Sans", "Apple SD Gothic Neo", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif !important;
  font-size: 20px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  transform: translateX(-50%) !important;
  transition: background-color 150ms ease, box-shadow 150ms ease, opacity 180ms ease, transform 150ms ease !important;
}

#splash-start-btn:hover {
  background: #0f5fd8 !important;
  box-shadow: 0 6px 0 #0d4fae, 0 18px 32px rgba(8, 38, 74, 0.4) !important;
}

#splash-start-btn:active {
  transform: translateX(-50%) translateY(4px) !important;
}

#splash-start-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
}

#splash-start-btn:disabled {
  cursor: wait;
  opacity: 0.82;
}

#splash.is-starting {
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
}

.launch-loader-error {
  inset: 50% auto auto 50%;
  width: min(calc(100% - 40px), 340px);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 16px;
  background: rgba(8, 38, 74, 0.95);
  box-shadow: 0 20px 44px rgba(4, 25, 50, 0.34);
  color: #dcecff;
  transform: translate(-50%, -50%);
}

.launch-loader-error strong,
.launch-loader-error span {
  color: #ffffff;
}

.help-policy-links {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
}

.help-policy-links a {
  color: #536579;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

#help-modal .help-disclaimer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 7px 9px;
}

#help-modal .help-disclaimer > span {
  min-width: 0;
  color: #68798b;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

@media (orientation: landscape) {
  .launch-loader-art,
  #splash .splash-hero-image {
    object-fit: contain !important;
  }

  .launch-loader-progress {
    bottom: max(14px, calc(env(safe-area-inset-bottom) + 10px));
    width: min(calc(100% - 32px), calc(66.667dvh - 24px), 320px);
  }

  .launch-loader-status {
    bottom: max(32px, calc(env(safe-area-inset-bottom) + 28px));
    width: min(calc(100% - 32px), calc(66.667dvh - 24px), 320px);
  }

  #splash-start-btn {
    bottom: max(12px, calc(env(safe-area-inset-bottom) + 8px));
    width: min(calc(100% - 32px), calc(66.667dvh - 24px), 320px) !important;
    min-height: 48px !important;
  }

  .launch-loader-title,
  #splash .splash-content h1.launch-surface-title {
    top: max(10px, calc(env(safe-area-inset-top) + 8px)) !important;
    width: min(calc(100% - 32px), calc(66.667dvh - 16px), 190px) !important;
  }
}

@media (orientation: landscape) and (min-height: 600px) {
  .launch-loader-title,
  #splash .splash-content h1.launch-surface-title {
    top: max(64px, calc(env(safe-area-inset-top) + 48px)) !important;
    width: 320px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #launch-loader,
  #splash.is-starting,
  #splash-start-btn,
  .launch-loader-progress span {
    transition-duration: 1ms !important;
  }
}

/* v112: required tutorial ends at the analyst; this compact rail owns the next one-minute decision. */
.starter-mission-card.growth-goal {
  border-color: #e5e8eb;
  background: #fff;
}

.growth-goal .starter-progress > span {
  background: linear-gradient(90deg, #3182f6, #33b47e);
}

.growth-goal .growth-goal-visual {
  object-fit: cover;
  object-position: center;
}

.growth-goal[data-mission="growth-worker"] .growth-goal-visual {
  object-fit: contain;
  padding: 2px;
  background: #eef6ff;
}

.growth-goal-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.growth-goal-actions small {
  max-width: 150px;
  color: #637083;
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
  text-align: right;
}

.early-unlock-note,
.early-luxury-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 18px;
  padding: 12px;
  border: 1px solid #e5e8eb;
  border-radius: 8px;
  background: #fff;
  color: #536176;
}

.early-unlock-note {
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  margin-inline: 11px;
}

.early-unlock-note strong,
.early-luxury-preview strong {
  display: block;
  color: #202632;
  font-size: 13px;
  line-height: 1.35;
}

.early-luxury-preview span {
  font-size: 11.5px;
  line-height: 1.45;
}

.early-luxury-preview-icons {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
}

.early-luxury-preview-icons > img {
  width: 34px;
  height: 34px;
  margin-left: -7px;
  border: 2px solid #fff;
  border-radius: 50%;
  background-color: #edf4ff;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 22px 22px;
  box-shadow: 0 2px 8px rgba(38, 74, 122, 0.12);
}

.early-luxury-preview-icons > img {
  object-fit: contain;
}

.early-luxury-preview-icons > img:first-child {
  margin-left: 0;
}

@media (max-width: 430px) {
  .growth-goal-actions {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .growth-goal-actions small {
    max-width: none;
    padding: 0 2px;
    text-align: left;
  }
}
/* v121: show a concrete bank outcome instead of asking players to interpret compounding. v290 owns the complete surface. */
body[data-bank-surface-release="290"] #panel-bank.active {
  box-sizing: border-box;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body[data-bank-surface-release="290"] #panel-bank > :is(.bank-deposit-card, .bank-rental-card) {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 16px;
  border: 1px solid #e5e8eb !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: none !important;
}

body[data-bank-surface-release="290"] #panel-bank > .bank-deposit-card {
  margin-bottom: 12px;
}

body[data-bank-surface-release="290"] #panel-bank .bank-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

body[data-bank-surface-release="290"] #panel-bank .bank-title-row .bank-label {
  margin: 0;
  color: #191f28;
  font-size: 15px;
  font-weight: 850;
}

body[data-bank-surface-release="290"] #panel-bank .bank-color-icon {
  display: block;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
}

body[data-bank-surface-release="290"] #panel-bank .bank-rental-label {
  margin-bottom: 8px;
}

body[data-bank-surface-release="290"] #panel-bank .bank-rental-list {
  display: grid;
  gap: 0;
}

body[data-bank-surface-release="290"] #panel-bank .bank-rental-row {
  min-width: 0;
  margin: 0;
  padding: 10px 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-bank-surface-release="290"] #panel-bank .bank-rental-row + .bank-rental-row {
  border-top: 1px solid #e5e8eb !important;
}

body[data-bank-surface-release="290"] #panel-bank .bank-rental-preview-button,
body[data-bank-surface-release="290"] #panel-bank .bank-rental-story-thumb {
  box-sizing: border-box;
  width: 112px;
  height: 63px;
}

body[data-bank-surface-release="290"] #panel-bank .bank-rental-story-thumb {
  display: block;
  padding: 5px;
  border-radius: 8px;
  object-fit: contain;
  background: #edf5fb;
}

body[data-bank-surface-release="290"] #panel-bank .bank-rental-story-thumb--icon {
  background: #e7e9ed;
}

body[data-bank-surface-release="290"] #panel-bank .bank-rental-story-thumb--light {
  background: #f5f7fb;
}

body[data-bank-surface-release="290"] #panel-bank .bank-future-rentals {
  margin-top: 8px;
}

body[data-bank-surface-release="290"] #panel-bank .bank-future-rentals > summary {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #e5e8eb;
  border-radius: 8px;
  color: #4e5968;
  background: #f7f8fa;
  font-size: 14px;
  font-weight: 800;
  line-height: 42px;
  cursor: pointer;
}

body[data-bank-surface-release="290"] #panel-bank .bank-future-rentals[open] > .bank-rental-list {
  margin-top: 8px;
}

body[data-bank-surface-release="290"] #panel-bank .bank-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 0;
}

body[data-bank-surface-release="290"] #panel-bank .bank-btn {
  min-height: 44px !important;
}

body[data-bank-surface-release="290"] #panel-bank .bank-balance {
  margin-bottom: 4px;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -.02em;
}

.bank-projection {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "label interest"
    "balance balance";
  align-items: center;
  gap: 3px 10px;
  margin: 6px 0;
  padding: 6px 0;
  border-top: 1px solid #d1d6db;
  border-bottom: 1px solid #d1d6db;
  text-align: left;
}

.bank-projection-label {
  grid-area: label;
  min-width: 0;
  color: #6b7684;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
  white-space: nowrap;
}

#bank-day-balance,
#bank-day-interest {
  min-width: 0;
  overflow: visible;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
  text-overflow: clip;
  white-space: nowrap;
}

#bank-day-balance {
  grid-area: balance;
  color: #191f28;
  font-size: 18px;
  font-weight: 900;
  line-height: 23px;
  text-align: left;
}

#bank-day-interest {
  grid-area: interest;
  color: #3182f6;
  font-size: 11px;
  font-weight: 800;
  text-align: right;
}

.bank-empty-hint {
  margin: 8px 0;
  color: #6b7684;
}

.bank-rate {
  margin-bottom: 8px;
  color: #66768a;
  font-size: 11.5px;
  line-height: 1.3;
  white-space: nowrap;
}

@media (max-width: 380px) {
  body[data-bank-surface-release="290"] #panel-bank .bank-rental-preview-button,
  body[data-bank-surface-release="290"] #panel-bank .bank-rental-story-thumb {
    width: 96px;
    height: 54px;
  }

  .bank-projection {
    gap: 3px 5px;
  }

  .bank-projection-label,
  #bank-day-interest {
    font-size: 10px;
  }
}

.analyst-dream-preview {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  margin: 7px 0 9px;
  padding: 7px 0;
  border-top: 1px solid #dce8f7;
  border-bottom: 1px solid #dce8f7;
}

.analyst-dream-assets {
  display: flex;
  align-items: center;
}

.analyst-dream-preview:has(.analyst-dream-assets[hidden]){grid-template-columns:minmax(0,1fr)}

.analyst-dream-assets img {
  display: block;
  width: 38px;
  height: 38px;
  margin-left: -8px;
  object-fit: contain;
  filter: drop-shadow(0 3px 4px rgba(31, 73, 125, 0.16));
}

.analyst-dream-assets img:first-child {
  margin-left: 0;
}

.analyst-dream-copy {
  min-width: 0;
  text-align: left;
}

.analyst-dream-copy span,
.analyst-dream-copy strong {
  display: block;
  letter-spacing: 0;
  line-height: 1.25;
  white-space: nowrap;
}

.analyst-dream-copy span {
  color: #6b7684;
  font-size: 10.5px;
  font-weight: 700;
}

.analyst-dream-copy strong {
  color: #1b64d8;
  font-size: 13px;
  font-weight: 900;
}

@media (max-width: 340px) {
  .analyst-dream-preview {
    gap: 6px;
  }

  .analyst-dream-assets img {
    width: 32px;
    height: 32px;
    margin-left: -7px;
  }

  .analyst-dream-copy strong {
    font-size: 12px;
  }
}

/* v129: compact luxury art and stronger growth-section separation. */
#panel-milestones {
  --growth-blue: #2f80ed;
  --growth-gold: #d99723;
  --growth-coral: #d96c62;
  --growth-green: #31986b;
}

.housing-section,
.growth-view-luxury,
.growth-view-legacy {
  margin-inline: 0;
  padding-inline: 10px;
  border-right: 1px solid transparent;
  border-bottom: 1px solid transparent;
  border-left: 1px solid transparent;
}

.housing-section {
  border-color: #cfe3f7;
  background: #f3f9ff;
}

.growth-view-luxury {
  border-color: #ecd8a8;
  background: #fffaf0;
}

.growth-view-luxury.luxury-section-bucket {
  border-top-color: var(--growth-coral);
  border-right-color: #f0d5d1;
  border-bottom-color: #f0d5d1;
  border-left-color: #f0d5d1;
  background: #fff7f6;
}

.growth-view-luxury.luxury-section-cosmetics {
  border-top-color: var(--growth-green);
  border-right-color: #cce8da;
  border-bottom-color: #cce8da;
  border-left-color: #cce8da;
  background: #f3fbf7;
}

.growth-view-legacy {
  border-color: #cce5d8;
  background: #f3faf6;
}

.luxury-view-tabs button[data-luxury-view="milestones"][aria-selected="true"] {
  color: #865408;
  box-shadow: inset 0 -3px 0 var(--growth-gold), 0 2px 7px rgba(124, 83, 17, 0.11);
}

.luxury-view-tabs button[data-luxury-view="bucket"][aria-selected="true"] {
  color: #a33d35;
  box-shadow: inset 0 -3px 0 var(--growth-coral), 0 2px 7px rgba(155, 61, 52, 0.11);
}

.luxury-view-tabs button[data-luxury-view="cosmetics"][aria-selected="true"] {
  color: #1d744f;
  box-shadow: inset 0 -3px 0 var(--growth-green), 0 2px 7px rgba(31, 116, 79, 0.11);
}

.collection-section {
  min-width: 0;
  padding: 8px 0 2px;
}

.collection-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.collection-section-head h2 {
  margin: 2px 0 0;
  color: #172b3f;
  font-size: 18px;
  line-height: 1.3;
}

.collection-section-head > span {
  flex: 0 0 auto;
  color: #715b31;
  font-size: 12px;
  font-weight: 800;
}

.collection-section-copy {
  margin: 5px 0 10px;
  color: #6f624b;
  font-size: 12px;
  line-height: 1.4;
}

.milestone-list {
  display: grid;
  gap: 9px;
}

.milestone-list .milestone-card {
  margin-bottom: 0;
}

.milestone-card {
  border-radius: 8px !important;
  padding: 12px !important;
}

.milestone-head {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.milestone-preview-button {
  width: 56px;
  height: 56px;
}

.milestone-copy {
  min-width: 0;
}

.milestone-facts {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 3px 9px;
  margin-top: 4px;
  color: #6b7684;
  font-size: 10.5px;
  line-height: 1.35;
}

.milestone-facts span {
  white-space: nowrap;
}

.milestone-facts strong {
  color: #303b4a;
  font-weight: 750;
}

.milestone-card-body {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(136px, 34%) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.milestone-preview-frame {
  display: grid;
  min-width: 0;
  aspect-ratio: auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid #dde7ef;
  border-radius: 7px;
  background: #eef5fa;
}

.milestone-preview {
  display: block;
  width: 100%;
  height: auto !important;
  max-width: 100%;
  max-height: none;
  aspect-ratio: auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  object-position: center;
  background: transparent;
}

.bucket-card > img,
.housing-codex-item img,
.retirement-story-image {
  height: auto !important;
}

.bucket-card > img,
.retirement-story-image {
  object-fit: cover;
  background: #edf5fb;
}

.bucket-card-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.bucket-cosmetic-reward {
  grid-column: 1 / -1;
  color: #a33d35;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.4;
}

.codex-ant-img {
  transform: none !important;
}

.milestone-card-actions {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.milestone-card-actions .milestone-bar-row,
.milestone-card-actions .milestone-resell-btn {
  margin-top: 0;
}

.milestone-card-actions .milestone-buy-btn,
.milestone-card-actions .milestone-resell-btn {
  width: 100%;
  min-height: 44px;
}

.bucket-section .section-kicker {
  color: #a33d35;
}

.cosmetics-section .section-kicker {
  color: #1d744f;
}

.story-modal[data-story-kind="luxury"] .story-card-art {
  object-fit: contain !important;
  background: #edf5fb !important;
}

@media (max-width: 520px) {
  .early-unlock-note {
    margin-inline: 9px;
  }

  .growth-view,
  .housing-section {
    margin-inline: 0;
    padding-inline: 8px;
  }

  .housing-current-card > img,
  .housing-next-card > img {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #eaf4fb;
  }

  .housing-current-card,
  .housing-next-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .housing-current-copy {
    min-height: 0;
    justify-content: flex-start;
    gap: 2px;
    padding: 6px 10px;
  }

  .housing-current-copy > span,
  .housing-current-copy > small {
    display: none;
  }

  .housing-next-copy {
    min-height: 112px;
  }

  .collection-section-head h2,
  .bucket-section-head h2 {
    font-size: 16px;
  }

  .milestone-head {
    margin-bottom: 9px;
  }

  .milestone-facts {
    font-size: 11px;
    gap: 2px 7px;
  }

  .milestone-card-body {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 10px;
  }

  .milestone-preview-frame {
    min-height: 0;
  }

  .milestone-card-actions {
    gap: 6px;
  }

  .milestone-card-actions .milestone-bar-row {
    gap: 7px;
  }

  .milestone-card-actions .item-sub {
    font-size: 11.5px;
  }

  .story-modal[data-story-kind="luxury"] .milestone-reward-visual {
    width: min(100%, 252px) !important;
  }
}

@media (max-width: 340px) {
  .milestone-card {
    padding: 10px !important;
  }

  .milestone-card-body {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 8px;
  }

  .milestone-preview-frame {
    min-height: 0;
  }
}

/* v131 final precedence: older responsive patches must not restore the previous hierarchy. */
#networth-amount {
  font-size: clamp(32px, 8.8vw, 36px) !important;
  line-height: 1.08 !important;
}

.topbar-row2 {
  grid-template-columns: minmax(0, 1fr) auto !important;
}

#utility-btn {
  min-height: 44px !important;
  padding: 0 11px !important;
  border: 1px solid var(--ui-divider) !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #4e5968 !important;
}

#action-buttons {
  padding: 0 !important;
  background: transparent !important;
}

#action-buttons button,
#action-buttons button.action-primary {
  border: 1px solid var(--ui-divider) !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #4e5968 !important;
  box-shadow: none !important;
}

#work-btn:not(:disabled) {
  border-color: var(--brand-primary) !important;
  background: var(--brand-primary) !important;
  color: #fff !important;
}

.modal:not(#splash, #ranking-modal) > .modal-content,
#daily-modal .modal-content,
#offline-modal .modal-content,
#loss-cut-modal .modal-content,
#analyst-hire-modal .modal-content,
#work-tutorial-modal .modal-content,
#milestone-modal .modal-content,
#daytrade-modal .modal-content {
  width: min(100%, 480px) !important;
  max-width: 480px !important;
  max-height: calc(100dvh - max(12px, env(safe-area-inset-top))) !important;
  padding: var(
    --dialog-card-padding,
    28px 20px calc(20px + env(safe-area-inset-bottom))
  ) !important;
  overflow-x: hidden !important;
  overflow-y: var(--dialog-card-overflow-y, auto) !important;
  border: 0 !important;
  border-radius: 24px 24px 0 0 !important;
  background: #fff !important;
  box-shadow: none !important;
}

body:not([data-active-panel="milestones"]) #avatar-scene {
  display: none !important;
}

body[data-active-panel="milestones"] #avatar-scene {
  display: flex !important;
  margin: 16px 20px 0 !important;
}

@media (max-width: 380px) {
  #networth-amount {
    font-size: 30px !important;
  }
}

@media (min-width: 900px) and (max-width: 1279px) {
  #main-screen {
    padding-bottom: calc(80px + env(safe-area-inset-bottom)) !important;
    scroll-padding-bottom: calc(68px + env(safe-area-inset-bottom));
  }

  .stock-card {
    scroll-margin-bottom: calc(68px + env(safe-area-inset-bottom));
  }
}

/* Shared image geometry must remain the final rule in this late-loaded module. */
#asset-title .tier-ant-mark {
  display: grid !important;
  width: 38px !important;
  height: 38px !important;
  place-items: center !important;
  overflow: hidden !important;
}

#asset-title .tier-ant-img,
#topbar .tier-ant-img,
#topbar .tier-ant-mark[data-tier="8"] .tier-ant-img,
#topbar .tier-ant-mark[data-tier="9"] .tier-ant-img {
  width: 34px !important;
  height: 34px !important;
  object-position: center bottom !important;
  transform: none !important;
}

#help-modal .help-tier-ant-img,
#help-modal .help-tier-card[data-tier="6"] .help-tier-ant-img,
#help-modal .help-tier-card[data-tier="8"] .help-tier-ant-img {
  transform: translate(-5px, 1px) !important;
}

@media (min-width: 700px) and (max-height: 560px) {
  #help-modal .help-slide-evolve .help-tier-codex {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
  }

  #help-modal .help-slide-evolve .help-tier-card {
    width: 100% !important;
    height: auto !important;
  }

  #help-modal .help-slide-goal .help-tier-card.featured .help-tier-ant-img,
  #help-modal .help-slide-evolve .help-tier-ant-img {
    width: min(100%, 30px) !important;
    max-width: calc(100% - 8px) !important;
    height: 27px !important;
    transform: none !important;
  }
}

/* v132 release overrides intentionally remain last. */
#stock-list .stock-card:not(.is-expanded) .stock-ticker,
#stock-list .stock-card:not(.is-expanded) .div-badge-slot {
  display: none !important;
}

#stock-list .stock-card .stock-sector {
  display: none !important;
}

#stock-list .stock-expanded-meta {
  min-width: 0;
  padding: 9px 0 5px;
  overflow: hidden;
  color: #6b7684;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#stock-list .stock-card:not(.is-expanded) .stock-name-block {
  height: auto !important;
  min-height: 50px !important;
  gap: 2px !important;
  justify-content: center !important;
}

#stock-list .stock-card-head {
  grid-template-columns: 68px minmax(0, 1fr) minmax(86px, 106px) 16px !important;
}

#stock-list .stock-card .stock-logo {
  width: 68px !important;
  height: 50px !important;
  padding: 6px 4px !important;
}

#stock-list .stock-card .stock-logo span {
  display: grid !important;
  width: 100% !important;
  height: 100% !important;
  place-items: center !important;
  font-size: 9.2px !important;
  line-height: 1 !important;
  transform: translateY(-1px) scale(.96) !important;
}

#stock-list .stock-card[data-logo="LGENSOLU"] .stock-logo span,
#stock-list .stock-card[data-logo="CELTRIGON"] .stock-logo span {
  font-size: 8.8px !important;
}

#stock-list .stock-card .stock-price-block {
  grid-template-columns: 1fr !important;
  grid-template-rows: auto auto !important;
  grid-template-areas: "price" "change" !important;
  justify-items: end !important;
  row-gap: 2px !important;
}

#stock-list .stock-card:not(.is-expanded) .stock-sector {
  font-size: 11px !important;
  line-height: 1.25 !important;
}

.launch-loader-title,
#splash .splash-content h1.launch-surface-title {
  top: max(46px, calc(env(safe-area-inset-top) + 30px)) !important;
  width: min(calc(100% - 40px), 420px) !important;
}

.launch-title-text {
  color: #102a43 !important;
  font-size: clamp(40px, 12vw, 58px) !important;
  font-weight: 950 !important;
  line-height: 1.15 !important;
  text-shadow: 0 2px 0 rgba(255, 255, 255, .94), 0 5px 14px rgba(24, 76, 126, .2) !important;
}

.launch-title-text > span,
.launch-title-text > strong {
  line-height: 1.15 !important;
}

.launch-title-text strong {
  color: #1769e5 !important;
  font-size: 1.12em !important;
}

#topbar {
  box-sizing: border-box !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--ui-divider) !important;
  border-radius: 0 !important;
  background: #fff !important;
}

.topbar-row1 {
  box-sizing: border-box !important;
  width: 100% !important;
  min-height: 56px !important;
  margin: 0 !important;
  padding: 6px 20px !important;
  border: 0 !important;
  border-bottom: 1px solid #e8eef5 !important;
  border-radius: 0 !important;
  background: #f7faff !important;
  box-shadow: none !important;
}

.topbar-row1 #asset-title {
  width: auto !important;
  max-width: min(58vw, 230px) !important;
  min-height: 44px !important;
  gap: 7px !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#asset-title::after {
  display: none !important;
}

#asset-title .tier-ant-mark {
  width: 42px !important;
  height: 44px !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#asset-title .tier-ant-img,
#topbar .tier-ant-img,
#topbar .tier-ant-mark[data-tier="8"] .tier-ant-img,
#topbar .tier-ant-mark[data-tier="9"] .tier-ant-img {
  width: 40px !important;
  height: 40px !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
}

.topbar-row1 #ranking-btn,
.topbar-row1 #utility-btn {
  min-width: 48px !important;
  min-height: 44px !important;
  padding: 0 8px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #536579 !important;
  box-shadow: none !important;
}

.topbar-row2 {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 14px 20px 12px !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: end !important;
  gap: 16px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
}

.networth-block,
.cash-action-wrap,
.cash-chip {
  min-width: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#networth-amount {
  max-width: 100% !important;
  padding: 0 !important;
  margin-inline-start: -1px !important;
  font-size: clamp(31.5px, 8.8vw, 36px) !important;
  line-height: 1.05 !important;
  white-space: nowrap !important;
}

#milestone-progress-wrap {
  box-sizing: border-box !important;
  width: auto !important;
  margin: 0 20px 14px !important;
}

.stock-card {
  display: block !important;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.stock-card-head {
  display: grid !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-height: 72px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 12px !important;
  grid-template-columns: 46px minmax(0, 1fr) minmax(88px, auto) 16px !important;
  grid-template-rows: auto !important;
  grid-template-areas: "logo name price toggle" !important;
  align-items: center !important;
  gap: 10px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: left !important;
}

.stock-card .stock-logo {
  grid-area: logo !important;
  width: 44px !important;
  height: 44px !important;
  align-self: center !important;
}

.stock-card .stock-name-block {
  grid-area: name !important;
  min-width: 0 !important;
  height: auto !important;
}

.stock-card .stock-price-block {
  display: grid !important;
  grid-area: price !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  grid-template-columns: 1fr !important;
  justify-items: end !important;
  border: 0 !important;
}

.stock-card .stock-expand-indicator {
  grid-area: toggle !important;
  align-self: center !important;
  justify-self: center !important;
}

.stock-card-details {
  padding: 0 12px 12px !important;
  border-top: 1px solid #f0f2f4 !important;
}

.stock-card-details[hidden] {
  display: none !important;
}

@media (max-width: 380px) {
  .topbar-row1,
  .topbar-row2 {
    padding-inline: 16px !important;
  }

  #milestone-progress-wrap {
    margin-inline: 16px !important;
  }

  #networth-amount {
    font-size: 31.5px !important;
  }

  .stock-card-head {
    grid-template-columns: 42px minmax(0, 1fr) minmax(78px, auto) 14px !important;
    gap: 8px !important;
    padding: 10px !important;
  }

  .stock-card .stock-logo {
    width: 40px !important;
    height: 40px !important;
  }
}

@media (orientation: landscape) {
  .launch-loader-title,
  #splash .splash-content h1.launch-surface-title {
    top: max(12px, calc(env(safe-area-inset-top) + 8px)) !important;
    width: min(calc(100% - 32px), calc(66.667dvh - 8px), 300px) !important;
  }

  .launch-title-text {
    font-size: clamp(28px, 8.5dvh, 48px) !important;
  }
}

@media (orientation: landscape) and (min-height: 600px) {
  .launch-loader-title,
  #splash .splash-content h1.launch-surface-title {
    top: max(40px, calc(env(safe-area-inset-top) + 28px)) !important;
    width: 420px !important;
  }
}

@media (min-width: 900px) {
  .launch-title-text {
    font-size: 62px !important;
  }
}
