/* ==========================================================================
   ДУХОЛОВ — стили
   ========================================================================== */
:root {
  --bg: #120c24;
  --bg2: #1c1438;
  --panel: rgba(28, 20, 56, .92);
  --line: rgba(255, 255, 255, .12);
  --text: #f4f1ff;
  --muted: #b3aacb;
  --gold: #fbbf24;
  --gold2: #fde047;
  --teal: #5eead4;
  --violet: #a78bfa;
  --danger: #f87171;
  --good: #4ade80;
  --r: 18px;
  --st: env(safe-area-inset-top, 0px);
  --sb: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--text);
  font-family: 'Rubik', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: 15px;
  user-select: none; -webkit-user-select: none; overscroll-behavior: none; touch-action: manipulation; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
input { font: inherit; user-select: text; -webkit-user-select: text; }
.hidden { display: none !important; }
.art { width: 100%; height: 100%; display: block; overflow: visible; }
.ico { width: 24px; height: 24px; display: block; }
b { font-weight: 700; }
small, .small { color: var(--muted); font-size: 12px; }

/* ---------- анимации частей духов ---------- */
.art-flicker { animation: flicker 1.2s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 100%; }
.art-blink { animation: blink 1.6s ease-in-out infinite; }
.art-float { animation: floaty 2.4s ease-in-out infinite; transform-box: fill-box; }
.art-sway { animation: sway 2.8s ease-in-out infinite; transform-box: fill-box; transform-origin: 0% 50%; }
.art-wing { animation: flap .9s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 100% 60%; }
.art-spin { animation: spin 6s linear infinite; transform-box: fill-box; transform-origin: center; }
.art-spin-soft { animation: wobbleSoft 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.art-aura { animation: auraPulse 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.art-eyes { animation: eyeBlink 5s infinite; transform-box: fill-box; transform-origin: center; }
@keyframes flicker { from { transform: scaleY(.9) skewX(-3deg); } to { transform: scaleY(1.08) skewX(3deg); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes sway { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(6deg); } }
@keyframes flap { from { transform: rotate(-10deg); } to { transform: rotate(14deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes wobbleSoft { 0%, 100% { transform: rotate(-6deg) scale(1); } 50% { transform: rotate(6deg) scale(1.04); } }
@keyframes auraPulse { 0%, 100% { transform: scale(.94); opacity: .8; } 50% { transform: scale(1.04); opacity: 1; } }
@keyframes eyeBlink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ---------- карта ---------- */
#map { position: fixed; inset: 0; background: #d9d3c7; z-index: 0; }
body.night #map { background: #1b1b1f; }
#map .leaflet-tile-pane { filter: grayscale(1) sepia(.45) hue-rotate(218deg) saturate(1.5) brightness(.88) contrast(.9); } /* 3.24: подложка в тонах Нави — духи и объекты на первом плане */
body.night #map .leaflet-tile-pane { filter: invert(1) hue-rotate(195deg) saturate(.55) brightness(.8) contrast(.95); }
.leaflet-control-attribution { font-size: 9px !important; background: rgba(18, 12, 36, .55) !important; color: #cfc8e6 !important; border-radius: 6px 0 0 0; }
.leaflet-control-attribution a { color: #e9e3ff !important; }
.leaflet-bottom.leaflet-right { bottom: calc(var(--sb)); }
.range-circle { stroke: var(--teal); stroke-width: 2; stroke-dasharray: 6 8; fill: var(--teal); fill-opacity: .07; }
body.night .range-circle { fill-opacity: .1; }

.mk { background: none; border: 0; }
.mk-spirit { position: relative; width: 100%; height: 100%; animation: bob 2.2s ease-in-out infinite; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .35)); }
.mk-spirit .mk-glow { position: absolute; left: 50%; bottom: 2px; width: 44px; height: 14px; margin-left: -22px; border-radius: 50%; background: var(--c); opacity: .45; filter: blur(4px); }
.mk-spirit.r3 .mk-glow, .mk-spirit.r4 .mk-glow { opacity: .9; width: 60px; margin-left: -30px; height: 18px; animation: auraPulse 1.6s infinite; }
.mk-spirit.r4::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; background: radial-gradient(circle, rgba(192, 132, 252, .35), transparent 65%); animation: auraPulse 1.4s infinite; z-index: -1; }
.mk.far .mk-spirit { opacity: .82; }
.mk-spring { width: 100%; height: 100%; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .35)); }
.mk-spring .beam { animation: blink 2.2s ease-in-out infinite; }
.mk-spring.used { filter: grayscale(.4) drop-shadow(0 3px 2px rgba(0, 0, 0, .35)); }
.mk-rift { position: relative; width: 100%; height: 100%; }
.mk-rift > .art { position: absolute; left: 6px; top: 20px; width: 72px; height: 72px; }
.mk-rift .mk-boss { position: absolute; left: 14px; top: 0; width: 56px; height: 56px; animation: bob 1.8s ease-in-out infinite; filter: drop-shadow(0 0 6px rgba(0, 0, 0, .5)); }
.mk-rift .mk-tier { position: absolute; left: 0; right: 0; bottom: -2px; text-align: center; color: var(--gold2); font-size: 12px; font-weight: 900; text-shadow: 0 1px 2px #000, 0 0 4px #000; letter-spacing: 1px; }
.mk-rift.done { filter: grayscale(.8) opacity(.7); }
.mk-rift.done .mk-boss { display: none; }

.mk-player-wrap { background: none; border: 0; }
.mk-player { position: relative; width: 64px; height: 64px; }
.mk-player .pulse { position: absolute; inset: 14px; border-radius: 50%; background: var(--teal); opacity: .5; animation: pulse 2s ease-out infinite; }
.mk-player .dot { position: absolute; left: 20px; top: 20px; width: 24px; height: 24px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--teal) 45%, #0f766e); border: 3px solid #fff; box-shadow: 0 0 12px var(--teal), 0 2px 5px rgba(0, 0, 0, .4); }
.mk-player .arrow { position: absolute; left: 0; top: 0; width: 64px; height: 64px; transition: transform .25s; }
.mk-player .arrow::before { content: ''; position: absolute; left: 24px; top: 2px; border: 8px solid transparent; border-bottom: 14px solid var(--teal); filter: drop-shadow(0 0 3px rgba(0, 0, 0, .5)); }
@keyframes pulse { from { transform: scale(.6); opacity: .7; } to { transform: scale(2.2); opacity: 0; } }

/* ---------- HUD ---------- */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 500; }
#hud > *, .hud-top > * { pointer-events: auto; }
.hud-top { position: absolute; left: 0; right: 0; top: 0; padding: calc(10px + var(--st)) 12px 0; display: flex; justify-content: space-between; align-items: flex-start; pointer-events: none; }
.profile { display: flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line); padding: 5px 14px 5px 5px; border-radius: 999px; box-shadow: 0 4px 16px rgba(0, 0, 0, .35); backdrop-filter: blur(6px); }
.avatar { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--gold); }
.avatar svg { width: 100%; height: 100%; border-radius: 50%; }
.avatar span { position: absolute; right: -6px; bottom: -4px; min-width: 22px; height: 22px; border-radius: 11px; padding: 0 5px; background: var(--gold); color: #3b2300; font-weight: 900; font-size: 12px; display: grid; place-items: center; border: 2px solid var(--bg); }
.pinfo { text-align: left; min-width: 90px; }
#hudName { font-weight: 700; font-size: 14px; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xpbar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .15); margin-top: 4px; overflow: hidden; }
.xpbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--gold2)); border-radius: 3px; transition: width .6s; }
.hud-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.chip { display: flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-size: 12px; font-weight: 500; box-shadow: 0 3px 10px rgba(0, 0, 0, .3); }
.chip .ico { width: 15px; height: 15px; }
.chip.ok .ico { color: var(--good); } .chip.warn .ico { color: var(--gold); } .chip.bad .ico { color: var(--danger); } .chip.demo .ico { color: var(--violet); }
.chip.incense .art { width: 18px; height: 18px; }
.btn-round { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 3px 10px rgba(0, 0, 0, .3); }
.recenter { position: absolute; right: 14px; bottom: calc(118px + var(--sb)); opacity: 0; transform: scale(.6); transition: .2s; pointer-events: none !important; }
.recenter.show { opacity: 1; transform: none; pointer-events: auto !important; }
.orb { position: absolute; left: 50%; bottom: calc(22px + var(--sb)); width: 78px; height: 78px; margin-left: -39px; border-radius: 50%; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .45)); transition: transform .15s; }
.orb:active { transform: scale(.92); }
.orb svg { width: 100%; height: 100%; animation: spin 30s linear infinite; }
.badge { position: absolute; right: 2px; top: 2px; min-width: 22px; height: 22px; border-radius: 11px; background: var(--danger); color: #fff; font-style: normal; font-weight: 900; font-size: 12px; display: grid; place-items: center; border: 2px solid #fff; padding: 0 4px; }
.nearby { position: absolute; right: 12px; bottom: calc(26px + var(--sb)); background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 6px 8px 5px; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); text-align: center; }
.nearby .nb-arts { display: flex; gap: 2px; min-width: 96px; min-height: 32px; justify-content: center; }
.nearby .nb-arts div { width: 32px; height: 32px; }
.nearby span { font-size: 11px; color: var(--muted); font-weight: 500; }
.joystick { position: absolute; left: 16px; bottom: calc(22px + var(--sb)); width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(167, 139, 250, .25), rgba(18, 12, 36, .55)); border: 2px solid rgba(167, 139, 250, .6); touch-action: none; }
.joystick .stick { position: absolute; left: 36px; top: 36px; width: 48px; height: 48px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--violet) 55%, #5b21b6); box-shadow: 0 3px 10px rgba(0, 0, 0, .5); pointer-events: none; }

/* ---------- тосты ---------- */
#toasts { position: fixed; left: 0; right: 0; top: calc(122px + var(--st)); z-index: 3000; display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; padding: 0 16px; }
.toast { background: rgba(18, 12, 36, .95); border: 1px solid var(--line); padding: 10px 16px; border-radius: 14px; font-size: 14px; box-shadow: 0 6px 20px rgba(0, 0, 0, .4); max-width: 420px; text-align: center; animation: toastIn .25s ease-out; transition: opacity .35s, transform .35s; }
.toast.good { border-color: rgba(74, 222, 128, .6); }
.toast.out { opacity: 0; transform: translateY(-8px); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px) scale(.96); } }

/* ---------- кнопки, поля ---------- */
.btn { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 46px; padding: 10px 20px; border-radius: 14px; font-weight: 700; font-size: 15px; background: rgba(255, 255, 255, .1); border: 1px solid var(--line); transition: transform .1s, filter .2s; }
.btn:active { transform: scale(.97); }
.btn small { font-weight: 500; font-size: 11px; color: inherit; opacity: .8; }
.btn.primary { background: linear-gradient(180deg, #fde047, #f59e0b); color: #3b2300; border-color: #fbbf24; box-shadow: 0 4px 14px rgba(245, 158, 11, .35); }
.btn.evolve { background: linear-gradient(180deg, #5eead4, #0d9488); color: #032d29; border-color: #5eead4; }
.btn.danger { background: linear-gradient(180deg, #fb7185, #e11d48); color: #fff; border-color: #fb7185; }
.btn.ghost { background: transparent; }
.btn.ghost.danger { color: var(--danger); background: transparent; border-color: rgba(248, 113, 113, .35); }
.btn.wide { width: 100%; }
.btn.wide + * { margin-top: 10px; } /* кнопка во всю ширину не слипается с тем, что под ней */
.btn.small { min-height: 34px; padding: 6px 14px; font-size: 13px; border-radius: 11px; }
.btn:disabled, .btn.disabled { filter: grayscale(.9) brightness(.7); }
.input { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, .3); color: var(--text); font-size: 16px; outline: none; }
.input:focus { border-color: var(--violet); }
.input.big { font-size: 20px; text-align: center; padding: 14px; }
.pbar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .12); overflow: hidden; margin: 6px 0 4px; }
.pbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--gold2)); border-radius: 4px; }
.pbar.big { height: 12px; border-radius: 6px; }

