/* «Туман» — оформление миниаппа (утверждено 29.09.2026, макеты на холсте claude.ai).
   Фон — размытая локация, подкрашенная по погоде и времени суток; стекло; мягкое золото;
   Sofia Sans Extra Condensed курсивом для заголовков и цифр, Sofia Sans для текста.
   Подключается последним и переопределяет app.css / screens.css. */

:root {
  --bg: #0B1719;
  --bg-2: #0E1D20;
  --ink: #F6F3EC;
  --ink-2: rgba(246, 243, 236, .8);
  --muted: rgba(246, 243, 236, .58);
  --glass: rgba(255, 255, 255, .08);
  --glass-2: rgba(10, 20, 22, .55);
  --glass-3: rgba(10, 20, 22, .82);
  --stroke: rgba(255, 255, 255, .12);
  --stroke-2: rgba(255, 255, 255, .2);
  --accent: #F3D28B;
  --accent-ink: #1F1A0E;
  --aqua: #A9E4D0;
  --blue: #9CCBE8;
  --gold: #F3D28B;
  --gold-2: #E8B55C;
  --green: #9FE3B6;
  --red: #F29A8E;
  --violet: #C9B6FF;
  --t-common: #D5DCD9;
  --t-good: #A9E4D0;
  --t-rare: #C9B6FF;
  --t-legendary: #F3D28B;
  --t-loot: #F5C08A;
  --f-display: "Sofia Sans Extra Condensed", "Arial Narrow", "Segoe UI", system-ui, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Emoji Fill", sans-serif;
  --f-text: "Sofia Sans", "Segoe UI", system-ui, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Emoji Fill", sans-serif;
  --atmo-img: none;
  --atmo-tint: rgba(12, 44, 48, .5);
}

html, body { background: var(--bg); font-size: 15px; }
.num { font-family: var(--f-display); font-style: italic; font-weight: 800; letter-spacing: 0; font-feature-settings: "tnum" 1; }
.tm-x { font-family: var(--f-display); font-style: italic; font-weight: 900; font-variant-numeric: tabular-nums; }

/* заголовки — узкий курсив */
.hub-title, .page-title, .section-title, .sub-title, .sheet-head h3, .confirm h3, .cel-title, .soon h3,
.player-name, .loc-name, .place .n, .catch-card h2, .levelup h2, .empty-state b, .boot-title {
  font-family: var(--f-display); font-style: italic; font-weight: 900; letter-spacing: 0;
}

/* ── загрузка ───────────────────────────────────────────── */
#boot { background: radial-gradient(120% 70% at 80% 0%, rgba(255, 196, 128, .22), rgba(255, 196, 128, 0) 60%),
  linear-gradient(180deg, #123A3E 0%, #0B1F22 55%, #081315 100%); }
.boot-title { font-size: 64px; line-height: .9; background: none; color: var(--ink); -webkit-text-fill-color: currentColor; }
.boot-sub { color: var(--muted); font-size: 14px; margin-top: -10px; }
.boot-bar { background: rgba(255, 255, 255, .12); height: 6px; }
.boot-bar i { background: var(--accent); box-shadow: 0 0 14px rgba(243, 210, 139, .6); }
.boot-water { background: radial-gradient(circle at 50% 30%, #3C8C88, #174B4E 60%, #0B2427); box-shadow: 0 0 60px rgba(243, 210, 139, .18), inset 0 -10px 30px rgba(0, 0, 0, .4); }

/* ── атмосфера: фон по погоде и времени суток ──────────────── */
.app-bg { background: var(--bg); }
.app-bg-img, .app-rays { display: none; }
.atmo { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.atmo > * { position: absolute; pointer-events: none; }
.w-bg { inset: -8%; background-size: cover; background-position: center 60%; animation: wDrift 26s ease-in-out infinite alternate; will-change: transform; }
@keyframes wDrift { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.1) translate(-2%, 1.5%); } }
.w-grade { inset: 0; mix-blend-mode: color; }
.w-shade { inset: 0; }
.w-vignette { inset: 0; background: radial-gradient(120% 90% at 50% 38%, rgba(4, 10, 12, 0) 55%, rgba(4, 10, 12, .5) 100%); }
.w-warm { inset: 0; background: radial-gradient(75% 38% at 88% 0%, rgba(255, 196, 128, .5), rgba(255, 196, 128, 0) 70%); mix-blend-mode: screen; }
.fx-sun { width: 360px; height: 360px; right: -120px; top: -130px; border-radius: 50%; mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(255, 228, 176, .8) 0%, rgba(255, 212, 150, .35) 32%, rgba(255, 200, 140, 0) 66%); animation: fxSun 6s ease-in-out infinite alternate; }
@keyframes fxSun { from { transform: scale(.94); opacity: .85; } to { transform: scale(1.06); opacity: 1; } }
.fx-rays { width: 1400px; height: 1400px; left: calc(88% - 700px); top: -750px; border-radius: 50%; mix-blend-mode: screen;
  background: repeating-conic-gradient(from 0deg, rgba(255, 232, 184, .2) 0deg 4deg, rgba(255, 232, 184, 0) 4deg 13deg);
  -webkit-mask-image: radial-gradient(circle, #000 0, #000 10%, transparent 50%); mask-image: radial-gradient(circle, #000 0, #000 10%, transparent 50%);
  animation: fxSpin 80s linear infinite; }
@keyframes fxSpin { to { transform: rotate(360deg); } }
.fx-cloud { left: 0; width: 420px; height: 160px; border-radius: 50%; background: rgba(20, 30, 36, .5); filter: blur(28px);
  animation: fxCloud 44s linear infinite; will-change: transform; }
@keyframes fxCloud { from { transform: translateX(-70%); } to { transform: translateX(110vw); } }
.fx-rain { inset: 0; background-image: linear-gradient(102deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0) 47%, rgba(226, 238, 240, .22) 48%, rgba(255, 255, 255, 0) 49%);
  background-size: 17px 110px; animation: fxRain .75s linear infinite;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 78%); mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 78%); }
