/* 🎨 Единый стиль приложения v2 (20.10.2026). Префикс u2-. Зелёного нет.
 *
 * Владелец: «все меню в едином стиле, современно и чтобы заинтересовывало; везде иконки в одном стиле, где надо — картинки через fal».
 * Правила, по которым делается каждый экран:
 *   • шапка экрана — баннер с артом (fal, banner_style): картинка справа, тёмный край слева, заголовок и одна строка пояснения;
 *   • строки и карточки — один вид: тёмная стеклянная поверхность, скруглённая рамка, плитка-иконка слева (картинка fal в icon_style, не значок из набора),
 *     цена/кнопка справа золотой «таблеткой»;
 *   • никакого зелёного в интерфейсе (состояния «готово» — золотым), эмодзи в текстах заменяются нашими значками;
 *   • одинаковые отступы, радиусы (20–24), тени и подписи-кикеры.
 */

:root { --ok: #ffd57a; --u2-line: rgba(255, 143, 208, .26); --u2-panel: linear-gradient(135deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); }

/* ------------------------------------------------------------------ шапка экрана-баннер */
/* 26.10.2026 (владелица: «в зачаровании картинки всё так же с фоном»): картинки-предметы вырезаны без фона, но лежали на тёмных плитках с рамкой —
   это и выглядело как фон. Плитки под вырезанными картинками убраны; предмет «парит» с мягкой тенью. Книга крафтов (.cb-cell) — это кнопки-ячейки, их не трогаем. */
section.screen .row .row-emoji:has(> img.u2-pic), .row-emoji:has(> img.u2-pic) { background: none; border: 0; box-shadow: none; overflow: visible; }
.row-emoji > img.u2-pic, .cf-n-ico > img, .cf-offer-ico > img, .u2-drop > img, .achv-icon.pic > img { object-fit: contain; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .5)); }
.cf-n-ico:has(> img), .cf-offer-ico:has(> img), .u2-drop:has(> img), .achv-icon.pic:has(> img) { background: none; border: 0; box-shadow: none; }
.cf-n-ico:has(> img) { padding: 0; }

.screen-title.u2-hero { position: relative; display: flex; align-items: center; gap: 12px; min-height: 112px; margin: 0 0 14px; padding: 0 16px; overflow: hidden;
  border-radius: 24px; border: 1px solid var(--u2-line); background: #130a18; box-shadow: 0 10px 28px rgba(255, 126, 182, .14); font-size: 24px; }
.screen-title.u2-hero::before { content: ''; position: absolute; inset: 0; background: var(--art) right center / cover no-repeat; }
.screen-title.u2-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 8, 20, .95) 6%, rgba(14, 8, 20, .62) 46%, rgba(14, 8, 20, .04) 84%); }
.screen-title.u2-hero > * { position: relative; z-index: 1; }
.screen-title.u2-hero > .ui-svg, .screen-title.u2-hero > .tool-svg, .screen-title.u2-hero > i { display: none; }
.screen-title.u2-hero > .hub-back { display: grid; flex: none; width: 38px; height: 38px; border-radius: 50%; background: rgba(0, 0, 0, .45); border: 1px solid var(--u2-line); }
.pf-scrhead.u2-hero { position: relative; display: flex; align-items: center; gap: 12px; min-height: 112px; margin: 0 0 14px; padding: 0 16px; overflow: hidden;
  border-radius: 24px; border: 1px solid var(--u2-line); background: #130a18; box-shadow: 0 10px 28px rgba(255, 126, 182, .14); }
.pf-scrhead.u2-hero::before { content: ''; position: absolute; inset: 0; background: var(--art) right center / cover no-repeat; }
.pf-scrhead.u2-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 8, 20, .95) 6%, rgba(14, 8, 20, .62) 46%, rgba(14, 8, 20, .04) 84%); }
.pf-scrhead.u2-hero > * { position: relative; z-index: 1; }
.u2-hero-pf { padding-top: 0; padding-bottom: 0; }
.u2-hero-pf .pf-back { position: relative; z-index: 1; flex: none; width: 38px; height: 38px; border-radius: 50%; background: rgba(0, 0, 0, .45); border: 1px solid var(--u2-line); color: var(--ink); font-size: 22px; display: grid; place-items: center; padding: 0; }
.u2-hero-pf .pf-title { font: 700 24px/1.05 var(--serif); text-shadow: 0 2px 12px rgba(0, 0, 0, .6); margin: 0; padding: 0; }
.u2-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; max-width: 62%; }
.u2-txt b { font: 700 24px/1.05 var(--serif); text-shadow: 0 2px 12px rgba(0, 0, 0, .6); letter-spacing: 0; }
.u2-txt small { font: 500 12px/1.35 var(--sans, inherit); color: rgba(255, 238, 248, .78); letter-spacing: 0; text-transform: none; }