/* ---------- модалки и шторка ---------- */
.modal-wrap, .sheet-wrap { position: fixed; inset: 0; z-index: 2000; background: rgba(8, 5, 18, .6); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 20px; animation: fadeIn .2s; }
.modal-wrap.out, .sheet-wrap.out { opacity: 0; transition: opacity .2s; }
@keyframes fadeIn { from { opacity: 0; } }
.modal { width: 100%; max-width: 400px; max-height: 86vh; overflow: auto; background: linear-gradient(180deg, #251b4a, #1a1335); border: 1px solid rgba(167, 139, 250, .35); border-radius: 22px; padding: 22px 18px 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); animation: popIn .25s cubic-bezier(.2, 1.4, .5, 1); }
@keyframes popIn { from { transform: scale(.85); opacity: 0; } }
.modal-title { font-size: 20px; font-weight: 900; text-align: center; margin-bottom: 10px; }
.modal-body { color: #e2dcf7; line-height: 1.45; }
.modal-body p { margin: 0 0 10px; }
.modal-btns { display: flex; gap: 10px; margin-top: 14px; }
.modal-btns .btn { flex: 1; }
.modal-btns:empty { display: none; }
.sheet-wrap { place-items: end center; padding: 0; grid-template-columns: minmax(0, 1fr); } /* колонка не шире экрана — лента страниц меню не растягивает лист */
.sheet { width: 100%; max-width: 520px; min-width: 0; justify-self: center; background: linear-gradient(180deg, #251b4a, #160f2e); border-radius: 26px 26px 0 0; border: 1px solid rgba(167, 139, 250, .3); border-bottom: 0; padding: 10px 16px calc(18px + var(--sb)); animation: sheetIn .28s cubic-bezier(.2, 1.2, .4, 1); }
@keyframes sheetIn { from { transform: translateY(100%); } }
.sheet-grip { width: 44px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .25); margin: 0 auto 14px; }
.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 6px 14px; border-radius: 18px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); font-weight: 500; font-size: 14px; }
.tile:active { background: rgba(255, 255, 255, .12); }
.tile .ico { width: 32px; height: 32px; color: var(--gold2); }
.tile i { position: absolute; right: 8px; top: 8px; font-style: normal; font-size: 11px; font-weight: 700; background: rgba(255, 255, 255, .15); padding: 2px 7px; border-radius: 9px; }
.tile i.alert { background: var(--danger); color: #fff; }
.sheet-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-size: 12px; color: var(--muted); gap: 8px; }
.sheet-foot span { display: flex; align-items: center; gap: 4px; }
.sheet-foot .art { width: 18px; height: 18px; }
.sheet-foot .spark { color: var(--gold2); }

/* ---------- экраны ---------- */
.screen { position: fixed; inset: 0; z-index: 1500; background: radial-gradient(120% 60% at 50% 0%, #2c1f5a 0%, var(--bg) 60%); display: flex; flex-direction: column; animation: screenIn .25s ease-out; }
.screen.out { opacity: 0; transform: translateY(20px); transition: .2s; }
@keyframes screenIn { from { opacity: 0; transform: translateY(24px); } }
.screen-head { display: flex; align-items: center; gap: 12px; padding: calc(10px + var(--st)) 14px 10px; }
.screen-head h2 { flex: 1; margin: 0; font-size: 20px; font-weight: 900; }
.screen-head .head-extra { color: var(--muted); font-weight: 500; }
.screen-body { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 4px 14px calc(24px + var(--sb)); -webkit-overflow-scrolling: touch; }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 20px; }

.toolbar { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.seg { display: flex; background: rgba(255, 255, 255, .07); border-radius: 12px; padding: 3px; }
.seg button { flex: 1; padding: 8px 4px; border-radius: 9px; font-size: 13px; font-weight: 500; color: var(--muted); }
.seg button.on { background: rgba(255, 255, 255, .14); color: var(--text); }
.chips { display: flex; gap: 6px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; } .chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; display: grid; place-items: center; height: 34px; min-width: 42px; padding: 0 10px; border-radius: 17px; background: rgba(255, 255, 255, .07); font-size: 13px; border: 1px solid transparent; }
.chips button.on { border-color: var(--gold); background: rgba(251, 191, 36, .12); }

.grid { display: grid; gap: 10px; }
.grid.cards { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
.card { position: relative; border-radius: 16px; padding: 8px 6px 10px; background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03)); border: 1px solid var(--line); text-align: center; overflow: hidden; }
.card::before { content: ''; position: absolute; left: 50%; top: 58%; width: 90px; height: 90px; margin: -45px; border-radius: 50%; background: var(--elc); opacity: .18; filter: blur(12px); }
.card-pw { position: relative; font-size: 11px; color: var(--muted); } .card-pw b { color: var(--text); font-size: 14px; }
.card-art { position: relative; width: 78px; height: 78px; margin: 2px auto; }
.card-name { position: relative; font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .fav { position: absolute; right: 6px; top: 6px; color: var(--gold); z-index: 1; }
.card .fav .ico { width: 16px; height: 16px; fill: var(--gold); }
.el-fire { --elc: #ff7a3d; } .el-water { --elc: #38bdf8; } .el-forest { --elc: #84cc16; } .el-wind { --elc: #a5b4fc; } .el-current { --elc: #facc15; } .el-shadow { --elc: #c084fc; }
.el-ico { display: inline-block; vertical-align: -3px; flex: none; }

/* детали духа */
.det { text-align: center; }
.det-power { font-size: 14px; color: var(--muted); margin-top: -6px; } .det-power b { font-size: 34px; color: var(--text); font-weight: 900; }
.det-lvl { margin: 6px auto 0; max-width: 240px; font-size: 12px; color: var(--muted); }
.det-lvl .arc { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; margin-bottom: 3px; }
.det-lvl .arc i { display: block; height: 100%; background: var(--c); }
.det-art { position: relative; width: 220px; height: 220px; margin: 0 auto; animation: bob 3s ease-in-out infinite; }
.det-art::before { content: ''; position: absolute; inset: 20px; border-radius: 50%; background: var(--c); opacity: .25; filter: blur(30px); }
.det-art.pulse { animation: pulseOnce .5s; }
@keyframes pulseOnce { 50% { transform: scale(1.1); filter: brightness(1.4); } }
.det-name { display: inline-flex; align-items: center; gap: 6px; font-size: 24px; font-weight: 900; }
.det-name .ico { width: 18px; height: 18px; color: var(--muted); }
.det-hp { color: var(--muted); font-size: 13px; margin: 2px 0 8px; }
.det-tags { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.det-tags span { display: inline-flex; gap: 5px; align-items: center; padding: 5px 11px; border-radius: 14px; background: rgba(255, 255, 255, .08); font-size: 13px; font-weight: 500; }
.panel { background: rgba(255, 255, 255, .06); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; margin-bottom: 10px; text-align: left; }
.panel.res { display: flex; justify-content: space-between; font-size: 13px; gap: 10px; }
.panel.res span:first-child { color: var(--gold2); }
.det-appraise { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; }
.det-appraise span { flex: 1; color: var(--muted); } .det-appraise b { color: var(--gold); letter-spacing: 2px; } .det-appraise em { font-style: normal; font-weight: 700; }
.stat { display: flex; align-items: center; gap: 10px; font-size: 13px; margin: 5px 0; }
.stat span { width: 80px; color: var(--muted); } .stat em { font-style: normal; width: 40px; text-align: right; font-size: 12px; }
.sbar { flex: 1; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.sbar b { display: block; height: 100%; background: linear-gradient(90deg, #f59e0b, var(--gold2)); border-radius: 4px; }
.sbar b.max { background: linear-gradient(90deg, #f43f5e, #fb7185); }
.det-moves { display: flex; gap: 10px; margin-top: 10px; }
.det-moves div { flex: 1; background: rgba(0, 0, 0, .2); border-radius: 10px; padding: 8px 10px; font-weight: 500; font-size: 14px; }
.det-moves small { display: block; }
.det-actions { display: flex; gap: 10px; margin: 6px 0 10px; }
.det-actions .btn { flex: 1; }
.det-desc { color: #d6cff0; line-height: 1.5; font-size: 14px; margin: 8px 4px 16px; }

/* бестиарий */
.dex-sum { text-align: center; color: var(--muted); margin-bottom: 12px; } .dex-sum b { color: var(--gold2); }
.grid.dex { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
.dex-cell { position: relative; border-radius: 14px; padding: 16px 4px 6px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); }
.dex-cell .art { width: 70px; height: 70px; margin: 0 auto; }
.dex-cell .num { position: absolute; left: 7px; top: 5px; font-size: 11px; color: var(--muted); font-weight: 700; }
.dex-cell .nm { display: block; font-size: 12px; font-weight: 500; margin-top: 2px; }
.dex-cell.unknown .art, .unknown .art { filter: brightness(0) opacity(.45); }
.dex-cell.seen .art { filter: grayscale(.9) opacity(.6); }
.dex-cell.caught { background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03)); }
.dex-art { width: 160px; height: 160px; margin: 0 auto; }
.dex-modal .det-tags { margin: 6px 0 10px; }
.chain { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 10px 0; }
.chain > div { width: 64px; height: 64px; }
.chain .arr { color: var(--muted); }
.dex-stat { text-align: center; color: var(--muted); font-size: 13px; }

/* списки */
.list { background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; margin-bottom: 14px; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); width: 100%; text-align: left; }
.row:last-child { border-bottom: 0; }
.row-ico { width: 48px; height: 48px; flex: none; }
.row-main { flex: 1; min-width: 0; }
.row-main b { display: block; margin-bottom: 2px; }
.row-main small { display: block; line-height: 1.35; }
.row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cnt { font-weight: 900; font-size: 17px; }
.danger-t { color: var(--danger); }
.toggle { cursor: pointer; }
.toggle input { display: none; }
.toggle i { flex: none; width: 50px; height: 30px; border-radius: 15px; background: rgba(255, 255, 255, .15); position: relative; transition: .2s; }
.toggle i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: .2s; }
.toggle input:checked + i { background: var(--teal); }
.toggle input:checked + i::after { left: 23px; }
.ver { text-align: center; color: var(--muted); font-size: 11px; }
.about-modal h4 { margin: 14px 0 6px; color: var(--gold2); }
.about-modal ul { padding-left: 18px; margin: 0; font-size: 14px; } .about-modal li { margin-bottom: 6px; }

/* коконы */
.coc-info { color: var(--muted); font-size: 13px; line-height: 1.5; margin-bottom: 12px; text-align: center; } .coc-info b { color: var(--text); }
.grid.coc { grid-template-columns: repeat(3, 1fr); }
.coc-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 10px 6px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); gap: 2px; }
.coc-card b { font-size: 12px; } .coc-card .pbar { width: 90%; }
.coc-card .btn { margin-top: 6px; }
.coc-card.ready { border-color: var(--gold); box-shadow: 0 0 18px rgba(251, 191, 36, .3); }
.coc-art { width: 64px; height: 64px; }
.coc-art.warm { animation: wobbleSoft 2.5s ease-in-out infinite; filter: drop-shadow(0 0 8px rgba(251, 191, 36, .6)); }

/* задания */
.quest { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); margin-bottom: 10px; }
.quest .q-main { flex: 1; } .quest b { display: block; margin-bottom: 2px; }
.quest.done { border-color: rgba(251, 191, 36, .6); }
.quest.claimed { opacity: .55; }
.quest.bonus { background: linear-gradient(135deg, rgba(251, 191, 36, .14), rgba(167, 139, 250, .1)); }
.q-ok { color: var(--good); font-size: 22px; font-weight: 900; }
/* дружины (3.5) */
.clan-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 6px; border-radius: 999px; background: color-mix(in srgb, var(--cc) 22%, transparent); border: 1px solid var(--cc); color: var(--text); font-size: 13px; font-weight: 700; vertical-align: middle; }
.clan-badge i { width: 12px; height: 12px; border-radius: 3px; background: var(--cc); transform: rotate(45deg); }
.clan-badge.sm { font-size: 11px; padding: 1px 8px 1px 5px; } .clan-badge.sm i { width: 9px; height: 9px; }
.clan-pick { display: grid; gap: 10px; margin-top: 12px; }
.clan-opt { display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-align: left; padding: 12px 14px; border-radius: 16px; background: color-mix(in srgb, var(--cc) 14%, rgba(255, 255, 255, .04)); border: 1.5px solid color-mix(in srgb, var(--cc) 70%, transparent); color: var(--text); }
.clan-opt i { grid-row: span 2; width: 26px; height: 26px; margin: 4px; border-radius: 6px; background: var(--cc); transform: rotate(45deg); box-shadow: 0 0 14px var(--cc); }
.clan-opt b { font-size: 16px; } .clan-opt small { color: var(--muted); font-size: 12px; }
.clan-opt:active { transform: scale(.98); }
.defend-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; max-height: 50vh; overflow-y: auto; margin-top: 10px; }
.defend-sp { display: flex; flex-direction: column; align-items: center; padding: 6px 4px; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); color: var(--text); min-width: 0; }
.defend-sp .art { height: 56px; } .defend-sp b { font-size: 12px; } .defend-sp small { font-size: 10px; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.holders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.holders .mini { display: flex; flex-direction: column; align-items: center; padding: 6px 4px; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); min-width: 0; }
.holders .mini .art { height: 56px; } .holders .mini b { font-size: 12px; } .holders .mini small { font-size: 10px; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.guard-ava.clan { border-color: var(--cc); box-shadow: 0 0 12px var(--cc); }
.mk-shrine.held::before { content: ''; position: absolute; left: 50%; bottom: -6px; width: 58px; height: 22px; margin-left: -29px; border-radius: 50%; background: radial-gradient(ellipse, color-mix(in srgb, var(--cc) 85%, transparent) 20%, transparent 70%); box-shadow: 0 0 0 2px color-mix(in srgb, var(--cc) 70%, transparent); }
.mk-flag { position: absolute; right: 0; top: 0; width: 16px; height: 21px; background: var(--cc); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 75%, 0 100%); border-radius: 2px; box-shadow: 0 1px 3px #000; z-index: 1; }
.prof-clan { margin: 6px 0 4px; } .prof-clan small { display: block; color: var(--muted); margin-top: 4px; }
.clan-btn { margin: 8px auto 4px; display: block; }
/* Летопись на карте и советы Велимира (3.10) */
#storyPill { position: absolute; left: 12px; top: calc(76px + var(--st)); display: flex; align-items: center; gap: 8px; max-width: min(260px, calc(100vw - 150px)); padding: 6px 12px 6px 8px; border-radius: 16px; background: var(--panel); border: 1px solid rgba(167, 139, 250, .5); box-shadow: 0 4px 14px rgba(0, 0, 0, .35); color: var(--text); text-align: left; }
#storyPill .sp-ico .ico { width: 20px; height: 20px; color: var(--gold2); flex: none; }
#storyPill .sp-main { min-width: 0; display: flex; flex-direction: column; }
#storyPill .sp-t { font-size: 11px; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#storyPill .sp-s { font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#storyPill.ready { border-color: var(--gold); box-shadow: 0 0 16px rgba(251, 191, 36, .45); }
#storyPill.ready .sp-s { color: var(--gold2); }
#storyPill:not(.hidden) ~ #tracker { top: calc(128px + var(--st)); }
.hint { display: flex; gap: 12px; text-align: left; align-items: flex-start; }
.hint-ava { width: 54px; height: 54px; flex: none; border-radius: 50%; overflow: hidden; border: 2px solid #4ade80; }
.hint b { color: #86efac; } .hint p { margin: 4px 0 0; line-height: 1.45; }
.hint-glow { animation: hintGlow 1s ease-in-out 4; }
@keyframes hintGlow { 50% { box-shadow: 0 0 0 4px rgba(251, 191, 36, .8), 0 0 24px rgba(251, 191, 36, .8); transform: scale(1.04); } }
.det-actions.top { margin: 12px 0 10px; }

/* экран дружины (3.6) */
.clan-head { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; background: color-mix(in srgb, var(--cc) 16%, rgba(255, 255, 255, .04)); border: 1.5px solid color-mix(in srgb, var(--cc) 70%, transparent); margin-bottom: 14px; }
.clan-head i { width: 30px; height: 30px; margin: 6px; border-radius: 7px; background: var(--cc); transform: rotate(45deg); box-shadow: 0 0 16px var(--cc); flex: none; }
.clan-head b { display: block; font-size: 18px; } .clan-head small { color: var(--muted); }
.clan-stat { padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); margin-bottom: 10px; }
.clan-row { display: grid; grid-template-columns: 70px 1fr 48px; align-items: center; gap: 10px; padding: 4px 0; font-size: 14px; }
.clan-row b { text-align: right; } .clan-row.mine span { font-weight: 700; color: var(--cc); }
.clan-bar { height: 10px; border-radius: 5px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.clan-bar i { display: block; height: 100%; min-width: 2px; background: var(--cc); border-radius: 5px; }
.guard-row .row-ico .art { width: 44px; height: 44px; }
.prof-clan .clan-open { margin-left: 6px; }

/* поручения родников и профиль друга (3.2) */
.q-h { font-size: 16px; margin: 22px 0 10px; display: flex; align-items: baseline; gap: 8px; } .q-h small { color: var(--muted); font-weight: 500; font-size: 13px; }
.t-row { gap: 10px; }
.t-sp { position: relative; width: 48px; height: 48px; flex: none; }
.t-sp img, .t-sp .art { width: 48px; height: 48px; }
.t-sp i { position: absolute; left: 0; right: 0; bottom: -6px; text-align: center; font-style: normal; font-size: 10px; color: var(--gold2); text-shadow: 0 1px 2px #000; letter-spacing: 1px; }
.t-drop { width: 32px; height: 32px; flex: none; opacity: .6; } .t-drop .ico { width: 16px; height: 16px; }
.loot-task { margin-top: 12px; padding: 10px 14px; border-radius: 14px; background: rgba(251, 191, 36, .12); border: 1px solid rgba(251, 191, 36, .45); text-align: center; font-size: 14px; animation: popIn .4s .5s both; }
.loot-task small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }

/* серия дней и общее дело Ордена (3.1) */
.st-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 10px; }
.st-day { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0 6px; border-radius: 10px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); }
.st-day small { font-size: 11px; color: var(--muted); }
.st-day .art { width: 28px; height: 28px; } .st-day .big-n { font-size: 16px; line-height: 28px; }
.st-day.past { opacity: .45; }
.st-day.now { border-color: var(--gold); background: rgba(251, 191, 36, .16); box-shadow: 0 0 12px rgba(251, 191, 36, .35); }
.st-hint { text-align: center; color: var(--muted); font-size: 13px; margin: 0 0 10px; }
.o-card h3 { margin: 4px 0 8px; }
.o-bar { position: relative; overflow: visible; }
.o-bar i { border-radius: 6px; }
.o-bar em { position: absolute; top: -3px; width: 2px; height: 18px; margin-left: -1px; background: var(--gold2); border-radius: 1px; }
.o-bar em:last-child { margin-left: -2px; }
.o-me { margin: 8px 0 0; font-size: 13px; color: var(--muted); } .o-me b { color: var(--text); }
.o-top { margin: 4px 0 10px; padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.o-sub { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.o-row { display: flex; align-items: center; gap: 10px; padding: 4px 0; font-size: 14px; }
.o-row span { width: 18px; color: var(--muted); text-align: right; } .o-row b { flex: 1; font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .o-row i { font-style: normal; color: var(--gold2); font-weight: 700; }
.o-row.me b { color: var(--gold2); font-weight: 700; }
.q-note { text-align: center; color: var(--muted); font-size: 12px; margin-top: 10px; }

/* профиль */
.prof { text-align: center; }
.prof-ava { width: 120px; height: 120px; margin: 4px auto 8px; border-radius: 50%; border: 3px solid var(--gold); box-shadow: 0 0 30px rgba(251, 191, 36, .3); overflow: hidden; }
.prof-name { font-size: 26px; font-weight: 900; }
.prof-rank { color: var(--gold2); margin: 2px 0 12px; }
.prof-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0 12px; }
.prof-stats div { background: rgba(255, 255, 255, .06); border: 1px solid var(--line); border-radius: 14px; padding: 12px 4px; }
.prof-stats b { display: block; font-size: 17px; } .prof-stats span { font-size: 11px; color: var(--muted); }
.prof-since { color: var(--muted); font-size: 12px; text-align: center; margin: 18px 0 4px; }

/* родник */
.spring-screen { background: radial-gradient(90% 60% at 50% 40%, #134e4a 0%, #0b1f2a 55%, var(--bg) 100%); }
.spring-view { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 4px; }
.spring-title { font-size: 26px; font-weight: 900; margin-bottom: 18px; }
.spring-disc { position: relative; width: 250px; height: 250px; border-radius: 50%; touch-action: none;
  background: radial-gradient(circle, rgba(94, 234, 212, .35) 0%, rgba(94, 234, 212, .08) 55%, transparent 70%); }
.spring-disc .runes { position: absolute; inset: 6px; border-radius: 50%; border: 3px dashed rgba(94, 234, 212, .7); animation: spin 18s linear infinite; }
.spring-disc .runes::after { content: 'ᚱ ᛟ ᚦ ᛗ ᚨ ᛉ'; position: absolute; inset: 22px; display: grid; place-items: start center; color: rgba(204, 251, 241, .8); font-size: 18px; letter-spacing: 12px; }
.spring-disc .well { position: absolute; left: 50%; top: 50%; width: 130px; height: 178px; margin: -100px 0 0 -65px; }
.spring-disc.spin .runes { animation: spin .7s cubic-bezier(.2, .8, .3, 1) 3; }
.spring-disc.spin .well { animation: pulseOnce .6s 2; }
.spring-view.used .spring-disc { filter: hue-rotate(60deg) saturate(.6); }
.spring-hint { color: var(--muted); margin: 14px 0 10px; min-height: 20px; }
.spring-loot { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 18px; min-height: 20px; max-width: 360px; }
.loot-item { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 88px; font-size: 12px; animation: lootIn .45s cubic-bezier(.2, 1.5, .5, 1) backwards; }
.loot-item .art { width: 52px; height: 52px; }
.loot-xp { width: 100%; color: var(--gold2); font-weight: 700; animation: lootIn .4s .6s backwards; }
@keyframes lootIn { from { opacity: 0; transform: translateY(40px) scale(.5); } }
.spring-view .btn.wide { max-width: 340px; }

/* разлом (экран предпросмотра) */
.rift-screen { background: radial-gradient(90% 60% at 50% 30%, #3b0764 0%, #150828 55%, var(--bg) 100%); }
.rift-view { position: relative; text-align: center; padding-bottom: 12px; }
.rift-portal { position: absolute; left: 50%; top: 10px; width: 260px; height: 260px; margin-left: -130px; opacity: .8; }
.rift-boss { position: relative; width: 210px; height: 210px; margin: 28px auto 16px; animation: bob 2.4s ease-in-out infinite; }
.rift-title { color: var(--gold2); font-weight: 700; letter-spacing: .5px; }
.rift-title .stars { letter-spacing: 2px; }
.rift-name { font-size: 28px; font-weight: 900; margin: 4px 0; }
.rift-meta, .rift-tip { color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.rift-tip { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; align-items: center; color: var(--text); }
.rift-team-title { margin: 16px 0 8px; font-weight: 500; }
.rift-team { display: flex; justify-content: center; gap: 10px; margin-bottom: 18px; }
.rift-team .mini { width: 86px; padding: 6px; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); }
.rift-team .mini .art { height: 64px; }
.rift-team .mini b { font-size: 12px; }
.rift-done { margin: 20px; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .07); color: var(--muted); }

/* рядом */
.nb-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.nb-item { position: relative; display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border-radius: 14px; background: rgba(255, 255, 255, .06); font-size: 13px; }
.nb-art { width: 60px; height: 60px; }
.nb-item small.near { color: var(--good); font-weight: 700; }
.nb-item .new { position: absolute; right: 5px; top: 4px; font-style: normal; font-size: 9px; font-weight: 900; color: #3b2300; background: var(--gold2); border-radius: 6px; padding: 1px 4px; text-transform: uppercase; }

/* уровень */
.lvl-modal { text-align: center; background: radial-gradient(circle at 50% 20%, #4c1d95, #1a1335 70%); }
.lvl-num { font-size: 84px; font-weight: 900; line-height: 1; background: linear-gradient(180deg, #fffbeb, var(--gold2) 50%, #f59e0b); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 12px rgba(251, 191, 36, .5)); animation: popIn .6s cubic-bezier(.2, 1.6, .5, 1); }
.lvl-t { font-size: 22px; font-weight: 900; margin-bottom: 10px; }
.unlock { color: var(--teal); }
.lvl-rw { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.lvl-rw div { display: flex; flex-direction: column; align-items: center; width: 80px; font-size: 12px; gap: 4px; }
.lvl-rw .art { width: 44px; height: 44px; }

/* превращение / вылупление */
.evo-modal, .hatch-modal { text-align: center; }
.evo-stage, .hatch-stage { position: relative; width: 220px; height: 220px; margin: 0 auto; }
.evo-stage > div, .hatch-stage > div { position: absolute; inset: 0; }
.evo-a { animation: evoOut 2.6s forwards; }
.evo-b { animation: evoIn 2.6s forwards; }
.evo-glow { background: radial-gradient(circle, #fff 0%, rgba(255, 255, 255, 0) 60%); opacity: 0; animation: evoGlow 2.6s forwards; pointer-events: none; }
@keyframes evoOut { 0% { filter: brightness(1); } 30% { filter: brightness(0) invert(1); transform: scale(1); } 45%, 60% { transform: scale(.7); } 52%, 68% { transform: scale(1.05); } 75%, 100% { opacity: 0; filter: brightness(0) invert(1); transform: scale(.6); } }
@keyframes evoIn { 0%, 70% { opacity: 0; transform: scale(.6); filter: brightness(0) invert(1); } 85% { opacity: 1; transform: scale(1.1); filter: brightness(0) invert(1); } 100% { opacity: 1; transform: scale(1); filter: none; } }
@keyframes evoGlow { 0%, 60% { opacity: 0; } 78% { opacity: 1; } 100% { opacity: 0; } }
.evo-text { font-size: 18px; margin-top: 8px; min-height: 50px; }
.hatch-coc { animation: hatchShake 2.2s; }
.hatch-sp { opacity: 0; transform: scale(.4); }
.hatch-stage .evo-glow { animation: none; }
.hatch-stage.open .hatch-coc { opacity: 0; transform: scale(1.4); transition: .3s; }
.hatch-stage.open .hatch-sp { opacity: 1; transform: scale(1); transition: .5s cubic-bezier(.2, 1.6, .5, 1) .15s; }
.hatch-stage.open .evo-glow { animation: evoGlowFast .7s; }
@keyframes evoGlowFast { 0% { opacity: 1; } 100% { opacity: 0; } }
@keyframes hatchShake { 0%, 20%, 40%, 60%, 80%, 100% { transform: rotate(0); } 10%, 50% { transform: rotate(-10deg); } 30%, 70% { transform: rotate(10deg); } 90% { transform: rotate(-14deg) scale(1.05); } }
.badge-new { display: inline-block; margin: 8px 0; padding: 5px 12px; border-radius: 12px; background: linear-gradient(90deg, #f59e0b, var(--gold2)); color: #3b2300; font-weight: 700; font-size: 13px; }

/* ---------- ВСТРЕЧА ---------- */
.enc { position: fixed; inset: 0; z-index: 1800; overflow: hidden; touch-action: none; animation: encIn .35s ease-out; }
.enc.closing { opacity: 0; transition: opacity .25s; }
@keyframes encIn { from { opacity: 0; transform: scale(1.08); } }
.enc-cam { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.enc.ar .enc-cam { display: block; }
.enc.ar .enc-scene { opacity: 0; }
.enc-scene { position: absolute; inset: 0; transition: opacity .3s; }
.enc-sky { position: absolute; inset: 0; background: linear-gradient(180deg, #7dd3fc 0%, #bae6fd 45%, #d9f99d 58%, #65a30d 100%); }
body.night .enc-sky { background: linear-gradient(180deg, #0b0628 0%, #2e1065 45%, #3b3b6e 57%, #1e293b 100%); }
.enc-sky::after { content: ''; position: absolute; left: 0; right: 0; top: 57%; bottom: 0; background: repeating-linear-gradient(100deg, rgba(0, 0, 0, .05) 0 20px, transparent 20px 44px); }
.enc-ground { position: absolute; left: 50%; top: 56.5%; width: 90vw; max-width: 480px; height: 70px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(ellipse, rgba(0, 0, 0, .28), transparent 70%); }
.enc-scene .enc-ground::after { content: ''; position: absolute; inset: 10px 20%; border-radius: 50%; border: 2px solid var(--elc); opacity: .5; filter: blur(1px); }
.enc-motes i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--elc); opacity: .7; box-shadow: 0 0 8px var(--elc); animation: mote 7s linear infinite; }
.enc-motes i:nth-child(1) { left: 8%; animation-delay: 0s; } .enc-motes i:nth-child(2) { left: 18%; animation-delay: -2s; } .enc-motes i:nth-child(3) { left: 30%; animation-delay: -4s; }
.enc-motes i:nth-child(4) { left: 42%; animation-delay: -1s; } .enc-motes i:nth-child(5) { left: 55%; animation-delay: -5s; } .enc-motes i:nth-child(6) { left: 66%; animation-delay: -3s; }
.enc-motes i:nth-child(7) { left: 78%; animation-delay: -6s; } .enc-motes i:nth-child(8) { left: 90%; animation-delay: -2.5s; } .enc-motes i:nth-child(9) { left: 12%; animation-delay: -3.5s; }
.enc-motes i:nth-child(10) { left: 36%; animation-delay: -5.5s; } .enc-motes i:nth-child(11) { left: 60%; animation-delay: -.5s; } .enc-motes i:nth-child(12) { left: 84%; animation-delay: -4.5s; }
.enc-motes i:nth-child(13) { left: 48%; animation-delay: -6.5s; } .enc-motes i:nth-child(14) { left: 72%; animation-delay: -1.5s; }
@keyframes mote { from { top: 105%; transform: translateX(0); } 50% { transform: translateX(20px); } to { top: -5%; transform: translateX(-10px); } }
.enc-top { position: absolute; left: 0; right: 0; top: 0; padding: calc(12px + var(--st)) 14px 0; display: flex; align-items: flex-start; justify-content: space-between; z-index: 3; }
.enc-info { text-align: center; text-shadow: 0 2px 6px rgba(0, 0, 0, .6); }
.enc-power { font-size: 13px; font-weight: 500; } .enc-power b { font-size: 26px; font-weight: 900; }
.enc-name { font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 6px; justify-content: center; }
.enc-rar { font-size: 13px; font-weight: 700; }
.enc-ar { font-weight: 900; font-size: 13px; }
.enc-ar.on { background: var(--teal); color: #042f2e; }
.enc-creature { position: absolute; left: 0; top: 0; z-index: 1; transform-origin: 50% 80%; will-change: transform; }
.enc-art { width: 100%; height: 100%; }
.enc-creature.flee .enc-art { filter: brightness(3) blur(2px); transition: filter .5s; }
.enc-rings { position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; transition: opacity .2s; overflow: visible; }
.enc-rings circle { fill: none; }
.ring-out { stroke: rgba(255, 255, 255, .85); stroke-width: 3; }
.ring-in { stroke-width: 6; filter: drop-shadow(0 0 4px rgba(0, 0, 0, .4)); }
.enc-ball { position: absolute; left: 0; top: 0; width: 76px; height: 76px; z-index: 4; touch-action: none; will-change: transform; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .45)); }
.enc-ball.glow { filter: drop-shadow(0 0 14px #fde047) drop-shadow(0 0 4px #fff); }
.enc-bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 18px calc(20px + var(--sb)); display: flex; align-items: flex-end; justify-content: space-between; z-index: 3; pointer-events: none; }
.enc-bottom > * { pointer-events: auto; }
.enc-honey, .enc-type { position: relative; width: 58px; height: 58px; border-radius: 50%; background: rgba(18, 12, 36, .7); border: 2px solid var(--line); padding: 9px; }
.enc-honey .ico, .enc-type .ico { width: 100%; height: 100%; }
.enc-honey span, .enc-type span { position: absolute; right: -6px; bottom: -4px; min-width: 24px; height: 22px; border-radius: 11px; background: #fff; color: #1b1030; font-size: 12px; font-weight: 900; display: grid; place-items: center; padding: 0 5px; }
.enc-honey.active { border-color: var(--gold); box-shadow: 0 0 14px var(--gold); }
.enc-hint { pointer-events: none !important; text-align: center; font-size: 12px; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .8); margin-bottom: 104px; transition: opacity .4s; }
.enc-hint.hide { opacity: 0; }
.enc-msg { position: absolute; left: 0; right: 0; top: 23%; text-align: center; font-size: 26px; font-weight: 900; color: #fff; text-shadow: 0 3px 10px rgba(0, 0, 0, .6); opacity: 0; transform: scale(.7); transition: .2s; z-index: 5; pointer-events: none; padding: 0 20px; }
.enc-msg.show { opacity: 1; transform: none; }
.enc-msg.bonus { color: var(--gold2); font-size: 34px; }
.enc-fx { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.fx-burst { position: absolute; width: 20px; height: 20px; margin: -10px; border-radius: 50%; background: radial-gradient(circle, #fff, #fde047 40%, transparent 70%); animation: burst .5s ease-out forwards; }
.fx-burst.out { background: radial-gradient(circle, #fff, #c084fc 40%, transparent 70%); }
@keyframes burst { to { transform: scale(14); opacity: 0; } }
.fx-honey { position: absolute; width: 50px; height: 50px; margin: -25px; animation: honeyFly 1.1s ease-in forwards; }
@keyframes honeyFly { 0% { transform: translate(0, 300px) scale(.6); } 60% { transform: translate(0, 0) scale(1); opacity: 1; } 100% { transform: scale(.2); opacity: 0; } }
.fx-stars { position: absolute; }
.fx-stars i { position: absolute; width: 10px; height: 10px; margin: -5px; background: var(--gold2); clip-path: polygon(50% 0, 61% 38%, 100% 50%, 61% 62%, 50% 100%, 39% 62%, 0 50%, 39% 38%); animation: star .9s ease-out forwards; }
.fx-stars i:nth-child(1) { --x: -70px; --y: -60px; } .fx-stars i:nth-child(2) { --x: 70px; --y: -60px; } .fx-stars i:nth-child(3) { --x: -90px; --y: 0; } .fx-stars i:nth-child(4) { --x: 90px; --y: 0; }
.fx-stars i:nth-child(5) { --x: 0; --y: -100px; } .fx-stars i:nth-child(6) { --x: -40px; --y: -110px; } .fx-stars i:nth-child(7) { --x: 40px; --y: -110px; } .fx-stars i:nth-child(8) { --x: -60px; --y: 40px; }
.fx-stars i:nth-child(9) { --x: 60px; --y: 40px; } .fx-stars i:nth-child(10) { --x: 0; --y: 60px; }
@keyframes star { from { transform: translate(0, 0) scale(.5) rotate(0); opacity: 1; } to { transform: translate(var(--x), var(--y)) scale(2) rotate(180deg); opacity: 0; } }
.enc-result, .raid-result { position: absolute; inset: 0; z-index: 10; background: rgba(8, 5, 18, .7); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 20px; animation: fadeIn .3s; }
.res-card { width: 100%; max-width: 360px; text-align: center; background: linear-gradient(180deg, #2b1f57, #1a1335); border: 1px solid rgba(251, 191, 36, .45); border-radius: 24px; padding: 20px 18px 16px; animation: popIn .35s cubic-bezier(.2, 1.4, .5, 1); box-shadow: 0 0 60px rgba(251, 191, 36, .2); }
.res-title { font-size: 28px; font-weight: 900; color: var(--gold2); }
.res-title.lose { color: var(--danger); }
.res-art { width: 170px; height: 170px; margin: 4px auto; animation: bob 2.4s ease-in-out infinite; }
.res-art.dim { filter: grayscale(.6) brightness(.7); }
.res-name { font-size: 22px; font-weight: 900; }
.res-power { color: var(--muted); font-weight: 500; margin-bottom: 6px; }
.res-rw { display: flex; flex-direction: column; gap: 4px; margin: 10px 0 16px; color: #e2dcf7; }
.res-rw b { color: var(--gold2); }
.res-note { color: #e2dcf7; margin: 6px 0 16px; line-height: 1.45; }

/* ---------- БИТВА В РАЗЛОМЕ ---------- */
.raid { position: fixed; inset: 0; z-index: 1800; overflow: hidden; touch-action: none; --fx: #fff; }
.raid-bg { position: absolute; inset: 0; background: radial-gradient(80% 50% at 50% 30%, #4c1d95 0%, #1e0b3a 50%, #0a0514 100%); }
.raid-bg::after { content: ''; position: absolute; left: 50%; top: 30%; width: 140vw; height: 140vw; margin: -70vw; border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(167, 139, 250, .08) 0 10deg, transparent 10deg 20deg); animation: spin 40s linear infinite; }
.raid.flash .raid-bg { animation: rflash .5s; }
@keyframes rflash { 30% { background: var(--fx); } }
.raid.shake { animation: shake .35s; }
@keyframes shake { 20% { transform: translate(-8px, 4px); } 40% { transform: translate(7px, -5px); } 60% { transform: translate(-5px, 3px); } 80% { transform: translate(3px, -2px); } }
.raid-top { position: absolute; left: 0; right: 0; top: 0; padding: calc(12px + var(--st)) 16px 0; text-align: center; z-index: 2; }
.raid-timer { position: absolute; left: 16px; top: calc(10px + var(--st)); width: 48px; height: 48px; border-radius: 50%; border: 3px solid var(--gold); display: grid; place-items: center; font-weight: 900; font-size: 18px; background: rgba(0, 0, 0, .4); }
.raid-bname { font-weight: 900; font-size: 18px; display: flex; gap: 6px; justify-content: center; align-items: center; margin: 4px 0 8px; }
.bar { height: 12px; border-radius: 6px; background: rgba(255, 255, 255, .15); overflow: hidden; border: 1px solid rgba(255, 255, 255, .2); }
.bar i { display: block; height: 100%; transition: width .15s; }
.bar.boss { margin: 0 66px; } .bar.boss i { background: linear-gradient(90deg, #f43f5e, #fb923c); }
.bar.hp i { background: linear-gradient(90deg, #22c55e, #86efac); }
.raid-boss { position: absolute; left: 50%; top: 17%; width: min(66vw, 300px); height: min(66vw, 300px); transform: translateX(-50%); z-index: 1; }
.raid-boss .art { animation: bob 2s ease-in-out infinite; }
.raid-boss.hit .art { animation: hit .18s; }
@keyframes hit { 50% { filter: brightness(2.2) saturate(0); transform: scale(.96); } }
.raid-boss .warn { position: absolute; left: 50%; top: -6%; transform: translateX(-50%) scale(0); font-size: 60px; font-weight: 900; color: #f43f5e; text-shadow: 0 0 20px #f43f5e; transition: transform .15s; z-index: 2; }
.raid-boss.charging .warn { transform: translateX(-50%) scale(1); animation: blink .3s infinite; }
.raid-boss.charging .art { filter: drop-shadow(0 0 20px #f43f5e); }
.raid-me { position: absolute; left: 6%; bottom: calc(200px + var(--sb)); width: min(38vw, 180px); height: min(38vw, 180px); z-index: 2; --dx: 70px; }
.raid-me.swap { animation: swapIn .4s; }
.raid-me.atk { animation: atk .2s; }
.raid-me.dodge { animation: dodge .6s; }
@keyframes swapIn { from { transform: translateX(-120%); } }
@keyframes atk { 50% { transform: translate(20px, -20px) scale(1.05); } }
@keyframes dodge { 30%, 70% { transform: translateX(var(--dx)) scale(.9); } }
.raid-fx { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.dmg { position: absolute; transform: translate(-50%, 0); font-weight: 900; font-size: 22px; color: #fff; text-shadow: 0 2px 4px #000; animation: dmgUp .9s ease-out forwards; white-space: nowrap; }
.dmg.big { font-size: 38px; color: var(--gold2); }
.dmg.hurt { color: #f87171; } .dmg.dodged { color: var(--teal); }
.dmg.move { font-size: 28px; color: var(--fx); top: 50%; }
@keyframes dmgUp { from { opacity: 1; margin-top: 0; } to { opacity: 0; margin-top: -60px; } }
.raid-hud { position: absolute; left: 16px; right: 16px; bottom: calc(150px + var(--sb)); z-index: 3; }
.raid-mname { font-weight: 700; display: flex; gap: 6px; align-items: center; margin-bottom: 5px; }
.raid-mname small { margin-left: auto; }
.raid-team { display: flex; gap: 6px; margin-top: 6px; }
.raid-team i { width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, .5); }
.raid-team i.on { background: var(--good); box-shadow: 0 0 8px var(--good); }
.raid-team i.dead { background: #4b5563; }
.raid-ctrl { position: absolute; left: 0; right: 0; bottom: calc(24px + var(--sb)); display: flex; justify-content: space-between; align-items: center; padding: 0 20px; z-index: 3; }
.raid-water { position: relative; width: 60px; height: 60px; border-radius: 50%; background: rgba(0, 0, 0, .45); border: 2px solid var(--line); padding: 10px; }
.raid-water span { position: absolute; right: -4px; bottom: -4px; background: #fff; color: #1b1030; font-size: 12px; font-weight: 900; border-radius: 10px; min-width: 22px; padding: 1px 5px; }
.raid-special { position: relative; width: 104px; height: 104px; border-radius: 50%; }
.raid-special svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.raid-special .bg { fill: rgba(0, 0, 0, .45); stroke: rgba(255, 255, 255, .15); stroke-width: 8; }
.raid-special .fill { fill: none; stroke: var(--gold2); stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset .15s; }
.raid-special span { position: relative; font-weight: 900; font-size: 14px; opacity: .5; }
.raid-special.ready span { opacity: 1; color: var(--gold2); }
.raid-special.ready { animation: readyPulse 1s infinite; }
@keyframes readyPulse { 50% { transform: scale(1.06); filter: drop-shadow(0 0 12px var(--gold2)); } }
.raid-dodge { width: 72px; height: 72px; border-radius: 50%; background: rgba(94, 234, 212, .2); border: 2px solid var(--teal); font-weight: 900; font-size: 13px; }
.raid-dodge:active { background: rgba(94, 234, 212, .45); }
.raid-hint { position: absolute; left: 20px; right: 20px; top: 60%; text-align: center; font-size: 13px; color: #e2dcf7; text-shadow: 0 1px 4px #000; z-index: 3; pointer-events: none; animation: hintOut 1s 7s forwards; }
@keyframes hintOut { to { opacity: 0; } }
.raid-count { position: absolute; inset: 0; display: grid; place-items: center; font-size: 72px; font-weight: 900; color: var(--gold2); text-shadow: 0 0 30px rgba(251, 191, 36, .6); z-index: 8; background: rgba(0, 0, 0, .35); }

/* ---------- ЗНАКОМСТВО ---------- */
.onb { position: fixed; inset: 0; z-index: 2500; background: radial-gradient(120% 70% at 50% 0%, #3b1d7a 0%, #160d30 55%, #0a0616 100%); overflow-y: auto; transition: opacity .4s; }
.onb.out { opacity: 0; }
.onb-step { min-height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 18px; padding: calc(30px + var(--st)) 24px calc(30px + var(--sb)); max-width: 460px; margin: 0 auto; text-align: center; animation: screenIn .4s; }
.onb-step .btn.wide { max-width: 360px; }
.onb-logo h1 { font-size: 48px; font-weight: 900; margin: 6px 0 4px; letter-spacing: 3px; background: linear-gradient(180deg, #fffbeb, var(--gold2) 55%, #f59e0b); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 16px rgba(251, 191, 36, .4)); }
.onb-logo p { color: var(--muted); margin: 0; }
.onb-charm { width: 110px; height: 110px; margin: 0 auto; animation: bob 3s ease-in-out infinite; filter: drop-shadow(0 0 24px rgba(253, 224, 71, .5)); }
/* 3.33: духи на светящейся поляне — дугой: в центре крупный, по краям мельче и дальше */
.onb-stage { position: relative; display: flex; justify-content: center; align-items: flex-end; width: 100%; max-width: 380px; height: 132px; margin: 0 auto; }
.onb-stage::before { content: ""; position: absolute; left: 6%; right: 6%; bottom: -6px; height: 40px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(167, 139, 250, .5), rgba(167, 139, 250, .12) 60%, transparent); }
.onb-stage div { position: relative; width: 78px; height: 78px; margin: 0 -10px 20px; animation: bob 2.6s ease-in-out infinite; opacity: .92; }
.onb-stage div:nth-child(2), .onb-stage div:nth-child(4) { width: 96px; height: 96px; margin-bottom: 6px; z-index: 1; opacity: 1; }
.onb-stage div:nth-child(3) { width: 124px; height: 124px; margin-bottom: -8px; z-index: 2; opacity: 1; filter: drop-shadow(0 0 18px rgba(56, 189, 248, .35)); }
.onb-stage div:nth-child(2) { animation-delay: -.5s; } .onb-stage div:nth-child(3) { animation-delay: -1s; } .onb-stage div:nth-child(4) { animation-delay: -1.5s; } .onb-stage div:nth-child(5) { animation-delay: -2s; }
.onb-lore p { font-size: 17px; line-height: 1.55; color: #e7e1fb; margin: 0 0 16px; animation: fadeUp .7s backwards; }
.onb-lore b { color: var(--gold2); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } }
.onb-q h2 { margin: 10px 0 6px; font-size: 24px; } .onb-q p { color: var(--muted); margin: 0 0 8px; line-height: 1.45; }
.onb-ava { width: 110px; height: 110px; margin: 0 auto; border-radius: 50%; border: 3px solid var(--gold); overflow: hidden; }
.onb-starters { display: flex; gap: 10px; justify-content: center; width: 100%; }
.starter { flex: 1; max-width: 130px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: 18px; background: rgba(255, 255, 255, .06); border: 2px solid var(--line); transition: .2s; }
.starter .art { width: 90px; height: 90px; }
.starter span { font-size: 12px; color: var(--muted); display: flex; gap: 4px; align-items: center; }
.starter.on { border-color: var(--gold); background: rgba(251, 191, 36, .12); transform: translateY(-4px); }
.onb-desc { min-height: 60px; color: #e2dcf7; line-height: 1.45; font-size: 14px; }
.onb-pin { width: 84px; height: 84px; margin: 0 auto; color: var(--teal); animation: bob 2s ease-in-out infinite; }
.onb-pin .ico { width: 100%; height: 100%; }

/* ---------- v1.1: погода, спутник, сияние, знаки, летопись ---------- */
.chip-row { display: flex; gap: 6px; }
.chip-row .chip span { font-weight: 700; }
.wx-ico { display: block; flex: none; }
#wxfx { position: fixed; inset: 0; z-index: 400; pointer-events: none; overflow: hidden; }
#wxfx i { position: absolute; top: -10%; display: block; }
#wxfx.wx-rain i { width: 1.5px; height: 18px; background: linear-gradient(transparent, rgba(186, 230, 253, .8)); animation: rainFall linear infinite; }
#wxfx.wx-snow i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .9); box-shadow: 0 0 4px #fff; animation: snowFall linear infinite; }
#wxfx.wx-wind i { width: 90px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); animation: windBlow linear infinite; left: -30% !important; }
#wxfx.wx-fog { background: radial-gradient(ellipse at 30% 40%, rgba(226, 232, 240, .28), transparent 60%), radial-gradient(ellipse at 70% 70%, rgba(226, 232, 240, .25), transparent 55%); animation: fogDrift 12s ease-in-out infinite alternate; }
@keyframes rainFall { to { transform: translate(-40px, 115vh); } }
@keyframes snowFall { 0% { transform: translate(0, 0); } 50% { transform: translate(24px, 55vh); } 100% { transform: translate(-10px, 115vh); } }
@keyframes windBlow { to { transform: translateX(160vw); } }
@keyframes fogDrift { from { transform: translateX(-4%); opacity: .8; } to { transform: translateX(4%); opacity: 1; } }

.mk-player .mk-buddy { position: absolute; left: -26px; top: 18px; width: 40px; height: 40px; animation: bob 1.4s ease-in-out infinite; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .4)); }
.mk-boost { position: absolute; right: 2px; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: rgba(18, 12, 36, .85); display: grid; place-items: center; border: 1.5px solid rgba(255, 255, 255, .5); }

.enc-tag { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; padding: 3px 9px; border-radius: 10px; background: rgba(18, 12, 36, .6); font-size: 12px; font-weight: 700; }
.enc-tag.shiny, .shiny-t { color: var(--gold2); }
.enc-creature.is-shiny .enc-art { filter: drop-shadow(0 0 16px rgba(253, 224, 71, .6)); }
.badge-new.shiny { background: linear-gradient(90deg, #a78bfa, #f0abfc, #fde047); }
.buddy-mark { position: absolute; left: 7px; top: 5px; color: #fb7185; font-size: 13px; z-index: 1; }
.buddy-panel { margin: -4px 0 12px; color: #fda4af; font-size: 13px; font-weight: 500; }
.act-buddy { margin: -4px 0 12px; color: #fda4af; border-color: rgba(251, 113, 133, .35); }
.dex-shiny { position: absolute; right: 7px; top: 4px; color: var(--gold2); font-size: 13px; }

.q-tabs { margin-bottom: 12px; }
.story-card { padding: 16px; border-radius: 18px; margin-bottom: 12px; background: linear-gradient(160deg, rgba(167, 139, 250, .18), rgba(94, 234, 212, .07)); border: 1px solid rgba(167, 139, 250, .35); text-align: left; }
.story-num { font-size: 12px; font-weight: 700; color: var(--violet); text-transform: uppercase; letter-spacing: 1px; }
.story-card h3 { margin: 4px 0 8px; font-size: 22px; }
.story-text { line-height: 1.55; color: #e7e1fb; margin: 0; font-size: 15px; }
.story-text b { color: var(--gold2); }
.story-gift { flex-direction: row; gap: 10px; margin-top: 6px; }
.story-gift .art { width: 40px; height: 40px; }
.story-modal .story-text { margin-bottom: 14px; }
.big-n { font-size: 22px; color: var(--gold2); line-height: 44px; }

.prof-h { text-align: left; margin: 22px 0 10px; font-size: 18px; display: flex; justify-content: space-between; align-items: baseline; }
.prof-h small { font-weight: 500; margin-left: 8px; }
.prof-buddy { display: flex; gap: 12px; align-items: center; text-align: left; padding: 10px 14px; border-radius: 16px; background: rgba(251, 113, 133, .08); border: 1px solid rgba(251, 113, 133, .3); }
.prof-buddy.empty-b { color: var(--muted); justify-content: center; }
.pb-art { width: 72px; height: 72px; flex: none; }
.pb-main { flex: 1; } .pb-main b { display: block; color: #fda4af; } .pb-main small { display: block; }
.medals { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-bottom: 18px; }
.medal { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); font-size: 12px; }
.medal .pbar { width: 80%; height: 5px; margin-top: auto; } /* полоса — по низу карточки, даже если название в две строки */
.medal b { flex: 1; display: flex; align-items: center; text-align: center; line-height: 1.15; }
.medal-art { width: 56px; height: 56px; }
.gold-t { color: var(--gold) !important; font-weight: 700; }
.medal-big { width: 120px; height: 120px; margin: 0 auto 8px; }
.medal-modal p { text-align: center; }
.medal-tiers div { display: flex; align-items: center; gap: 8px; padding: 7px 0; opacity: .55; border-bottom: 1px solid var(--line); }
.medal-tiers div.got { opacity: 1; font-weight: 700; }
.medal-tiers i { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.medal-tiers small { margin-left: auto; }
.sky-row { display: flex; gap: 14px; align-items: center; margin: 6px 0 10px; }
.sky-row b { display: block; font-size: 17px; } .sky-row small { display: block; line-height: 1.4; }

/* ---------- v1.2: события, капища, поединки, команда, выбор ---------- */
.chip.event { max-width: 190px; border-color: rgba(251, 191, 36, .45); }
.chip.event span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-star { color: var(--gold2); font-size: 14px; line-height: 1; }
.ev-next { padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .06); display: flex; flex-direction: column; gap: 3px; }
.ev-next b { color: var(--gold2); }

.mk-shrine { position: relative; width: 100%; height: 100%; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .4)); }
.mk-shrine .mk-tier { position: absolute; left: 0; right: 0; bottom: -4px; text-align: center; color: var(--gold2); font-size: 11px; font-weight: 900; text-shadow: 0 1px 2px #000, 0 0 4px #000; }
.mk-shrine.won .mk-tier { color: #fff; }
.mk.far .mk-shrine { opacity: .85; }

.shrine-screen { background: radial-gradient(90% 60% at 50% 25%, #713f12 0%, #2a1608 50%, var(--bg) 100%); }
.shrine-view { text-align: center; }
.shrine-idol { width: 130px; height: 180px; margin: 0 auto 6px; }
.guard { display: flex; align-items: center; gap: 12px; justify-content: center; margin: 12px 0 4px; text-align: left; }
.guard b { display: block; font-size: 18px; } .guard small { display: block; }
.guard-ava { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; border: 2px solid var(--gold); flex: none; }
.guard-ava.sm { width: 26px; height: 26px; border-width: 1.5px; }
.guard-ava.big { width: 130px; height: 130px; margin: 0 auto; border-width: 3px; }
.rift-team-title { display: flex; align-items: center; justify-content: center; gap: 10px; }
.rift-team-title .btn.small { min-height: 28px; padding: 3px 10px; font-size: 12px; }

.duel-bg { background: radial-gradient(80% 50% at 50% 30%, #854d0e 0%, #3b1d0a 50%, #0e0704 100%); }
.duel-bg::after { background: repeating-conic-gradient(from 0deg, rgba(251, 191, 36, .07) 0 10deg, transparent 10deg 20deg); }
.duel-top { display: flex; justify-content: flex-end; }
.duel-foe-hud { width: calc(100% - 70px); text-align: left; }
.duel-guard { display: flex; align-items: center; gap: 6px; font-size: 13px; margin-bottom: 2px; }
.duel-name { font-weight: 700; display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.duel-name small { margin-left: auto; }
.duel-top .bar.boss { margin: 0; }
.duel-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 5px; }
.shields { display: flex; gap: 3px; }
.shd { width: 18px; height: 18px; display: block; }
.shd-empty { width: 18px; height: 18px; border-radius: 5px; border: 1.5px dashed rgba(255, 255, 255, .25); display: block; }
.duel-foe { position: absolute; right: 6%; top: 21%; width: min(48vw, 230px); height: min(48vw, 230px); z-index: 1; }
.duel-foe .art { animation: bob 2s ease-in-out infinite; }
.duel-foe.swap { animation: swapInR .45s; }
.duel-foe.hit .art, .duel-me.hit .art { animation: hit .18s; }
@keyframes swapInR { from { transform: translateX(120%); } }
.duel-switch { position: relative; width: 64px; height: 64px; border-radius: 50%; background: rgba(0, 0, 0, .45); border: 2px solid var(--violet); font-weight: 900; font-size: 12px; }
.duel-switch em { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-size: 20px; color: #fff; }
.duel-switch.cool { opacity: .6; }
.duel-switch.cool span { opacity: 0; }
.duel-energy { width: 64px; text-align: center; font-weight: 900; color: var(--gold2); }
.duel-ov { position: absolute; inset: 0; z-index: 9; background: rgba(8, 5, 18, .72); display: grid; place-items: center; padding: 20px; animation: fadeIn .15s; }
.charge-mini, .shield-q, .switch-q { width: 100%; max-width: 360px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.charge-title { font-size: 22px; font-weight: 900; color: var(--gold2); text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
.charge-orb { width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--c) 45%, #000 110%); box-shadow: 0 0 40px var(--c); font-weight: 900; font-size: 20px; color: #1b1030; transition: transform .08s; touch-action: manipulation; }
.charge-mini .pbar { width: 80%; height: 12px; }
.shield-timer { width: 80%; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.shield-timer i { display: block; height: 100%; background: #f43f5e; animation: shrinkBar 2.5s linear forwards; }
@keyframes shrinkBar { from { width: 100%; } to { width: 0; } }
.shield-btns { display: flex; gap: 10px; width: 100%; }
.shield-btns .btn { flex: 1; flex-direction: row; gap: 6px; }
.switch-q .mini { width: 96px; padding: 6px; border-radius: 14px; background: rgba(255, 255, 255, .08); border: 1px solid var(--line); }
.switch-q .mini .art { height: 70px; }

.card.selected { border-color: var(--danger); box-shadow: 0 0 0 2px var(--danger) inset; }
.team-grid .card.selected { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold) inset; }
.team-grid .card.selected::after { content: attr(data-n); position: absolute; right: 6px; top: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: #3b2300; font-weight: 900; font-size: 12px; display: grid; place-items: center; }
.team-grid { grid-template-columns: repeat(3, 1fr); max-height: 52vh; overflow-y: auto; padding: 2px; }
.team-grid .card-art { width: 60px; height: 60px; }
.team-grid .card-name { font-size: 11px; }
.sel-toggle.on { border-color: var(--danger) !important; background: rgba(248, 113, 113, .15) !important; }
.sel-bar { position: fixed; left: 12px; right: 12px; bottom: calc(14px + var(--sb)); display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 16px; background: rgba(28, 20, 56, .97); border: 1px solid var(--line); box-shadow: 0 8px 30px rgba(0, 0, 0, .5); z-index: 5; }
.sel-bar span { flex: 1; font-weight: 700; }
.col-screen .screen-body { padding-bottom: calc(80px + var(--sb)); }

/* ---------- v1.3: обучение, обмен ---------- */
#coach { position: fixed; left: 12px; right: 12px; bottom: calc(152px + var(--sb)); z-index: 600; display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 18px; background: rgba(28, 20, 56, .96); border: 1px solid rgba(74, 222, 128, .45); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); animation: popIn .3s; max-width: 520px; margin: 0 auto; }
.coach-ava { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; border: 2px solid #4ade80; flex: none; }
.coach-main { flex: 1; font-size: 14px; line-height: 1.4; }
.coach-main > b { color: #86efac; font-size: 13px; }
.coach-text b { color: var(--gold2); }
.coach-skip { font-size: 11px; color: var(--muted); padding: 4px; }
.tut-pulse { animation: tutPulse 1.2s ease-in-out infinite; }
@keyframes tutPulse { 50% { transform: scale(1.12); filter: drop-shadow(0 0 18px #fde047); } }
.tut-ring { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; border: 3px solid #fde047; animation: pulse 1.4s ease-out infinite; }
.tut-hand { position: absolute; z-index: 6; pointer-events: none; }
.tut-hand i { position: absolute; left: -14px; top: -6px; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .85); box-shadow: 0 0 0 6px rgba(255, 255, 255, .25); animation: handSwipe 1.6s ease-in-out infinite; }
@keyframes handSwipe { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 70% { transform: translateY(-230px); opacity: 1; } 100% { transform: translateY(-260px); opacity: 0; } }

.trade-sp { width: 110px; height: 110px; margin: 0 auto; }
.qr-box { width: 220px; height: 220px; margin: 8px auto; border-radius: 14px; background: #fff; display: grid; place-items: center; padding: 6px; text-align: center; }
.qr-box svg { width: 100%; height: 100%; }
.qr-box .small { color: #475569; }
.code-text, .code-in { font-family: ui-monospace, Consolas, monospace; font-size: 12px; word-break: break-all; resize: none; margin-top: 6px; }
.trade-in { display: flex; flex-direction: column; gap: 10px; }
.trade-in p { margin: 0; }
.sent-item .row-ico { width: 44px; height: 44px; }
.scan-box { position: relative; width: 100%; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: #000; }
.scan-box video { width: 100%; height: 100%; object-fit: cover; }
.scan-box i { position: absolute; inset: 18%; border: 3px solid var(--gold2); border-radius: 14px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .35); }
.det-actions .btn.ghost { flex-direction: row; gap: 6px; font-size: 14px; padding: 10px 12px; white-space: nowrap; }
.det-actions .btn.act-release { flex-direction: column; gap: 0; } .det-actions .act-release small { font-size: 11px; }
.det-actions .btn.ghost .ico { width: 18px; height: 18px; }
.menu-grid .tile { padding: 14px 6px 12px; }

/* ---------- v1.4: вторжения, праздники, фото, облик ---------- */
.ava-art { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; }
.avatar { border-color: var(--pc, var(--gold)); }
.mk-player .dot { border-color: var(--pc, #fff); }
.chip.hol { border-color: rgba(94, 234, 212, .6); }
.mk-spring.invaded { filter: drop-shadow(0 0 8px #c026d3); animation: bob 1.6s ease-in-out infinite; }
.invasion-screen { background: radial-gradient(90% 60% at 50% 25%, #4a044e 0%, #1a0524 55%, var(--bg) 100%); }
.shrine-view.invasion .shrine-idol { width: 110px; height: 150px; }
.guard-ava.dark { border-color: #c026d3; box-shadow: 0 0 16px rgba(192, 38, 211, .5); }
.grunt-quote { font-style: italic; color: #f0abfc; margin: 6px 20px 4px; }
.enc-tag.dark, .dark-t { color: #f0abfc; }
.pure-t { color: #5eead4; }
.dark-panel { border-color: rgba(192, 38, 211, .45); background: rgba(126, 34, 206, .12); display: flex; flex-direction: column; gap: 6px; text-align: left; }
.dark-panel b { color: #f0abfc; }
.dark-panel .btn { align-self: flex-start; background: linear-gradient(180deg, #e879f9, #a21caf); color: #fff; border-color: #f0abfc; }
.enc-tr { display: flex; flex-direction: column; gap: 8px; }
.enc-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 20; }
.enc-flash.on { animation: flashShot .35s ease-out; }
@keyframes flashShot { 0% { opacity: .9; } 100% { opacity: 0; } }
.photo-img { width: 100%; max-height: 58vh; object-fit: contain; border-radius: 14px; display: block; margin-bottom: 8px; background: #000; }
.album { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 16px; }
.album-item { aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.album-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.look-btn { margin: -2px auto 6px; }
.look-prev { width: 120px; height: 120px; margin: 0 auto 10px; border-radius: 50%; overflow: hidden; border: 3px solid var(--gold); }
.look-row { margin-bottom: 10px; }
.look-row small { display: block; margin-bottom: 5px; }
.look-sw { display: flex; flex-wrap: wrap; gap: 7px; }
.sw { width: 34px; height: 34px; border-radius: 50%; background: var(--sw); border: 2px solid rgba(255, 255, 255, .25); position: relative; }
.sw.em { background: #241a45; overflow: hidden; padding: 0; }
.sw.on { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.sw.locked { opacity: .35; }
.sw.locked::after { content: '🔒'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; }
.look-hint { text-align: center; }

/* ---------- v1.5: лига, следопыт, экономия ---------- */
#tracker { position: absolute; left: 12px; top: calc(76px + var(--st)); display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 6px; border-radius: 16px; background: var(--panel); border: 1px solid rgba(94, 234, 212, .5); box-shadow: 0 4px 14px rgba(0, 0, 0, .35); max-width: 240px; cursor: pointer; }
#tracker.near { border-color: var(--gold); box-shadow: 0 0 16px rgba(251, 191, 36, .45); }
.tr-arrow { width: 34px; height: 34px; border-radius: 50%; background: rgba(94, 234, 212, .15); display: grid; place-items: center; color: var(--teal); transition: transform .3s; flex: none; }
.tr-arrow svg { width: 20px; height: 20px; }
#tracker.near .tr-arrow { color: var(--gold2); animation: tutPulse 1s infinite; }
.tr-ico { width: 30px; height: 30px; flex: none; }
.tr-main { min-width: 0; }
.tr-main b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-main small { display: block; font-size: 11px; }
.tr-x { font-size: 20px; color: var(--muted); padding: 0 4px; }
.nb-hint { text-align: center; margin: 10px 0 0; }
.nearby-modal .modal-btns .btn { font-size: 14px; }

.set-screen .seg { flex: none; }
.set-screen .seg button { padding: 7px 10px; }

/* экономия батареи: без анимаций на карте и погодных эффектов */
.eco #map *, .eco #hud .orb svg { animation: none !important; }
.eco #wxfx { display: none; }
.eco .mk-spirit { filter: none; }

/* ---------- v1.6: амулеты, второй приём ---------- */
.amulet-slot { display: flex; align-items: center; gap: 12px; }
.am-ico { width: 48px; height: 48px; flex: none; }
.am-ico.empty { border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .25); }
.am-mark { position: absolute; left: 8px; bottom: 34px; width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 6px currentColor; z-index: 1; }
.act-move2 { margin-top: 10px; font-size: 13px; }
.duel-special2 { position: relative; width: 70px; height: 70px; border-radius: 50%; }
.duel-special2 svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.duel-special2 .bg { fill: rgba(0, 0, 0, .45); stroke: rgba(255, 255, 255, .15); stroke-width: 8; }
.duel-special2 .fill { fill: none; stroke-width: 8; stroke-linecap: round; }
.duel-special2 span { position: relative; font-size: 9px; font-weight: 900; line-height: 1.1; padding: 0 8px; display: block; opacity: .55; }
.duel-special2.ready span { opacity: 1; color: var(--gold2); }
.duel .raid-ctrl { gap: 8px; }

/* ---------- v1.8: друзья, дневник, доступность ---------- */
.fr-me, .trade-in { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.fr-btns { display: flex; gap: 8px; }
.fr-btns .btn { flex: 1; }
.fr-head { display: flex; justify-content: space-between; align-items: baseline; }
.fr-head .prof-h { margin: 16px 0 8px; }
.fr-ava { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex: none; }
.fr-row .pbar { height: 5px; margin: 4px 0 0; }
.fr-row { cursor: pointer; }
.prof-btns { display: flex; justify-content: center; align-items: center; gap: 8px; margin: -2px 0 6px; } .prof-btns .btn { margin: 0; }

.j-filters { margin-bottom: 8px; }
.j-day { margin: 14px 0 6px; font-size: 12px; font-weight: 700; color: var(--violet); }
.j-day::first-letter { text-transform: uppercase; }
.j-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .05); margin-bottom: 5px; }
.j-row.dim { opacity: .6; }
.j-row .row-main b { font-size: 14px; font-weight: 500; }
.j-ico { width: 40px; height: 40px; flex: none; }
.j-ico.glyph { border-radius: 50%; background: rgba(167, 139, 250, .2); display: grid; place-items: center; font-weight: 900; font-size: 17px; color: var(--violet); }
.j-ico.gold { background: rgba(251, 191, 36, .18); color: var(--gold2); }
.j-ico.dark { background: rgba(192, 38, 211, .2); color: #f0abfc; }
.j-ico.pink { background: rgba(244, 114, 182, .18); color: #f9a8d4; }
.j-map { min-height: 32px; padding: 4px 8px; }
.j-map .ico { width: 18px; height: 18px; }
.mk-pin { position: relative; width: 100%; height: 100%; animation: bob 1.4s ease-in-out infinite; }
.mk-pin svg { width: 100%; height: 100%; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .4)); }
.mk-pin span { position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); white-space: nowrap; background: rgba(18, 12, 36, .9); color: #fff; font-size: 11px; padding: 3px 8px; border-radius: 8px; }

/* крупный текст */
html.big-text body { font-size: 17px; }
html.big-text small, html.big-text .small, html.big-text .row-main small, html.big-text .card-name, html.big-text .tile span { font-size: 14px; }
html.big-text .modal-body, html.big-text .det-desc, html.big-text .story-text, html.big-text .coach-main, html.big-text .toast, html.big-text .res-note { font-size: 17px; }
html.big-text .row-main b, html.big-text .quest b, html.big-text .btn { font-size: 17px; }
html.big-text .chip { font-size: 14px; }
/* меньше движения */
.calm .art-flicker, .calm .art-blink, .calm .art-float, .calm .art-sway, .calm .art-wing, .calm .art-spin, .calm .art-spin-soft, .calm .art-aura, .calm .art-eyes,
.calm .mk-spirit, .calm .orb svg, .calm .enc-motes i, .calm .mk-player .pulse, .calm .det-art, .calm .res-art, .calm .raid-bg::after,
.calm .mk-rift .mk-boss, .calm .mk-pin, .calm .onb-stage div, .calm .raid-boss .art, .calm .duel-foe .art, .calm .spring-disc .runes, .calm .coc-art.warm { animation: none !important; }
.calm #wxfx { display: none; }

/* ---------- v1.9: совместные разломы, облако, установка ---------- */
.coop { text-align: center; }
.rift-boss.sm { width: 140px; height: 140px; margin: 0 auto; }
.coop-code-t { color: var(--muted); font-size: 12px; margin-top: 10px; }
.coop-code { font-size: 40px; font-weight: 900; letter-spacing: 8px; color: var(--gold2); font-family: ui-monospace, Consolas, monospace; margin: 2px 0 10px; }
.coop-wait { color: var(--muted); margin: 16px 0; }
.coop-screen .list .row { text-align: left; }
.coop-code-in { text-transform: uppercase; letter-spacing: 4px; font-weight: 700; text-align: center; flex: 1; }
.coop-join .fr-btns .btn { flex: none; }
.raid-allies { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 6px 56px 0; }
.raid-allies span { display: flex; align-items: center; gap: 4px; font-size: 11px; background: rgba(0, 0, 0, .35); padding: 2px 8px 2px 2px; border-radius: 12px; }
.raid-allies i { width: 20px; height: 20px; border-radius: 50%; overflow: hidden; display: block; }
.raid-allies b { color: var(--gold2); }
.dmg.ally { color: #a5f3fc; font-size: 18px; }
.raid-ko { position: absolute; left: 20px; right: 20px; top: 58%; text-align: center; font-weight: 700; color: #fca5a5; text-shadow: 0 2px 6px #000; z-index: 4; }
.install-list.empty-list { display: none; }
a.row.link { color: inherit; text-decoration: none; }

/* ---------- 2.0: обновления ---------- */
.update-modal { text-align: center; }
.upd-ver { font-size: 18px; margin-bottom: 8px; }
.upd-ver b { color: var(--gold2); }
.upd-notes { text-align: left; padding-left: 20px; margin: 8px 0; }
.upd-notes li { margin-bottom: 4px; }
.gps-help { padding-left: 18px; margin: 6px 0 0; font-size: 14px; }
.gps-help li { margin-bottom: 6px; }
.link-btn { color: var(--teal); text-decoration: underline; font-size: inherit; }

/* ---------- 2.1: реальные места, заявки, прогресс на сервере ---------- */
.spring-disc .well.photo { width: 150px; height: 150px; margin: -75px 0 0 -75px; border-radius: 50%; background: center / cover no-repeat; border: 4px solid rgba(94, 234, 212, .8); box-shadow: 0 0 30px rgba(94, 234, 212, .5); }
.place-photo { width: 150px; height: 150px; margin: 0 auto 10px; border-radius: 20px; background: center / cover no-repeat; border: 3px solid var(--gold); box-shadow: 0 0 24px rgba(251, 191, 36, .35); }
.transfer-code { margin: 12px 0; padding: 14px; border-radius: 14px; background: rgba(0, 0, 0, .35); border: 1px dashed var(--gold); font: 700 24px/1 ui-monospace, Consolas, monospace; letter-spacing: 2px; text-align: center; color: var(--gold2); user-select: all; }
.code-in { margin-top: 10px; text-transform: uppercase; letter-spacing: 2px; text-align: center; font-family: ui-monospace, Consolas, monospace; }

.prop-intro p { margin: 0 0 8px; }
.prop-rules { padding-left: 18px; margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.prop-rules li { margin-bottom: 6px; }
.prop-rules b { color: var(--text); }
.center { text-align: center; }
.prop-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.prop-thumb { flex: none; width: 52px; height: 52px; border-radius: 12px; background: #000 center / cover no-repeat; }
.prop-item .row-main { flex: 1; min-width: 0; }
.prop-item .row-main small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.prop-st { flex: none; font-size: 12px; padding: 4px 8px; border-radius: 999px; background: rgba(255, 255, 255, .1); }
.prop-st.approved { background: rgba(34, 197, 94, .25); color: #86efac; }
.prop-st.rejected { background: rgba(239, 68, 68, .22); color: #fca5a5; }
.prop-st.pending { background: rgba(251, 191, 36, .2); color: var(--gold2); }
.prop-form { display: flex; flex-direction: column; gap: 6px; padding-bottom: 20px; }
.prop-photo { width: 100%; aspect-ratio: 4 / 3; border-radius: 16px; background: #000 center / cover no-repeat; margin-bottom: 6px; }
.prop-label { font-size: 13px; color: var(--muted); margin-top: 8px; }
.prop-descr { resize: none; font-family: inherit; }
.prop-kind-hint { margin: 2px 0 0; color: var(--muted); }
.prop-map { height: 220px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.prop-zone { stroke: var(--gold); stroke-dasharray: 6 6; fill: var(--gold); fill-opacity: .08; }
.prop-me { stroke: #fff; fill: #38bdf8; fill-opacity: 1; }
.prop-exist { stroke: #0f766e; fill: #5eead4; fill-opacity: .9; }
.prop-warn { color: #fca5a5; min-height: 1em; }
.cam-screen { position: fixed; inset: 0; z-index: 3000; background: #000; }
.cam-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cam-top { position: absolute; top: calc(12px + env(safe-area-inset-top)); left: 12px; right: 12px; display: flex; align-items: center; justify-content: space-between; }
.cam-gps { padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, .55); font-size: 13px; }
.cam-gps.ok { color: #86efac; } .cam-gps.weak { color: var(--gold2); } .cam-gps.bad { color: #fca5a5; }
.cam-hint { position: absolute; left: 0; right: 0; bottom: calc(120px + env(safe-area-inset-bottom)); text-align: center; font-size: 14px; text-shadow: 0 1px 4px #000; }
.cam-shot { position: absolute; left: 50%; bottom: calc(30px + env(safe-area-inset-bottom)); width: 76px; height: 76px; margin-left: -38px; border-radius: 50%; background: #fff; border: 6px solid rgba(255, 255, 255, .45); background-clip: padding-box; }
.cam-shot:active { transform: scale(.92); }

.fatal { position: fixed; inset: 0; z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; background: var(--bg); }

@media (min-width: 700px) {
  .grid.coc { grid-template-columns: repeat(4, 1fr); }
  .screen-body { max-width: 720px; margin: 0 auto; width: 100%; }
  .screen-head { max-width: 720px; margin: 0 auto; width: 100%; }
}

/* ---------- 3.0: сервер игры ---------- */
/* пока сервер отвечает дольше обычного — тонкая полоска вверху экрана */
body.net-busy::after { content: ''; position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 9999; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--gold2), transparent); background-size: 50% 100%; background-repeat: no-repeat;
  animation: net-busy 1s linear infinite; }
@keyframes net-busy { from { background-position: -50% 0; } to { background-position: 150% 0; } }
.gift-inbox { display: flex; flex-direction: column; gap: 6px; border-color: rgba(251, 191, 36, .45); }
.gift-inbox .row { padding: 6px 0; }
/* приглашение друга (3.11) */
.onb-invite { margin: 0 auto 12px; max-width: 320px; padding: 10px 14px; border-radius: 14px; background: rgba(74, 222, 128, .12); border: 1px solid rgba(74, 222, 128, .5); color: #bbf7d0; font-size: 14px; text-align: center; }
.my-invite { margin-top: 10px; }
/* Лавка Ордена и Сезонная тропа (3.12) */
.sheet-foot .zlat { display: inline-flex; align-items: center; gap: 4px; color: #fcd34d; }
.sheet-foot .zlat .art, .shop-wallet .art, .btn .art { width: 18px; height: 18px; vertical-align: -4px; }
.shop-wallet { display: flex; justify-content: space-around; gap: 10px; padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); font-weight: 700; margin-bottom: 12px; }
.shop-wallet .spark { color: var(--gold2); } .shop-wallet .zlat { display: inline-flex; align-items: center; gap: 6px; }
.shop-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); margin-bottom: 8px; }
.shop-row.off { opacity: .55; }
.shop-row .row-main { flex: 1; min-width: 0; } .shop-row small { color: var(--muted); font-size: 12px; }
.shop-row .buy { white-space: nowrap; display: inline-flex; flex-direction: row; align-items: center; justify-content: center; gap: 4px; min-width: 88px; padding: 8px 12px; flex: none; }
.shop-ico { width: 44px; height: 44px; flex: none; display: grid; place-items: center; }
.shop-ico .art { width: 44px; height: 44px; } .shop-ico.bag .ico { width: 30px; height: 30px; color: var(--gold2); }
.shop-deal { position: relative; padding: 12px 10px 2px; border-radius: 18px; background: linear-gradient(135deg, rgba(251, 191, 36, .16), rgba(167, 139, 250, .1)); border: 1.5px solid rgba(251, 191, 36, .6); margin-bottom: 8px; }
.shop-deal.off { opacity: .6; } .shop-deal .shop-row { background: transparent; border: 0; padding: 4px 2px 10px; margin: 0; }
.shop-tag { position: absolute; top: -10px; left: 14px; padding: 2px 10px; border-radius: 999px; background: var(--gold); color: #3b2300; font-size: 11px; font-weight: 800; }
.shop-cloaks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.shop-cloak { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--text); }
.shop-cloak.owned { opacity: .6; } .shop-cloak b { font-size: 12px; } .shop-cloak small { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--muted); }
.shop-ava { width: 56px; height: 56px; } .shop-cloak small .art { width: 16px; height: 16px; }
.sw.special::after { content: '₴'; position: absolute; right: -3px; top: -5px; font-size: 10px; font-weight: 800; color: var(--gold2); text-shadow: 0 1px 2px #000; }
.sw { position: relative; }
.pass-head h3 { margin: 4px 0 8px; } .pass-head > small { display: block; color: var(--muted); font-size: 12px; margin-top: 6px; }
.pass-buy { margin-top: 12px; display: inline-flex; flex-direction: row; justify-content: center; align-items: center; gap: 6px; }
.pass-note { display: block; color: var(--muted); font-size: 12px; margin-top: 6px; }
.pass-gold { margin-top: 12px; text-align: center; font-weight: 800; color: var(--gold2); }
.pass-cols { display: grid; grid-template-columns: 44px 1fr 1fr; gap: 8px; margin: 14px 0 6px; font-size: 11px; color: var(--muted); text-align: center; }
.pass-row { display: grid; grid-template-columns: 44px 1fr 1fr; gap: 8px; margin-bottom: 8px; align-items: stretch; }
.pass-l { display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .05); font-weight: 800; color: var(--muted); }
.pass-row.open .pass-l { background: rgba(94, 234, 212, .15); color: var(--teal); }
.pass-cell { position: relative; display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); color: var(--text); text-align: left; min-height: 56px; }
.pass-cell.gold { background: rgba(251, 191, 36, .06); border-color: rgba(251, 191, 36, .25); }
.pass-cell .pc-art { width: 36px; height: 36px; flex: none; display: grid; place-items: center; } .pass-cell .pc-art .art, .pass-cell .pc-art svg { width: 36px; height: 36px; }
.pass-cell .pc-art .big-n { font-size: 18px; line-height: 36px; }
.pass-cell small { font-size: 11px; line-height: 1.25; color: var(--muted); min-width: 0; }
.pass-cell.can { border-color: var(--gold); box-shadow: 0 0 12px rgba(251, 191, 36, .4); } .pass-cell.can small { color: var(--text); }
.pass-cell.got { opacity: .5; } .pass-cell.got i { position: absolute; right: 6px; top: 4px; font-style: normal; color: #4ade80; font-weight: 800; }
.pass-cell.lock { opacity: .45; filter: saturate(.5); }

/* 3.13: Разломы вокруг */
.rift-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px 12px; margin-bottom: 8px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--text); text-align: left; }
.rift-row.t2 { border-color: rgba(167, 139, 250, .45); } .rift-row.t3 { border-color: rgba(251, 191, 36, .6); background: rgba(251, 191, 36, .06); }
.rift-row.done { opacity: .5; }
.rift-row .row-main { flex: 1; min-width: 0; } .rift-row small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rift-row .stars { color: var(--gold2); font-size: 12px; }
.rr-boss { width: 48px; height: 48px; flex: none; } .rr-boss .art { width: 48px; height: 48px; }
.rr-d { flex: none; font-size: 13px; font-weight: 800; color: var(--teal); }
.rift-go.far, .rift-shop { flex-direction: row; gap: 8px; }
.rift-far { display: block; text-align: center; color: var(--muted); }

/* 3.14: выбросить из сумки */
.row-acts { display: flex; align-items: center; gap: 8px; }
.btn-round.small { width: 34px; height: 34px; box-shadow: none; }
.btn-round.drop { color: var(--muted); } .btn-round.drop .ico { width: 18px; height: 18px; }
.drop-item { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; text-align: left; }
.drop-item .art { width: 52px; height: 52px; flex: none; } .drop-item small { display: block; color: var(--muted); font-size: 13px; }
.drop-step { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 12px; }
.drop-step .step { font-size: 22px; font-weight: 800; color: var(--text); }
.drop-n { width: 90px; height: 44px; text-align: center; font-size: 20px; font-weight: 800; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); color: var(--text); }
.drop-range { width: 100%; margin: 0 0 12px; accent-color: #fb7185; }
.drop-quick { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }

/* 3.14: обменник */
.shop-ex { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: rgba(94, 234, 212, .07); border: 1px solid rgba(94, 234, 212, .35); margin-bottom: 8px; }
.shop-ex .row-main { flex: 1; min-width: 0; } .shop-ex small { display: block; color: var(--muted); font-size: 12px; }
.ex-rate { flex: none; display: flex; flex-direction: column; align-items: center; font-weight: 800; font-size: 13px; line-height: 1.2; }
.ex-rate .spark { color: var(--gold2); } .ex-rate b { color: var(--muted); font-size: 11px; transform: rotate(90deg); }
.ex-rate .zlat { display: inline-flex; align-items: center; gap: 4px; }
.ex-rate .art { width: 16px; height: 16px; }
.ex-btns { display: flex; gap: 6px; flex: none; }
.rift-tiers { margin: 0 0 12px; }
.chips.rift-tiers button { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 700; }
.chips.rift-tiers button small { min-width: 22px; padding: 1px 6px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: var(--muted); font-size: 11px; font-weight: 800; line-height: 16px; text-align: center; }
.chips.rift-tiers button.on { border-color: #a78bfa; background: rgba(167, 139, 250, .22); } .chips.rift-tiers button.on small { background: #a78bfa; color: #1e1b4b; }

/* 3.15: Казна Ордена */
.pay-packs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 4px; } .pay-packs .pay-pack { flex: 0 0 calc((100% - 16px) / 3); }
.pay-pack { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 6px 10px; border-radius: 16px; background: linear-gradient(180deg, rgba(251, 191, 36, .12), rgba(255, 255, 255, .04)); border: 1px solid rgba(251, 191, 36, .35); color: var(--text); }
.pay-pack.hot { border-color: var(--gold); box-shadow: 0 0 14px rgba(251, 191, 36, .35); }
.pay-pack b { font-size: 18px; font-weight: 900; } .pay-pack small { color: var(--muted); font-size: 11px; }
.pay-coins .art { width: 40px; height: 40px; }
.pay-price { margin-top: 6px; padding: 4px 12px; border-radius: 999px; background: var(--gold); color: #3b2300; font-weight: 800; font-size: 13px; }
.pay-bonus, .pay-hot { position: absolute; top: -8px; right: 6px; padding: 1px 7px; border-radius: 999px; font-size: 10px; font-weight: 800; background: #22c55e; color: #052e16; }
.pay-hot { background: #f43f5e; color: #fff; }
.linkish { background: none; border: 0; padding: 0; color: var(--teal); font: inherit; text-decoration: underline; }
.pay-sum { display: flex; align-items: center; gap: 12px; text-align: left; margin-bottom: 12px; }
.pay-sum .art { width: 48px; height: 48px; flex: none; } .pay-sum div { flex: 1; } .pay-sum small { display: block; color: var(--muted); font-size: 12px; }
.pay-sum > span { font-size: 20px; font-weight: 900; color: var(--gold2); }
.pay-email { width: 100%; height: 44px; padding: 0 12px; margin-bottom: 10px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); color: var(--text); font-size: 15px; }
.pay-note { color: var(--muted); font-size: 12px; text-align: left; margin: 0; }
.pay-packs + .q-note { margin-bottom: 20px; }
.offer-screen { z-index: 2100; } /* поверх окна оплаты */
.offer-screen .screen-body { padding: 0; overflow: hidden; display: flex; }
.offer-frame { flex: 1; width: 100%; border: 0; background: #140f2b; }
.onb-offer { display: block; margin-top: 18px; text-align: center; font-size: 13px; color: var(--muted); text-decoration: underline; }
.warn-box { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: rgba(244, 63, 94, .12); border: 1px solid rgba(244, 63, 94, .45); font-size: 13px; text-align: left; }
/* кнопки цен: за искры — золотая обводка (раньше выглядели неактивными); не хватает валюты — приглушены */
.btn.spark-btn { background: rgba(251, 191, 36, .1); border-color: rgba(251, 191, 36, .5); color: var(--gold2); }
.btn.poor { opacity: .5; filter: saturate(.6); }
.ex-btns .btn:not(.primary) { background: rgba(251, 191, 36, .1); border-color: rgba(251, 191, 36, .5); color: var(--gold2); }
.ex-btns .btn:disabled { opacity: .4; }
.shop-cloak.poor { opacity: .55; }
/* узкие телефоны (до 360 px): кнопки Лавки компактнее, чтобы подписи не сжимались в столбик */
@media (max-width: 360px) {
  .shop-row .buy { min-width: 76px; padding: 8px 10px; }
  .ex-btns { gap: 4px; } .ex-btns .btn { padding: 6px 9px; min-height: 36px; }
  .shop-ex { gap: 8px; padding: 10px; }
}
/* иконка валюты внутри текста (цена в окне покупки, в кнопках) — размером с букву */
.cur { display: inline-flex; vertical-align: -0.18em; } .cur .art { width: 1.15em; height: 1.15em; }
.album-empty { padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px dashed var(--line); color: var(--muted); font-size: 14px; text-align: center; }

/* 3.17: меню страницами (по 12 плиток), свайп вбок, точки страниц */
.menu-pages { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; margin: 0 -16px; } /* страницы — на всю ширину листа */
.menu-pages::-webkit-scrollbar { display: none; }
.menu-pages > .menu-grid { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; align-content: start; box-sizing: border-box; padding: 0 16px; } /* свои поля у каждой страницы: при свайпе между сетками — промежуток 32 px */
.menu-dots { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 10px 0 0; }
.menu-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 4px; background: rgba(255, 255, 255, .28); transition: width .2s, background .2s; }
.menu-dots button.on { width: 18px; background: var(--gold); }
/* смена вкладки свайпом или нажатием — лёгкий сдвиг в сторону листания */
.slide-l { animation: slideL .22s ease-out; } .slide-r { animation: slideR .22s ease-out; }
@keyframes slideL { from { transform: translateX(28px); opacity: .35; } to { transform: none; opacity: 1; } }
@keyframes slideR { from { transform: translateX(-28px); opacity: .35; } to { transform: none; opacity: 1; } }

/* 3.17: Аукцион */
.au-tabs { margin-bottom: 12px; }
.au-bar { display: flex; gap: 8px; margin-bottom: 8px; } .au-bar .au-q { flex: 1; min-width: 0; height: 40px; } .au-bar .btn { flex: none; white-space: nowrap; }
.au-sorts { margin-bottom: 10px; }
.au-lot { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin-bottom: 8px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--text); text-align: left; }
.au-lot .row-main { flex: 1; min-width: 0; } .au-lot b { font-size: 15px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.au-lot small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.au-art { width: 52px; height: 52px; flex: none; } .au-art img, .au-art svg { width: 100%; height: 100%; object-fit: contain; }
.au-price { flex: none; min-width: 84px; display: inline-flex; flex-direction: row; align-items: center; justify-content: center; gap: 4px; white-space: nowrap; }
.au-stars { color: var(--gold2); letter-spacing: 1px; } .au-shiny { color: var(--gold2); }
.au-lot.mine.sold { border-color: rgba(34, 197, 94, .45); } .au-lot.mine.cancelled, .au-lot.mine.expired { opacity: .6; }
.au-st { color: var(--text) !important; }
.au-info { color: var(--muted); font-size: 12px; text-align: center; margin: 0 0 10px; }
.au-mine { margin-top: 12px; }
.au-big { width: 140px; height: 140px; margin: 0 auto 6px; } .au-big img, .au-big svg { width: 100%; height: 100%; object-fit: contain; }
.au-tags { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.au-tags span { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: 12px; font-weight: 700; }
.au-meta, .au-appr { text-align: center; margin-bottom: 6px; } .au-meta small { display: block; color: var(--muted); font-size: 12px; }
.au-stat { display: grid; grid-template-columns: 76px 1fr 42px; align-items: center; gap: 8px; font-size: 13px; margin: 4px 0; } .au-stat b { text-align: right; }
.au-seller { text-align: center; color: var(--muted); margin: 10px 0 0; }
.au-modal .modal-btns .btn, .au-sellm .modal-btns .btn { flex-direction: row; gap: 4px; }
.au-fl { font-size: 12px; font-weight: 700; color: var(--muted); margin: 12px 0 6px; text-align: left; }
.chips.au-wrap { flex-wrap: wrap; overflow: visible; } .chips.au-wrap button { display: inline-flex; flex-direction: row; gap: 4px; align-items: center; }
.au-rng { display: grid; grid-template-columns: 76px 1fr 64px; align-items: center; gap: 8px; margin: 6px 0; font-size: 13px; text-align: left; }
.au-rng input { width: 100%; accent-color: var(--gold); } .au-rng b { font-size: 12px; text-align: right; color: var(--gold2); }
.au-nums { display: flex; gap: 8px; margin-top: 10px; } .au-nums label { flex: 1; font-size: 12px; color: var(--muted); text-align: left; } .au-nums .input { width: 100%; margin-top: 4px; height: 40px; }
.au-check { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; }
.au-filters .modal { max-height: 86vh; overflow-y: auto; }
.au-picklist { max-height: 55vh; overflow-y: auto; margin: 0 -4px; padding: 0 4px; }
.au-pk { width: 100%; display: flex; align-items: center; gap: 10px; padding: 6px 8px; margin-bottom: 6px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--text); text-align: left; }
.au-pk.off { opacity: .45; } .au-pk .row-main { flex: 1; min-width: 0; } .au-pk small { display: block; color: var(--muted); font-size: 12px; }
.au-sellsp { display: flex; align-items: center; gap: 10px; text-align: left; margin-bottom: 12px; } .au-sellsp img, .au-sellsp svg { width: 56px; height: 56px; flex: none; } .au-sellsp small { display: block; color: var(--muted); font-size: 12px; }
.au-cur { margin-bottom: 10px; } .au-pr { width: 100%; text-align: center; }
.au-fee { font-size: 13px; margin: 8px 0; min-height: 18px; } .au-fee b { color: var(--gold2); }
.au-got div { display: flex; align-items: center; gap: 10px; margin: 6px 0; text-align: left; font-size: 14px; } .au-got img, .au-got svg { width: 40px; height: 40px; flex: none; }
.au-ivs b { display: inline; font-size: 12px; color: var(--text); }
.au-price-big { text-align: center; font-size: 24px; font-weight: 900; color: var(--gold2); margin: 12px 0 0; } .au-price-big .cur { vertical-align: -0.12em; }

/* 3.18: Чат Ордена */
.chat-screen .screen-body { padding-bottom: 12px; }
.chat-tabs { position: sticky; top: 0; z-index: 2; padding: 4px 0 8px; margin-bottom: 4px; background: linear-gradient(180deg, #1c1438 70%, rgba(28, 20, 56, 0)); }
.chat-hint { color: var(--muted); font-size: 12px; text-align: center; margin: 2px 8px 10px; }
.msg { max-width: 84%; margin: 0 0 8px; padding: 7px 11px 5px; border-radius: 16px 16px 16px 4px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); }
.msg.mine { margin-left: auto; border-radius: 16px 16px 4px 16px; background: rgba(251, 191, 36, .14); border-color: rgba(251, 191, 36, .35); }
.msg-who { display: flex; align-items: baseline; gap: 6px; background: none; border: 0; padding: 0; margin-bottom: 2px; color: var(--text); }
.msg-who b { font-size: 13px; color: #c4b5fd; } .msg-who small { color: var(--muted); font-size: 11px; }
.msg-who b.cl-sokol { color: #fca5a5; } .msg-who b.cl-medved { color: #93c5fd; } .msg-who b.cl-volk { color: #fde68a; } /* как цвета дружин (CLANS) */
.msg-text { font-size: 15px; line-height: 1.35; word-break: break-word; white-space: pre-wrap; }
.msg time { display: block; text-align: right; font-size: 10px; color: var(--muted); margin-top: 2px; }
.chat-bar { display: flex; gap: 8px; padding: 8px 12px calc(10px + var(--sb)); background: rgba(12, 8, 26, .92); border-top: 1px solid var(--line); }
.chat-bar .chat-in { flex: 1; min-width: 0; height: 44px; }
.chat-bar .chat-send { flex: none; width: 48px; min-height: 44px; padding: 0; font-size: 18px; }
.day-left { text-align: center; font-size: 12px; color: var(--muted); margin-top: 8px; } .day-left b { color: var(--text); } .day-left.out { color: #fb7185; } .day-left.out b { color: #fb7185; }
.day-limits { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 4px 0 12px; }
.day-limits div { padding: 6px 2px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); text-align: center; }
.day-limits b { display: block; font-size: 14px; } .day-limits small { font-size: 10px; color: var(--muted); } .day-limits .out b { color: #fb7185; }
.chat-hint .chat-unhide { display: inline; margin-left: 4px; font-size: 12px; }

/* ---------- 3.21: ранги Лиги — цвет по ступеням ---------- */
.lg-mini, .lgx-hex { --rk1: #a78bfa; --rk2: #4c1d95; }
.lg-mini.r3, .lg-mini.r4, .lgx-hex.r3, .lgx-hex.r4, .lgx-hero.r3, .lgx-hero.r4 { --rk1: #5eead4; --rk2: #0f766e; }
.lg-mini.r5, .lg-mini.r6, .lgx-hex.r5, .lgx-hex.r6, .lgx-hero.r5, .lgx-hero.r6 { --rk1: #fca5a5; --rk2: #b91c1c; }
.lg-mini.r7, .lg-mini.r8, .lgx-hex.r7, .lgx-hex.r8, .lgx-hero.r7, .lgx-hero.r8 { --rk1: #e2e8f0; --rk2: #64748b; }
.lg-mini.r9, .lgx-hex.r9, .lgx-hero.r9 { --rk1: #fef08a; --rk2: #ca8a04; }
.lg-mini { width: 34px; height: 34px; flex: none; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: linear-gradient(160deg, var(--rk1), var(--rk2)); display: grid; place-items: center; font-weight: 900; font-size: 14px; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }

/* ---------- 3.21: экран Лиги ---------- */
.lgx-hero { --rk1: #a78bfa; --rk2: #4c1d95; position: relative; text-align: center; padding: 14px 14px 16px; margin-bottom: 12px; border-radius: 22px; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--rk1) 35%, transparent);
  background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--rk1) 28%, transparent), transparent 70%), rgba(255, 255, 255, .04); }
.lgx-top { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.lgx-chip { font-size: 12px; color: var(--muted); background: rgba(0, 0, 0, .25); border: 1px solid var(--line); border-radius: 20px; padding: 4px 10px; white-space: nowrap; }
.lgx-chip b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.lgx-crest { width: 108px; height: 108px; margin: 12px auto 6px; display: grid; place-items: center; position: relative; }
.lgx-crest::before { content: ""; position: absolute; inset: -14px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--rk1) 45%, transparent), transparent 65%); animation: lgxGlow 3s ease-in-out infinite; }
.lgx-hex { position: relative; width: 96px; height: 106px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: linear-gradient(160deg, var(--rk1), var(--rk2)); display: grid; place-items: center; }
.lgx-hex::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .28), transparent 45%); }
.lgx-hex span { position: relative; z-index: 1; font-size: 42px; font-weight: 900; color: #fff; text-shadow: 0 3px 8px rgba(0, 0, 0, .45); }
@keyframes lgxGlow { 50% { opacity: .55; transform: scale(.94); } }
.lgx-rank { font-size: 26px; font-weight: 900; line-height: 1.1; }
.lgx-place { min-height: 18px; margin: 4px 0 10px; font-size: 13px; color: var(--muted); }
.lgx-place b { color: var(--gold2); }
.lgx-pips { display: flex; gap: 4px; justify-content: center; margin: 0 auto 6px; max-width: 280px; }
.lgx-pips i { flex: 1; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .12); }
.lgx-pips i.on { background: linear-gradient(90deg, var(--gold2), var(--gold)); box-shadow: 0 0 6px rgba(251, 191, 36, .5); }
.lgx-next { color: var(--muted); font-size: 12px; }
.lgx-tabs { margin-bottom: 12px; }
.lgx-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 10px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); }
.lgx-card .row-main small, .lgx-card > small { color: var(--muted); font-size: 12px; }
.lgx-lock { flex-direction: column; align-items: flex-start; gap: 4px; border-color: rgba(251, 191, 36, .35); background: rgba(251, 191, 36, .08); }
.lgx-lock small { color: var(--muted); font-size: 12px; }
.lgx-tokens { display: flex; gap: 6px; flex: none; }
.lgx-tokens span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 2px solid rgba(251, 191, 36, .45); background: rgba(0, 0, 0, .2); }
.lgx-tokens svg { width: 18px; height: 18px; fill: rgba(251, 191, 36, .3); }
.lgx-tokens span.on { border-color: var(--gold); background: radial-gradient(circle at 35% 30%, #fde68a, #d97706); box-shadow: 0 0 10px rgba(251, 191, 36, .45); }
.lgx-tokens span.on svg { fill: #fff; }
.lgx-mid { font-variant-numeric: tabular-nums; color: var(--text); }
.lgx-path { flex-direction: column; align-items: stretch; gap: 10px; }
.lgx-steps { display: flex; align-items: center; }
.lgx-steps > i { flex: 1; height: 2px; margin: 0 4px 18px; background: linear-gradient(90deg, rgba(251, 191, 36, .6), rgba(251, 191, 36, .2)); }
.lgx-step { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.lgx-step span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; background: rgba(255, 255, 255, .1); border: 1px solid var(--line); }
.lgx-step small { font-size: 11px; color: var(--muted); white-space: nowrap; }
.lgx-step.bonus span { background: linear-gradient(180deg, #fde047, #f59e0b); color: #3b2300; border-color: var(--gold); }
.lgx-step.bonus small { color: var(--gold2); }
.lgx-rules { line-height: 1.35; }
.lgx-team-head { display: flex; align-items: center; gap: 8px; margin: 16px 0 8px; }
.lgx-team-head b { font-weight: 600; }
.lgx-team-head span { color: var(--muted); font-size: 12px; }
.lgx-team-head .btn { margin-left: auto; }
.lgx-team { margin-bottom: 12px; }
.lgx-slot { display: grid; place-items: center; min-height: 104px; font-size: 30px; color: var(--muted); border-style: dashed !important; background: transparent !important; }
.lgx-goal .row-main b { font-size: 13px; font-weight: 600; }
.league-screen .lg-go { margin: 4px 0 8px; }
.lgx-live { display: flex; align-items: center; gap: 8px; margin: 0 2px 12px; font-size: 12px; color: var(--muted); }
.lgx-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); animation: lgxLive 2s infinite; }
.lgx-live span { margin-left: auto; }
@keyframes lgxLive { 70% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
.lgx-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: end; margin-bottom: 12px; border-bottom: 2px solid rgba(255, 255, 255, .14); }
.lgx-pod { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; text-align: center; }
.lgx-pod > b { max-width: 100%; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 4px; }
.lgx-pod > small { font-size: 10px; color: var(--muted); white-space: nowrap; }
.lgx-pod-ava { position: relative; width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--pc, #cbd5e1); background: rgba(0, 0, 0, .25); }
.lgx-pod-ava > .art, .lgx-pod-ava > svg { border-radius: 50%; overflow: hidden; }
.lgx-pod-ava span { position: absolute; right: -4px; bottom: -4px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 900; color: #1f1400; background: var(--pc, #cbd5e1); border: 2px solid var(--bg); }
.lgx-pod-base { width: 100%; margin-top: 6px; padding-top: 10px; border-radius: 12px 12px 4px 4px; font-weight: 700; font-size: 14px; color: var(--pc, #cbd5e1);
  background: linear-gradient(180deg, color-mix(in srgb, var(--pc, #cbd5e1) 28%, transparent), rgba(255, 255, 255, .03)); border: 1px solid color-mix(in srgb, var(--pc, #cbd5e1) 40%, transparent); border-bottom: 0; }
.lgx-pod.p1 { --pc: #fbbf24; } .lgx-pod.p1 .lgx-pod-ava { width: 70px; height: 70px; box-shadow: 0 0 18px rgba(251, 191, 36, .45); } .lgx-pod.p1 .lgx-pod-base { height: 64px; }
.lgx-pod.p2 { --pc: #cbd5e1; } .lgx-pod.p2 .lgx-pod-base { height: 46px; }
.lgx-pod.p3 { --pc: #f59e6b; } .lgx-pod.p3 .lgx-pod-base { height: 34px; }
.lgx-pod.me > b { color: var(--gold2); }
.lgx-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); width: 100%; text-align: left; }
.lgx-row:last-child { border-bottom: 0; }
.lgx-row .row-main { min-width: 0; }
.lgx-row .row-main b { display: flex; align-items: center; gap: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lgx-row.me { background: rgba(251, 191, 36, .12); }
.lgx-row .fr-ava { width: 38px; height: 38px; }
.lgx-pos { width: 26px; flex: none; text-align: center; color: var(--muted); font-variant-numeric: tabular-nums; }
.lgx-stars { font-weight: 700; color: var(--gold2); white-space: nowrap; }
.lgx-clan { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
.lgx-pod .lgx-clan { margin-left: 4px; vertical-align: middle; }
.lgx-move { font-size: 11px; font-weight: 700; margin-left: 4px; animation: popIn .3s; }
.lgx-move.up { color: var(--good); } .lgx-move.down { color: var(--danger); }
.lgx-mine { border: 1px solid rgba(251, 191, 36, .4); border-radius: 14px; margin-bottom: 10px; }
.lgx-ladder { position: relative; margin-bottom: 10px; }
.lgx-ladder::before { content: ""; position: absolute; left: 29px; top: 24px; bottom: 24px; width: 2px; background: var(--line); }
.lgx-rung { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid transparent; border-radius: 14px; opacity: .6; }
.lgx-rung.past { opacity: .85; }
.lgx-rung.cur { opacity: 1; background: rgba(251, 191, 36, .1); border-color: rgba(251, 191, 36, .35); }
.lgx-rung .row-main small { font-size: 12px; color: var(--muted); }
.lgx-you { font-size: 10px; font-weight: 700; color: #3b2300; background: var(--gold); border-radius: 8px; padding: 1px 6px; vertical-align: middle; }
.lgx-need { font-size: 11px; color: var(--muted); white-space: nowrap; }

/* ---------- 3.21: карточка Ловчего ---------- */
.pc-modal { padding: 0; }
.pc { --cc: #a78bfa; position: relative; }
.pc-x { position: absolute; right: 10px; top: 10px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .3); color: var(--muted); }
.pc-x .ico, .pc-x svg { width: 18px; height: 18px; }
.pc-hero { display: flex; align-items: center; gap: 14px; padding: 22px 48px 18px 18px; border-radius: 22px 22px 0 0;
  background: radial-gradient(130% 120% at 0% 0%, color-mix(in srgb, var(--cc) 40%, transparent), transparent 70%); border-bottom: 1px solid var(--line); }
.pc-ava { position: relative; width: 76px; height: 76px; flex: none; border-radius: 50%; border: 3px solid var(--cc); background: rgba(0, 0, 0, .25); box-shadow: 0 0 20px color-mix(in srgb, var(--cc) 40%, transparent); }
.pc-ava > .art, .pc-ava > svg { border-radius: 50%; overflow: hidden; }
.pc-lvl { position: absolute; right: -6px; bottom: -4px; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 14px; display: grid; place-items: center; font-weight: 900; font-size: 13px; color: #3b2300; background: linear-gradient(180deg, #fde047, #f59e0b); border: 2px solid #1a1335; }
.pc-id { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pc-name { font-size: 21px; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-id small { color: var(--muted); font-size: 13px; }
.pc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 3px; }
.pc-tag { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 10px; background: rgba(255, 255, 255, .1); color: var(--muted); }
.pc-tag.clan { background: color-mix(in srgb, var(--cc) 25%, transparent); color: var(--text); border: 1px solid color-mix(in srgb, var(--cc) 50%, transparent); }
.pc-tag.seen-now { color: var(--good); background: rgba(74, 222, 128, .12); }
.pc-tag.seen-now::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--good); margin-right: 5px; vertical-align: middle; }
.pc-body { padding: 14px 16px 0; }
.pc-skel { height: 58px; border-radius: 14px; margin-bottom: 10px; background: linear-gradient(90deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .1), rgba(255, 255, 255, .05)); background-size: 200% 100%; animation: pcSkel 1.2s linear infinite; }
@keyframes pcSkel { to { background-position: -200% 0; } }
.pc-league { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); }
.pc-league small { color: var(--muted); font-size: 12px; }
.pc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0; text-align: center; }
.pc-stats div { padding: 10px 4px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); min-width: 0; }
.pc-stats b { display: block; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-stats span { font-size: 10.5px; color: var(--muted); }
.pc-sps { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.pc-sp { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 6px 10px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); min-width: 0; text-align: center; }
.pc-sp img, .pc-sp .art { width: 60px; height: 60px; }
.pc-sp b { font-size: 13px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-sp small { font-size: 11px; color: var(--muted); }
.pc-sp .pc-sp-l { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--violet); }
.pc-foot { text-align: center; font-size: 12px; color: var(--muted); margin-top: 10px; }
.pc-acts { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; }
.pc-acts:empty { display: none; }
.pc-acts2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pc-acts2 .btn { min-height: 38px; padding: 6px 8px; }
.lgx-sub { display: flex; align-items: center; gap: 8px; margin: 4px 2px 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.lgx-sub .lg-mini { width: 22px; height: 22px; font-size: 11px; }
.pc-fr { margin-top: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(94, 234, 212, .07); border: 1px solid rgba(94, 234, 212, .25); display: flex; flex-direction: column; gap: 6px; }
.pc-fr-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.pc-fr-top small, .pc-fr > small { color: var(--muted); font-size: 12px; }
.pc-fr .pbar { margin: 0; }
.pc-sub { font-size: 12px; font-weight: 600; color: var(--muted); margin: 12px 2px 8px; }
.pc-sps.three .pc-sp img, .pc-sps.three .pc-sp .art { width: 52px; height: 52px; }
.pc-sps.three .pc-sp b { font-size: 12px; }
.pc-acts2.one { grid-template-columns: 1fr; }
.pc-sps.solo .pc-sp { display: grid; grid-template-columns: 52px 1fr; grid-template-rows: auto auto auto; column-gap: 12px; row-gap: 0; align-items: center; text-align: left; padding: 8px 12px; }
.pc-sps.solo .pc-sp img, .pc-sps.solo .pc-sp .art { grid-column: 1; grid-row: 1 / 4; width: 52px; height: 52px; }
.pc-sps.solo .pc-sp > :not(img):not(.art) { grid-column: 2; }
.pc-sps.three .pc-sp small { font-size: 10px; white-space: nowrap; }

/* ---------- 3.22: профиль Ловчего — как карточка ---------- */
.prof-hero { text-align: left; border: 1px solid var(--line); border-radius: 22px; margin-bottom: 12px; padding: 18px 16px; }
.prof-ava-wrap { width: 88px; height: 88px; }
.prof-ava-wrap .prof-ava { width: 100%; height: 100%; margin: 0; border: 0; box-shadow: none; border-radius: 50%; overflow: hidden; }
.prof-hero .pc-name { font-size: 24px; }
.prof-xp { margin: 0 2px 12px; text-align: center; }
.prof-xp small { color: var(--muted); font-size: 12px; }
.prof-xp .pbar { margin-bottom: 6px; }
.prof .prof-btns { margin: 0 0 4px; flex-wrap: wrap; }
.prof .prof-stats { margin-top: 12px; }
.prof-stats span { display: block; line-height: 1.25; }
.prof-clan-line { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 2px 0 4px; }
.prof-clan-line small { color: var(--muted); font-size: 12px; }

/* ---------- 3.22: друзья ---------- */
.fr-or { display: flex; align-items: center; gap: 10px; margin: 6px 0 2px; color: var(--muted); font-size: 12px; }
.fr-or::before, .fr-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.fr-lvl { font-size: 11px; font-weight: 500; color: var(--muted); }
.fr-got { font-size: 12px; }
.friends-screen .fr-head { margin-top: 2px; }
.friends-screen .fr-head .prof-h { margin-top: 4px; }

/* ---------- 3.22: коконы, бестиарий, пустые экраны ---------- */
.coc-screen .prof-h { margin: 8px 0 10px; }
.coc-slot { border-style: dashed; background: transparent; justify-content: center; color: var(--muted); }
.coc-slot .coc-art { border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .18); width: 52px; height: 52px; margin: 6px 0 4px; }
.coc-slot b { color: var(--muted); }
.coc-slot small { font-size: 10.5px; line-height: 1.3; }
.dex-prog { max-width: 260px; margin: 6px auto 12px; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; line-height: 1.45; }
.det-why { margin: -4px 0 10px; font-size: 12px; color: var(--muted); text-align: center; }
.nowrap { white-space: nowrap; }
.chat-day { display: flex; align-items: center; gap: 10px; margin: 10px 0 8px; color: var(--muted); font-size: 11px; }
.chat-day::before, .chat-day::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.chat-day span { padding: 2px 10px; border-radius: 10px; background: rgba(255, 255, 255, .06); }
.msg.cont { margin-top: -5px; border-top-left-radius: 6px; }
.msg.mine.cont { border-top-left-radius: 16px; border-top-right-radius: 6px; }
.modal-wrap:has(.key-modal) { z-index: 9500; } /* окно ключа тестового контура — поверх заставки загрузки */

/* ---------- 3.24: основное окно ---------- */
/* лёгкое затемнение сверху, снизу и по краям — панели читаются на любой подложке */
#mapShade { position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(18, 12, 36, .5), rgba(18, 12, 36, 0) 120px), linear-gradient(0deg, rgba(18, 12, 36, .55), rgba(18, 12, 36, 0) 170px),
    radial-gradient(120% 90% at 50% 50%, rgba(18, 12, 36, 0) 60%, rgba(18, 12, 36, .35)); }
body.night #mapShade { background: linear-gradient(180deg, rgba(8, 5, 18, .55), rgba(8, 5, 18, 0) 120px), linear-gradient(0deg, rgba(8, 5, 18, .6), rgba(8, 5, 18, 0) 170px),
    radial-gradient(120% 90% at 50% 50%, rgba(8, 5, 18, 0) 55%, rgba(8, 5, 18, .45)); }
/* панели на карте — одно «стекло» */
#hud .profile, #hud .chip, #hud .nearby, #storyPill, #tracker {
  background: rgba(22, 15, 44, .8); border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(10px) saturate(1.3); backdrop-filter: blur(10px) saturate(1.3);
  box-shadow: 0 6px 18px rgba(8, 5, 18, .38), inset 0 1px 0 rgba(255, 255, 255, .08); }
#hud .chip.event { border-color: rgba(251, 191, 36, .45); }
#hud .chip.hol { border-color: rgba(94, 234, 212, .6); }

/* ---------- 3.25: задания дня ---------- */
.qd-head { display: flex; align-items: center; gap: 14px; padding: 12px 14px; margin-bottom: 10px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(167, 139, 250, .16), rgba(94, 234, 212, .06)); border: 1px solid rgba(167, 139, 250, .3); }
.qd-head.full { background: linear-gradient(135deg, rgba(74, 222, 128, .14), rgba(251, 191, 36, .08)); border-color: rgba(74, 222, 128, .35); }
.qd-head .row-main small { color: var(--muted); font-size: 12px; }
.qd-left { color: var(--text); font-variant-numeric: tabular-nums; }
.qd-ring { position: relative; width: 52px; height: 52px; flex: none; display: grid; place-items: center; }
.qd-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.qd-ring circle { fill: none; stroke-width: 5; }
.qd-ring .qd-bg { stroke: rgba(255, 255, 255, .12); }
.qd-ring .qd-fg { stroke: var(--gold); stroke-linecap: round; transition: stroke-dashoffset .6s; }
.qd-head.full .qd-fg { stroke: var(--good); }
.qd-ring b { position: relative; font-size: 17px; font-weight: 900; } .qd-ring b small { font-size: 11px; color: var(--muted); font-weight: 600; }
.quest.qd { align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.qd-ico { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); color: var(--gold2); }
.qd-ico .ico { width: 22px; height: 22px; }
.qd-ico .art, .qd-ico img { width: 30px; height: 30px; }
.quest.done .qd-ico { background: rgba(251, 191, 36, .16); }
.qd-bar { display: flex; align-items: center; gap: 8px; margin: 6px 0 6px; }
.qd-bar .pbar { flex: 1; margin: 0; }
.qd-bar span { font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.quest.done .qd-bar span { color: var(--gold2); }
.qd-rws { display: flex; flex-wrap: wrap; gap: 6px; }
.qd-rw { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px 2px 4px; border-radius: 10px; background: rgba(255, 255, 255, .07); font-size: 12px; font-weight: 600; }
.qd-rw .art { width: 18px; height: 18px; }
.qd-rw.spark { padding-left: 8px; color: var(--gold2); }
.quest.qd .btn { align-self: center; }
.quest.qd .q-ok, .qd-chest .q-ok { align-self: center; }
.qd-chest { align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.qd-ico.chest { background: rgba(251, 191, 36, .12); }
.qd-pips { display: flex; align-items: center; gap: 5px; margin: 6px 0; }
.qd-pips i { width: 22px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .14); }
.qd-pips i.half { background: rgba(251, 191, 36, .5); } .qd-pips i.on { background: var(--gold); }
.qd-pips small { margin-left: 4px; color: var(--muted); font-size: 11px; }

/* ---------- 3.25: чат ---------- */
.chat-hint { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 2px 12px 12px; padding: 7px 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); line-height: 1.35; }
.chat-hint .chat-unhide { margin: 0; }
.mrow { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.mrow.cont { margin-top: -4px; }
.mrow.mine { justify-content: flex-end; }
.mrow .msg { margin: 0; max-width: calc(84% - 40px); }
.mrow.mine .msg { max-width: 84%; }
.mrow .msg.cont { margin-top: 0; }
.m-ava { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #fff; padding: 0;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--ac) 80%, #fff), var(--ac) 60%, color-mix(in srgb, var(--ac) 70%, #000));
  border: 2px solid rgba(255, 255, 255, .15); text-shadow: 0 1px 2px rgba(0, 0, 0, .5); margin-top: 2px; }
.m-ava.sp { visibility: hidden; }
.chat-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 40px 24px; text-align: center; color: var(--muted); }
.chat-empty .ce-ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 4px; color: var(--violet); background: rgba(167, 139, 250, .1); border: 1px solid rgba(167, 139, 250, .3); }
.chat-empty .ce-ico .ico { width: 30px; height: 30px; }
.chat-empty b { color: var(--text); font-size: 16px; }
.chat-empty small { font-size: 13px; max-width: 260px; line-height: 1.4; }
.chat-jump { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%); z-index: 3; white-space: nowrap; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: var(--gold); color: #3b2300; box-shadow: 0 6px 16px rgba(0, 0, 0, .4); animation: popIn .25s; }
.chat-bar { align-items: center; position: relative; }
.chat-count { flex: none; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.chat-count.max { color: var(--danger); }
.chat-bar .chat-send:disabled { filter: grayscale(.7); opacity: .55; box-shadow: none; }

/* ---------- 3.26: чат — вкладки над лентой, мягкий край; награды картинками ---------- */
.chat-screen .chat-tabs { position: static; background: none; padding: 0 14px 8px; margin: 0; flex: none; }
.chat-screen .screen-body { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16px); mask-image: linear-gradient(180deg, transparent 0, #000 16px); padding-top: 10px; }
.qd-rw.xp { padding-left: 8px; color: var(--teal); }
.qd-rw.legend { padding-left: 2px; color: var(--gold2); }
.qd-rw.legend .art, .qd-rw.legend img { width: 22px; height: 22px; }
.qd-rw .art { flex: none; }
.qd-ico.o-step { font-weight: 900; font-size: 17px; color: var(--gold2); }
.quest.claimed .qd-ico.o-step { color: var(--good); }
.o-why { display: block; color: var(--muted); font-size: 12px; margin: 4px 0 6px; }
.quest.qd .q-main > b + .qd-rws { margin-top: 6px; }

/* ---------- 3.27: вход через сервисы ---------- */
.login-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; width: 100%; }
.login-btn { flex-direction: row; gap: 8px; min-height: 44px; padding: 8px 12px; font-size: 14px; background: rgba(255, 255, 255, .92); color: #1f2937; border-color: rgba(255, 255, 255, .9); }
.login-btn:active { transform: scale(.97); }
.lg-ic { width: 20px; height: 20px; flex: none; display: inline-grid; place-items: center; }
.lg-ic svg { width: 20px; height: 20px; display: block; }
.onb-or { display: flex; align-items: center; gap: 10px; width: 100%; margin: 14px 0 10px; color: var(--muted); font-size: 12px; }
.onb-or::before, .onb-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.onb .login-row, .onb .onb-or { max-width: 360px; margin-top: -8px; margin-bottom: -4px; }
.onb-note { color: var(--muted); text-align: center; margin: 4px 0 10px; }
.acc-box .acc-add { padding-top: 4px; }

/* ---------- 3.28: настройки, экран входа, учётная запись ---------- */
.set-h { margin: 18px 4px 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.set-screen .screen-body > .set-h:first-child { margin-top: 4px; }
.set-screen .list { margin-bottom: 4px; }
.set-row { gap: 12px; }
.set-ico { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; background: rgba(167, 139, 250, .14); color: var(--violet); }
.set-ico .ico { width: 18px; height: 18px; }
.set-ico.danger { background: rgba(248, 113, 113, .14); color: var(--danger); }
.set-ico.warn { background: rgba(251, 191, 36, .16); color: var(--gold2); }
.set-chev { color: var(--muted); font-size: 22px; line-height: 1; margin-left: 4px; }
.set-row .row-main { min-width: 0; }
.set-row:has(.map-theme) { flex-wrap: wrap; }
.set-row .seg.map-theme { flex: 1 0 calc(100% - 46px); margin-left: 46px; }
.acc-linked .lg-ic { width: 34px; height: 34px; border-radius: 10px; background: #fff; }
.acc-linked .lg-ic svg { width: 20px; height: 20px; }
.acc-guest { background: rgba(251, 191, 36, .07); }
.acc-add .row-main { display: flex; flex-direction: column; gap: 8px; }
.acc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.acc-tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border-radius: 12px; font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, .1); }
.acc-tag .lg-ic { width: 18px; height: 18px; border-radius: 50%; background: #fff; }
.acc-tag .lg-ic svg { width: 14px; height: 14px; }
.acc-tag.guest { padding-left: 10px; color: var(--gold2); background: rgba(251, 191, 36, .12); }
/* экран входа вернувшегося Ловчего */
.onb .gate { gap: 14px; }
.gate .onb-logo h1 { margin-bottom: 0; }
.acc-card { display: flex; align-items: center; gap: 14px; width: 100%; max-width: 360px; padding: 14px 16px; border-radius: 20px; text-align: left;
  background: radial-gradient(130% 120% at 0% 0%, color-mix(in srgb, var(--cc) 30%, transparent), transparent 70%), rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); }
.acc-card .pc-ava { width: 64px; height: 64px; border-color: var(--cc); }
.acc-card .acc-ava { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; }
.acc-card .acc-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.acc-card .acc-main b { font-size: 19px; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-card .acc-main small { color: var(--muted); font-size: 12px; }
.acc-card .acc-tags { margin-top: 4px; }
.gate .btn.ghost.out { color: var(--muted); }
/* профиль Ловчего: учётная запись */
.prof-acc { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 10px 0 2px; }
.prof-acc.guest { padding: 10px 12px; border-radius: 16px; background: rgba(251, 191, 36, .06); border: 1px dashed rgba(251, 191, 36, .35); }
.prof-acc small { color: var(--muted); font-size: 12px; }
.prof-acc .login-row { max-width: 360px; }

/* ---------- 3.29: вход по почте и паролю ---------- */
.mail-form { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.mail-form .input { user-select: text; -webkit-user-select: text; }
.onb .mail-login { color: var(--muted); font-size: 13px; margin-top: -4px; }
.acc-tag.mail { padding-left: 8px; }
.acc-tag.mail .ico { width: 14px; height: 14px; color: var(--violet); }
.onb ~ .modal-wrap { z-index: 2600; } /* окна поверх экрана входа (почта, «Выйти?», подтверждения) */

/* ---------- 3.30: экран входа ---------- */
.onb .gate { gap: 14px; }
.gate .onb-logo p { color: var(--gold2); font-weight: 600; }
.acc-card { flex-direction: column; align-items: stretch; gap: 12px; }
.acc-card .acc-top { display: flex; align-items: center; gap: 14px; }
.acc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; text-align: center; }
.acc-stats div { padding: 7px 4px; border-radius: 12px; background: rgba(0, 0, 0, .18); }
.acc-stats b { display: block; font-size: 15px; } .acc-stats span { font-size: 10.5px; color: var(--muted); }
.auth-panel { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 20px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.auth-head { display: flex; flex-direction: column; gap: 2px; text-align: left; }
.auth-head b { font-size: 15px; } .auth-head small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.auth-panel .login-row { margin: 0; max-width: none; }
.auth-foot { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.auth-foot .linkish { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 13px; text-decoration: none; }
.auth-foot .linkish .ico { width: 15px; height: 15px; }
.auth-foot .linkish:active { color: var(--text); }
.auth-dot { color: var(--muted); }
.auth-panel .login-row { grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 6px; }
.auth-panel .login-btn { padding: 8px 6px; gap: 6px; font-size: 13px; min-height: 42px; }

/* 3.31: экран загрузки — стили в index.html (рисуется до загрузки этого файла) */

/* ---------- 3.31: вход по почте ---------- */
.mail-modal { padding: 22px 18px 16px; }
.mail-head { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; margin-bottom: 14px; }
.mail-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 4px; color: var(--gold2);
  background: radial-gradient(circle at 35% 30%, rgba(253, 224, 71, .3), rgba(167, 139, 250, .15)); border: 1px solid rgba(253, 224, 71, .35); }
.mail-ic .ico { width: 26px; height: 26px; }
.mail-head b { font-size: 19px; font-weight: 900; } .mail-head small { color: var(--muted); font-size: 12px; }
.mail-form { margin-top: 0; }
.fld { display: flex; align-items: center; gap: 8px; height: 50px; padding: 0 6px 0 12px; border-radius: 14px; background: rgba(0, 0, 0, .28); border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.fld:focus-within { border-color: rgba(253, 224, 71, .6); box-shadow: 0 0 0 3px rgba(253, 224, 71, .12); }
.fld-ic { color: var(--muted); display: grid; } .fld-ic .ico { width: 18px; height: 18px; }
.fld:focus-within .fld-ic { color: var(--gold2); }
.fld input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--text); font-size: 16px; outline: none; user-select: text; -webkit-user-select: text; }
.fld-eye { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 10px; color: var(--muted); }
.fld-eye .ico { width: 20px; height: 20px; }
.mail-err { min-height: 18px; font-size: 13px; color: var(--danger); text-align: center; }
.mail-form .mail-go { margin-top: 2px; }
.mail-cancel { align-self: center; color: var(--muted); font-size: 13px; text-decoration: none; margin-top: 2px; }
.mail-form.shake { animation: mailShake .35s; }
@keyframes mailShake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* 3.31: «Почта и пароль» — кнопкой, под разделителем «или» */
.auth-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .16), transparent); }
.auth-foot { flex-direction: column; gap: 8px; }
.auth-foot .auth-dot { display: none; }
.btn.mail-login { width: 100%; min-height: 46px; flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; padding: 6px 12px 6px 6px; border-radius: 14px; font-size: 14px; font-weight: 700; color: var(--text);
  background: linear-gradient(180deg, rgba(167, 139, 250, .16), rgba(167, 139, 250, .07)); border: 1px solid rgba(167, 139, 250, .38); box-shadow: none; }
.btn.mail-login:active { transform: scale(.98); background: rgba(167, 139, 250, .22); }
.ml-ic { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; color: var(--gold2); background: rgba(0, 0, 0, .25); }
.ml-ic .ico { width: 18px; height: 18px; }
.ml-t { flex: 1; text-align: left; }
.ml-chev { color: var(--muted); font-size: 20px; line-height: 1; }

/* ---------- 3.32: учётная запись в настройках ---------- */
.acc-hero { display: flex; align-items: center; gap: 14px; padding: 16px 14px; border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, color-mix(in srgb, var(--cc) 16%, transparent), transparent 70%); }
.acc-hero.guest { background: linear-gradient(135deg, rgba(251, 191, 36, .12), transparent 70%); }
.acc-hero .pc-ava { width: 60px; height: 60px; }
.acc-hero .acc-ava { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; }
.acc-hero .acc-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.acc-hero .acc-main b { font-size: 18px; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-hero .acc-main small { color: var(--muted); font-size: 12px; }
.acc-status { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; margin-top: 3px; padding: 3px 9px 3px 7px; border-radius: 10px; font-size: 11.5px; font-weight: 600; line-height: 1.3; }
.acc-status .ico { width: 13px; height: 13px; flex: none; }
.acc-status.ok { color: var(--good); background: rgba(74, 222, 128, .12); }
.acc-status.warn { color: var(--gold2); background: rgba(251, 191, 36, .14); }
.acc-ways { display: flex; flex-direction: column; border-bottom: 1px solid var(--line); }
.acc-way { display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.acc-way + .acc-way { border-top: 1px solid rgba(255, 255, 255, .06); }
.acc-way .lg-ic { width: 34px; height: 34px; border-radius: 10px; background: #fff; }
.acc-way .lg-ic svg { width: 20px; height: 20px; }
.acc-way .lg-ic.mail { background: rgba(167, 139, 250, .16); color: var(--violet); }
.acc-way .lg-ic.mail .ico { width: 18px; height: 18px; }
.acc-way .row-main { min-width: 0; flex: 1; }
.acc-way .row-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-ok { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 900; color: #06281a; background: var(--good); }
.acc-box .acc-add { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.acc-add > small { color: var(--muted); font-size: 12px; }
.acc-add .login-row { margin: 0; max-width: none; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.acc-box .acc-out { border-bottom: 0; }
.set-ico.out { background: rgba(248, 113, 113, .12); color: var(--danger); }

/* ---------- 3.32: экран входа — компактнее, «Выйти» на карточке ---------- */
.onb .gate { gap: 12px; justify-content: flex-start; padding-top: calc(22px + var(--st)); }
.gate .onb-logo { display: flex; flex-direction: column; align-items: center; }
.gate .onb-charm { width: 76px; height: 76px; }
.gate .onb-logo h1 { font-size: 38px; margin: 2px 0 0; }
.gate .onb-logo p { font-size: 14px; }
.acc-card .acc-top { position: relative; }
.acc-card .acc-main { flex: 1; }
.acc-exit { align-self: flex-start; flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 6px 9px; border-radius: 11px; font-size: 12px; font-weight: 600;
  color: var(--muted); background: rgba(255, 255, 255, .06); border: 1px solid var(--line); }
.acc-exit .ico { width: 14px; height: 14px; }
.acc-exit:active { color: var(--danger); border-color: rgba(248, 113, 113, .4); transform: scale(.96); }

.acc-card.is-guest { border-color: rgba(251, 191, 36, .28); }
@media (min-height: 760px) { .onb .gate { justify-content: center; padding-top: calc(30px + var(--st)); } .gate .onb-charm { width: 92px; height: 92px; } .gate .onb-logo h1 { font-size: 44px; } }
.mail-head small.mail-note { margin-top: 6px; padding: 6px 10px; border-radius: 10px; color: var(--gold2); background: rgba(251, 191, 36, .1); }
.acc-foot { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 10px; border-radius: 12px; font-size: 12px; background: rgba(0, 0, 0, .18); }
.acc-foot > span { flex: 1; min-width: 0; display: inline-flex; align-items: center; gap: 6px; line-height: 1.3; }
.acc-foot > span .ico { width: 14px; height: 14px; flex: none; }
.acc-foot.warn > span { color: var(--gold2); } .acc-foot.ok > span { color: var(--good); }
.acc-card .acc-exit { align-self: center; }
@media (max-height: 680px) { .onb .gate { gap: 10px; padding-top: calc(14px + var(--st)); } .gate .onb-charm { width: 52px; height: 52px; } .gate .onb-logo h1 { font-size: 30px; } .gate .onb-logo p { font-size: 13px; } }

/* ---------- 3.33: стартовый экран ---------- */
.onb-cta { width: 100%; max-width: 360px; display: flex; flex-direction: column; align-items: center; gap: 7px; }
.onb-cta .btn { font-size: 17px; min-height: 54px; }
.onb-cta small { font-size: 12px; color: var(--muted); }
.onb .s0 .onb-logo p { font-size: 14.5px; }
.onb-offer { margin-top: 6px; font-size: 12px; opacity: .75; text-decoration: none; border-bottom: 1px dashed rgba(179, 170, 203, .5); display: inline-block; align-self: center; }

/* ---------- 3.33: учётная запись — компактнее ---------- */
.acc-status { white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.acc-cap { padding: 10px 14px 2px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.acc-way + .acc-way { border-top-color: rgba(255, 255, 255, .06); }
.btn.acc-link { flex: none; width: auto; min-height: 34px; padding: 6px 14px; border-radius: 11px; font-size: 13px; font-weight: 700;
  color: var(--text); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); box-shadow: none; }
.btn.acc-link:active { transform: scale(.96); background: rgba(255, 255, 255, .14); }
.onb .s0 { gap: 14px; }

/* ---------- 3.34: профиль Ловчего ---------- */
.prof-hero { flex-direction: column; align-items: stretch; gap: 14px; padding: 18px 16px 16px; }
.prof-top { display: flex; align-items: center; gap: 14px; }
.prof-top .pc-id { flex: 1; }
.prof-top .acc-tags { margin-top: 6px; }
.prof-hero .prof-xp { margin: 0; text-align: left; }
.prof-xp-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; font-size: 12px; }
.prof-xp-row b { font-size: 13px; } .prof-xp-row span { color: var(--muted); font-variant-numeric: tabular-nums; }
.prof-hero .prof-xp .pbar { margin: 0; }
.prof-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.pa { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px 11px; border-radius: 16px; text-align: center;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.pa b { font-size: 13px; line-height: 1.2; } .pa small { font-size: 10.5px; color: var(--muted); margin-top: -3px; }
.pa-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--violet); background: rgba(167, 139, 250, .14); }
.pa-ic .ico { width: 20px; height: 20px; }
.pa:active { transform: scale(.96); background: rgba(255, 255, 255, .09); }
.pa.hot { border-color: rgba(251, 191, 36, .5); background: rgba(251, 191, 36, .1); } .pa.hot .pa-ic { color: var(--gold2); background: rgba(251, 191, 36, .18); }
.pa.off { opacity: .55; }
.prof > .prof-acc.guest { margin: 0 0 12px; }
.prof-key { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.prof-key > div { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px 14px; border-radius: 16px; text-align: center; overflow: hidden;
  background: linear-gradient(180deg, rgba(251, 191, 36, .1), rgba(255, 255, 255, .03)); border: 1px solid rgba(251, 191, 36, .22); }
.pk-ic { color: var(--gold2); margin-bottom: 2px; } .pk-ic .ico { width: 20px; height: 20px; }
.prof-key b { font-size: 20px; font-weight: 900; font-variant-numeric: tabular-nums; } .prof-key b em { font-style: normal; font-size: 13px; color: var(--muted); font-weight: 700; }
.prof-key small { font-size: 11px; color: var(--muted); }
.pk-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .08); }
.pk-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--gold2)); }
.prof-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 18px; overflow: hidden; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.pr-row { display: flex; align-items: center; gap: 8px; padding: 10px 12px; min-width: 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.pr-row:nth-child(odd) { border-right: 1px solid rgba(255, 255, 255, .06); }
.pr-ic { color: var(--violet); flex: none; } .pr-ic .ico { width: 16px; height: 16px; }
.pr-t { flex: 1; min-width: 0; font-size: 12px; color: var(--muted); line-height: 1.25; }
.pr-row b { font-size: 15px; font-variant-numeric: tabular-nums; }
.prof-actions .pa { margin: 0; width: auto; }
.prof-rows, .prof-hero { text-align: left; }

/* ---------- 3.34: экран входа — «Другой аккаунт» свёрнут ---------- */
.gate-more { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 14px; font-size: 14px; font-weight: 600; color: var(--muted);
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.gate-more .ico { width: 16px; height: 16px; }
.gm-chev { font-style: normal; font-size: 18px; line-height: 1; transition: transform .2s; }
.gate-more.open { color: var(--text); } .gate-more.open .gm-chev { transform: rotate(90deg); }
.gate-more:active { transform: scale(.97); }
.gate-other { width: 100%; max-width: 360px; animation: fadeUp .25s ease-out; }
.gate-other .auth-panel { max-width: none; }

/* ---------- 3.35–3.37: значки меню ---------- */
.tile .mi { width: 52px; height: 52px; display: block; overflow: visible; transition: transform .15s; } /* 3.37: как вещи в Сумке */
.tile:active .mi { transform: scale(.92) translateY(1px); }
.menu-grid .tile { gap: 7px; padding: 14px 6px 11px; }
.menu-grid .tile span { font-size: 12.5px; font-weight: 700; }

/* ---------- 4.0: «Посвящение в Ловчие» ---------- */
#coach.tut-coach { top: calc(84px + var(--st)); bottom: auto; align-items: flex-start; padding: 12px 14px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(21, 61, 39, .96), rgba(20, 14, 42, .96)); border: 1px solid rgba(74, 222, 128, .45); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
#coach.tut-coach.bump { animation: popIn .35s ease-out; }
.coach-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 3px; }
.coach-ch { font-size: 11px; color: #bbf7d0; opacity: .8; font-variant-numeric: tabular-nums; }
.coach-bar { height: 4px; margin-top: 9px; border-radius: 2px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.coach-bar i { display: block; height: 100%; background: linear-gradient(90deg, #4ade80, var(--gold2)); transition: width .4s; }
.tile.locked { opacity: .45; } .tile.locked .mi { filter: grayscale(.9); }
.tile i.lock { background: none; font-size: 12px; padding: 0; }
.tile.tut-target { border-color: rgba(253, 224, 71, .9); box-shadow: 0 0 0 2px rgba(253, 224, 71, .35), 0 0 22px rgba(253, 224, 71, .35); animation: tutPulse 1.2s ease-in-out infinite; }

/* сцена с Велимиром */
.tut-scene { position: fixed; inset: 0; z-index: 3000; overflow: hidden; background: linear-gradient(180deg, #120a2e 0%, #1f1147 45%, #2b1450 70%, #0a0616 100%); animation: fadeIn .4s; }
.tut-scene.out { opacity: 0; transition: opacity .35s; }
.ts-sky { position: absolute; inset: 0; }
.ts-moon { position: absolute; right: 14%; top: calc(8% + var(--st)); width: 74px; height: 74px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff7d6, #fde68a 55%, #d8b4fe); box-shadow: 0 0 40px rgba(233, 213, 255, .55), 0 0 120px rgba(167, 139, 250, .35); }
.ts-star { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; opacity: .7; animation: blink 2.4s ease-in-out infinite; }
.ts-star:nth-child(2) { left: 8%; top: 12%; } .ts-star:nth-child(3) { left: 22%; top: 6%; animation-delay: -.4s; } .ts-star:nth-child(4) { left: 34%; top: 18%; animation-delay: -1s; }
.ts-star:nth-child(5) { left: 46%; top: 9%; animation-delay: -1.6s; } .ts-star:nth-child(6) { left: 58%; top: 22%; } .ts-star:nth-child(7) { left: 66%; top: 5%; animation-delay: -.8s; }
.ts-star:nth-child(8) { left: 12%; top: 28%; animation-delay: -1.2s; } .ts-star:nth-child(9) { left: 28%; top: 34%; } .ts-star:nth-child(10) { left: 90%; top: 30%; animation-delay: -.6s; }
.ts-star:nth-child(11) { left: 52%; top: 32%; animation-delay: -2s; } .ts-star:nth-child(12) { left: 76%; top: 16%; } .ts-star:nth-child(13) { left: 4%; top: 44%; animation-delay: -1.4s; }
.ts-star:nth-child(14) { left: 40%; top: 40%; } .ts-star:nth-child(15) { left: 84%; top: 44%; animation-delay: -.2s; }
.ts-city { position: absolute; left: 0; right: 0; bottom: 30%; width: 100%; height: 22%; }
.ts-stage { position: absolute; left: 0; right: 0; bottom: calc(30% - 10px); height: 44%; }
.ts-mentor, .ts-me { position: absolute; bottom: 0; transition: transform .35s, filter .35s, opacity .35s; }
.ts-mentor { left: 4%; width: 58%; max-width: 280px; aspect-ratio: 1; filter: drop-shadow(0 0 24px rgba(74, 222, 128, .35)); }
.ts-me { right: 4%; width: 34%; max-width: 160px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; opacity: .55; transform: scale(.9); }
.tut-scene[data-who="you"] .ts-me { opacity: 1; transform: scale(1); }
.tut-scene[data-who="you"] .ts-mentor { filter: brightness(.55); transform: scale(.95); }
.tut-scene[data-who="n"] .ts-mentor { opacity: .35; } .tut-scene[data-who="n"] .ts-me { opacity: .25; }
.ts-box { position: absolute; left: 12px; right: 12px; bottom: calc(14px + var(--sb)); min-height: 21%; max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px;
  padding: 16px 16px 12px; border-radius: 22px; background: linear-gradient(180deg, rgba(28, 20, 56, .97), rgba(16, 10, 34, .98)); border: 1px solid rgba(253, 224, 71, .35);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .5); opacity: 0; transform: translateY(20px); transition: opacity .35s, transform .35s; }
.tut-scene.talk .ts-box { opacity: 1; transform: none; }
.ts-who { font-weight: 900; font-size: 15px; color: #86efac; min-height: 18px; }
.tut-scene[data-who="you"] .ts-who { color: var(--gold2); }
.ts-line { flex: 1; font-size: 16.5px; line-height: 1.5; }
.tut-scene[data-who="n"] .ts-line { font-style: italic; color: #d8d0ee; }
.ts-line b { color: var(--gold2); }
.ts-foot { display: flex; justify-content: space-between; align-items: center; }
.ts-prog { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ts-next { min-height: 42px; padding: 8px 22px; }

/* заставка главы */
.tut-title { position: fixed; inset: 0; z-index: 3100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center;
  background: radial-gradient(60% 40% at 50% 50%, rgba(59, 29, 122, .92), rgba(10, 6, 22, .96)); animation: fadeIn .35s; }
.tut-title.out { opacity: 0; transition: opacity .45s; }
.tut-title small { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.tut-title b { font-size: 15px; color: var(--gold2); letter-spacing: .1em; text-transform: uppercase; animation: fadeUp .5s .1s both; }
.tut-title h2 { margin: 2px 0 0; font-size: 36px; font-weight: 900; background: linear-gradient(180deg, #fffbeb, var(--gold2) 55%, #f59e0b); -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: fadeUp .6s .2s both; }
.tut-title i { width: 0; height: 2px; margin-top: 10px; background: linear-gradient(90deg, transparent, var(--gold2), transparent); animation: tutLine 1s .3s forwards; }
@keyframes tutLine { to { width: 220px; } }

/* финал посвящения */
.tut-final { position: fixed; inset: 0; z-index: 3200; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px; text-align: center;
  background: radial-gradient(70% 50% at 50% 38%, #4c2a91, #140a2c 70%); animation: fadeIn .4s; overflow: hidden; }
.tut-final.out { opacity: 0; transition: opacity .4s; }
.tf-rays { position: absolute; left: 50%; top: 32%; width: 700px; height: 700px; margin: -350px 0 0 -350px; opacity: .35;
  background: repeating-conic-gradient(from 0deg, rgba(253, 224, 71, .5) 0 8deg, transparent 8deg 22deg); animation: spin 30s linear infinite; border-radius: 50%;
  -webkit-mask: radial-gradient(closest-side, #000 20%, transparent); mask: radial-gradient(closest-side, #000 20%, transparent); }
.tf-charm { position: relative; width: 130px; height: 130px; filter: drop-shadow(0 0 30px rgba(253, 224, 71, .6)); animation: popIn .6s ease-out; }
.tut-final small { position: relative; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-size: 12px; }
.tut-final h2 { position: relative; margin: 0; font-size: 30px; font-weight: 900; color: var(--gold2); }
.tut-final p { position: relative; margin: 0 0 6px; max-width: 320px; color: #e9e3ff; line-height: 1.45; } .tut-final p b { color: var(--gold2); }
.tf-got { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 340px; margin-bottom: 10px; }
.tf-got .lvl-rw-i { padding: 5px 10px; border-radius: 10px; background: rgba(255, 255, 255, .08); font-size: 13px; } .tf-got b { color: var(--gold2); }
.tut-final .btn { position: relative; max-width: 320px; }
.calm .tf-rays, .calm .ts-star { animation: none; }

/* ---------- 4.0: трейлер «Тонкая ночь» ---------- */
.trl { position: fixed; inset: 0; z-index: 9500; overflow: hidden; background: #05020d; color: #fff; transition: opacity .6s; }
.trl.out { opacity: 0; }
.trl-sky { position: absolute; inset: 0; background: linear-gradient(180deg, #0b0620 0%, #1a0f3d 55%, #2a1553 78%, #05020d 100%); transition: background 2s, filter 1s; }
.trl-star { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; animation: blink 2.6s ease-in-out infinite; }
.trl-star:nth-child(3n) { width: 3px; height: 3px; animation-delay: -1s; } .trl-star:nth-child(4n) { animation-delay: -1.8s; }
.trl-star:nth-child(1) { left: 37%; top: 23%; } .trl-star:nth-child(2) { left: 74%; top: 46%; } .trl-star:nth-child(3) { left: 14%; top: 14%; } .trl-star:nth-child(4) { left: 51%; top: 37%; }
.trl-star:nth-child(5) { left: 88%; top: 5%; } .trl-star:nth-child(6) { left: 28%; top: 28%; } .trl-star:nth-child(7) { left: 65%; top: 51%; } .trl-star:nth-child(8) { left: 5%; top: 19%; }
.trl-star:nth-child(9) { left: 42%; top: 42%; } .trl-star:nth-child(10) { left: 79%; top: 10%; } .trl-star:nth-child(11) { left: 19%; top: 33%; } .trl-star:nth-child(12) { left: 56%; top: 1%; }
.trl-star:nth-child(13) { left: 93%; top: 24%; } .trl-star:nth-child(14) { left: 33%; top: 47%; } .trl-star:nth-child(15) { left: 70%; top: 15%; } .trl-star:nth-child(16) { left: 10%; top: 38%; }
.trl-star:nth-child(17) { left: 47%; top: 6%; } .trl-star:nth-child(18) { left: 84%; top: 29%; } .trl-star:nth-child(19) { left: 24%; top: 52%; } .trl-star:nth-child(20) { left: 61%; top: 20%; }
.trl-star:nth-child(21) { left: 1%; top: 43%; } .trl-star:nth-child(22) { left: 38%; top: 11%; } .trl-star:nth-child(23) { left: 75%; top: 34%; } .trl-star:nth-child(24) { left: 15%; top: 2%; }
.trl-moon { position: absolute; right: 16%; top: 12%; width: 84px; height: 84px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fffbeb, #fde68a 60%, #fbbf24);
  box-shadow: 0 0 50px rgba(253, 230, 138, .5); transition: background 2.5s, box-shadow 2.5s, transform 2.5s; }
.trl-city { position: absolute; left: -10%; right: -10%; bottom: 0; height: 36%; }
.trl-city svg { width: 100%; height: 100%; display: block; }
.trl.on .trl-city { animation: trlPan 44s linear forwards; }
@keyframes trlPan { to { transform: translateX(-8%); } }
.trl-win rect { animation: blink 3s ease-in-out infinite; } .trl-win rect:nth-child(2n) { animation-delay: -1.3s; }
.trl-rift { position: absolute; left: 44%; top: 4%; width: 12%; height: 58%; opacity: 0; filter: drop-shadow(0 0 14px #c084fc) drop-shadow(0 0 30px #7c3aed); transition: opacity .6s; }
.trl-rift path { fill: none; stroke: #f5d0fe; stroke-width: 3.5; stroke-linejoin: round; stroke-dasharray: 260; stroke-dashoffset: 260; vector-effect: non-scaling-stroke; }
.trl-kos, .trl-flood, .trl-hide, .trl-order, .trl-mentor, .trl-logo { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .8s; }
.trl-kos { display: grid; place-items: center; padding-bottom: 8vh; }
.trl-kos > svg { width: min(58vw, 280px); height: auto; transform: scale(.3); filter: drop-shadow(0 0 30px #4ade80); transition: transform 4.5s cubic-bezier(.2, .8, .2, 1); }
.trl-flood div { position: absolute; left: -30%; top: calc(8% + var(--y)); width: 110px; height: 110px; }
.trl-hide { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 0 12px; }
.trl-card { width: 30%; max-width: 140px; aspect-ratio: .78; border-radius: 18px; background: linear-gradient(180deg, rgba(76, 42, 145, .75), rgba(20, 10, 44, .9)); border: 1px solid rgba(253, 224, 71, .4);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 8px; transform: translateY(40px); opacity: 0; transition: transform .7s, opacity .7s; transition-delay: calc(var(--i) * 1.4s + .2s); }
.trl-card svg { width: 100%; height: auto; } .trl-card span { font-size: 12px; font-weight: 700; color: var(--gold2); }
.trl-order { display: grid; place-items: center; }
.trl-rays { position: absolute; width: 900px; height: 900px; border-radius: 50%; opacity: .5; background: repeating-conic-gradient(rgba(253, 224, 71, .45) 0 7deg, transparent 7deg 20deg);
  -webkit-mask: radial-gradient(closest-side, #000 15%, transparent); mask: radial-gradient(closest-side, #000 15%, transparent); animation: spin 26s linear infinite; }
.trl-charm { width: 160px; height: 160px; filter: drop-shadow(0 0 40px rgba(253, 224, 71, .8)); transform: scale(.2) rotate(-90deg); transition: transform 1.6s cubic-bezier(.2, 1.4, .3, 1); }
.trl-mentor { display: grid; place-items: center; padding-bottom: 14vh; }
.trl-mentor svg { width: min(66vw, 300px); height: auto; filter: drop-shadow(0 0 30px rgba(74, 222, 128, .45)); transform: translateY(30px); transition: transform 3s; }
.trl-logo { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px; text-align: center; background: radial-gradient(60% 45% at 50% 42%, rgba(76, 42, 145, .9), rgba(5, 2, 13, .96)); }
.trl-lcharm { width: 120px; height: 120px; filter: drop-shadow(0 0 30px rgba(253, 224, 71, .6)); }
.trl-logo h1 { margin: 0; font-size: 54px; font-weight: 900; letter-spacing: 3px; background: linear-gradient(180deg, #fffbeb, var(--gold2) 55%, #f59e0b); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 20px rgba(251, 191, 36, .5)); }
.trl-logo p { margin: 0; color: #e9e3ff; }
.trl-ver { margin: 4px 0 14px; padding: 5px 14px; border-radius: 12px; font-size: 13px; font-weight: 800; color: #1c0b33; background: linear-gradient(180deg, #fde68a, #f59e0b); }
.trl-logo .btn { max-width: 320px; pointer-events: auto; }
.trl-cap { position: absolute; z-index: 3; left: 20px; right: 20px; bottom: calc(7vh + 28px); text-align: center; font-size: 22px; line-height: 1.35; font-weight: 700; text-shadow: 0 2px 16px #000, 0 0 30px #000; opacity: 0; }
.trl-cap.in { animation: trlCap 5s ease forwards; } .trl-cap b { color: var(--gold2); }
@keyframes trlCap { 0% { opacity: 0; transform: translateY(12px); letter-spacing: .06em; } 15% { opacity: 1; transform: none; letter-spacing: 0; } 85% { opacity: 1; } 100% { opacity: 0; } }
.trl-bars::before, .trl-bars::after { content: ""; position: fixed; left: 0; right: 0; height: 7vh; background: #000; z-index: 2; }
.trl-bars::before { top: 0; } .trl-bars::after { bottom: 0; }
.trl-skip { position: absolute; z-index: 7; right: 14px; top: calc(7vh + 10px); padding: 7px 14px; border-radius: 14px; font-size: 13px; font-weight: 700; color: #e9e3ff; background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .2); }
.trl-start { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: rgba(5, 2, 13, .78); cursor: pointer; }
.trl-play { width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; font-size: 34px; color: #1c0b33; background: linear-gradient(180deg, #fde68a, #f59e0b); box-shadow: 0 0 40px rgba(251, 191, 36, .6); animation: tutPulse 1.4s ease-in-out infinite; padding-left: 6px; }
.trl-start b { font-size: 24px; font-weight: 900; } .trl-start small { color: var(--muted); }
/* сцены */
.s-crack .trl-moon, .s-koschey .trl-moon, .s-flood .trl-moon { background: radial-gradient(circle at 35% 35%, #fae8ff, #d8b4fe 55%, #7c3aed); box-shadow: 0 0 80px rgba(192, 132, 252, .8); transform: scale(1.15); }
.s-crack .trl-sky, .s-koschey .trl-sky { background: linear-gradient(180deg, #14052e 0%, #3b0764 55%, #4c1d95 78%, #05020d 100%); }
.s-crack .trl-rift, .s-koschey .trl-rift, .s-flood .trl-rift { opacity: 1; } .s-crack .trl-rift path { animation: trlDraw 4s ease-in forwards; }
.s-koschey .trl-rift path, .s-flood .trl-rift path { stroke-dashoffset: 0; stroke-width: 7; }
@keyframes trlDraw { to { stroke-dashoffset: 0; } }
.s-koschey .trl-kos { opacity: 1; } .s-koschey .trl-kos > svg { transform: scale(1); }
.s-flood .trl-flood { opacity: 1; } .s-flood .trl-flood div { animation: trlFly 3.6s cubic-bezier(.3, .6, .4, 1) forwards; animation-delay: calc(var(--i) * .32s); }
@keyframes trlFly { 0% { left: -30%; transform: rotate(-20deg) scale(.6); } 60% { transform: rotate(8deg) scale(1); } 100% { left: 115%; transform: rotate(0) scale(.9); } }
.s-hide .trl-hide { opacity: 1; } .s-hide .trl-card { opacity: 1; transform: none; }
.s-hide .trl-sky, .s-order .trl-sky, .s-mentor .trl-sky { filter: brightness(.6); }
.s-order .trl-order { opacity: 1; } .s-order .trl-charm { transform: scale(1) rotate(0); }
.s-mentor .trl-mentor { opacity: 1; } .s-mentor .trl-mentor svg { transform: none; }
.s-logo .trl-logo { opacity: 1; pointer-events: auto; } .s-logo .trl-lcharm { animation: popIn .7s ease-out; } .s-logo .trl-logo h1 { animation: trlSlam .7s cubic-bezier(.2, 1.6, .3, 1); }
@keyframes trlSlam { from { transform: scale(2.4); opacity: 0; letter-spacing: .4em; } }
.s-logo .trl-cap, .s-logo .trl-bars, .s-logo .trl-skip { display: none; }
.calm .trl-rays, .calm .trl-star, .calm .trl-win rect { animation: none; }

/* ---------- 4.0: «Путь Ловчего» ---------- */
.pth-head { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 20px; border: 1px solid var(--line);
  background: radial-gradient(130% 120% at 0% 0%, color-mix(in srgb, var(--cc) 35%, transparent), rgba(255, 255, 255, .03) 70%); }
.pth-head .pc-ava { width: 64px; height: 64px; } .pth-head .acc-ava { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; }
.pth-hmain { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; } .pth-hmain b { font-size: 16px; } .pth-hmain small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.pth-note { color: var(--muted); font-size: 12.5px; line-height: 1.45; margin: 12px 4px 6px; }
.pth-road { position: relative; padding: 8px 0 20px; }
.pth-road::before { content: ""; position: absolute; left: 21px; top: 10px; bottom: 20px; width: 4px; border-radius: 2px; background: rgba(255, 255, 255, .1); }
.pth-row { position: relative; display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.pth-node { position: relative; z-index: 1; flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 15px;
  color: var(--muted); background: #1c1438; border: 3px solid rgba(255, 255, 255, .15); }
.pth-row.mini .pth-node { width: 32px; height: 32px; margin-left: 7px; font-size: 12px; border-width: 2px; }
.pth-row.done .pth-node { color: #3b2300; background: linear-gradient(180deg, #fde047, #f59e0b); border-color: #92400e; }
.pth-row.cur .pth-node { color: #1c0b33; background: linear-gradient(180deg, #5eead4, #0d9488); border-color: #fff; box-shadow: 0 0 0 4px rgba(94, 234, 212, .25), 0 0 24px rgba(94, 234, 212, .5); animation: tutPulse 1.6s ease-in-out infinite; }
.pth-card { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.pth-row.mini .pth-card { flex-direction: row; align-items: center; padding: 6px 10px; background: transparent; border-style: dashed; } .pth-row.mini small { color: var(--muted); font-size: 11px; }
.pth-row.next .pth-card { opacity: .78; }
.pth-row.cur .pth-card { border-color: rgba(94, 234, 212, .55); background: rgba(94, 234, 212, .07); }
.pth-rank { align-self: flex-start; padding: 3px 10px; border-radius: 10px; font-size: 12px; font-weight: 800; color: #1c0b33; background: linear-gradient(180deg, #fde68a, #f59e0b); }
.pth-here { align-self: flex-start; font-size: 12px; font-weight: 800; color: #5eead4; }
.pth-un { display: flex; align-items: center; gap: 10px; } .pth-un b { display: block; font-size: 14px; } .pth-un small { color: var(--muted); font-size: 12px; }
.pth-ic { width: 38px; height: 38px; flex: none; } .pth-ic .mi, .pth-ic .art { width: 100%; height: 100%; }
.pth-rws { display: flex; flex-wrap: wrap; gap: 6px; }
.pth-rw { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px 2px 3px; border-radius: 10px; font-size: 12px; background: rgba(0, 0, 0, .22); }
.pth-rw .art { width: 20px; height: 20px; } .pth-rw b { font-variant-numeric: tabular-nums; }

/* ---------- 4.0: «Книга Ордена» ---------- */
.bk-trailer { width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 14px; border-radius: 20px; text-align: left;
  background: linear-gradient(120deg, #3b0764, #1e1b4b 60%, #0a0616); border: 1px solid rgba(192, 132, 252, .5); box-shadow: 0 8px 26px rgba(124, 58, 237, .25); }
.bk-play { width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 20px; padding-left: 4px; color: #1c0b33; background: linear-gradient(180deg, #fde68a, #f59e0b); }
.bk-trailer b { display: block; font-size: 16px; } .bk-trailer small { color: #d8d0ee; font-size: 12.5px; }
.bk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bk-ch { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px; border-radius: 18px; text-align: left; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.bk-ch:active { transform: scale(.97); background: rgba(255, 255, 255, .09); }
.bk-ch b { font-size: 14px; line-height: 1.2; } .bk-ch small { color: var(--muted); font-size: 11.5px; line-height: 1.3; }
.bk-ico { width: 44px; height: 44px; margin-bottom: 2px; } .bk-ico .mi, .bk-ico .art { width: 100%; height: 100%; } .bk-ico.big { width: 64px; height: 64px; flex: none; }
.bk-foot { margin-top: 16px; opacity: .7; }
.bk-hero { display: flex; align-items: center; gap: 14px; padding: 14px; margin-bottom: 8px; border-radius: 20px; background: linear-gradient(120deg, rgba(76, 42, 145, .5), rgba(255, 255, 255, .03)); border: 1px solid var(--line); }
.bk-hero small { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold2); } .bk-hero b { font-size: 20px; font-weight: 900; }
.bk-p { font-size: 14.5px; line-height: 1.55; margin: 10px 2px; } .bk-p b { color: var(--gold2); }
.bk-cards { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.bk-card { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.bk-art { width: 54px; height: 54px; flex: none; display: grid; place-items: center; } .bk-art > svg, .bk-art .art, .bk-art .mi { width: 100%; height: 100%; }
.bk-card b { display: block; font-size: 14.5px; } .bk-card p { margin: 2px 0 0; font-size: 13px; line-height: 1.45; color: #d8d0ee; }
.bk-tags, .bk-chs { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.bk-tag { padding: 4px 10px; border-radius: 12px; font-size: 12.5px; font-weight: 700; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); }
.bk-chip { padding: 5px 10px; border-radius: 12px; font-size: 12.5px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--muted); }
.bk-chip.on { color: var(--text); border-color: rgba(253, 224, 71, .5); background: rgba(251, 191, 36, .12); }

/* ---------- 4.0: наставник поверх интерфейса, подсветка цели ---------- */
#coach.tut-coach { z-index: 2300; padding: 10px 12px; gap: 10px; max-width: 520px; margin: 0 auto; transition: none; } /* без анимации места: его меряет Tut.track() */
#coach.tut-coach .coach-ava { width: 38px; height: 38px; }
#coach.tut-coach .coach-main { font-size: 13.5px; line-height: 1.38; }
#coach.tut-coach .coach-bar { margin-top: 7px; }
#coach.tut-coach.pos-top { top: calc(84px + var(--st)); bottom: auto; }
#coach.tut-coach.pos-bottom { top: auto; bottom: calc(118px + var(--sb)); }
#coach.tut-coach.in-screen.pos-top { top: calc(68px + var(--st)); }
#coach.tut-coach.in-screen.pos-bottom { bottom: calc(12px + var(--sb)); }
.coach-back { display: block; margin-top: 4px; font-size: 12px; color: #fde68a; }
#tutRing { position: fixed; z-index: 2290; pointer-events: none; border-radius: 18px; border: 3px solid var(--gold2);
  box-shadow: 0 0 0 4px rgba(253, 224, 71, .25), 0 0 24px rgba(253, 224, 71, .6); transition: left .2s, top .2s, width .2s, height .2s; animation: tutRing 1.2s ease-in-out infinite; }
#tutRing.round { border-radius: 50%; }
#tutRing i { position: absolute; left: 50%; top: -30px; width: 0; height: 0; margin-left: -9px; border: 9px solid transparent; border-top: 14px solid var(--gold2);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .5)); animation: tutArrow 1s ease-in-out infinite; }
@keyframes tutRing { 50% { box-shadow: 0 0 0 9px rgba(253, 224, 71, .12), 0 0 34px rgba(253, 224, 71, .8); } }
@keyframes tutArrow { 50% { transform: translateY(-6px); } }
.calm #tutRing, .calm #tutRing i { animation: none; }
#coach .coach-ok { display: flex; width: auto; min-height: 36px; margin-top: 8px; padding: 6px 18px; font-size: 13.5px; }
#coach.info { border-color: rgba(253, 224, 71, .55); }
