/* Life Simulator */
.ls-setup { display: grid; gap: 14px; }
.ls-create { display: grid; grid-template-columns: 200px 1fr; gap: 16px; align-items: start; }
.ls-prev { background: linear-gradient(180deg, #bae6fd, #e0f2fe); border-radius: 16px; padding: 8px; }
.ls-avatar { display: block; width: 100%; height: auto; }
.ls-opts { display: grid; gap: 8px; }
.ls-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ls-row > span, .ls-name { font-weight: 800; font-size: 14px; min-width: 70px; }
.ls-name { display: flex; gap: 6px; align-items: center; }
.ls-name input { font: inherit; font-weight: 700; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--color-border, #2d3240); background: var(--color-bg-alt, #1c1f27); color: inherit; width: 150px; }
.ls-sw { width: 30px; height: 30px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25) inset; }
.ls-sw.is-on { border-color: #facc15; }
.ls-chip { border-radius: 999px; padding: 6px 12px; border: 2px solid var(--color-border, #2d3240); background: var(--color-bg-alt, #1c1f27); color: inherit; font-weight: 800; cursor: pointer; }
.ls-chip.is-on { border-color: #facc15; background: rgba(250, 204, 21, .15); }
.ls-go { justify-self: start; font-size: 17px; }
.ls-achs h3 { margin: 0 0 8px; font-size: 17px; } .ls-achs small { font-weight: 600; opacity: .8; font-size: 13px; }
.ls-agrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.ls-agrid span { display: grid; justify-items: center; gap: 2px; padding: 6px 4px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid var(--color-border, #2d3240); font-size: 22px; filter: grayscale(1); opacity: .45; text-align: center; }
.ls-agrid span small { font-size: 10.5px; font-weight: 700; }
.ls-agrid span.is-got { filter: none; opacity: 1; border-color: rgba(250, 204, 21, .6); }
.ls-wrap { display: grid; grid-template-columns: 230px 1fr; gap: 12px; position: relative; }
.ls-card { background: var(--color-bg-alt, #1c1f27); border: 1px solid var(--color-border, #2d3240); border-radius: 14px; padding: 10px 12px; }
.ls-card h4 { margin: 0 0 6px; font-size: 15px; } .ls-card h4 small { font-weight: 600; opacity: .75; font-size: 12px; }
.ls-left { display: grid; gap: 10px; align-content: start; }
.ls-me { text-align: center; background: linear-gradient(180deg, rgba(56, 189, 248, .18), transparent); }
.ls-me .ls-avatar { width: 150px; margin: 0 auto; }
.ls-me h3 { margin: 2px 0; font-size: 20px; } .ls-me p { margin: 3px 0; font-size: 13.5px; font-weight: 700; }
.ls-money { font-size: 16px !important; color: #86efac; }
.ls-me small { font-size: 11.5px; font-weight: 700; color: #94a3b8; }
.ls-bar { display: grid; grid-template-columns: auto 1fr 26px; gap: 6px; align-items: center; font-size: 12.5px; font-weight: 800; margin: 4px 0; }
.ls-bar i { display: block; height: 9px; border-radius: 5px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.ls-bar u { display: block; height: 100%; background: linear-gradient(90deg, #22d3ee, #4ade80); transition: width .3s; }
.ls-bar b { text-align: right; }
.ls-bar span { white-space: nowrap; min-width: 98px; }
.ls-right { display: grid; gap: 10px; align-content: start; }
.ls-event { border-color: rgba(250, 204, 21, .55); background: linear-gradient(180deg, rgba(250, 204, 21, .1), var(--color-bg-alt, #1c1f27)); }
.ls-event p { margin: 0 0 8px; font-size: 16px; font-weight: 700; }
.ls-event.is-done { border-color: var(--color-border, #2d3240); background: var(--color-bg-alt, #1c1f27); opacity: .8; }
.ls-choices { display: flex; flex-wrap: wrap; gap: 6px; }
.ls-choices .btn { white-space: normal; text-align: left; }
.ls-acts { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 6px; }
.ls-acts button { display: grid; justify-items: center; gap: 2px; padding: 7px 4px; border-radius: 10px; border: 2px solid var(--color-border, #2d3240); background: rgba(255, 255, 255, .03); color: inherit; font-size: 22px; cursor: pointer; }
.ls-acts button small { font-size: 11.5px; font-weight: 800; }
.ls-acts button:hover:not(:disabled) { border-color: #facc15; }
.ls-acts button:disabled { opacity: .35; cursor: default; }
.ls-homes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ls-ageup { font-size: 18px; padding: 12px; }
.ls-log p { margin: 3px 0; font-size: 13px; line-height: 1.4; }
.ls-log .ls-yr { color: #fde047; }
.ls-fx { opacity: .8; font-size: 12px; white-space: nowrap; }
.ls-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: rgba(8, 16, 28, .95); color: #fff; padding: 10px 16px; border-radius: 12px; font-weight: 800; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50; }
.ls-toast.is-on { opacity: 1; transform: translateX(-50%); }
.ls-end { display: flex; justify-content: center; }
.ls-endcard { max-width: 520px; text-align: center; background: var(--color-bg-alt, #1c1f27); border: 2px solid rgba(250, 204, 21, .5); border-radius: 18px; padding: 16px 20px; }
.ls-endcard .ls-avatar { width: 150px; margin: 0 auto; }
.ls-endcard ul { text-align: left; display: inline-block; margin: 6px 0; padding-left: 18px; }
.ls-endstats { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; font-size: 13px; }
.ls-endstats span { background: rgba(255, 255, 255, .05); border-radius: 999px; padding: 4px 10px; }
.ls-score { font-size: 18px; } .ls-btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 640px) {
  .ls-create { grid-template-columns: 1fr; } .ls-prev { max-width: 170px; margin: 0 auto; }
  .ls-wrap { grid-template-columns: 1fr; }
  .ls-me { display: grid; grid-template-columns: 90px 1fr; text-align: left; align-items: center; column-gap: 10px; }
  .ls-me .ls-avatar { width: 90px; grid-row: span 5; }
}