/* ------------------------------------------------------------------ строки и карточки */
section.screen .row { padding: 12px; border-radius: 20px; gap: 12px; border: 1px solid rgba(255, 255, 255, .09); background: var(--u2-panel); }
section.screen .row .row-emoji { width: 56px; height: 56px; border-radius: 17px; overflow: hidden; padding: 0; background: #1d1128; border: 1px solid rgba(255, 143, 208, .28); }
section.screen .row .row-emoji img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
section.screen .row .row-title { font-size: 14.5px; }
.u2-card { border-radius: 22px; border: 1px solid var(--u2-line); background: var(--u2-panel); padding: 14px; }
.u2-kicker { font-size: 10.5px; letter-spacing: .15em; text-transform: uppercase; font-weight: 700; color: var(--pink); }
.u2-pic { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.u2-tile { width: 56px; height: 56px; flex: none; border-radius: 17px; overflow: hidden; background: #1d1128; border: 1px solid rgba(255, 143, 208, .28); }

/* карточка локации */
.u2-loc { position: relative; min-height: 148px; border-radius: 24px; overflow: hidden; border: 1px solid var(--u2-line); background: #130a18 var(--art) center / cover no-repeat;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 14px; box-shadow: 0 10px 26px rgba(255, 126, 182, .12); }
.u2-loc::before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14, 8, 20, .96) 4%, rgba(14, 8, 20, .62) 50%, rgba(14, 8, 20, .1) 100%); }
.u2-loc > * { position: relative; z-index: 1; }
.u2-loc.locked { filter: saturate(.55) brightness(.8); }
.u2-loc.current { border-color: rgba(255, 198, 92, .65); box-shadow: 0 0 24px rgba(255, 198, 92, .22); }
.u2-loc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.u2-loc-name { font: 700 22px/1.05 var(--serif); text-shadow: 0 2px 12px rgba(0, 0, 0, .7); }
.u2-loc-desc { font-size: 12px; line-height: 1.35; color: rgba(255, 238, 248, .8); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.u2-loc-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.u2-drop { width: 30px; height: 30px; border-radius: 10px; overflow: hidden; background: #1d1128; border: 1px solid rgba(255, 143, 208, .35); display: grid; place-items: center; }
.u2-drop img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); }
.u2-drop .item-svg { width: 20px; height: 20px; }
.u2-chip { padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; background: rgba(0, 0, 0, .42); border: 1px solid rgba(255, 255, 255, .16); color: var(--ink-dim); }
.u2-loc-btn { flex: none; padding: 11px 18px; border-radius: 14px; border: 0; cursor: pointer; font: 800 13px/1 var(--sans, inherit); color: #fff; background: linear-gradient(135deg, #ff5fb4, #a24bd9); box-shadow: 0 6px 18px rgba(255, 95, 180, .35); display: inline-flex; align-items: center; gap: 6px; }
.u2-loc-btn.gold { color: #2a1200; background: linear-gradient(135deg, #fff1c4, #ffb23c); box-shadow: 0 6px 18px rgba(255, 170, 60, .35); }
.u2-loc-btn[disabled] { filter: grayscale(.6) brightness(.8); opacity: .65; cursor: default; }
.u2-loc-state, .u2-loc-lock { flex: none; padding: 9px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 5px;
  color: #ffe7a8; background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 198, 92, .5); }
.u2-loc-lock { color: var(--ink-dim); border-color: rgba(255, 255, 255, .2); }
.u2-loc-lock .ui-svg { width: 14px; height: 14px; }

/* достижения */
.achv-icon.pic { width: 56px; height: 56px; border-radius: 17px; overflow: hidden; padding: 0; background: #1d1128; border: 1px solid rgba(255, 143, 208, .28); flex: none; }
.achv-icon.pic img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.12); }

/* золотые «таблетки» цены и статуса — одним видом везде */
section.screen .pill { padding: 7px 12px; font-size: 12.5px; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; color: #ffe7a8;
  background: linear-gradient(135deg, rgba(255, 198, 92, .2), rgba(255, 143, 80, .12)); border: 1px solid rgba(255, 198, 92, .42); }

/* ------------------------------------------------------------------ состояния без зелёного */
.pf-online { color: #ffd57a; }
.pf-live { background: #ffd57a; box-shadow: 0 0 7px #ffd57a; }
.pf-btn.done { background: rgba(255, 198, 92, .14); border: 1px solid rgba(255, 198, 92, .5); color: #ffd57a; }
.toast.ok { border-color: rgba(255, 198, 92, .5); color: #ffe7a8; }
.life-card.keep { border-color: rgba(255, 198, 92, .45); background: linear-gradient(180deg, rgba(255, 198, 92, .1), rgba(255, 255, 255, .04)); }
.life-seg button.on[data-v="keep"] { background: rgba(255, 198, 92, .22); border-color: rgba(255, 198, 92, .7); }
.boss-stat.good .boss-stat-value { color: #ffd57a; }
.battle-bar.player .battle-bar-fill { background: linear-gradient(90deg, #ff7eb6, #ffd57a); }
.world-req.done, .book-step.done { color: #ffd57a; background: rgba(255, 198, 92, .1); }
.book-quest.done { border-color: rgba(255, 198, 92, .35); }

/* 21.10.2026 — шапка чужого профиля: без картинки, небольшое окошко «Назад к …» */
#screen-player .pf-scrhead.u2-hero { min-height: 0; padding: 8px 12px; gap: 10px; border-radius: 18px; background: rgba(255, 255, 255, .05); box-shadow: none; margin-bottom: 10px; }
#screen-player .pf-scrhead.u2-hero::before, #screen-player .pf-scrhead.u2-hero::after { display: none; }
#screen-player .u2-hero-pf .pf-back { width: 32px; height: 32px; font-size: 20px; }
#screen-player .u2-hero-pf .pf-title { font-size: 17px; text-shadow: none; }
#screen-player .u2-txt { max-width: none; }
#screen-player .u2-txt small { display: none; }
#screen-friends .pf-scrhead.u2-hero { min-height: 0; padding: 8px 12px; gap: 10px; border-radius: 18px; background: rgba(255, 255, 255, .05); box-shadow: none; margin-bottom: 10px; }
#screen-friends .pf-scrhead.u2-hero::before, #screen-friends .pf-scrhead.u2-hero::after { display: none; }
#screen-friends .u2-hero-pf .pf-back { width: 32px; height: 32px; font-size: 20px; }
#screen-friends .u2-hero-pf .pf-title { font-size: 17px; text-shadow: none; }
#screen-friends .u2-txt { max-width: none; }
#screen-friends .u2-txt small { display: none; }

/* ключ локации: драгоценности и ветви одним блоком под карточкой, кнопка рядом с названием (23.10.2026) */
.u2-loc.has-needs { flex-wrap: wrap; align-items: flex-end; }
.u2-loc.has-needs::before { background: linear-gradient(0deg, rgba(14, 8, 20, .97) 20%, rgba(14, 8, 20, .7) 70%, rgba(14, 8, 20, .35) 100%); }
.u2-loc-needs { flex: 1 0 100%; order: 5; display: grid; gap: 6px; }

/* 31.10.2026: клинок в списке «Мои катаны и кунаи» — широкая плитка с настоящим клинком вместо квадрата со значком (владелец: «кунаи в инвентаре некрасиво») */
section.screen .row .row-emoji.row-blade { width: 92px; height: 54px; border-radius: 15px; background: radial-gradient(ellipse at 50% 55%, rgba(255, 143, 208, .16), #1d1128 70%); flex: none; display: flex; align-items: center; justify-content: center; }
section.screen .row .row-emoji.row-blade canvas { display: block; }
section.screen .row:has(.row-blade) .row-title { white-space: normal; overflow-wrap: anywhere; }