.fx-rain.far { background-size: 11px 70px; opacity: .55; animation-duration: 1.05s; -webkit-mask-image: none; mask-image: none; }
@keyframes fxRain { from { background-position: 0 0; } to { background-position: -24px 110px; } }
.fx-storm { inset: 0; background-image: linear-gradient(110deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0) 46%, rgba(220, 232, 244, .28) 47.5%, rgba(255, 255, 255, 0) 49%);
  background-size: 12px 96px; animation: fxStorm .42s linear infinite;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 88%); mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 88%); }
@keyframes fxStorm { from { background-position: 0 0; } to { background-position: -36px 96px; } }
.fx-flash { inset: 0; background: rgba(214, 228, 255, .95); opacity: 0; mix-blend-mode: screen; animation: fxFlash 5.5s linear infinite; }
.fx-bolt { right: 30px; top: 0; width: 150px; height: 280px; opacity: 0; animation: fxFlash 5.5s linear infinite; filter: drop-shadow(0 0 8px rgba(200, 220, 255, .9)); }
@keyframes fxFlash { 0%, 70%, 72.6%, 75.4%, 100% { opacity: 0; } 71% { opacity: .8; } 74% { opacity: .5; } }
.fx-haze { inset: 0; background: rgba(226, 234, 232, .1); }
.fx-fog { width: 640px; height: 200px; border-radius: 50%; background: rgba(228, 238, 236, .24); filter: blur(30px);
  animation: fxFog 22s ease-in-out infinite alternate; will-change: transform; }
@keyframes fxFog { from { transform: translateX(-24%); } to { transform: translateX(18%); } }
.fx-rainbow { width: 900px; height: 900px; left: calc(50% - 450px); top: 120px; border-radius: 50%; mix-blend-mode: screen; filter: blur(4px);
  background: radial-gradient(circle closest-side, rgba(0, 0, 0, 0) 80%, rgba(255, 96, 96, .42) 81.5%, rgba(255, 176, 70, .42) 83%, rgba(255, 238, 96, .4) 84.5%, rgba(110, 222, 130, .38) 86%, rgba(90, 170, 255, .38) 87.5%, rgba(160, 110, 255, .34) 89%, rgba(0, 0, 0, 0) 90.5%);
  animation: fxBow 5s ease-in-out infinite alternate; }
@keyframes fxBow { from { opacity: .7; } to { opacity: 1; } }
.fx-spark { width: 14px; height: 14px; background: #FFF6DC; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  animation: fxTw 2.6s ease-in-out infinite; filter: drop-shadow(0 0 4px rgba(255, 240, 200, .9)); }
.fx-star { width: 2px; height: 2px; border-radius: 50%; background: #FFFFFF; animation: fxTw 3.2s ease-in-out infinite; }
@keyframes fxTw { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .15; transform: scale(.4); } }
.fx-moon { width: 240px; height: 240px; right: 10px; top: 20px; border-radius: 50%; mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(236, 242, 255, .6) 0%, rgba(206, 220, 255, .2) 34%, rgba(206, 220, 255, 0) 66%); }
@media (prefers-reduced-motion: reduce) { .atmo *, .atmo { animation: none !important; } }

