/* Apartment picker styles, scoped to #engine: generated, do not edit here. */
/* Quvasoy City — apartment picker: night ground, one copper light. */
#engine {
  --void: var(--qc-night);
  --ink: var(--qc-on-night);
  --dim: rgba(245, 240, 234, .72);
  --mute: rgba(245, 240, 234, .6);
  --hair: rgba(245, 240, 234, .2);
  --ember: var(--qc-accent);
  --flare: var(--qc-glow);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --f-body: var(--qc-f-sans);
  --f-mono: var(--qc-f-sans);
  --f-display: var(--qc-f-display);
  --f-num: var(--qc-f-display);
  color-scheme: dark;
}
#engine { margin: 0; min-width: 320px; background: var(--void); color: var(--ink); font-family: var(--f-body); font-weight: 300; line-height: 1.5; -webkit-font-smoothing: antialiased; }
#engine p, #engine h1, #engine h2, #engine ul, #engine dl, #engine dd, #engine figure { margin: 0; }
#engine ul { padding: 0; list-style: none; }
#engine button { font: inherit; color: inherit; }
#engine ::selection { background: var(--qc-on-night); color: var(--qc-night); }
#engine :focus-visible { outline: 2px solid var(--flare); outline-offset: 3px; }

#engine .wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { #engine .wrap { padding: 0 40px; } }
@media (min-width: 1280px) { #engine .wrap { padding: 0 56px; } }

#engine .t-label { font-family: var(--f-mono); font-size: var(--qc-fs-label); font-weight: 600; line-height: 1.5; letter-spacing: var(--qc-track-label); text-transform: uppercase; }
#engine .t-body { font-size: 16px; line-height: 1.6; color: var(--mute); }
@media (min-width: 1024px) { #engine .t-body { font-size: 17px; } }
#engine .t-h1 { margin-top: 18px; font-family: var(--f-display); font-weight: 700; font-size: var(--qc-fs-h2); line-height: var(--qc-lh-head); letter-spacing: var(--qc-track-head); }
#engine .t-flare { color: var(--flare); }
#engine .t-dim { color: var(--dim); }
#engine .t-mute { color: var(--mute); }
#engine .ink { color: var(--ink); }
#engine .num { font-family: var(--f-num); font-weight: 500; line-height: 1; letter-spacing: -.03em; }
#engine .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Top bar and footer */
#engine .top { border-bottom: 1px solid var(--hair); }
#engine .top-in, #engine .foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; padding-top: 18px; padding-bottom: 18px; }
#engine .foot { border-top: 1px solid var(--hair); }

/* Section */
#engine.engine { position: relative; padding: 56px 0 72px; background: radial-gradient(80% 60% at 22% 42%, rgba(167, 76, 1, .16), transparent 70%), var(--void); }
@media (min-width: 1024px) { #engine.engine { padding: 88px 0 112px; } }
#engine .eng-head { display: grid; gap: 20px; align-items: end; }
@media (min-width: 1024px) { #engine .eng-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; } }
#engine .lead { max-width: 520px; }

#engine .eng-grid { margin-top: 36px; display: grid; gap: 36px; }
@media (min-width: 1024px) { #engine .eng-grid { margin-top: 56px; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; } }
#engine .eng-fig { min-width: 0; }
@media (min-width: 1024px) { #engine .eng-fig { position: sticky; top: 24px; } }
#engine .eng-svg { display: block; width: 100%; height: auto; }
#engine .legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; color: var(--dim); }
#engine .legend span { display: inline-flex; align-items: center; gap: 8px; }
#engine .north { width: 12px; height: 12px; fill: var(--mute); transform: rotate(26deg); }
#engine .eng-ctl { min-width: 0; }

/* Controls */
#engine .ctl + .ctl { margin-top: 26px; }
#engine .seg { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
#engine .chip { min-width: 48px; min-height: 48px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--hair); background: transparent; font-family: var(--f-num); font-weight: 500; font-size: 16px; letter-spacing: .02em; cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
#engine .chip[aria-checked='true'] { background: var(--qc-on-night); color: var(--qc-night); border-color: var(--qc-on-night); }
@media (hover: hover) and (pointer: fine) { #engine .chip:not([aria-checked='true']):hover { border-color: rgba(245, 240, 234, .6); } }
#engine .about { margin-top: 10px; }

#engine .floor-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
#engine .floor-num { margin-top: 6px; font-size: clamp(40px, 4.4vw, 62px); }
#engine .floor-num small { margin-left: 8px; font-size: .45em; color: var(--qc-on-night-2); vertical-align: top; }
#engine .pm { display: flex; gap: 8px; padding-bottom: 4px; }
#engine .circ { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border-radius: 50%; border: 1px solid var(--hair); background: transparent; cursor: pointer;
  transition: background-color .3s var(--ease), border-color .3s var(--ease); }
#engine .circ svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
#engine .circ:disabled { opacity: .35; cursor: not-allowed; }
@media (hover: hover) and (pointer: fine) { #engine .circ:not(:disabled):hover { background: rgba(245, 240, 234, .08); border-color: rgba(245, 240, 234, .6); } }

#engine .range { display: block; width: 100%; height: 44px; margin: 6px 0 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
#engine .range::-webkit-slider-runnable-track { height: 1px; background: var(--hair); }
#engine .range::-moz-range-track { height: 1px; background: var(--hair); }
#engine .range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -11px; border: 0; border-radius: 50%; background: var(--flare); box-shadow: 0 0 16px rgba(240, 165, 90, .7); }
#engine .range::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: var(--flare); box-shadow: 0 0 16px rgba(240, 165, 90, .7); }
#engine .range:focus-visible { outline-offset: 0; }

#engine .plan-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#engine .plan { margin-top: 8px; border: 1px solid var(--hair); border-radius: 14px; overflow: hidden; }
#engine .plan-row { display: flex; }
#engine .core { display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 6px 12px; text-align: center; color: rgba(245, 240, 234, .5); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
  background: repeating-linear-gradient(135deg, rgba(245, 240, 234, .055) 0 1px, transparent 1px 10px); }
#engine .home { flex: 1 1 0; min-width: 0; min-height: 88px; padding: 12px; border: 0; background: transparent; text-align: left; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease); }
#engine .home + .home { border-left: 1px solid var(--hair); }
#engine .nw { white-space: nowrap; }
#engine .home-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-family: var(--f-mono); font-size: 13px; letter-spacing: .04em; }
#engine .home[aria-checked='true'] { background: var(--qc-on-night); color: var(--qc-night); }
#engine .home[aria-checked='true'] .t-mute { color: rgba(26, 17, 13, .66); }
#engine .home[aria-checked='true'] .dot.sold { background: rgba(26, 17, 13, .3); }
@media (hover: hover) and (pointer: fine) { #engine .home:not([aria-checked='true']):hover { background: rgba(245, 240, 234, .05); } }
#engine .home:focus-visible { outline-offset: -3px; }
#engine .plan-foot { margin-top: 8px; }

#engine .dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: rgba(245, 240, 234, .25); }
#engine .dot.available { background: var(--flare); box-shadow: 0 0 10px rgba(240, 165, 90, .8); }
#engine .dot.reserved { background: var(--ember); }
#engine .dot.sold { background: rgba(245, 240, 234, .25); box-shadow: none; }

#engine .readout { margin-top: 30px; display: grid; gap: 22px; }
@media (min-width: 560px) { #engine .readout { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px; align-items: start; } }
#engine .code { margin-top: 8px; font-size: clamp(36px, 3.6vw, 52px); overflow-wrap: anywhere; }
#engine .status { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; }
#engine .status.available { color: var(--flare); }
#engine .spec div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--hair); }
#engine .spec dd { font-size: 15px; text-align: right; }

#engine .cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 26px; }
#engine .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid var(--hair); background: transparent; cursor: pointer;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  transition: background-color .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease), color .4s var(--ease); }
#engine .btn.solid { background: var(--qc-accent); color: var(--qc-on-night); border-color: var(--qc-accent); }
@media (hover: hover) and (pointer: fine) { #engine .btn.solid:hover { background: var(--qc-accent-hover); border-color: var(--qc-accent-hover); box-shadow: 0 0 32px rgba(240, 165, 90, .35); } }
#engine .cta-note { flex: 1 1 220px; min-width: 0; }

#engine .tally-row { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--hair); display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 560px) { #engine .tally-row { flex-direction: row; align-items: flex-start; justify-content: space-between; } }
#engine .tally { display: flex; flex-wrap: wrap; gap: 4px 16px; color: rgba(245, 240, 234, .82); }
#engine .tally li { white-space: nowrap; }
#engine .tally .t-flare { color: var(--flare); }
#engine .feed { min-width: 0; }
@media (min-width: 560px) { #engine .feed { text-align: right; } }
#engine .feed-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
@media (min-width: 560px) { #engine .feed-head { justify-content: flex-end; } }
#engine .feed-btn { min-height: 44px; padding: 0 4px; border: 0; background: transparent; color: rgba(245, 240, 234, .82); cursor: pointer; }
#engine .feed-btn[aria-pressed='true'] { color: var(--flare); }
#engine .feed-log li { font-family: var(--f-mono); font-size: 12px; color: rgba(245, 240, 234, .55); }
#engine .feed-log li:first-child { color: var(--flare); }
#engine .feed-log li.idle { color: rgba(245, 240, 234, .55); }

#engine .demo { margin-top: 36px; max-width: 760px; text-transform: none; letter-spacing: .04em; }

/* Drawing */
#engine .gnd { fill: none; stroke: rgba(245, 240, 234, .13); stroke-width: 1; vector-effect: non-scaling-stroke; }
#engine .gnd-dash { stroke-dasharray: 3 3; }
#engine .prom { fill: rgba(245, 240, 234, .035); stroke: rgba(245, 240, 234, .1); stroke-width: 1; vector-effect: non-scaling-stroke; }
#engine .f-long { fill: #0c0a09; }
#engine .f-end { fill: #15120f; }
#engine .blk.is-sel .f-long { fill: #15100c; }
#engine .blk.is-sel .edge { stroke: rgba(245, 240, 234, .85); }
#engine .blk-tag { font-family: var(--f-num); font-weight: 500; font-size: 6px; fill: rgba(245, 240, 234, .55); text-anchor: middle; cursor: pointer; transition: fill .4s var(--ease); }
#engine .blk-tag.is-sel { fill: var(--flare); }
#engine .ln { fill: none; stroke: rgba(245, 240, 234, .16); stroke-width: 1; vector-effect: non-scaling-stroke; }
#engine .edge { fill: none; stroke: rgba(245, 240, 234, .55); stroke-width: 1.1; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
#engine .roof { stroke: rgba(245, 240, 234, .38); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
#engine .roof-b { fill: #0d1117; }
#engine .roof-e { fill: #121821; }
#engine .roof-f { fill: #161d27; }
#engine .dorm { fill: #1f2733; stroke: rgba(245, 240, 234, .4); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
#engine .shop { fill: rgba(245, 240, 234, .11); }
#engine .w { cursor: pointer; transition: fill .5s var(--ease); }
#engine .w.sold { fill: rgba(245, 240, 234, .08); }
#engine .w.reserved { fill: rgba(167, 76, 1, .62); }
#engine .w.available { fill: var(--flare); }
#engine .w.sel { fill: var(--qc-on-night); }
#engine .hit { fill: transparent; cursor: pointer; }
#engine .sec-ol { fill: rgba(240, 165, 90, .07); stroke: rgba(240, 165, 90, .8); stroke-width: 1.2; vector-effect: non-scaling-stroke; pointer-events: none; }
#engine .band { fill: rgba(240, 165, 90, .24); stroke: var(--flare); stroke-width: 1.6; vector-effect: non-scaling-stroke; pointer-events: none; transition: transform .55s var(--ease); }
#engine .gz-base { fill: rgba(245, 240, 234, .03); stroke: rgba(245, 240, 234, .14); stroke-width: 1; vector-effect: non-scaling-stroke; }
#engine .gz-post { fill: none; stroke: rgba(245, 240, 234, .3); stroke-width: 1; vector-effect: non-scaling-stroke; }
#engine .gz-roof { fill: #3a210d; stroke: rgba(240, 165, 90, .75); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
#engine .trunk { fill: none; stroke: rgba(245, 240, 234, .16); stroke-width: 1; vector-effect: non-scaling-stroke; }
#engine .tree { fill: none; stroke: rgba(245, 240, 234, .22); stroke-width: 1; vector-effect: non-scaling-stroke; }
/* Decoration lets clicks through to the section and window targets underneath */
#engine .gnd, #engine .prom, #engine .ln, #engine .edge, #engine .roof, #engine .dorm, #engine .shop, #engine .gz-base, #engine .gz-post, #engine .gz-roof, #engine .trunk, #engine .tree { pointer-events: none; }
#engine .ping { fill: none; stroke: var(--flare); stroke-width: 1.5; vector-effect: non-scaling-stroke; pointer-events: none; transform-box: fill-box; transform-origin: center; animation: ping 1.4s var(--ease) both; }
@keyframes ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(3.2); opacity: 0; } }

/* Coming online: outlines draw, then windows light up floor by floor */
#engine .draw { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s var(--ease); }
.js #engine.engine:not(.in) .draw { stroke-dashoffset: 1; }
.js #engine.engine:not(.in) .w { opacity: 0; }
.js #engine.engine.in .w { animation: winon .5s var(--ease) both; animation-delay: calc(1s + var(--f, 0) * 110ms); }
@keyframes winon { from { opacity: 0; } to { opacity: 1; } }

/* Without the script: a still sentence instead of inert controls */
#engine .fallback { display: none; margin-top: 32px; max-width: 640px; }
.no-js #engine .live, .no-app #engine .live { display: none; }
.no-js #engine .fallback, .no-app #engine .fallback { display: block; }
.no-app #engine .w { opacity: 1 !important; animation: none !important; }
.no-app #engine .draw { stroke-dashoffset: 0 !important; }

@media (prefers-reduced-motion: reduce) {
  #engine .w, .js #engine.engine:not(.in) .w, .js #engine.engine.in .w { opacity: 1; animation: none; transition: none; }
  #engine .draw, .js #engine.engine:not(.in) .draw { stroke-dashoffset: 0; transition: none; }
  #engine .band, #engine .chip, #engine .circ, #engine .home, #engine .btn { transition: none; }
  #engine .ping { display: none; }
}

