:root {
  --ink: #120812; --cream: #fff3df; --yellow: #ffd60a; --orange: #ff7a1a; --violet: #c86bff; --green: #3ddc84;
  --glass: rgba(14, 10, 16, .93); --line: rgba(255, 255, 255, .12);
  --display: 'Alumni Sans', 'Arial Narrow', Impact, sans-serif;
  --wide: 'Unbounded', 'Arial Black', sans-serif;
  --body: 'Manrope', system-ui, -apple-system, sans-serif;
  --st: env(safe-area-inset-top, 0px); --sb: env(safe-area-inset-bottom, 0px);
  --city: var(--yellow);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { margin: 0; overflow: hidden; overscroll-behavior: none; background: #1d2a33; color: var(--cream); font: 15px/1.45 var(--body); touch-action: none; }
button { font: inherit; color: inherit; }
input { font: inherit; }
a { color: inherit; }

/* ================= карта ================= */
.world { position: fixed; inset: 0; }
.world__map { position: absolute; inset: 0; outline: none; }
.world__fx { position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0, 0, 0, .55)),
  repeating-linear-gradient(0deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 3px); }
.gmap { position: absolute; inset: 0; overflow: hidden; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.gmap.is-drag { cursor: grabbing; }
.gmap__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.gmap__blips { position: absolute; left: 0; top: 0; width: 0; height: 0; }

/* ---- метки ---- */
.blip--cluster { z-index: 6; }
.b-plc { display: flex; align-items: center; gap: 2px; height: 18px; padding: 0 6px 0 4px; border-radius: 4px; background: rgba(13, 15, 16, .85); color: #8fd3ff; font: 800 10px/1 var(--body); box-shadow: 0 0 0 1.5px #8fd3ff; white-space: nowrap; }
.b-plc svg { width: 11px; height: 11px; }
.b-clu { display: flex; align-items: center; padding: 5px 10px 5px 6px; border-radius: 999px; background: #120812; box-shadow: 0 0 0 2.5px #fff, 0 6px 18px rgba(0, 0, 0, .6); white-space: nowrap; }
.b-clu i { width: 26px; height: 26px; margin-right: -9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2.5px #120812; }
.b-clu b { margin-left: 14px; font: 900 15px/1 var(--wide); color: var(--yellow); }
.blip--cluster .b-city__name { margin-top: 26px; width: 190px; white-space: normal; text-align: center; line-height: 1.25; font-size: 11px; }
.blip--cluster .b-city__meta { display: none; }
.blip { position: absolute; left: 0; top: 0; width: 0; height: 0; padding: 0; border: 0; background: none; cursor: pointer; will-change: transform; }
.blip.is-hidden { display: none; }
.blip > * { position: absolute; left: 0; top: 0; translate: -50% -50%; }
.blip .tag { top: 100%; translate: -50% 0; margin-top: 16px; padding: 3px 8px 2px; white-space: nowrap; border-radius: 3px; background: rgba(10, 8, 12, .82); font: 800 10px/1.2 var(--wide); letter-spacing: .03em; text-transform: uppercase; color: #fff; pointer-events: none; opacity: 0; transition: opacity .2s; }
.blip:hover .tag, .blip:focus-visible .tag, .blip.is-sel .tag, .blip.show-tag .tag { opacity: 1; }

.b-city { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #120812; font: 900 18px/1 var(--wide);
  box-shadow: 0 0 0 3px #120812, 0 0 0 5px rgba(255, 255, 255, .85), 0 6px 18px rgba(0, 0, 0, .6); transition: scale .2s; }
.b-city::after { content: ''; position: absolute; inset: -12px; border-radius: 50%; border: 2px solid var(--c); opacity: .7; animation: ping 2.2s ease-out infinite; }
.blip:hover .b-city, .blip.is-sel .b-city { scale: 1.12; }
.b-city__name { top: 100%; translate: -50% 0; margin-top: 30px; white-space: nowrap; font: 900 13px/1 var(--wide); text-transform: uppercase; color: #fff; text-shadow: 0 2px 0 #000, 0 0 10px rgba(0, 0, 0, .9); pointer-events: none; }
.b-city__meta { top: 100%; translate: -50% 0; margin-top: 48px; white-space: nowrap; font: 700 11px/1 var(--body); color: rgba(255, 255, 255, .75); text-shadow: 0 1px 4px #000; pointer-events: none; }
.blip--mine .b-city { box-shadow: 0 0 0 3px #120812, 0 0 0 6px var(--yellow), 0 6px 18px rgba(0, 0, 0, .6); }
@keyframes ping { from { transform: scale(.6); opacity: .8; } to { transform: scale(1.5); opacity: 0; } }

.b-mis { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); color: #120812; font: 900 15px/1 var(--wide);
  box-shadow: 0 0 0 2.5px #120812, 0 4px 12px rgba(0, 0, 0, .55); transition: scale .2s; }
.blip:hover .b-mis, .blip.is-sel .b-mis { scale: 1.18; }
.blip--review .b-mis { background: var(--orange); animation: pulse 1.4s ease-in-out infinite; }
.blip--done .b-mis { background: #5d6360; color: #d9ddd9; box-shadow: 0 0 0 2.5px #1a1d1b; font-size: 0; }
.blip--done .b-mis::before { content: ''; width: 12px; height: 7px; border: solid #e8ece8; border-width: 0 0 3px 3px; rotate: -45deg; translate: 0 -2px; }
.blip--next .b-mis::after { content: ''; position: absolute; inset: -7px; border-radius: 50%; border: 2.5px solid var(--yellow); animation: ping 1.8s ease-out infinite; }
@keyframes pulse { 50% { scale: 1.12; } }

.b-lm { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #f2f2ee; color: #1a1d1b; box-shadow: 0 0 0 2px #1a1d1b, 0 3px 8px rgba(0, 0, 0, .5); }
.b-lm svg { width: 15px; height: 15px; }
.blip--landmark:hover .b-lm { scale: 1.15; }

.b-pl { width: 12px; height: 12px; border-radius: 50%; background: var(--c, #9ad); box-shadow: 0 0 0 2px #0d0f10, 0 0 0 3.5px rgba(255, 255, 255, .55); }
.blip--top .b-pl { width: 16px; height: 16px; background: var(--yellow); }
.blip--top .b-pl::after { content: '★'; position: absolute; left: 50%; top: -15px; translate: -50% 0; color: var(--yellow); font-size: 12px; text-shadow: 0 1px 2px #000; }
.b-me { width: 0; height: 0; }
.b-me svg { position: absolute; left: -15px; top: -17px; width: 30px; height: 34px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .7)); }
.b-me::before { content: ''; position: absolute; left: -26px; top: -26px; width: 52px; height: 52px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .28), transparent 65%); animation: pulse 2s ease-in-out infinite; }
.blip--me .tag { opacity: 1; background: #fff; color: #120812; }

.waypoint { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; }
.waypoint::before { content: ''; position: absolute; left: -13px; top: -36px; width: 26px; height: 26px; border-radius: 50% 50% 50% 0; rotate: -45deg; background: var(--violet); box-shadow: 0 0 0 2.5px #120812, 0 0 18px rgba(200, 107, 255, .8); }
.waypoint::after { content: ''; position: absolute; left: -5px; top: -28px; width: 10px; height: 10px; border-radius: 50%; background: #120812; }

/* ================= интерфейс ================= */
.attrib { position: fixed; z-index: 14; left: 8px; bottom: calc(var(--sheetH, 150px) + 6px + var(--sb)); font: 600 9px var(--body); color: rgba(255, 255, 255, .45); text-decoration: none; }
@media (min-width: 900px) { .attrib { left: auto; right: 430px; bottom: 6px; } }
.top { position: fixed; left: 0; right: 0; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: calc(10px + var(--st)) 14px 22px;
  background: linear-gradient(180deg, rgba(10, 6, 12, .9), rgba(10, 6, 12, .55) 60%, transparent); pointer-events: none; }
.top > * { pointer-events: auto; }
.top__logo { display: none; font: 900 15px var(--wide); text-decoration: none; color: #fff; letter-spacing: .02em; }
.top__logo b { color: var(--yellow); }
.top__city { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; font: 900 12px/1.1 var(--wide); text-transform: uppercase; }
.top__city > span { min-width: 0; }
.top__city small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top__city i { width: 10px; height: 10px; border-radius: 50%; background: var(--city); box-shadow: 0 0 0 2px #120812, 0 0 0 3.5px var(--city); flex: none; }
.top__city small { display: block; font: 600 11px/1.2 var(--body); text-transform: none; color: rgba(255, 255, 255, .6); }
.top__stats { margin-left: auto; flex: none; display: flex; align-items: center; gap: 8px; font: 900 22px/1 var(--display); text-align: right; }
.pts { color: #9dff6b; text-shadow: 0 2px 0 #0b2a00, 0 0 12px rgba(0, 0, 0, .8); letter-spacing: .02em; }
.pts small { font: 800 11px var(--wide); margin-left: 3px; color: #c9ffad; }
.rank { padding: 4px 8px 3px; border-radius: 4px; background: #fff; color: #120812; font: 900 13px/1 var(--wide); }
.rank small { font: 700 10px var(--body); opacity: .6; }
.top__menu { width: 40px; height: 40px; flex: none; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .1); display: grid; place-content: center; gap: 4px; cursor: pointer; }
.top__menu i { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; }
.menu { position: absolute; right: 14px; top: calc(58px + var(--st)); min-width: 220px; padding: 8px; border-radius: 10px; background: var(--glass); box-shadow: 0 0 0 1px var(--line), 0 18px 40px rgba(0, 0, 0, .5); }
.menu__who { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; font: 600 13px var(--body); color: rgba(255, 255, 255, .7); }
.menu__who b { display: block; font: 900 14px var(--wide); color: #fff; }
.menu__item { display: block; width: 100%; padding: 10px; border: 0; border-radius: 6px; background: none; text-align: left; text-decoration: none; cursor: pointer; font: 700 14px var(--body); }
.menu__item:hover { background: rgba(255, 255, 255, .08); }

.ctrl { position: fixed; right: 12px; z-index: 15; bottom: calc(var(--sheetH, 170px) + 14px + var(--sb)); display: flex; flex-direction: column; gap: 8px; transition: bottom .35s; }
.ctrl button { width: 42px; height: 42px; border: 0; border-radius: 8px; background: var(--glass); box-shadow: 0 0 0 1px var(--line), 0 6px 16px rgba(0, 0, 0, .4); cursor: pointer; font: 700 22px/1 var(--body); display: grid; place-items: center; }
.ctrl svg { width: 20px; height: 20px; }
.ctrl button:active { background: #2a2230; }

.legend { position: fixed; left: 18px; bottom: 60px; z-index: 15; padding: 12px 14px; border-radius: 10px; background: var(--glass); box-shadow: 0 0 0 1px var(--line); font: 700 13px var(--body); display: none; }
.legend__title { margin: 0 0 8px; font: 900 11px var(--wide); text-transform: uppercase; letter-spacing: .06em; color: rgba(255, 255, 255, .55); }
.legend label { display: flex; align-items: center; gap: 10px; padding: 4px 0; cursor: pointer; }
.legend input { accent-color: var(--yellow); }
.lg-ico { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: 900 10px var(--wide); font-style: normal; }
.lg-ico--mission { background: var(--yellow); color: #120812; box-shadow: 0 0 0 2px #120812; }
.lg-ico--landmark { background: #f2f2ee; box-shadow: 0 0 0 2px #1a1d1b; }
.lg-ico--player { width: 12px; height: 12px; margin: 0 4px; background: #8fd3ff; box-shadow: 0 0 0 2px #0d0f10, 0 0 0 3.5px rgba(255, 255, 255, .55); }
.hints { position: fixed; left: 50%; bottom: 16px; translate: -50% 0; z-index: 14; display: none; gap: 22px; padding: 8px 16px; border-radius: 6px; background: rgba(10, 8, 12, .72); font: 700 12px var(--body); color: rgba(255, 255, 255, .8); white-space: nowrap; }
.hints span { display: flex; align-items: center; gap: 7px; }
.hints kbd { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 4px; background: #fff; color: #120812; font: 800 11px var(--body); }

/* ---- панель (на телефоне — шторка снизу) ---- */
.panel { position: fixed; left: 0; right: 0; bottom: 0; z-index: 18; height: min(76vh, 640px); transform: translateY(calc(100% - var(--sheetH, 170px) - var(--sb)));
  display: flex; flex-direction: column; border-radius: 16px 16px 0 0; background: rgba(13, 10, 15, .97);
  box-shadow: 0 -1px 0 var(--line), 0 -20px 50px rgba(0, 0, 0, .5); transition: transform .35s cubic-bezier(.2, .9, .3, 1); padding-bottom: var(--sb); }
.panel.is-open { transform: none; }
.panel__grip { flex: none; height: 22px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.panel__grip i { width: 44px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .3); }
.tabs { flex: none; display: flex; gap: 4px; padding: 0 12px 10px; border-bottom: 1px solid var(--line); }
.tabs button { flex: 1; white-space: nowrap; padding: 10px 4px; border: 0; border-radius: 6px; background: none; cursor: pointer; font: 900 11px var(--wide); text-transform: uppercase; letter-spacing: .03em; color: rgba(255, 255, 255, .55); }
.tabs button b { color: var(--yellow); }
.tabs button[aria-selected="true"] { background: var(--yellow); color: #120812; }
.tabs button[aria-selected="true"] b { color: #120812; }
.panel__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; padding: 12px 12px 20px; -webkit-overflow-scrolling: touch; }

/* прогресс */
.prog { margin: 2px 2px 14px; }
.prog__row { display: flex; justify-content: space-between; align-items: baseline; font: 800 12px var(--body); color: rgba(255, 255, 255, .7); }
.prog__row b { font: 900 22px/1 var(--display); color: #fff; }
.prog__bar { margin-top: 7px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.prog__bar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: repeating-linear-gradient(-45deg, var(--yellow) 0 8px, #ffe45c 8px 16px); transform: scaleX(0); transform-origin: left; transition: transform 1s cubic-bezier(.2, .9, .3, 1); }

/* лента миссий */
.mis { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 10px; margin-bottom: 6px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .045); text-align: left; cursor: pointer; transition: background .2s; }
.mis:hover, .mis.is-sel { background: rgba(255, 214, 10, .1); box-shadow: 0 0 0 1.5px rgba(255, 214, 10, .5) inset; }
.mis__ico { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); color: #120812; font: 900 14px var(--wide); box-shadow: 0 0 0 2px #120812; }
.mis--done .mis__ico { background: #4c514d; color: #cfd3cf; }
.mis--review .mis__ico { background: var(--orange); }
.mis__txt { flex: 1; min-width: 0; }
.mis__title { display: block; font: 800 14px/1.25 var(--body); color: #fff; }
.mis--done .mis__title { color: rgba(255, 255, 255, .55); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .3); }
.mis__st { display: block; margin-top: 2px; font: 700 12px var(--body); color: rgba(255, 255, 255, .5); }
.mis--review .mis__st { color: var(--orange); }
.mis--rejected .mis__st { color: #ff6b6b; }
.mis__pts { flex: none; font: 900 20px/1 var(--display); color: #9dff6b; }
.mis--done .mis__pts { color: rgba(157, 255, 107, .45); }

/* рейтинг */
.lb__head { display: flex; justify-content: space-between; align-items: center; margin: 0 2px 10px; font: 700 12px var(--body); color: rgba(255, 255, 255, .6); }
.row { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; cursor: pointer; }
.row:nth-child(odd) { background: rgba(255, 255, 255, .035); }
.row__pl { font: 900 20px/1 var(--display); color: rgba(255, 255, 255, .5); text-align: center; }
.row__nick { font: 800 13px var(--wide); letter-spacing: .01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row__nick small { display: block; font: 600 11px var(--body); color: rgba(255, 255, 255, .45); letter-spacing: 0; }
.row__pts { font: 900 20px/1 var(--display); color: #9dff6b; }
.row--top .row__pl { color: var(--yellow); }
.row--me { background: rgba(255, 214, 10, .14) !important; box-shadow: 0 0 0 1.5px var(--yellow) inset; }
.row--me .row__pl { color: var(--yellow); }
.sep { text-align: center; color: rgba(255, 255, 255, .3); letter-spacing: .4em; padding: 4px; }

/* город */
.cityhead { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cityhead__dot { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--city); color: #120812; font: 900 18px var(--wide); box-shadow: 0 0 0 3px #120812, 0 0 0 5px #fff; flex: none; }
.cityhead h3 { margin: 0; font: 900 18px/1.1 var(--wide); text-transform: uppercase; }
.cityhead p { margin: 3px 0 0; font: 600 13px var(--body); color: rgba(255, 255, 255, .6); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.kpi { padding: 10px; border-radius: 8px; background: rgba(255, 255, 255, .05); }
.kpi b { display: block; font: 900 26px/1 var(--display); }
.kpi span { font: 700 11px var(--body); color: rgba(255, 255, 255, .55); }
.h4 { margin: 16px 2px 8px; font: 900 11px var(--wide); text-transform: uppercase; letter-spacing: .06em; color: rgba(255, 255, 255, .5); }
.lmrow { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 6px; border: 0; background: none; text-align: left; cursor: pointer; border-radius: 8px; font: 700 14px var(--body); }
.lmrow:hover { background: rgba(255, 255, 255, .06); }
.lmrow .b-lm { position: static; translate: none; flex: none; }
.cbar { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 6px 4px; font: 800 13px var(--body); }
.cbar__n { font: 900 18px var(--display); color: rgba(255, 255, 255, .5); }
.cbar__track { position: relative; height: 22px; border-radius: 4px; background: rgba(255, 255, 255, .05); overflow: hidden; }
.cbar__track i { position: absolute; inset: 0 auto 0 0; background: var(--c); opacity: .85; border-radius: 4px; }
.cbar__track span { position: relative; padding-left: 8px; line-height: 22px; color: #120812; font: 800 12px var(--body); mix-blend-mode: normal; text-shadow: 0 0 2px rgba(255, 255, 255, .4); }
.cbar__v { font: 900 18px var(--display); color: #9dff6b; }
.cbar--me .cbar__track { box-shadow: 0 0 0 2px #fff; }

/* ---- выбор города ---- */
.pick { position: fixed; inset: 0; z-index: 19; pointer-events: none; display: flex; flex-direction: column; justify-content: space-between; padding: calc(14px + var(--st)) 0 calc(14px + var(--sb)); }
.pick > * { pointer-events: auto; }
.pick__banner { margin: 0 14px; padding: 14px 16px; border-radius: 12px; background: var(--glass); box-shadow: 0 0 0 1px var(--line); align-self: flex-start; max-width: 520px; }
.pick__kicker { margin: 0 0 4px; font: 900 11px var(--wide); letter-spacing: .06em; text-transform: uppercase; color: var(--yellow); }
.pick__title { margin: 0; font: 900 clamp(34px, 9vw, 54px)/.9 var(--display); text-transform: uppercase; }
.pick__sub { margin: 6px 0 0; font: 600 13px var(--body); color: rgba(255, 255, 255, .7); }
.pick__list { display: flex; gap: 10px; overflow-x: auto; padding: 4px 14px 2px; scroll-snap-type: x mandatory; touch-action: pan-x; scrollbar-width: none; }
.pick__list::-webkit-scrollbar { display: none; }
.ccard { flex: none; width: 150px; scroll-snap-align: start; padding: 12px; border: 0; border-radius: 12px; background: var(--glass); box-shadow: 0 0 0 1px var(--line); text-align: left; cursor: pointer; transition: box-shadow .2s, transform .2s; }
.ccard.is-sel { box-shadow: 0 0 0 2.5px var(--c); transform: translateY(-4px); }
.ccard__top { display: flex; align-items: center; gap: 8px; }
.ccard__top i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px #120812; }
.ccard__top span { font: 900 11px var(--wide); color: rgba(255, 255, 255, .5); }
.ccard b { display: block; margin-top: 8px; font: 900 14px/1.1 var(--wide); text-transform: uppercase; }
.ccard small { display: block; margin-top: 6px; font: 700 12px var(--body); color: rgba(255, 255, 255, .6); }

/* ---- нижняя карточка (миссия, город, игрок) ---- */
.sheet { position: fixed; inset: 0; z-index: 40; display: flex; align-items: flex-end; justify-content: center; background: rgba(5, 3, 8, .45); touch-action: none; }
.sheet__card { position: relative; width: min(560px, 100%); max-height: 88vh; overflow-y: auto; touch-action: pan-y; padding: 22px 18px calc(18px + var(--sb)); border-radius: 18px 18px 0 0; background: #141016; box-shadow: 0 -1px 0 var(--line), 0 -30px 60px rgba(0, 0, 0, .6); }
.sheet__x { position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); cursor: pointer; font-size: 20px; line-height: 1; }
.mcard__kick { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font: 900 11px var(--wide); text-transform: uppercase; letter-spacing: .05em; color: var(--yellow); }
.mcard__kick .mis__ico { width: 30px; height: 30px; font-size: 13px; }
.mcard h2 { margin: 0 40px 0 0; font: 900 clamp(30px, 8vw, 44px)/.92 var(--display); text-transform: uppercase; }
.mcard p { margin: 10px 0 0; color: rgba(255, 255, 255, .78); }
.mcard__pts { display: inline-block; margin-top: 12px; padding: 5px 10px 4px; border-radius: 4px; background: #9dff6b; color: #0b2a00; font: 900 16px/1 var(--wide); rotate: -2deg; }
.mcard__route { margin-top: 12px !important; font: 700 13px var(--body); color: #e2bfff !important; }
.mcard__route b { color: #c86bff; }
.mcard__st { margin-top: 14px; padding: 12px; border-radius: 10px; background: rgba(255, 255, 255, .06); font: 700 14px var(--body); }
.mcard__st--done { background: rgba(157, 255, 107, .12); color: #c9ffad; }
.mcard__st--review { background: rgba(255, 122, 26, .14); color: #ffc08f; }
.mcard__st--rejected { background: rgba(255, 80, 80, .14); color: #ffb0b0; }
.mcard form, .mcard .act { margin-top: 16px; display: grid; gap: 10px; }
.copy { display: flex; gap: 8px; }
.copy input { flex: 1; min-width: 0; }

/* ---- поля и кнопки ---- */
.field { display: grid; gap: 6px; font: 800 12px var(--body); color: rgba(255, 255, 255, .7); }
.field input, .copy input { width: 100%; padding: 14px 14px; border: 0; border-radius: 8px; background: #fff; color: #120812; font: 800 18px var(--body); outline: none; box-shadow: 0 0 0 3px transparent; transition: box-shadow .2s; }
.field input:focus { box-shadow: 0 0 0 3px var(--yellow); }
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em; width: 100%; padding: 16px 20px 15px; border: 3px solid var(--ink); border-radius: 6px; cursor: pointer; overflow: hidden;
  background: var(--yellow); color: var(--ink); font: 900 15px/1 var(--wide); text-transform: uppercase; letter-spacing: .01em; text-decoration: none;
  box-shadow: 4px 5px 0 var(--ink); transition: translate .12s, box-shadow .12s; }
.btn:active { translate: 2px 3px; box-shadow: 2px 2px 0 var(--ink); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); box-shadow: none; }
.btn--sm { width: auto; padding: 12px 16px; font-size: 12px; }
.btn::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: 0; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .6), transparent); transform: translateX(-150%); animation: shine 3.2s ease-in-out 1s infinite; will-change: transform; }
.btn--ghost::after { display: none; }
@keyframes shine { 0%, 55% { transform: translateX(-150%); } 100% { transform: translateX(325%); } }
.link { border: 0; background: none; padding: 0; cursor: pointer; color: var(--yellow); font: 700 13px var(--body); text-decoration: underline; text-underline-offset: 3px; }
.link:disabled { color: rgba(255, 255, 255, .4); cursor: default; text-decoration: none; }
.link--center { justify-self: center; }
.err { min-height: 1.2em; margin: 0; color: #ff8c8c; font: 700 13px var(--body); }
.err:empty { display: none; }
.hint { margin: 0; font: 600 12px var(--body); color: rgba(255, 255, 255, .55); }
.check { display: flex; gap: 10px; align-items: flex-start; font: 600 12px/1.4 var(--body); color: rgba(255, 255, 255, .7); }
.check input { margin-top: 2px; accent-color: var(--yellow); width: 16px; height: 16px; flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { padding: 7px 10px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .1); cursor: pointer; font: 800 11px var(--wide); }
.chips button:hover { background: rgba(255, 214, 10, .25); }

/* ================= вход ================= */
.auth { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; overflow-y: auto; touch-action: pan-y; background: #1a0820; }
.auth__bg { position: fixed; inset: 0; background: url('../assets/scene/bg-tall.webp') center 30% / cover no-repeat; }
.auth__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26, 6, 32, .1) 0%, rgba(26, 6, 32, .35) 35%, rgba(18, 8, 18, .96) 62%); }
.auth__art { position: fixed; left: 0; right: 0; top: calc(4vh + var(--st)); height: 46vh; pointer-events: none; }
.auth__art img { position: absolute; bottom: 0; height: 100%; width: auto; filter: drop-shadow(0 18px 24px rgba(30, 0, 40, .5)); }
.auth__courier { left: 50%; translate: -78% 0; }
.auth__girl { left: 50%; translate: -8% 0; height: 92% !important; }
.auth__box { position: relative; width: min(460px, 100%); padding: 20px 18px calc(22px + var(--sb)); margin-top: 33vh; }
.auth__logo { display: none; font: 900 18px var(--wide); text-decoration: none; }
.auth__logo b { color: var(--yellow); }
.hazard { display: flex; align-items: center; gap: .6em; margin: 0 0 12px; font: 700 10px/1 var(--wide); letter-spacing: .04em; color: var(--yellow); }
.hazard i { flex: 1; height: 14px; background: repeating-linear-gradient(-45deg, var(--yellow) 0 7px, var(--ink) 7px 14px); box-shadow: 0 0 0 2px var(--ink); border-radius: 2px; }
.hazard span { padding: .45em .8em; background: var(--ink); white-space: nowrap; }
.auth__title { margin: 0 0 18px; font: 900 clamp(30px, 9vw, 44px)/1.05 var(--wide); text-transform: uppercase; text-shadow: 0 3px 0 #1f0626; }
.sticker { display: inline-block; padding: .08em .35em .02em; background: var(--yellow); color: var(--ink); border: .06em solid var(--ink); border-radius: .08em; box-shadow: .1em .12em 0 var(--ink); text-shadow: none; rotate: -2deg; }
.auth__form { display: grid; gap: 14px; }
.auth__sent { margin: 0; font: 600 14px var(--body); color: rgba(255, 255, 255, .8); }
.otp { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.otp input { position: absolute; inset: 0; width: 100%; opacity: 0; font-size: 16px; border: 0; z-index: 2; caret-color: transparent; }
.otp i { display: grid; place-items: center; aspect-ratio: 1 / 1.1; border-radius: 10px; background: #fff; color: var(--ink); font: 900 30px var(--wide); font-style: normal; box-shadow: 0 0 0 3px transparent; transition: box-shadow .15s; }
.otp i.is-cur { box-shadow: 0 0 0 3px var(--yellow); }
.otp i.is-cur:empty::after { content: ''; width: 2px; height: 34%; background: var(--ink); animation: blink .8s steps(2) infinite; }
.otp.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { translate: -8px 0; } 40%, 80% { translate: 8px 0; } }
.call { text-align: center; }
.call .auth__sent { text-align: left; }
.call__lead { margin: 4px 0 0; font: 700 14px var(--body); color: rgba(255, 255, 255, .75); }
.call__num { display: block; padding: 14px 10px; border-radius: 12px; background: #fff; color: var(--ink); font: 900 clamp(22px, 7vw, 30px) var(--wide); letter-spacing: .02em; text-decoration: none; white-space: nowrap; box-shadow: 0 0 0 3px var(--yellow); }
.call__hint { margin: 0; font: 600 13px var(--body); color: rgba(255, 255, 255, .7); }
.call__qr { justify-self: center; width: 160px; height: 160px; padding: 8px; border-radius: 12px; background: #fff; }
.call__wait { display: flex; align-items: center; justify-content: center; gap: 10px; font: 700 14px var(--body); }
.call__wait i { width: 12px; height: 12px; border-radius: 50%; background: var(--yellow); animation: callPulse 1.2s ease-out infinite; }
.call__wait.is-off i { animation: none; background: #ff5a5a; }
@keyframes callPulse { 0% { box-shadow: 0 0 0 0 rgba(255, 214, 10, .7); } 100% { box-shadow: 0 0 0 14px rgba(255, 214, 10, 0); } }
@media (pointer: coarse) { .call__qr { display: none; } }
@media (pointer: fine) { .call #callBtn { display: none; } }
.devcode { margin: 0; padding: 10px 12px; border-radius: 8px; background: repeating-linear-gradient(-45deg, rgba(255, 214, 10, .14) 0 10px, rgba(255, 214, 10, .06) 10px 20px); box-shadow: 0 0 0 1.5px rgba(255, 214, 10, .5) inset; font: 700 13px var(--body); }
.devcode b { font: 900 18px var(--wide); color: var(--yellow); letter-spacing: .2em; }

/* ================= «миссия пройдена» ================= */
.passed { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; pointer-events: none; }
.passed__band { width: 100%; padding: 22px 16px 20px; text-align: center; background: linear-gradient(90deg, transparent, rgba(0, 0, 0, .78) 18%, rgba(0, 0, 0, .78) 82%, transparent); }
.passed__title { margin: 0; font: 900 clamp(48px, 13vw, 110px)/.85 var(--display); color: var(--yellow); letter-spacing: .02em; text-shadow: 0 4px 0 #3b2a00, 0 0 30px rgba(255, 214, 10, .35); }
.passed__sub { margin: 10px 0 0; font: 800 15px var(--body); color: #fff; }
.passed__pts { margin: 8px 0 0; font: 900 34px/1 var(--display); color: #9dff6b; text-shadow: 0 3px 0 #0b2a00; }

.toast { position: fixed; left: 50%; top: calc(70px + var(--st)); translate: -50% -14px; opacity: 0; transition: opacity .2s, translate .25s cubic-bezier(.2, 1.4, .4, 1); z-index: 70; max-width: calc(100% - 28px); padding: 12px 16px; border-radius: 8px; background: #fff; color: var(--ink); font: 800 14px var(--body); box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.toast--err { background: #ff5a5a; color: #fff; }
.boot { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--ink); font: 900 22px var(--wide); transition: opacity .4s; }
.boot b { color: var(--yellow); }
.boot span { animation: blink 1s ease-in-out infinite alternate; }
.boot.is-off { opacity: 0; pointer-events: none; }
@keyframes blink { from { opacity: .35; } to { opacity: 1; } }
.demo-pill { display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35); font: 700 10px var(--body); color: rgba(255, 255, 255, .7); vertical-align: middle; }

/* ================= компьютер ================= */
@media (min-width: 900px) {
  .top { padding: 16px 24px 30px; gap: 22px; }
  .top__logo { display: block; font-size: 18px; }
  .top__city { flex: none; }
  .top__city { font-size: 14px; padding-left: 22px; border-left: 1px solid var(--line); }
  .top__stats { font-size: 30px; gap: 14px; }
  .rank { font-size: 15px; }
  .panel { left: auto; right: 18px; top: 84px; bottom: 18px; width: 400px; height: auto; transform: none; border-radius: 14px; padding-bottom: 0; }
  .panel__grip { display: none; }
  .tabs { padding-top: 12px; }
  .ctrl { right: 436px; bottom: 28px; }
  .legend { display: block; }
  .hints { display: flex; left: calc(50% - 210px); }
  .pick { padding: 24px; }
  .pick__banner { margin: 70px 0 0; padding: 20px 24px; }
  .pick__list { position: fixed; right: 24px; top: 96px; bottom: 24px; flex-direction: column; overflow-y: auto; touch-action: pan-y; padding: 0; width: 280px; }
  .ccard { width: auto; padding: 14px 16px; }
  .sheet { align-items: center; background: rgba(5, 3, 8, .55); }
  .sheet__card { border-radius: 16px; padding: 26px 26px 24px; }
  .auth { align-items: center; justify-content: flex-start; }
  .auth__bg { background-image: url('../assets/scene/bg.webp'); background-position: center 60%; }
  .auth__bg::after { background: linear-gradient(90deg, rgba(18, 8, 18, .96) 0%, rgba(18, 8, 18, .82) 34%, rgba(26, 6, 32, .15) 62%); }
  .auth__art { left: 40%; right: 0; top: 0; bottom: 0; height: auto; }
  .auth__art img { height: 92%; }
  .auth__courier { left: 30%; translate: 0 0; }
  .auth__girl { left: 54%; translate: 0 0; height: 84% !important; }
  .auth__box { margin: 0 0 0 7vw; padding: 40px 0; }
  .auth__logo { display: inline-block; margin-bottom: 40px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* розыгрыш в кабинете */
.dcard { padding: 16px; border-radius: 12px; background: repeating-linear-gradient(-45deg, rgba(255, 214, 10, .1) 0 12px, rgba(255, 214, 10, .04) 12px 24px); box-shadow: 0 0 0 2px var(--yellow) inset; }
.dcard__k { margin: 0 0 10px; font: 900 11px var(--wide); text-transform: uppercase; letter-spacing: .04em; color: var(--yellow); }
.dcard__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dcard__row div { padding: 10px; border-radius: 8px; background: rgba(0, 0, 0, .35); }
.dcard__row b { display: block; font: 900 30px/1 var(--display); color: #fff; }
.dcard__row div:first-child b { color: #9dff6b; }
.dcard__row span { font: 700 11px var(--body); color: rgba(255, 255, 255, .6); }
.dcard__h { margin: 12px 0; font: 600 12.5px/1.4 var(--body); color: rgba(255, 255, 255, .75); }
.dord { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; margin-bottom: 6px; border-radius: 8px; background: rgba(255, 255, 255, .05); font: 800 14px var(--body); }
.dord small { display: block; font: 600 12px var(--body); color: rgba(255, 255, 255, .5); }
.dord b { font: 900 22px var(--display); color: #9dff6b; }
.dord--off { opacity: .5; }
.dord--off b { color: rgba(255, 255, 255, .5); }
@media (max-width: 420px) { .tabs button { font-size: 10px; letter-spacing: 0; } }

/* ================= баланс, акты, промокоды ================= */
.cash { display: grid; justify-items: end; gap: 2px; padding: 0; border: 0; background: none; cursor: pointer; text-align: right; }
.cash__v { font: 900 26px/1 var(--display); color: #9dff6b; letter-spacing: .01em; text-shadow: 0 2px 0 #0b2a00, 0 0 12px rgba(0, 0, 0, .9); }
.cash__rp { font: 800 10px var(--wide); color: rgba(255, 255, 255, .7); text-transform: uppercase; text-shadow: 0 1px 4px #000; }
@media (min-width: 900px) { .cash__v { font-size: 34px; } }
.shopbtn { position: fixed; z-index: 16; left: 12px; top: calc(66px + var(--st)); display: flex; align-items: center; gap: 7px; padding: 9px 13px 8px 10px; border: 2px solid var(--ink); border-radius: 6px; background: var(--yellow); color: var(--ink); font: 900 12px var(--wide); text-transform: uppercase; box-shadow: 3px 3px 0 var(--ink); cursor: pointer; }
.shopbtn svg { width: 18px; height: 18px; }
.shopbtn:active { translate: 2px 2px; box-shadow: 1px 1px 0 var(--ink); }
@media (min-width: 900px) { .shopbtn { top: 84px; left: 18px; font-size: 13px; padding: 11px 16px 10px 12px; } }

.wallet { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: stretch; margin-bottom: 12px; }
.wallet > div { padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .05); }
.wallet span { display: block; font: 700 11px var(--body); color: rgba(255, 255, 255, .55); }
.wallet b { font: 900 26px/1.05 var(--display); color: #9dff6b; }
.wallet__rp { color: #fff !important; }
.wallet__shop { padding: 0 14px; border: 2px solid var(--ink); border-radius: 8px; background: var(--yellow); color: var(--ink); font: 900 12px var(--wide); text-transform: uppercase; cursor: pointer; box-shadow: 3px 3px 0 #000; }

.act { margin: 14px 0 4px; }
.act__h { display: flex; align-items: center; gap: 10px; margin: 0 2px 8px; }
.act__n { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 6px; background: var(--yellow); color: var(--ink); font: 900 14px var(--wide); transform: rotate(-4deg); box-shadow: 2px 2px 0 #000; }
.act__t { font: 900 12px/1.2 var(--wide); text-transform: uppercase; letter-spacing: .03em; }
.act__t small { display: block; margin-top: 2px; font: 700 11px var(--body); text-transform: none; letter-spacing: 0; color: rgba(255, 255, 255, .55); }
.act--locked .act__n { background: #3a3a3a; color: #bbb; }
.act--done .act__n { background: #9dff6b; }
.mis--locked { opacity: .45; }
.mis--locked .mis__ico { background: #3a3a3a; color: #bbb; }
.mis--locked .mis__pts { color: rgba(255, 255, 255, .4); }
.promo { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 6px; border-radius: 8px; background: repeating-linear-gradient(-45deg, rgba(255, 214, 10, .08) 0 10px, rgba(255, 214, 10, .02) 10px 20px); box-shadow: 0 0 0 1px rgba(255, 214, 10, .3) inset; font: 800 13px var(--body); }
.promo small { display: block; font: 600 11px var(--body); color: rgba(255, 255, 255, .5); }
.promo em { font: 700 12px var(--body); color: rgba(255, 255, 255, .5); }
.promo__code { padding: 7px 10px; border: 2px dashed var(--yellow); border-radius: 6px; background: #000; color: var(--yellow); font: 900 13px var(--wide); letter-spacing: .06em; cursor: pointer; }
.promo__code--big { display: block; width: 100%; margin: 8px 0; padding: 12px; font-size: 20px; text-align: center; }
.prizes { margin: 16px 0 4px; padding: 12px; border-radius: 10px; background: rgba(157, 255, 107, .08); box-shadow: 0 0 0 1px rgba(157, 255, 107, .3) inset; font: 600 12.5px/1.45 var(--body); color: rgba(255, 255, 255, .8); }
.prizes b { color: #9dff6b; }
.step { padding: 12px; border-radius: 10px; background: rgba(255, 255, 255, .05); font: 600 13px/1.4 var(--body); color: rgba(255, 255, 255, .75); }
.step b { display: block; margin-bottom: 4px; font: 900 13px var(--wide); color: #fff; }
.step .btn { margin-top: 8px; }
.step .copy { margin-top: 8px; }
.step--ok { background: rgba(157, 255, 107, .1); box-shadow: 0 0 0 1px rgba(157, 255, 107, .35) inset; }
.step--ok b::after { content: ' ✓'; color: #9dff6b; }
.qrhow { padding: 12px; border-radius: 10px; background: rgba(200, 107, 255, .1); box-shadow: 0 0 0 1px rgba(200, 107, 255, .35) inset; font: 600 12.5px/1.45 var(--body); color: rgba(255, 255, 255, .8); }
.qrhow b { display: block; margin-bottom: 3px; color: #e2bfff; font: 900 12px var(--wide); text-transform: uppercase; }
.crew { text-align: center; padding: 12px; border-radius: 10px; background: rgba(255, 255, 255, .05); }
.crew span { font: 900 11px var(--wide); text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.crew small { display: block; font: 700 12px var(--body); color: rgba(255, 255, 255, .7); }

/* круг поиска граффити */
.blip--zone { z-index: 0 !important; }
.b-zone { width: var(--d, 60px); height: var(--d, 60px); border-radius: 50%; background: rgba(255, 214, 10, .14); box-shadow: 0 0 0 2px rgba(255, 214, 10, .8) inset; animation: zone 2.4s ease-in-out infinite; }
@keyframes zone { 50% { background: rgba(255, 214, 10, .26); } }
.blip--zone .tag { margin-top: 0; top: 50%; }
.blip--locked .b-mis { background: #3a3a3a; color: #ccc; }

/* ================= магазин SUSHI-NATION ================= */
body.shop-open .shopbtn, body.shop-open .ctrl { visibility: hidden; }
.shop { position: fixed; inset: 0; z-index: 45; display: flex; flex-direction: column; background: #0b090c; color: #fff; overflow: hidden; touch-action: pan-y; }
.shop__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; background:
  radial-gradient(60% 40% at 15% 0%, rgba(255, 61, 139, .22), transparent 70%), radial-gradient(50% 40% at 100% 10%, rgba(255, 214, 10, .14), transparent 70%),
  repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px), repeating-linear-gradient(-45deg, rgba(255, 255, 255, .02) 0 18px, transparent 18px 36px); }
.shop__top { display: flex; align-items: center; gap: 12px; padding: calc(14px + var(--st)) 16px 10px; }
.shop__brand { flex: 1; min-width: 0; }
.shop__logo { position: relative; display: inline-block; white-space: nowrap; font: 900 clamp(30px, 8.5vw, 64px)/.9 var(--display); letter-spacing: .01em; color: #ff4f8b; text-shadow: 0 0 6px rgba(255, 79, 139, .9), 0 0 22px rgba(255, 79, 139, .6), 3px 3px 0 #2a0612; transform: skewX(-8deg); }
.shop__logo::after { content: attr(data-text); position: absolute; left: 3px; top: 0; white-space: nowrap; color: var(--yellow); opacity: .55; clip-path: inset(55% 0 0 0); text-shadow: none; animation: logoGlitch 4s steps(1) infinite; }
@keyframes logoGlitch { 0%, 92%, 100% { transform: none; } 93% { transform: translateX(4px); } 95% { transform: translateX(-3px); } }
.shop__brand small { display: block; margin-top: 6px; font: 700 12px var(--body); color: rgba(255, 255, 255, .6); }
.shop__cash { text-align: right; }
.shop__cash span { display: block; font: 800 10px var(--wide); text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.shop__cash b { display: inline-block; font: 900 clamp(30px, 8vw, 48px)/1 var(--display); color: #9dff6b; text-shadow: 0 3px 0 #0b2a00; }
.shop__x { width: 42px; height: 42px; flex: none; align-self: flex-start; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.shop__tabs { display: flex; gap: 6px; padding: 0 16px; }
.shop__tabs button { padding: 10px 14px; border: 0; border-bottom: 3px solid transparent; background: none; color: rgba(255, 255, 255, .55); font: 900 12px var(--wide); text-transform: uppercase; cursor: pointer; }
.shop__tabs button[aria-selected="true"] { color: #fff; border-bottom-color: #ff4f8b; }
.shop__tabs b { color: var(--yellow); }
.shop__cats { display: flex; gap: 6px; padding: 10px 16px 4px; overflow-x: auto; scrollbar-width: none; }
.shop__cats button { flex: none; padding: 7px 12px; border: 1.5px solid rgba(255, 255, 255, .25); border-radius: 999px; background: none; color: #fff; font: 800 11px var(--wide); text-transform: uppercase; cursor: pointer; }
.shop__cats button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.shop__body { flex: 1; overflow-y: auto; padding: 12px 16px calc(24px + var(--sb)); overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.shop__empty { margin: 40px 0; text-align: center; font: 700 15px var(--body); color: rgba(255, 255, 255, .6); }
.sgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 14px; perspective: 900px; }
.scard { position: relative; display: flex; flex-direction: column; padding: 12px; border-radius: 12px; background: #161216; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset, 0 14px 30px rgba(0, 0, 0, .4); transition: transform .2s, box-shadow .2s; }
@media (hover: hover) { .scard:not(.is-off):hover { transform: translateY(-4px) rotate(-.5deg); box-shadow: 0 0 0 2px #ff4f8b inset, 0 18px 40px rgba(255, 79, 139, .2); } }
.scard.is-off .scard__art { filter: grayscale(.7) brightness(.7); }
.scard__art { position: relative; height: 150px; display: grid; place-items: center; border-radius: 8px; overflow: hidden; background: radial-gradient(70% 70% at 50% 40%, #3a1640, #150914); }
.scard--food .scard__art { background: radial-gradient(70% 70% at 50% 40%, #4a2410, #160a05); }
.scard--merch .scard__art { background: radial-gradient(70% 70% at 50% 40%, #12304a, #060d16); }
.scard--partner .scard__art { background: radial-gradient(70% 70% at 50% 40%, #1d3b1d, #071107); }
.price { position: absolute; right: 8px; bottom: 8px; padding: 6px 10px 5px; background: #000; color: #9dff6b; font: 900 22px/1 var(--display); border: 2px solid #9dff6b; border-radius: 4px; transform: rotate(-4deg); box-shadow: 3px 3px 0 rgba(0, 0, 0, .6); }
.scard__hot { position: absolute; left: 8px; top: 8px; padding: 4px 8px; background: #ff3b3b; color: #fff; font: 900 10px var(--wide); text-transform: uppercase; border-radius: 3px; animation: pulse 1.2s ease-in-out infinite; }
.scard h3 { margin: 12px 0 0; font: 900 15px/1.2 var(--wide); text-transform: uppercase; }
.scard p { flex: 1; margin: 6px 0 0; font: 600 12.5px/1.4 var(--body); color: rgba(255, 255, 255, .65); }
.scard__meta { margin: 8px 0 10px; font: 700 11px var(--body); color: rgba(255, 255, 255, .45); }
.sbtn { width: 100%; padding: 12px 14px 11px; border: 2px solid var(--ink); border-radius: 6px; background: var(--yellow); color: var(--ink); font: 900 13px var(--wide); text-transform: uppercase; cursor: pointer; box-shadow: 3px 3px 0 #000; }
.sbtn:active { translate: 2px 2px; box-shadow: 1px 1px 0 #000; }
.sbtn:disabled { background: #2a2a2a; color: rgba(255, 255, 255, .5); border-color: #2a2a2a; box-shadow: none; cursor: default; }
.sbtn--ghost { background: none; color: #fff; border-color: rgba(255, 255, 255, .3); box-shadow: none; }

/* иллюстрации */
.art { display: grid; place-items: center; text-align: center; }
.art--sticker { padding: 10px 14px; background: var(--yellow); color: var(--ink); border: 3px solid var(--ink); border-radius: 6px; transform: rotate(-6deg); box-shadow: 4px 5px 0 #000; }
.art--sticker span { font: 900 11px var(--wide); }
.art--sticker b { font: 900 22px/1 var(--display); }
.art--cert { position: relative; width: 170px; padding: 14px; background: linear-gradient(135deg, #fff3df, #ffd9a0); color: var(--ink); border-radius: 8px; transform: rotate(4deg); box-shadow: 4px 5px 0 #000; }
.art--cert small { font: 800 10px var(--wide); text-transform: uppercase; }
.art--cert b { display: block; font: 900 40px/1 var(--display); }
.art--cert i { position: absolute; inset: 6px; border: 2px dashed rgba(0, 0, 0, .3); border-radius: 5px; }
.art--set b { margin-top: 8px; font: 900 13px var(--wide); color: var(--yellow); }
.art__box { display: grid; grid-template-columns: repeat(3, 32px); gap: 6px; padding: 10px; background: #0d0d0d; border: 3px solid var(--yellow); border-radius: 8px; transform: rotate(-3deg); box-shadow: 4px 5px 0 #000; }
.art__box i { width: 32px; height: 32px; border-radius: 50%; background: radial-gradient(circle, #ff8a5c 0 28%, #fff 30% 55%, #1b1b1b 57%); }
.art--tee svg { width: 120px; filter: drop-shadow(4px 5px 0 #000); transform: rotate(-4deg); }
.art--partner b { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: #3ddc84; color: var(--ink); font-size: 44px; box-shadow: 0 0 0 4px var(--ink), 4px 5px 0 4px #000; }
.art--partner span { margin-top: 10px; font: 900 11px var(--wide); text-transform: uppercase; color: #3ddc84; }
.art--gift b { font-size: 64px; }

/* окно покупки */
.shop__modal { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .72); }
.smodal { width: min(420px, 100%); padding: 20px; border-radius: 14px; background: #161216; box-shadow: 0 0 0 2px #ff4f8b inset, 0 30px 80px rgba(0, 0, 0, .7); text-align: center; }
.smodal__k { margin: 0 0 10px; font: 900 12px var(--wide); text-transform: uppercase; letter-spacing: .06em; color: #ff4f8b; }
.smodal__art { height: 130px; display: grid; place-items: center; transform: scale(.85); }
.smodal h3 { margin: 6px 0 12px; font: 900 18px/1.2 var(--wide); text-transform: uppercase; }
.smodal__sum { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 12px; border-radius: 10px; background: rgba(255, 255, 255, .05); text-align: left; font: 700 13px var(--body); color: rgba(255, 255, 255, .6); }
.smodal__sum b { font: 900 22px/1 var(--display); color: #fff; text-align: right; }
.smodal__sum .minus { color: #ff6b6b; }
.smodal__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-top: 14px; }
.stamp { display: inline-block; margin: 0 0 6px; padding: 8px 14px 6px; border: 4px solid #9dff6b; border-radius: 6px; color: #9dff6b; font: 900 clamp(26px, 7vw, 34px)/1 var(--display); text-transform: uppercase; transform: rotate(-6deg); }
.bigticket { padding: 14px; border-radius: 10px; background: #000; box-shadow: 0 0 0 2px var(--yellow) inset; }
.bigticket small { font: 800 10px var(--wide); text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.bigticket span { display: block; font: 600 12.5px/1.4 var(--body); color: rgba(255, 255, 255, .75); }
.tickets { display: grid; gap: 10px; }
.ticket { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 10px; background: #161216; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset; }
.ticket--cancelled { opacity: .5; }
.ticket__l { flex: 1; min-width: 0; }
.ticket__l b { display: block; font: 900 13px/1.2 var(--wide); text-transform: uppercase; }
.ticket__l small { display: block; margin: 3px 0; font: 700 11px var(--body); color: rgba(255, 255, 255, .5); }
.ticket__l span { font: 600 12px/1.35 var(--body); color: rgba(255, 255, 255, .7); }
.ticket__code { flex: none; padding: 9px 11px; border: 2px dashed var(--yellow); border-radius: 6px; background: #000; color: var(--yellow); font: 900 14px var(--wide); letter-spacing: .05em; cursor: pointer; }
.ticket__code--big { display: block; width: 100%; margin: 8px 0; font-size: 24px; padding: 12px; }
.ticket__code.is-copied { border-color: #9dff6b; color: #9dff6b; }

/* сканер QR в кабинете */
.scanner { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: #000; }
.scanner video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scanner__frame { position: relative; width: min(70vw, 300px); aspect-ratio: 1; border-radius: 22px; box-shadow: 0 0 0 4px var(--yellow), 0 0 0 100vmax rgba(0, 0, 0, .55); overflow: hidden; }
.scanner__frame i { position: absolute; left: 8%; right: 8%; top: 10%; height: 3px; background: linear-gradient(90deg, transparent, var(--yellow), transparent); animation: scanLine 2.2s ease-in-out infinite; will-change: transform; }
@keyframes scanLine { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(calc(min(70vw, 300px) * .78)); } }
.scanner__hint { position: absolute; bottom: calc(40px + var(--sb)); left: 0; right: 0; margin: 0; text-align: center; font: 800 16px var(--body); color: #fff; text-shadow: 0 2px 8px #000; }
.scanner__x { position: absolute; top: calc(14px + var(--st)); right: 14px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .6); font: 900 30px/1 var(--body); color: #fff; }

.toast.is-in { opacity: 1; translate: -50% 0; }
.rank__up { margin-left: 6px; padding: 1px 6px; border-radius: 6px; background: var(--green); color: var(--ink); font: 900 11px var(--body); }
.promo__code.is-new { animation: promoNew 1.6s ease-out 2; box-shadow: 0 0 0 2px var(--green); }
@keyframes promoNew { 0% { transform: scale(1); } 15% { transform: scale(1.12); } 30% { transform: scale(1); } }
.call__wait.is-ok i { animation: none; background: var(--green); }
.call__wait.is-ok b { color: var(--green); }
.scanner { animation: scanIn .25s ease-out; }
.scanner.is-out { opacity: 0; transition: opacity .2s; }
.scanner.is-hit .scanner__frame { box-shadow: 0 0 0 8px var(--green), 0 0 0 100vmax rgba(0, 0, 0, .55); transition: box-shadow .15s; }
@keyframes scanIn { from { opacity: 0; } to { opacity: 1; } }
/* под магазином и входом карта не видна — бесконечные анимации на паузе */
.shop-open .blip *, .shop-open .btn::after, .shop-open .call__wait i { animation-play-state: paused !important; }

/* ======================= главная кабинета ======================= */
/* home лежит над картой (карта грузится за ним), под карточками, магазином и баннерами */
.mode-home .top, .mode-home .panel, .mode-home .ctrl, .mode-home .legend, .mode-home .hints, .mode-home .shopbtn { display: none !important; }
.mode-home .world__map { visibility: hidden; }
.home { position: fixed; inset: 0; z-index: 30; display: grid; grid-template-rows: auto 1fr auto; background:
  radial-gradient(120% 60% at 100% 0%, color-mix(in srgb, var(--city) 28%, transparent), transparent 60%),
  radial-gradient(90% 50% at 0% 100%, rgba(200, 107, 255, .22), transparent 60%), #120812; color: var(--cream); }
.home__top { display: flex; align-items: center; gap: 12px; padding: calc(12px + var(--st)) 16px 10px; }
.home__logo { font: 900 15px var(--wide); color: #fff; text-decoration: none; }
.home__logo b { color: var(--yellow); }
.home__city { display: flex; align-items: center; gap: 7px; flex: 1; min-width: 0; font: 900 12px var(--wide); text-transform: uppercase; }
.home__city i { width: 10px; height: 10px; border-radius: 50%; background: var(--city); box-shadow: 0 0 0 2px #120812, 0 0 0 3.5px var(--city); }
.home__city small { padding: 2px 6px; border-radius: 4px; background: rgba(255, 214, 10, .15); color: var(--yellow); font: 800 10px var(--body); text-transform: none; }
.home__menu { border: 0; padding: 8px 12px; border-radius: 8px; background: rgba(255, 255, 255, .08); font: 800 12px var(--body); cursor: pointer; }
.home__body { overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; padding: 4px 16px 24px; max-width: 720px; width: 100%; margin: 0 auto; -webkit-overflow-scrolling: touch; }
.home__dock { display: flex; gap: 8px; padding: 10px 16px calc(10px + var(--sb)); background: rgba(10, 6, 12, .92); box-shadow: 0 -1px 0 var(--line); justify-content: center; }
.dock__btn { flex: 1; max-width: 220px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 6px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .06); color: var(--cream); font: 800 12px var(--body); text-decoration: none; cursor: pointer; }
.dock__btn svg { width: 22px; height: 22px; }
.dock__btn--map { background: var(--yellow); color: #120812; }
.dock__btn--order { background: rgba(255, 90, 90, .18); color: #ffb3b3; }

.hme { padding: 6px 0 4px; }
.hme__hi { margin: 0; font: 800 11px var(--wide); text-transform: uppercase; letter-spacing: .1em; color: rgba(255, 255, 255, .5); }
.hme__nick { margin: 2px 0 12px; font: 900 clamp(34px, 11vw, 56px)/.95 var(--display); text-transform: uppercase; letter-spacing: .01em; color: #fff; text-shadow: 0 4px 0 rgba(0, 0, 0, .5); overflow-wrap: anywhere; }
.hme__stats { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.hstat { display: grid; gap: 1px; padding: 10px 12px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .06); box-shadow: 0 0 0 1px var(--line) inset; text-align: left; color: inherit; font: inherit; }
.hstat span { font: 700 11px var(--body); color: rgba(255, 255, 255, .55); }
.hstat b { font: 900 22px/1.1 var(--wide); }
.hstat small { font: 700 11px var(--body); color: rgba(255, 255, 255, .5); }
.hstat--cash { cursor: pointer; background: rgba(157, 255, 107, .1); box-shadow: 0 0 0 1px rgba(157, 255, 107, .35) inset; }
.hstat--cash b { color: #9dff6b; }
.hstat__rp { color: var(--yellow); }

.hcur { position: relative; margin: 16px 0 6px; padding: 16px; border-radius: 16px; background: linear-gradient(135deg, rgba(255, 214, 10, .16), rgba(255, 122, 26, .1)); box-shadow: 0 0 0 2px var(--yellow) inset, 0 18px 40px -18px rgba(255, 214, 10, .5); cursor: pointer; overflow: hidden; }
.hcur::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(255, 214, 10, .05) 0 12px, transparent 12px 24px); pointer-events: none; }
.hcur--all { cursor: default; box-shadow: 0 0 0 1px var(--line) inset; background: rgba(255, 255, 255, .05); }
.hcur__k { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font: 900 11px var(--wide); text-transform: uppercase; color: var(--yellow); }
.hcur__t { margin: 0; font: 900 clamp(28px, 8vw, 40px)/1 var(--display); text-transform: uppercase; color: #fff; }
.hcur__b { margin: 8px 0 0; font: 600 14px/1.45 var(--body); color: rgba(255, 255, 255, .85); }
.hcur__st { margin: 8px 0 0; font: 700 12px var(--body); color: rgba(255, 255, 255, .6); }
.hcur__row { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; }
.hcur__pts { font: 900 20px var(--wide); color: #9dff6b; }

.hrow { display: flex; align-items: center; gap: 12px; width: 100%; margin-bottom: 6px; padding: 10px 12px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .05); box-shadow: 0 0 0 1px var(--line) inset; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.hrow__t { flex: 1; min-width: 0; display: grid; gap: 1px; }
.hrow__t b { font: 800 14px var(--body); }
.hrow__t small { font: 600 12px var(--body); color: rgba(255, 255, 255, .55); }
.hrow__pts { font: 900 13px var(--wide); color: #9dff6b; }
.hrow--done .mis__ico { background: var(--green); }
.hrow--done { opacity: .75; }
.hrow--locked { cursor: default; opacity: .6; }
.hrow--locked .mis__ico { background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .7); box-shadow: none; }
.hrow--review .hrow__t small { color: #ffd166; }
.hmap { width: 100%; margin-top: 14px; }

/* карта: возврат в кабинет */
.top__home { display: flex; align-items: center; gap: 4px; flex: none; padding: 8px 12px 8px 8px; border: 0; border-radius: 10px; background: var(--yellow); color: #120812; font: 900 12px var(--wide); text-transform: uppercase; cursor: pointer; box-shadow: 0 4px 0 rgba(0, 0, 0, .35); }
.top__home svg { width: 18px; height: 18px; }

/* наши рестораны на карте */
.b-rest { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #e63946; font-size: 21px; box-shadow: 0 0 0 3px #fff, 0 0 0 6px rgba(230, 57, 70, .45), 0 8px 16px rgba(0, 0, 0, .5); animation: restPulse 2.4s ease-in-out infinite; }
.b-rest--sm { width: 30px; height: 30px; font-size: 16px; border-radius: 9px; animation: none; margin-right: 8px; }
@keyframes restPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.tag--rest { background: #e63946 !important; color: #fff !important; }
.tag--rest small { display: block; font: 600 10px var(--body); opacity: .85; }
.blip--rest .tag { opacity: 1; }
.lg-ico--rest { font-style: normal; }
@media (prefers-reduced-motion: reduce) { .b-rest { animation: none; } }
@media (min-width: 900px) { .hme__stats { grid-template-columns: repeat(3, 1fr); } }

/* фото достопримечательности в карточке */
.lmphoto { position: relative; margin: -4px -4px 14px; border-radius: 14px; overflow: hidden; background: rgba(255, 255, 255, .05); aspect-ratio: 16 / 10; }
.lmphoto img { display: block; width: 100%; height: 100%; object-fit: cover; animation: lmIn .6s ease-out; }
.lmphoto figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 10px 6px; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); font: 600 10px/1.3 var(--body); color: rgba(255, 255, 255, .75); }
.lmphoto figcaption a { color: inherit; }
@keyframes lmIn { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
@media (max-width: 480px) {
  .top__home { padding: 8px; }
  .top__home span { display: none; }
}
.sheet__x { z-index: 3; }

/* логотип бренда на метке ресторана и в карточке */
.b-rest--logo { width: 52px; height: 52px; padding: 4px; border-radius: 14px; background: #fff; }
.b-rest--logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.b-rest--sm:empty { display: none; }
.rest__logo { display: block; height: 72px; margin: 0 0 10px; object-fit: contain; object-position: left; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .5)); }
