/* Build Line (buildline-1128, Anton 06:44 ET 2026-11-28 picked mockup 1B; buildline3-1128, Anton 22:48 ET: "make the house builder
   cleaner looking ... think smooth UX"). One calm card: set tabs (the set colour on the rim), one compact street list, ONE level
   stepper with the building art, two small outlined chips, one line Total / Cash after, one gold Build plate.
   House style: radius 0 everywhere, every control a chamfered or notched plate (::before = rim, ::after = face), the set colour
   from the shared prop-colour helper (--setc / --setrim from window.TCTProp.vars), one solid primary (the gold Build plate).
   Motion: 160-180 ms colour/opacity/transform transitions on a level pick, none with prefers-reduced-motion. theme.css untouched. */
#modal:has(> .modal-card.bl) { background: rgba(5, 8, 24, .5); -webkit-backdrop-filter: none; backdrop-filter: none; padding: 12px; }
.modal-card.bl { max-width: 480px; width: 100%; max-height: none; overflow: visible; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none; text-align: left; filter: drop-shadow(0 16px 28px rgba(0, 0, 0, .55)); }
.bl-card { --c: 16px; --ch: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
  --ease: cubic-bezier(.2, .7, .2, 1); --t: .16s; --mute: #c3cae6; --up: #8ff0b0; --gold: #ffd76a; --gold-l: #fff1b8;
  position: relative; isolation: isolate; box-sizing: border-box; display: flex; flex-direction: column; max-height: calc(100dvh - 24px); padding: 14px 14px 14px; color: #f4f1e6; font-family: Nunito, sans-serif;
  animation: blIn .2s var(--ease); }
