/*
 * VELA remote access (Telegram Mini App). Two sources of the look:
 * - the in-game window pages (scripts/client-ui/web/vela.css, docs/WINDOW-STANDARD.md): dark window blue, bronze = the main action and
 *   the selected, gold = prices and rewards, blue = information, green/red = can/cannot, rarity colours;
 * - warm accents of the site «Закатный постер 2.0» (site/assets/next/a.css in vela/site-next): sun, coral, scarlet, plum dusk glow,
 *   sunset bands, a poster offset shadow under the main button.
 * Portrait phones 360–430 px, every tap target is 44 px or more, safe areas from env() and from Telegram.
 */
@font-face { font-family: 'Manrope'; src: url(fonts/manrope-cyrillic.woff2) format('woff2'); font-weight: 200 800; font-display: swap; unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Manrope'; src: url(fonts/manrope-latin.woff2) format('woff2'); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Oswald'; src: url(fonts/oswald-cyrillic.woff2) format('woff2'); font-weight: 200 700; font-display: swap; unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Oswald'; src: url(fonts/oswald-latin.woff2) format('woff2'); font-weight: 200 700; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

@property --beam { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

:root {
	/* night (Arcana) */
	--bg: #0d131d; --bg-2: #111824; --bg-3: #1c2638;
	--glass: rgba(255, 255, 255, .045); --glass-2: rgba(255, 255, 255, .075); --glass-3: rgba(255, 255, 255, .11);
	--edge: rgba(138, 170, 210, .14); --edge-2: rgba(138, 170, 210, .26); --edge-3: rgba(160, 190, 228, .46);
	--well: rgba(5, 9, 16, .5);
	--sun: #ffd23f; --coral: #ff8a3d; --red: #f2387c; --plum: #2b1b4f; --paper: #f6e3c5;
	/* in-game windows */
	--text: #eef3f9; --text-2: #b6c3d4; --text-3: #8091a8;
	--gold: #f4c96b; --gold-2: #d9a860; --bronze-1: #b68d5e; --bronze-2: #6b4e32; --bronze-line: #e0bd8c;
	--blue: #8fc9ff; --blue-2: #5ba3e6;
	--ok: #4ad884; --warn: #ffb547; --bad: #ff6b7e;
	--r-common: #c7d0db; --r-magic: #58b4ff; --r-rare: #c180ff; --r-legend: #ffb648; --r-ancient: #ff6363;
	--hp: linear-gradient(90deg, #9e1f36, #e8384f 60%, #ff7085);
	--mp: linear-gradient(90deg, #1e4fb8, #3f8cf0 60%, #8fc9ff);
	--cp: linear-gradient(90deg, #a8691a, #e6a53a 60%, #ffd36b);
	--xp: linear-gradient(90deg, var(--blue-2), var(--blue) 40%, var(--sun) 78%, var(--coral));
	--main: linear-gradient(180deg, #c99d69, var(--bronze-1) 38%, var(--bronze-2));
	--f-text: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
	--f-head: 'Oswald', 'Manrope', 'Segoe UI', sans-serif;
	--f-mono: ui-monospace, 'SF Mono', 'Cascadia Mono', 'Roboto Mono', Consolas, monospace;
	--r: 14px; --r-2: 12px; --r-3: 8px;
	--gut: 16px;
	--ease: cubic-bezier(.2, .7, .2, 1);
	/* Telegram gives its own insets in fullscreen; env() covers browsers */
	--sat: max(env(safe-area-inset-top, 0px), var(--tg-safe-area-inset-top, 0px));
	--sab: max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px));
	--ct: var(--tg-content-safe-area-inset-top, 0px);
	--tab-h: 64px;
	color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--bg); color: var(--text); font: 500 15px/1.45 var(--f-text); -webkit-font-smoothing: antialiased; overflow-x: hidden; overscroll-behavior-y: none; }
@supports (overflow: clip) { body { overflow-x: clip; } }
button, input, select, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; touch-action: manipulation; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-head); font-weight: 600; letter-spacing: .02em; }
p { margin: 0; }
.num, b, .tnum { font-variant-numeric: tabular-nums; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg.i { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
svg.i.s { width: 18px; height: 18px; }
svg.i.xs { width: 15px; height: 15px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(255, 138, 61, .5); color: #121016; }

/* ---------- the night: aurora + grid + grain, fixed behind everything ---------- */
body::before { content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
	background:
		radial-gradient(70% 30% at 50% -6%, rgba(255, 138, 61, .26), transparent 70%),
		radial-gradient(90% 36% at 0% -8%, rgba(242, 56, 124, .20), transparent 70%),
		radial-gradient(120% 60% at 50% -10%, rgba(143, 201, 255, .10), transparent 62%),
		linear-gradient(180deg, #221a33 0, #1c2638 260px, var(--bg-2) 62%, var(--bg) 100%); }
/* sunset bands: thin warm stripes fading under the top bar, the poster's horizon */
body::after { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .9;
	background: repeating-linear-gradient(180deg, transparent 0 22px, rgba(255, 138, 61, .06) 22px 24px);
	-webkit-mask: linear-gradient(180deg, #000, transparent 300px); mask: linear-gradient(180deg, #000, transparent 300px); }

.app { position: relative; min-height: 100vh; min-height: 100dvh; padding-top: calc(var(--sat) + var(--ct)); }

/* ---------- top bar ---------- */
.top { position: sticky; top: calc(var(--sat) + var(--ct)); z-index: 20; display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 10px; min-height: 62px;
	background: linear-gradient(180deg, rgba(13, 19, 29, .92), rgba(13, 19, 29, .72)); backdrop-filter: blur(14px) saturate(1.25); -webkit-backdrop-filter: blur(14px) saturate(1.25);
	border-bottom: 1px solid var(--edge); }
.top::before { content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: calc(var(--sat) + var(--ct)); background: rgba(13, 19, 29, .92); }
.who { display: flex; align-items: center; gap: 10px; min-height: 48px; min-width: 0; flex: 1; padding: 2px 8px 2px 2px; border-radius: 14px; text-align: left; transition: background .15s; }
.who:active { background: var(--glass-2); }
.ava { position: relative; width: 42px; height: 42px; flex: none; border-radius: 12px; overflow: hidden; background: #1a1c30; box-shadow: 0 0 0 1px var(--edge-2), 0 6px 16px rgba(0, 0, 0, .45); }
.ava img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.ava .st { position: absolute; right: 3px; bottom: 3px; width: 10px; height: 10px; border-radius: 50%; background: var(--text-3); box-shadow: 0 0 0 2px var(--bg); }
.st.online { background: var(--ok); }
.st.offline_farm { background: #ff9a6b; }
.st.dead { background: var(--bad); }
.who-t { min-width: 0; display: grid; gap: 1px; }
.who-n { display: flex; align-items: center; gap: 4px; font: 700 16px/1.15 var(--f-text); white-space: nowrap; }
.who-n span { overflow: hidden; text-overflow: ellipsis; }
.who-n svg { color: var(--text-3); }
.who-s { font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-r { display: flex; align-items: center; gap: 4px; flex: none; }
.demo { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; font: 700 10.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--coral); background: rgba(255, 138, 61, .1); box-shadow: inset 0 0 0 1px rgba(255, 138, 61, .35); }
.icon-btn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; color: var(--text-2); transition: background .15s, color .15s; }
.icon-btn:active { background: var(--glass-2); color: var(--text); }
.icon-btn .dot { position: absolute; top: 9px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px var(--bg); }

/* ---------- main view ---------- */
.view { display: block; padding: 14px var(--gut) calc(var(--tab-h) + var(--sab) + 28px); outline: 0; }
.view > * + * { margin-top: 14px; }
.screen-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 2px 2px 0; }
.screen-h h1 { font-size: 26px; line-height: 1.05; text-transform: uppercase; letter-spacing: .03em; }
.kick { font: 700 11px/1.2 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--coral); }
.kick.gold { color: var(--gold); }
.kick.dim { color: var(--text-3); }
.sec-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 22px 2px 10px; }
.sec-h h2 { font-size: 17px; text-transform: uppercase; letter-spacing: .05em; }
.sec-h .link { min-height: 44px; display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 13.5px; color: var(--blue); }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.gold { color: var(--gold); }
.okc { color: var(--ok); }
.badc { color: var(--bad); }
.warnc { color: var(--warn); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }

/* ---------- glass cards ---------- */
.card { position: relative; border-radius: var(--r); padding: 16px; background: linear-gradient(180deg, rgba(36, 49, 70, .78), rgba(20, 28, 42, .78)); border: 1px solid var(--edge-2);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 18px 40px -24px rgba(0, 0, 0, .8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.card.flat { padding: 0; overflow: hidden; }
.card.tight { padding: 12px; }
.card + .card { margin-top: 12px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-h h3 { font-size: 16px; text-transform: uppercase; letter-spacing: .05em; }
/* light running along the border (Arcana beam) */
.beam { isolation: isolate; }
.beam::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; z-index: -1; pointer-events: none;
	background: conic-gradient(from var(--beam), transparent 0 64%, var(--coral) 76%, #fff3d6 82%, var(--red) 90%, transparent 100%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
	animation: beam 6s linear infinite; opacity: .9; }
@keyframes beam { to { --beam: 360deg; } }

/* ---------- hero card ---------- */
.hero-c { padding: 16px 16px 14px; background: radial-gradient(120% 90% at 0% 0%, rgba(242, 56, 124, .16), transparent 55%), radial-gradient(90% 70% at 100% 0%, rgba(255, 138, 61, .10), transparent 60%), linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); }
.hero-top { display: flex; gap: 14px; align-items: center; }
.portrait { position: relative; width: 86px; height: 86px; flex: none; border-radius: 20px; overflow: visible; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; border-radius: 20px; box-shadow: 0 0 0 1px rgba(224, 189, 140, .55), 0 10px 26px rgba(0, 0, 0, .6); }
.portrait .lv { position: absolute; left: 50%; bottom: -9px; translate: -50% 0; min-width: 40px; height: 24px; padding: 0 8px; display: grid; place-items: center; border-radius: 999px;
	background: var(--main); color: #fff; font: 700 13px/1 var(--f-text); box-shadow: inset 0 1px 0 rgba(255, 236, 196, .55), 0 0 0 1px var(--bronze-line), 0 4px 10px rgba(0, 0, 0, .5); }
.hero-id { min-width: 0; display: grid; gap: 4px; }
.hero-id h2 { font-size: 26px; line-height: 1.05; letter-spacing: .02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-id .cls { font-size: 13.5px; color: var(--text-2); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.hero-c > .tags { margin-top: 16px; }
.tag { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; color: var(--text-2); background: var(--glass-2); box-shadow: inset 0 0 0 1px var(--edge); }
.tag svg.i { width: 13px; height: 13px; }
.tag.on { color: #c8ffe0; background: rgba(74, 216, 132, .14); box-shadow: inset 0 0 0 1px rgba(74, 216, 132, .4); }
.tag.farm { color: #ffe0cc; background: rgba(242, 56, 124, .2); box-shadow: inset 0 0 0 1px rgba(255, 150, 120, .5); }
.tag.off { color: var(--text-3); }
.tag.prem { color: #ffe7b0; background: rgba(244, 201, 107, .13); box-shadow: inset 0 0 0 1px rgba(244, 201, 107, .45); }
.tag.dead { color: #ffd0d6; background: rgba(255, 107, 126, .16); box-shadow: inset 0 0 0 1px rgba(255, 107, 126, .5); }
.tag .pulse { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: ping 2s ease-out infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.bars { display: grid; gap: 9px; margin-top: 18px; }
.bar-row { display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 8px; }
.bar-row > span { font: 700 11px/1 var(--f-mono); letter-spacing: .08em; color: var(--text-3); }
.bar { position: relative; height: 16px; border-radius: 6px; background: var(--well); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .05); overflow: hidden; }
.bar i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; transition: width .6s var(--ease); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -2px 3px rgba(0, 0, 0, .25); }
.bar i::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(255, 255, 255, .18), transparent 55%); }
.bar b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 11.5px; font-weight: 700; text-shadow: 0 1px 2px rgba(0, 0, 0, .9); letter-spacing: .02em; }
.bar.hp i { background: var(--hp); } .bar.mp i { background: var(--mp); } .bar.cp i { background: var(--cp); }
.xp { margin-top: 16px; }
.xp-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.xp-h b { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.xp-h b small { font-size: 13px; color: var(--text-2); font-weight: 700; }
.bar.xp-b { height: 10px; border-radius: 5px; }
.bar.xp-b i { background: var(--xp); background-size: 200% 100%; animation: flow 6s linear infinite; }
@keyframes flow { to { background-position: -200% 0; } }
.xp-f { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--text-3); }

/* ---------- location ---------- */
.loc-art { position: relative; height: 128px; background-size: cover; background-position: 50% 45%; }
.loc-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 19, 29, .05), rgba(13, 19, 29, .35) 45%, rgba(20, 28, 42, .98)); }
.loc-art .in { position: absolute; left: 16px; right: 16px; bottom: 12px; z-index: 1; display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; }
.loc-art h3 { font-size: 24px; line-height: 1; text-transform: uppercase; letter-spacing: .03em; text-shadow: 0 2px 12px rgba(0, 0, 0, .8); }
.loc-art .kick { text-shadow: 0 1px 6px rgba(0, 0, 0, .9); }
.loc-lv { flex: none; font: 700 12px/1 var(--f-mono); padding: 6px 9px; border-radius: 999px; background: rgba(13, 19, 29, .6); box-shadow: inset 0 0 0 1px var(--edge-2); backdrop-filter: blur(6px); }
.loc-body { padding: 4px 16px 16px; }
.map { position: relative; width: 100%; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: #0c1020; box-shadow: inset 0 0 0 1px var(--edge-2), inset 0 2px 10px rgba(0, 0, 0, .6); }
/* the world map of the client (js/worldmap.js): tiles under a transformed layer, icons and labels on top in screen pixels */
.map-wrap { position: relative; cursor: pointer; }
.map-open { position: absolute; right: 8px; bottom: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; font-weight: 800; color: #fff;
	background: rgba(13, 19, 29, .78); box-shadow: inset 0 0 0 1px var(--edge-2); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); pointer-events: none; }
.wm { position: relative; overflow: hidden; background: #61696d; user-select: none; -webkit-user-select: none; }
.wm-layer { position: absolute; left: 0; top: 0; width: 3072px; height: 4096px; transform-origin: 0 0; will-change: transform; }
.wm-base { position: absolute; left: 0; top: 0; width: 3072px; height: 4096px; max-width: none; }
.wm-tile { position: absolute; max-width: none; }
.wm-marks { position: absolute; inset: 0; pointer-events: none; }
.wm-town { position: absolute; display: flex; flex-direction: column; align-items: center; transform: translate(-50%, -14px); }
.wm-town img { width: 24px; height: 24px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .7)); }
.wm-town i { width: 7px; height: 7px; margin-top: 10px; border-radius: 50%; background: #f6e3c5; box-shadow: 0 0 0 1.5px #2a1d10, 0 1px 3px rgba(0, 0, 0, .8); }
.wm-town span { margin-top: 1px; font: 700 11px/1.15 var(--f-text); color: #fff6e6; white-space: nowrap; letter-spacing: .01em;
	text-shadow: -1px 0 #1b140c, 1px 0 #1b140c, 0 -1px #1b140c, 0 1px #1b140c, 0 2px 4px rgba(0, 0, 0, .8); }
.wm-town:not(.big) span { font-size: 10.5px; font-weight: 600; color: #f1e7d6; }
.wm-hero { position: absolute; width: 0; height: 0; }
.wm-hero img { position: absolute; left: -17px; top: -17px; width: 34px; height: 34px; max-width: none; transform: rotate(-90deg); filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .8)); }
.wm-hero i { position: absolute; left: -16px; top: -16px; width: 32px; height: 32px; border-radius: 50%; border: 2px solid rgba(255, 210, 63, .9); animation: wmping 2s ease-out infinite; }
@keyframes wmping { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }
.wm-spot { position: absolute; width: 0; height: 0; }
.wm-spot img { position: absolute; left: -9px; top: -27px; width: 30px; height: 30px; max-width: none; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .8)); }
.wm-radius { position: absolute; transform: translate(-50%, -50%); border-radius: 50%; border: 1.5px dashed rgba(255, 210, 63, .85); background: rgba(255, 138, 61, .12); }
.wm-full { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; background: var(--bg); padding-top: calc(var(--sat) + var(--ct)); }
.wm-top { display: flex; align-items: center; gap: 8px; min-height: 60px; padding: 8px 12px 8px 6px; background: rgba(13, 19, 29, .95); border-bottom: 1px solid var(--edge); }
.wm-top .row-t > b { font-family: var(--f-head); font-size: 20px; text-transform: uppercase; letter-spacing: .03em; }
.wm-view { flex: 1; min-height: 0; }
.wm-ctl { position: absolute; right: 12px; bottom: calc(var(--sab) + 76px); display: grid; gap: 8px; }
.wm-ctl button { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: var(--text); background: rgba(20, 28, 42, .9); box-shadow: inset 0 0 0 1px var(--edge-2), 0 6px 16px rgba(0, 0, 0, .5); }
.wm-ctl button:last-child { color: #fff; background: var(--main); box-shadow: inset 0 0 0 1px var(--bronze-line), 0 6px 16px rgba(0, 0, 0, .5); }
.wm-legend { position: absolute; left: 12px; right: 12px; bottom: calc(var(--sab) + 12px); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 10px 14px; border-radius: 14px; font-size: 13px; font-weight: 700;
	background: rgba(20, 28, 42, .92); box-shadow: inset 0 0 0 1px var(--edge-2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.wm-legend span { display: inline-flex; align-items: center; gap: 6px; }
.wm-legend img { width: 22px; height: 22px; }
.wm-legend img[src*=Arrow] { transform: rotate(-90deg); }
.loc-f { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12.5px; color: var(--text-2); }
.loc-f span { display: inline-flex; align-items: center; gap: 5px; }
.loc-f svg.i { width: 14px; height: 14px; }
.legend-me { color: var(--coral); } .legend-spot { color: var(--gold); } .legend-town { color: var(--blue); }

/* ---------- autohunt summary ---------- */
.hunt { display: grid; gap: 12px; }
.hunt-h { display: flex; align-items: center; gap: 12px; }
.hunt-ico { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 13px; color: #fff; background: linear-gradient(135deg, var(--sun), var(--coral) 50%, var(--red)); box-shadow: 0 8px 22px -8px rgba(255, 138, 61, .8), inset 0 1px 0 rgba(255, 255, 255, .35); }
.hunt-ico.off { background: var(--glass-3); box-shadow: inset 0 0 0 1px var(--edge-2); color: var(--text-3); }
.hunt-t { flex: 1; min-width: 0; }
.hunt-t b { display: block; font-size: 16px; }
.hunt-t span { font-size: 12.5px; color: var(--text-2); }
.stats4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.stat { padding: 9px 8px; border-radius: 12px; background: var(--well); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04); min-width: 0; }
.stat b { display: block; font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat span { display: block; font-size: 11px; color: var(--text-3); margin-top: 1px; white-space: nowrap; }
.spark { width: 100%; height: 34px; display: block; }

/* ---------- currencies ---------- */
.money { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.cur { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 14px; background: var(--glass); border: 1px solid var(--edge); min-width: 0; }
.cur.wide { grid-column: span 2; padding: 13px 14px; background: linear-gradient(90deg, rgba(244, 201, 107, .10), rgba(255, 255, 255, .03) 60%); border-color: rgba(244, 201, 107, .22); }
.cur .ic { width: 34px; height: 34px; }
.cur.wide .ic { width: 40px; height: 40px; }
.cur-t { min-width: 0; }
.cur-t b { display: block; font-size: 16px; font-weight: 800; color: var(--gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cur.wide .cur-t b { font-size: 22px; letter-spacing: -.01em; }
.cur-t > span { display: block; font-size: 11.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cur .delta { margin-left: auto; font: 700 12px/1 var(--f-mono); color: var(--ok); white-space: nowrap; }

/* item icon: the client's 32 px textures, a frame like the game's slot */
.ic { position: relative; width: 40px; height: 40px; flex: none; border-radius: 9px; background: #0a0d18 center / cover no-repeat; box-shadow: 0 0 0 1px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .12); image-rendering: auto; }
.ic.r-magic { box-shadow: 0 0 0 1px rgba(0, 0, 0, .7), inset 0 0 0 1.5px var(--r-magic); }
.ic.r-rare { box-shadow: 0 0 0 1px rgba(0, 0, 0, .7), inset 0 0 0 1.5px var(--r-rare), 0 0 12px -2px var(--r-rare); }
.ic.r-legend { box-shadow: 0 0 0 1px rgba(0, 0, 0, .7), inset 0 0 0 1.5px var(--r-legend), 0 0 14px -2px var(--r-legend); }
.ic .q { position: absolute; right: -3px; bottom: -4px; min-width: 18px; padding: 1px 4px; border-radius: 6px; background: rgba(5, 7, 14, .92); font: 700 10.5px/1.25 var(--f-text); text-align: center; box-shadow: 0 0 0 1px var(--edge-2); }
.ic .en { position: absolute; left: -3px; top: -4px; padding: 1px 4px; border-radius: 6px; background: var(--main); font: 800 10px/1.3 var(--f-text); color: #fff; }
.n-magic { color: var(--r-magic); } .n-rare { color: var(--r-rare); } .n-legend { color: var(--r-legend); } .n-common { color: var(--text); }

/* ---------- bag ---------- */
.bag { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.meter-h { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-2); margin-bottom: 6px; }
.meter-h b { color: var(--text); }
.meter { height: 8px; border-radius: 4px; background: var(--well); overflow: hidden; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .6); }
.meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue-2), var(--blue)); }
.meter.warn i { background: linear-gradient(90deg, #d07a1a, var(--warn)); }
.meter.bad i { background: linear-gradient(90deg, #b3243a, var(--bad)); }

/* ---------- consumables & buffs ---------- */
.cons { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.con { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: var(--glass); border: 1px solid var(--edge); min-width: 0; }
.con.low { border-color: rgba(255, 181, 71, .45); background: linear-gradient(90deg, rgba(255, 181, 71, .1), rgba(255, 255, 255, .02)); }
.con.out { border-color: rgba(255, 107, 126, .5); background: linear-gradient(90deg, rgba(255, 107, 126, .12), rgba(255, 255, 255, .02)); }
.con-t { min-width: 0; }
.con-t b { display: block; font-size: 13px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.con-t > span { display: block; font-size: 11.5px; line-height: 1.3; color: var(--text-2); }
.con-t { flex: 1; overflow: hidden; }
.con.low .con-t > span { color: var(--warn); } .con.out .con-t > span { color: var(--bad); }
.buffs { display: flex; flex-wrap: wrap; gap: 10px 8px; }
.buff { width: 52px; display: grid; justify-items: center; gap: 4px; }
.buff .ic { width: 40px; height: 40px; border-radius: 10px; }
.buff span { font: 600 11px/1 var(--f-mono); color: var(--text-2); }
.buff.end span { color: var(--warn); }

/* ---------- lists ---------- */
.list { display: grid; grid-template-columns: minmax(0, 1fr); }
.row { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 14px; border-top: 1px solid var(--edge); }
.list > .row:first-child { border-top: 0; }
.row-t { flex: 1; min-width: 0; }
.row-t > b { display: block; font-size: 14.5px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-t > span { display: block; font-size: 12.5px; color: var(--text-2); line-height: 1.35; }
.row-r { flex: none; text-align: right; }
.price { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; color: var(--gold); white-space: nowrap; }
.cic { display: inline-block; width: 18px; height: 18px; flex: none; border-radius: 4px; background: #0a0d18 center / cover no-repeat; box-shadow: 0 0 0 1px rgba(0, 0, 0, .6); vertical-align: -3px; }
button.row { width: 100%; text-align: left; }
button.row:active { background: var(--glass); }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 14px; font-weight: 800; font-size: 15px; white-space: nowrap; color: var(--text);
	background: var(--glass-2); box-shadow: inset 0 0 0 1px var(--edge-2), inset 0 1px 0 rgba(255, 255, 255, .06); transition: transform .12s, filter .15s, background .15s; isolation: isolate; }
.btn:active { transform: translate(2px, 2px); }
.btn.main { color: #fff; background: var(--main); box-shadow: inset 0 0 0 1px var(--bronze-line), inset 0 1px 0 rgba(255, 236, 196, .55), 4px 4px 0 rgba(242, 56, 124, .55); text-shadow: 0 1px 1px rgba(60, 35, 10, .6); }
.btn.main::after { content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%); background-size: 250% 100%; animation: shine 4.5s ease-in-out infinite; }
@keyframes shine { 0% { background-position: 150% 0; } 60%, 100% { background-position: -100% 0; } }
.btn.arc { color: #fff; background: linear-gradient(135deg, var(--sun), var(--coral) 50%, var(--red)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 26px -12px rgba(255, 138, 61, .8); }
.btn.danger { color: #ffd6dc; background: rgba(255, 107, 126, .12); box-shadow: inset 0 0 0 1px rgba(255, 107, 126, .45); }
.btn.small { min-height: 44px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.btn.wide { width: 100%; }
.btn:disabled, .btn[aria-disabled='true'] { opacity: .42; filter: saturate(.3); cursor: default; transform: none; }
.btn:disabled::after { display: none; }
.btn small { font-weight: 700; opacity: .85; font-size: 12.5px; }
.btns { display: flex; gap: 8px; }
.btns > .btn { flex: 1; }

/* quick action tiles */
.acts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.act { position: relative; display: grid; align-content: start; gap: 6px; min-height: 118px; padding: 14px; border-radius: var(--r); text-align: left; overflow: hidden;
	background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025)); border: 1px solid var(--edge); transition: transform .12s, border-color .15s; }
.act:active { transform: scale(.98); }
.act .ai { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: var(--bronze-line); background: rgba(182, 141, 94, .16); box-shadow: inset 0 0 0 1px rgba(224, 189, 140, .35); }
.act.hot .ai { color: #fff; background: var(--main); box-shadow: inset 0 0 0 1px var(--bronze-line), inset 0 1px 0 rgba(255, 236, 196, .5); }
.act.hot { border-color: rgba(224, 189, 140, .5); background: radial-gradient(100% 80% at 0% 0%, rgba(182, 141, 94, .22), transparent 60%), linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025)); }
.act b { font-size: 15px; line-height: 1.2; }
.act span { font-size: 12px; color: var(--text-2); line-height: 1.35; }
.act:disabled { opacity: .5; }
.act .spot-p { margin-top: auto; font-weight: 800; color: var(--gold); }
img.clsic { object-fit: contain !important; padding: 8%; background: radial-gradient(circle at 50% 40%, #2a3a55, #111824 75%); }
.ava img.clsic { padding: 3px; }
.act:disabled .ai { filter: grayscale(1); }

/* ---------- switches, segmented, chips ---------- */
.sw-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 0; text-align: left; border-top: 1px solid var(--edge); }
.sw-row:first-child { border-top: 0; }
.sw-row .t { flex: 1; min-width: 0; }
.sw-row .t > b { display: block; font-size: 14.5px; font-weight: 700; }
.sw-row .t > span { display: block; font-size: 12.5px; color: var(--text-2); line-height: 1.35; }
.sw-row:disabled { cursor: default; }
.sw-row:disabled .sw { opacity: .4; }
.sw { position: relative; width: 50px; height: 30px; flex: none; border-radius: 999px; background: var(--well); box-shadow: inset 0 0 0 1px var(--edge-2), inset 0 2px 4px rgba(0, 0, 0, .5); transition: background .2s; }
.sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #9aa6bf; box-shadow: 0 2px 6px rgba(0, 0, 0, .5); transition: transform .22s var(--ease), background .2s; }
.sw.on { background: linear-gradient(180deg, var(--bronze-1), var(--bronze-2)); box-shadow: inset 0 0 0 1px var(--bronze-line), inset 0 1px 0 rgba(255, 236, 196, .4); }
.sw.on::after { transform: translateX(20px); background: #fff; }
.sw.big { width: 64px; height: 38px; }
.sw.big::after { width: 30px; height: 30px; top: 4px; left: 4px; }
.sw.big.on::after { transform: translateX(26px); }
.seg { display: flex; gap: 3px; padding: 3px; border-radius: 14px; background: var(--well); box-shadow: inset 0 0 0 1px var(--edge); }
.seg button { position: relative; flex: 1; min-height: 44px; padding: 0 8px; border-radius: 11px; font-weight: 700; font-size: 14px; color: var(--text-2); white-space: nowrap; transition: background .15s, color .15s; }
.seg button.on { color: #fff; background: linear-gradient(180deg, var(--bronze-1), var(--bronze-2)); box-shadow: inset 0 0 0 1px var(--bronze-line), inset 0 1px 0 rgba(255, 236, 196, .45); }
.seg .cnt { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; margin-left: 5px; border-radius: 999px; font-size: 11px; font-weight: 800; color: #fff; background: var(--red); vertical-align: 1px; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gut)); padding: 2px var(--gut); scroll-padding: 0 var(--gut); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 15px; border-radius: 999px; font-weight: 700; font-size: 13.5px; color: var(--text-2); background: var(--glass); box-shadow: inset 0 0 0 1px var(--edge-2); white-space: nowrap; }
.chip.on { color: #fff; background: linear-gradient(180deg, var(--bronze-1), var(--bronze-2)); box-shadow: inset 0 0 0 1px var(--bronze-line), inset 0 1px 0 rgba(255, 236, 196, .45); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; }
.chip .c { font: 700 11px/1 var(--f-mono); opacity: .75; }

/* stepper and slider */
.step { display: inline-flex; align-items: center; border-radius: 12px; background: var(--well); box-shadow: inset 0 0 0 1px var(--edge-2); }
.step button { width: 44px; height: 44px; display: grid; place-items: center; color: var(--text-2); }
.step button:active { color: var(--text); }
.step b { min-width: 52px; text-align: center; font-size: 14.5px; }
.rng { display: grid; gap: 4px; padding: 10px 0 6px; border-top: 1px solid var(--edge); }
.rng-h { display: flex; justify-content: space-between; align-items: baseline; }
.rng-h b { font-size: 14.5px; }
.rng-h output { font: 700 14px/1 var(--f-mono); color: var(--blue); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; margin: 0; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--bronze-1) var(--p, 50%), var(--well) var(--p, 50%)); box-shadow: inset 0 0 0 1px var(--edge-2); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(182, 141, 94, .35), 0 3px 8px rgba(0, 0, 0, .6); }
input[type=range]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--well); }
input[type=range]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--bronze-1); }
input[type=range]::-moz-range-thumb { width: 26px; height: 26px; border: 0; border-radius: 50%; background: #fff; }

/* text fields */
.field { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px; border-radius: 14px; background: var(--well); box-shadow: inset 0 0 0 1px var(--edge-2), inset 0 2px 4px rgba(0, 0, 0, .4); color: var(--text-3); }
.field:focus-within { box-shadow: inset 0 0 0 1px var(--blue-2), 0 0 0 3px rgba(91, 163, 230, .2); }
.field input, .field textarea { flex: 1; min-width: 0; height: 46px; border: 0; outline: 0; background: none; font-size: 16px; color: var(--text); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field .suf { font-weight: 700; color: var(--text-2); }
label.lab { display: block; margin: 14px 2px 6px; font-size: 12.5px; font-weight: 700; color: var(--text-2); }

/* ---------- log ---------- */
.live { display: inline-flex; align-items: center; gap: 7px; font: 700 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ok); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: ping 2s ease-out infinite; box-shadow: 0 0 0 0 var(--ok); }
.log-day { margin: 18px 4px 8px; font: 700 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.ev { position: relative; display: flex; gap: 12px; padding: 12px 14px 12px 12px; border-top: 1px solid var(--edge); }
.list > .ev:first-child { border-top: 0; }
.ev-i { position: relative; width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 11px; color: var(--text-2); background: var(--glass-2); box-shadow: inset 0 0 0 1px var(--edge); }
.ev-i .ic { width: 38px; height: 38px; border-radius: 11px; }
.ev-t { flex: 1; min-width: 0; font-size: 14px; line-height: 1.4; }
.ev-t .sub { display: block; font-size: 12.5px; color: var(--text-2); margin-top: 1px; }
.ev-time { flex: none; font: 600 11.5px/1.4 var(--f-mono); color: var(--text-3); padding-top: 2px; }
.ev.k-fight .ev-i { color: var(--blue); }
.ev.k-drop .ev-i { color: var(--gold); }
.ev.k-attack::before, .ev.k-hero.bad::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--bad); }
.ev.k-attack .ev-i, .ev.k-hero.bad .ev-i { color: var(--bad); background: rgba(255, 107, 126, .1); box-shadow: inset 0 0 0 1px rgba(255, 107, 126, .35); }
.ev.k-hero .ev-i { color: var(--red); }
.ev.k-hero.good .ev-i { color: var(--ok); }
.ev.k-trade .ev-i { color: var(--gold); background: rgba(244, 201, 107, .1); }
.ev.k-system .ev-i { color: var(--warn); }
.ev.fresh { animation: fresh 1.4s var(--ease); }
@keyframes fresh { from { background: rgba(255, 138, 61, .14); } to { background: transparent; } }
.hl { font-weight: 700; color: var(--text); }
.hl-g { font-weight: 800; color: var(--gold); }
.hl-b { font-weight: 700; color: var(--bad); }
.hl-ok { font-weight: 700; color: var(--ok); }
.more { display: flex; justify-content: center; padding: 6px 0 2px; }

/* ---------- rewards ---------- */
.pass-h { display: grid; gap: 10px; }
.pass-lv { display: flex; align-items: center; gap: 14px; }
.pass-badge { position: relative; width: 64px; height: 64px; flex: none; display: grid; place-items: center; border-radius: 18px; font: 700 26px/1 var(--f-head); color: #fff;
	background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .35), transparent 50%), linear-gradient(135deg, var(--sun), var(--coral) 50%, var(--red)); box-shadow: 0 10px 26px -10px rgba(242, 56, 124, .9), inset 0 0 0 1px rgba(255, 255, 255, .25); }
.pass-badge small { position: absolute; bottom: 6px; font: 700 9px/1 var(--f-mono); letter-spacing: .12em; opacity: .85; }
.track { display: grid; gap: 8px; }
.tier { display: grid; grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: stretch; }
.tier-n { display: grid; place-items: center; border-radius: 12px; font: 700 15px/1 var(--f-head); color: var(--text-2); background: var(--well); }
.tier.reached .tier-n { color: #fff; background: linear-gradient(180deg, var(--bronze-1), var(--bronze-2)); box-shadow: inset 0 0 0 1px var(--bronze-line); }
.rw { position: relative; display: flex; align-items: center; gap: 9px; min-height: 60px; padding: 8px 10px; border-radius: 14px; text-align: left; background: var(--glass); border: 1px solid var(--edge); min-width: 0; }
.rw .ic { width: 36px; height: 36px; }
.rw-t { min-width: 0; flex: 1; }
.rw-t b { display: block; font-size: 12.5px; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rw-t > span { display: block; font-size: 11px; font-weight: 700; margin-top: 2px; }
.rw.ready { border-color: rgba(244, 201, 107, .55); background: radial-gradient(120% 120% at 0% 0%, rgba(244, 201, 107, .16), transparent 60%), var(--glass); box-shadow: 0 0 0 1px rgba(244, 201, 107, .15), 0 8px 22px -14px rgba(244, 201, 107, .8); }
.rw.ready .rw-t > span { color: var(--gold); }
.rw.done { opacity: .55; }
.rw.done .rw-t > span { color: var(--ok); }
.rw.locked .rw-t > span { color: var(--text-3); }
.rw.prem { background: linear-gradient(180deg, rgba(242, 56, 124, .12), rgba(255, 255, 255, .02)); border-color: rgba(255, 150, 120, .3); }
.track-h { display: grid; grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1fr); gap: 8px; font: 700 10.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); padding: 0 2px; }
.track-h span:last-child { color: #ffb08a; }
.daily { display: grid; gap: 10px; padding: 14px 0; border-top: 1px solid var(--edge); }
.daily:first-child { border-top: 0; padding-top: 2px; }
.daily-h { display: flex; gap: 12px; align-items: center; }
.daily-h .row-t > b { white-space: normal; }
.daily-rw { display: flex; gap: 6px; flex-wrap: wrap; }
.pill-rw { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 9px 0 4px; border-radius: 999px; background: var(--well); font-size: 12.5px; font-weight: 700; color: var(--gold); }
.pill-rw .ic { width: 22px; height: 22px; border-radius: 6px; }
.letter { display: flex; gap: 12px; align-items: flex-start; width: 100%; padding: 14px; border-top: 1px solid var(--edge); text-align: left; }
.list > .letter:first-child { border-top: 0; }
.letter.unread .row-t > b::after { content: ''; display: inline-block; width: 8px; height: 8px; margin-left: 7px; border-radius: 50%; background: var(--red); vertical-align: 2px; }
.letter .from { font: 600 11.5px/1.4 var(--f-mono); color: var(--text-3); }
.att { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.att .ic { width: 34px; height: 34px; }

/* ---------- market ---------- */
.lot { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 72px; padding: 12px 14px; border-top: 1px solid var(--edge); text-align: left; }
.list > .lot:first-child { border-top: 0; }
.lot .ic { width: 44px; height: 44px; }
.lot-s { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--glass-2); color: var(--text-2); }
.lot-s.sold { color: #10261a; background: var(--ok); }
.lot-s.exp { color: var(--warn); background: rgba(255, 181, 71, .12); }
.searchbar { display: flex; gap: 8px; }
.searchbar .field { flex: 1; }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; font-size: 13px; line-height: 1.45; color: var(--text-2); background: rgba(143, 201, 255, .06); box-shadow: inset 0 0 0 1px rgba(143, 201, 255, .18); }
.note svg.i { color: var(--blue); margin-top: 1px; }
.note.lock { background: rgba(242, 56, 124, .08); box-shadow: inset 0 0 0 1px rgba(255, 150, 120, .3); }
.note.lock svg.i { color: #ffb08a; }
.note.warn { background: rgba(255, 181, 71, .07); box-shadow: inset 0 0 0 1px rgba(255, 181, 71, .3); }
.note.warn svg.i { color: var(--warn); }
.note b { color: var(--text); }

/* ---------- chat ---------- */
.chat { display: flex; flex-direction: column; gap: 10px; padding-bottom: 72px; }
.msg { display: flex; gap: 9px; align-items: flex-end; max-width: 88%; }
.msg .mava { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 10px; font: 700 13px/1 var(--f-head); color: #fff; }
.bub { padding: 9px 12px 7px; border-radius: 16px 16px 16px 5px; background: var(--glass-2); box-shadow: inset 0 0 0 1px var(--edge); font-size: 14.5px; line-height: 1.4; min-width: 0; overflow-wrap: anywhere; }
.bub .by { display: block; font-size: 12px; font-weight: 800; margin-bottom: 2px; }
.bub .tm { display: block; text-align: right; font: 600 10.5px/1 var(--f-mono); color: var(--text-3); margin-top: 3px; }
.msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.msg.mine .bub { border-radius: 16px 16px 5px 16px; background: linear-gradient(180deg, rgba(182, 141, 94, .38), rgba(107, 78, 50, .42)); box-shadow: inset 0 0 0 1px rgba(224, 189, 140, .45); }
.msg.sys { align-self: center; max-width: 100%; }
.msg.sys .bub { background: none; box-shadow: none; text-align: center; font-size: 12.5px; color: var(--text-3); padding: 2px; }
.composer { position: fixed; left: 0; right: 0; bottom: calc(var(--tab-h) + var(--sab)); z-index: 15; display: flex; gap: 8px; align-items: flex-end; padding: 8px 12px; background: linear-gradient(180deg, rgba(13, 19, 29, .7), rgba(13, 19, 29, .94)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--edge); }
.composer .field { flex: 1; padding: 0 12px; }
.composer .send { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 14px; color: #fff; background: var(--main); box-shadow: inset 0 0 0 1px var(--bronze-line), inset 0 1px 0 rgba(255, 236, 196, .5); }
.composer .send:disabled { opacity: .45; }
.dlg { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 68px; padding: 10px 14px; border-top: 1px solid var(--edge); text-align: left; }
.list > .dlg:first-child { border-top: 0; }
.dlg .mava { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 14px; font: 700 17px/1 var(--f-head); color: #fff; }
.dlg .unread { min-width: 22px; height: 22px; padding: 0 6px; display: grid; place-items: center; border-radius: 999px; background: var(--red); color: #fff; font-size: 12px; font-weight: 800; }
.chat-head { display: flex; align-items: center; gap: 8px; }

/* ---------- bottom tab bar ---------- */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); padding: 0 4px var(--sab);
	background: linear-gradient(180deg, rgba(26, 36, 53, .9), rgba(13, 19, 29, .98)); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); border-top: 1px solid var(--edge); }
.tab { position: relative; display: grid; justify-items: center; align-content: center; gap: 3px; min-height: var(--tab-h); min-width: 0; color: var(--text-3); font-size: 10.5px; font-weight: 700; letter-spacing: .01em; }
.tab svg.i { width: 24px; height: 24px; transition: transform .2s var(--ease); }
.tab span { white-space: nowrap; }
.tab.on { color: var(--text); }
.tab.on svg.i { color: var(--bronze-line); transform: translateY(-1px); filter: drop-shadow(0 0 8px rgba(224, 189, 140, .55)); }
.tab.on::before { content: ''; position: absolute; top: -1px; left: 22%; right: 22%; height: 2px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, transparent, var(--bronze-line), transparent); box-shadow: 0 0 12px rgba(224, 189, 140, .8); }
.tab .badge { position: absolute; top: 8px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; display: grid; place-items: center; border-radius: 999px; background: var(--red); color: #fff; font-size: 10px; font-weight: 800; box-shadow: 0 0 0 2px var(--bg); }

/* ---------- sheets (bottom dialogs) ---------- */
.layer { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.scrim { position: absolute; inset: 0; background: rgba(3, 3, 9, .62); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; transition: opacity .25s; pointer-events: auto; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: calc(100% - var(--sat) - var(--ct) - 24px); display: flex; flex-direction: column; pointer-events: auto;
	border-radius: 24px 24px 0 0; background: radial-gradient(120% 50% at 50% 0%, rgba(242, 56, 124, .14), transparent 60%), linear-gradient(180deg, #232f45, #1a2435 40%, #111824);
	box-shadow: 0 -1px 0 rgba(255, 255, 255, .12), 0 -24px 60px rgba(0, 0, 0, .6); transform: translateY(104%); transition: transform .32s var(--ease); }
.layer.open .scrim { opacity: 1; }
.sheet.open { transform: none; }
.sheet.open.away { transform: translateY(104%); }
.sheet-grip { width: 40px; height: 4px; margin: 9px auto 0; border-radius: 2px; background: rgba(255, 255, 255, .22); flex: none; }
.sheet-h { display: flex; align-items: center; gap: 8px; padding: 8px 8px 6px 20px; flex: none; }
.sheet-h h2 { flex: 1; font-size: 20px; text-transform: uppercase; letter-spacing: .04em; }
.sheet-b { padding: 4px 20px 16px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.sheet-f { flex: none; display: flex; gap: 8px; padding: 10px 20px calc(14px + var(--sab)); border-top: 1px solid var(--edge); background: rgba(13, 19, 29, .6); }
.sheet-f .btn { flex: 1; }
.tg-main .sheet-f .btn.main { display: none; }
.tg-main .sheet-f:not(:has(.btn:not(.main))) { display: none; }
.lead { font-size: 14.5px; color: var(--text-2); line-height: 1.5; }
.lead b { color: var(--text); }

/* hero picker */
.pick { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border-radius: 16px; text-align: left; background: var(--glass); border: 1px solid var(--edge); }
.pick + .pick { margin-top: 8px; }
.pick.on { border-color: var(--bronze-line); background: radial-gradient(100% 100% at 0% 50%, rgba(182, 141, 94, .2), transparent 70%), var(--glass); box-shadow: 0 0 0 1px rgba(224, 189, 140, .25); }
.pick .ava { width: 56px; height: 56px; border-radius: 15px; }
.pick .ava .st { width: 12px; height: 12px; }
.pick .row-t > b { font-size: 16px; }
.rule { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.slot { display: grid; gap: 4px; justify-items: center; padding: 12px 8px; border-radius: 14px; text-align: center; background: var(--well); box-shadow: inset 0 0 0 1px var(--edge); font-size: 12px; color: var(--text-2); }
.slot svg.i { width: 26px; height: 26px; }
.slot b { font-size: 13.5px; color: var(--text); }
.slot.used { box-shadow: inset 0 0 0 1px rgba(255, 150, 120, .45); background: rgba(242, 56, 124, .1); }
.slot.used svg { color: #ffb08a; }
.slot.lit { box-shadow: inset 0 0 0 1px rgba(74, 216, 132, .35); }
.slot.lit svg { color: var(--ok); }

/* confirmation code */
.code-what { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; background: var(--well); box-shadow: inset 0 0 0 1px var(--edge-2); }
.code-what .ic { width: 44px; height: 44px; }
.code-shield { width: 64px; height: 64px; margin: 6px auto 12px; display: grid; place-items: center; border-radius: 20px; color: #fff; background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .35), transparent 50%), linear-gradient(135deg, var(--sun), var(--coral) 50%, var(--red)); box-shadow: 0 12px 30px -10px rgba(242, 56, 124, .9); }
.code-shield svg.i { width: 32px; height: 32px; }
.code-boxes { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 18px 0 10px; }
.code-boxes .bx { height: 58px; display: grid; place-items: center; border-radius: 14px; font: 800 26px/1 var(--f-text); background: var(--well); box-shadow: inset 0 0 0 1px var(--edge-2), inset 0 2px 5px rgba(0, 0, 0, .5); }
.code-boxes .bx.cur { box-shadow: inset 0 0 0 2px var(--blue-2), 0 0 0 3px rgba(91, 163, 230, .18); }
.code-boxes .bx.cur::after { content: ''; width: 2px; height: 26px; background: var(--blue); animation: caret 1s steps(1) infinite; }
.code-boxes.bad .bx { box-shadow: inset 0 0 0 2px var(--bad); animation: shake .35s; }
.code-boxes.good .bx { box-shadow: inset 0 0 0 2px var(--ok); color: var(--ok); }
@keyframes caret { 50% { opacity: 0; } }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.code-boxes input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 16px; border: 0; color: transparent; background: transparent; caret-color: transparent; }
.code-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.code-meta .btn { min-height: 44px; }
.steps3 { display: flex; gap: 6px; justify-content: center; margin-bottom: 4px; }
.steps3 i { width: 26px; height: 4px; border-radius: 2px; background: var(--glass-3); }
.steps3 i.on { background: var(--bronze-line); }
.done-big { display: grid; justify-items: center; gap: 10px; padding: 14px 0 6px; text-align: center; }
.done-big .ok { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%; color: #0c2a18; background: radial-gradient(circle at 30% 25%, #b9ffd5, var(--ok)); box-shadow: 0 0 0 8px rgba(74, 216, 132, .14), 0 12px 30px -10px rgba(74, 216, 132, .9); }
.done-big .ok svg.i { width: 36px; height: 36px; stroke-width: 2.4; }

/* ---------- toasts (bot-like notifications) ---------- */
.toasts { position: fixed; left: 10px; right: 10px; top: calc(var(--sat) + var(--ct) + 8px); z-index: 70; display: grid; gap: 8px; pointer-events: none; }
.toast { display: flex; gap: 11px; align-items: flex-start; padding: 11px 13px; border-radius: 16px; pointer-events: auto; background: rgba(28, 38, 56, .95); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 18px 40px rgba(0, 0, 0, .55); animation: tin .35s var(--ease); }
.toast.out { animation: tout .3s ease forwards; }
@keyframes tin { from { opacity: 0; transform: translateY(-14px) scale(.98); } }
@keyframes tout { to { opacity: 0; transform: translateY(-10px); } }
.toast .ti { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; color: #fff; background: linear-gradient(135deg, var(--coral), var(--red)); }
.toast.bad .ti { background: linear-gradient(135deg, #e8384f, #a01f3a); }
.toast.good .ti { background: linear-gradient(135deg, #2fbf6d, #1f8a55); }
.toast .tt { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.4; }
.toast .tt b { display: block; font-size: 12px; color: var(--text-2); font-weight: 700; }
.toast .tt b small { font-weight: 600; color: var(--text-3); margin-left: 4px; }

/* ---------- boot, login, empty ---------- */
.boot { min-height: 70vh; display: grid; place-items: center; align-content: center; gap: 18px; text-align: center; }
.boot img { width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 16px 40px -12px rgba(255, 138, 61, .7); animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px); } }
.boot p { font: 700 11px/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); }
.empty { padding: 28px 16px; text-align: center; color: var(--text-3); font-size: 14px; }
.foot-note { display: flex; gap: 8px; align-items: center; justify-content: center; padding: 6px 0 0; font-size: 12px; color: var(--text-3); text-align: center; }
.sk { border-radius: 10px; background: linear-gradient(90deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .09), rgba(255, 255, 255, .04)); background-size: 200% 100%; animation: flow 1.4s linear infinite; }

/* small phones */
@media (max-width: 374px) {
	:root { --gut: 14px; }
	.hero-id h2 { font-size: 23px; }
	.portrait { width: 76px; height: 76px; }
	.tab { font-size: 9.5px; }
	.stats4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cur.wide .cur-t b { font-size: 20px; }
	.screen-h h1 { font-size: 23px; }
	.seg button { font-size: 13px; padding: 0 4px; }
}
@media (min-width: 560px) {
	.view, .top { max-width: 560px; margin-left: auto; margin-right: auto; }
	.tabs { max-width: 560px; margin: 0 auto; border-radius: 18px 18px 0 0; border: 1px solid var(--edge); border-bottom: 0; }
	.composer { max-width: 560px; margin: 0 auto; }
	.sheet { max-width: 560px; margin: 0 auto; }
}
/* screenshots and reduced motion: everything still */
.still *, .still *::before, .still *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; } }