/* страницы поверх вкладок — та же атмосфера, без частиц */
.page { background: var(--bg); box-shadow: -24px 0 60px rgba(0, 0, 0, .55); }
.page::before { content: ""; position: absolute; inset: -8%; background: var(--atmo-img) center 60% / cover no-repeat; z-index: 0; }
.page::after { content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, var(--atmo-tint) 0%, rgba(8, 18, 20, .62) 40%, rgba(6, 12, 16, .92) 100%); }
.page > .page-hero { z-index: 1; }
.page > .page-scroll { z-index: 2; }
.page > .page-head { z-index: 4; }
.page-hero::after { background: none; }
.page-hero { -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 100%); mask-image: linear-gradient(180deg, #000 45%, transparent 100%); }
.page-head { background: linear-gradient(180deg, rgba(6, 14, 16, .86) 0%, rgba(6, 14, 16, .55) 62%, rgba(6, 14, 16, 0)); padding-bottom: 18px; }
/* текст, уехавший под шапку, размывается — не спорит с заголовком */
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
.page-title { font-size: 27px; line-height: 1; text-shadow: 0 4px 20px rgba(0, 0, 0, .5); }

/* ── стекло и кнопки ─────────────────────────────────────── */
.glass { background: var(--glass); border: 1px solid var(--stroke);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); box-shadow: 0 12px 30px rgba(3, 10, 12, .22); }
.btn { height: 54px; padding: 0 20px; border-radius: 18px; font-family: var(--f-display); font-style: italic; font-weight: 900; font-size: 21px;
  letter-spacing: .005em; gap: 8px; }
