@font-face { font-family: Montserrat; font-weight: 800; font-display: swap; src: url(../fonts/Montserrat-800.woff2) format('woff2'); }
@font-face { font-family: Montserrat; font-weight: 900; font-display: swap; src: url(../fonts/Montserrat-900.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(../fonts/Inter-600.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 800; font-display: swap; src: url(../fonts/Inter-800.woff2) format('woff2'); }

:root {
  --ink: #13203d;
  --glass: rgba(14, 20, 46, 0.78);
  --glass2: rgba(14, 20, 46, 0.9);
  --line: rgba(255, 255, 255, 0.12);
  --gold: #ffd256;
  --teal: #2ab3b0;
  --cream: #fff6e2;
  --muted: #b9bfd6;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #0d1530; color: var(--cream); font: 600 15px/1.4 Inter, system-ui, sans-serif; overscroll-behavior: none; }
canvas#city { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; display: block; touch-action: none; cursor: grab; }
canvas#city:active { cursor: grabbing; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.top { position: fixed; top: calc(10px + var(--safe-t)); left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: flex-start; pointer-events: none; z-index: 5; }
.brand { pointer-events: auto; display: flex; align-items: center; gap: clamp(6px, 2vw, 9px); flex: none; white-space: nowrap; background: var(--glass); padding: 9px clamp(9px, 3.2vw, 14px) 9px clamp(8px, 2.6vw, 11px); border-radius: 14px; font: 800 clamp(10px, 3.3vw, 13px) Montserrat, sans-serif; letter-spacing: .02em; }
.star { width: 16px; height: 16px; position: relative; display: inline-block; }
.star::before, .star::after { content: ''; position: absolute; inset: 2px; background: var(--teal); }
.star::after { transform: rotate(45deg); }
.pop { pointer-events: auto; background: var(--glass); border-radius: 14px; padding: 6px clamp(9px, 3.2vw, 14px) 7px; text-align: center; min-width: clamp(70px, 21vw, 84px); }
.pop small { display: block; color: var(--gold); font: 800 clamp(9px, 2.6vw, 10px) Montserrat, sans-serif; letter-spacing: .08em; white-space: nowrap; }
.pop b { font: 900 clamp(18px, 6vw, 24px) Montserrat, sans-serif; letter-spacing: -.01em; white-space: nowrap; }
.sample { position: fixed; top: calc(62px + var(--safe-t)); left: 12px; z-index: 5; background: #8c1f2a; color: #fff; font: 800 11px Montserrat, sans-serif; padding: 5px 9px; border-radius: 8px; letter-spacing: .03em; }

body.intro .ctl { display: none; }
.ctl { position: fixed; right: 12px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 5; }
.ctl button { width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line); background: var(--glass); font: 800 24px Montserrat, sans-serif; line-height: 1; }
.ctl button.ico { font-size: 18px; }
.ctl button.on { background: var(--gold); color: var(--ink); }
.ctl #vote { background: var(--gold); color: var(--ink); font-size: 20px; }

.search { position: fixed; left: 12px; right: 12px; bottom: calc(12px + var(--safe-b)); display: flex; gap: 8px; z-index: 6; max-width: 520px; margin: 0 auto; }
.search input, .wcard input { flex: 1; min-width: 0; height: 50px; border-radius: 14px; border: 1px solid var(--line); background: var(--glass2); padding: 0 16px; font: 800 16px Montserrat, sans-serif; outline: none; color: #fff; }
.search input::placeholder, .wcard input::placeholder { color: #8f97b8; font-weight: 800; }
.search input:focus, .wcard input:focus { border-color: var(--gold); }
.search > button { height: 50px; padding: 0 18px; border-radius: 14px; border: 0; background: var(--gold); color: var(--ink); font: 900 16px Montserrat, sans-serif; }
.sugg { position: absolute; left: 0; right: 0; bottom: 58px; margin: 0; padding: 6px; list-style: none; background: var(--glass2); border: 1px solid var(--line); border-radius: 14px; }
.sugg li { padding: 10px 12px; border-radius: 10px; font: 800 15px Montserrat, sans-serif; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; }
.sugg li small { color: var(--muted); font: 600 12px Inter, sans-serif; }
.sugg li:hover, .sugg li.sel { background: rgba(255, 255, 255, .1); }

/* приветствие: карточка прижата к низу; если не влезает (узкий/низкий экран, длинный язык) — прокрутка с верха,
   сверху всегда отступ под шапку (бренд и счётчик не перекрываются с карточкой) */
.welcome { position: fixed; inset: 0; z-index: 10; display: flex; flex-direction: column; align-items: center; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: calc(68px + var(--safe-t)) 16px calc(20px + var(--safe-b)); background: linear-gradient(180deg, rgba(13, 21, 48, 0) 30%, rgba(13, 21, 48, .55) 60%, rgba(13, 21, 48, .92)); transition: opacity .45s; }
.welcome.out { opacity: 0; pointer-events: none; }
.wcard { width: 100%; max-width: 480px; text-align: center; margin-top: auto; flex: none; }
.kicker { display: inline-block; background: var(--gold); color: var(--ink); font: 900 13px Montserrat, sans-serif; padding: 6px 12px; border-radius: 10px; letter-spacing: .02em; }
.wcard h1 { font: 900 32px/1.08 Montserrat, sans-serif; margin: 14px 0 10px; letter-spacing: -.01em; text-shadow: 0 3px 18px rgba(0, 0, 0, .45); }
.wcard p { margin: 0 auto 16px; color: #e3e6f3; max-width: 400px; text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.wcard form { display: flex; flex-direction: column; gap: 10px; }
.wcard input { flex: none; border: 2px solid rgba(255, 210, 86, .55); height: 54px; text-align: center; }
.primary { height: 52px; border: 0; border-radius: 14px; background: var(--gold); color: var(--ink); font: 900 17px Montserrat, sans-serif; padding: 0 20px; box-shadow: 0 8px 24px rgba(255, 210, 86, .25); }
.link { margin-top: 12px; background: none; border: 0; color: #dfe3f5; font: 800 14px Montserrat, sans-serif; text-decoration: underline; text-underline-offset: 3px; }
.wpop { margin-top: 10px; color: var(--muted); font-size: 13px; }
.wpop b { color: var(--gold); font-family: Montserrat; }

.sheet { position: fixed; left: 10px; right: 10px; bottom: calc(72px + var(--safe-b)); z-index: 7; max-width: 520px; margin: 0 auto; background: var(--glass2); border: 1px solid var(--line); border-radius: 20px; padding: 16px 16px 14px; animation: up .3s ease-out; max-height: calc(100dvh - 150px); overflow: auto; }
@keyframes up { from { transform: translateY(16px); opacity: 0; } }
.sheet .x, .mcard .x { position: absolute; top: 8px; right: 10px; width: 34px; height: 34px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .08); font-size: 22px; line-height: 1; }
.sheet .nick { font: 900 24px Montserrat, sans-serif; margin: 2px 40px 4px 0; word-break: break-all; display: flex; align-items: center; gap: 8px; }
.sheet .dot { width: 14px; height: 14px; border-radius: 50%; flex: none; box-shadow: 0 0 0 3px rgba(255, 255, 255, .15); }
.sheet .addr { font: 800 15px Montserrat, sans-serif; color: var(--gold); }
.sheet .meta { color: var(--muted); font-size: 13px; margin-top: 4px; }
.sheet .warn { margin-top: 8px; background: rgba(140, 31, 42, .45); border-radius: 10px; padding: 8px 10px; font-size: 13px; }
.nb { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.nb button { text-align: left; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; min-height: 52px; }
.nb button small { display: block; color: var(--muted); font-size: 11px; }
.nb button span { font: 800 13px Montserrat, sans-serif; word-break: break-all; }
.nb button:disabled { opacity: .45; }
.row { display: flex; gap: 8px; }
.row > * { flex: 1; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 52px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .08); font: 800 15px Montserrat, sans-serif; color: var(--cream); text-decoration: none; padding: 0 14px; }
.lvl { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.lvl .bar { height: 8px; background: rgba(255, 255, 255, .1); border-radius: 6px; overflow: hidden; margin: 8px 0; }
.lvl .bar i { display: block; height: 100%; width: 33%; background: linear-gradient(90deg, var(--teal), var(--gold)); }
.lvl h3 { margin: 0; font: 900 14px Montserrat, sans-serif; }
.lvl p { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.ghost h2 { font: 900 22px Montserrat, sans-serif; margin: 0 40px 6px 0; }
.ghost p { margin: 0 0 12px; color: #e3e6f3; }

.modal { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; grid-template-columns: minmax(0, 440px); justify-content: center; padding: 16px; background: rgba(6, 10, 26, .6); }
.mcard { position: relative; width: 100%; max-width: 440px; background: #121b3c; border: 1px solid var(--line); border-radius: 20px; padding: 18px; }
.mcard h2 { font: 900 22px Montserrat, sans-serif; margin: 0 40px 6px 0; }
.mcard p { color: var(--muted); margin: 0 0 12px; font-size: 14px; }
#vform { display: flex; flex-direction: column; gap: 8px; }
#vform label { display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); border-radius: 12px; padding: 12px; font: 800 15px Montserrat, sans-serif; }
#vform label input[type=radio] { accent-color: var(--gold); width: 18px; height: 18px; }
#vother { flex: 1; min-width: 0; width: 0; background: transparent; border: 0; border-bottom: 1px solid var(--line); outline: none; font: 800 15px Montserrat, sans-serif; color: #fff; }
.msg { margin-top: 10px; background: rgba(42, 179, 176, .18); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.story img { width: 100%; max-height: 62dvh; object-fit: contain; border-radius: 14px; display: block; margin-bottom: 12px; background: #000; }
.toast { position: fixed; left: 50%; top: calc(80px + var(--safe-t)); transform: translateX(-50%); z-index: 30; background: var(--gold); color: var(--ink); font: 800 14px Montserrat, sans-serif; padding: 10px 14px; border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); }

@media (min-width: 760px) {
  .wcard h1 { font-size: 44px; }
  .sheet { left: auto; right: 74px; bottom: 84px; width: 380px; }
  .search { left: 50%; right: auto; width: 460px; transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) { .sheet { animation: none; } .welcome { transition: none; } }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 12px; }
.chips button { border: 1px solid var(--line); background: rgba(14, 20, 46, .72); color: var(--cream); border-radius: 999px; padding: 7px 11px; font: 800 12px Montserrat, sans-serif; }
.chips button:first-child { border-color: #3ff0ff; color: #9ffaff; }
.chips button:nth-child(2) { border-color: #ff4f86; color: #ffc2d4; }
.star-badge { font: 800 11px Montserrat, sans-serif; background: #f2b51d; color: var(--ink); padding: 3px 7px; border-radius: 8px; white-space: nowrap; }
.sheet .special { margin-top: 8px; background: rgba(255, 255, 255, .07); border-left: 3px solid var(--gold); border-radius: 8px; padding: 8px 10px; font-size: 13px; color: #e6e9f5; }

/* ══ Qurish: платные здания (site/shop.js) ══════════════════════════════════ */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes glowp { 0%, 100% { box-shadow: 0 6px 18px rgba(255, 160, 60, .4), inset 0 1px 0 rgba(255, 255, 255, .6); } 50% { box-shadow: 0 6px 26px rgba(255, 160, 60, .7), 0 0 0 4px rgba(255, 210, 86, .2), inset 0 1px 0 rgba(255, 255, 255, .6); } }
@keyframes shUp { from { transform: translateY(40px); opacity: 0; } }
@keyframes shIn { from { transform: translateX(-24px); opacity: 0; } }
@keyframes pop { from { transform: scale(.86); opacity: 0; } }
@keyframes shimmer { from { transform: translateX(-120%) skewX(-20deg); } to { transform: translateX(260%) skewX(-20deg); } }

.ctl button.build { height: 66px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 0; color: var(--ink);
  background: linear-gradient(165deg, #ffe7a0, #ffc23a 50%, #ff9a3c); font: 900 10px Montserrat, sans-serif; letter-spacing: .01em; animation: glowp 2.6s ease-in-out infinite; }
.ctl button.build { padding: 0; }
html[lang=ru] .ctl button.build span { font-size: 9px; letter-spacing: 0; } /* «Строить» шире «Qurish» */
.ctl button.build svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
body:not(.shop-ready) .ctl button.build, body:not(.shop-ready) .wbuild, body:not(.shop-ready) .bcta { display: none; }
body.shopping .ctl, body.shopping .search, body.shopping #card { display: none !important; }

.wbuild { margin: 10px auto 0; display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255, 140, 220, .55); color: #ffd9f1; background: linear-gradient(135deg, rgba(91, 42, 134, .7), rgba(178, 58, 138, .55));
  border-radius: 999px; padding: 9px 16px; font: 800 13px Montserrat, sans-serif; box-shadow: 0 6px 20px rgba(178, 58, 138, .3); }
.wbuild span { color: var(--gold); font-size: 18px; line-height: 1; }
.wbuild.gb { display: flex; width: 100%; justify-content: center; margin-top: 10px; }
.note.edge { background: rgba(255, 210, 86, .1); color: #f6e7b8; margin: 0 0 10px; }
.note.edge .ni { color: var(--gold); }

/* кнопка в карточке дома */
.bcta { margin: 12px 0 2px; display: flex; gap: 8px; }
.bigcta { position: relative; overflow: hidden; flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 10px 10px; border: 0; border-radius: 16px; text-align: left; color: #fff;
  background: linear-gradient(135deg, #2b1d63, #5b2a86 45%, #b23a8a); box-shadow: 0 8px 24px rgba(178, 58, 138, .32), inset 0 1px 0 rgba(255, 255, 255, .18); }
.bigcta::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 34%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .18), transparent); animation: shimmer 3.2s ease-in-out infinite 1s; }
.bigcta .ic { width: 40px; height: 40px; border-radius: 12px; flex: none; background: rgba(255, 255, 255, .13) center/26px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffd256' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 22V7l4-5 4 5v15'/%3E%3Cpath d='M5 22h14M11 9.5h2M11 13h2M11 16.5h2'/%3E%3C/svg%3E"); }
.bigcta .tx { min-width: 0; }
.bigcta b { display: block; font: 900 15px/1.15 Montserrat, sans-serif; }
.bigcta small { display: block; color: #f6d9ff; font-size: 11.5px; line-height: 1.3; } /* в 2 строки, если не влезает (ru/kk длиннее) */
.bigcta .go { margin-left: auto; font: 900 28px/1 Montserrat, sans-serif; color: var(--gold); }
.btn.upg { flex: none; width: 104px; height: auto; min-height: 62px; padding: 6px 8px; flex-direction: column; gap: 2px; text-align: center; line-height: 1.15; }
.btn.upg b { font: 800 12.5px/1.15 Montserrat, sans-serif; }
.btn.upg small { color: var(--muted); font: 600 11px Inter, sans-serif; }
.sheet .special.paid { border-left-color: #ff7ad9; }

/* лист заказа: телефон — снизу, десктоп — панель слева */
.shop { position: fixed; z-index: 15; left: 0; right: 0; bottom: 0; max-height: 84dvh; display: flex; flex-direction: column; color: var(--cream);
  background: rgba(12, 18, 42, .95); border: 1px solid var(--line); border-bottom: 0; border-radius: 24px 24px 0 0; padding-bottom: var(--safe-b);
  box-shadow: 0 -14px 40px rgba(0, 0, 0, .45); animation: shUp .32s cubic-bezier(.2, .9, .3, 1.05); }
.shop::before { content: ''; flex: none; width: 42px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .24); margin: 8px auto 0; }
.shop[data-step=cfg] { max-height: 56dvh; }
.shop[data-step=nick] { max-height: 70dvh; }
.sh-in { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.sh-head { display: flex; align-items: center; gap: 8px; padding: 6px 12px 2px; }
.sh-ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .08); font: 400 26px/1 Inter, sans-serif; }
.sh-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.sh-ic.sp { background: none; }
.sh-title { flex: 1; min-width: 0; text-align: center; }
.sh-title b { display: block; font: 900 18px/1.2 Montserrat, sans-serif; }
.sh-title small { display: flex; justify-content: center; align-items: baseline; gap: 2px; color: var(--muted); font-size: 12px; margin-top: 1px; min-width: 0; }
.sh-title small .who { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-title small .lnk { flex: none; }
.lnk { background: none; border: 0; padding: 0 0 0 4px; color: var(--gold); font: 800 12px Montserrat, sans-serif; text-decoration: underline; text-underline-offset: 2px; }
.sh-steps { display: flex; gap: 6px; justify-content: center; padding: 6px 0 10px; }
.sh-steps i { width: 24px; height: 4px; border-radius: 3px; background: rgba(255, 255, 255, .15); transition: background .3s; }
.sh-steps i.on { background: var(--gold); }
.shop[data-step=nick] .sh-steps { display: none; }
.sh-body { flex: 1; min-height: 0; overflow: auto; padding: 2px 16px 14px; overscroll-behavior: contain; }
.sh-foot { flex: none; padding: 10px 16px 14px; border-top: 1px solid var(--line); }
.primary.wide, .btn.wide { width: 100%; }
.sh-err { background: rgba(255, 92, 108, .14); border: 1px solid rgba(255, 92, 108, .4); color: #ffe0e4; border-radius: 12px; padding: 10px 12px; font-size: 13.5px; margin-bottom: 10px; }
.sh-err .btn { margin-top: 10px; width: 100%; height: 46px; }
.btn.gold { background: var(--gold); color: var(--ink); border: 0; }

/* шаг 1: ник */
.lead { color: #dfe3f2; font-size: 14px; margin: 2px 0 12px; }
.nickf { display: flex; flex-direction: column; gap: 10px; }
.at { display: flex; align-items: center; height: 56px; border-radius: 14px; border: 2px solid rgba(255, 210, 86, .55); background: var(--glass2); padding: 0 14px; }
.at:focus-within { border-color: var(--gold); }
.at span { font: 900 19px Montserrat, sans-serif; color: var(--gold); }
.at input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: #fff; font: 800 17px Montserrat, sans-serif; padding-left: 4px; }
.at input::placeholder { color: #8f97b8; }
.sugg2 { list-style: none; margin: 0; padding: 4px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 12px; }
.sugg2 li { display: flex; justify-content: space-between; gap: 8px; padding: 10px; border-radius: 9px; font: 800 14px Montserrat, sans-serif; cursor: pointer; }
.sugg2 li small { color: var(--muted); font: 600 12px Inter, sans-serif; }
.sugg2 li:hover { background: rgba(255, 255, 255, .08); }

/* шаг 2: что строим */
.kgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kcard { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 7px 7px 10px; text-align: left; color: var(--cream); border-radius: 18px;
  border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03)); transition: transform .12s; }
.kcard:active { transform: scale(.985); }
.kcard.k-osmonopar { border-color: rgba(122, 246, 255, .4); box-shadow: inset 0 0 0 1px rgba(122, 246, 255, .08), 0 6px 24px rgba(63, 240, 255, .08); }
.kcard.k-biznes { border-color: rgba(255, 138, 61, .4); }
.kcard.k-maxsus { border-color: rgba(255, 79, 134, .45); }
.kcard.k-kazino { border-color: rgba(255, 79, 216, .5); box-shadow: 0 6px 24px rgba(255, 79, 216, .1); }
.kthumb { width: 100%; height: 104px; flex: none; border-radius: 12px; background: linear-gradient(180deg, #3c5487, #b98493 70%, #6f6068); }
.kt { display: flex; flex-direction: column; gap: 5px; min-width: 0; flex: 1; padding: 0 3px; }
.kt b { display: flex; align-items: center; gap: 6px; font: 900 16px/1.15 Montserrat, sans-serif; }
.ki svg, .ci svg { width: 20px; height: 20px; display: block; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.k-osmonopar .ki { color: #7af6ff; } .k-biznes .ki { color: #ffb36b; } .k-maxsus .ki { color: #ff8fb3; } .k-kazino .ki { color: #ff7ae0; }
.kt small { color: #cfd4e6; font-size: 11.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.kp { align-self: flex-start; margin-top: auto; background: var(--gold); color: var(--ink); font: 900 13.5px Montserrat, sans-serif; padding: 5px 9px; border-radius: 9px; white-space: nowrap; }
.kp i { font-style: normal; font-weight: 800; font-size: 11px; opacity: .75; }
.note { display: flex; align-items: flex-start; gap: 9px; margin: 10px 0 0; padding: 9px 11px; border-radius: 12px; font-size: 12.5px; line-height: 1.35; }
.note .ni svg { width: 18px; height: 18px; display: block; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.note.free { background: rgba(42, 179, 176, .13); color: #cfe9e8; }
.note.free .ni { color: #7fe3dd; }
.note.soon { background: transparent; border: 1px dashed rgba(255, 210, 86, .45); color: #f3e2b0; }
.note.soon .ni { color: var(--gold); }
.kzn { margin: 0 0 6px; color: #d3d8ea; font-size: 12.5px; text-align: center; }
.fine .sbx { color: #ffb36b; }

/* шаг 3: настройка */
.hero { flex: none; text-align: center; padding: 0 16px 10px; }
.hero b { display: block; font: 900 clamp(21px, 6.9vw, 27px)/1.1 Montserrat, sans-serif; color: var(--gold); letter-spacing: -.01em; }
.hero small { color: var(--muted); font-size: 13px; }
.hero em { color: #7af6ff; font-style: normal; font-weight: 800; }
.tabs { flex: none; display: flex; gap: 4px; margin: 0 16px 10px; padding: 4px; border-radius: 14px; background: rgba(255, 255, 255, .07); }
.tabs button { flex: 1; min-width: 0; height: 36px; border: 0; border-radius: 10px; background: none; color: var(--muted); font: 800 12.5px Montserrat, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tabs button.on { background: var(--cream); color: var(--ink); }
.sh-body.cfg { padding-top: 4px; }
.floors { display: flex; align-items: center; gap: 10px; padding-top: 4px; }
.pm { width: 46px; height: 46px; flex: none; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .08); font: 900 24px/1 Montserrat, sans-serif; }
#shq { flex: 1; min-width: 0; -webkit-appearance: none; appearance: none; height: 12px; border-radius: 7px; outline: none; margin: 0;
  background: linear-gradient(90deg, #ffb627, var(--gold) var(--p, 22%), rgba(255, 255, 255, .14) var(--p, 22%)); }
#shq::-webkit-slider-thumb { -webkit-appearance: none; width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 5px solid var(--gold); box-shadow: 0 3px 12px rgba(0, 0, 0, .45); cursor: pointer; }
#shq::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 5px solid var(--gold); box-shadow: 0 3px 12px rgba(0, 0, 0, .45); cursor: pointer; }
.qq { display: flex; gap: 6px; margin-top: 14px; }
.qq button { flex: 1; height: 38px; border-radius: 11px; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); font: 800 14px Montserrat, sans-serif; }
.qq button.on { background: var(--gold); color: var(--ink); border-color: transparent; }
.chips2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.chips2.g3 { grid-template-columns: repeat(3, 1fr); }
.chips2 button { display: flex; align-items: center; gap: 9px; min-width: 0; height: 48px; padding: 0 10px; border-radius: 13px; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); font: 800 13px/1.15 Montserrat, sans-serif; text-align: left; }
.chips2.g3 button { flex-direction: column; justify-content: center; gap: 4px; height: 64px; padding: 4px; font-size: 11px; text-align: center; }
.chips2 button.on { background: var(--cream); color: var(--ink); border-color: transparent; box-shadow: 0 0 0 2px var(--gold); }
.ci svg { width: 22px; height: 22px; }
.sw { width: 28px; height: 28px; flex: none; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.sw-shisha { background: linear-gradient(135deg, #1e3a5f 0%, #4f86c4 40%, #cfeaff 47%, #2a5486 55%, #1b3354 100%); }
.sw-neon { background: #0e1122; box-shadow: inset 0 0 0 2px #ff4fd8, 0 0 9px rgba(255, 79, 216, .8); }
.sw-klassik { background: radial-gradient(#2b3347 38%, transparent 42%) 1px 1px / 7px 7px, #e3d6bf; }
.sw-oltin { background: linear-gradient(135deg, #8a6a24, #e8c25a 42%, #fff3c4 49%, #c9962a 58%, #7a5a1c); }
.sws { display: grid; grid-template-columns: repeat(auto-fit, 42px); justify-content: center; gap: 10px 9px; padding: 8px 0 4px; }
.sws button { position: relative; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .22), 0 3px 10px rgba(0, 0, 0, .3); transition: transform .12s; }
.sws button.on { transform: scale(1.1); box-shadow: 0 0 0 3px #0c122a, 0 0 0 6px var(--gold), 0 4px 14px rgba(0, 0, 0, .4); }
.sws button.on i { position: absolute; inset: 12px; border-radius: 50%; background: rgba(255, 255, 255, .9); box-shadow: 0 0 0 2px rgba(0, 0, 0, .15); }
.nom { display: flex; flex-direction: column; gap: 7px; }
.nom span { font: 800 13px Montserrat, sans-serif; color: var(--muted); }
.nom input { height: 54px; border-radius: 14px; border: 2px solid rgba(255, 210, 86, .5); background: var(--glass2); padding: 0 14px; color: #fff; font: 900 19px Montserrat, sans-serif; outline: none; }
.nom input:focus { border-color: var(--gold); }
.nom input.bad { border-color: #ff5c6c; }
.nom small { color: var(--muted); font-size: 11.5px; }
.mhint { display: block; margin: -2px 0 6px; color: var(--muted); font-size: 11.5px; text-align: center; }
.models { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: 100px; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scroll-snap-type: x proximity; scrollbar-width: none; overscroll-behavior-x: contain; }
.models::-webkit-scrollbar { display: none; }
.mcard2 { position: relative; scroll-snap-align: start; display: flex; flex-direction: column; min-width: 0; padding: 0; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); }
.mcard2 canvas { display: block; width: 100%; height: 66px; background: linear-gradient(180deg, #3c5487, #b98493 70%, #6f6068); }
.mcard2 span { padding: 5px 3px 6px; font: 800 11px/1.15 Montserrat, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mcard2 .newb { position: absolute; top: 4px; left: 4px; z-index: 1; padding: 2px 5px; border-radius: 6px; background: #ff4f86; color: #fff; font: 900 8.5px/1.2 Montserrat, sans-serif; font-style: normal; letter-spacing: .03em; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.mcard2.on { border-color: transparent; box-shadow: 0 0 0 2px var(--gold); }
.mcard2.on span { background: var(--gold); color: var(--ink); }
.mton { margin-top: 8px; text-align: center; }
.mton small { display: block; color: var(--muted); font-size: 12px; }
.mton em { display: block; padding: 8px 0 2px; color: var(--muted); font-size: 12.5px; font-style: normal; }

/* шаг 4: подтверждение */
.sum { padding: 2px 14px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); }
.row2 { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px dashed rgba(255, 255, 255, .12); font-size: 14px; }
.row2:last-child { border-bottom: 0; }
.row2 > span { color: var(--muted); flex: none; }
.row2 b { font: 800 14px Montserrat, sans-serif; text-align: right; min-width: 0; word-break: break-word; }
.row2 b small { display: block; color: var(--muted); font: 600 12px Inter, sans-serif; }
.row2.tot b { font: 900 23px Montserrat, sans-serif; color: var(--gold); }
.shop[data-step=sum] { max-height: 70dvh; }
.dot { display: inline-block; width: 20px; height: 20px; border-radius: 50%; vertical-align: middle; box-shadow: 0 0 0 2px rgba(255, 255, 255, .3); }
.rules { margin: 10px 0 0; border-radius: 12px; background: rgba(255, 255, 255, .04); padding: 2px 12px; }
.rules summary { padding: 9px 0; font: 800 13px Montserrat, sans-serif; color: #cfe9e8; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.rules summary::-webkit-details-marker { display: none; }
.rules summary::after { content: '+'; color: var(--gold); font-size: 18px; line-height: 1; }
.rules[open] summary::after { content: '−'; }
.rules ul { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 7px; }
.rules li { position: relative; padding-left: 22px; color: #d3d8ea; font-size: 12.5px; }
.rules li::before { content: ''; position: absolute; left: 5px; top: 6px; width: 7px; height: 7px; border-radius: 2px; background: var(--teal); transform: rotate(45deg); }
.pay { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 18px; background: linear-gradient(135deg, #ffe7a0, #ffc23a 55%, #ff9a3c); }
.pay:disabled { background: rgba(255, 255, 255, .12); color: #c3c8dc; box-shadow: none; cursor: default; }
.pay .li svg { width: 20px; height: 20px; display: block; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.spin { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 3px solid rgba(19, 32, 61, .25); border-top-color: var(--ink); animation: spin .8s linear infinite; }
.fine { display: block; margin-top: 8px; text-align: center; color: var(--muted); font-size: 11.5px; }

/* возврат с оплаты */
.payres { z-index: 40; background: rgba(6, 10, 26, .5); }
.payres canvas.conf { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; pointer-events: none; z-index: 2; }
.pcard { position: relative; z-index: 1; width: 100%; max-width: 400px; margin-top: 30px; padding: 24px 20px 20px; text-align: center; border-radius: 24px; border: 1px solid rgba(255, 210, 86, .35);
  background: linear-gradient(180deg, #19255085, #0f1734), #121b3c; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); animation: pop .42s cubic-bezier(.2, 1.4, .4, 1); }
.pcard h2 { margin: 12px 0 4px; font: 900 30px/1.1 Montserrat, sans-serif; }
.pcard p { margin: 0 0 14px; color: #d3d8ea; font-size: 14px; }
.pcard p.big { margin-bottom: 10px; font: 900 21px Montserrat, sans-serif; color: var(--gold); }
.pcard .row { margin-top: 4px; }
.pbadge { width: 76px; height: 76px; margin: -62px auto 0; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #ffe7a0, #ffb627);
  box-shadow: 0 10px 30px rgba(255, 182, 39, .5), 0 0 0 7px #121b3c; color: var(--ink); font: 900 38px Montserrat, sans-serif; }
.pbadge svg { width: 40px; height: 40px; fill: none; stroke: var(--ink); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.pbadge.bad { background: #ff5c6c; color: #fff; box-shadow: 0 10px 30px rgba(255, 92, 108, .4), 0 0 0 7px #121b3c; }
.pspin { width: 56px; height: 56px; margin: 4px auto 0; border-radius: 50%; border: 5px solid rgba(255, 255, 255, .12); border-top-color: var(--gold); animation: spin .9s linear infinite; }

@media (min-width: 760px) {
  .shop, .shop[data-step] { left: 16px; right: auto; top: auto; bottom: 16px; width: 410px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); border-radius: 24px; border-bottom: 1px solid var(--line); animation: shIn .3s ease-out; }
  .shop::before { display: none; }
  .sh-head { padding-top: 12px; }
  .models { grid-auto-flow: row; grid-template-rows: none; grid-template-columns: repeat(4, 1fr); grid-auto-columns: auto; max-height: 330px; overflow-x: hidden; overflow-y: auto; }
  .mhint { display: none; }
  .kthumb { height: 112px; }
}
@media (prefers-reduced-motion: reduce) { .shop, .pcard { animation: none; } .ctl button.build, .bigcta::after { animation: none; } }

/* карточка «hovling hali yoʻq»: главное действие — построить сейчас (крупно, сверху), ниже — бесплатный путь */
.ghost .bcta.gb { margin: 4px 0 10px; }
.ghost .bigcta.gbig { padding: 15px 14px; border-radius: 18px; gap: 12px; }
.ghost .bigcta.gbig .ic { width: 50px; height: 50px; border-radius: 14px; background-size: 30px; }
.ghost .bigcta.gbig b { font-size: 20px; }
.ghost .bigcta.gbig small { font-size: 13px; margin-top: 3px; }
.ghost .bigcta.gbig .go { font-size: 26px; }
.ghost .row.grow { display: flex; gap: 8px; }
.ghost .row.grow .btn { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 58px; padding: 8px 10px; text-decoration: none; }
.ghost .gfree { flex: 1.5 !important; border: 1.5px solid rgba(255, 210, 86, .55) !important; color: var(--cream, #fff6e2); }
.ghost .gfree b { font: 800 15px/1.15 Montserrat, sans-serif; color: var(--gold, #ffd256); }
.ghost .gfree small { font-size: 11.5px; color: #c9cee4; margin-top: 3px; }
.ghost .gagain { font-weight: 800; }

/* ступени цены этажа небоскрёба */
.tiers { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin-top: 12px; }
.tiers span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 2px; border-radius: 10px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04); font: 800 13px Montserrat, sans-serif; color: var(--ink2, #cfd6e4); }
.tiers span b { font: 700 10.5px Montserrat, sans-serif; opacity: .7; letter-spacing: .02em; }
.tiers span.on { background: var(--gold); color: var(--ink); border-color: transparent; }
.tiers span.on b { opacity: .85; }
.tnote { margin: 8px 2px 0; font: 600 11.5px/1.35 Montserrat, sans-serif; opacity: .65; }

/* MEGA-buyurtma: кнопка и форма */
.mega { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 14px; padding: 13px 14px; border-radius: 16px; text-align: left;
  border: 1.5px solid rgba(255, 210, 90, .55); background: linear-gradient(135deg, rgba(255, 196, 60, .16), rgba(120, 70, 255, .14)); color: inherit; cursor: pointer; }
.mega .mi { font-size: 26px; line-height: 1; }
.mega .mt { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.mega .mt b { font: 800 15px Montserrat, sans-serif; color: var(--gold); }
.mega .mt small { font: 600 12px/1.3 Montserrat, sans-serif; opacity: .8; }
.mega .go { font: 800 24px Montserrat, sans-serif; color: var(--gold); }
.corp .cf { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; font: 700 12.5px Montserrat, sans-serif; opacity: .95; }
.corp .cf input, .corp .cf textarea { width: 100%; box-sizing: border-box; padding: 12px 13px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .06); color: inherit; font: 600 15px Inter, sans-serif; resize: vertical; }
.corp .cf input:focus, .corp .cf textarea:focus { outline: none; border-color: var(--gold); }
.corp-ok { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 30px 10px; }
.corp-ok .okic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--ink); font: 900 34px Montserrat, sans-serif; }
.corp-ok b { font: 800 19px Montserrat, sans-serif; }

/* участки погасших домов на продажу: список в листе магазина */
.joyl { max-height: 46vh; overflow-y: auto; margin-top: 10px; }
.joyl li span { flex: 1; }
.joyl li small { color: var(--gold); font: 800 13px Montserrat, sans-serif; white-space: nowrap; }
.joyl li[data-joy=""] small { white-space: normal; text-align: right; min-width: 0; } /* «свободный участок в городе · бесплатно» — в 2 строки на узком экране */
.joyl li.on { background: rgba(255, 210, 86, .16); outline: 1px solid rgba(255, 210, 86, .5); }

/* ── языки: кнопка в шапке, меню, ряд на приветствии ── */
.i18n-wait body > *:not(#city):not(#boot) { visibility: hidden; } /* пока не переведено (site/lang-early.js); прелоадер — на своём языке сам */
.tr { display: flex; align-items: flex-start; gap: clamp(5px, 1.6vw, 8px); margin-left: 6px; }
.langbtn { pointer-events: auto; display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 11px 0 9px; border-radius: 14px; border: 1px solid var(--line); background: var(--glass); color: var(--cream); font: 900 13px Montserrat, sans-serif; letter-spacing: .03em; cursor: pointer; }
/* пока открыто приветствие, язык выбирают чипами в карточке (#wlang) — кнопка в шапке не дублирует их */
body.intro .langbtn { display: none; }
.langbtn svg { width: 18px; height: 18px; fill: none; stroke: var(--gold); stroke-width: 1.8; }
.langbtn[aria-expanded="true"] { border-color: var(--gold); }
.langmenu { position: fixed; top: calc(58px + var(--safe-t)); right: 12px; z-index: 30; min-width: 200px; padding: 6px; border-radius: 16px; background: var(--glass2); border: 1px solid var(--line); box-shadow: 0 14px 40px rgba(0, 0, 0, .45); animation: up .18s ease-out; }
.langmenu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 11px 12px; border: 0; border-radius: 11px; background: transparent; color: var(--cream); font: 800 15px Montserrat, sans-serif; text-align: left; cursor: pointer; }
.langmenu button:hover, .langmenu button:focus-visible { background: rgba(255, 255, 255, .08); outline: none; }
.langmenu button small { min-width: 26px; color: var(--muted); font: 800 11px Montserrat, sans-serif; letter-spacing: .05em; }
.langmenu button.on { color: var(--gold); }
.langmenu button.on::after { content: "✓"; margin-left: auto; font-weight: 900; }
.wlang { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin: 0 auto 14px; }
.wlang button { height: 34px; padding: 0 10px; border-radius: 17px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(13, 21, 48, .55); color: #e3e6f3; font: 800 12px Montserrat, sans-serif; cursor: pointer; }
.wlang button.on { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.sum-fx { display: block; margin-top: 2px; color: var(--muted); font: 600 12px Inter, sans-serif; text-align: right; }
.fine .methods { display: block; margin-top: 4px; }
.joyl .fxs { font: 700 11.5px Inter, sans-serif; font-style: normal; color: var(--muted); }
@media (max-width: 380px) { .langbtn { padding: 0 8px; gap: 4px; } .wlang button { padding: 0 8px; font-size: 11.5px; } .sheet .nick { font-size: 21px; } }
@media (max-width: 345px) { .top { left: 8px; right: 8px; } .langbtn { height: 36px; padding: 0 7px; } .langbtn svg { display: none; } }
/* невысокие экраны (телефон с панелями браузера, iPhone SE): карточка приветствия компактнее, остальное — прокруткой */
@media (max-height: 760px) {
  .wlang { margin-bottom: 10px; } .wlang button { height: 31px; }
  .wcard h1 { font-size: 28px; margin: 10px 0 8px; }
  .wcard p { font-size: 14px; line-height: 1.36; margin-bottom: 12px; }
  .wcard form { gap: 8px; } .wcard input { height: 50px; } .wcard .primary { height: 50px; }
  .chips { margin-top: 10px; } .link { margin-top: 9px; } .wpop { margin-top: 6px; }
}
@media (max-height: 620px) { .wcard h1 { font-size: 24px; } .wcard p { font-size: 13px; } .wcard input, .wcard .primary { height: 46px; } }

/* уход на оплату: запасная ссылка и подсказка про медленный интернет (shop.js → payHelp) */
.payhelp { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.payhelp:empty { display: none; }
.payhelp .paylink { height: 44px; border-color: rgba(255, 210, 86, .6); color: var(--gold); }
.payhelp small { color: var(--muted); font-size: 12px; text-align: center; }

/* ═════════ АУКЦИОН (site/auction.js) — весь блок только для аукциона; аукционы выключены — этих элементов нет ═════════ */
.auc-chip { position: fixed; z-index: 11; top: calc(62px + var(--safe-t)); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 15px 0 7px; border-radius: 20px; border: 1.5px solid rgba(255, 210, 86, .9); color: var(--cream); cursor: pointer; white-space: nowrap;
  background: linear-gradient(135deg, rgba(58, 42, 6, .94), rgba(14, 20, 46, .94)); font: 800 13px Montserrat, sans-serif; animation: aucPulse 2.2s ease-out infinite; }
.auc-chip .ai { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--ink); }
.auc-chip svg, .auc-kick svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.auc-chip b { color: var(--gold); letter-spacing: .04em; text-transform: uppercase; }
.auc-chip .ap { font: 900 13.5px Montserrat, sans-serif; font-variant-numeric: tabular-nums; }
@keyframes aucPulse { 0% { box-shadow: 0 0 0 0 rgba(255, 210, 86, .6), 0 8px 24px rgba(0, 0, 0, .35); }
  70% { box-shadow: 0 0 0 13px rgba(255, 210, 86, 0), 0 8px 24px rgba(0, 0, 0, .35); } 100% { box-shadow: 0 0 0 0 rgba(255, 210, 86, 0), 0 8px 24px rgba(0, 0, 0, .35); } }
body.shopping .auc-chip, body.shopping .auc-sheet, body.auc-open .auc-chip { display: none !important; }
.auc-sheet { position: fixed; left: 10px; right: 10px; bottom: calc(72px + var(--safe-b)); z-index: 12; max-width: 520px; margin: 0 auto; padding: 16px 16px 14px;
  max-height: calc(100dvh - 150px); overflow: auto; border-radius: 22px; border: 1px solid rgba(255, 210, 86, .5); color: var(--cream);
  background: linear-gradient(180deg, rgba(30, 38, 74, .96), rgba(14, 20, 46, .97)); box-shadow: 0 -10px 40px rgba(0, 0, 0, .45); animation: up .3s ease-out; }
.auc-sheet .x { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .08); color: var(--cream); font-size: 22px; line-height: 1; cursor: pointer; }
.auc-kick { display: flex; align-items: center; gap: 8px; }
.auc-kick .kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; letter-spacing: .08em; padding: 5px 11px 5px 8px; }
.auc-pill { font: 800 11.5px Montserrat, sans-serif; color: #9fe9e4; background: rgba(42, 179, 176, .18); border-radius: 8px; padding: 4px 8px; }
.auc-sheet h2 { margin: 9px 40px 0 0; font: 900 21px/1.18 Montserrat, sans-serif; overflow-wrap: anywhere; }
.auc-desc { margin: 5px 0 0; color: #d3d8ea; font-size: 13.5px; }
.auc-price { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.auc-price small { flex-basis: 100%; color: var(--muted); font: 700 12px Inter, sans-serif; text-transform: uppercase; letter-spacing: .06em; }
.auc-price b { font: 900 32px/1.05 Montserrat, sans-serif; color: var(--gold); font-variant-numeric: tabular-nums; text-shadow: 0 6px 26px rgba(255, 196, 60, .25); }
.auc-price i { font-style: normal; color: var(--muted); font-size: 13px; }
.auc-bar { height: 6px; margin-top: 10px; border-radius: 6px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.auc-bar i { display: block; height: 100%; min-width: 6px; border-radius: 6px; background: linear-gradient(90deg, #ffe7a0, #ffb627, #ff7a3c); transition: width .6s; }
.auc-next { display: flex; align-items: center; gap: 8px; margin-top: 9px; font-size: 13.5px; color: #e6e9f5; }
.auc-next b { color: var(--gold); font: 900 14px Montserrat, sans-serif; font-variant-numeric: tabular-nums; }
.auc-next .dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #ff7a3c; box-shadow: 0 0 0 0 rgba(255, 122, 60, .7); animation: aucDot 1.4s ease-out infinite; }
.auc-next.last { color: var(--muted); }
@keyframes aucDot { 70% { box-shadow: 0 0 0 7px rgba(255, 122, 60, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 122, 60, 0); } }
.auc-held { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 150, 60, .14); border: 1px solid rgba(255, 170, 80, .45); }
.auc-held b { display: block; font: 800 14px Montserrat, sans-serif; color: #ffcf8a; }
.auc-held small { color: #f2dcc0; font-size: 12.5px; }
.auc-held small b { display: inline; font-size: 12.5px; }
.auc-held .pulse { width: 12px; height: 12px; flex: none; margin-top: 3px; border-radius: 50%; background: #ffb36b; animation: aucDot 1.2s ease-out infinite; }
.auc-fin { margin-top: 12px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .06); text-align: center; }
.auc-fin b { display: block; font: 900 20px Montserrat, sans-serif; }
.auc-fin.ok b { color: var(--gold); }
.auc-fin small { color: var(--muted); font-size: 13px; }
.auc-rows { margin-top: 12px; border-top: 1px dashed rgba(255, 255, 255, .14); }
.auc-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed rgba(255, 255, 255, .1); font-size: 13.5px; }
.auc-rows span { color: var(--muted); flex: none; }
.auc-rows b { font: 800 13.5px Montserrat, sans-serif; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.auc-buy { margin-top: 14px; height: auto; min-height: 56px; padding: 8px 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  background: linear-gradient(135deg, #ffe7a0, #ffc23a 55%, #ff9a3c); line-height: 1.15; }
.auc-buy span { font: 800 13px Montserrat, sans-serif; letter-spacing: .02em; text-transform: uppercase; opacity: .85; }
.auc-buy b { font: 900 20px Montserrat, sans-serif; font-variant-numeric: tabular-nums; }
.auc-buy:disabled span { opacity: 1; text-transform: none; font-size: 15px; }
.auc-buy:disabled { background: rgba(255, 255, 255, .12); color: #c3c8dc; box-shadow: none; cursor: default; }
.auc-how { margin: 9px 0 0; text-align: center; color: var(--muted); font-size: 12px; }
.auc-back { border: 0; background: none; padding: 0 0 8px; color: var(--gold); font: 800 13px Montserrat, sans-serif; cursor: pointer; }
.auc-list { display: grid; gap: 8px; margin-top: 12px; }
.auc-list button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; border-radius: 14px; border: 1px solid rgba(255, 210, 86, .35);
  background: rgba(255, 255, 255, .05); color: inherit; text-align: left; cursor: pointer; }
.auc-list span { flex: 1; min-width: 0; display: grid; gap: 2px; }
.auc-list b { font: 800 14.5px Montserrat, sans-serif; overflow-wrap: anywhere; }
.auc-list small { color: var(--muted); font-size: 12px; }
.auc-list em { font: 900 14px Montserrat, sans-serif; font-style: normal; color: var(--gold); white-space: nowrap; }
@media (min-width: 760px) { .auc-sheet { left: 16px; right: auto; bottom: 16px; width: 410px; } }
@media (prefers-reduced-motion: reduce) { .auc-chip, .auc-next .dot, .auc-held .pulse, .auc-sheet { animation: none; } }
/* ═════════ /АУКЦИОН ═════════ */

/* ── 06.11 вариации зданий (agent variations): образцы новых стилей osmonoʻpar (chips sw-*) и радужный неон казино ── */
.sw-milliy { background: linear-gradient(#1f9b93 0 24%, #e9d7b4 24% 76%, #1f9b93 76%); box-shadow: inset 0 0 0 2px #1f9b93, inset 0 0 0 4px #e2b44a; }
.sw-dumaloq { border-radius: 50%; background: radial-gradient(circle at 34% 32%, #dff2ff 0 10%, #4f86c4 32%, #1b3354 78%); }
.sw-spiral { background: repeating-linear-gradient(62deg, #24477a 0 5px, #6fa6e0 5px 9px); }
.sw-bog { background: repeating-linear-gradient(#eceee8 0 5px, #5c9a45 5px 10px); }
.sws button[data-v="kamalak"] { background: conic-gradient(#ff4f86, #ffd256, #35e07a, #21d4c4, #3f8cff, #9b6bff, #ff4f86); }

/* ── товары v2 (docs/products_v2.md): гостиница, добавки к городу, места на схемах ── */
.kcard.k-mehmonxona { border-color: rgba(217, 178, 74, .55); box-shadow: 0 6px 24px rgba(217, 178, 74, .1); }
.k-mehmonxona .ki { color: #ffd98a; }
.xsec { display: flex; align-items: center; gap: 8px; margin: 16px 2px 8px; font: 900 14px Montserrat, sans-serif; color: var(--cream); }
.xsec i { padding: 2px 6px; border-radius: 6px; background: #ff4f86; color: #fff; font: 900 9px/1.3 Montserrat, sans-serif; font-style: normal; letter-spacing: .04em; }
.xlist { display: grid; gap: 8px; }
.xcard { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 9px 10px; text-align: left; color: var(--cream); border-radius: 15px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .03)); transition: transform .12s; }
.xcard:active { transform: scale(.985); }
.xi { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .08); }
.xi svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.x-hovli .xi { color: #7fe3dd; } .x-salyut .xi { color: #ff9ad5; } .x-kocha .xi { color: #7fb6ff; } .x-shit .xi { color: #ffb36b; }
.x-tabrik .xi { color: #ff6f9c; } .x-led .xi { color: #7dff9e; } .x-stadion .xi { color: #ffd256; }
.xt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.xt b { font: 900 14.5px/1.15 Montserrat, sans-serif; }
.xt small { color: #cfd4e6; font-size: 11.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.xcard .kp { align-self: center; margin: 0; flex: none; font-size: 12.5px; }
.xcard.off { opacity: .62; }
.xcard.off .xt small { color: #ffd0a0; }
.xcard.off .kp { background: rgba(255, 255, 255, .14); color: var(--cream); }
.xlead { margin: 0 0 10px; color: #dfe3f2; font-size: 13.5px; }
.xnote { margin: 9px 2px 0; color: var(--muted); font-size: 12px; line-height: 1.35; }
.xsub { display: block; margin: 4px 0 -2px; color: var(--muted); font: 800 12px Montserrat, sans-serif; text-align: center; }
.chips2.g1 { grid-template-columns: 1fr; }
.chips2 button small { display: block; margin-top: 2px; color: var(--muted); font: 700 11px/1.2 Inter, sans-serif; }
.chips2 button.on small { color: #4b536e; }
.chips2.xitems button, .chips2.xtur button { height: auto; min-height: 54px; padding: 7px 10px; }
.chips2 button.dis { opacity: .5; }
.chips2 button.dis small { color: #ffc28a; }
.x-in input { font-size: 17px; }
/* щиты: схема как с камеры — нечётные слева, чётные справа, посередине центральная улица */
.smap { display: grid; grid-template-columns: 1fr 26px 1fr; gap: 7px 6px; align-items: stretch; }
.smap .sml { grid-column: 1 / -1; text-align: center; color: var(--muted); font: 700 11px Montserrat, sans-serif; letter-spacing: .02em; }
.smap .road { display: block; border-radius: 6px; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .18) 0 7px, transparent 7px 14px) center / 2px 100% no-repeat, rgba(255, 255, 255, .05); }
.slot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-width: 0; min-height: 50px; padding: 5px 4px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .06); color: var(--cream); text-align: center; }
.slot b { font: 900 16px/1.1 Montserrat, sans-serif; }
.slot small { color: #9fe0b0; font: 700 10.5px/1.2 Inter, sans-serif; }
.slot em { display: block; color: var(--muted); font: 600 10.5px/1.2 Inter, sans-serif; font-style: normal; }
.slot.st-busy, .slot.st-taken, .slot.st-held { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .04) 0 6px, rgba(255, 255, 255, .09) 6px 12px); }
.slot.st-busy small, .slot.st-taken small, .slot.st-held small { color: #ffb0b8; }
.slot.st-mine small { color: #7fe3dd; }
.slot.on { background: var(--cream); color: var(--ink); border-color: transparent; box-shadow: 0 0 0 2px var(--gold); }
.slot.on small, .slot.on em { color: #4b536e; }
.tslots { display: grid; grid-template-columns: 1fr 1.35fr 1fr; gap: 7px; }
.tslots .slot.big { min-height: 64px; }
.tslots .slot b, .sslots .slot b { font-size: 13px; }
.sslots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.xmy { height: 44px; margin-bottom: 10px; font-size: 13.5px; }
.kst { margin: 8px 2px 0; font-size: 13px; }
.kst .ok { color: #7dff9e; } .kst .bad { color: #ffb0b8; }
#shstreet { flex: 1; min-width: 0; height: 46px; border-radius: 14px; border: 2px solid rgba(255, 210, 86, .5); background: var(--glass2); color: #fff; text-align: center; font: 900 20px Montserrat, sans-serif; outline: none; -moz-appearance: textfield; }
#shstreet::-webkit-outer-spin-button, #shstreet::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#shstreet:focus { border-color: var(--gold); }
/* карточка дома: купленные добавки */
.sheet .special.xown { display: flex; flex-direction: column; gap: 3px; border-left-color: #7fe3dd; }
.sheet .special.xown b { font: 800 12px Montserrat, sans-serif; color: var(--muted); }
.xnames { display: grid; gap: 10px; }
.xnames input { height: 48px; }
.kgrid > .kcard:last-child:nth-child(odd) { grid-column: 1 / -1; }
.kgrid > .kcard:last-child:nth-child(odd) .kthumb { height: 120px; }
@media (max-width: 380px) { .kcard .kp { font-size: 12.5px; padding: 5px 7px; } .kcard .kp i { font-size: 10px; } }
.kst small { display: block; margin-top: 3px; color: var(--muted); font-size: 11.5px; }
@media (max-width: 350px) { .tabs { gap: 2px; padding: 3px; margin: 0 12px 10px; } .tabs button { font-size: 11px; letter-spacing: -.01em; padding: 0 2px; } }
.xjump { display: flex; align-items: center; gap: 8px; width: 100%; margin: 0 0 10px; padding: 9px 12px; border-radius: 13px; border: 1px dashed rgba(255, 210, 86, .5);
  background: rgba(255, 210, 86, .08); color: #f6e7b8; text-align: left; font: 700 12.5px/1.3 Inter, sans-serif; }
.xjump i { flex: none; padding: 2px 6px; border-radius: 6px; background: #ff4f86; color: #fff; font: 900 9px/1.3 Montserrat, sans-serif; font-style: normal; letter-spacing: .04em; }
.xjump span { flex: 1; min-width: 0; }
.xjump b { flex: none; color: var(--gold); font: 900 18px/1 Montserrat, sans-serif; }

/* ── два города (docs/multicity.md): плавание, связь городов, Sevgi shahri ── */
.ctl #sail { font-size: 20px; }
.wsail { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 10px; padding: 10px 14px; border-radius: 14px; border: 1px dashed rgba(143, 200, 255, .55);
  background: linear-gradient(90deg, rgba(40, 110, 190, .35), rgba(255, 126, 185, .22)); color: var(--cream); font: 800 13px Montserrat, sans-serif; text-align: left; }
.wsail .ic { font-size: 18px; }
.wsail span:nth-child(2) { flex: 1; }
.xcity, .cpline { margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: linear-gradient(135deg, rgba(40, 110, 190, .28), rgba(255, 126, 185, .2)); border: 1px solid rgba(143, 200, 255, .25); }
.xcity p { margin: 0 0 8px; font-size: 13px; }
.xcity .btn { height: 44px; font-size: 13px; }
.sailbtn { background: rgba(80, 160, 255, .22) !important; border-color: rgba(143, 200, 255, .5) !important; }
.xcta { margin: 12px 0 2px; display: flex; gap: 8px; } /* не зависит от магазина (shop-ready) */
.sailcta { background: linear-gradient(135deg, #2b6fd6, #ff6fae) !important; }
.sailcta .ic { font-size: 22px; display: grid; place-items: center; background-image: none !important; }
.ghost.there h2 { color: #ffd6ea; }
/* карточка парома: тап по лодке или табличке «Suzish» → одна большая кнопка (site/app.js showBoatCard) */
.boatcard { text-align: center; }
.boatcard .bcboat { font-size: 40px; line-height: 1; margin: 2px 0 6px; animation: bcbob 2.4s ease-in-out infinite; }
.boatcard h2 { margin: 0 0 6px; }
.boatcard p { margin: 0 0 14px; color: var(--muted, #c9cee4); font-size: 13.5px; }
.boatcard .boatgo { width: 100%; min-height: 58px; justify-content: center; }
.boatcard .boatgo b { font-size: 19px; }
@keyframes bcbob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-4px) rotate(3deg); } }

/* море-переход: свой вариант, если движок не дал анимацию (city.js → seaOverlay) */
.sea { position: fixed; inset: 0; z-index: 40; overflow: hidden; opacity: 0; transition: opacity .45s ease; pointer-events: none; }
.sea.on { opacity: 1; pointer-events: auto; }
.sea .sky { position: absolute; inset: 0 0 45% 0; background: linear-gradient(#0b1a3a, #24407a 70%, #ff9ac8); }
.sea[data-to=mahalla] .sky { background: linear-gradient(#0b1a3a, #24407a 70%, #ffc46b); }
.sea .glow { position: absolute; left: 50%; top: 50%; width: 60vmin; height: 12vmin; transform: translate(-50%, -60%); border-radius: 50%; background: radial-gradient(#ffd6ea, transparent 70%); filter: blur(6px); opacity: .7; }
.sea[data-to=mahalla] .glow { background: radial-gradient(#ffe6a8, transparent 70%); }
.sea .waves { position: absolute; inset: 55% 0 0 0; background: linear-gradient(#1f4f8f, #0b2550); }
.sea .waves i { position: absolute; left: -50%; width: 200%; height: 14px; border-radius: 50%; background: rgba(255, 255, 255, .14); animation: wave 2.4s linear infinite; }
.sea .waves i:nth-child(1) { top: 12%; } .sea .waves i:nth-child(2) { top: 38%; animation-duration: 3.1s; opacity: .7; } .sea .waves i:nth-child(3) { top: 68%; animation-duration: 3.8s; opacity: .5; }
@keyframes wave { from { transform: translateX(0); } to { transform: translateX(25%); } }
.sea .boat { position: absolute; left: 12%; top: 52%; width: 22vmin; max-width: 140px; color: #fff3f8; transform: translateY(-80%); animation: bob 1.4s ease-in-out infinite; transition: left 1.6s cubic-bezier(.5, 0, .3, 1), transform 1.6s ease-in; }
.sea .boat svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .35)); }
.sea .boat .hrt { fill: #ff4f86; }
.sea.go .boat { left: 78%; transform: translateY(-80%) scale(.55); }
@keyframes bob { 50% { margin-top: -6px; } }
.sea .msg { position: absolute; left: 0; right: 0; bottom: calc(18% + var(--safe-b)); text-align: center; font: 900 20px Montserrat, sans-serif; color: var(--cream); text-shadow: 0 2px 12px rgba(0, 0, 0, .5); margin: 0; padding: 0 16px; }
/* прибытие с моря: прелоадер — та же «дымка», что последний кадр отплытия (engine/travel.js drawHaze, цвета города прибытия) */
html.arrive { background: #fbe8cf; }
html.arrive[data-city=qpid] { background: #fbe0ea; }
html.arrive .boot { background: linear-gradient(#f6d7b2, #fbe8cf 50%, #efcfae 62%, #c9a58b) !important; }
html.arrive[data-city=qpid] .boot { background: linear-gradient(#f7c6d9, #fbe0ea 50%, #f2c7d6 62%, #dba2bd) !important; }
html.arrive .boot > :not(.bt-sea) { opacity: 0 !important; } /* видна только «дымка» с лодкой (index.html .bt-sea) */
html.arrive body { background: transparent !important; } /* до первого кадра — фон html (та же «дымка»), без белой полосы */
html.arrive .top, html.arrive .ctl, html.arrive .search, html.arrive #welcome, html.arrive #card { opacity: 0 !important; pointer-events: none !important; }

/* Sevgi shahri: розово-золотые акценты интерфейса (сам город — тема движка qpid) */
html[data-city=qpid] { --gold: #ff9ac8; --teal: #ff6fae; }
html[data-city=qpid] .primary { box-shadow: 0 8px 24px rgba(255, 126, 185, .3); }
html[data-city=qpid] #welcome .chips { display: none; }
/* кнопки «Qurish»: дом пары (cp-on) или магазин (sv-shop — владелец включил здания, tabrik, salyut); ничего — кнопок нет */
html[data-city=qpid]:not(.cp-on):not(.sv-shop) #build, html[data-city=qpid]:not(.cp-on):not(.sv-shop) #wbuild { display: none; }
html[data-city=qpid] .star::before, html[data-city=qpid] .star::after { background: #ff6fae; }

/* дом пары (site/couple.js) */
.couplebox .mcard.cp { max-height: calc(100dvh - 32px); overflow: auto; }
.cp h2 { margin: 2px 40px 6px 0; font: 900 22px Montserrat, sans-serif; }
.cp .lead { margin: 0 0 6px; color: var(--cream); }
.cp .rule, .cp .how, .cp .note { font-size: 13px; color: var(--muted); margin: 6px 0; }
.cp .note { color: #ffd6ea; }
.cp form { display: grid; gap: 10px; margin-top: 8px; }
.cp label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.cp input[type=text], .cp input:not([type]), .cp input[type=date] { height: 46px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); padding: 0 12px; color: var(--cream); font: 700 16px Inter, sans-serif; }
.cp label.chk { display: flex; align-items: center; gap: 8px; color: var(--cream); }
.cp label.chk input { width: 20px; height: 20px; accent-color: var(--gold); }
.cpstyle { border: 0; padding: 0; margin: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.cpstyle legend { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.cpstyle label { display: block; }
.cpstyle input { position: absolute; opacity: 0; }
.cpstyle i { display: block; width: 34px; height: 34px; border-radius: 50%; border: 3px solid transparent; box-shadow: 0 0 0 1px var(--line); }
.cpstyle input:checked + i { border-color: #fff; }
.cpstyle input:focus-visible + i { outline: 2px solid var(--gold); }
.cpkinds { display: flex; gap: 6px; margin: 4px 0 8px; }
.cpkinds button { flex: 1; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); border-radius: 12px; padding: 8px 6px; font: 800 12px Montserrat, sans-serif; color: var(--cream); }
.cpkinds button[aria-pressed=true] { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.cperr { margin: 0; color: #ffb4c4; font-size: 13px; }
/* у пары уже есть заявка (с другого устройства): как вернуть ссылку — «havola» в Direct (couple.js showExists) */
.cpexists { padding: 10px 12px; border-radius: 12px; background: rgba(255, 210, 86, .12); border: 1px solid rgba(255, 210, 86, .45); }
.cpexists p { margin: 0; color: var(--cream); font-size: 14px; line-height: 1.35; }
.cp .cpexists a.cpdm { margin-top: 10px; }
/* «Havolani saqlash»: личная ссылка на заявку — заметная, но вторая после главного действия */
.cpsave { margin: 10px 0 4px; }
.cpsave .btn { height: auto; min-height: 48px; padding: 8px 12px; border-color: rgba(255, 210, 86, .55); color: var(--gold); white-space: normal; text-align: center; line-height: 1.2; }
.cp .cpsave .note { margin: 6px 2px 0; }
.cpst { margin: 0 0 8px; font: 800 14px Montserrat, sans-serif; color: var(--gold); }
.cpst.st-removed, .cpst.st-expired { color: var(--muted); }
.cppair { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 6px 0 10px; }
.cpp { flex: 1; min-width: 0; text-align: center; padding: 10px 6px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); }
.cpp b { display: block; font: 900 14px Montserrat, sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cpp small { color: var(--muted); font-size: 12px; }
.cpp.ok { border-color: rgba(120, 230, 160, .6); background: rgba(60, 170, 100, .18); }
.cpp.ok small { color: #a8f0c0; }
.cpp.me { box-shadow: 0 0 0 2px var(--gold) inset; }
.cppair .hrt { font-size: 22px; }
.cpcodes { display: grid; gap: 8px; margin: 6px 0; }
.cpcodes > div { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: center; column-gap: 8px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.cpcodes small { color: var(--muted); font-size: 12px; grid-column: 1; }
.cpcodes b { font: 900 22px Montserrat, sans-serif; letter-spacing: .06em; color: var(--gold); grid-column: 1; }
.cpcodes .btn { grid-column: 2; grid-row: 1 / span 2; }
/* подтверждение кодом в Direct @qpid.uz (docs/ig_messaging.md): большая кнопка, «приватно», ряд вторичных кнопок */
/* код — всегда одной строкой (QPID-… не рвётся на «QPID-» / «PGQU»), кнопка «Kodni nusxalash» сама переносит текст */
.cp .cpcodes > div { grid-template-columns: max-content minmax(0, 1fr); }
.cp .cpcodes b { white-space: nowrap; font-size: clamp(18px, 5.6vw, 22px); }
.cp .cpcodes .btn { justify-self: end; max-width: 100%; height: auto; min-height: 40px; padding: 5px 12px; white-space: normal; text-align: center; line-height: 1.15; }
.cp a.cpdm { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 8px 0 2px; text-decoration: none; text-align: center; line-height: 1.15; }
.cp .cpdone { margin: 8px 0 4px; padding: 10px 12px; border-radius: 12px; background: rgba(60, 170, 100, .18); border: 1px solid rgba(120, 230, 160, .45); color: #c9f5d6; font: 800 14px/1.35 Montserrat, sans-serif; }
.cp .cppriv { margin-top: 8px; }
.cp .cprow { flex-wrap: wrap; margin-top: 8px; }
.cp .cprow .btn { min-width: 0; height: auto; min-height: 44px; padding: 6px 10px; font-size: 13px; line-height: 1.2; text-align: center; white-space: normal; }
.btn.sm { height: 40px; font-size: 13px; padding: 0 12px; }
.cpplans { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.cpplans label { display: flex; gap: 8px; align-items: center; color: var(--cream); font-size: 14px; }
.link.danger { color: #ffb4c4; margin-top: 10px; }
.cpcard .nick { font: 900 20px Montserrat, sans-serif; margin: 2px 40px 4px 0; word-break: break-all; display: flex; gap: 8px; align-items: center; }
.cpline .cpcard .nick { font-size: 16px; margin-right: 0; }
.cpcard .cpdays { font: 900 18px Montserrat, sans-serif; color: var(--gold); margin-top: 4px; }
.cpcard .row { margin-top: 10px; }
.cpcard .btn { height: 42px; font-size: 13px; }

/* плавание (обе половины рейса): интерфейс уходит, на экране только море и паром (engine/travel.js) */
html.sailing .top, html.sailing .ctl, html.sailing .search, html.sailing #card, html.sailing #welcome, html.sailing #toast,
html.voyage .top, html.voyage .ctl, html.voyage .search, html.voyage #card, html.voyage #welcome {
  opacity: 0 !important; pointer-events: none !important; transition: opacity .35s ease;
}

/* ── Sevgi shahri → qpid.uz (site/qpid.js): кнопка на карте, строка на приветствии, карточка услуг у здания Qpid ── */
.qpidpill { position: fixed; z-index: 5; top: calc(58px + var(--safe-t)); left: calc(12px + env(safe-area-inset-left, 0px)); display: inline-flex; align-items: center; gap: 7px;
  height: 44px; max-width: calc(100vw - 96px); padding: 0 15px 0 6px; border-radius: 22px; text-decoration: none; color: #fff; white-space: nowrap;
  background: linear-gradient(135deg, #ff5f9e, #e8336f 55%, #c2185b); border: 1.5px solid rgba(255, 255, 255, .55);
  box-shadow: 0 6px 20px rgba(194, 24, 91, .42), inset 0 1px 0 rgba(255, 255, 255, .35); font: 900 13.5px Montserrat, sans-serif; letter-spacing: .01em; }
.qpidpill .qi { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .95); font-size: 17px; line-height: 1; }
.qpidpill .qt { overflow: hidden; text-overflow: ellipsis; }
.qpidpill:active { transform: scale(.97); }
.qpidpill:focus-visible, .wqpid:focus-visible, .qsvc:focus-visible, .qall:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (max-width: 759px) { body:has(#card:not([hidden])) .qpidpill { display: none; } } /* карточка снизу на телефоне — кнопка не просвечивает */
body.intro .qpidpill, body.shopping .qpidpill, html.sailing .qpidpill, html.voyage .qpidpill, html.arrive .qpidpill { display: none; }
body:has(.auc-chip:not([hidden])) .qpidpill { top: calc(108px + var(--safe-t)); } /* аукцион (если владелец включит) — чип по центру сверху */
@media (min-width: 760px) { .qpidpill { top: calc(62px + var(--safe-t)); height: 46px; font-size: 14px; } }
@media (max-height: 420px) and (orientation: landscape) { .qpidpill { top: calc(54px + var(--safe-t)); } }
/* Телефон боком (оба города): колонка кнопок карты не влезала по высоте — в махалле семь кнопок с ⛵ (390 px) на экране
   360–390 px: «Qurish» уходила за верх, ⛵ — за низ, счётчик жителей закрывался; в Sevgi шесть кнопок упирались в счётчик.
   «Qurish» встаёт сверху во всю ширину, остальные кнопки — в две колонки (208 px, ниже счётчика). Портрет и компьютер — как были */
@media (max-height: 500px) and (orientation: landscape) {
  .ctl { display: grid; grid-template-columns: repeat(2, 46px); }
  .ctl button.build { grid-column: 1 / -1; width: auto; height: 46px; flex-direction: row; gap: 6px; font-size: 11px; }
  html[lang] .ctl button.build span { font-size: 11px; } /* и «Строить» (html[lang=ru] — 9 px в узкой кнопке) */
  .sheet { right: 124px; } /* карточка слева от широкой колонки кнопок, не закрывает «+», «⌂», «⛵» */
}
/* Sevgi shahri, узкий телефон по-казахски: «МАХАББАТ ҚАЛАСЫ» — самое длинное имя города; имя, язык и счётчик жителей
   не влезали в 360–390 px, и счётчик упирался в правый край экрана. Имя чуть мельче — справа снова отступ 12 px, как у всех */
@media (max-width: 410px) { html[data-city=qpid][lang=kk] .brand { font-size: clamp(10px, 2.95vw, 13px); letter-spacing: 0; } }
/* Sevgi shahri: кнопки и строки не ниже 44 px (палец), адрес в шапке магазина не обрезается многоточием, а переносится */
html[data-city=qpid] .wbuild { min-height: 44px; }
html[data-city=qpid] .joyl li { min-height: 44px; align-items: center; }
html[data-city=qpid] .sh-title small .who { white-space: normal; overflow: visible; }
.wqpid { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; margin-top: 10px; padding: 8px 14px 8px 10px; border-radius: 16px; text-decoration: none; text-align: left;
  color: #fff; background: linear-gradient(135deg, rgba(255, 95, 158, .9), rgba(194, 24, 91, .88)); border: 1.5px solid rgba(255, 255, 255, .5); box-shadow: 0 8px 22px rgba(194, 24, 91, .32); }
.wqpid .ic { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .95); font-size: 19px; }
.wqpid .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wqpid b { font: 900 14px/1.2 Montserrat, sans-serif; }
.wqpid small { font: 600 12px/1.3 Inter, sans-serif; color: #ffe6f0; }
.wqpid .go, .qsvc .go { flex: none; font: 900 18px/1 Montserrat, sans-serif; color: #fff; opacity: .9; }
.qpcard .nick { font: 900 20px/1.15 Montserrat, sans-serif; margin: 2px 40px 2px 0; word-break: normal; }
.qplead { margin: 6px 0 10px; color: #f3e6ee; font-size: 13.5px; line-height: 1.35; }
.qsvcs { display: grid; gap: 8px; }
.qsvc { display: flex; align-items: center; gap: 11px; min-height: 56px; padding: 8px 12px 8px 10px; border-radius: 14px; text-decoration: none; color: var(--cream);
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 154, 200, .35); }
.qsvc:active { background: rgba(255, 126, 185, .2); }
.qsvc .qsi { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 126, 185, .22); font-size: 20px; }
.qsvc .qst { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.qsvc b { font: 800 14.5px/1.2 Montserrat, sans-serif; color: #fff; }
.qsvc small { font: 600 12px/1.3 Inter, sans-serif; color: var(--muted); }
.qsvc .qsn { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 8px; }
.qsvc .qsp { padding: 1px 7px; border-radius: 8px; background: rgba(255, 210, 230, .14); color: #ffd6e8; font: 800 11.5px/1.35 Montserrat, sans-serif; font-style: normal; white-space: nowrap; }
.qsvc .go { color: var(--gold); }
a.primary.qall { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; text-decoration: none; text-align: center; color: #fff;
  background: linear-gradient(135deg, #ff5f9e, #e8336f 55%, #c2185b); }
.qpnote { margin: 8px 0 0; text-align: center; color: var(--muted); font-size: 12px; }
@media (hover: hover) { .qsvc:hover { background: rgba(255, 126, 185, .14); } .qpidpill:hover, .wqpid:hover { filter: brightness(1.06); } }
/* участок под бизнес (карточка на карте) и дом пары в листе «Nima quramiz?» */
.ghost.bizlot .addr { font: 800 15px Montserrat, sans-serif; color: var(--gold); margin: -2px 0 8px; }
.mega.cpb { border-color: rgba(255, 126, 185, .6); background: linear-gradient(135deg, rgba(255, 95, 158, .2), rgba(120, 70, 255, .14)); }
/* Sevgi shahri: «Bepul uy olish» — текст длиннее махаллинского, кнопка растёт по содержимому (не вылезает за рамку) */
html[data-city=qpid] .ghost .row.grow .btn { height: auto; }
/* Sevgi shahri: «Uy yoki biznes qurish» на ru/kk — в две строки, без слипания строк */
html[data-city=qpid] .wbuild span[data-i18n] { line-height: 1.2; text-align: center; }
/* Sevgi shahri: моделей пять — названия домов любви в две строки целиком, без «…» (ru/kk длиннее) */
html[data-city=qpid] .mcard2 span { white-space: normal; text-overflow: clip; min-height: calc(2 * 1.15em + 11px); display: flex; align-items: center; justify-content: center; text-align: center; }

/* Sevgi shahri, раунд 2: всё, что продаётся, — квадратными карточками в одной сетке сверху (без прокрутки к новинкам) */
.sgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sq { position: relative; display: flex; flex-direction: column; gap: 5px; min-width: 0; padding: 5px 5px 7px; text-align: left; color: var(--cream);
  border-radius: 16px; border: 1px solid rgba(255, 79, 134, .38); background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03)); }
.sq:active { transform: scale(.98); }
.sq.sq-osmonopar { border-color: rgba(122, 246, 255, .4); }
.sq.sq-biznes { border-color: rgba(255, 138, 61, .45); }
.sq.sq-eyfel, .sq.sq-juftlik { border-color: rgba(255, 204, 51, .55); box-shadow: 0 6px 22px rgba(255, 79, 134, .14); }
.sqi { position: relative; display: block; width: 100%; aspect-ratio: 13 / 10; border-radius: 11px; overflow: hidden;
  background: linear-gradient(160deg, #4a2468, #c2185b 72%, #ff7eb9); }
.sqi .kthumb { display: block; width: 100%; height: 100%; border-radius: 0; }
.sqi img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sqi.ph::before { content: attr(data-ic); position: absolute; inset: 0; display: grid; place-items: center; font-size: 30px; }
.sq b { padding: 0 2px; font: 900 12.5px/1.15 Montserrat, sans-serif; min-height: 2.3em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; hyphens: manual; }
.sq .kp { margin: auto 2px 0; padding: 4px 7px; border-radius: 8px; font-size: 11.5px; line-height: 1.15; white-space: normal; }
.sq.off { opacity: .62; }
.sq.off .kp { background: rgba(255, 255, 255, .14); color: var(--cream); }
@media (max-width: 345px) { .sgrid { gap: 6px; } .sq b { font-size: 11.5px; } .sq .kp { font-size: 10.5px; padding: 3px 6px; } }
/* «Ochilishiga salyut» на подтверждении здания: переключатель, сумма в том же счёте */
.upsell { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; margin: 0 0 9px; padding: 7px 12px; border-radius: 15px; text-align: left;
  color: var(--cream); border: 1.5px dashed rgba(255, 210, 86, .6); background: rgba(255, 210, 86, .08); }
.upsell .ui { flex: none; font-size: 24px; }
.upsell .ut { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.upsell .ut b { font: 800 14px/1.2 Montserrat, sans-serif; }
.upsell .ut small { color: #cfd4e6; font-size: 12px; line-height: 1.25; }
.upsell .up { flex: none; color: var(--gold); font: 900 13.5px Montserrat, sans-serif; white-space: nowrap; }
.upsell .tg { position: relative; flex: none; width: 40px; height: 24px; border-radius: 999px; background: rgba(255, 255, 255, .18); transition: background .2s; }
.upsell .tg::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.upsell.on { border-style: solid; background: rgba(255, 210, 86, .16); }
.upsell.on .tg { background: var(--gold); }
.upsell.on .tg::after { transform: translateX(16px); }
.upsell:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .upsell .tg, .upsell .tg::after { transition: none; } }
/* «Eyfel tabrigi»: галочки 18+ и согласия второго (как у дома пары) */
.xchk { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 4px; color: var(--cream); font-size: 13.5px; line-height: 1.3; cursor: pointer; }
.xchk input { flex: none; width: 22px; height: 22px; accent-color: var(--gold); }

/* ── карточка дома (визуальный аудит, п. 3, 15, 23) ──
   фон плотный: сквозь карточку не просвечивают кнопки и подписи; крестик — 44 px (палец) */
.sheet { background: rgba(14, 20, 46, .96); }
.sheet .x, .mcard .x { top: 4px; right: 4px; width: 44px; height: 44px; }
.sheet .nick { margin-right: 48px; }
.sheet > .row { margin-top: 12px; } /* «Storiesga / Havola» сразу под главной кнопкой, соседи — ниже */
.sheet > .row + .special.xown { margin-top: 12px; }
/* телефон: карточка компактная (≈40 % высоты) — дом над ней виден целиком; «Batafsil» или свайп вверх — целиком (.full) */
@media (max-width: 759px) and (min-height: 501px) {
  .sheet { padding-top: 18px; }
  .sheet::before { content: ''; position: absolute; top: 7px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: rgba(255, 255, 255, .26); }
  .sheet:not(.full) { max-height: min(42dvh, calc(100dvh - 150px)); overflow: hidden; }
  /* «Batafsil ⌄» — отдельная полоса внизу (не поверх кнопок): высоту свёрнутой карточки app.js (syncMore) считает так,
     чтобы над полосой целиком стояли главная кнопка и «Storiesga / Havola» */
  .sheet .more { position: sticky; bottom: -14px; z-index: 1; display: flex; align-items: center; justify-content: center; width: calc(100% + 32px); min-height: 44px; margin: 8px -16px -14px; padding: 0 0 2px;
    border: 0; border-top: 1px solid var(--line); border-radius: 0 0 20px 20px; background: rgb(18, 25, 54); color: var(--gold); font: 800 13px Montserrat, sans-serif; letter-spacing: .02em; }
  .sheet.full .more { position: static; background: none; border-top: 0; }
}
/* телефон боком: карточка слева во всю высоту (дом — между ней и кнопками), строка поиска на это время прячется */
@media (max-height: 500px) and (orientation: landscape) and (max-width: 759px) {
  .sheet { left: calc(10px + env(safe-area-inset-left, 0px)); right: auto; top: calc(62px + var(--safe-t)); bottom: calc(10px + var(--safe-b)); width: min(340px, 47vw); max-width: none; max-height: none; margin: 0; }
  body:has(#card:not([hidden])) .search { display: none; }
}
/* ориентир Sevgi shahri: название, описание, одна кнопка */
.lmcard .lmtext { margin: 10px 0 12px; color: #e3e6f3; font-size: 14px; line-height: 1.45; }
.lmcard .lmgo { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 48px; text-decoration: none; }
/* здание компании-клиента в махалле (@donxolm_uz): длинное название переносится по словам; Instagram и «Havola» в ряд */
.lmcard.bizcard .nick { font-size: 21px; line-height: 1.2; word-break: normal; overflow-wrap: anywhere; }
.lmcard.bizcard .lmgo { margin-top: 12px; }
.lmcard.bizcard .lmlink { margin-top: 8px; height: 46px; }
/* кнопки не меньше 44 px: язык в шапке; языки на приветствии — видимые 31–34 px, но нажимается полоса 44 px */
.langbtn { height: 44px; }
@media (max-width: 345px) { .langbtn { height: 44px; } }
.wlang button { position: relative; }
.wlang button::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%); }
/* телефон боком: приветствие в две колонки — слева языки, заголовок и текст, справа поиск ника и кнопки
   (раньше «Uyimni top» уходила за низ экрана, видна была наполовину) */
@media (max-height: 500px) and (orientation: landscape) {
  .welcome { padding-top: calc(60px + var(--safe-t)); padding-bottom: calc(10px + var(--safe-b)); }
  .wcard { max-width: 860px; columns: 2; column-gap: 28px; }
  .wcard > * { break-inside: avoid; }
  .wcard > #wform { break-before: column; }
  .wcard h1 { font-size: 22px; margin: 8px 0 6px; }
  .wcard p { font-size: 12.5px; line-height: 1.35; margin-bottom: 0; }
  .wlang { margin-bottom: 8px; }
  .wcard input, .wcard .primary { height: 44px; }
  .wcard form { gap: 6px; }
  .wbuild, .wsail, .wqpid { margin-top: 8px; }
  .chips { margin-top: 8px; }
}
