/* Legacy — the home scene (homescene.js), the legacy vote (votes.js), world records (records.js), the life replay (replay.js) */

/* ---------- your home on the Life tab ---------- */
.hs-card { padding: 0 !important; overflow: hidden; }
.hs-frame { position: relative; aspect-ratio: 360 / 190; border-radius: inherit; overflow: hidden; background: #5fb3ff; }
.hs-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hs-label { position: absolute; left: 10px; top: 10px; padding: 6px 12px 6px 10px; border-radius: 14px; background: rgb(0 0 0 / .38); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 2px 10px rgb(0 0 0 / .2); max-width: 70%; }
.hs-label b { display: block; font-size: .82rem; line-height: 1.2; } .hs-label small { font-size: .68rem; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.hs-friend { margin: 12px 0 4px; border-radius: 16px; overflow: hidden; position: relative; aspect-ratio: 360 / 190; }
.hs-friend .hs-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hs-friend small { position: absolute; left: 8px; top: 8px; padding: 4px 10px; border-radius: 10px; background: rgb(0 0 0 / .4); color: #fff; font-weight: 700; font-size: .7rem; }

/* ---------- the legacy vote on the death screen ---------- */
.vt { margin: 12px 0 4px; cursor: pointer; }
.vt-skip { margin: -4px 0 8px; text-align: center; font-size: .68rem; opacity: .6; }
.vt.now .vt-skip { display: none; }
.vt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 6px; }
.vt-ballot { display: grid; justify-items: center; gap: 2px; padding: 8px 4px; border-radius: 12px; background: rgb(127 127 127 / .1); text-align: center; min-width: 0;
  opacity: 0; transform: translateY(14px) rotateX(70deg); animation: vtIn .5s var(--d) cubic-bezier(.2, 1.4, .3, 1) forwards; }
.vt.now .vt-ballot, .vt.now .vt-verdict { animation-delay: 0s !important; animation-duration: .2s; }
.vt-ballot .av { width: 34px; height: 34px; font-size: 18px; }
.vt-crowd { display: grid; place-items: center; border-radius: 50%; background: rgb(127 127 127 / .2); }
.vt-ballot b { font-size: .7rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .vt-ballot small { font-size: .6rem; opacity: .65; }
.vt-ballot em { font-style: normal; font-weight: 800; font-size: .66rem; padding: 1px 7px; border-radius: 99px; margin-top: 2px; }
.vt-ballot.vt-hero em { background: #fef3c7; color: #92400e; } .vt-ballot.vt-villain em { background: #fee2e2; color: #991b1b; } .vt-ballot.vt-forgotten em { background: #e5e7eb; color: #4b5563; }
@keyframes vtIn { to { opacity: 1; transform: none; } }
.vt-verdict { display: flex; align-items: center; gap: 14px; margin-top: 10px; padding: 14px 16px; border-radius: 16px; color: #fff; opacity: 0; transform: scale(.7); animation: vtVerdict .8s var(--d) cubic-bezier(.2, 1.6, .3, 1) forwards; position: relative; overflow: hidden; }
.vt-verdict::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / .45) 50%, transparent 65%); background-size: 260% 100%; animation: vtShine 3s calc(var(--d) + .6s) ease-in-out infinite; }
.vt-verdict.vt-hero { background: linear-gradient(135deg, #f59e0b, #fde68a 60%, #fbbf24); color: #3a2400; box-shadow: 0 0 28px rgb(251 191 36 / .55); }
.vt-verdict.vt-villain { background: linear-gradient(135deg, #3b0a14, #991b1b 60%, #450a0a); box-shadow: 0 0 28px rgb(220 38 38 / .5); }
.vt-verdict.vt-forgotten { background: linear-gradient(135deg, #4b5563, #9ca3af 60%, #6b7280); }
.vt-ic { font-size: 40px; line-height: 1; filter: drop-shadow(0 2px 6px rgb(0 0 0 / .3)); }
.vt-verdict small { display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; opacity: .85; } .vt-verdict b { display: block; font: 900 1.5rem/1.15 Georgia, serif; text-transform: capitalize; } .vt-verdict em { font-style: normal; font-size: .72rem; opacity: .85; }
@keyframes vtVerdict { to { opacity: 1; transform: none; } }
@keyframes vtShine { 0%, 60% { background-position: 130% 0; } 100% { background-position: -130% 0; } }
.vt-badge { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: .65rem; font-weight: 800; }
.rp-open { width: 100%; margin: 10px 0 2px; }

/* ---------- world records ---------- */
.rc-list { display: grid; gap: 8px; margin-top: 8px; }
.rc-row { display: grid; grid-template-columns: 42px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: rgb(127 127 127 / .1); }
.rc-row.mine { background: linear-gradient(135deg, rgb(255 216 74 / .22), rgb(255 150 60 / .12)); box-shadow: inset 0 0 0 1.5px rgb(255 200 60 / .7); }
.rc-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: rgb(127 127 127 / .18); }
.rc-txt b { display: block; font-size: .88rem; } .rc-txt small { display: block; font-size: .7rem; opacity: .75; } .rc-txt .rc-my { opacity: .55; }
.rc-v { font-weight: 900; font-size: .9rem; text-align: right; max-width: 120px; overflow-wrap: anywhere; }

/* ---------- the life replay ---------- */
.rp { position: fixed; inset: 0; z-index: 10001; background: #000; display: grid; place-items: center; animation: rpIn .4s ease-out both; }
.rp.out { animation: rpOut .35s ease-in forwards; }
@keyframes rpIn { from { opacity: 0; } } @keyframes rpOut { to { opacity: 0; } }
/* the replay is a 9:16 video: it always fits the window whole (on a wide PC screen it was stretched to the width and cropped, "way too zoomed in") */
.rp { background: radial-gradient(circle at 50% 40%, #1b2440, #000 75%); }
.rp canvas { width: min(100vw, calc(100vh * 9 / 16)); width: min(100vw, calc(100dvh * 9 / 16)); height: auto; aspect-ratio: 9 / 16; max-height: 100dvh; object-fit: contain; display: block; border-radius: clamp(0px, calc((100vw - 100vh * 9 / 16) * 1000), 18px); box-shadow: 0 30px 80px rgb(0 0 0 / .6); }
.rp-bar { position: absolute; left: 16px; right: 16px; top: calc(14px + env(safe-area-inset-top)); height: 3px; border-radius: 3px; background: rgb(255 255 255 / .2); overflow: hidden; }
.rp-bar i { display: block; height: 100%; width: 0; background: #fff; }
.rp-skip { position: absolute; right: 14px; top: calc(28px + env(safe-area-inset-top)); padding: 8px 14px; border: 0; border-radius: 99px; background: rgb(255 255 255 / .16); color: #fff; font: 800 13px var(--f-body, sans-serif); cursor: pointer; backdrop-filter: blur(6px); }
.rp.ended .rp-skip { display: none; }
.rp-end { position: absolute; left: 50%; right: auto; width: min(calc(100vw - 32px), 420px); translate: -50% 0; bottom: calc(24px + env(safe-area-inset-bottom)); display: none; padding: 16px; border-radius: 20px; background: rgb(15 10 30 / .82); color: #fff; backdrop-filter: blur(10px); text-align: center; animation: rpUp .5s cubic-bezier(.2, 1.3, .3, 1) both; }
.rp.ended .rp-end { display: block; }
.rp-end b { display: block; margin-bottom: 10px; } .rp-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rp-auto { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 10px; font-size: .75rem; opacity: .8; }
@keyframes rpUp { from { opacity: 0; transform: translateY(30px); } }
@media (prefers-reduced-motion: reduce) { .vt-ballot, .vt-verdict { animation-duration: .01s !important; animation-delay: 0s !important; } .vt-verdict::after { animation: none; } }

/* ---------- the reputation map (famemap.js) ---------- */
.fm-top { display: flex; align-items: center; gap: 14px; margin: 2px 0 10px; }
.fm-gauge { --v: 0; flex: none; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; align-content: center; text-align: center; position: relative;
  background: conic-gradient(#ffb000 calc(var(--v) * 1%), rgb(127 127 127 / .22) 0); box-shadow: 0 0 18px rgb(255 176 0 / .3); }
.fm-gauge::before { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: var(--card, #1d1830); }
.fm-gauge b, .fm-gauge small { position: relative; } .fm-gauge b { font: 900 1.5rem/1 Georgia, serif; } .fm-gauge small { font-size: .55rem; text-transform: uppercase; letter-spacing: .08em; opacity: .75; }
.fm-top-t b { display: block; font-size: .95rem; } .fm-top-t small { font-size: .72rem; opacity: .75; }
.fm-map { position: relative; border-radius: 16px; overflow: hidden; box-shadow: 0 8px 24px rgb(0 0 0 / .3), inset 0 0 0 1px rgb(127 180 255 / .25); }
.fm-svg { display: block; width: 100%; height: auto; }
.fm-svg polygon[data-fr] { transition: filter .2s; } .fm-svg polygon[data-fr]:hover { filter: brightness(1.25); }
.fm-legend { position: absolute; left: 8px; bottom: 6px; display: flex; align-items: center; gap: 6px; font-size: .58rem; color: #fff; opacity: .85; }
.fm-legend i { order: 1; width: 60px; height: 6px; border-radius: 6px; background: linear-gradient(90deg, rgb(38 48 77), rgb(61 96 184), rgb(140 90 255), rgb(255 140 40), rgb(255 225 100)); } .fm-legend span:last-child { order: 2; }
.fm-sel { display: flex; align-items: center; gap: 12px; margin: 12px 0 8px; padding: 10px 12px; border-radius: 14px; background: rgb(127 127 127 / .1); }
.fm-sel-ic { font-size: 30px; } .fm-sel > div { flex: 1; min-width: 0; } .fm-sel b { font-size: .92rem; } .fm-sel small { font-size: .7rem; opacity: .7; }
.fm-bar { height: 7px; border-radius: 7px; background: rgb(127 127 127 / .22); overflow: hidden; margin: 5px 0 3px; } .fm-bar i { display: block; height: 100%; border-radius: 7px; transition: width .4s; }
.fm-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .fm-acts .btn { display: grid; gap: 2px; } .fm-acts small { font-size: .62rem; opacity: .8; font-weight: 600; }
.fm-list { display: grid; gap: 4px; margin-top: 12px; }
.fm-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) 90px 28px; align-items: center; gap: 8px; padding: 6px 10px; border: 0; border-radius: 10px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.fm-row.on { background: rgb(255 216 74 / .14); box-shadow: inset 0 0 0 1.5px rgb(255 200 60 / .6); } .fm-row b { font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .fm-row em { font-style: normal; font-weight: 900; font-size: .8rem; text-align: right; } .fm-row .fm-bar { margin: 0; }
.fm-mini { margin: 10px 0 4px; border-radius: 14px; overflow: hidden; position: relative; } .fm-mini small { position: absolute; left: 8px; top: 6px; padding: 3px 9px; border-radius: 10px; background: rgb(0 0 0 / .45); color: #fff; font-weight: 800; font-size: .68rem; }

/* ---------- the home scene, bigger, with a full screen button ---------- */
.hs-card { margin-inline: -8px; border-radius: 22px !important; }
.hs-card .hs-label { left: 8px; top: 8px; padding: 4px 10px 4px 8px; }
.hs-fs { position: absolute; right: 10px; top: 10px; z-index: 2; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 12px; cursor: pointer;
  color: #fff; background: rgb(0 0 0 / .42); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 2px 10px rgb(0 0 0 / .25); transition: transform .15s, background .15s; }
.hs-fs svg { width: 20px; height: 20px; } .hs-fs:hover { transform: scale(1.08); background: rgb(0 0 0 / .6); } .hs-fs:active { transform: scale(.94); }
.hs-full { position: fixed; inset: 0; z-index: 10002; background: #000; display: grid; place-items: center; animation: rpIn .3s ease-out both; }
.hs-full-stage { position: relative; width: min(100vw, calc(100vh * 360 / 190)); aspect-ratio: 360 / 190; }
/* the picture fills its stage at any size; around it, the sky and the ground of the hour instead of black bars */
.hs-full-scroll { width: 100%; height: 100%; display: grid; place-items: center; overflow: hidden; }
.hs-full[data-phase="day"] { background: linear-gradient(#5fb3ea, #a8dcf5 49%, #5c9a4c 51%, #2f5d2b); }
.hs-full[data-phase="dusk"] { background: linear-gradient(#e88f6e, #c98494 49%, #4a4560 51%, #1e1c2c); }
.hs-full[data-phase="night"] { background: linear-gradient(#060b20, #18224a 49%, #121a30 51%, #05070f); }
.hs-full-stage { box-shadow: 0 0 0 1px rgb(255 255 255 / .06), 0 20px 60px rgb(0 0 0 / .45); }
/* a phone held upright: the home shown about 1.65x bigger than the screen is wide, centred, a swipe looks around */
@media (orientation: portrait) {
  .hs-full-scroll { place-items: center start; overflow-x: auto; overflow-y: hidden; overscroll-behavior: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .hs-full-scroll::-webkit-scrollbar { display: none; }
  .hs-full-stage { width: min(165vw, calc(100vh * 360 / 190)); box-shadow: none; }
}
.hs-full-stage .hs-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hs-full-label { position: absolute; left: calc(14px + env(safe-area-inset-left)); top: calc(14px + env(safe-area-inset-top)); font-size: 1.1em; }
.hs-full-x { position: absolute; right: calc(14px + env(safe-area-inset-right)); top: calc(14px + env(safe-area-inset-top)); width: 44px; height: 44px; border: 0; border-radius: 50%; cursor: pointer;
  color: #fff; font-size: 20px; background: rgb(255 255 255 / .16); backdrop-filter: blur(6px); }
.hs-full-tip { position: absolute; bottom: calc(14px + env(safe-area-inset-bottom)); left: 0; right: 0; margin: 0; text-align: center; color: rgb(255 255 255 / .6); font-size: .75rem; }
@media (orientation: landscape) { .hs-full-tip { display: none; } }

/* ---------- Business › Employees: the step buttons stay on screen ---------- */
.stepper.emp-step { flex-wrap: wrap; justify-content: flex-end; gap: 4px; max-width: 100%; min-width: 0; }
.stepper.emp-step .btn { padding: 5px 9px; font-size: 12px; min-width: 0; line-height: 1.2; }
.stepper.emp-step .btn.primary { padding: 5px 10px; white-space: nowrap; }

/* ---------- rows that don't fit a phone: the buttons wrap under, aligned right, instead of running off the screen ---------- */
.job { flex-wrap: wrap; row-gap: 6px; }
.job > div:not(.job-r) { flex: 1 1 140px; }
.job-r { flex-wrap: wrap; justify-content: flex-end; max-width: 100%; margin-left: auto; row-gap: 6px; }
.job-r .btn { min-width: 0; }
.fold-body, .card { min-width: 0; }
@media (max-width: 420px) { .job-r .btn.sm { padding-inline: 10px; } }

/* ---------- inside your home (interior.js) ---------- */
.hs-in { position: absolute; right: 56px; top: 10px; z-index: 2; height: 38px; padding: 0 12px; border: 0; border-radius: 12px; cursor: pointer; color: #fff; font: 800 12px var(--f-body, sans-serif);
  background: rgb(0 0 0 / .42); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 2px 10px rgb(0 0 0 / .25); transition: transform .15s; }
.hs-in:hover { transform: scale(1.05); background: rgb(0 0 0 / .6); }
/* inside your home (interior.js): a header, room tabs, a swipeable carousel of rooms, the style track and the collection */
.in-head { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 10px; margin-bottom: 10px; padding: 12px 14px; border-radius: 16px;
  background: linear-gradient(135deg, rgb(255 214 120 / .18), rgb(160 110 40 / .08)); box-shadow: inset 0 0 0 1px rgb(220 180 80 / .35); }
.in-home b { display: block; font-size: 1rem; } .in-home small { font-size: .74rem; opacity: .8; }
.in-perk { text-align: right; font-weight: 900; font-size: 1.05rem; color: #3f9a4a; } .in-perk small { display: block; font-size: .64rem; font-weight: 700; opacity: .8; color: inherit; }
.in-bar { grid-column: 1 / -1; height: 6px; border-radius: 4px; background: rgb(127 127 127 / .2); overflow: hidden; }
.in-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #f6d77a, #c9a227, #8a6212); transition: width .5s; }
.in-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none; } .in-tabs::-webkit-scrollbar { display: none; }
.in-tab { flex: none; display: grid; justify-items: center; gap: 1px; min-width: 70px; padding: 8px 8px 6px; border: 0; border-radius: 14px; cursor: pointer; color: inherit; font: inherit; background: rgb(127 127 127 / .12); transition: background .2s, transform .15s; }
.in-tab i { font-style: normal; font-size: 20px; } .in-tab span { font-size: .68rem; font-weight: 800; white-space: nowrap; } .in-tab small { font-size: .6rem; color: #d9a520; letter-spacing: .05em; }
.in-tab.on { background: linear-gradient(160deg, rgb(255 216 74 / .25), rgb(255 150 60 / .15)); box-shadow: inset 0 0 0 2px rgb(255 200 60 / .8); transform: translateY(-1px); }
.in-car { position: relative; }
.in-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 18px; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.in-track::-webkit-scrollbar { display: none; }
.in-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: center; scroll-snap-stop: always; }
.in-view { position: relative; border-radius: 18px; overflow: hidden; box-shadow: 0 10px 28px rgb(0 0 0 / .3), inset 0 0 0 1px rgb(255 255 255 / .08); }
.in-svg { display: block; width: 100%; height: auto; }
.in-view .in-3d { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s ease; pointer-events: none; }
.in-view .in-3d.on { opacity: 1; }
.in-label { position: absolute; left: 10px; top: 10px; padding: 5px 12px; border-radius: 12px; background: rgb(0 0 0 / .45); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.in-label b { display: block; font-size: .85rem; } .in-label small { font-size: .7rem; opacity: .9; }
.in-stars i { font-style: normal; color: rgb(255 255 255 / .35); margin-left: 1px; } .in-stars i.on { color: #ffd23f; text-shadow: 0 0 6px rgb(255 200 60 / .7); }
.in-on { position: absolute; right: 10px; top: 10px; display: flex; gap: 6px; }
.in-on span { width: 34px; height: 34px; border-radius: 9px; overflow: hidden; box-shadow: 0 2px 8px rgb(0 0 0 / .4), 0 0 0 2px rgb(255 255 255 / .8); }
.in-thumb { display: block; width: 100%; height: 100%; }
.in-arrow { position: absolute; top: 50%; z-index: 2; width: 34px; height: 34px; margin-top: -17px; border: 0; border-radius: 50%; cursor: pointer; color: #fff; font: 900 22px/1 sans-serif;
  background: rgb(0 0 0 / .45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); box-shadow: 0 2px 8px rgb(0 0 0 / .3); transition: transform .15s, background .15s; }
.in-arrow:hover { background: rgb(0 0 0 / .65); transform: scale(1.08); } .in-arrow.l { left: 8px; } .in-arrow.r { right: 8px; }
.in-dots { display: flex; justify-content: center; gap: 6px; margin: 10px 0 2px; }
.in-dots i { width: 7px; height: 7px; border-radius: 4px; background: rgb(127 127 127 / .35); transition: width .25s, background .25s; } .in-dots i.on { width: 20px; background: #d9a520; }
.in-swipe { margin: 2px 0 0; text-align: center; font-size: .66rem; opacity: .55; }
.in-panel { margin-top: 10px; }
.in-styles { display: flex; align-items: center; justify-content: center; margin: 4px 0 10px; }
.in-step { display: grid; justify-items: center; gap: 2px; width: 62px; opacity: .45; } .in-step i { font-style: normal; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-size: 17px; background: rgb(127 127 127 / .15); }
.in-step small { font-size: .62rem; font-weight: 800; } .in-step.done { opacity: 1; } .in-step.done i { background: linear-gradient(145deg, #fff1b8, #e2b23a 60%, #a87a17); box-shadow: 0 2px 8px rgb(200 150 40 / .45); }
.in-step.now i { box-shadow: 0 0 0 3px rgb(255 210 80 / .5), 0 2px 10px rgb(200 150 40 / .6); animation: inPulse 2.4s ease-in-out infinite; }
@keyframes inPulse { 50% { transform: scale(1.08); } }
.in-link { flex: 0 1 18px; height: 3px; margin-bottom: 18px; border-radius: 2px; background: rgb(127 127 127 / .25); }
.in-next { padding: 12px; border-radius: 16px; background: rgb(127 127 127 / .08); box-shadow: inset 0 0 0 1px rgb(127 127 127 / .18); }
.in-next > b { display: block; margin-bottom: 8px; font-size: .9rem; } .in-next.done { text-align: center; background: linear-gradient(135deg, rgb(255 214 120 / .2), rgb(255 160 60 / .1)); } .in-next.done p { margin: 4px 0 0; font-size: .8rem; opacity: .8; }
.in-adds { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.in-adds span { padding: 5px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; background: rgb(217 165 32 / .14); box-shadow: inset 0 0 0 1px rgb(217 165 32 / .35); }
.in-next .btn { width: 100%; display: grid; gap: 2px; } .in-next .btn small { font-size: .7rem; opacity: .85; font-weight: 600; }
.in-ch { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 16px; } .in-ch small { font-size: .7rem; opacity: .7; font-weight: 700; }
.in-coll { display: grid; gap: 8px; }
.in-item { display: grid; grid-template-columns: 56px 1fr; gap: 6px 10px; align-items: center; padding: 8px; border-radius: 14px; background: rgb(127 127 127 / .08); box-shadow: inset 0 0 0 1px rgb(127 127 127 / .15); }
.in-item.here { background: linear-gradient(135deg, rgb(255 214 120 / .2), rgb(255 160 60 / .08)); box-shadow: inset 0 0 0 2px rgb(220 170 50 / .6); }
.in-item.t-masterpiece .in-pic, .in-item.t-legendary .in-pic { box-shadow: 0 0 0 2px #d9a520, 0 3px 10px rgb(200 150 40 / .45); }
.in-pic { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 8px rgb(0 0 0 / .25); }
.in-txt { min-width: 0; } .in-txt b { display: block; font-size: .8rem; line-height: 1.2; overflow-wrap: anywhere; } .in-txt small { display: block; font-size: .68rem; opacity: .75; } .in-txt em { display: block; font-style: normal; font-size: .68rem; font-weight: 800; color: #b8861a; }
.in-btns { grid-column: 1 / -1; display: flex; gap: 6px; } .in-btns .btn { flex: 1; min-width: 0; }
@media (min-width: 520px) { .in-item { grid-template-columns: 56px 1fr auto; } .in-btns { grid-column: auto; flex-direction: column; } }
.au-draw { background: #e8e2d6; } .au-pic.au-draw { border-color: #c9a227; } .jicon.au-draw { padding: 0; overflow: hidden; } .jicon.au-draw svg { width: 100%; height: 100%; }

/* ---------- our dynasty (dynasty.js) ---------- */
.dy-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; text-align: center; font: 900 1rem Georgia, serif; margin: 4px 0 8px; } .dy-head span:nth-child(2) { font-size: 1.4rem; }
.dy-tree { position: relative; margin: 0 -4px; }
.dy-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dy-line { fill: none; stroke: #e0b44a; stroke-width: 2.5; stroke-linecap: round; filter: drop-shadow(0 0 3px rgb(255 200 80 / .55)); }
.dy-bond { stroke: #ff8ab3; stroke-dasharray: 6 5; animation: dyFlow 2s linear infinite; }
@keyframes dyFlow { to { stroke-dashoffset: -22; } }
.dy-node { position: absolute; width: 96px; margin-left: -48px; display: grid; justify-items: center; text-align: center; }
.dy-node .face .av { width: 52px; height: 52px; box-shadow: 0 0 0 3px #e0b44a, 0 4px 12px rgb(0 0 0 / .3); }
.dy-node.me .face .av { box-shadow: 0 0 0 3px #ffe066, 0 0 16px rgb(255 220 100 / .8); }
.dy-node.ghost { opacity: .6; }
.dy-node b { font-size: .72rem; margin-top: 4px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .dy-node small { font-size: .62rem; opacity: .7; }
.dy-heart { position: absolute; left: 50%; transform: translate(-50%, -50%); font-size: 26px; filter: drop-shadow(0 0 8px rgb(255 120 170 / .8)); animation: dyBeat 1.4s ease-in-out infinite; }
@keyframes dyBeat { 50% { transform: translate(-50%, -50%) scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .dy-bond, .dy-heart { animation: none; } }
/* estate condition (shop.js): a pill on the estate row */
.cond-pill { display: inline-block; padding: 0 6px; border-radius: 999px; font-weight: 800; font-size: .66rem; background: rgb(60 170 90 / .16); color: #2f8a4a; } .cond-pill.mid { background: rgb(230 160 40 / .18); color: #b07a10; } .cond-pill.bad { background: rgb(220 60 60 / .16); color: #c03030; }

/* ---------- Hall ranks (achieve.js): a medal per rank, coloured by its band; the ladder; the rank-up ---------- */
.hr-badge { --a: #7e431b; --b: #eeb07c; --c: #a35d2a; flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; position: relative;
  background: radial-gradient(circle at 32% 28%, rgb(255 255 255 / .55), transparent 42%), conic-gradient(from 210deg, var(--a), var(--b), var(--c), var(--b), var(--a));
  box-shadow: inset 0 0 0 3px rgb(255 255 255 / .28), inset 0 -4px 8px rgb(0 0 0 / .25), 0 3px 10px rgb(0 0 0 / .3); vertical-align: middle; }
.hr-badge::after { content: ''; position: absolute; inset: 5px; border-radius: 50%; border: 1.5px solid rgb(255 255 255 / .35); }
.hr-badge i { font-style: normal; font-size: 21px; line-height: 1; filter: drop-shadow(0 1px 1px rgb(0 0 0 / .45)); position: relative; z-index: 1; }
.hr-badge.sm { width: 28px; height: 28px; } .hr-badge.sm i { font-size: 14px; } .hr-badge.sm::after { inset: 3px; border-width: 1px; }
.hr-badge.big { width: 64px; height: 64px; } .hr-badge.big i { font-size: 31px; }
.hr-badge.huge { width: 112px; height: 112px; } .hr-badge.huge i { font-size: 56px; } .hr-badge.huge::after { inset: 8px; border-width: 2.5px; }
.hr-silver { --a: #6d7784; --b: #f4f7fa; --c: #a3adb9; }
.hr-gold { --a: #9a6a0a; --b: #ffe887; --c: #d9a520; }
.hr-diamond { --a: #2c8fb8; --b: #e8fbff; --c: #8a7dff; box-shadow: inset 0 0 0 3px rgb(255 255 255 / .35), 0 0 14px rgb(120 210 255 / .45), 0 3px 10px rgb(0 0 0 / .3); }
.hr-mythic { --a: #7a1a8a; --b: #ff9a5a; --c: #e0306a; box-shadow: inset 0 0 0 3px rgb(255 255 255 / .3), 0 0 16px rgb(255 90 120 / .5), 0 3px 10px rgb(0 0 0 / .3); }
.hr-celestial { --a: #1a3a8a; --b: #bfe8ff; --c: #7a5aff; box-shadow: inset 0 0 0 3px rgb(255 255 255 / .35), 0 0 18px rgb(140 170 255 / .6), 0 3px 10px rgb(0 0 0 / .3); }
.hr-cosmic { --a: #ff3cac; --b: #ffe66d; --c: #2bd2ff; box-shadow: inset 0 0 0 3px rgb(255 255 255 / .4), 0 0 20px rgb(255 120 220 / .6), 0 0 34px rgb(80 200 255 / .35), 0 3px 10px rgb(0 0 0 / .3); }
@media (prefers-reduced-motion: no-preference) { .hr-cosmic { animation: hrSpin 8s linear infinite; } .hr-cosmic i { animation: hrSpin 8s linear infinite reverse; } }
@keyframes hrSpin { to { filter: hue-rotate(360deg); } }
.hall-rank.hr-tap { display: flex; align-items: center; gap: 12px; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.hall-rank.hr-tap:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgb(0 0 0 / .18); }
.hr-txt { display: grid; gap: 1px; min-width: 0; } .hr-txt b { overflow-wrap: anywhere; }
.hr-kv b { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; } .hr-kv b small { opacity: .7; font-weight: 700; } .hr-kv .hr-tap { cursor: pointer; }
.hr-now { display: flex; align-items: center; gap: 14px; padding: 14px; margin-bottom: 12px; border-radius: 18px; background: linear-gradient(135deg, color-mix(in srgb, var(--gold, #d9a520) 22%, transparent), rgb(127 127 127 / .06)); box-shadow: inset 0 0 0 1px rgb(217 165 32 / .35); }
.hr-now small { display: block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; opacity: .7; } .hr-now b { display: block; font-size: 1.3rem; } .hr-now em { display: block; font-style: normal; font-size: .78rem; opacity: .8; }
.hr-band { margin: 10px 0 4px; } .hr-band h4 { margin: 0 0 6px; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; opacity: .75; }
.hr-row { display: grid; grid-template-columns: 28px 1fr auto auto; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 12px; }
.hr-row b { font-size: .88rem; } .hr-row small { font-size: .72rem; opacity: .75; font-weight: 700; } .hr-row > span { font-size: .72rem; font-weight: 800; opacity: .55; min-width: 40px; text-align: right; }
.hr-row.now { background: linear-gradient(135deg, rgb(255 214 80 / .25), rgb(255 150 60 / .12)); box-shadow: inset 0 0 0 2px rgb(255 200 60 / .7); }
.hr-row.now small { color: #b8861a; opacity: 1; }
.hr-row.ahead { opacity: .55; } .hr-row.ahead .hr-badge { filter: grayscale(.85) brightness(.85); }
.hr-up-in { display: grid; justify-items: center; gap: 6px; padding: 10px 0 4px; text-align: center; }
.hr-up-in small { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; opacity: .7; } .hr-up-in b { font-size: 1.6rem; } .hr-up-in em { font-style: normal; font-size: .82rem; opacity: .8; }
@media (prefers-reduced-motion: no-preference) { .hr-up-in .hr-badge { animation: hrPop .7s cubic-bezier(.2, 1.6, .4, 1) both; } }
@keyframes hrPop { from { transform: scale(.2) rotate(-40deg); opacity: 0; } to { transform: none; opacity: 1; } }
/* what a school program opens; the singer and actor talent panel */
.job small.opens { color: var(--good); font-weight: 600; }
.star-talent { margin: 10px 0 4px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--good) 8%, transparent); }
.star-talent .actions { margin-top: 6px; }
/* unlock notifications (unlocks.js): a card that slides down from the top, and dots that lead to what is new */
.un-note { position: fixed; z-index: 9500; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 10px); width: min(calc(100vw - 24px), 380px); box-sizing: border-box; transform: translate(-50%, -130%); opacity: 0; transition: transform .38s cubic-bezier(.2, .9, .3, 1.15), opacity .3s; background: var(--surface); color: var(--ink); border-radius: 18px; padding: 10px 12px 6px; box-shadow: 0 14px 40px -12px rgb(0 0 0 / .6), 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent); }
.un-note.in { transform: translate(-50%, 0); opacity: 1; }
.un-note.out { transform: translate(-50%, -130%); opacity: 0; }
.un-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.un-head b { font-family: var(--f-display); font-size: 16px; }
.un-x { border: 0; background: transparent; color: var(--muted); font-size: 16px; padding: 4px 6px; cursor: pointer; }
.un-row { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line); }
.un-head + .un-row { border-top: 0; }
.un-row > i { font-style: normal; font-size: 24px; text-align: center; line-height: 1; }
.un-row small { display: block; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.un-row b { display: block; font-size: 15px; }
.un-note .fine { margin: 2px 0 4px; }
@media (prefers-reduced-motion: reduce) { .un-note { transition: opacity .2s; } }
body.un-th [data-act="menu"], body.un-lk [data-act="menu"], body.un-th [data-themes], body.un-lk [data-k="prestige"], body.un-lk [data-rk="style"] { position: relative; }
body.un-th [data-act="menu"]::after, body.un-lk [data-act="menu"]::after, body.un-th [data-themes]::after, body.un-lk [data-k="prestige"]::after, body.un-lk [data-rk="style"]::after { content: ''; position: absolute; top: 6px; right: 6px; left: auto; bottom: auto; width: 9px; height: 9px; border-radius: 50%; background: #ff3b30; transform: none; animation: none; opacity: 1; z-index: 2; box-shadow: 0 0 0 2px var(--surface); pointer-events: none; }
.th-card.un-new { position: relative; }
.th-card.un-new::after { content: attr(data-new); position: absolute; top: 6px; left: 6px; font: 800 9px/1 var(--f-body); letter-spacing: .06em; color: #fff; background: #ff3b30; border-radius: 6px; padding: 3px 5px; pointer-events: none; }
/* stardom.js: your entries on the charts, album tracklists */
.job.st-me { background: color-mix(in srgb, var(--accent) 14%, transparent); border-radius: 12px; }
.st-album { padding: 8px 0; border-top: 1px solid var(--line); }
.st-album h4 { margin: 0 0 2px; }
.st-album ol { margin: 6px 0 0; padding-left: 22px; }
.st-album li { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; }
.st-album li span { color: var(--muted); font-variant-numeric: tabular-nums; }