@keyframes blIn { from { opacity: .4; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.bl-card *, .bl-card *::before, .bl-card *::after { box-sizing: border-box; }
.bl-card::before, .bl-card::after { content: ''; position: absolute; pointer-events: none; }
.bl-card::before { inset: 0; z-index: -2; clip-path: var(--ch); background: var(--trim); }
.bl-card::after { inset: 3px; z-index: -1; --c: 14px; clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
  background: radial-gradient(70% 30% at 15% 0, rgba(255, 215, 106, .09), transparent 70%), linear-gradient(172deg, #252e6a 0%, #19204e 45%, #0e1334 100%); }
.bl-card button { -webkit-tap-highlight-color: transparent; font-synthesis: none; }

/* ---- header: title, cash, close (one line) */
.bl-head { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; padding: 0 2px 12px; }
.modal-card.bl h2.bl-ttl { min-width: 0; margin: 0; font: 400 25px/1 var(--font-hero, 'Lilita One'), Fredoka, sans-serif; color: var(--gold-l); letter-spacing: .02em; text-shadow: 0 2px 0 rgba(0, 0, 0, .55); white-space: nowrap; }
.bl-cash { margin-left: auto; display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.bl-cash span { font: 800 11px/1 Nunito, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.bl-cash b { font: 400 21px/1 var(--font-hero, 'Lilita One'), Fredoka, sans-serif; letter-spacing: .02em; color: var(--up); font-variant-numeric: tabular-nums; text-shadow: 0 1px 0 rgba(0, 0, 0, .6); }

/* ---- plates (chamfered rim + face + lip): the gold Build plate, the close plate, the My Tycoon entry plate */
.bl-plate { --c: 9px; --rimg: linear-gradient(135deg, #d7defa 0%, #7f8fd0 30%, #2b356b 68%, #a9b5ea 100%);
  --face: linear-gradient(180deg, #5d6fcf 0%, #3a4aa6 22%, #303f92 62%, #243174 100%); --lip: #121a44; --fg: #fff; --tsh: rgba(5, 10, 40, .6);
  position: relative; isolation: isolate; min-height: 48px; min-width: 44px; margin: 0; padding: 8px 14px; border: 0; border-radius: 0; background: none; box-shadow: none; clip-path: none;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-align: center; cursor: pointer; color: var(--fg); text-shadow: 0 1px 0 var(--tsh);
  font: 400 17px/1.1 var(--font-hero, 'Lilita One'), Fredoka, sans-serif; font-synthesis: none; letter-spacing: .03em;
  filter: drop-shadow(0 4px 0 var(--lip)) drop-shadow(0 7px 9px rgba(0, 0, 0, .34)); transition: transform .07s ease, filter .07s ease; }
.bl-plate::before, .bl-plate::after { content: ''; position: absolute; pointer-events: none; display: block;
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c)); }
.bl-plate::before { inset: 0; z-index: -2; background: var(--rimg); }
.bl-plate::after { inset: 2px; z-index: -1; --c: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .42) 0, rgba(255, 255, 255, .14) 2px, rgba(255, 255, 255, 0) 9px),
    linear-gradient(0deg, rgba(0, 0, 0, .28) 0 2px, rgba(0, 0, 0, 0) 2px), var(--face); }
.bl-plate small { display: block; font: 800 12.5px/1.1 Nunito, sans-serif; letter-spacing: .01em; opacity: 1; }
@media (hover: hover) { .bl-plate:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.07) drop-shadow(0 5px 0 var(--lip)) drop-shadow(0 8px 10px rgba(0, 0, 0, .34)); } }
.bl-plate:active:not(:disabled) { transform: translateY(3px); filter: brightness(.93) drop-shadow(0 1px 0 var(--lip)) drop-shadow(0 2px 3px rgba(0, 0, 0, .3)); }
.bl-plate:focus-visible { outline: 3px solid var(--gold2); outline-offset: 4px; }
.bl-plate:disabled { cursor: not-allowed; --rimg: linear-gradient(135deg, #8e95b4 0%, #4b5378 40%, #262c4c 70%, #6d7495 100%);
  --face: linear-gradient(180deg, #3a4168 0%, #2a3054 40%, #20264a 100%); --fg: #c9cee6; --lip: #0b1030; filter: drop-shadow(0 2px 0 var(--lip)); }
.bl-plate.gold { --rimg: linear-gradient(135deg, #fffbe6 0%, #f0c048 30%, #8a5a12 68%, #ffe39a 100%);
  --face: linear-gradient(180deg, #fffbe0 0%, #ffd76a 22%, #f2b632 62%, #d89412 100%); --lip: #7a4e0e; --fg: #3d2400; --tsh: rgba(255, 250, 220, .55); }
.bl-plate.gold:disabled { --rimg: linear-gradient(135deg, #e9dcb4 0%, #9c8650 40%, #4d3f1c 70%, #c9b680 100%); --face: linear-gradient(180deg, #8f7f55 0%, #6f6140 50%, #5a4e33 100%); --fg: #fff3d2; --tsh: rgba(0, 0, 0, .5); }
.bl-x { --c: 8px; --rimg: linear-gradient(135deg, #fff4c8 0%, #d6a945 30%, #4a3310 68%, #f0d283 100%); --face: linear-gradient(180deg, #4a5aa0 0%, #2a3570 22%, #222c62 62%, #19214e 100%);
  --lip: #0a0f2c; --fg: var(--gold3, #fff1b8); width: 44px; height: 44px; min-height: 44px; padding: 0; font: 700 20px/1 Nunito, sans-serif; flex: 0 0 auto; }
.bl-x::after { --c: 7px; }

/* ---- set tabs: notched plates (top-right and bottom-left cut); the set colour is the rim, the picked tab is lit by it */
.bl-tabs { flex: 0 0 auto; display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden; padding: 2px 2px 12px; margin: 0 -2px; scrollbar-width: none; overscroll-behavior-x: contain; }
.bl-tabs::-webkit-scrollbar { display: none; }
/* more tabs off to a side: a soft fade on that edge (blTabFade sets .fl / .fr) */
.bl-tabs.fl, .bl-tabs.fr { --fl: 0px; --fr: 0px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--fl), #000 calc(100% - var(--fr)), transparent); mask-image: linear-gradient(90deg, transparent, #000 var(--fl), #000 calc(100% - var(--fr)), transparent); }
.bl-tabs.fl { --fl: 28px; } .bl-tabs.fr { --fr: 28px; }
.bl-tab { --c: 10px; --tab: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c)));
  position: relative; isolation: isolate; flex: 0 0 auto; min-height: 48px; min-width: 44px; max-width: 200px; margin: 0; padding: 6px 16px 6px 13px; border: 0; border-radius: 0; background: none; box-shadow: none;
  display: flex; flex-direction: column; justify-content: center; text-align: left; color: #e2e6f6; cursor: pointer; transition: color var(--t) var(--ease); }
.bl-tab::before, .bl-tab::after { content: ''; position: absolute; pointer-events: none; clip-path: var(--tab); transition: background-color var(--t) var(--ease), opacity var(--t) var(--ease); }
.bl-tab::before { inset: 0; z-index: -2; background-color: var(--setrim, #5b6491); opacity: .5; }
.bl-tab::after { inset: 2px; z-index: -1; --c: 9px; background: linear-gradient(180deg, rgba(255, 255, 255, .08) 0, rgba(255, 255, 255, 0) 8px) #19204c; }
.bl-tab b { font: 400 16px/1.1 var(--font-hero, 'Lilita One'), Fredoka, sans-serif; letter-spacing: .02em; color: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bl-tab small { margin-top: 2px; font: 800 12px/1.15 Nunito, sans-serif; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bl-tab.on { color: var(--gold-l); }
.bl-tab.on::before { opacity: 1; }
.bl-tab.on::after { inset: 3px; background: linear-gradient(180deg, rgba(255, 255, 255, .12) 0, rgba(255, 255, 255, 0) 10px), linear-gradient(180deg, #33418e, #232c6a); }
.bl-tab.on small { color: #ffe6a6; }
.bl-tab.dis:not(.on) small { color: #e6c98c; }
.bl-tab:focus-visible { outline: 3px solid var(--gold2); outline-offset: 2px; }
@media (hover: hover) { .bl-tab:not(.on):hover::before { opacity: .8; } }

/* ---- the set: one panel with the set colour on its rim */
.bl-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0 -4px; padding: 0 4px 2px; scrollbar-width: thin; scrollbar-color: rgba(255, 215, 106, .45) transparent; }
.bl-body.more { -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 28px), transparent); }   /* there is more below */
.bl-set { --c: 12px; position: relative; isolation: isolate; padding: 6px 12px 12px; }
.bl-set::before, .bl-set::after { content: ''; position: absolute; pointer-events: none;
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c)); }
.bl-set::before { inset: 0; z-index: -2; background: var(--setrim, #8890b4); }
.bl-set::after { inset: 2px; z-index: -1; --c: 11px; background: radial-gradient(90% 40% at 0 0, color-mix(in srgb, var(--setc) 14%, transparent), transparent 70%), linear-gradient(180deg, #1f2862, #141a44); }
.bl-set.off::before { background: linear-gradient(135deg, #a9b2d6, #4b5378 50%, #8890b4); }

/* the street list: name and rent on the left, level now -> new with the tiny building on the right */
.bl-rows { list-style: none; margin: 0; padding: 0; }
.bl-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 10px; min-height: 48px; padding: 4px 2px 4px 13px; border-top: 1px solid rgba(255, 214, 120, .13); }
.bl-row:first-child { border-top: 0; }
.bl-row::before { content: ''; position: absolute; left: 0; top: 11px; bottom: 11px; width: 4px; background: var(--setrim, var(--setc)); clip-path: polygon(0 2px, 100% 0, 100% 100%, 0 calc(100% - 2px)); }
.bl-rn { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bl-nm { font: 800 15px/1.15 Nunito, sans-serif; color: #fff7e6; overflow-wrap: anywhere; }
.bl-rent { font: 700 12.5px/1.15 Nunito, sans-serif; color: var(--mute); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bl-rent em { font-style: normal; font-weight: 900; color: var(--up); }
.bl-rl { display: flex; align-items: center; gap: 5px; font: 400 17px/1 var(--font-hero, 'Lilita One'), Fredoka, sans-serif; letter-spacing: .02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bl-from { color: var(--mute); }
.bl-arr { font: 800 14px/1 Nunito, sans-serif; color: var(--mute); }
.bl-row:not(.up) .bl-from, .bl-row:not(.up) .bl-arr { display: none; }
.bl-art { width: 36px; height: 30px; display: flex; align-items: flex-end; justify-content: center; }
.bl-art img { max-width: 36px; max-height: 30px; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .55)); }
.bl-art.pop img, .bl-art.pop .bl-lot { animation: blPop .18s var(--ease); }
@keyframes blPop { from { opacity: .3; transform: translateY(4px) scale(.86); } to { opacity: 1; transform: none; } }
.bl-to { min-width: 2.2ch; text-align: right; color: #eef0fa; }
.bl-row.up .bl-to { color: var(--up); }
.bl-row.up .bl-art img { filter: drop-shadow(0 0 4px rgba(143, 240, 176, .55)) drop-shadow(0 2px 2px rgba(0, 0, 0, .5)); }
.bl-row.mort .bl-to { font: 800 12.5px/1 Nunito, sans-serif; color: #f0d79a; letter-spacing: .04em; }
.bl-row.mort .bl-art { display: none; }
.bl-lot { display: block; width: 24px; height: 9px; margin-bottom: 4px; border: 2px dashed rgba(214, 196, 141, .75); transform: perspective(50px) rotateX(35deg); }

/* ---- the level control: a readout + two outlined chips, then the stepper */
.bl-ctl { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0 4px; padding-top: 6px; border-top: 1px solid rgba(255, 214, 120, .13); }
.bl-read { min-width: 0; font: 800 13.5px/1.2 Nunito, sans-serif; color: #e6e9f7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bl-chips { flex: 0 0 auto; display: flex; gap: 6px; }
/* a small outlined chip: the tap target is the full 44 px, the drawn chip is 32 px tall in the middle */
.bl-chip { --c: 6px; --ring: rgba(255, 215, 106, .55); --fill: transparent; position: relative; isolation: isolate; min-height: 44px; min-width: 44px; margin: 0; padding: 0 12px; border: 0; border-radius: 0; background: none; box-shadow: none;
  font: 800 13px/1 Nunito, sans-serif; letter-spacing: .02em; color: #ffe08a; white-space: nowrap; cursor: pointer; transition: color var(--t) var(--ease); }
.bl-chip::before, .bl-chip::after { content: ''; position: absolute; pointer-events: none;
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c)); transition: background-color var(--t) var(--ease); }
.bl-chip::before { inset: 6px 0; z-index: -2; background-color: var(--ring); }
.bl-chip::after { inset: 7.5px 1.5px; z-index: -1; --c: 5.5px; background-color: #182052; background-image: linear-gradient(0deg, var(--fill), var(--fill)); }
.bl-chip.on { --ring: #ffd76a; --fill: rgba(255, 215, 106, .2); color: var(--gold-l); }
.bl-chip:disabled { --ring: rgba(150, 160, 205, .35); color: #9ea6c8; cursor: default; }
@media (hover: hover) { .bl-chip:not(:disabled):not(.on):hover { --fill: rgba(255, 215, 106, .1); } }
.bl-chip:active:not(:disabled)::after { background-color: #222b66; }
.bl-chip:focus-visible { outline: 2px solid var(--gold2); outline-offset: -2px; }

/* the stepper: six chamfered cells (Lot 1 2 3 4 Top) with the building art; the rail under them fills gold (built) and green (this build) */
.bl-steps { --g: 5px; position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--g); padding: 4px 0 10px; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
/* the rail: --d = cells built (Lot..min), --to = the picked level; each fill ends exactly at a cell's right edge (gaps counted) */
.bl-rail { --w: calc((100% - 5 * var(--g)) / 6); position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: #070b24; box-shadow: inset 0 1px 1px #000; }
.bl-rail i { position: absolute; top: 0; bottom: 0; transition: left .18s var(--ease), width .18s var(--ease); }
.bl-rail .done { left: 0; width: calc(var(--d, 1) * var(--w) + (var(--d, 1) - 1) * var(--g)); background: linear-gradient(180deg, #fff3b0, #e0a52a); }
.bl-rail .add { left: calc(var(--d, 1) * var(--w) + (var(--d, 1) - 1) * var(--g)); width: calc(max(0, var(--to, 0) - var(--d, 1) + 1) * (var(--w) + var(--g)));
  background: linear-gradient(180deg, #c8ffd9, #3cc46a); box-shadow: 0 0 6px rgba(80, 230, 130, .6); }
.bl-step { --c: 7px; --rimc: rgba(150, 165, 225, .42); --facec: #1f2860; position: relative; isolation: isolate; min-width: 0; min-height: 62px; margin: 0; padding: 6px 2px 6px; border: 0; border-radius: 0; background: none; box-shadow: none;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; color: #e6e9f7; cursor: pointer; transition: transform var(--t) var(--ease), color var(--t) var(--ease); }
.bl-step::before, .bl-step::after { content: ''; position: absolute; pointer-events: none;
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c)); transition: background-color var(--t) var(--ease); }
.bl-step::before { inset: 0; z-index: -2; background-color: var(--rimc); }
.bl-step::after { inset: 1.5px; z-index: -1; --c: 6.5px; background-color: var(--facec); background-image: linear-gradient(180deg, rgba(255, 255, 255, .09) 0, rgba(255, 255, 255, 0) 10px); }
.bl-step .pic { height: 28px; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.bl-step .pic img { max-height: 28px; max-width: 88%; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .6)); opacity: .7; transform-origin: 50% 100%;
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), filter var(--t) var(--ease); }
.bl-step .pic .bl-lot { margin-bottom: 6px; }
.bl-step .lbl { font: 400 15px/1 var(--font-hero, 'Lilita One'), Fredoka, sans-serif; letter-spacing: .03em; color: inherit; }
.bl-step:disabled { cursor: default; }
.bl-step.done { --rimc: rgba(240, 200, 90, .5); --facec: #2a2a55; color: var(--gold); }
.bl-step.done .pic img { opacity: 1; }
.bl-step.part { --rimc: rgba(240, 200, 90, .4); }
.bl-step.add { --rimc: rgba(110, 230, 160, .62); --facec: #1b4250; color: #c4f8d6; }
.bl-step.add .pic img { opacity: 1; }
.bl-step.short { --rimc: rgba(120, 130, 175, .26); --facec: #161c45; color: #8d95bb; }
.bl-step.short .pic img { opacity: .3; filter: grayscale(.8); }
.bl-step.on { --rimc: #ffd76a; --facec: #34449a; color: var(--gold-l); transform: translateY(-2px); }
.bl-step.on::before { background-image: linear-gradient(135deg, #fffbe6, #f0c048 35%, #9c6a10 70%, #ffe39a); }
.bl-step.on .pic img { opacity: 1; transform: scale(1.14); filter: drop-shadow(0 0 5px rgba(255, 222, 120, .8)) drop-shadow(0 2px 2px rgba(0, 0, 0, .5)); }
@media (hover: hover) { .bl-step:not(:disabled):not(.on):hover { --rimc: rgba(255, 215, 106, .7); } .bl-step:not(:disabled):not(.on):hover .pic img { opacity: 1; } }
.bl-step:active:not(:disabled) { transform: translateY(1px); }
.bl-step:focus-visible { outline: 2px solid var(--gold2); outline-offset: 1px; }

/* engraved reason plate for a set you can't build on now */
.bl-engr { --c: 9px; position: relative; isolation: isolate; min-height: 56px; margin: 8px 0 0; padding: 10px 14px; display: flex; align-items: center; gap: 12px;
  color: #d4d9ee; font: 700 13.5px/1.3 Nunito, sans-serif; text-shadow: 0 -1px 0 rgba(0, 0, 0, .7); }
.bl-engr::before, .bl-engr::after { content: ''; position: absolute; pointer-events: none; clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c)); }
.bl-engr::before { inset: 0; z-index: -2; background: linear-gradient(180deg, #0b0f26, #3a4266 60%, #6a7398); }
.bl-engr::after { inset: 2px; z-index: -1; background: repeating-linear-gradient(100deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 5px), linear-gradient(180deg, #141936, #212a4e); }
.bl-engr svg { flex: 0 0 26px; width: 26px; height: 26px; color: #e6c98c; filter: drop-shadow(0 -1px 0 rgba(0, 0, 0, .7)); }
.bl-engr b { display: block; margin-bottom: 2px; font: 400 15px/1.1 var(--font-hero, 'Lilita One'), Fredoka, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #f0d79a; }

/* ---- footer: one line Total / Cash after, then the one gold Build plate */
.bl-foot { flex: 0 0 auto; margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.bl-sum { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 4px; }
.bl-sum .pair { display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.bl-sum .k { font: 800 11.5px/1 Nunito, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.bl-sum b { display: inline-block; font: 400 21px/1 var(--font-hero, 'Lilita One'), Fredoka, sans-serif; letter-spacing: .02em; color: var(--gold); font-variant-numeric: tabular-nums; }
.bl-sum b.left { color: var(--up); }
.bl-sum.idle b.tot { color: #dfe3f5; }
.bl-go { --c: 11px; width: 100%; min-height: 54px; padding: 10px 20px; font-size: 21px; letter-spacing: .05em; white-space: nowrap; }
.bl-go::after { --c: 10px; }
/* hotfix-1129 (bug hunt #7): every set blocked -> no Total / Cash after, and the plate is the plain disabled plate reading the reason */
.bl-foot.blocked .bl-sum { display: none; }
.bl-foot.blocked .bl-go { font-size: 17px; letter-spacing: .02em; white-space: normal; }
/* a changed number settles in */
.bl-card .tick { animation: blTick .17s var(--ease); }
@keyframes blTick { from { opacity: .35; transform: translateY(3px); } to { opacity: 1; transform: none; } }

/* ---- My Tycoon entry plate */
.bl-open { width: 100%; margin: 4px 0 10px; min-height: 54px; }
.bl-open span { font-size: 19px; letter-spacing: .05em; }
.bl-open small { font-size: 12.5px; }
/* buildcollapse-1201 (Anton 2026-12-01 15:09 ET: "Click drop, click close. Simple, nothing else changes."): the same plate opens / closes one
   drop box holding the property list as it was. A small chevron in the plate's ink sits at the right; it turns over when open. The box
   slides on grid rows (0fr -> 1fr) in 200 ms; a closed box keeps its rows out of reach (inert, hidden after the slide). */
.bl-tog { padding-left: 34px; padding-right: 34px; }
.bl-chev { position: absolute; right: 16px; top: 50%; width: 12px; height: 8px; margin-top: -4px; display: block; line-height: 0; opacity: .82; transition: transform .2s var(--ease, ease); }
.bl-chev svg { display: block; }
.bl-tog.open .bl-chev { transform: rotate(180deg); }
.bl-drop { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .2s var(--ease, ease); }
.bl-drop.open { grid-template-rows: 1fr; }
.bl-drop-in { min-height: 0; overflow: hidden; visibility: hidden; transition: visibility 0s linear .2s; }
.bl-drop.open .bl-drop-in { visibility: visible; transition: visibility 0s; }

/* ---- desktop: docked on the right over the board */
@media (min-width: 900px) {
  #modal:has(> .modal-card.bl) { justify-content: flex-end; align-items: flex-start; padding: 84px 24px 16px 16px; }
  .modal-card.bl { width: 440px; max-width: 440px; }
  .bl-card { max-height: calc(100dvh - 100px); padding: 18px 18px 16px; }
  .bl-step { min-height: 68px; } .bl-step .pic { height: 32px; } .bl-step .pic img { max-height: 32px; }
}
/* ---- phone: a bottom sheet */
@media (max-width: 600px) {
  #modal:has(> .modal-card.bl) { align-items: flex-end; padding: 6px 6px max(6px, env(safe-area-inset-bottom)); }
  .bl-card { max-height: calc(100dvh - 12px); padding: 12px 10px 12px; }
  .modal-card.bl h2.bl-ttl { font-size: 23px; }
  .bl-cash b { font-size: 20px; }
  .bl-set { padding: 4px 10px 10px; }
  .bl-go { min-height: 52px; font-size: 20px; }
}
@media (max-width: 374px) {
  .bl-head { gap: 8px; padding-bottom: 10px; }
  .bl-cash span { letter-spacing: .1em; }
  .bl-tab { padding: 6px 14px 6px 11px; }
  .bl-row { min-height: 44px; }
  .bl-steps { --g: 4px; }
  .bl-step { min-height: 56px; } .bl-step .pic { height: 24px; } .bl-step .pic img { max-height: 24px; }
  .bl-chip { padding: 0 10px; }
  .bl-sum b { font-size: 19px; } .bl-sum .k { letter-spacing: .1em; }
  .bl-go { font-size: 19px; min-height: 50px; }
}
/* build2btn-1202 (Anton 2026-12-02 02:32 ET: "should be 2 buttons 'Properties' 'Build'"): the two My Tycoon plates side by side, equal
   width and height. Properties is the plain (steel-blue) plate with the chevron and opens the drop box; Build is the gold plate and opens
   the Build Line sheet. With no complete Color Set the gold plate reads the muted gold of a waiting plate (still tappable: it says why). */
.bl-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 10px; align-items: stretch; }
.bl-duo .bl-open { margin: 0; min-width: 0; }
.bl-duo .bl-open small { white-space: normal; overflow-wrap: anywhere; text-wrap: balance; }
.bl-duo .bl-tog { padding-left: 14px; padding-right: 30px; }
.bl-duo .bl-tog .bl-chev { right: 12px; }
.bl-duo .bl-build { padding-left: 12px; padding-right: 12px; }
.bl-duo .bl-build.none { --rimg: linear-gradient(135deg, #e9dcb4 0%, #9c8650 40%, #4d3f1c 70%, #c9b680 100%); --face: linear-gradient(180deg, #8f7f55 0%, #6f6140 50%, #5a4e33 100%); --fg: #fff3d2; --tsh: rgba(0, 0, 0, .5); }
@media (max-width: 380px) { .bl-duo { gap: 8px; } .bl-duo .bl-open span { font-size: 17px; letter-spacing: .03em; } }
@media (prefers-reduced-motion: reduce) {
  .bl-drop, .bl-drop-in, .bl-chev { transition: none !important; }
  .bl-card, .bl-card .tick, .bl-art.pop img, .bl-art.pop .bl-lot { animation: none; }
  .bl-card *, .bl-card *::before, .bl-card *::after { transition: none !important; }
  .bl-step.on { transform: none; }
}
