@font-face { font-family: "BVP"; src: url("shared/fonts/be-vietnam-pro-vietnamese-400-normal.woff2") format("woff2"); font-weight: 400; unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; font-display: swap; }
@font-face { font-family: "BVP"; src: url("shared/fonts/be-vietnam-pro-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "BVP"; src: url("shared/fonts/be-vietnam-pro-vietnamese-600-normal.woff2") format("woff2"); font-weight: 600; unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; font-display: swap; }
@font-face { font-family: "BVP"; src: url("shared/fonts/be-vietnam-pro-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "BVP"; src: url("shared/fonts/be-vietnam-pro-vietnamese-800-normal.woff2") format("woff2"); font-weight: 800; unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; font-display: swap; }
@font-face { font-family: "BVP"; src: url("shared/fonts/be-vietnam-pro-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root { --bg: #f4f2f7; --card: #fff; --ink: #222330; --soft: #7c7d8c; --line: #e8e6ef; --acc: #ff8a4c; --acc2: #6c63ff; --good: #2fa36b; --bad: #e0533d; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { font: 400 14px/1.45 "BVP", system-ui, sans-serif; color: var(--ink); background: #1b1d2a; background-image: radial-gradient(circle at 20% 10%, #2c2f48, transparent 50%), radial-gradient(circle at 80% 90%, #3a2a3e, transparent 50%); -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
input { font: inherit; }

.desk { min-height: 100%; display: grid; place-items: center; padding: 18px 12px; gap: 8px; }
.phone { position: relative; width: 390px; height: min(820px, calc(100vh - 60px)); border-radius: 44px; background: var(--bg); overflow: hidden; box-shadow: 0 0 0 10px #0d0e15, 0 0 0 12px #34364a, 0 30px 80px rgba(0, 0, 0, 0.5); display: flex; flex-direction: column; }
.foot { margin: 6px 0 0; color: rgba(255, 255, 255, 0.45); font-size: 11px; text-align: center; }
@media (max-width: 480px) {
  .desk { padding: 0; display: block; }
  .phone { width: 100%; height: 100dvh; border-radius: 0; box-shadow: none; }
  .foot { display: none; }
}

.sbar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: max(12px, env(safe-area-inset-top)) 22px 6px; font-weight: 600; font-size: 13px; background: var(--bg); z-index: 3; }
.sb-mid { font-size: 12px; color: var(--soft); font-weight: 600; }
.sb-r { display: flex; align-items: center; gap: 8px; }
.sb-r button { border: 0; background: none; padding: 0; font-size: 15px; color: var(--soft); }
.bat { width: 24px; height: 12px; border: 1.5px solid currentColor; border-radius: 3px; padding: 1px; position: relative; }
.bat::after { content: ""; position: absolute; right: -4px; top: 3px; width: 2px; height: 4px; background: currentColor; border-radius: 0 1px 1px 0; }
.bat b { display: block; height: 100%; width: 60%; background: var(--good); border-radius: 1px; }
.bat.low b { background: var(--bad); }

.screen { flex: 1; overflow-y: auto; padding: 6px 16px 18px; -webkit-overflow-scrolling: touch; }
.dock { flex: none; display: grid; grid-template-columns: repeat(6, 1fr); padding: 6px 4px max(10px, env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.92); border-top: 1px solid var(--line); }
.dock button { position: relative; border: 0; background: none; display: grid; justify-items: center; gap: 1px; padding: 4px 0; color: var(--soft); font-size: 10.5px; font-weight: 600; }
.dock i { display: grid; place-items: center; width: 26px; height: 24px; }
.dock i .ic { width: 22px; height: 22px; }
.dock button.on { color: var(--acc2); }
.dock button.on i .ic { stroke-width: 2.2; }
.badge { position: absolute; top: 0; right: calc(50% - 20px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 10px; line-height: 17px; }
.dock.locked { pointer-events: none; opacity: 0.4; }

h3.sec { margin: 16px 2px 8px; font-size: 12px; font-weight: 600; color: var(--soft); text-transform: uppercase; letter-spacing: 0.04em; }
.card { background: var(--card); border-radius: 18px; padding: 14px; box-shadow: 0 1px 0 var(--line); margin-bottom: 10px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.muted { color: var(--soft); font-size: 12px; }
.pos { color: var(--good); } .neg { color: var(--bad); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: 14px; border: 0; background: var(--ink); color: #fff; font-weight: 600; }
.btn:disabled { opacity: 0.35; cursor: default; }
.btn.small { min-height: 32px; padding: 0 12px; border-radius: 10px; font-size: 12.5px; }
.btn.ghost { background: #efedf5; color: var(--ink); }
.btn.acc { background: var(--acc); }
.btn.wide { width: 100%; }

/* home */
.hero { background: linear-gradient(140deg, #2b2d42, #4b3f72 60%, #ff8a4c 140%); color: #fff; border-radius: 22px; padding: 16px; margin-bottom: 10px; }
.hero .muted { color: rgba(255, 255, 255, 0.7); }
.hero .money { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; margin: 2px 0 0; }
.hero .nw { font-size: 12px; color: rgba(255, 255, 255, 0.75); }
.bars { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.bar { font-size: 11px; color: rgba(255, 255, 255, 0.8); }
.bar i { display: block; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.2); margin-top: 3px; overflow: hidden; }
.bar i b { display: block; height: 100%; border-radius: 3px; background: #7cf0b0; }
.bar.mood i b { background: #ffd36b; }
.goal li { list-style: none; display: flex; gap: 8px; align-items: flex-start; padding: 3px 0; font-size: 13px; }
.goal ul { margin: 6px 0 0; padding: 0; }
.goal .ck { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font-size: 11px; }
.goal .done .ck { background: var(--good); border-color: var(--good); color: #fff; }
.goal .done span { color: var(--soft); text-decoration: line-through; }
.chip { display: inline-block; padding: 2px 8px; border-radius: 99px; background: #efedf5; font-size: 11px; font-weight: 600; color: var(--soft); }
.chip.acc { background: #fff0e6; color: #c25a1d; }
.plan .pl { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line); }
.plan .pl:first-of-type { border-top: 0; }
.plan .pl b { font-weight: 600; font-size: 13px; }
.step { display: inline-flex; align-items: center; gap: 2px; background: #efedf5; border-radius: 10px; }
.step button { width: 32px; height: 32px; border: 0; background: none; font-size: 17px; font-weight: 600; }
.step button:disabled { opacity: 0.3; }
.step span { min-width: 20px; text-align: center; font-weight: 600; }
.slots { display: flex; gap: 3px; margin: 8px 0 2px; }
.slots i { flex: 1; height: 8px; border-radius: 3px; background: #e4e2ec; }
.slots i.job { background: #8b8fa8; } .slots i.study { background: var(--acc2); } .slots i.gig { background: var(--acc); } .slots i.fr { background: #ff6fa3; } .slots i.rest { background: #7cd6a8; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 10.5px; color: var(--soft); }
.legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; background: var(--c); }
.next { position: sticky; bottom: 0; padding-top: 8px; background: linear-gradient(transparent, var(--bg) 30%); }
.shop { display: grid; gap: 6px; }

/* chat */
.threads .th { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--line); background: none; border-left: 0; border-right: 0; border-top: 0; width: 100%; text-align: left; }
.av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; background: var(--c, #ddd); }
.th b { display: block; font-weight: 600; }
.th small { display: block; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.th .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--bad); }
.convo { display: flex; flex-direction: column; gap: 6px; padding-bottom: 8px; }
.convo-head { display: flex; align-items: center; gap: 10px; position: sticky; top: -6px; background: var(--bg); padding: 6px 0 8px; z-index: 1; }
.convo-head button { border: 0; background: none; font-size: 22px; padding: 0 6px 0 0; }
.when-sep { align-self: center; font-size: 10.5px; color: var(--soft); margin: 6px 0 2px; }
.bub { max-width: 80%; padding: 8px 12px; border-radius: 18px; background: #fff; box-shadow: 0 1px 0 var(--line); white-space: pre-wrap; animation: pop 0.25s ease-out; }
.bub.me { align-self: flex-end; background: var(--acc2); color: #fff; }
.replies { display: grid; gap: 6px; margin-top: 6px; }
.replies button { text-align: left; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--acc2); background: #fff; color: var(--acc2); font-weight: 600; }
.replies button:disabled { border-color: var(--line); color: var(--soft); }
.replies small { display: block; font-weight: 400; font-size: 11px; color: var(--soft); }

/* lists */
.item h4 { margin: 0; font-size: 14px; font-weight: 600; }
.item p { margin: 3px 0 0; font-size: 12.5px; color: var(--soft); }
.reqs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.req { font-size: 11px; padding: 1px 7px; border-radius: 99px; background: #fdeceb; color: var(--bad); font-weight: 600; }
.req.ok { background: #e6f6ee; color: var(--good); }
.money-tag { font-weight: 800; font-size: 15px; }
.prog { height: 6px; border-radius: 3px; background: #efedf5; overflow: hidden; margin-top: 8px; }
.prog b { display: block; height: 100%; background: var(--acc2); }
.skills { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sk { background: #fff; border-radius: 14px; padding: 10px; }
.sk b { font-size: 18px; font-weight: 800; }
.sk .prog b { background: var(--acc); }

/* invest */
.asset { display: grid; grid-template-columns: 1fr 96px; gap: 8px; align-items: center; }
.asset svg { width: 96px; height: 40px; }
.trade { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.sheet-amt { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.sheet-amt button { padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 12.5px; }
.sheet-amt button.on { border-color: var(--acc2); color: var(--acc2); background: #f0efff; }

/* scene */
.scene { position: absolute; inset: 0; z-index: 10; display: flex; flex-direction: column; background: #12131c; color: #fff; animation: fade 0.4s ease-out; }
.art { position: relative; flex: 0 0 38%; display: grid; place-items: center; overflow: hidden; background: linear-gradient(#ffb86b, #ff6f61 50%, #3d2c5e); }
.art span { font-size: 84px; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.35)); animation: float 4s ease-in-out infinite; z-index: 1; }
.art::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34%; background: repeating-linear-gradient(90deg, #1c1a2c 0 22px, #241f38 22px 30px, #191726 30px 58px, #2a2340 58px 64px); clip-path: polygon(0 40%, 6% 40%, 6% 10%, 14% 10%, 14% 50%, 22% 50%, 22% 0, 30% 0, 30% 35%, 40% 35%, 40% 20%, 48% 20%, 48% 55%, 58% 55%, 58% 15%, 66% 15%, 66% 45%, 76% 45%, 76% 5%, 84% 5%, 84% 40%, 92% 40%, 92% 25%, 100% 25%, 100% 100%, 0 100%); }
.art.dawn { background: linear-gradient(#2a2650, #ff9e6b 55%, #ffd29a); }
.art.room { background: radial-gradient(circle at 50% 40%, #ffcf8a, #b0603a 55%, #2b1d22); }
.art.room::after, .art.cafe::after, .art.call::after, .art.chapter::after, .art.rain::after { display: none; }
.art.cafe { background: linear-gradient(160deg, #f3d6b0, #c98a5a 60%, #6b4430); }
.art.night { background: linear-gradient(#0d1030, #2a2a6b 60%, #5b3d7a); }
.art.call { background: radial-gradient(circle at 50% 45%, #4bd18a, #1c6b52 60%, #0d2a22); }
.art.rain { background: linear-gradient(#3b4a5c, #6a7d90); }
.art.rain::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(105deg, transparent 0 14px, rgba(255, 255, 255, 0.18) 14px 15px); animation: rain 0.5s linear infinite; }
.art.chapter { background: radial-gradient(circle at 50% 50%, #6c63ff, #22204a 70%); }
.sc-body { flex: 1; overflow-y: auto; padding: 18px 20px max(20px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; }
.sc-tag { margin: 0; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #ffb86b; font-weight: 600; }
.scene h2 { margin: 4px 0 10px; font-size: 22px; font-weight: 800; line-height: 1.25; }
.sc-text p { margin: 0 0 10px; color: rgba(255, 255, 255, 0.86); font-size: 15px; line-height: 1.6; }
.sc-text p.say { color: #fff; padding: 8px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.08); border-left: 3px solid #ffb86b; }
.sc-acts { display: grid; gap: 8px; margin-top: auto; padding-top: 10px; }
.sc-acts button { text-align: left; padding: 13px 14px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.07); color: #fff; font-weight: 600; }
.sc-acts button:active { background: rgba(255, 255, 255, 0.16); }
.sc-acts button small { display: block; font-weight: 400; color: rgba(255, 255, 255, 0.6); font-size: 11.5px; margin-top: 2px; }
.sc-acts input { padding: 13px 14px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.08); color: #fff; outline: none; font-size: 16px; }
.sc-acts .btn { background: #ffb86b; color: #2a1d12; }
.typing::after { content: "▍"; animation: blink 0.8s steps(1) infinite; color: #ffb86b; }

/* month report */
.report { position: absolute; inset: 0; z-index: 9; display: grid; place-items: center; padding: 20px; background: rgba(20, 20, 32, 0.55); backdrop-filter: blur(4px); animation: fade 0.25s; }
.rp-card { width: 100%; max-height: 100%; overflow-y: auto; background: #fffdf8; border-radius: 6px; padding: 18px 18px 16px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35); font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; animation: rise 0.4s cubic-bezier(0.3, 1.4, 0.5, 1); -webkit-mask: radial-gradient(circle at 8px 100%, transparent 6px, #000 6.5px) -8px 100% / 16px 100% repeat-x; }
.rp-tag { margin: 0; text-align: center; font-size: 11px; color: var(--soft); letter-spacing: 0.1em; }
.rp-card h2 { margin: 2px 0 10px; text-align: center; font-size: 18px; font-family: "BVP", system-ui, sans-serif; font-weight: 800; }
.rp-lines { list-style: none; margin: 0; padding: 0; border-top: 1px dashed #cfcbd6; }
.rp-lines li { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; font-size: 12.5px; border-bottom: 1px dashed #ebe7ef; opacity: 0; animation: line 0.25s forwards; }
.rp-lines li.total { font-weight: 800; font-size: 14px; border-bottom: 0; padding-top: 8px; }
.rp-stats { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 12px 0; font-family: "BVP", system-ui, sans-serif; }
.rp-stats span { font-size: 11.5px; padding: 2px 8px; border-radius: 99px; background: #efedf5; font-weight: 600; }
.rp-card .btn { width: 100%; font-family: "BVP", system-ui, sans-serif; }

.toast { position: absolute; left: 50%; top: 52px; transform: translate(-50%, -20px); z-index: 20; max-width: 88%; padding: 9px 14px; border-radius: 14px; background: rgba(30, 30, 46, 0.94); color: #fff; font-size: 13px; font-weight: 600; opacity: 0; pointer-events: none; transition: 0.25s; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.modal { position: absolute; inset: 0; z-index: 8; display: flex; align-items: flex-end; background: rgba(20, 20, 32, 0.45); animation: fade 0.2s; }
.modal .sheet { width: 100%; background: var(--bg); border-radius: 22px 22px 0 0; padding: 16px 16px max(18px, env(safe-area-inset-bottom)); animation: up 0.25s ease-out; max-height: 85%; overflow-y: auto; }
.modal h3 { margin: 0 0 4px; font-size: 17px; }

@keyframes pop { from { transform: scale(0.92); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(40px) scale(0.96); opacity: 0; } }
@keyframes up { from { transform: translateY(100%); } }
@keyframes line { to { opacity: 1; } }
@keyframes float { 50% { transform: translateY(-8px); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes rain { to { background-position: 30px 60px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .rp-lines li { opacity: 1; } }

/* drawn pictures and icons */
.ic { width: 18px; height: 18px; vertical-align: -3.5px; flex: none; }
.pl b .ic, .row b .ic { color: var(--acc2); margin-right: 2px; }
.sb-r button .ic { width: 17px; height: 17px; }
.av { overflow: hidden; background: none; }
.av svg { width: 100%; height: 100%; display: block; }
.convo-head .av { width: 36px; height: 36px; }
.convo-head button .ic { width: 22px; height: 22px; }
.aname { display: flex; align-items: center; gap: 8px; }
.aic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c); }
.aic .ic { width: 18px; height: 18px; }
.cert { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.cert .ic { color: #d49a1a; }
.art { background: #12131c; }
.art::after, .art::before { display: none !important; }
.art svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.art::selection { background: none; }
.scene .art { box-shadow: inset 0 -40px 40px -20px #12131c; }
.twinkle { animation: twinkle 3s ease-in-out infinite; }
.pulse { animation: pulseo 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.rainfall { animation: fall 0.45s linear infinite; }
.ripple { animation: ripple 1.6s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.ripple.d2 { animation-delay: 0.8s; }
.steam path { animation: steam 2.6s ease-in-out infinite; }
.steam path:last-child { animation-delay: 1.2s; }
.burst { animation: burst 2.4s ease-out infinite; transform-box: fill-box; transform-origin: center; opacity: 0; }
.burst.b1 { animation-delay: 0.8s; } .burst.b2 { animation-delay: 1.6s; }
@keyframes twinkle { 50% { opacity: 0.55; } }
@keyframes pulseo { 50% { opacity: 0.75; transform: scale(1.06); } }
@keyframes fall { from { transform: translate(0, -18px); } to { transform: translate(-4px, 18px); } }
@keyframes ripple { from { transform: scale(0.3); opacity: 0.9; } to { transform: scale(1.4); opacity: 0; } }
@keyframes steam { 0% { opacity: 0; transform: translateY(4px); } 40% { opacity: 0.8; } 100% { opacity: 0; transform: translateY(-10px); } }
@keyframes burst { 0% { opacity: 0; transform: scale(0.2); } 15% { opacity: 1; } 60% { opacity: 0.9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.15); } }

.seg-mini { display: flex; gap: 3px; background: #efedf5; border-radius: 10px; padding: 3px; }
.seg-mini button { border: 0; background: none; padding: 5px 7px; border-radius: 8px; font-size: 11px; font-weight: 600; color: var(--soft); }
.seg-mini button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.plan .pl:has(.seg-mini) { grid-template-columns: 1fr; }
.fly { animation: fly 6s ease-in-out infinite; }
.wave { animation: wave 1.2s ease-in-out infinite; transform-box: fill-box; transform-origin: 0 100%; }
@keyframes fly { 0% { transform: translate(-60px, 40px) rotate(-14deg); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(120px, -40px) rotate(-14deg); opacity: 0; } }
@keyframes wave { 50% { transform: rotate(-18deg); } }

.sb-r .acct-btn { width: 22px; height: 22px; border-radius: 50%; background: var(--acc2); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }

/* career page */
.career h4 { margin: 0; font-size: 17px; font-weight: 800; }
.career p.muted { margin: 2px 0 0; }
.gauge { position: relative; flex: none; width: 96px; text-align: center; }
.gauge svg { width: 96px; height: 54px; display: block; }
.gauge b { position: absolute; left: 0; right: 0; top: 26px; font-size: 20px; font-weight: 800; }
.gauge small { display: block; margin-top: 2px; font-size: 10.5px; color: var(--soft); font-weight: 600; }
.kv { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13px; }
.kv span { color: var(--soft); }
.kv b { font-weight: 600; text-align: right; }
.nextup { margin: 10px 0 4px; font-size: 13px; }
.ladder { margin-top: 12px; display: grid; gap: 0; position: relative; }
.rung { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: center; padding: 6px 0; position: relative; }
.rung:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: 30px; bottom: -6px; width: 2px; background: var(--line); }
.rung i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 800; background: #efedf5; color: var(--soft); z-index: 1; }
.rung b { display: block; font-size: 13px; font-weight: 600; }
.rung small { font-size: 11px; color: var(--soft); }
.rung.done i { background: var(--good); color: #fff; }
.rung.done::after { background: var(--good) !important; }
.rung.cur i { background: var(--acc2); color: #fff; box-shadow: 0 0 0 4px #e6e3ff; }
.rung.cur b { color: var(--acc2); }
.rung.lock { opacity: 0.55; }
.toss { animation: toss 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.toss.t1 { animation-delay: 0.6s; } .toss.t2 { animation-delay: 1.2s; }
.tick { animation: tickr 6s linear infinite; transform-origin: 0 0; transform-box: view-box; }
@keyframes toss { 50% { transform: translateY(-14px) rotate(25deg); } }
@keyframes tickr { to { transform: rotate(360deg); } }

/* university */
.uni h4 { margin: 0; font-size: 17px; font-weight: 800; }
.gpa { flex: none; width: 70px; height: 70px; border-radius: 50%; background: #f0efff; display: grid; place-content: center; text-align: center; }
.gpa b { font-size: 20px; font-weight: 800; color: var(--acc2); line-height: 1; }
.gpa small { font-size: 10px; color: var(--soft); }
.majors { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0 4px; }

/* market news, shop */
.news p { margin: 8px 0 0; font-size: 13px; line-height: 1.4; }
.news small { display: block; font-size: 10.5px; color: var(--soft); }
.chip.up { background: #e3f6ea; color: var(--good); }
.chip.down { background: #fdeceb; color: var(--bad); }
.link-btn { border: 0; background: none; color: var(--acc2); font-weight: 600; font-size: 12px; padding: 0 0 0 6px; }
.shopi .row > div:first-child { min-width: 0; }
.dock button span { font-size: 9.5px; }

/* shop pictures, family, charts */
.shopi .row { align-items: center; }
.shopi .ia { flex: none; width: 52px; height: 52px; display: block; }
.shopi .ia svg { width: 52px; height: 52px; display: block; }
.shopi .grow { flex: 1; min-width: 0; }
.family .kv span { display: flex; align-items: center; gap: 8px; }
.fav { display: inline-block; width: 28px; height: 28px; border-radius: 50%; overflow: hidden; }
.fav svg { width: 28px; height: 28px; display: block; }
.asset svg.spark { width: 110px; height: 46px; }
.asset { grid-template-columns: 1fr 110px; }

/* 3D pictures */
.fx3d { width: 100%; height: 100%; object-fit: contain; display: block; }
.av { background: linear-gradient(160deg, #fff, #efedf5); padding: 3px; }
.av .fx3d { filter: drop-shadow(0 2px 3px rgba(40, 30, 60, 0.18)); }
.shopi .ia { background: linear-gradient(160deg, #fff 0%, #f1eff8 100%); border-radius: 16px; padding: 6px; box-shadow: inset 0 0 0 1px rgba(40, 30, 60, 0.05); }
.shopi .ia .fx3d, .ia .fx3d { filter: drop-shadow(0 4px 6px rgba(40, 30, 60, 0.18)); }
.ia.sm { flex: none; width: 42px; height: 42px; display: block; margin-right: 10px; }
.ia.xs { flex: none; width: 26px; height: 26px; display: inline-block; }
.aic3 { flex: none; width: 34px; height: 34px; display: grid; place-items: center; }
.aic3 .fx3d { filter: drop-shadow(0 3px 4px rgba(40, 30, 60, 0.2)); }
.fav { background: #fff; padding: 2px; }
.cert { gap: 6px; }
.grow { flex: 1; min-width: 0; }
.shop .row { justify-content: flex-start; }
.shop .row > .btn, .shop .row > .chip { margin-left: auto; }
