/* Модуль «Заведи кота» (js/cx-cats.js) */
.cxc { --cxc-bg: rgba(12, 15, 24, .94); --cxc-line: rgba(90, 130, 255, .28); --cxc-acc: #4f7dff; --cxc-tx: #d7deee; --cxc-mute: #8a93a8;
	color: var(--cxc-tx); font-size: 13px; }
.cxc-dock { position: fixed; z-index: 1015; width: 236px; overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(90, 130, 255, .45) transparent; background: var(--cxc-bg);
	border: 1px solid var(--cxc-line); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); backdrop-filter: blur(6px); }
.cxc-dock::before { content: ''; position: absolute; left: 0; top: 0; pointer-events: none; width: 14px; height: 14px; border-left: 2px solid var(--cxc-acc); border-top: 2px solid var(--cxc-acc); }
.cxc-dock::after { content: ''; position: absolute; right: 0; bottom: 0; pointer-events: none; width: 14px; height: 14px; border-right: 2px solid var(--cxc-acc); border-bottom: 2px solid var(--cxc-acc); }
/* прокрутка — только когда блок выше экрана; тонкая, без стрелок */
.cxc-dock::-webkit-scrollbar { width: 5px; height: 0; }
.cxc-dock::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
.cxc-dock::-webkit-scrollbar-track { background: transparent; }
.cxc-dock::-webkit-scrollbar-thumb { background: rgba(90, 130, 255, .45); border-radius: 3px; }
.cxc--pop { right: 80px; bottom: 96px; max-height: calc(100vh - 190px); width: 250px; }
.cxc-dock[hidden], .cxc-fab[hidden] { display: none !important; }
#cxCatProfile.cxc { padding: 0; }
.cxc-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 8px; border-bottom: 1px solid var(--cxc-line); }
.cxc-title { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
.cxc-title i { color: var(--cxc-acc); margin-right: 4px; }
.cxc-tools { display: flex; gap: 4px; }
.cxc-ic { width: 26px; height: 26px; padding: 0; border: 1px solid var(--cxc-line); background: rgba(255, 255, 255, .03); color: var(--cxc-mute); cursor: pointer; line-height: 24px; font-size: 12px; }
.cxc-ic:hover { color: #fff; border-color: var(--cxc-acc); }
.cxc-ic--s { width: 20px; height: 20px; line-height: 18px; font-size: 10px; vertical-align: 2px; }
.cxc-body { padding: 10px 12px 12px; }
.cxc-name { font-size: 17px; font-weight: 700; color: #fff; text-align: center; }
.cxc-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 4px 0 2px; }
.cxc-tags span { font-size: 10.5px; padding: 1px 6px; border: 1px solid var(--cxc-line); color: var(--cxc-mute); text-transform: lowercase; cursor: default; }
.cxc-tags span:first-child { color: #ffd479; border-color: rgba(255, 212, 121, .4); }
.cxc-owner { text-align: center; font-size: 11.5px; color: var(--cxc-mute); }
.cxc-stagebox { position: relative; width: 160px; height: 160px; margin: 6px auto 4px;
	background: radial-gradient(ellipse at 50% 88%, rgba(79, 125, 255, .18), transparent 62%); }
.cxc-cv { display: block; width: 160px; height: 160px; image-rendering: pixelated; image-rendering: crisp-edges; }
.cxc-cv--s { width: 120px; height: 120px; margin: 0 auto; }
.cxc-say { position: absolute; left: 50%; top: -2px; transform: translate(-50%, -6px); max-width: 190px; padding: 4px 8px; background: #f3f6ff; color: #1b2133;
	font-size: 12px; font-weight: 600; white-space: nowrap; border-radius: 2px; opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; z-index: 2; }
.cxc-say::after { content: ''; position: absolute; left: 50%; bottom: -5px; border: 5px solid transparent; border-top-color: #f3f6ff; border-bottom: 0; margin-left: -5px; }
.cxc-say.is-on { opacity: 1; transform: translate(-50%, 0); }
.cxc-age { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--cxc-mute); margin-bottom: 6px; }
.cxc-grow { flex: 1; height: 5px; background: rgba(255, 255, 255, .08); }
.cxc-grow b { display: block; height: 100%; background: linear-gradient(90deg, #4f7dff, #9a7dff); }
.cxc-bars { display: grid; gap: 5px; }
.cxc-bar { display: grid; grid-template-columns: 16px 1fr 24px; align-items: center; gap: 6px; }
.cxc-bar i { font-size: 11px; text-align: center; }
.cxc-bar span { height: 8px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
	background-image: repeating-linear-gradient(90deg, transparent 0 7px, rgba(0, 0, 0, .35) 7px 8px); }
.cxc-bar b { display: block; height: 100%; transition: width .5s; background-image: repeating-linear-gradient(90deg, transparent 0 7px, rgba(0, 0, 0, .35) 7px 8px) !important; }
.cxc-bar em { font-style: normal; font-size: 11px; color: var(--cxc-mute); text-align: right; }
.cxc-bar.is-low em { color: #ff6b7d; font-weight: 700; }
.cxc-bar.is-low span { animation: cxc-blink 1.2s steps(2) infinite; }
@keyframes cxc-blink { 50% { box-shadow: inset 0 0 0 1px rgba(255, 107, 125, .7); } }
.cxc-acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(33px, 1fr)); gap: 3px; margin-top: 10px; }
.cxc-act { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px 4px; border: 1px solid var(--cxc-line);
	background: rgba(79, 125, 255, .08); color: #cfe0ff; cursor: pointer; font-size: 14px; transition: background .15s, border-color .15s; }
.cxc-act small { font-size: 9.5px; color: var(--cxc-mute); white-space: nowrap; }
.cxc-act:hover:not(:disabled) { background: rgba(79, 125, 255, .22); border-color: var(--cxc-acc); }
.cxc-act:disabled { opacity: .45; cursor: default; }
.cxc-note, .cxc-helpers, .cxc-stats { margin-top: 8px; font-size: 11px; color: var(--cxc-mute); text-align: center; }
.cxc-stats { border-top: 1px solid var(--cxc-line); padding-top: 7px; }
.cxc-stats b, .cxc-helpers a, .cxc-owner a { color: #cfe0ff; }
.cxc-pitch { font-size: 12px; color: var(--cxc-mute); text-align: center; margin: 2px 0 8px; }
.cxc-rip { text-align: center; font-size: 12.5px; margin: 4px 0 8px; }
.cxc-rip small { color: var(--cxc-mute); }
.cxc-empty { text-align: center; color: var(--cxc-mute); padding: 10px 0; }
.cxc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--cxc-line); background: rgba(255, 255, 255, .04);
	color: var(--cxc-tx); cursor: pointer; font-weight: 700; letter-spacing: .04em; }
.cxc-body > .cxc-btn { width: 100%; }
.cxc-btn--main { background: linear-gradient(90deg, #3d6bff, #5b8cff); border-color: #6d95ff; color: #fff; text-transform: uppercase; font-size: 12px; }
.cxc-btn--main:disabled { opacity: .5; cursor: default; }
.cxc-msg { margin-top: 6px; font-size: 11.5px; color: #ff8a98; text-align: center; min-height: 0; opacity: 0; transition: opacity .2s; }
.cxc-msg.is-on { opacity: 1; }
.cxc-graves { margin-top: 10px; border-top: 1px solid var(--cxc-line); padding-top: 8px; }
.cxc-graves__t { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--cxc-mute); margin-bottom: 4px; }
.cxc-grave { display: flex; justify-content: space-between; gap: 6px; font-size: 12px; padding: 3px 0; border-bottom: 1px dashed rgba(255, 255, 255, .06); }
.cxc-grave span { color: var(--cxc-mute); font-size: 11px; text-align: right; }

/* кнопка-мордочка на узком экране */
.cxc-fab { position: fixed; right: 16px; bottom: 96px; z-index: 1016; width: 52px; height: 52px; padding: 5px; border: 1px solid rgba(90, 130, 255, .5);
	background: rgba(12, 15, 24, .92); cursor: pointer; box-shadow: 0 6px 18px rgba(0, 0, 0, .45); }
.cxc-fab canvas { width: 40px; height: 40px; image-rendering: pixelated; display: block; }
.cxc-fab__dot { position: absolute; right: 3px; top: 3px; width: 9px; height: 9px; background: #ff4d63; border-radius: 50%; animation: cxc-pulse 1.4s infinite; }
@keyframes cxc-pulse { 50% { transform: scale(1.4); opacity: .6; } }

/* окна */
.cxc-modal { position: fixed; inset: 0; z-index: 10050; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(4, 6, 12, .72); backdrop-filter: blur(3px); }
.cxc-modal__box { width: 420px; max-width: 100%; max-height: 92vh; overflow-y: auto; background: #0f1320; border: 1px solid rgba(90, 130, 255, .35); color: #d7deee; font-size: 13px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.cxc-modal__head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid rgba(90, 130, 255, .25); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.cxc-modal__head i { color: #4f7dff; }
.cxc-modal__head .cxc-ic { margin-left: auto; }
.cxc-modal__art { display: flex; justify-content: center; padding-top: 8px; }
.cxc-warn { margin: 8px 14px; padding: 10px 12px; border-left: 3px solid #ffb74d; background: rgba(255, 183, 77, .07); line-height: 1.45; }
.cxc-warn ul { margin: 6px 0 0; padding-left: 18px; }
.cxc-field { display: block; margin: 10px 14px 6px; font-weight: 600; }
.cxc-field small { color: #8a93a8; font-weight: 400; }
.cxc-input { display: block; width: 100%; margin-top: 5px; padding: 8px 10px; background: #0a0d17; border: 1px solid rgba(90, 130, 255, .35); color: #fff; font-size: 14px; }
.cxc-input:focus { outline: none; border-color: #4f7dff; }
.cxc-check { display: flex; gap: 8px; align-items: center; margin: 8px 14px; font-weight: 400; cursor: pointer; }
.cxc-modal__err { margin: 0 14px; color: #ff8a98; font-size: 12px; min-height: 16px; }
.cxc-modal__foot { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 14px 14px; }
.cxc-tabs { display: flex; gap: 4px; padding: 10px 14px 4px; }
.cxc-tabs button { flex: 1; padding: 6px 4px; border: 1px solid rgba(90, 130, 255, .25); background: transparent; color: #8a93a8; cursor: pointer; font-size: 12px; }
.cxc-tabs button.is-on { background: rgba(79, 125, 255, .18); color: #fff; border-color: #4f7dff; }
.cxc-list { padding: 6px 14px; min-height: 120px; }
.cxc-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.cxc-row em { width: 18px; font-style: normal; color: #8a93a8; text-align: right; }
.cxc-tw canvas { width: 40px; height: 40px; image-rendering: pixelated; display: block; }
.cxc-row__n { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.cxc-row__n small, .cxc-row__v small { color: #8a93a8; font-size: 11px; display: block; }
.cxc-row__n a { color: #cfe0ff; }
.cxc-row__v { text-align: right; font-weight: 700; color: #ffd479; font-size: 12px; }
.cxc-sumst { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 8px 14px 14px; }
.cxc-sumst div { text-align: center; padding: 6px 2px; border: 1px solid rgba(90, 130, 255, .2); }
.cxc-sumst b { display: block; font-size: 15px; color: #fff; }
.cxc-sumst span { font-size: 10.5px; color: #8a93a8; }

/* прогулка: кот ходит по блокам сайта */
.cxc-walkrow { text-align: center; margin: -2px 0 6px; }
.cxc-walkbtn { padding: 3px 10px; border: 1px dashed rgba(90, 130, 255, .45); background: transparent; color: #cfe0ff; font-size: 11.5px; cursor: pointer; }
.cxc-walkbtn:hover { border-style: solid; background: rgba(79, 125, 255, .14); }
.cxc-away { position: absolute; left: 0; right: 0; top: 6px; text-align: center; font-size: 11.5px; color: #8a93a8; }
.cxc-walker { position: absolute; left: 0; top: 0; z-index: 1014; cursor: grab; touch-action: none; user-select: none; will-change: transform;
	filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .35)); }
.cxc-walker canvas { display: block; image-rendering: pixelated; image-rendering: crisp-edges; pointer-events: none; }
.cxc-walker.is-drag { cursor: grabbing; filter: drop-shadow(0 10px 6px rgba(0, 0, 0, .4)); }
.cxc-walker[hidden], .cxc-wzz[hidden] { display: none; }
.cxc-wsay { position: absolute; left: 0; top: 0; z-index: 1016; padding: 3px 8px; background: #f3f6ff; color: #1b2133; font-size: 12px; font-weight: 600;
	white-space: nowrap; border-radius: 2px; pointer-events: none; opacity: 0; transition: opacity .25s; }
.cxc-wsay::after { content: ''; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; border: 5px solid transparent; border-top-color: #f3f6ff; border-bottom: 0; }
.cxc-wsay.is-on { opacity: 1; }
.cxc-wzz { position: absolute; left: 0; top: 0; z-index: 1014; pointer-events: none; font: 700 12px/1 monospace; color: #cfe3ff; }
.cxc-wzz i { position: absolute; font-style: normal; opacity: 0; animation: cxc-zz 2.4s linear infinite; }
.cxc-wzz i:nth-child(2) { animation-delay: .8s; font-size: 14px; }
.cxc-wzz i:nth-child(3) { animation-delay: 1.6s; font-size: 16px; }
@keyframes cxc-zz { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: .9; } 100% { transform: translate(14px, -26px); opacity: 0; } }
.cxc-wfx { position: absolute; left: 0; top: 0; z-index: 1016; width: 15px; height: 15px; image-rendering: pixelated; pointer-events: none; }

/* допуск администратора */
.cxc-gate { margin: 4px 0 8px; padding: 8px 10px; border-left: 3px solid #ff8a65; background: rgba(255, 138, 101, .08); font-size: 12px; line-height: 1.4; }
.cxc-gate i { color: #ff8a65; }
.cxc-body > .cxc-btn[data-x="ask"] { width: 100%; }
textarea.cxc-input { resize: vertical; font-family: inherit; font-size: 13px; }

/* лоток */
.cxc-tray { margin-top: 6px; font-size: 11px; color: var(--cxc-mute); }
.cxc-tray i { color: #7fb4e6; margin-right: 3px; }
.cxc-tray.is-full { color: #ffd479; }
.cxc-tray.is-bad { color: #ff8a98; font-weight: 700; }