.btn::after { display: none; }
.btn .icon, .btn svg { width: 20px; height: 20px; }
.btn-primary, .btn-gold { color: var(--accent-ink); background: var(--accent); box-shadow: 0 12px 28px rgba(3, 10, 12, .3); }
.btn-success { color: #0E2320; background: var(--aqua); box-shadow: 0 12px 28px rgba(3, 10, 12, .3); }
.btn-ghost { color: var(--ink); background: rgba(255, 255, 255, .08); border: 1px solid var(--stroke-2);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.btn-danger { color: #2A0F0B; background: var(--red); }
.btn-gold.metal, .btn-metal { color: #2A1D05; background: linear-gradient(100deg, #C8922F 0%, #FFE39A 35%, #E2AE4C 60%, #FFF0C4 80%, #C8922F 100%);
  background-size: 220% 100%; animation: tmMetal 3.2s linear infinite; box-shadow: 0 0 30px rgba(255, 200, 90, .35), 0 12px 28px rgba(0, 0, 0, .45); }
@keyframes tmMetal { from { background-position: 0% 0; } to { background-position: -220% 0; } }
.btn-sm { height: 40px; padding: 0 14px; border-radius: 14px; font-size: 17px; }
.btn .shine { background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%); }
.btn .price-tag { font-family: var(--f-display); font-style: italic; font-weight: 900; font-size: inherit; }
.btn.busy::before { border-width: 2.5px; }

.pill { height: 38px; padding: 0 13px 0 9px; font-family: var(--f-display); font-style: italic; font-weight: 800; font-size: 20px; }
.pill .num { font-size: 20px; }
.coin { width: 18px; height: 18px; background: none; border: 2.2px solid var(--accent); box-shadow: none; }
.coin::after { inset: 3px; border: 2px solid var(--accent); }
.coin.sm { width: 14px; height: 14px; border-width: 1.8px; }
.coin.sm::after { inset: 2.2px; border-width: 1.6px; }
.icon { color: inherit; }

/* ── нижнее меню: парящее стекло ────────────────────────── */
.tabbar { left: 12px !important; right: 12px !important; height: 66px !important; padding: 0 !important; border-radius: 24px;
  background: rgba(10, 20, 22, .5); border: 1px solid var(--stroke); box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
  -webkit-backdrop-filter: blur(20px) saturate(1.3); backdrop-filter: blur(20px) saturate(1.3); }
.tabbar .indicator { display: none; }
.tab { font-family: var(--f-display); font-style: italic; font-weight: 800; font-size: 15px !important; color: rgba(246, 243, 236, .66); gap: 2px; }
.tab .icon { width: 23px; height: 23px; }
.tab.active { color: var(--accent); font-weight: 900; }
.tab.active .icon { color: var(--accent); transform: translateY(-1px); filter: drop-shadow(0 0 8px rgba(243, 210, 139, .45)); }
.tab .badge { background: var(--accent); color: var(--accent-ink); font-family: var(--f-display); font-style: italic; font-weight: 900; font-size: 13px;
  top: 5px; min-width: 18px; height: 18px; }

/* ── карточки, списки, чипы ─────────────────────────────── */
.card { border-radius: 22px; background: rgba(255, 255, 255, .07); border: 1px solid var(--stroke);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); box-shadow: 0 12px 30px rgba(3, 10, 12, .2); }
.card h4 { font-family: var(--f-display); font-style: italic; font-weight: 900; font-size: 22px; color: var(--ink); letter-spacing: 0; margin-bottom: 10px; }
.lead { color: var(--ink-2); font-size: 14.5px; }
.row { border-radius: 20px; background: rgba(255, 255, 255, .07); border: 1px solid var(--stroke);
  -webkit-backdrop-filter: blur(16px) saturate(1.25); backdrop-filter: blur(16px) saturate(1.25); }
.row.hl { border-color: rgba(243, 210, 139, .7); background: rgba(255, 255, 255, .13); }
.row.gold-hl { border-color: rgba(243, 210, 139, .7); background: rgba(243, 210, 139, .1); }
.row .t { font-weight: 700; font-size: 15.5px; }
.row .s { color: var(--ink-2); }
.row .v { font-family: var(--f-display); font-style: italic; font-weight: 900; font-size: 21px; }
.row .thumb { border-radius: 15px; background-color: rgba(255, 255, 255, .08); }
.row .thumb.emo { color: var(--ink); }
.row .thumb.emo svg { width: 26px; height: 26px; }
.chip { height: 28px; border-radius: 14px; background: rgba(255, 255, 255, .08); border: 1px solid var(--stroke); font-weight: 700; font-size: 12.5px;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.chip.aqua { color: var(--aqua); border-color: rgba(169, 228, 208, .4); }
.chip.gold { color: var(--accent); border-color: rgba(243, 210, 139, .5); }
.chip.red { color: var(--red); border-color: rgba(242, 154, 142, .45); }
.seg { background: rgba(255, 255, 255, .07); border: 1px solid var(--stroke); border-radius: 18px; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.seg button { height: 38px; border-radius: 14px; font-family: var(--f-display); font-style: italic; font-weight: 800; font-size: 18px; color: var(--muted); }
.seg button.on { background: var(--accent); color: var(--accent-ink); }
.progress { height: 8px; background: rgba(255, 255, 255, .14); }
.progress i { background: var(--accent); box-shadow: 0 0 12px rgba(243, 210, 139, .5); }
.progress.gold i { background: var(--accent); }
.progress-line { color: var(--muted); font-size: 12.5px; }
.xp-bar { background: rgba(255, 255, 255, .14); }
.xp-bar i { background: var(--accent); box-shadow: 0 0 12px rgba(243, 210, 139, .5); }
.cap-bar i { background: var(--accent); }
.kv { border-bottom-color: var(--stroke); }
.switch.on { background: var(--accent); }
.sub-title { font-size: 27px; margin: 22px 4px 12px; line-height: 1; }
.sub-title small { font-family: var(--f-text); font-style: normal; font-weight: 600; font-size: 13px; }
.section-title { font-size: 31px; margin: 22px 2px 12px; line-height: 1; }
.section-title small { font-family: var(--f-text); font-style: normal; font-weight: 600; font-size: 13px; }
.hub-title { font-size: 46px; line-height: .9; }
.hub-sub { font-size: 13px; color: var(--muted); font-weight: 600; }
.loader-dots i { background: var(--accent); }
.empty-state b { font-size: 26px; }
.empty-state .big { color: var(--accent); }
.guide { background: rgba(255, 255, 255, .09); border: 1px solid rgba(243, 210, 139, .55); border-radius: 20px;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.guide .gi { background: rgba(243, 210, 139, .16); color: var(--accent); }
.guide .gi svg { width: 22px; height: 22px; }
.guide .gt { color: var(--accent); font-weight: 800; }
.guide .gd { font-weight: 700; font-size: 15px; }
.guide .go { background: var(--accent); color: var(--accent-ink); }
.pt-emo svg { width: 28px; height: 28px; color: var(--accent); }
.ptile { background: rgba(255, 255, 255, .07); border: 1px solid var(--stroke); border-radius: 20px;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.ptile .pt-t { font-family: var(--f-display); font-style: italic; font-weight: 900; font-size: 22px; line-height: 1; margin-top: 8px; }
.ptile .pt-s { font-size: 12.5px; color: var(--ink-2); font-weight: 600; margin-top: 3px; }

/* ── места Гавани ───────────────────────────────────────── */
.place { border-radius: 22px; box-shadow: 0 14px 34px rgba(0, 0, 0, .35); }
.place::before { background: linear-gradient(180deg, rgba(6, 14, 16, 0) 28%, rgba(6, 14, 16, .88) 100%); }
.place::after { border-color: rgba(255, 255, 255, .16); }
.place .n { font-size: 25px; line-height: .95; }
.place.wide .n { font-size: 30px; }
.place .d { color: rgba(246, 243, 236, .82); font-size: 12.5px; font-weight: 600; }
.place .lock { background: rgba(10, 20, 22, .6); color: var(--accent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.place .flag { background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.place-alert { background: var(--accent); color: var(--accent-ink); font-family: var(--f-display); }

/* ── NPC ────────────────────────────────────────────────── */
.npc-say .bubble { background: rgba(255, 255, 255, .09); border-color: var(--stroke); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); font-size: 14.5px; }
.npc-say .bubble .who { color: var(--accent); font-weight: 800; }

/* ── шторки, окна, уведомления ─────────────────────────── */
.sheet { background: rgba(12, 22, 24, .9); border-top: 1px solid var(--stroke-2);
  -webkit-backdrop-filter: blur(26px) saturate(1.3); backdrop-filter: blur(26px) saturate(1.3); }
.sheet-backdrop { background: rgba(3, 8, 10, .55); }
.sheet-head h3 { font-size: 29px; line-height: 1; }
.sheet-foot { background: rgba(8, 16, 18, .6); }
.modal-backdrop { background: rgba(3, 8, 10, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.notice, .confirm, .celebrate { background: rgba(14, 26, 28, .9); border: 1px solid var(--stroke-2);
  -webkit-backdrop-filter: blur(26px) saturate(1.3); backdrop-filter: blur(26px) saturate(1.3); box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.confirm h3 { font-size: 30px; line-height: 1; }
.confirm p { color: var(--ink-2); font-size: 14.5px; }
.confirm-icon svg { width: 44px; height: 44px; color: var(--accent); }
.notice-item { font-size: 15px; }
.notice-item b { color: var(--accent); }
.cel-title { font-size: 36px; line-height: 1; }
.cel-name { color: var(--accent); font-family: var(--f-display); font-style: italic; font-weight: 900; font-size: 22px; }
.cel-rays { background: repeating-conic-gradient(from 0deg, rgba(255, 238, 200, .18) 0deg 3deg, rgba(255, 238, 200, 0) 3deg 12deg); opacity: 1; }
.celebrate p { color: var(--ink-2); font-size: 14.5px; }

.toast { background: rgba(12, 22, 24, .86); border: 1px solid var(--stroke-2); border-radius: 18px; font-weight: 600; font-size: 14.5px;
  -webkit-backdrop-filter: blur(20px) saturate(1.3); backdrop-filter: blur(20px) saturate(1.3); }
.toast.good, .toast.ok { border-color: rgba(169, 228, 208, .5); }
.toast.warn { border-color: rgba(243, 210, 139, .6); }
.toast.bad { border-color: rgba(242, 154, 142, .6); }
.float-text { font-family: var(--f-display); font-style: italic; font-weight: 900; font-size: 22px; }

/* ── садок, наживка, рыбопедия ──────────────────────────── */
.fish-tile { background: rgba(255, 255, 255, .07); border-color: var(--stroke); border-radius: 20px; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.fish-tile.sel { border-color: var(--accent); background: rgba(243, 210, 139, .12); }
.fish-tile.sel::after { background: var(--accent); color: var(--accent-ink); }
.fish-tile .nm { font-weight: 700; font-size: 14px; }
.fish-tile .price { color: var(--accent); font-family: var(--f-display); font-style: italic; font-weight: 900; font-size: 17px; }
.bait-row { background: rgba(255, 255, 255, .07); border-color: var(--stroke); }
.bait-row.selected { border-color: rgba(243, 210, 139, .7); background: rgba(243, 210, 139, .1); }
.bait-row .cnt { font-family: var(--f-display); font-style: italic; font-weight: 800; font-size: 16px; }
.dex-cell { background: rgba(255, 255, 255, .07); border-color: var(--stroke); }
.dex-cell.rare { border-color: rgba(201, 182, 255, .45); }
.dex-cell .w { font-family: var(--f-display); font-style: italic; font-weight: 800; font-size: 13px; color: var(--ink); }
.dex-loc h4 { font-family: var(--f-display); font-style: italic; font-weight: 900; font-size: 21px; color: var(--ink); }
.bait-card, .house-card, .quest, .contract-card { background: rgba(255, 255, 255, .07); border-color: var(--stroke); }

/* ── сцена рыбалки: HUD ─────────────────────────────────── */
.hud-title .name { font-family: var(--f-display); font-style: italic; font-weight: 900; font-size: 22px; line-height: 1; }
.hud-title .sub { font-weight: 600; font-size: 12.5px; }
.main-btn .core { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 30px rgba(3, 10, 12, .45), 0 0 30px rgba(243, 210, 139, .3); }
.main-btn .label { font-family: var(--f-display); font-style: italic; font-weight: 900; font-size: 15px; letter-spacing: 0; }
.main-btn svg.ring .fg { stroke: var(--accent); }
.main-btn.wait .core { background: rgba(14, 26, 28, .85); color: var(--ink); }
.main-btn.wait .core::before { border-color: rgba(243, 210, 139, .35); }
.main-btn.fight .core { background: var(--aqua); color: #0E2320; }
.bait-chip .t2 { font-weight: 700; }
.fight-track .fill { background: linear-gradient(90deg, var(--aqua), var(--accent)); }
.fight-track .fish-mark { border-color: var(--accent); background: #0E1D20; }
.fight-track .fish-mark .icon { color: var(--accent); }
.hint { font-weight: 700; font-size: 15px; }
.hud-banner { color: var(--accent); border-color: rgba(243, 210, 139, .4); background: rgba(10, 20, 22, .72); }
.w-grain { inset: 0; width: 100%; height: 100%; opacity: .5; mix-blend-mode: overlay; }

/* эмодзи из текстов игры → иконки (core/emoji.js) */
svg.ei { display: inline-block; width: 1.12em; height: 1.12em; vertical-align: -.2em; stroke-width: 2.1; flex: none; }
.ei.gold { color: var(--accent); }
.ei.silver { color: #D9E1E4; }
.ei.bronze { color: #E3A778; }
.ei.violet { color: var(--violet); }
.ei.aqua { color: var(--aqua); }
.ei.green { color: var(--green); }
.ei.red { color: var(--red); }
.ei.fire { color: #F5A36B; }

/* ── вкладка «Рыбалка»: погода дня, уровень, места ─────────── */
.tabroot > .page-scroll { padding-left: 18px; padding-right: 18px; }
.tm-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 2px; }
.tm-who { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.tm-name { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-rank { font-size: 12.5px; color: rgba(246, 243, 236, .72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-wallet { display: flex; align-items: center; gap: 14px; flex: none; }
.tm-coins, .tm-tokens { display: flex; align-items: center; gap: 6px; font-family: var(--f-display); font-style: italic; font-weight: 800; font-size: 25px; line-height: 1; }
.tm-coins .num, .tm-tokens .num { font-size: 25px; }
.tm-tokens { color: rgba(246, 243, 236, .72); gap: 5px; }
.tm-tokens svg { width: 15px; height: 15px; stroke-width: 2.2; }
.tm-day { position: relative; padding-top: 22px; }
.tm-daylabel { font-size: 12.5px; font-weight: 600; color: rgba(246, 243, 236, .72); }
.tm-dayword { font-size: min(118px, 30vw); line-height: .8; letter-spacing: -.02em; margin-top: 10px; white-space: nowrap; text-shadow: 0 10px 34px rgba(4, 12, 14, .35); }
.tm-home.intro .tm-dayword { animation: tmWordIn .9s cubic-bezier(.2, .8, .2, 1) both; }
.tm-dayword.long { font-size: min(96px, 24.6vw); }
@keyframes tmWordIn { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.tm-dayline { margin-top: 10px; font-size: 27px; font-weight: 800; line-height: 1; color: var(--accent); }
.tm-sticker { position: absolute; right: 0; top: 40px; width: 86px; height: 86px; border-radius: 50%; display: flex; flex-direction: column; align-items: center;
  justify-content: center; line-height: .9; color: var(--ink); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .13);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); transform: rotate(9deg); }
.tm-home.intro .tm-sticker { animation: tmStickerIn .7s .25s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes tmStickerIn { from { opacity: 0; transform: rotate(-20deg) scale(.5); } to { opacity: 1; transform: rotate(9deg) scale(1); } }
.tm-sticker span { font-family: var(--f-display); font-style: italic; font-size: 14px; font-weight: 800; color: rgba(246, 243, 236, .78); }
.tm-sticker b { font-size: 32px; color: var(--accent); }
.tm-lvl { margin-top: 24px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: end; }
.tm-lvlnum { display: flex; flex-direction: column; line-height: .85; font-family: var(--f-display); font-style: italic; }
.tm-lvlnum span { font-size: 14px; font-weight: 800; color: rgba(246, 243, 236, .72); }
.tm-lvlnum b { font-size: 62px; font-weight: 900; }
.tm-lvlbar { display: flex; flex-direction: column; gap: 7px; padding-bottom: 6px; min-width: 0; }
.tm-lvltext { display: flex; justify-content: space-between; gap: 8px; font-family: var(--f-display); font-style: italic; font-size: 18px; font-weight: 800; }
.tm-lvltext span:last-child { color: rgba(246, 243, 236, .66); }
.tm-lvl .progress { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .16); }
.tm-lvl .progress i { box-shadow: 0 0 14px var(--accent); }
.tm-sec { margin: 24px 0 10px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.tm-sec > span { font-size: 31px; }
.tm-sec small { font-family: var(--f-display); font-style: italic; font-size: 17px; font-weight: 800; color: rgba(246, 243, 236, .66); }
.tm-places { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tm-place { position: relative; height: 82px; border-radius: 20px; overflow: hidden; display: grid; grid-template-columns: 46px minmax(0, 1fr) 106px;
  align-items: center; gap: 10px; padding-left: 14px; cursor: pointer; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .13);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); transition: transform .2s var(--ease), background .2s; }
.tm-home.intro .tm-place { animation: tmRowIn .55s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes tmRowIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.tm-place:active { transform: scale(.975); }
.tm-place .n { font-size: 36px; color: transparent; -webkit-text-stroke: 1.2px rgba(246, 243, 236, .42); }
.tm-place .tx { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tm-place .nm { font-size: 30px; line-height: .95; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 2px; }
.tm-place .mt { font-size: 12.5px; font-weight: 600; color: rgba(246, 243, 236, .7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-place .ph { position: relative; align-self: stretch; background-size: cover; background-position: center; filter: saturate(.85); }
.tm-place.cur { background: rgba(255, 255, 255, .15); border-color: var(--accent); box-shadow: 0 12px 30px rgba(4, 12, 14, .28); }
.tm-place.cur .n { color: var(--accent); -webkit-text-stroke: 0; }
.tm-place.cur .mt { color: rgba(246, 243, 236, .8); }
.tm-place.cur .ph { filter: none; }
.tm-place.permit .ph { filter: saturate(.45) brightness(.62); }
.tm-place .tk { position: absolute; inset: 0; display: grid; place-items: center; color: var(--accent); }
.tm-place .tk svg { width: 30px; height: 30px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .6)); }
.tm-place.locked { grid-template-columns: 46px minmax(0, 1fr) 64px; background: none; border: 1px dashed rgba(246, 243, 236, .28);
  -webkit-backdrop-filter: none; backdrop-filter: none; color: rgba(246, 243, 236, .55); }
.tm-place.locked .n { -webkit-text-stroke-color: rgba(246, 243, 236, .25); }
.tm-place.locked .mt { color: inherit; }
.tm-place.locked .lvl { font-size: 40px; color: rgba(246, 243, 236, .22); text-align: center; }
.tabroot .champion-banner { margin-top: 14px; background: rgba(243, 210, 139, .12); border: 1px solid rgba(243, 210, 139, .55);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.champion-banner .cb-emo { color: var(--accent); display: grid; }
.champion-banner .cb-emo svg { width: 30px; height: 30px; }
.tabroot .guide { margin-top: 14px; }

/* монета и иконки на цветных кнопках — цветом текста кнопки, иначе золото сливается с фоном */
.btn-primary .coin, .btn-gold .coin, .btn-success .coin, .btn-metal .coin, .btn-danger .coin, .seg button.on .coin, .guide .go .coin,
.btn-primary .coin::after, .btn-gold .coin::after, .btn-success .coin::after, .btn-metal .coin::after, .btn-danger .coin::after, .seg button.on .coin::after { border-color: currentColor; }
.btn-primary svg.ei, .btn-gold svg.ei, .btn-success svg.ei, .btn-metal svg.ei, .btn-danger svg.ei, .seg button.on svg.ei, .cr-btn svg.ei { color: currentColor; }
.ei.blue { color: var(--blue); }

/* аватар и шапка профиля */
.avatar { background: rgba(255, 255, 255, .1); color: var(--accent); font-family: var(--f-display); font-style: italic; font-weight: 900; font-size: 24px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.lvl-badge { background: var(--accent); color: var(--accent-ink); font-family: var(--f-display); font-style: italic; font-weight: 900; font-size: 13px;
  border: 2px solid #0E1D20; }
.profile-hero .avatar { font-size: 42px; }
.profile-hero .player-name { font-size: 34px; line-height: 1; margin-top: 2px; }
.profile-hero .player-rank { color: var(--ink-2); font-weight: 600; }
.mini-stats b { font-family: var(--f-display); font-style: italic; font-weight: 900; font-size: 20px; }

/* ── поход в океан (faction.js: voyageHtml) ─────────────── */
.tmv { position: relative; display: flex; flex-direction: column; margin-top: 8px; }
.tmv-sub { font-size: 13px; font-weight: 600; color: rgba(246, 243, 236, .75); }
.tmv-time { display: flex; align-items: flex-end; gap: 12px; margin-top: 4px; text-shadow: 0 10px 34px rgba(4, 12, 18, .45); }
.tmv-time b { font-size: min(132px, 33vw); font-weight: 900; line-height: .8; letter-spacing: -.03em; white-space: nowrap; }
.tmv-time b.long { font-size: min(92px, 23vw); }
.tmv-time span { padding-bottom: 8px; font-size: 20px; font-weight: 800; line-height: 1; color: rgba(246, 243, 236, .85); }
.tmv-route { position: relative; margin-top: 14px; padding-top: 60px; }
.tmv-boat { position: absolute; top: -6px; z-index: 2; width: 86px; margin-left: -43px; transition: left 1s linear; }
.tmv-boat img { display: block; width: 100%; filter: drop-shadow(0 8px 10px rgba(3, 10, 14, .55)); animation: seaBob 3.2s ease-in-out infinite; }
.tmv.night .tmv-boat img { filter: brightness(.78) saturate(.85) drop-shadow(0 8px 10px rgba(0, 0, 0, .6)); }
.tmv-bar { border-radius: 18px; padding: 12px 14px 10px; display: flex; flex-direction: column; gap: 8px; }
.tmv-legs { display: grid; gap: 6px; }
.tmv-legs span { position: relative; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .18); }
.tmv-legs span.done { background: var(--accent); }
.tmv-legs span.now { background: none; box-shadow: inset 0 0 0 2px var(--accent); animation: tmvPing 1.8s ease-out infinite; }
.tmv-legs span.now i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--accent); transition: width 1s linear; }
@keyframes tmvPing { 0% { box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 0 rgba(243, 210, 139, .55); } 100% { box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 10px rgba(243, 210, 139, 0); } }
.tmv-lbl { display: grid; gap: 6px; font-size: 16px; font-weight: 800; color: rgba(246, 243, 236, .75); white-space: nowrap; }
.tmv-lbl .now { color: var(--accent); }
.tmv-lbl .end { color: rgba(246, 243, 236, .6); text-align: right; }
/* в пути страница фракции — только поход: без фото яхт-клуба и карточки ранга */
.page.voyage .page-hero, .page.voyage .fx-head { display: none; }
.page.voyage .page-scroll.with-hero { padding-top: calc(var(--safe-top) + 64px); }
.page.voyage::after { background: radial-gradient(70% 34% at 12% 2%, rgba(255, 186, 120, .28), rgba(255, 186, 120, 0) 70%),
  linear-gradient(180deg, var(--atmo-tint) 0%, rgba(8, 20, 30, .42) 36%, rgba(6, 13, 20, .9) 100%); }
.page.voyage .tmv { margin-top: 0; }
/* событие в пути — стеклянная карточка */
.ev-card.tmv-ev { margin-top: 14px; border-radius: 24px; padding: 10px 10px 14px; display: flex; flex-direction: column; gap: 10px; }
.tmv-ev .ev-img { height: 174px; border-radius: 16px; background-position: center 40%; }
.tmv-ev .ev-body { padding: 0 6px; font-size: 15px; line-height: 1.45; color: rgba(246, 243, 236, .82); }
.tmv-ev .ev-body i { color: rgba(246, 243, 236, .7); }
.ev-kicker { font-size: 18px; font-weight: 800; color: var(--accent); }
.ev-title { margin: 2px 0 8px; font-size: 44px; font-weight: 900; line-height: .88; color: var(--ink); text-wrap: balance; }
.tmv-ev .ev-acts { display: grid; gap: 10px; padding: 0 2px; }
.tmv-ev .ev-acts.two { grid-template-columns: 1fr 1.4fr; }
.tmv-ev .ev-acts .btn { height: 58px; }
