:root {
  --bg: rgba(14, 20, 24, 0.78);
  --bg2: rgba(22, 30, 36, 0.94);
  --line: rgba(255, 255, 255, 0.12);
  --text: #e9eef0;
  --dim: #9fb0b6;
  --acc: #f2b441;
  --good: #7fd36b;
  --warn: #f0c04a;
  --bad: #f0624a;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #0b1114; color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: 14px; user-select: none; }
#game { position: fixed; inset: 0; width: 100%; height: 100%; display: block; cursor: default; }
/* там, где браузер не даёт захватить мышь, взгляд ведёт положение курсора — сам курсор на воде не нужен */
body.nolock #game { cursor: none; }
#ui { position: fixed; inset: 0; pointer-events: none; }
#ui button, #modal, #catch { pointer-events: auto; }
.hidden { display: none !important; }
kbd { display: inline-block; min-width: 18px; padding: 0 5px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px;
  background: rgba(255, 255, 255, 0.08); font: 600 11px/16px system-ui, sans-serif; text-align: center; color: var(--dim); }

/* ---------- верхняя панель ---------- */
#top { position: absolute; top: 10px; left: 12px; right: 12px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.grp { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.pill { background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: 6px 10px; color: var(--text); font-size: 13px;
  backdrop-filter: blur(6px); white-space: nowrap; }
.pill.btn { cursor: pointer; font-family: inherit; }
.pill.btn:hover { background: rgba(40, 54, 62, 0.9); border-color: rgba(255, 255, 255, 0.3); }
.pill.money { color: var(--acc); font-weight: 700; }
.pill.lvl { display: flex; align-items: center; gap: 8px; }
.pill.lvl #lvl { font-weight: 700; }
.pill.lvl #xptxt { color: var(--dim); font-size: 11px; }
.xpbar { width: 90px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
#xpfill { height: 100%; width: 0; background: var(--good); transition: width 0.4s; }

/* ---------- уведомления ---------- */
#toasts { position: absolute; top: calc(var(--topH, 36px) + 22px); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 6px; align-items: center; width: min(560px, 90vw); }
.toast { background: var(--bg2); border: 1px solid var(--line); border-left: 4px solid var(--dim); border-radius: 8px; padding: 8px 14px;
  font-size: 14px; animation: tin 0.25s ease-out; transition: opacity 0.5s, transform 0.5s; text-align: center; }
.toast.good { border-left-color: var(--good); }
.toast.warn { border-left-color: var(--warn); }
.toast.bad { border-left-color: var(--bad); color: #ffd9d2; }
.toast.level { border-left-color: var(--acc); color: var(--acc); font-weight: 600; }
.toast.out { opacity: 0; transform: translateY(-8px); }
@keyframes tin { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
#bigmsg { position: absolute; top: 30%; left: 50%; transform: translate(-50%, -50%) scale(0.8); font-size: 34px; font-weight: 800; color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8), 0 0 30px rgba(242, 180, 65, 0.8); opacity: 0; transition: opacity 0.15s, transform 0.15s; text-align: center; white-space: nowrap; }
#bigmsg.show { opacity: 1; transform: translate(-50%, -50%) scale(1); animation: pulse 0.35s infinite alternate; }
@keyframes pulse { from { color: #fff; } to { color: var(--acc); } }

/* ---------- HUD ---------- */
#hud { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); width: min(640px, calc(100vw - 640px)); min-width: 400px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 9px 14px 10px; backdrop-filter: blur(6px); }
#hud.fight { border-color: rgba(242, 180, 65, 0.6); }
#hint { text-align: center; color: var(--dim); font-size: 13px; min-height: 18px; margin-bottom: 7px; }
#hint.alert { color: var(--bad); font-weight: 700; }
.row { display: flex; align-items: center; gap: 10px; }
.row.tight { margin-top: 6px; }
.row .lab { color: var(--dim); font-size: 12px; width: 66px; }
.row.small { margin-top: 7px; justify-content: space-between; font-size: 12px; color: var(--dim); gap: 8px; flex-wrap: wrap; }
.row .val { font-variant-numeric: tabular-nums; width: 96px; text-align: right; font-size: 13px; white-space: nowrap; }
.row.tight .val { font-size: 12px; color: var(--dim); }
.bar { position: relative; flex: 1; height: 14px; border-radius: 7px; background: rgba(255, 255, 255, 0.1); }
.bar.thin { height: 8px; border-radius: 4px; }
#tfill, #rfill, #kfill { height: 100%; width: 0; border-radius: inherit; background: var(--good); }
#tfill.warn, #rfill.warn, #kfill.warn { background: var(--warn); }
#tfill.bad, #rfill.bad, #kfill.bad { background: var(--bad); }
#tlimit, .bar .lim { position: absolute; left: 64%; right: 0; top: 0; bottom: 0; border-left: 1px solid rgba(240, 98, 74, 0.6); border-radius: 0 7px 7px 0;
  background: repeating-linear-gradient(135deg, rgba(240, 98, 74, 0.35) 0 4px, rgba(240, 98, 74, 0.12) 4px 8px); }
#tdrag { position: absolute; top: -8px; width: 0; height: 0; margin-left: -6px; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 8px solid #fff; }
#sfill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: inherit; background: rgba(255, 255, 255, 0.45); }
#swin { position: absolute; top: -2px; bottom: -2px; border-radius: 4px; background: rgba(127, 211, 107, 0.4); border: 1px solid rgba(127, 211, 107, 0.9); }
#smark { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1px; border-radius: 2px; background: #fff; box-shadow: 0 0 6px rgba(255, 255, 255, 0.9); }
#power { position: absolute; bottom: 150px; left: 50%; margin-left: 350px; width: 16px; height: 170px; border-radius: 8px; background: var(--bg);
  border: 1px solid var(--line); overflow: hidden; display: none; }
#power.show { display: block; }
#power.aimed { width: 26px; height: 220px; overflow: visible; }
#power.aimed #powerfill { opacity: 0.55; border-radius: 0 0 7px 7px; }
#pzone { position: absolute; left: -5px; right: -5px; display: none; background: rgba(127, 211, 107, 0.45); border: 2px solid var(--good); border-radius: 5px; z-index: 1; }
#pmark { position: absolute; left: -8px; right: -8px; height: 3px; margin-bottom: -1px; display: none; background: #fff; box-shadow: 0 0 6px #fff; z-index: 2; }
#power.aimed #pzone, #power.aimed #pmark { display: block; }
#powerfill { position: absolute; bottom: 0; left: 0; right: 0; height: 0; background: linear-gradient(to top, var(--good), var(--warn), var(--bad)); background-size: 100% 170px; background-position: bottom; }
#tackle { position: absolute; right: 12px; bottom: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px;
  white-space: pre-line; font-size: 12px; color: var(--dim); line-height: 1.5; max-width: 230px; backdrop-filter: blur(6px); }
#leftdock { position: absolute; left: 14px; bottom: 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }
#floatcam { position: relative; width: 180px; height: 180px; border: 2px solid rgba(255, 255, 255, 0.55); border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 4px 18px rgba(0, 0, 0, 0.5); display: none; }
#floatcam.show { display: block; }
#floatcam span, #sonar span { position: absolute; top: -19px; left: 0; font-size: 11px; color: #fff; text-shadow: 0 1px 3px #000; white-space: nowrap; }
#sonar { position: relative; width: 272px; height: 150px; border: 2px solid rgba(255, 255, 255, 0.45); border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 4px 18px rgba(0, 0, 0, 0.5); display: none; background: #0d1a20; }
#sonar.show { display: block; }
#sonar canvas { width: 100%; height: 100%; display: block; border-radius: 6px; }

/* ---------- окна ---------- */
#modal, #catch { position: fixed; inset: 0; background: rgba(4, 8, 10, 0.55); display: flex; align-items: center; justify-content: center; backdrop-filter: blur(3px); }
.panel { width: min(980px, 94vw); max-height: 88vh; background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); user-select: text; }
.panel.small { width: min(600px, 94vw); padding: 18px 22px 20px; }
.body { padding: 14px 16px 16px; overflow-y: auto; }
.cols { display: flex; gap: 18px; flex-wrap: wrap; }
.col { flex: 1 1 280px; min-width: 0; }
.col.wide { flex: 1.5 1 360px; }
h2 { margin: 0 0 6px; font-size: 26px; color: var(--acc); }
h3 { margin: 0 0 10px; font-size: 15px; }
h4 { margin: 12px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--dim); }
p.lead { margin: 0 0 14px; color: var(--dim); max-width: 70ch; line-height: 1.5; }
.sum { margin: 8px 0 10px; color: var(--dim); line-height: 1.6; }
.sum b { color: var(--text); }
.note { margin: 8px 0; padding: 7px 10px; border-radius: 8px; font-size: 13px; }
.note.warn { background: rgba(240, 192, 74, 0.12); color: var(--warn); }
.note.good { background: rgba(127, 211, 107, 0.12); color: var(--good); text-align: center; }
.panel button { font: inherit; }
.cbtns button, .sum button { background: rgba(255, 255, 255, 0.08); color: var(--text); border: 1px solid var(--line); border-radius: 8px;
  padding: 7px 12px; cursor: pointer; white-space: nowrap; }
.cbtns button:hover:not(:disabled), .sum button:hover:not(:disabled) { background: rgba(255, 255, 255, 0.16); }
.panel button:disabled { opacity: 0.5; cursor: default; }
.help table { border-collapse: collapse; width: 100%; }
.help td { padding: 5px 8px 5px 0; vertical-align: top; color: var(--dim); font-size: 13px; }
.help td:first-child { white-space: nowrap; color: var(--text); }
.help ul { margin: 0; padding-left: 18px; color: var(--dim); line-height: 1.5; font-size: 13px; }
.help li { margin-bottom: 6px; }
.help li b { color: var(--text); }
.cbtns { display: flex; gap: 10px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
button.big { padding: 11px 20px; font-size: 15px; }
button.primary { background: var(--acc); color: #1b1405; border-color: var(--acc); font-weight: 700; }
.cbtns button.primary:hover:not(:disabled) { background: #ffc85c; }
.ctitle { font-size: 24px; font-weight: 800; text-align: center; margin-bottom: 8px; }
.bigfish { width: 100%; height: auto; display: block; background: radial-gradient(ellipse at center, rgba(120, 170, 190, 0.28), transparent 72%); border-radius: 10px; }
.cstats { display: flex; justify-content: space-around; margin: 12px 0 4px; }
.cstats div { text-align: center; }
.cstats b { display: block; font-size: 19px; }
.cstats span { color: var(--dim); font-size: 12px; }

/* ---------- карта водоёма ---------- */
.chartwrap { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
#worldmap { width: min(100%, 60vh); max-width: 560px; aspect-ratio: 640 / 760; border-radius: 10px; border: 1px solid var(--line); cursor: pointer; touch-action: manipulation; background: #1c2a30; }
#locshape { width: 100%; max-width: 280px; aspect-ratio: 280 / 190; border-radius: 8px; border: 1px solid var(--line); display: block; margin: 4px 0 10px; }
#chart { width: min(62vh, 100%); max-width: 620px; aspect-ratio: 1; border-radius: 10px; border: 1px solid var(--line); cursor: crosshair; touch-action: none; }
.chartside { flex: 1 1 240px; min-width: 220px; }
.chartside p { color: var(--dim); line-height: 1.5; margin: 0 0 10px; font-size: 13px; }
.chartside p.dimtxt { font-size: 12px; }
.cbtns.left { justify-content: flex-start; margin: 6px 0 10px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--dim); margin: 10px 0; }
.legend i { display: inline-block; width: 14px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.legend i.dot { width: 10px; border-radius: 50%; }

/* ---------- загрузка ---------- */
#loading { position: fixed; inset: 0; background: linear-gradient(#15303a, #0b1114); display: flex; align-items: center; justify-content: center; z-index: 10; }
#loading .box { text-align: center; padding: 20px; }
#loading h1 { margin: 0 0 10px; font-size: 40px; color: var(--acc); letter-spacing: 0.02em; }
#loading p { color: var(--dim); max-width: 60ch; }

@media (max-width: 1500px) {
  .pill .lbl { display: none; }
  .xpbar { width: 60px; }
}
@media (max-width: 1280px) {
  body:not(.touch) #hud { width: calc(100vw - 24px); min-width: 0; bottom: 8px; }
  /* шкалы снасти занимают до 160 пикселей снизу: всё, что стояло в углах, поднимается над ними */
  body:not(.touch) #tackle { bottom: 168px; }
  body:not(.touch) #leftdock { bottom: 168px; }
  body:not(.touch) #power { margin-left: 0; left: auto; right: 16px; bottom: 230px; }
}
@media (max-width: 720px) {
  #top { top: 6px; left: 6px; right: 6px; gap: 4px; }
  .grp { gap: 4px; }
  .pill { padding: 5px 7px; font-size: 12px; }
  .pill.lvl #xptxt, #locName { display: none; }
  #bigmsg { font-size: 24px; white-space: normal; width: 90vw; }
}

/* ================= телефон и планшет =================
   Экран почти пустой: видно воду и берег. Сверху одна строка, под большими пальцами — джойстик и «Катушка»,
   остальное появляется только когда нужно. Всё, чего нет на экране, — в меню. */
#mtop, #touch { display: none; }
body.touch { --mtop: 40px; --sl: env(safe-area-inset-left, 0px); --sr: env(safe-area-inset-right, 0px); --st: env(safe-area-inset-top, 0px); --sb: env(safe-area-inset-bottom, 0px); }
body.touch, body.touch button { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
body.touch #game { cursor: default; touch-action: none; }
body.touch #top, body.touch #tackle, body.touch kbd { display: none; }
body.touch #mtop { display: flex; position: absolute; top: calc(6px + var(--st)); left: calc(8px + var(--sl)); right: calc(8px + var(--sr)); gap: 6px; align-items: center; }
.mchip { background: rgba(10, 16, 20, 0.42); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 10px; padding: 0 10px; height: 34px; display: flex; align-items: center;
  color: #fff; font: 600 12px system-ui, sans-serif; white-space: nowrap; backdrop-filter: blur(5px); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); }
.mchip.mbtn { width: 40px; height: 36px; padding: 0; justify-content: center; pointer-events: auto; }
#mtop .msp { flex: 1; }
#mtime { font-weight: 500; }

/* шкалы: тонкие, без подложки, только пока снасть в воде */
body.touch #hud { top: calc(var(--mtop) + 12px + var(--st)); bottom: auto; left: calc(10px + var(--sl)); right: calc(10px + var(--sr)); width: auto; min-width: 0; transform: none; background: none; border: 0; padding: 0; backdrop-filter: none; }
body.touch #hud .lab, body.touch #rtxt, body.touch #dragtxt { display: none; }
body.touch #hud .row { gap: 8px; }
body.touch #hud .row.tight { margin-top: 4px; }
body.touch #hud .bar { height: 7px; background: rgba(10, 16, 20, 0.5); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14); }
body.touch #hud .bar.thin { height: 4px; }
body.touch #hud .val { width: auto; min-width: 78px; font-size: 11px; color: #fff; text-shadow: 0 1px 3px #000; }
body.touch #hud.idle .row, body.touch #hud.float .srow { display: none; }
body.touch #hud .row.small { justify-content: center; gap: 14px; font-size: 11px; color: #e8eef0; text-shadow: 0 1px 3px #000; margin-top: 5px; }
body.touch #tdrag { top: -6px; border-left-width: 5px; border-right-width: 5px; border-top-width: 6px; margin-left: -5px; }
/* подсказка — над кнопками, по центру: наверху её закрывали бы окошки */
body.touch #hint { position: fixed; left: 8%; right: 8%; bottom: calc(204px + var(--sb)); font-size: 12px; color: #fff; text-shadow: 0 1px 3px #000, 0 0 8px rgba(0, 0, 0, 0.6); margin: 0; min-height: 0; transition: opacity 0.6s; line-height: 1.3; }
body.touch #hud { display: flex; flex-direction: column; }
body.touch #hint.gone { opacity: 0; }
body.touch #hint.alert { color: #ffb4a6; }
body.touch #toasts { top: calc(var(--mtop) + 80px + var(--st)); left: auto; right: calc(8px + var(--sr)); transform: none; width: min(224px, 56vw); align-items: flex-end; }
body.touch .toast { font-size: 12px; padding: 6px 10px; text-align: left; }
body.touch #bigmsg { top: 34%; }

/* окошки: поплавок крупным планом и «Под водой» — в левом верхнем углу, не мешают пальцам */
body.touch #leftdock { left: calc(8px + var(--sl)); top: calc(var(--mtop) + 68px + var(--st)); bottom: auto; gap: 22px; }
body.touch #sonar { width: 150px; height: 84px; }
body.touch #floatcam span, body.touch #sonar span { font-size: 10px; top: -15px; }

/* управление */
body.touch #touch { display: block; }
#touch button { pointer-events: auto; touch-action: none; color: #fff; font: 600 12px system-ui, sans-serif; background: rgba(10, 16, 20, 0.4); border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); }
#touch button.on, #touch button:active { background: rgba(242, 180, 65, 0.5); border-color: var(--acc); }
#joy { position: absolute; left: calc(14px + var(--sl)); bottom: calc(16px + var(--sb)); width: 108px; height: 108px; border-radius: 50%; background: rgba(10, 16, 20, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.28); pointer-events: auto; touch-action: none; display: flex; align-items: center; justify-content: center; }
#joy i { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.3); border: 1px solid rgba(255, 255, 255, 0.6); pointer-events: none; }
#touch .reelb { position: absolute; right: calc(14px + var(--sr)); bottom: calc(16px + var(--sb)); width: 108px; height: 108px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 13px; }
#touch .reelb svg { width: 30px; height: 30px; }
#touch .rodb { position: absolute; right: calc(20px + var(--sr)); bottom: calc(136px + var(--sb)); width: 96px; height: 54px; border-radius: 18px; display: none; align-items: center; justify-content: center; gap: 6px; }
#touch.s-water .rodb, #touch.s-fight .rodb { display: flex; }
#touch.strike .rodb { background: rgba(242, 180, 65, 0.6); border-color: #fff; animation: strk 0.3s infinite alternate; }
@keyframes strk { from { transform: scale(1); } to { transform: scale(1.08); } }
.tchips { position: absolute; right: calc(124px + var(--sr)); bottom: calc(136px + var(--sb)); display: flex; gap: 8px; align-items: flex-end; }
#touch.s-idle .tchips { right: calc(20px + var(--sr)); }
#touch .chip { width: 50px; height: 54px; border-radius: 16px; padding: 4px 0 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
#touch .chip small { font-size: 8.5px; font-weight: 500; opacity: 0.85; letter-spacing: 0.01em; }
#touch.s-idle .c-aim, #touch.s-water .c-quick, #touch.s-water .c-free, #touch.s-fight .c-free, #touch.s-water .c-sonar { display: flex; }
#touch.float.haschum.s-water .c-feed, #touch.float.haschum.aiming .c-feed { display: flex; }
#touch.haslamp .c-lamp { display: flex; }      /* фонарь: кнопка видна, когда он надет и стемнело */
@media (max-width: 480px) { .tchips { flex-wrap: wrap-reverse; justify-content: flex-end; max-width: calc(100vw - 140px - var(--sr) - var(--sl)); } }      /* на узком экране кнопки не уходят за край: лишние — вторым рядом */
.tsteps { position: absolute; left: calc(132px + var(--sl)); right: calc(132px + var(--sr)); bottom: calc(16px + var(--sb)); display: flex; flex-wrap: wrap-reverse; gap: 6px; justify-content: center; }
.step { display: flex; align-items: stretch; height: 40px; border-radius: 12px; overflow: hidden; background: rgba(10, 16, 20, 0.36); border: 1px solid rgba(255, 255, 255, 0.22); backdrop-filter: blur(5px); }
#touch .step button { width: 36px; border: 0; background: none; font-size: 20px; font-weight: 500; backdrop-filter: none; }
.step span { min-width: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); }
.step b { font-size: 13px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.step small { font-size: 8.5px; color: #d5dee2; }
#stDep, #stSpd { display: none; }
#touch.float.s-idle #stDep { display: flex; }
#touch:not(.float):not(.s-fight) #stSpd { display: flex; }
#touch.s-idle #stDrag { opacity: 0.7; }
body.touch #power { left: auto; right: calc(132px + var(--sr)); bottom: calc(20px + var(--sb)); margin-left: 0; height: 104px; }
body.touch #power.aimed { height: 150px; }

/* окна на телефоне: во весь экран, вкладки листаются пальцем */
body.touch #modal, body.touch #catch { backdrop-filter: none; }
body.touch #modal .panel { width: 100vw; height: 100vh; height: 100dvh; max-height: none; border-radius: 0; border: 0; background: #161e24; }
body.touch .body { padding: 10px calc(10px + var(--sr)) calc(14px + var(--sb)) calc(10px + var(--sl)); flex: 1; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
body.touch .cbtns button, body.touch .sum button { min-height: 40px; padding: 8px 14px; }
body.touch .panel.small { max-height: 94vh; max-height: 94dvh; overflow-y: auto; padding: 14px 16px 16px; }
body.touch .help td:first-child { white-space: normal; width: 36%; }

@media (max-width: 560px) {
  /* узкий экран (телефон стоя): шкалы на всю ширину, окошки помельче */
  body.touch .cols { gap: 8px; }
  body.touch #worldmap { width: 100%; }
  body.touch .chartside { min-width: 0; flex-basis: 100%; }
}
@media (max-height: 460px) {
  /* телефон лёжа: по высоте тесно — окошки в ряд, кнопки чуть меньше */
  body.touch #leftdock { flex-direction: row; gap: 10px; top: calc(var(--mtop) + 30px + var(--st)); }
  body.touch #sonar { width: 140px; height: 78px; }
  body.touch #hud { left: calc(228px + var(--sl)); right: calc(150px + var(--sr)); top: calc(10px + var(--st)); }
  body.touch #hint { left: calc(280px + var(--sl)); right: calc(240px + var(--sr)); bottom: auto; top: calc(var(--mtop) + 26px + var(--st)); }
  #joy { width: 96px; height: 96px; }
  #touch .reelb { width: 96px; height: 96px; }
  #touch .rodb { bottom: calc(122px + var(--sb)); height: 48px; }
  .tchips { bottom: calc(122px + var(--sb)); }
  #touch .chip { height: 48px; }
  .tsteps { left: calc(120px + var(--sl)); right: calc(120px + var(--sr)); }
  body.touch #toasts { top: calc(var(--mtop) + 12px + var(--st)); }
  body.touch #modal .panel.small, body.touch .panel.small { max-height: 96dvh; }
  body.touch #worldmap { width: min(100%, 78vh); }
  body.touch .ctitle { font-size: 19px; margin-bottom: 4px; }
  body.touch .bigfish { max-height: 34vh; object-fit: contain; }
}

/* ---------- приветствие ---------- */
.help.welcome { max-width: 640px; margin: 0 auto; }
.help.welcome .lead { margin-bottom: 10px; }
ol.steps { list-style: none; counter-reset: st; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
ol.steps li { counter-increment: st; display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; align-items: start; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, 0.03); margin: 0; }
ol.steps li::before { content: counter(st); grid-row: 1 / span 2; width: 30px; height: 30px; border-radius: 50%; background: var(--acc); color: #1b1405; font-weight: 800; display: flex; align-items: center; justify-content: center; }
ol.steps li b { color: var(--text); font-size: 14px; }
ol.steps li span { grid-column: 2; color: var(--dim); font-size: 13px; line-height: 1.45; }

/* ---------- задания водоёма ---------- */
.tasks { margin: 0 0 10px; }
.tasks h4 { margin-top: 2px; }
.task { display: grid; grid-template-columns: 34px 1fr auto; gap: 8px; align-items: baseline; padding: 5px 8px; border-radius: 7px; background: rgba(255, 255, 255, 0.04); margin-bottom: 3px; font-size: 13px; }
.task .tk { color: var(--acc); font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.task i { color: var(--dim); font-style: normal; font-size: 12px; white-space: nowrap; }
.task.done { opacity: 0.55; }
.task.done .tk { color: var(--good); }

/* ================= меню =================
   Слева разделы, сверху — где мы, уровень и деньги. Экраны собраны из карточек: у предмета картинка, короткие свойства, одна кнопка.
   На телефоне меню во весь экран: разделы внизу, под большим пальцем, карточка товара выезжает шторкой. */
#modal .panel { width: min(1240px, 96vw); height: min(820px, 92vh); max-height: none; overflow: hidden; background: #171f25; }
#modal .panel.welcome { width: min(700px, 94vw); height: auto; max-height: 92vh; }
.panel button:focus-visible { outline: 2px solid var(--acc); outline-offset: 1px; }
.mshell { display: flex; flex: 1; min-height: 0; }
.mnav { flex: 0 0 176px; display: flex; flex-direction: column; gap: 2px; padding: 14px 8px; background: rgba(0, 0, 0, 0.24); border-right: 1px solid var(--line); }
.mlogo { font-weight: 800; color: var(--acc); font-size: 15px; padding: 2px 10px 14px; letter-spacing: 0.02em; }
.mnav button { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px; border: 0; border-radius: 10px; background: none; color: var(--dim); cursor: pointer; text-align: left; }
.mnav button span { flex: 1; font-size: 14px; }
.mnav button svg { flex: 0 0 auto; }
.mnav button.on { color: #1b1405; background: var(--acc); font-weight: 700; }
.mnav button.on kbd { color: #1b1405; border-color: rgba(0, 0, 0, 0.3); background: rgba(0, 0, 0, 0.08); }
.mnav .badge { font-style: normal; font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--good); color: #0e1a10; display: flex; align-items: center; justify-content: center; }
.mnav .badge.full { background: var(--bad); color: #fff; }
.mmain { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.mhead { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 18px; border-bottom: 1px solid var(--line); }
.mhead h2 { margin: 0; font-size: 20px; color: var(--text); white-space: nowrap; }
.mloc { flex: 1; min-width: 0; color: var(--dim); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mwallet { display: flex; align-items: center; gap: 12px; }
.mlvl { display: flex; align-items: center; gap: 7px; }
.mlvl b { width: 28px; height: 28px; border-radius: 50%; background: rgba(127, 211, 107, 0.16); border: 1px solid rgba(127, 211, 107, 0.5); color: var(--good); display: flex; align-items: center; justify-content: center; font-size: 12px; }
.mlvl i { display: block; width: 74px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.mlvl u { display: block; height: 100%; background: var(--good); border-radius: 3px; }
.mlvl small { color: var(--dim); font-size: 11px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mmoney { color: var(--acc); font-weight: 800; font-size: 16px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mtools { display: flex; gap: 6px; }
.mtools button, .mx { height: 34px; min-width: 36px; padding: 0 8px; border-radius: 9px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.06); color: var(--text); display: flex; align-items: center; justify-content: center; gap: 5px; cursor: pointer; font-size: 12px; white-space: nowrap; }
.mtools svg, .mx svg { width: 18px; height: 18px; }
.mshell .body { flex: 1; min-height: 0; padding: 16px 18px 18px; }

/* картинка предмета, свойства-плашки, карточки */
.ithumb { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 9px; background: radial-gradient(ellipse at 50% 40%, rgba(140, 190, 205, 0.26), rgba(40, 60, 70, 0.18) 72%); }
span.ithumb.empty { display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--dim); border: 1px dashed rgba(255, 255, 255, 0.24); background: none; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chips i { font-style: normal; font-size: 11px; line-height: 1.5; padding: 1px 7px; border-radius: 20px; background: rgba(255, 255, 255, 0.08); color: var(--dim); white-space: nowrap; }
.chips i.best, .chips.delta i.up { background: rgba(127, 211, 107, 0.16); color: var(--good); }
.chips.delta i.dn { background: rgba(240, 98, 74, 0.16); color: #ff9c8a; }
.stars { color: #f2b441; letter-spacing: 1px; white-space: nowrap; font-size: 12px; }
.igrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; align-content: start; }
.icard { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 8px 8px 9px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.035); color: var(--text); text-align: left; cursor: pointer;
  transition: transform 0.12s, border-color 0.12s, background 0.12s; }
.icard b { font-size: 13px; line-height: 1.25; }
.icard .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding-top: 2px; }
.icard .foot u { text-decoration: none; font-weight: 700; color: var(--acc); font-size: 13px; }
.icard .foot u.ok { color: var(--good); }
.icard .foot u.no { color: var(--dim); font-weight: 600; }
.icard .foot s { text-decoration: none; color: var(--dim); font-size: 12px; }
.icard .lv { position: absolute; top: 12px; left: 12px; font-size: 10px; padding: 1px 6px; border-radius: 10px; background: rgba(10, 16, 20, 0.62); color: #d5dee2; }
.icard.sel, .icard.on { border-color: var(--acc); background: rgba(242, 180, 65, 0.09); box-shadow: 0 0 0 1px var(--acc) inset; }
.icard.on:disabled { opacity: 1; }
.icard.locked { opacity: 0.6; }
.icard.locked .ithumb { filter: saturate(0.25) brightness(0.7); }
.icard.add { border-style: dashed; color: var(--dim); }
.icard.add b { color: var(--text); }
@media (hover: hover) {
  .mnav button:not(.on):hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
  .icard:hover:not(:disabled), .fcard.pick:hover, .slotc:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.34); background: rgba(255, 255, 255, 0.07); }
  .icard.sel:hover, .fcard.sel:hover, .slotc.on:hover { border-color: var(--acc); }
  .mtools button:hover, .mx:hover, .cchip:not(.on):hover, .lchip:not(.on):hover, .fchips button:hover, .detbtn button:not(.primary):hover:not(:disabled), .fcard button:hover { background: rgba(255, 255, 255, 0.14); }
  .detbtn button.primary:hover:not(:disabled), .nethead button.primary:hover:not(:disabled) { background: #ffc85c; }
}

/* снасти: цепочка от удилища к крючку, под ней — что можно поставить в выбранное звено */
.gwrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.gmode { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.gmode small { color: var(--dim); font-size: 12px; }
.pillm { padding: 4px 12px; border-radius: 20px; background: rgba(242, 180, 65, 0.14); color: var(--acc); font-weight: 700; font-size: 12px; white-space: nowrap; }
.grig { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "chain chain" "extra tiles"; gap: 8px 14px; margin-bottom: 14px; }
.grig > .chain { grid-area: chain; }
.grig > .chain.extra { grid-area: extra; }
.grig > .tiles { grid-area: tiles; margin: 0; }
.chain { display: flex; align-items: stretch; }
.chain .link { flex: 0 0 10px; align-self: center; height: 2px; background: rgba(255, 255, 255, 0.28); }
.chain.extra { gap: 10px; }
.slotc { position: relative; flex: 1 1 0; min-width: 0; max-width: 136px; display: flex; flex-direction: column; gap: 3px; padding: 6px 6px 8px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.035); color: var(--text); text-align: left; cursor: pointer;
  transition: transform 0.12s, border-color 0.12s, background 0.12s; }
.chain.extra .slotc { flex: 0 0 104px; }
.slotc .qty { position: absolute; top: 10px; right: 10px; font-style: normal; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 10px; background: rgba(10, 16, 20, 0.72); color: #fff; }
.slotc small { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--dim); margin-top: 2px; }
.slotc b { font-size: 12px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.4em; }
.slotc.on { border-color: var(--acc); background: rgba(242, 180, 65, 0.1); box-shadow: 0 0 0 1px var(--acc) inset; }
.slotc.none { border-style: dashed; }
.gmain .igrid { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); }
.pkhead { display: flex; align-items: baseline; gap: 10px; margin: 0 0 8px; flex-wrap: wrap; }
.pkhead h3 { margin: 0; }
.pkhead small { color: var(--dim); font-size: 12px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.tile { border-radius: 10px; padding: 9px 10px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }
.tile b { display: block; font-size: 18px; font-variant-numeric: tabular-nums; }
.tile small { display: block; color: var(--dim); font-size: 11px; line-height: 1.3; }
.fitlist { display: grid; grid-template-columns: 1fr; gap: 4px; margin: 6px 0 8px; }
.fit { display: grid; grid-template-columns: 64px 1fr auto; gap: 8px; align-items: center; padding: 3px 8px 3px 4px; border-radius: 8px; background: rgba(255, 255, 255, 0.04); }
.fit canvas { width: 64px; height: 27px; display: block; }
.fit div { min-width: 0; }
.fit b { display: block; font-size: 12.5px; }
.fit small { display: block; color: var(--dim); font-size: 11px; line-height: 1.25; }
.fit.s0 { opacity: 0.55; }
.fit.s0 .stars { color: var(--dim); }

/* магазин и атлас: слева карточки, справа — выбранная крупно */
.ccats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.cchip { display: flex; align-items: center; gap: 6px; padding: 4px 12px 4px 5px; border-radius: 22px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.05); color: var(--text); cursor: pointer; font-size: 13px; white-space: nowrap; }
.cchip .cicon { width: 26px; height: 26px; display: block; }
.cchip.on { background: var(--acc); border-color: var(--acc); color: #1b1405; font-weight: 700; }
.cchip.on .cicon { filter: brightness(0.35) saturate(0.6); }
.ccats.flat .cchip { padding: 7px 14px; }
.shopwrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.shopmain { min-width: 0; }
.shopmain .igrid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
.idet { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #1e282f; overflow-y: auto; }
/* широкое окно: разделы на месте, а карточки и выбранный предмет листаются каждый сам по себе */
.panel:not(.compact) .body[data-tab="shop"], .panel:not(.compact) .body[data-tab="guide"] { display: flex; flex-direction: column; overflow: hidden; }
.panel:not(.compact) .shopwrap { flex: 1; min-height: 0; grid-template-rows: minmax(0, 1fr); }
.panel:not(.compact) .shopmain { overflow-y: auto; min-height: 0; max-height: 100%; align-self: stretch; padding-right: 4px; }      /* колонка с товарами листается сама, детали справа стоят на месте */
.panel:not(.compact) .idet { max-height: 100%; align-self: start; }
.idet .detbtn { position: sticky; bottom: -12px; margin: 4px -12px -12px; padding: 10px 12px 12px; background: #1e282f; box-shadow: 0 -8px 10px #1e282f; }
.idet h3 { margin: 2px 0 0; font-size: 16px; }
.idet h4 { margin: 6px 0 0; }
.idet p { margin: 0; color: var(--dim); font-size: 13px; line-height: 1.45; }
.detempty { text-align: center; color: var(--dim); padding: 28px 10px; }
.detempty .ithumb { width: 84px; aspect-ratio: 1; margin: 0 auto 10px; }
.detx, .sheetbg { display: none; }
.sbars { display: grid; gap: 7px; margin-top: 2px; }
.sbar { display: grid; grid-template-columns: 1fr auto; gap: 3px 8px; font-size: 12px; }
.sbar span { grid-area: 1 / 1; color: var(--dim); }
.sbar em { grid-area: 1 / 2; font-style: normal; }
.sbar .tr { grid-area: 2 / 1 / 3 / 3; position: relative; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); }
.sbar .tr i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: linear-gradient(90deg, #5fb0c8, #7fd3a0); }
.sbar .tr s { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; border-radius: 1px; background: #fff; }
.sbars small { margin-top: 2px; }
.fchips { display: flex; flex-wrap: wrap; gap: 5px; }
.fchips span, .fchips button { font-size: 12px; padding: 3px 9px; border-radius: 20px; background: rgba(255, 255, 255, 0.07); border: 1px solid transparent; color: var(--text); white-space: nowrap; }
.fchips button { cursor: pointer; border-color: var(--line); }
.fchips button.got { color: var(--good); }
.detbtn { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.detbtn button, .nethead button, .fcard button { background: rgba(255, 255, 255, 0.08); color: var(--text); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; padding: 10px 14px; font-weight: 600; }
.detbtn button.primary, .nethead button.primary { background: var(--acc); color: #1b1405; border-color: var(--acc); font-weight: 700; }
.detbtn small { text-align: center; }

/* садок и атлас рыб */
.nethead { display: flex; align-items: center; gap: 18px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); margin-bottom: 14px; flex-wrap: wrap; }
.ncap { flex: 1 1 220px; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: baseline; }
.capbar { grid-column: 1 / -1; height: 10px; border-radius: 5px; background: rgba(255, 255, 255, 0.1); overflow: hidden; margin-bottom: 6px; }
.capbar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #5fb0c8, #7fd3a0); }
.capbar.full i { background: var(--bad); }
.ncap b { font-size: 16px; font-variant-numeric: tabular-nums; }
.ncap small, .nval small { color: var(--dim); font-size: 12px; }
.nval b { display: block; font-size: 20px; color: var(--acc); font-variant-numeric: tabular-nums; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; align-content: start; }
.fcard { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 8px 10px 10px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.035); color: var(--text); text-align: left;
  transition: transform 0.12s, border-color 0.12s, background 0.12s; }
.fcard canvas, .bigfishc { width: 100%; height: auto; display: block; border-radius: 8px; background: radial-gradient(ellipse at center, rgba(120, 170, 190, 0.24), transparent 72%); }
.fcard b { font-size: 13.5px; }
.fcard small { color: var(--dim); font-size: 11.5px; }
.fcard.pick { cursor: pointer; }
.fcard.unknown canvas, .bigfishc.unknown { filter: brightness(0.22) saturate(0); opacity: 0.85; }
.fcard.sel { border-color: var(--acc); background: rgba(242, 180, 65, 0.09); box-shadow: 0 0 0 1px var(--acc) inset; }
.fcard.trophy { border-color: rgba(242, 180, 65, 0.6); }
.rib { position: absolute; top: 12px; right: 12px; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 10px; background: var(--acc); color: #1b1405; }
.frow { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.frow em { font-style: normal; color: var(--dim); font-size: 12.5px; }
.frow u { text-decoration: none; color: var(--acc); font-weight: 700; }
.fcard button { padding: 6px; margin-top: 3px; font-size: 12.5px; }
.emptyst { grid-column: 1 / -1; text-align: center; color: var(--dim); padding: 34px 16px; line-height: 1.5; }
.emptyst .cicon { width: 96px; height: 96px; opacity: 0.55; display: block; margin: 0 auto 8px; }
.emptyst b { display: block; color: var(--text); font-size: 16px; margin-bottom: 4px; }
.emptyst p { max-width: 46ch; margin: 0 auto; }
.ghead { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.ghead > div b { display: block; }
.ghead > div small { color: var(--dim); font-size: 12px; }
.ghead .ccats { margin: 0 0 0 auto; }
.ring { position: relative; flex: 0 0 58px; width: 58px; height: 58px; border-radius: 50%; background: conic-gradient(var(--good) calc(var(--v) * 1%), rgba(255, 255, 255, 0.12) 0); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: #1a242b; }
.ring b, .ring small { position: relative; line-height: 1.1; }
.ring b { font-size: 17px; }
.ghead .ring small { font-size: 9px; }
.tiles.two { margin: 2px 0 0; }
.times { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.times span { text-align: center; font-size: 12px; padding: 5px 0; border-radius: 8px; background: rgba(255, 255, 255, 0.05); color: var(--text); }
.times .hi { background: rgba(127, 211, 107, 0.18); color: var(--good); font-weight: 700; }
.times .lo { color: var(--dim); opacity: 0.55; }

/* водоёмы: лента мест, карта региона, карточка выбранного водоёма */
.lstrip { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 8px; scrollbar-width: thin; }
.lchip { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); color: var(--text); cursor: pointer; }
.lchip b { font-size: 12.5px; white-space: nowrap; }
.lchip small { font-size: 10.5px; color: var(--dim); white-space: nowrap; }
.lchip.on { border-color: var(--acc); background: rgba(242, 180, 65, 0.12); box-shadow: 0 0 0 1px var(--acc) inset; }
.lchip.here small { color: var(--good); }
.lchip.locked b { color: var(--dim); }
.mapwrap { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.mapcol { flex: 0 0 auto; width: min(100%, 58vh, 560px); }
.mapcol #worldmap { width: 100%; max-width: none; display: block; }
.locside { flex: 1 1 280px; min-width: 240px; display: flex; flex-direction: column; gap: 8px; }
.lochead h3 { margin: 0; font-size: 18px; }
.lochead small { color: var(--dim); font-size: 12px; }
.locside p { margin: 0; color: var(--dim); font-size: 13px; line-height: 1.5; }
.locside h4 { margin: 4px 0 0; }
.locside #locshape { margin: 0; }
.locside .tasks { margin: 0; }
.locside .detbtn { position: sticky; bottom: -18px; margin: 0 0 -18px; padding: 10px 0 18px; background: #171f25; box-shadow: 0 -8px 10px #171f25; }

/* узкое окно и телефон: одна колонка, карточка товара — шторкой снизу */
.panel.compact .shopwrap { grid-template-columns: minmax(0, 1fr); }
.panel.compact .chains { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 12px; padding-bottom: 4px; scrollbar-width: none; }
.panel.compact .chains::-webkit-scrollbar { display: none; }
.panel.compact .chain { display: contents; }
.panel.compact .chain .link { display: none; }
.panel.compact .slotc, .panel.compact .chain.extra .slotc { flex: 0 0 94px; }
.panel.compact .gside { margin-top: 16px; }
.panel.compact .idet { display: none; }
.panel.compact .idet.open { display: flex; position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 5; max-height: 84vh; max-height: 84dvh; border: 0; border-top: 1px solid var(--line); border-radius: 18px 18px 0 0; background: #1b252c;
  padding: 14px calc(14px + var(--sr, 0px)) 0 calc(14px + var(--sl, 0px)); box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.6); animation: sheet 0.2s ease-out; }
.panel.compact .idet.open.still { animation: none; }
.panel.compact .sheetbg { display: block; position: fixed; inset: 0; z-index: 4; background: rgba(4, 8, 10, 0.6); }
.panel.compact .detx { display: flex; align-items: center; justify-content: center; position: absolute; right: 10px; top: 10px; z-index: 1; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: rgba(10, 16, 20, 0.7); color: var(--text); font-size: 15px; cursor: pointer; }
.panel.compact .idet .ithumb.big, .panel.compact .bigfishc { width: min(100%, 36vh); margin: 0 auto; }
.panel.compact .idet.fish .bigfishc { width: min(100%, 60vh); }
.panel.compact .idet .detbtn { bottom: 0; margin: 4px -14px 0; padding: 10px 14px calc(12px + var(--sb, 0px)); background: #1b252c; box-shadow: 0 -10px 14px #1b252c; }
.panel.compact .idet.fish { padding-bottom: calc(14px + var(--sb, 0px)); }
.panel.compact .ghead .ccats { margin-left: 0; flex-basis: 100%; }
@keyframes sheet { from { transform: translateY(24%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sheetR { from { transform: translateX(24%); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 900px) {
  body:not(.touch) .mnav { flex-basis: 56px; padding: 10px 6px; }
  body:not(.touch) .mnav button { justify-content: center; }
  body:not(.touch) .mnav button span, body:not(.touch) .mnav kbd, body:not(.touch) .mlogo { display: none; }
  body:not(.touch) .mnav .badge { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; font-size: 10px; padding: 0 4px; }
  .mloc, .mlvl small, .mtools button span { display: none; }
  .mhead { gap: 8px; }
  .mwallet { margin-left: auto; }
}

/* телефон: меню во весь экран, разделы — нижней строкой под большим пальцем */
body.touch .mshell { flex-direction: column-reverse; }
body.touch .mnav { flex: 0 0 auto; flex-direction: row; gap: 0; padding: 4px calc(4px + var(--sr)) calc(4px + var(--sb)) calc(4px + var(--sl)); border-right: 0; border-top: 1px solid var(--line); background: #121a1f; }
body.touch .mlogo { display: none; }
body.touch .mnav button { flex: 1 1 0; min-width: 0; flex-direction: column; gap: 2px; padding: 6px 0 4px; }
body.touch .mnav button span { flex: none; font-size: 10px; }
body.touch .mnav button.on { background: rgba(242, 180, 65, 0.14); color: var(--acc); }
body.touch .mnav .badge { position: absolute; top: 2px; left: 50%; margin-left: 5px; min-width: 16px; height: 16px; font-size: 10px; padding: 0 4px; }
body.touch .mhead { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "title wallet x" "loc tools tools"; gap: 6px 8px; padding: calc(8px + var(--st)) calc(10px + var(--sr)) 8px calc(12px + var(--sl)); }
body.touch .mhead h2 { grid-area: title; font-size: 18px; }
body.touch .mloc { grid-area: loc; display: block; align-self: center; }
body.touch .mwallet { grid-area: wallet; gap: 8px; margin: 0; }
body.touch .mtools { grid-area: tools; justify-self: end; }
body.touch .mtools button span { display: inline; }
body.touch .mx { grid-area: x; }
body.touch .mlvl small { display: none; }
body.touch .mlvl i { width: 40px; }
body.touch .mtools button, body.touch .mx { height: 38px; min-width: 40px; }
body.touch .mshell .body { padding: 10px calc(10px + var(--sr)) 14px calc(10px + var(--sl)); }
body.touch .gmode small { display: none; }
body.touch .chains { margin: 0 -10px 12px; padding: 0 10px 4px; }
body.touch .ccats::-webkit-scrollbar, body.touch .lstrip::-webkit-scrollbar { display: none; }
body.touch .igrid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
body.touch .fgrid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
body.touch .ccats { flex-wrap: nowrap; overflow-x: auto; margin: 0 -10px 10px; padding: 0 10px 2px; scrollbar-width: none; }
body.touch .cchip { flex: 0 0 auto; min-height: 38px; }
body.touch .ghead .ccats { margin: 0 -10px; flex-basis: calc(100% + 20px); }
body.touch .lstrip { margin: 0 -10px 8px; padding: 0 10px 4px; scrollbar-width: none; }
body.touch .lchip { min-height: 42px; }
body.touch .locside .detbtn { bottom: -14px; margin: 0 0 -14px; padding: 10px 0 14px; background: #161e24; box-shadow: 0 -10px 14px #161e24; }
body.touch .fchips button { min-height: 34px; padding: 4px 12px; }
body.touch .detbtn button, body.touch .nethead button { min-height: 44px; }
body.touch .fcard button { min-height: 38px; }
body.touch .nethead { gap: 10px 14px; padding: 10px 12px; }
body.touch .nethead button { flex: 1 1 100%; }
@media (max-width: 560px) {
  body.touch .mapcol { width: 100%; }
  body.touch .locside { min-width: 0; flex-basis: 100%; }
}
@media (max-height: 460px) {
  /* телефон лёжа: разделы — узкой колонкой слева, шапка в одну строку, карточка товара выезжает справа */
  body.touch .mshell { flex-direction: row; }
  body.touch .mnav { flex-direction: column; width: calc(60px + var(--sl)); padding: calc(4px + var(--st)) 4px calc(4px + var(--sb)) calc(4px + var(--sl)); border-top: 0; border-right: 1px solid var(--line); }
  body.touch .mnav button { padding: 2px 0; justify-content: center; }
  body.touch .mnav button svg { width: 19px; height: 19px; }
  body.touch .mnav button span { font-size: 9px; }
  body.touch .mhead { display: flex; padding: calc(5px + var(--st)) calc(10px + var(--sr)) 5px 12px; }
  body.touch .mhead h2 { font-size: 16px; }
  body.touch .mloc { flex: 1; }
  body.touch .mshell .body { padding: 8px calc(10px + var(--sr)) 10px 10px; }
  body.touch .mapcol { width: min(100%, 86vh); }
  .panel.compact .idet.open { left: auto; top: 0; width: min(380px, 62vw); max-height: none; border-top: 0; border-left: 1px solid var(--line); border-radius: 18px 0 0 18px; padding-top: calc(12px + var(--st, 0px)); animation-name: sheetR; }
  .panel.compact .idet .ithumb.big, .panel.compact .bigfishc { width: min(100%, 44vh); }
  .panel.compact .idet .detbtn { flex-direction: row; flex-wrap: wrap; }
  .panel.compact .idet .detbtn button { flex: 1 1 0; width: auto; white-space: nowrap; }
  .panel.compact .idet .detbtn small { flex-basis: 100%; }
}

/* полосы прокрутки в меню — тонкие и тёмные */
.panel * { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.22) transparent; }
.panel ::-webkit-scrollbar { width: 8px; height: 8px; }
.panel ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 4px; }
.panel ::-webkit-scrollbar-track { background: transparent; }
.panel ::-webkit-scrollbar-button { display: none; }

/* помощь: советы — карточками */
.help ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.help li { margin: 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, 0.035); }
.help li > b:first-child { display: block; margin-bottom: 2px; font-size: 13.5px; }
.help table { border: 1px solid var(--line); border-radius: 10px; border-collapse: separate; border-spacing: 0; background: rgba(255, 255, 255, 0.035); }
.help td { padding: 7px 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.help tr:last-child td { border-bottom: 0; }

/* ---------- дом: гараж, двор, отдых, сборы в дорогу ---------- */
body:not(.athome) .homeonly, body.athome .wateronly { display: none; }
.note.info { background: rgba(255, 255, 255, 0.05); color: var(--dim); }
.tiles.three { grid-template-columns: repeat(3, 1fr); margin-bottom: 12px; }
.hgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; align-content: start; }
.hcard { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 12px; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.035); }
.hcard .ithumb { aspect-ratio: 5 / 3; align-self: start; }
.hbody { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.hbody b { font-size: 14px; }
.hbody p { margin: 0; color: var(--dim); font-size: 12.5px; line-height: 1.4; }
.hbody .foot { margin-top: auto; padding-top: 4px; }
.hbody .foot u { text-decoration: none; font-weight: 700; font-size: 13px; }
.hbody .foot u.ok { color: var(--good); }
.hbody .foot u.no { color: var(--dim); font-weight: 600; }
.hbody .foot button { background: rgba(255, 255, 255, 0.08); color: var(--text); border: 1px solid var(--line); border-radius: 9px; cursor: pointer; padding: 7px 14px; font-weight: 600; }
.hbody .foot button.primary { background: var(--acc); color: #1b1405; border-color: var(--acc); font-weight: 700; }
.hcard.cur { border-color: rgba(127, 211, 107, 0.5); }
.hcard.locked { opacity: 0.6; }
.hcard.locked .ithumb { filter: saturate(0.25) brightness(0.7); }
.hgrid.rest { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.hgrid.rest .hcard { grid-template-columns: minmax(0, 1fr); }
.checks { display: grid; gap: 4px; }
.chk { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start; padding: 5px 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.04); font-size: 12.5px; line-height: 1.35; }
.chk i { font-style: normal; font-weight: 800; text-align: center; width: 20px; height: 20px; line-height: 20px; border-radius: 50%; font-size: 12px; }
.chk.ok i { background: rgba(127, 211, 107, 0.18); color: var(--good); }
.chk.no i { background: rgba(240, 192, 74, 0.2); color: var(--warn); }
.chk.no span { color: var(--warn); }
.locside .tiles.two { margin: 0; }
@media (hover: hover) { .hbody .foot button:not(.primary):hover:not(:disabled) { background: rgba(255, 255, 255, 0.14); } .hbody .foot button.primary:hover:not(:disabled) { background: #ffc85c; } }
.panel.compact .tiles.three { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
.panel.compact .hgrid { grid-template-columns: minmax(0, 1fr); }
.panel.compact .hcard { grid-template-columns: 104px minmax(0, 1fr); }
.panel.compact .hgrid.rest { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel.compact .hgrid.rest .hcard { grid-template-columns: minmax(0, 1fr); }
body.touch .hbody .foot button { min-height: 40px; }
/* сенсорная кнопка «воспользоваться»: появляется рядом с ноутбуком, картой, весами, машиной, лодкой */
#touch.takerod .c-use, #touch.canuse.s-idle .c-use { display: flex; background: rgba(242, 180, 65, 0.42); border-color: var(--acc); }
.lstrip.mini { margin: 0 0 6px; padding-bottom: 4px; flex-wrap: wrap; overflow: visible; }
.lstrip.mini .lchip { padding: 3px 9px; border-radius: 16px; min-height: 0; }
.lstrip.mini .lchip b { font-size: 11.5px; font-weight: 600; }
body.touch .lstrip.mini { margin: 0 0 6px; padding: 0 0 4px; }
body.touch .lstrip.mini .lchip { min-height: 32px; }

/* атлас: шкалы характера рыбы */
.meters { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin: 8px 0 2px; }
.meters > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--mut, #a9b8b0); }
.meters b { display: inline-flex; gap: 3px; flex: none; }
.meters b i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.meters b i.on { background: #e7c66a; }
@media (max-width: 520px) { .meters { grid-template-columns: 1fr; } }

/* красная зона шкалы: от 80 % предела снасть изнашивается, черта — сам предел */
#tlimit::after, .bar .lim::after { content: ''; position: absolute; left: 44.4%; top: 0; bottom: 0; width: 2px; background: var(--bad); }
/* класс снасти и износ в окне снастей */
.slotc .kgc { display: block; font-style: normal; font-size: 10.5px; color: #e7c66a; margin-top: 1px; }
.wearb { display: block; height: 3px; margin: 3px 8px 0; border-radius: 2px; background: rgba(240, 98, 74, 0.45); overflow: hidden; }
.wearb i { display: block; height: 100%; background: var(--good); }
.chips i.wr { color: var(--warn); border-color: rgba(240, 192, 74, 0.5); }
.tile.warn b { color: var(--warn); }
.tile.bad b { color: var(--bad); }
.note.repair { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; }
.note.repair .rbtns { display: flex; flex-wrap: wrap; gap: 6px; }
.note.repair button { padding: 6px 10px; border-radius: 8px; border: 1px solid rgba(240, 192, 74, 0.5); background: rgba(240, 192, 74, 0.14); color: inherit; font: inherit; font-size: 12px; cursor: pointer; }
.note.repair button.main { background: var(--warn); color: #1b1608; font-weight: 700; }
.fit b u.ef { text-decoration: none; font-weight: 600; font-size: 10.5px; padding: 1px 6px; border-radius: 8px; margin-left: 4px; vertical-align: 1px; background: rgba(255, 255, 255, 0.1); color: var(--dim); }
.fit b u.ef.e0 { background: rgba(120, 200, 120, 0.2); color: #9fdc9f; }
.fit b u.ef.e1 { background: rgba(120, 200, 120, 0.12); color: #b8d8b8; }
.fit b u.ef.e2 { background: rgba(240, 192, 74, 0.16); color: var(--warn); }
.fit b u.ef.e3, .fit b u.ef.e4 { background: rgba(240, 98, 74, 0.18); color: #f0907a; }

/* окно снастей: вкладки удилищ и экипировка */
.ktabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.ktab { display: flex; align-items: center; gap: 8px; padding: 7px 12px 7px 8px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); color: inherit; font: inherit; font-size: 12.5px; cursor: pointer; max-width: 220px; }
.ktab b { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.1); font-size: 12px; }
.ktab span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ktab.on { border-color: #e7c66a; background: rgba(231, 198, 106, 0.14); }
.ktab.on b { background: #e7c66a; color: #1b1608; }
.ktab.empty span, .ktab.lock span { color: var(--dim); }
.ktab.lock { border-style: dashed; }
.ktab.eq { margin-left: auto; }
.khint { margin: -4px 0 8px; }
@media (max-width: 620px) { .ktab { padding: 6px 9px 6px 6px; max-width: 46vw; } .ktab.eq { margin-left: 0; } }
.eqgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 8px; margin: 0 0 10px; }
.eqgrid .slotc { width: auto; min-width: 0; }

/* экипировка: четыре блока — что даёт, чем обеспечено, выбор на месте */
.eqg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; }
.eqp { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px 12px; background: rgba(255, 255, 255, 0.03); min-width: 0; }
.eqp.open { grid-column: 1 / -1; border-color: rgba(231, 198, 106, 0.55); }
.eqp h4 { margin: 0 0 8px; }
.meter { display: grid; grid-template-columns: minmax(120px, auto) 1fr auto; gap: 10px; align-items: center; font-size: 12.5px; margin: 6px 0; }
.meter span { color: var(--dim); }
.meter b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.mbar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.mbar i { display: block; height: 100%; border-radius: inherit; background: var(--good); }
.meter.warn .mbar i { background: var(--warn); }
.meter.full .mbar i { background: var(--bad); }
.eqnote { color: var(--dim); font-size: 11.5px; line-height: 1.35; margin: 4px 0 9px; }
.erows { display: grid; gap: 6px; }
.eqp.open .erows { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.erow { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px; align-items: center; text-align: left; padding: 6px 12px 6px 6px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); color: inherit; font: inherit; cursor: pointer; }
.erow:hover { border-color: rgba(255, 255, 255, 0.3); }
.erow.on { border-color: #e7c66a; background: rgba(231, 198, 106, 0.1); }
.erow .ithumb.sm { width: 64px; height: 48px; aspect-ratio: auto; }
.erow span.ithumb.empty.sm { font-size: 20px; }
.erow .etxt { display: grid; min-width: 0; }
.erow small { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--dim); }
.erow b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.erow em { font-style: normal; font-size: 11.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.erow.none b { color: var(--dim); font-weight: 500; }
.erow u { text-decoration: none; font-size: 11.5px; color: #e7c66a; white-space: nowrap; }
.eqpick { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.kitrow { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 2px; }
.kitrow button { display: flex; align-items: center; gap: 7px; padding: 6px 11px 6px 7px; border-radius: 9px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); color: inherit; font: inherit; font-size: 12.5px; cursor: pointer; }
.kitrow button b { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.1); font-size: 11px; }
.kitrow button.on { border-color: #e7c66a; }
.kitrow button.on b { background: #e7c66a; color: #1b1608; }
.kitrow button.empty { color: var(--dim); border-style: dashed; }
.panel.compact .eqg { grid-template-columns: minmax(0, 1fr); }
.panel.compact .meter { grid-template-columns: minmax(96px, auto) 1fr auto; }

/* стрелка компаса на кнопке карты глубин: красный конец — север */
.needle { display: inline-block; width: 12px; height: 16px; vertical-align: -3px; background: linear-gradient(#ff6a55 0 50%, #dfe7ea 50% 100%); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); transition: transform 0.12s linear; }

/* магазин: фильтр по виду ловли и премиум за монеты */
.sfilt { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.sfilt button { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); color: inherit; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.sfilt button.on { background: #e7c66a; border-color: #e7c66a; color: #1b1608; }
.sfilt button.prem { border-color: rgba(231, 198, 106, 0.6); color: #e7c66a; }
.sfilt button.prem.on { color: #1b1608; }
.icard.prem { border-color: rgba(231, 198, 106, 0.55); background: linear-gradient(160deg, rgba(231, 198, 106, 0.12), rgba(255, 255, 255, 0.03) 60%); }
.icard .foot u.gold, .gold { color: #e7c66a; }
.mgold { display: inline-flex; align-items: center; gap: 4px; margin-left: 10px; font-weight: 700; color: #e7c66a; }

/* настройки */
.opts { display: grid; gap: 10px; max-width: 760px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 6px; }
.seg button { padding: 8px 16px; border-radius: 9px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); color: inherit; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.seg button.on { background: #e7c66a; border-color: #e7c66a; color: #1b1608; }
.opts h4 + .seg { margin-top: 0; }
.opts .eqnote + h4 { margin-top: 12px; }

/* ---------- сеть: рыбаки рядом ---------- */
.netonly { display: none !important; }
body.net .netonly { display: inline-flex !important; }
#names { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
#names .nm { position: absolute; transform: translate(-50%, -100%); padding: 2px 8px; border-radius: 10px; background: rgba(8, 14, 18, 0.45); color: #fff; font: 600 12px/1.3 inherit; white-space: nowrap; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8); }
#names .nm.say { background: rgba(242, 180, 65, 0.85); color: #1a1408; text-shadow: none; }
.crew { display: flex; flex-direction: column; gap: 12px; }
.crewg { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; align-items: start; }
.crewst { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--dim, #9fb0b8); }
.crewst i { width: 9px; height: 9px; border-radius: 50%; background: #6b7a82; flex: none; }
.crewst.online i { background: var(--good, #7fd36b); }
.crewst.offline i, .crewst.connecting i { background: var(--acc, #f2b441); }
.crewbox { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.crewbox h4 { margin: 0; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim, #9fb0b8); }
.crewbox h5 { margin: 4px 0 0; font-size: 12px; color: var(--dim, #9fb0b8); font-weight: 600; }
.crewbox p { margin: 0; }
.crewrow { display: flex; gap: 8px; flex-wrap: wrap; }
.crewrow input { flex: 1 1 140px; min-width: 0; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(0, 0, 0, 0.3); color: inherit; font: inherit; }
.crewrow input:focus { outline: none; border-color: var(--acc, #f2b441); }
.crewrow .big { flex: 0 0 auto; }
.crew button.big { padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.08); color: var(--text); font: inherit; font-size: 14px; cursor: pointer; }
.crew button.big:hover:not(:disabled) { background: rgba(255, 255, 255, 0.16); }
.crew button.big.primary { background: var(--acc); color: #1b1405; border-color: var(--acc); font-weight: 700; }
.crew button.big.primary:hover:not(:disabled) { background: #ffc85c; }
.crewlist { display: flex; flex-direction: column; gap: 6px; }
.crewman { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 8px 10px; border-radius: 9px; background: rgba(0, 0, 0, 0.22); }
.crewman.me { outline: 1px solid rgba(242, 180, 65, 0.5); }
.crewman small { color: var(--dim, #9fb0b8); text-align: right; }
.crewcode { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px; border-radius: 12px; background: rgba(242, 180, 65, 0.12); border: 1px dashed rgba(242, 180, 65, 0.6); }
.crewcode b { font-size: 34px; letter-spacing: 0.22em; font-variant-numeric: tabular-nums; user-select: all; }
.crewcode small { color: var(--dim, #9fb0b8); }
.crewopen { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border-radius: 10px; background: rgba(0, 0, 0, 0.22); }
.crewopen.on { outline: 1px solid rgba(127, 211, 107, 0.5); }
.crewopen div { display: flex; flex-direction: column; gap: 2px; flex: 1 1 180px; }
.crewopen small { color: var(--dim, #9fb0b8); }
.crewfeed { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.crewbox.look { grid-column: 1 / -1; }
.lookg { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
#lookCv { width: 200px; height: auto; aspect-ratio: 260 / 380; border-radius: 12px; background: linear-gradient(#2a3b44, #18242a); flex: none; }
#lookCv.none { display: none; }
.lkopts { flex: 1 1 280px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.lkrow { display: flex; flex-direction: column; gap: 5px; }
.lkrow small { color: var(--dim); font-size: 12px; }
.lkrow > div { display: flex; gap: 6px; flex-wrap: wrap; }
.lkb { padding: 7px 11px; border-radius: 9px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.06); color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }
.lkb.on { border-color: var(--acc); background: rgba(242, 180, 65, 0.18); }
.lkc { width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.25); cursor: pointer; padding: 0; }
.lkc.on { border-color: var(--acc); box-shadow: 0 0 0 2px rgba(242, 180, 65, 0.45); }
.crewst span { flex: 1 1 auto; }
.crewst .big { padding: 6px 12px !important; font-size: 13px !important; flex: none; }

/* ---------- чат озера ----------
   Три вида (класс на body ставит js/ui.js):
   chat-corner — десктоп, место есть: свежие строки в левом нижнем углу, гаснут сами; Enter открывает журнал и поле ввода;
   chat-side   — окно тесное или так выбрал игрок: язычок со счётчиком у левого края, панель выезжает сбоку;
   chat-sheet  — телефон: кнопка в верхней строке, лист снизу над клавиатурой. */
#chat { position: fixed; display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
#chathead, #chatrow { display: none; }
#chatlog { display: flex; flex-direction: column; gap: 3px; font-size: 13px; line-height: 1.35; }
#chatlog .cl { align-self: flex-start; max-width: 100%; padding: 2px 8px; border-radius: 8px; background: rgba(8, 14, 18, 0.52); color: var(--text); overflow-wrap: anywhere; transition: opacity 1.1s; }
#chatlog .cl.sys { color: #b9c6cb; font-style: italic; }
#chatlog .cl.me { color: var(--acc); }
#chatlog .cl b { font-weight: 700; }
#chatlog .cl.own b { color: var(--acc); }
/* покой: только свежие строки (сколько помещается в 80 пикселей — следит js/ui.js); старые не занимают места — пустой чат ничего не рисует */
#chat:not(.open) .cl { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
#chat:not(.open) .cl.fade { opacity: 0; }
#chat:not(.open) .cl.old { display: none; }
/* открыт: журнал с прокруткой и поле ввода */
#chat.open { pointer-events: auto; gap: 8px; padding: 8px 10px 10px; background: rgba(16, 23, 28, 0.93); border: 1px solid var(--line); border-radius: 12px; backdrop-filter: blur(6px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); }
#chat.open #chathead { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--dim); }
#chathead b { color: var(--text); font-size: 13px; }
#chathead span { flex: 1 1 auto; }
#chathead button { display: flex; align-items: center; justify-content: center; height: 26px; min-width: 26px; padding: 0 8px; border-radius: 7px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.06); color: var(--dim); font: inherit; font-size: 11px; cursor: pointer; }
#chathead button:hover { color: var(--text); background: rgba(255, 255, 255, 0.14); }
#chathead button svg { width: 14px; height: 14px; }
#chathead button:last-child { padding: 0; }
#chat.open #chatlog { flex: 1 1 auto; min-height: 44px; max-height: 240px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.28) transparent; user-select: text; -webkit-user-select: text; }
#chat.open #chatlog .cl { background: none; padding: 1px 2px; transition: none; }
#chat.open #chatlog:empty::before { content: 'Пока тихо. Напишите первым.'; color: var(--dim); font-size: 12px; padding: 2px; }
#chat.open #chatlog .cl b.who { cursor: pointer; }
#chat.open #chatlog .cl b.who:hover { text-decoration: underline; }
#chat.open #chatrow { display: flex; gap: 6px; }
#chatin { flex: 1 1 auto; min-width: 0; padding: 8px 10px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(0, 0, 0, 0.35); color: var(--text); font: inherit; font-size: 14px; outline: none; user-select: text; -webkit-user-select: text; }
#chatin:focus { border-color: var(--acc); }
#chatrow button { display: flex; align-items: center; justify-content: center; width: 38px; flex: none; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.08); color: var(--text); border-radius: 9px; cursor: pointer; padding: 0; }
#chatrow button svg { width: 18px; height: 18px; }
#chatrules, #chatmenu { padding: 10px 12px; border-radius: 10px; background: rgba(8, 14, 18, 0.6); border: 1px solid var(--acc); font-size: 13px; }
#chatrules p { margin: 0 0 8px; }
#chatrules div, #chatmenu { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
#chatrules button, #chatmenu button { border: 1px solid var(--line); background: rgba(255, 255, 255, 0.1); color: var(--text); border-radius: 8px; padding: 6px 10px; cursor: pointer; font: inherit; font-size: 13px; }
#chatrules button:first-child { background: var(--acc); color: #1b1405; border-color: var(--acc); font-weight: 700; }
/* кнопка чата: кружок в углу или язычок у края */
#chatbtn { position: fixed; display: flex; align-items: center; justify-content: center; padding: 0; color: #fff; border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(8, 14, 18, 0.5); cursor: pointer; transition: opacity 0.2s; }
#chatbtn svg { width: 16px; height: 16px; }
#chatn, #mchatn { min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--acc); color: #1b1405; font: 700 10px/16px system-ui, sans-serif; font-style: normal; text-align: center; }
#chatn:empty, #mchatn:empty { display: none; }
body.chat-open #chatbtn { display: none; }

/* в углу */
body.chat-corner #chat { left: 52px; bottom: 14px; width: min(330px, calc(50vw - 384px)); }
body.chat-corner #chat.open { left: 14px; width: min(368px, calc(50vw - 346px)); }
body.chat-corner #chatbtn { left: 14px; bottom: 14px; width: 30px; height: 30px; border-radius: 50%; opacity: 0.45; }
body.chat-corner #chatbtn:hover { opacity: 1; }
body.chat-corner #chatn { display: none; }
/* окошки «Поплавок» и «Под водой» стоят над чатом и не прыгают, когда в нём появляются строки */
body.chat-corner.inroom #leftdock { bottom: 106px; }
@media (max-width: 1280px) {
  /* шкалы снасти тянутся на всю ширину — чат встаёт прямо над ними */
  body.chat-corner #chat { bottom: 168px; width: min(330px, 44vw); }
  body.chat-corner #chat.open { width: min(368px, 60vw); }
  body.chat-corner #chatbtn { bottom: 168px; }
  body.chat-corner.inroom #leftdock { bottom: 260px; }
}

/* язычок у левого края */
body.chat-side #chatbtn { left: 0; bottom: 14px; height: 34px; min-width: 40px; padding: 0 10px 0 9px; gap: 6px; border-left: 0; border-radius: 0 10px 10px 0; opacity: 0.8; }
body.chat-side #chatbtn:hover { opacity: 1; }
/* окошки «Поплавок» и «Под водой» стоят над язычком */
body.chat-side.inroom #leftdock { bottom: 58px; }
body.chat-side #chat { left: 0; top: calc(var(--topH, 60px) + 18px); bottom: 24px; width: min(340px, 86vw); transform: translateX(-104%); visibility: hidden; transition: transform 0.22s ease, visibility 0s 0.22s; }
body.chat-side #chat.open { transform: none; visibility: visible; transition: transform 0.22s ease, visibility 0s; border-left: 0; border-radius: 0 12px 12px 0; }
body.chat-side #chat.open #chatlog { max-height: none; }
@media (max-width: 1280px) {
  body.chat-side #chat { bottom: 168px; }
  body.chat-side #chatbtn { bottom: 168px; }
  body.chat-side.inroom #leftdock { bottom: 212px; }
}

/* лист на телефоне */
body.chat-sheet #chatbtn { display: none; }
#mchat { position: relative; }
#mchat svg { width: 19px; height: 19px; }
#mchatn { position: absolute; top: -5px; right: -5px; }
#chatshade { position: fixed; inset: 0; pointer-events: auto; background: rgba(0, 0, 0, 0.22); }
body.chat-sheet #chat { left: 0; right: 0; bottom: 0; max-height: 62vh; transform: translateY(106%); visibility: hidden; transition: transform 0.2s ease, visibility 0s 0.2s; }
body.chat-sheet #chat.open { transform: none; visibility: visible; transition: transform 0.2s ease, visibility 0s; border-width: 1px 0 0; border-radius: 14px 14px 0 0; background: rgba(20, 28, 34, 0.97); backdrop-filter: none;
  padding: 8px calc(10px + var(--sr, 0px)) calc(10px + var(--sb, 0px)) calc(10px + var(--sl, 0px)); }
body.chat-sheet #chat.open #chatlog { max-height: none; min-height: 56px; font-size: 14px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
body.chat-sheet #chathead button { height: 32px; min-width: 32px; }
body.chat-sheet #chatin { font-size: 16px; padding: 9px 12px; }      /* мельче 16 пикселей — айфон приближает страницу при вводе */
body.chat-sheet #chatrow button { width: 46px; }
@media (max-height: 460px) { body.chat-sheet #chat.open { gap: 5px; padding-top: 5px; } body.chat-sheet #chat.open #chatlog { min-height: 34px; } }
/* строка чата среди уведомлений (телефон, лист закрыт) */
.toast.chatt { pointer-events: auto; cursor: pointer; border-left-color: #6fb7d6; text-align: left; max-width: 100%; }
.toast.chatt span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.toast.chatt.sys { color: var(--dim); font-style: italic; }

/* ---------- обучение: карточка-задание ---------- */
#tut { position: fixed; right: 12px; top: calc(var(--topH, 60px) + 22px); width: min(300px, 40vw); padding: 9px 12px 11px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); border-left: 3px solid var(--acc);
  backdrop-filter: blur(6px); font-size: 13px; line-height: 1.42; pointer-events: none; }
#tut.pop { animation: tutpop 0.8s ease-out; }
@keyframes tutpop { 0% { box-shadow: 0 0 0 0 rgba(242, 180, 65, 0.9); border-color: var(--acc); } 100% { box-shadow: 0 0 0 16px rgba(242, 180, 65, 0); } }
#tut .th { display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--dim); }
#tut .th span { flex: 1 1 auto; }
#tut .tskip { border: 0; background: none; padding: 2px 0; color: var(--dim); font: inherit; font-size: 11px; text-transform: none; letter-spacing: 0; text-decoration: underline; cursor: pointer; }
#tut .tskip:hover { color: var(--text); }
#tut .tbar { height: 3px; margin: 4px 0 6px; border-radius: 2px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
#tut .tbar i { display: block; height: 100%; background: var(--acc); transition: width 0.4s; }
#tut .tt { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
#tut .tx { color: #d5dee2; }
#tut .tx kbd { color: var(--text); margin: 0 1px; }
#tut .nb { white-space: nowrap; }
#tut .tok { margin-top: 8px; padding: 6px 14px; border-radius: 8px; border: 1px solid var(--acc); background: var(--acc); color: #1b1405; font: inherit; font-weight: 700; cursor: pointer; }
@media (max-width: 1280px) { body.tut:not(.touch) #toasts { width: max(240px, min(560px, calc(100vw - 660px))); } }
/* телефон: карточка — над кнопками, там же, где строка подсказок; строка поднимается над ней */
body.touch #tut { right: 8%; left: 8%; width: auto; top: auto; bottom: calc(204px + var(--sb)); padding: 7px 10px 8px; font-size: 12px; line-height: 1.35; background: rgba(12, 18, 22, 0.78); }
body.touch #tut .tt { font-size: 13px; }
body.touch #tut .tskip { padding: 6px 0 6px 12px; }
body.touch.tut #hint { bottom: calc(212px + var(--tutH, 70px) + var(--sb)); }
@media (max-height: 460px) {
  /* телефон лёжа: середина экрана — поплавок, поэтому карточка встаёт справа вверху, а уведомления — под ней */
  body.touch #tut { left: auto; right: calc(8px + var(--sr)); width: 250px; bottom: auto; top: calc(var(--mtop) + 12px + var(--st)); }
  body.touch.tut #hint { bottom: auto; top: calc(var(--mtop) + 26px + var(--st)); right: calc(270px + var(--sr)); }
  body.touch.tut #toasts { left: calc(8px + var(--sl)); right: auto; align-items: flex-start; top: calc(var(--mtop) + 136px + var(--st)); }
}
/* подсказка обучения внутри окна меню */
.tutnote { margin: 0; padding: 8px 16px; background: rgba(242, 180, 65, 0.12); border-bottom: 1px solid rgba(242, 180, 65, 0.35); color: #e9dcbc; font-size: 13px; line-height: 1.4; }
.tutnote b { color: var(--acc); }
.note.tut { background: rgba(242, 180, 65, 0.12); color: #e9dcbc; }
.optrow { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 6px; }
.optrow button { padding: 8px 16px; border-radius: 9px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); color: inherit; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.optrow button:hover { background: rgba(255, 255, 255, 0.12); }
/* ---------- новый рыбак ---------- */
.create { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin: 0 auto; }
.create h2 { margin: 0; font-size: 26px; }
.create .dimtxt b { color: var(--text); }
.create .crewrow { display: flex; gap: 8px; flex-wrap: wrap; }
.create .crewrow input { flex: 1 1 160px; min-width: 0; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(0, 0, 0, 0.3); color: inherit; font: inherit; font-size: 16px; }
.create .crewrow input:focus { outline: none; border-color: var(--acc); }
.create button.big { padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.08); color: var(--text); font: inherit; font-size: 14px; cursor: pointer; }
.create button.big.primary { background: var(--acc); color: #1b1405; border-color: var(--acc); font-weight: 700; font-size: 16px; padding: 12px 22px; }
.create .createbtn { justify-content: center; margin-top: 4px; }
.charname { font-size: 22px; font-weight: 800; }

/* ================= ОФОРМЛЕНИЕ «СЕВЕРНЫЙ РАССВЕТ» =================
   Тёмный бирюзово-угольный фон, состаренная латунь и тёплое золото, янтарный свет.
   Значки, рамки, пластины кнопок, рыбы, предметы и пейзажи — готовые картинки из assets/ (см. js/art.js, tools/art/).
   Этот блок идёт последним и перекрывает прежние цвета и подложки; размеры и раскладка — выше. */
:root {
  --bg: rgba(10, 20, 24, 0.82);
  --bg2: rgba(14, 26, 31, 0.96);
  --line: rgba(217, 185, 121, 0.24);
  --text: #ece6d8;
  --dim: #9fb0ae;
  --acc: #f0b44c;
  --good: #7fd08a;
  --warn: #f0b44c;
  --bad: #e2604f;
  --brass: #b08d57;
  --brass2: #e3c688;
  --teal: #1f6f6b;
  --ink: #0b1418;
  --serif: Georgia, 'Times New Roman', 'PT Serif', serif;
}
html, body { background: #0b1418; }

/* ---------- значки и рисунки ---------- */
.ic { width: 1.4em; height: 1.4em; object-fit: contain; vertical-align: -0.32em; flex: 0 0 auto; pointer-events: none; user-select: none; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.55)); }
.ic.in { width: 1.15em; height: 1.15em; vertical-align: -0.2em; }
.ic.off { filter: grayscale(1) brightness(0.5); opacity: 0.65; }
.art { display: block; max-width: 100%; object-fit: contain; pointer-events: none; user-select: none; }
img.noimg { visibility: hidden; }
kbd { border-color: rgba(217, 185, 121, 0.35); background: rgba(8, 16, 19, 0.75); color: var(--brass2); border-radius: 4px; }

/* ---------- заставка: запуск и дорога ---------- */
#loading { background: #0b1418 var(--sbg, none) center / cover no-repeat; display: flex; align-items: flex-end; justify-content: center; z-index: 30; opacity: 1; transition: opacity 0.6s ease; }
#loading.boot { --sbg: url(../assets/ui/splash.webp); align-items: stretch; justify-content: flex-start; }
#loading.out { opacity: 0; pointer-events: none; }
#loading .sveil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 12, 15, 0.1) 0%, rgba(6, 12, 15, 0) 40%, rgba(6, 12, 15, 0.82) 100%); pointer-events: none; }
#loading.boot .sveil { background: linear-gradient(100deg, rgba(6, 12, 15, 0.62) 0%, rgba(6, 12, 15, 0.28) 34%, rgba(6, 12, 15, 0) 58%), linear-gradient(180deg, rgba(6, 12, 15, 0) 62%, rgba(6, 12, 15, 0.55) 100%); }
#loading .sbox { position: relative; text-align: center; padding: 0 24px calc(7vh + env(safe-area-inset-bottom, 0px)); max-width: 760px; }
#loading.boot .sbox { text-align: left; padding: 5vh 0 0 5vw; display: flex; flex-direction: column; align-items: flex-start; max-width: min(46vw, 620px); }
#slogo { display: none; width: min(44vw, 560px); height: auto; max-height: 40vh; object-fit: contain; object-position: left top; filter: drop-shadow(0 8px 26px rgba(0, 0, 0, 0.65)); user-select: none; }
#loading.boot #slogo { display: block; }
#loadTitle { margin: 0 0 6px; font: 400 clamp(26px, 4.2vw, 46px) / 1.1 var(--serif); letter-spacing: 0.06em; text-transform: uppercase; color: var(--brass2); text-shadow: 0 2px 16px rgba(0, 0, 0, 0.9); }
#loading.boot #loadTitle { display: none; }
#loading p { margin: 0; color: #e6e0d2; max-width: 60ch; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9); }
#loadText { font-size: 15px; min-height: 22px; letter-spacing: 0.02em; }
#loading .sload { display: none; width: min(36vw, 420px); height: 10px; margin: 3.2vh 0 10px 4%; border-radius: 6px; background: rgba(6, 12, 15, 0.7); box-shadow: 0 0 0 1px rgba(227, 198, 136, 0.55), 0 0 0 3px rgba(6, 12, 15, 0.55); overflow: hidden; }
#loading.boot .sload { display: block; }
#loading.boot.ready .sload, #loading.boot.fail .sload { display: none; }
#loadBar { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(180deg, #ffe6a6, #f0b44c 45%, #b87a1e); box-shadow: 0 0 12px rgba(240, 180, 76, 0.7); transition: width 0.35s ease; }
#loading.boot #loadText { margin-left: 4%; }
#loading .swish { display: none; margin: 14px 0 0 4%; font: italic 400 17px / 1.3 var(--serif); color: var(--brass2); letter-spacing: 0.03em; }
#loading.boot .swish { display: block; }
#playBtn, .sretry { margin: 3.4vh 0 0 4%; min-width: 290px; padding: 19px 40px; font: 700 24px / 1 var(--serif); letter-spacing: 0.1em; text-transform: uppercase; color: #2b1702; cursor: pointer;
  background: none; border: 1px solid transparent; border-image: url(../assets/ui/btn_primary.webp) 60 fill / 26px stretch; text-shadow: 0 1px 0 rgba(255, 236, 190, 0.6); filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.6)); transition: transform 0.12s ease, filter 0.12s ease; }
#playBtn:hover, #playBtn:focus-visible, .sretry:hover { transform: translateY(-1px) scale(1.02); filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.65)) brightness(1.1); outline: none; }
#playBtn:active { transform: translateY(1px); filter: brightness(0.94); }
#loading:not(.ready) #playBtn { display: none; }
.sretry { font-size: 16px; min-width: 0; }
@media (max-aspect-ratio: 4/5) {
  /* телефон стоя: своя картина, логотип сверху по центру, кнопка внизу */
  #loading.boot { --sbg: url(../assets/ui/splash_tall.webp); }
  #loading.boot .sveil { background: linear-gradient(180deg, rgba(6, 12, 15, 0.5) 0%, rgba(6, 12, 15, 0) 30%, rgba(6, 12, 15, 0) 62%, rgba(6, 12, 15, 0.78) 100%); }
  #loading.boot .sbox { max-width: none; width: 100%; height: 100%; padding: calc(4vh + env(safe-area-inset-top, 0px)) 6vw calc(6vh + env(safe-area-inset-bottom, 0px)); align-items: center; text-align: center; }
  #slogo { width: min(82vw, 440px); max-height: 30vh; object-position: center top; }
  #loading .sload { width: 70vw; margin: auto 0 10px; }
  #loading.boot #loadText, #loading .swish { margin-left: 0; }
  #loading.boot.ready #loadText { margin-top: auto; }
  #playBtn, .sretry { margin: 18px 0 0; min-width: 0; width: min(78vw, 340px); }
  #loading .swish { order: 9; }
}
@media (max-height: 520px) and (min-aspect-ratio: 4/5) {
  /* телефон лёжа */
  #loading.boot .sbox { padding-top: 3vh; max-width: 46vw; }
  #slogo { width: min(38vw, 360px); max-height: 46vh; }
  #playBtn { padding: 11px 26px; font-size: 17px; margin-top: 2vh; }
  #loading .swish { font-size: 14px; margin-top: 8px; }
}

/* ---------- верхняя панель ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid transparent; border-image: url(../assets/ui/chip.webp) 58 fill / 11px stretch; border-radius: 0; padding: 6px 12px;
  backdrop-filter: none; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7); min-height: 32px; }
.pill .ic { width: 20px; height: 20px; vertical-align: middle; }
.pill.btn { transition: filter 0.12s ease, transform 0.12s ease; }
.pill.btn:hover { background: none; filter: brightness(1.22); transform: translateY(-1px); }
.pill.btn:active { transform: translateY(1px); filter: brightness(0.92); }
.pill.money { color: var(--brass2); }
.pill.lvl #lvl { color: var(--brass2); font-family: var(--serif); letter-spacing: 0.03em; }
.xpbar { height: 7px; background: rgba(6, 12, 15, 0.75); box-shadow: 0 0 0 1px rgba(227, 198, 136, 0.35); }
#xpfill, .mlvl u { background: linear-gradient(180deg, #ffe6a6, #f0b44c 50%, #b87a1e); }
.needle { display: inline-flex; width: 20px; height: 20px; border: 0; background: none; align-items: center; justify-content: center; }
.needle::before, .needle::after { display: none; }
.needle .ic { width: 18px; height: 18px; transform: rotate(-90deg); }

/* ---------- уведомления ---------- */
.toast { position: relative; background: linear-gradient(180deg, rgba(20, 36, 42, 0.96), rgba(10, 20, 24, 0.96)); border: 1px solid rgba(217, 185, 121, 0.38); border-left: 1px solid rgba(217, 185, 121, 0.38); border-radius: 6px;
  padding: 8px 16px 8px 40px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05); }
.toast::before { content: ''; position: absolute; left: 10px; top: 50%; width: 22px; height: 22px; margin-top: -11px; background: url(../assets/ui/info.webp) center / contain no-repeat; }
.toast.good { border-color: rgba(127, 208, 138, 0.55); }
.toast.good::before { background-image: url(../assets/ui/check.webp); }
.toast.warn { border-color: rgba(240, 180, 76, 0.6); }
.toast.warn::before, .toast.bad::before { background-image: url(../assets/ui/warn.webp); }
.toast.bad { border-color: rgba(226, 96, 79, 0.7); }
.toast.level { border-color: rgba(240, 180, 76, 0.9); color: var(--brass2); font-family: var(--serif); letter-spacing: 0.02em; box-shadow: 0 6px 22px rgba(0, 0, 0, 0.55), 0 0 18px rgba(240, 180, 76, 0.25); }
.toast.level::before { background-image: url(../assets/ui/star.webp); }
.toast.chatt::before { background-image: url(../assets/ui/chat.webp); }
#bigmsg { font-family: var(--serif); letter-spacing: 0.05em; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85), 0 0 34px rgba(240, 180, 76, 0.85); }

/* ---------- шкалы снасти ---------- */
#hud, #tackle { background: linear-gradient(180deg, rgba(16, 30, 35, 0.86), rgba(8, 16, 20, 0.88)); border: 1px solid transparent; border-image: url(../assets/ui/frame.webp) 44 / 13px stretch; border-radius: 2px; backdrop-filter: blur(6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); }
#hud.fight { border-color: transparent; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 26px rgba(240, 180, 76, 0.28); }
#hud { padding: 11px 18px 12px; }
#tackle { padding: 10px 14px; color: #c9d2cf; }
.row .lab { color: var(--brass2); font-family: var(--serif); letter-spacing: 0.04em; }
.bar { background: rgba(4, 9, 11, 0.7); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(217, 185, 121, 0.28); }
#tfill, #rfill, #kfill { background: linear-gradient(180deg, #57c7bd, #1f8f88 55%, #17625e); }
#tfill.warn, #rfill.warn, #kfill.warn { background: linear-gradient(180deg, #ffe6a6, #f0b44c 50%, #b87a1e); }
#tfill.bad, #rfill.bad, #kfill.bad { background: linear-gradient(180deg, #ff9d8c, #e2604f 50%, #9d2f22); }
#tlimit, .bar .lim { border-left-color: rgba(226, 96, 79, 0.75); background: repeating-linear-gradient(135deg, rgba(226, 96, 79, 0.4) 0 4px, rgba(226, 96, 79, 0.14) 4px 8px); }
#tdrag { border-top-color: var(--brass2); filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.8)); }
#sfill { background: linear-gradient(180deg, #f3e3b8, #cfae6c); }
#swin { background: rgba(87, 199, 189, 0.32); border-color: rgba(87, 199, 189, 0.95); }
#smark { background: #fff7df; box-shadow: 0 0 6px rgba(255, 240, 200, 0.95); }
#power { background: rgba(4, 9, 11, 0.78); border-color: rgba(217, 185, 121, 0.6); box-shadow: 0 0 0 2px rgba(4, 9, 11, 0.55); }
#powerfill { background: linear-gradient(to top, #1f8f88, #f0b44c 62%, #e2604f); background-size: 100% 170px; background-position: bottom; }
#pzone { background: rgba(87, 199, 189, 0.4); border-color: #57c7bd; }
#floatcam, #sonar { border: 2px solid rgba(227, 198, 136, 0.75); border-radius: 3px; box-shadow: 0 0 0 1px rgba(4, 9, 11, 0.8), 0 0 0 4px rgba(4, 9, 11, 0.35), 0 6px 20px rgba(0, 0, 0, 0.55); }
#floatcam span, #sonar span { font-family: var(--serif); letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass2); font-size: 11px; top: -20px; }

/* ---------- окна ---------- */
#modal { background: linear-gradient(180deg, rgba(5, 11, 14, 0.74), rgba(5, 11, 14, 0.9)), #0b1418 url(../assets/loc/menu_bg.webp) center / cover no-repeat; backdrop-filter: none; }
#catch { background: radial-gradient(ellipse at center, rgba(5, 11, 14, 0.35), rgba(5, 11, 14, 0.78)); }
.panel { background: linear-gradient(180deg, rgba(14, 27, 32, 0.86), rgba(8, 16, 20, 0.93)), #0f1c21 url(../assets/ui/tex_panel.webp) center / 384px; border: 1px solid transparent; border-image: url(../assets/ui/frame.webp) 44 / 20px stretch;
  border-radius: 3px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(0, 0, 0, 0.7); }
.panel.small { padding: 24px 28px 24px; }
h2, .mhead h2 { font-family: var(--serif); font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass2); text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6); }
h3 { font-family: var(--serif); font-weight: 400; font-size: 17px; letter-spacing: 0.04em; color: var(--brass2); }
h4 { color: #b9a67c; letter-spacing: 0.1em; }
h4::after { content: ''; display: block; height: 1px; margin-top: 5px; background: linear-gradient(90deg, rgba(217, 185, 121, 0.45), rgba(217, 185, 121, 0)); }
.note { border-radius: 4px; border: 1px solid transparent; }
.note.warn { background: rgba(240, 180, 76, 0.1); border-color: rgba(240, 180, 76, 0.3); }
.note.good { background: rgba(127, 208, 138, 0.1); border-color: rgba(127, 208, 138, 0.3); }
.note.info { border-color: rgba(87, 199, 189, 0.3); }

/* пластины кнопок: бирюзовая — обычная, янтарная — главная, красная — опасная */
.cbtns button, .sum button, .detbtn button, .nethead button, .fcard button, .hbody .foot button, .note.repair button, .optrow button, #chatrules button, #chatmenu button, #tut .tok, .crew button.big, .create button.big, .panel .pbtn {
  background: none; border: 1px solid transparent; border-image: url(../assets/ui/btn.webp) 60 fill / 12px stretch; border-radius: 0; color: #e8f4f0; padding: 8px 16px; font-weight: 600; letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75); cursor: pointer; transition: filter 0.12s ease, transform 0.12s ease; }
.cbtns button:hover:not(:disabled), .sum button:hover:not(:disabled), .detbtn button:hover:not(:disabled), .nethead button:hover:not(:disabled), .fcard button:hover:not(:disabled), .hbody .foot button:hover:not(:disabled),
.note.repair button:hover:not(:disabled), .optrow button:hover:not(:disabled), #chatrules button:hover, #chatmenu button:hover, #tut .tok:hover, .crew button.big:hover:not(:disabled), .create button.big:hover:not(:disabled) { background: none; filter: brightness(1.2); transform: translateY(-1px); }
.panel button:active:not(:disabled) { transform: translateY(1px); }
.panel button:disabled { opacity: 1; filter: grayscale(0.85) brightness(0.62); }
button.big, .crew button.big, .create button.big { padding: 12px 24px; font-size: 15px; border-image-width: 16px !important; letter-spacing: 0.05em; border-radius: 0; }
.create button.big.primary { padding: 14px 30px; font-size: 16px; }
.crewst .big { border-image-width: 11px !important; }
button.primary, .detbtn button.primary, .nethead button.primary, .hbody .foot button.primary, .note.repair button.main, .cbtns button.primary, #chatrules button:first-child, #tut .tok, .crew button.big.primary, .create button.big.primary {
  border-image-source: url(../assets/ui/btn_primary.webp); background: none; color: #2b1702; border-color: transparent; font-weight: 700; text-shadow: 0 1px 0 rgba(255, 236, 190, 0.55); }
.cbtns button.primary:hover:not(:disabled) { background: none; }
button[data-act="reset"], button.danger { border-image-source: url(../assets/ui/btn_danger.webp) !important; color: #ffe9e3 !important; }
.panel button:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.panel input[type="text"], .panel input:not([type]), #chatin, .panel input[type="search"] { background: none; border: 1px solid transparent; border-image: url(../assets/ui/field.webp) 58 fill / 11px stretch; border-radius: 0; color: var(--text); padding: 9px 14px; font: inherit; outline: none; }
.panel input:focus, #chatin:focus { filter: brightness(1.25); }
.panel input::placeholder, #chatin::placeholder { color: #7f8f8d; }

/* шапка и разделы меню */
.mnav { background: linear-gradient(180deg, rgba(6, 13, 16, 0.55), rgba(6, 13, 16, 0.3)); border-right: 1px solid rgba(217, 185, 121, 0.2); }
.mlogo { display: flex; align-items: center; gap: 8px; font: 400 14px / 1.15 var(--serif); letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass2); padding: 4px 8px 14px; }
.mlogo img { width: 40px; height: 40px; flex: 0 0 auto; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6)); }
.mnav button { border: 1px solid transparent; border-radius: 0; transition: filter 0.12s ease; }
.mnav button .ic { width: 24px; height: 24px; }
.mnav button:hover { filter: brightness(1.2); }
.mnav button.on { background: none; border-image: url(../assets/ui/tab_on.webp) 58 fill / 11px stretch; color: #fff7df; }
.mnav .badge { background: #c9402f; color: #fff; box-shadow: 0 0 0 1px rgba(255, 220, 160, 0.7); }
.mhead { border-bottom: 1px solid rgba(217, 185, 121, 0.22); background: linear-gradient(180deg, rgba(6, 13, 16, 0.4), rgba(6, 13, 16, 0)); }
.mlvl b { font-family: var(--serif); color: #2b1702; background: radial-gradient(circle at 35% 30%, #ffe6a6, #d9a441 60%, #8d5d14); box-shadow: 0 0 0 1px rgba(4, 9, 11, 0.8), 0 0 0 2px rgba(227, 198, 136, 0.5); }
.mlvl i { background: rgba(4, 9, 11, 0.75); box-shadow: 0 0 0 1px rgba(227, 198, 136, 0.3); }
.mmoney { display: inline-flex; align-items: center; gap: 5px; color: var(--brass2); }
.mmoney .ic { width: 20px; height: 20px; }
.mtools button, .mx { border: 1px solid rgba(217, 185, 121, 0.3); border-radius: 4px; background: rgba(6, 13, 16, 0.5); color: var(--text); }
.mtools button:hover, .mx:hover { border-color: rgba(227, 198, 136, 0.8); filter: brightness(1.2); }
.mtools .ic, .mx .ic { width: 20px; height: 20px; }

/* карточки, ячейки, плитки */
.icard, .fcard, .hcard, .slotc, .tile, .erow, .eqp, .task, .crewbox, .gmode, .ring { border-radius: 4px; border: 1px solid rgba(217, 185, 121, 0.2); background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(0, 0, 0, 0.16)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04); }
.icard, .fcard.pick, .slotc, .erow { transition: border-color 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease; }
.icard:hover:not(:disabled), .fcard.pick:hover, .slotc:hover, .erow:hover { border-color: rgba(227, 198, 136, 0.65); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06); transform: translateY(-1px); }
.icard.sel, .icard.on, .fcard.sel, .slotc.on, .erow.on, .hcard.cur { border-color: var(--acc); box-shadow: 0 0 0 1px rgba(240, 180, 76, 0.55), 0 0 18px rgba(240, 180, 76, 0.22), inset 0 0 22px rgba(240, 180, 76, 0.07); background: linear-gradient(180deg, rgba(240, 180, 76, 0.1), rgba(0, 0, 0, 0.16)); }
.icard.prem { border-color: rgba(240, 195, 106, 0.55); background: linear-gradient(180deg, rgba(240, 195, 106, 0.1), rgba(0, 0, 0, 0.16)); }
.icard b, .fcard b, .hbody b, .slotc b { letter-spacing: 0.01em; }
.icard .lv { background: rgba(4, 9, 11, 0.8); color: var(--brass2); border: 1px solid rgba(217, 185, 121, 0.35); border-radius: 3px; top: 13px; left: 13px; z-index: 1; }
.icard .foot u { color: var(--brass2); display: inline-flex; align-items: center; gap: 4px; }
.icard .foot u.ok, .hbody .foot u.ok { color: var(--good); display: inline-flex; align-items: center; gap: 4px; }
.hbody .foot u.no, .icard .foot u.no { display: inline-flex; align-items: center; gap: 4px; }
.chips i { border-radius: 3px; border: 1px solid rgba(217, 185, 121, 0.16); background: rgba(4, 9, 11, 0.4); }
.tile b { font-family: var(--serif); font-weight: 400; color: var(--brass2); letter-spacing: 0.02em; }
.rib { border-radius: 2px; background: linear-gradient(180deg, #ffe6a6, #f0b44c 55%, #b87a1e); color: #2b1702; letter-spacing: 0.06em; text-transform: uppercase; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5); z-index: 1; }
.stars { display: inline-flex; gap: 1px; align-items: center; }
.stars .ic { width: 14px; height: 14px; vertical-align: middle; }

/* ячейка с рисунком предмета: рамка по ступени вещи */
.ithumb { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: auto; aspect-ratio: 4 / 3; padding: 7% 9%; border: 1px solid transparent; border-image: url(../assets/ui/slot.webp) 56 fill / 15px stretch;
  border-radius: 0; background: none; }
.ithumb.t1 { border-image-source: url(../assets/ui/slot_green.webp); }
.ithumb.t2 { border-image-source: url(../assets/ui/slot_blue.webp); }
.ithumb.t3 { border-image-source: url(../assets/ui/slot_violet.webp); }
.ithumb.t4 { border-image-source: url(../assets/ui/slot_gold.webp); }
.ithumb .art { position: relative; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.5)); }
/* тёмные вещи (чёрные удилища, крючки, поводки) на тёмной пластине терялись: под рисунком — мягкое светлое пятно */
.ithumb::before { content: ''; position: absolute; left: 50%; top: 50%; width: 82%; height: 92%; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(158, 186, 180, 0.46) 0%, rgba(150, 178, 172, 0.3) 42%, rgba(150, 178, 172, 0) 72%); }
span.ithumb.empty::before, .detempty .ithumb::before { display: none; }
.ithumb.sm { padding: 5px 7px; border-image-width: 10px; }
.ithumb.big { aspect-ratio: 4 / 3; padding: 6% 10%; border-image-width: 22px; }
.ithumb.hub { border-image-source: url(../assets/ui/slot.webp); padding: 4% 6%; }
span.ithumb.empty { border: 1px dashed rgba(217, 185, 121, 0.35); border-image: none; border-radius: 4px; color: var(--brass2); }
span.ithumb.empty .ic { width: 26px; height: 26px; opacity: 0.8; }
.icard.locked .ithumb, .hcard.locked .ithumb { filter: none; opacity: 1; }
.icard.locked .ithumb .art, .hcard.locked .ithumb .art { filter: grayscale(0.85) brightness(0.72) drop-shadow(0 4px 5px rgba(0, 0, 0, 0.5)); opacity: 0.85; }
.icard .chips i { max-width: 100%; white-space: normal; }
.detempty .ithumb { border-image: none; border: 0; }
.cchip { border-radius: 0; border: 1px solid transparent; border-image: url(../assets/ui/tab.webp) 56 fill / 10px stretch; background: none; padding: 5px 14px 5px 7px; transition: filter 0.12s ease; }
.cchip:hover { filter: brightness(1.25); }
.cchip.on { border-image-source: url(../assets/ui/tab_on.webp); background: none; color: #fff7df; }
.cchip .cicon { width: 28px; height: 28px; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.6)); background: radial-gradient(circle, rgba(158, 186, 180, 0.42), rgba(150, 178, 172, 0) 70%); }
.cchip.on .cicon { filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.6)); }
.emptyst .cicon { width: 120px; height: 120px; object-fit: contain; opacity: 0.7; filter: grayscale(0.4) drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5)); }

/* вкладки, отборы, переключатели */
.ktab, .sfilt button, .seg button, .fchips button, .lchip, .kitrow button, .pillm, .lkb { border-radius: 0; border: 1px solid transparent; border-image: url(../assets/ui/tab.webp) 56 fill / 10px stretch; background: none; color: var(--text); transition: filter 0.12s ease; }
.ktab:hover, .sfilt button:hover, .seg button:hover, .fchips button:hover, .lchip:hover, .kitrow button:hover, .lkb:hover { filter: brightness(1.25); }
.ktab.on, .sfilt button.on, .seg button.on, .lchip.on, .kitrow button.on, .fchips button.got, .lkb.on { border-image-source: url(../assets/ui/tab_on.webp); background: none; color: #fff7df; }
.sfilt button.prem { color: var(--brass2); }
.sfilt button.prem.on { border-image-source: url(../assets/ui/btn_primary.webp); color: #2b1702; }
.fchips span { border-radius: 3px; }
.seg { gap: 6px; background: none; border: 0; padding: 0; }
.lchip { padding: 5px 12px 6px; }
.lchip .lthumb { width: 104px; height: 60px; max-width: none; object-fit: cover; border-radius: 2px; margin-bottom: 4px; box-shadow: 0 0 0 1px rgba(4, 9, 11, 0.8), 0 0 0 2px rgba(217, 185, 121, 0.3); }
.lchip.locked .lthumb { filter: grayscale(0.85) brightness(0.55); }
.lstrip.mini .lchip .lthumb { display: none; }
.locside .detbtn { background: #0c181c; box-shadow: 0 -8px 10px #0c181c; }
.lstrip { scrollbar-color: #a88a52 rgba(4, 9, 11, 0.45); }
.mgold { display: inline-flex; align-items: center; gap: 4px; color: var(--brass2); }

/* рыбы: карточки, справочник, карточка улова */
.fcard .art-fish { width: 100%; aspect-ratio: 12 / 5; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.5)); background: radial-gradient(ellipse at center, rgba(87, 199, 189, 0.16), transparent 70%); }
.fcard.unknown .art-fish, .fishstage.unknown .art-fish { filter: brightness(0) drop-shadow(0 0 0 #000); opacity: 0.55; }
.fit .art-fish { width: 64px; height: 27px; object-fit: contain; flex: 0 0 auto; }
.fishstage { position: relative; display: flex; align-items: center; justify-content: center; padding: 14px 18px; border: 1px solid rgba(120, 92, 48, 0.65); border-radius: 3px;
  background: linear-gradient(180deg, rgba(255, 250, 235, 0.08), rgba(60, 40, 10, 0.12)), #d9c9a3 url(../assets/ui/tex_paper.webp) center / 420px; box-shadow: inset 0 0 40px rgba(90, 60, 20, 0.35), 0 4px 14px rgba(0, 0, 0, 0.4); }
.fishstage .bigfishc, .fishstage .bigfish { width: 100%; height: auto; max-height: 240px; aspect-ratio: 12 / 5; object-fit: contain; background: none; border-radius: 0; filter: drop-shadow(0 10px 10px rgba(40, 25, 5, 0.45)); }
.fishstage.unknown .art-fish { opacity: 0.4; }
.fishstage.catch { margin: 6px 0 4px; padding: 18px 22px; border-color: rgba(217, 185, 121, 0.35); background: radial-gradient(ellipse at 50% 55%, rgba(87, 199, 189, 0.3), rgba(10, 30, 36, 0.2) 62%, rgba(4, 9, 11, 0.35)), linear-gradient(180deg, rgba(14, 40, 46, 0.9), rgba(6, 16, 20, 0.92));
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.55), 0 6px 18px rgba(0, 0, 0, 0.45); }
.fishstage.catch .bigfish { max-height: 260px; filter: drop-shadow(0 14px 14px rgba(0, 0, 0, 0.6)); animation: fishin 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }
.fishstage.catch.trophy { border-color: rgba(240, 180, 76, 0.8); box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(240, 180, 76, 0.3); }
@keyframes fishin { from { opacity: 0; transform: scale(0.86) translateY(10px); } to { opacity: 1; transform: none; } }
.stamp { position: absolute; top: -14px; right: -12px; width: 92px; display: flex; flex-direction: column; align-items: center; transform: rotate(9deg); animation: stampin 0.4s 0.35s cubic-bezier(0.2, 1.4, 0.4, 1) both; pointer-events: none; }
.stamp img { width: 78px; height: 78px; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6)); }
.stamp b { margin-top: -6px; padding: 2px 9px; font: 700 11px / 1.3 var(--serif); letter-spacing: 0.08em; text-transform: uppercase; color: #2b1702; background: linear-gradient(180deg, #ffe6a6, #f0b44c 55%, #b87a1e); border-radius: 2px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5); white-space: nowrap; }
@keyframes stampin { from { opacity: 0; transform: rotate(9deg) scale(1.8); } to { opacity: 1; transform: rotate(9deg) scale(1); } }
.ctitle { font: 400 28px / 1.15 var(--serif); letter-spacing: 0.07em; text-transform: uppercase; color: var(--brass2); text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7); }
.ctitle small { display: block; font: 700 12px / 1.4 system-ui, sans-serif; letter-spacing: 0.24em; color: var(--acc); }
.cstats { gap: 8px; margin: 14px 0 6px; }
.cstats div { flex: 1; padding: 8px 6px; border: 1px solid rgba(217, 185, 121, 0.22); border-radius: 3px; background: rgba(4, 9, 11, 0.4); text-align: center; }
.cstats b { font-family: var(--serif); font-weight: 400; font-size: 21px; color: #fff7df; letter-spacing: 0.02em; }
.cstats span { text-transform: uppercase; letter-spacing: 0.1em; font-size: 10px; color: #b9a67c; }

/* водоёмы */
.locpic { position: relative; margin: 0 0 10px; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgba(4, 9, 11, 0.9), 0 0 0 2px rgba(217, 185, 121, 0.45), 0 8px 20px rgba(0, 0, 0, 0.45); }
.locpic .art-loc { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.locpic .lochead { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 9px; background: linear-gradient(180deg, rgba(4, 9, 11, 0), rgba(4, 9, 11, 0.88)); }
.locpic .lochead h3 { margin: 0; font-size: 19px; color: #fff7df; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9); }
.locpic .lochead small { color: #d6cdb6; }
#worldmap, #locshape, #chart { border-radius: 3px; box-shadow: 0 0 0 1px rgba(4, 9, 11, 0.9), 0 0 0 2px rgba(217, 185, 121, 0.4); }

/* шкалы в карточках и окнах */
.sbar .tr, .capbar, .mbar { background: rgba(4, 9, 11, 0.7); box-shadow: 0 0 0 1px rgba(217, 185, 121, 0.22); }
.sbar .tr i, .mbar i, .capbar i { background: linear-gradient(180deg, #57c7bd, #1f8f88 55%, #17625e); }
.capbar.full i, .meter.full .mbar i { background: linear-gradient(180deg, #ff9d8c, #e2604f 50%, #9d2f22); }
.meter.warn .mbar i { background: linear-gradient(180deg, #ffe6a6, #f0b44c 50%, #b87a1e); }
.task .tk { border-radius: 3px; display: inline-flex; align-items: center; justify-content: center; }
.chk i { display: inline-flex; align-items: center; justify-content: center; }
.panel ::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #c9a868, #8a6a3a); border-radius: 6px; border: 2px solid rgba(8, 16, 20, 0.9); }
.panel ::-webkit-scrollbar-track { background: rgba(4, 9, 11, 0.45); }

/* приветствие и справка */
.wlogo { display: block; width: min(420px, 78%); height: auto; max-height: 210px; object-fit: contain; margin: 0 auto 6px; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.6)); }
.help.welcome .lead { text-align: center; margin-left: auto; margin-right: auto; }
ol.steps li { border-radius: 4px; border-color: rgba(217, 185, 121, 0.22); background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(0, 0, 0, 0.16)); }
ol.steps li::before { font-family: var(--serif); color: #2b1702; background: radial-gradient(circle at 35% 30%, #ffe6a6, #d9a441 60%, #8d5d14); box-shadow: 0 0 0 1px rgba(4, 9, 11, 0.8), 0 0 0 2px rgba(227, 198, 136, 0.5); }

/* ---------- рыбаки и «Новый рыбак» ---------- */
.lkb { padding: 7px 14px; }
.lkc { border: 2px solid rgba(4, 9, 11, 0.85); box-shadow: 0 0 0 1px rgba(217, 185, 121, 0.55); transition: transform 0.1s ease; }
.lkc:hover { transform: scale(1.1); }
.lkc.on { border-color: #fff7df; box-shadow: 0 0 0 2px var(--acc), 0 0 12px rgba(240, 180, 76, 0.6); }
#lookCv { border-radius: 3px; background: radial-gradient(ellipse at 50% 35%, rgba(87, 199, 189, 0.22), rgba(6, 14, 17, 0.4) 70%), linear-gradient(#14282e, #0a1519); box-shadow: 0 0 0 1px rgba(4, 9, 11, 0.9), 0 0 0 2px rgba(217, 185, 121, 0.45); }
.crewrow input, .create .crewrow input { border-radius: 0; border: 1px solid transparent; border-image: url(../assets/ui/field.webp) 58 fill / 11px stretch; background: none; padding: 10px 14px; }
.crewman, .crewopen { border-radius: 3px; background: rgba(4, 9, 11, 0.4); border: 1px solid rgba(217, 185, 121, 0.14); }
.crewman.me { outline: 0; border-color: rgba(240, 180, 76, 0.6); }
.crewcode { border-radius: 3px; background: rgba(240, 180, 76, 0.08); border: 1px dashed rgba(240, 180, 76, 0.6); }
.crewcode b { font-family: var(--serif); font-weight: 400; color: var(--brass2); }
.crewbox h4 { color: #b9a67c; }

/* ---------- чат, обучение, подписи ---------- */
#chat.open { background: linear-gradient(180deg, rgba(16, 30, 35, 0.95), rgba(8, 16, 20, 0.96)); border: 1px solid transparent; border-image: url(../assets/ui/frame.webp) 44 / 13px stretch; border-radius: 2px; padding: 11px 13px 12px; }
#chatlog .cl { border-radius: 3px; background: rgba(6, 13, 16, 0.6); }
#chatlog .cl.sys { color: #b9c2bd; }
#chathead b { font-family: var(--serif); font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass2); }
#chathead button { border-color: rgba(217, 185, 121, 0.3); background: rgba(6, 13, 16, 0.5); }
#chatrow button { border: 1px solid transparent; border-image: url(../assets/ui/btn_primary.webp) 60 fill / 11px stretch; background: none; width: 44px; }
#chatrow button:hover { filter: brightness(1.15); }
#chatbtn { border: 1px solid rgba(227, 198, 136, 0.7); background: radial-gradient(circle at 50% 35%, rgba(31, 111, 107, 0.7), rgba(8, 20, 24, 0.8) 72%); box-shadow: 0 0 0 2px rgba(4, 9, 11, 0.45); }
#chatbtn i, #mchat i { background: #c9402f; color: #fff; box-shadow: 0 0 0 1px rgba(255, 220, 160, 0.7); }
#tut { border: 1px solid transparent; border-left: 1px solid transparent; border-image: url(../assets/ui/frame.webp) 44 / 13px stretch; border-radius: 2px; padding: 12px 15px 13px; background: linear-gradient(180deg, rgba(16, 30, 35, 0.92), rgba(8, 16, 20, 0.94)); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); }
#tut .th { color: #b9a67c; letter-spacing: 0.1em; }
#tut .tbar { height: 4px; background: rgba(4, 9, 11, 0.7); box-shadow: 0 0 0 1px rgba(217, 185, 121, 0.25); }
#tut .tbar i { background: linear-gradient(180deg, #ffe6a6, #f0b44c 50%, #b87a1e); }
#tut .tt { font: 400 17px / 1.25 var(--serif); letter-spacing: 0.04em; color: var(--brass2); }
#tut .tx { color: #dcd6c8; }
#tut .tok { margin-top: 10px; padding: 7px 18px; border-radius: 0; }
.tutnote { background: rgba(240, 180, 76, 0.09); border-bottom-color: rgba(240, 180, 76, 0.3); }
#chathead button, #chatrow button, #chatbtn { border-radius: 4px; }
#chathead button .ic { width: 16px; height: 16px; }
#chatrow button .ic { width: 22px; height: 22px; }
#chatbtn .ic { width: 22px; height: 22px; }
#mchat .ic, .mchip.mbtn .ic { width: 22px; height: 22px; }
#names .nm.trophy::before { content: ''; display: inline-block; width: 15px; height: 15px; margin-right: 4px; vertical-align: -3px; background: url(../assets/ui/trophy.webp) center / contain no-repeat; }

/* ---------- телефон ---------- */
.mchip { background: none; border: 1px solid transparent; border-image: url(../assets/ui/chip.webp) 58 fill / 11px stretch; border-radius: 0; backdrop-filter: none; gap: 5px; color: var(--text); }
.mchip.mwx .ic { width: 18px; height: 18px; }
#touch button { background: radial-gradient(circle at 50% 35%, rgba(31, 111, 107, 0.62), rgba(8, 20, 24, 0.66) 72%); border: 1px solid rgba(227, 198, 136, 0.7); box-shadow: 0 0 0 2px rgba(4, 9, 11, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12); backdrop-filter: blur(4px); color: #fff7df; }
#touch button.on, #touch button:active { background: radial-gradient(circle at 50% 35%, rgba(255, 220, 150, 0.8), rgba(200, 130, 30, 0.72) 72%); border-color: #fff1c9; }
#touch .reelb .ic { width: 44px; height: 44px; }
#touch .rodb .ic { width: 28px; height: 28px; }
#touch .chip .ic { width: 26px; height: 26px; }
#touch.strike .rodb { background: radial-gradient(circle at 50% 35%, rgba(255, 220, 150, 0.9), rgba(200, 130, 30, 0.8) 72%); border-color: #fff; color: #2b1702; }
#joy { background: radial-gradient(circle, rgba(8, 20, 24, 0.2), rgba(8, 20, 24, 0.42)); border: 1px solid rgba(227, 198, 136, 0.6); box-shadow: 0 0 0 2px rgba(4, 9, 11, 0.35); }
#joy i { background: radial-gradient(circle at 40% 32%, #ffe6a6, #c79a45 62%, #7a5a1f); border: 1px solid rgba(255, 241, 201, 0.8); box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5); }
.step { background: rgba(8, 18, 22, 0.6); border: 1px solid rgba(227, 198, 136, 0.5); border-radius: 6px; }
#touch .step button { background: none; border: 0; box-shadow: none; color: var(--brass2); }
body.touch #modal .panel { background: linear-gradient(180deg, rgba(14, 27, 32, 0.9), rgba(8, 16, 20, 0.95)), #0f1c21 url(../assets/ui/tex_panel.webp) center / 384px; border: 0; border-image: none; }
body.touch .mnav { border-right: 0; border-top: 1px solid rgba(217, 185, 121, 0.3); background: rgba(6, 13, 16, 0.85); }
body.touch .mnav button .ic { width: 24px; height: 24px; }
body.touch .mnav button.on { border-image-width: 9px; }
body.touch .toast { padding: 6px 10px 6px 34px; }
body.touch .toast::before { left: 8px; width: 18px; height: 18px; margin-top: -9px; }
@media (max-width: 520px) {
  /* девять разделов в узкой нижней строке: подпись — только у открытого, остальные узнаются по значку */
  body.touch .mnav button span { display: none; }
  body.touch .mnav button.on span { display: block; }
  body.touch .mnav button .ic { width: 26px; height: 26px; }
}
.icard.locked, .hcard.locked { opacity: 0.82; }
.icard.locked b, .hcard.locked .hbody b { color: #a9b3ae; }
body.touch #hud { box-shadow: none; }
body.touch #floatcam span, body.touch #sonar span { font-size: 9.5px; top: -15px; letter-spacing: 0.06em; }
.stamp { top: -30px; right: -18px; }
.panel.small .fishstage.catch { margin-top: 14px; }
@media (max-width: 520px) { .stamp { width: 78px; top: -34px; right: -12px; } .stamp img { width: 62px; height: 62px; } .stamp b { font-size: 10px; } }
.fcard.unknown .art-fish, .fishstage.unknown .art-fish { filter: brightness(0) invert(0.2); opacity: 0.9; }
@media (max-height: 460px) {
  /* телефон лёжа: девять разделов в столбик — подписи убираем, название раздела и так стоит в шапке */
  body.touch .mnav button span { display: none; }
  body.touch .mnav button { padding: 5px 0; }
  body.touch .mnav button .ic { width: 25px; height: 25px; }
}

/* ================= ТУРНИРЫ, ЗАДАНИЯ, НАГРАДЫ (docs/EVENTS.md) ================= */
/* плашки призов: деньги, монеты, опыт, вещи */
.prizes { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.pz { display: inline-flex; align-items: center; gap: 5px; font-style: normal; font-size: 12.5px; font-weight: 600; line-height: 1.3; padding: 3px 9px 3px 6px; border-radius: 3px; border: 1px solid rgba(217, 185, 121, 0.3); background: rgba(4, 9, 11, 0.5); color: var(--text); white-space: nowrap; }
.pz .ic { width: 16px; height: 16px; vertical-align: 0; }
.pz.gold { color: var(--brass2); border-color: rgba(240, 195, 106, 0.55); background: rgba(240, 195, 106, 0.1); }
.pz.item { padding-left: 4px; white-space: normal; }
.pz .pzi { width: 26px; height: 26px; flex: 0 0 auto; object-fit: contain; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6)); background: radial-gradient(circle, rgba(158, 186, 180, 0.4), rgba(150, 178, 172, 0) 70%); }
.achbar { height: 6px; border-radius: 3px; background: rgba(4, 9, 11, 0.7); box-shadow: 0 0 0 1px rgba(217, 185, 121, 0.22); overflow: hidden; }
.achbar i { display: block; height: 100%; background: linear-gradient(180deg, #ffe6a6, #f0b44c 50%, #b87a1e); }
.achbar.big { height: 9px; margin: 2px 0 4px; }
.cd { font-variant-numeric: tabular-nums; }

/* ---------- окно «Турниры» ---------- */
.panel:not(.compact) .body[data-tab="tour"]:not([data-sub="form"]) { display: flex; flex-direction: column; overflow: hidden; }
.evhead { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.evhead .sfilt { flex: 1 1 auto; margin: 0; }
.sfilt button i { font-style: normal; font-size: 11px; font-weight: 700; margin-left: 4px; padding: 0 5px; border-radius: 8px; background: rgba(4, 9, 11, 0.55); color: var(--brass2); }
.panel .pbtn { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; padding: 8px 16px; font-size: 13.5px; white-space: nowrap; }
.panel .pbtn:hover:not(:disabled) { filter: brightness(1.15); }
.evlist { display: flex; flex-direction: column; gap: 8px; }
.panel:not(.compact) .evwrap { grid-template-columns: minmax(0, 1fr) 380px; }
.evcard { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 14px 10px 10px; text-align: left; cursor: pointer; color: var(--text); border-radius: 4px; border: 1px solid rgba(217, 185, 121, 0.2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(0, 0, 0, 0.16)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04); transition: border-color 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease; }
.evcard:hover { border-color: rgba(227, 198, 136, 0.65); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4); transform: translateY(-1px); }
.evcard.sel { border-color: var(--acc); box-shadow: 0 0 0 1px rgba(240, 180, 76, 0.55), 0 0 18px rgba(240, 180, 76, 0.22); background: linear-gradient(180deg, rgba(240, 180, 76, 0.1), rgba(0, 0, 0, 0.16)); }
.evcard.official { border-color: rgba(240, 195, 106, 0.5); }
.evcard.done, .evcard.off { opacity: 0.78; }
.evic { display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; flex: 0 0 auto; }
.evic .ic { width: 100%; height: 100%; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.6)); }
.evic.big { width: 84px; height: 84px; }
.evb { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.evb b { font: 400 16px / 1.25 var(--serif); letter-spacing: 0.03em; color: #fff7df; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evb small, .evr small { color: var(--dim); font-size: 12px; }
.evr { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; white-space: nowrap; }
.evr em { font-style: normal; font-weight: 700; font-size: 13px; color: var(--brass2); }
.evr em.run, .tile b.run { color: var(--good); }
.evr em.done, .evr em.off { color: var(--dim); font-weight: 600; }
.evr u { text-decoration: none; font-size: 12px; font-weight: 600; color: var(--brass2); display: inline-flex; align-items: center; gap: 4px; }
.evr u.ok { color: var(--good); }
/* карточка события справа */
.evdet .evtop { display: flex; align-items: center; gap: 12px; }
.evdet .evtop h3 { margin: 0; font-size: 19px; color: #fff7df; overflow-wrap: anywhere; }
.evdet .evtop small { color: var(--dim); font-size: 12px; }
.evdet .evdesc { color: #dcd6c8; overflow-wrap: anywhere; }
.evdet .tiles { margin: 2px 0; }
.evdet .tile b { font-size: 17px; }
.evdet .detempty .evic { margin: 0 auto 10px; opacity: 0.7; }
.evprz { display: flex; flex-direction: column; gap: 5px; }
.evprz > div { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.evprz b { flex: 0 0 62px; font-size: 12.5px; color: var(--brass2); }
.evtab { display: flex; flex-direction: column; gap: 3px; }
.evrow { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 5px 8px; border-radius: 3px; background: rgba(4, 9, 11, 0.4); border: 1px solid rgba(217, 185, 121, 0.12); font-size: 13px; }
.evrow > i { font-style: normal; font-weight: 700; text-align: center; color: var(--dim); font-variant-numeric: tabular-nums; }
.evrow > b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evrow > small { color: var(--dim); font-size: 11.5px; }
.evrow > em { font-style: normal; font-weight: 700; color: var(--brass2); font-variant-numeric: tabular-nums; }
.evrow .prizes { grid-column: 2 / -1; grid-row: 2; gap: 4px; }
.evrow .prizes .pz { font-size: 11.5px; padding: 1px 7px 1px 5px; }
.evrow.p1 > i, .evrow.p2 > i, .evrow.p3 > i { width: 22px; height: 22px; line-height: 22px; border-radius: 50%; color: #2b1702; background: radial-gradient(circle at 35% 30%, #ffe6a6, #d9a441 60%, #8d5d14); box-shadow: 0 0 0 1px rgba(4, 9, 11, 0.8); }
.evrow.p2 > i { background: radial-gradient(circle at 35% 30%, #f4f4f4, #b9c0c4 60%, #6f7a80); }
.evrow.p3 > i { background: radial-gradient(circle at 35% 30%, #f3c9a0, #c0834a 60%, #6f4420); }
.evrow.me { border-color: rgba(240, 180, 76, 0.7); background: rgba(240, 180, 76, 0.1); }
.evrow.gap { display: block; text-align: center; color: var(--dim); background: none; border: 0; padding: 0; line-height: 1; }
button.ghost { border-image-source: url(../assets/ui/btn_ghost.webp) !important; color: #c9d2ce !important; font-weight: 600 !important; }
/* форма турнира */
.evform { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
.evcol { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.evform h5 { margin: 10px 0 5px; font-size: 12px; font-weight: 600; color: #b9a67c; letter-spacing: 0.04em; }
.evform .seg { margin: 0; }
.evform .seg button { padding: 6px 12px; font-size: 12.5px; }
.evform .crewrow { margin-bottom: 6px; }
.evform .crewrow input { flex: 1 1 auto; width: 100%; }
.evicons { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
.evicons button { aspect-ratio: 1; padding: 4px; border-radius: 4px; border: 1px solid rgba(217, 185, 121, 0.2); background: rgba(4, 9, 11, 0.4); cursor: pointer; transition: transform 0.1s ease, border-color 0.1s ease; }
.evicons button .ic { width: 100%; height: 100%; vertical-align: 0; }
.evicons button:hover { transform: scale(1.06); border-color: rgba(227, 198, 136, 0.7); }
.evicons button.on { border-color: var(--acc); box-shadow: 0 0 0 1px var(--acc), 0 0 14px rgba(240, 180, 76, 0.45); background: rgba(240, 180, 76, 0.12); }
.fpick { display: flex; flex-wrap: wrap; gap: 5px; max-height: 250px; overflow-y: auto; padding: 2px; }
.fpick button { display: flex; flex-direction: column; align-items: center; gap: 1px; width: 84px; padding: 4px 3px 3px; border-radius: 4px; border: 1px solid rgba(217, 185, 121, 0.18); background: rgba(4, 9, 11, 0.4); color: var(--dim); font-size: 10.5px; line-height: 1.2; cursor: pointer; }
.fpick button .fpi { width: 72px; height: 30px; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5)); }
.fpick button:hover { border-color: rgba(227, 198, 136, 0.7); color: var(--text); }
.fpick button.on { border-color: var(--acc); background: rgba(240, 180, 76, 0.14); color: #fff7df; box-shadow: 0 0 0 1px var(--acc); }
.evfee { align-items: center; }
.evform .evfee input { flex: 0 0 120px; width: 120px; font-size: 16px; font-weight: 700; text-align: right; }
.evfee span { color: var(--dim); font-size: 13px; }
.evnum { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.evnum > span { color: var(--dim); font-size: 12.5px; }
.evsum { grid-column: 1 / -1; position: sticky; bottom: -18px; display: flex; align-items: center; gap: 12px; margin: 0 -18px -18px; padding: 10px 18px 14px; background: #0c181c; border-top: 1px solid rgba(217, 185, 121, 0.3); box-shadow: 0 -10px 14px rgba(8, 16, 20, 0.9); z-index: 2; }
.evsum > div:nth-child(2) { flex: 1 1 auto; min-width: 0; }
.evsum b { display: block; font: 400 17px / 1.25 var(--serif); letter-spacing: 0.03em; color: #fff7df; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evsum small { display: block; color: var(--dim); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evsum em { display: block; font-style: normal; color: #ffb9a8; font-size: 12.5px; font-weight: 600; }
.evsum .cbtns { margin: 0; flex: 0 0 auto; flex-wrap: nowrap; }
.evsum .cbtns button { padding: 10px 20px; font-size: 14px; white-space: nowrap; }
/* магазин: премиум одним списком, размер пачки */
h4.gcat { display: flex; align-items: center; gap: 8px; margin: 14px 0 8px; }
h4.gcat:first-child { margin-top: 0; }
h4.gcat::after { flex: 1 1 auto; margin: 0; }
h4.gcat .cicon { width: 26px; height: 26px; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.6)); background: radial-gradient(circle, rgba(158, 186, 180, 0.42), rgba(150, 178, 172, 0) 70%); }
.chips i.pack { color: var(--brass2); border-color: rgba(240, 195, 106, 0.4); }

/* ---------- окно «Награды»: призы за уровни и достижения ---------- */
.lvstrip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 0 0 16px; }
.lvcell { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 10px 10px; border-radius: 4px; border: 1px solid rgba(217, 185, 121, 0.2); background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(0, 0, 0, 0.16)); min-width: 0; }
.lvcell > b { font: 400 24px / 1 var(--serif); color: var(--brass2); }
.lvcell > small { color: var(--dim); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 5px; }
.lvcell .prizes { gap: 4px; }
.lvcell .pz { font-size: 11.5px; padding: 2px 7px 2px 5px; }
.lvcell .pz.item span { display: none; }
.lvcell.next { border-color: var(--acc); box-shadow: 0 0 0 1px rgba(240, 180, 76, 0.5), 0 0 16px rgba(240, 180, 76, 0.18); }
.achgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 9px; align-content: start; }
.acard { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 11px; align-items: center; padding: 9px 12px 10px 9px; border-radius: 4px; border: 1px solid rgba(217, 185, 121, 0.18); background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(0, 0, 0, 0.16)); }
.amedal { position: relative; display: block; width: 72px; height: 72px; }
.amedal .art { width: 100%; height: 100%; filter: grayscale(1) brightness(0.6) contrast(0.9); opacity: 0.85; }
.amedal i { position: absolute; right: -3px; bottom: -3px; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #0c181c; box-shadow: 0 0 0 1px rgba(127, 208, 138, 0.7); }
.amedal i .ic { width: 14px; height: 14px; vertical-align: 0; }
.acard.got { border-color: rgba(240, 195, 106, 0.5); background: linear-gradient(180deg, rgba(240, 195, 106, 0.09), rgba(0, 0, 0, 0.16)); }
.acard.got .amedal .art { filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.6)); opacity: 1; }
.ab { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ab b { font: 400 15.5px / 1.2 var(--serif); letter-spacing: 0.02em; color: #fff7df; }
.acard:not(.got) .ab b { color: #cfd6d2; }
.ab small { color: var(--dim); font-size: 12px; line-height: 1.35; }
.ab em { font-style: normal; font-size: 11.5px; color: var(--dim); font-variant-numeric: tabular-nums; }
.ab em.ok { color: var(--good); font-weight: 600; }
.ab .pz { font-size: 11.5px; padding: 2px 7px 2px 5px; }

/* ---------- плашка события на водоёме ---------- */
#evbar { position: fixed; left: 12px; top: calc(var(--topH, 60px) + 22px); display: flex; align-items: center; gap: 8px; max-width: min(520px, 46vw); padding: 4px 12px 4px 5px; font: inherit; font-size: 12.5px; color: var(--text); cursor: pointer;
  border: 1px solid transparent; border-image: url(../assets/ui/chip.webp) 58 fill / 11px stretch; background: none; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8); }
#evbar .ic { width: 26px; height: 26px; vertical-align: 0; }
#evbar .en { font-family: var(--serif); letter-spacing: 0.03em; color: #fff7df; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 190px; }
#evbar .et { color: var(--dim); white-space: nowrap; }
#evbar .et b { color: var(--brass2); font-weight: 700; }
#evbar.run .et b { color: var(--good); }
#evbar .es { color: var(--brass2); font-weight: 600; white-space: nowrap; }
#evbar .ew { color: var(--dim); white-space: nowrap; }
#evbar i { font-style: normal; font-size: 11px; font-weight: 700; padding: 0 5px; border-radius: 8px; background: rgba(4, 9, 11, 0.6); color: var(--brass2); }
#evbar.fold { padding-right: 9px; gap: 5px; }
body.touch #evbar { left: calc(8px + var(--sl)); top: calc(var(--mtop) + 12px + var(--st)); max-width: calc(100vw - 16px - var(--sl) - var(--sr)); font-size: 11.5px; padding: 3px 9px 3px 4px; gap: 6px; }
body.touch #evbar .ic { width: 22px; height: 22px; }
body.touch #evbar .en { max-width: 112px; flex: 0 1 auto; min-width: 40px; }
body.touch #evbar .ew { display: none; }

/* ---------- карточка награды: уровень, достижение, итог турнира ---------- */
#award { position: fixed; left: 50%; top: calc(var(--topH, 60px) + 20px); transform: translateX(-50%); z-index: 30; width: min(480px, 92vw); pointer-events: none; }
.awcard { pointer-events: auto; display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 18px 13px 14px; text-align: left; font: inherit; color: var(--text); cursor: pointer; border: 1px solid transparent; border-image: url(../assets/ui/frame.webp) 44 / 14px stretch;
  background: linear-gradient(180deg, rgba(20, 38, 44, 0.97), rgba(8, 16, 20, 0.97)); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.65), 0 0 26px rgba(240, 180, 76, 0.22); animation: awin 0.45s cubic-bezier(0.2, 1.2, 0.4, 1) both; }
@keyframes awin { from { opacity: 0; transform: translateY(-14px) scale(0.94); } to { opacity: 1; transform: none; } }
.awb { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.awb small { font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--acc); }
.awb b { font: 400 20px / 1.2 var(--serif); letter-spacing: 0.04em; color: #fff7df; overflow-wrap: anywhere; }
.awb > span:not(.prizes) { color: #cfd6d2; font-size: 12.5px; line-height: 1.35; }
.awb .prizes { margin-top: 4px; }
.awcard .awmedal { width: 76px; height: 76px; flex: 0 0 auto; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6)); }
.awcard .awic { width: 68px; height: 68px; flex: 0 0 auto; vertical-align: 0; }
.awlvl { flex: 0 0 auto; width: 70px; height: 70px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe6a6, #d9a441 60%, #8d5d14); box-shadow: 0 0 0 2px rgba(4, 9, 11, 0.85), 0 0 0 4px rgba(227, 198, 136, 0.55), 0 0 22px rgba(240, 180, 76, 0.5); }
.awlvl b { font: 400 30px / 1 var(--serif); color: #2b1702; text-shadow: 0 1px 0 rgba(255, 236, 190, 0.6); }
.awcard.off { box-shadow: 0 14px 40px rgba(0, 0, 0, 0.65); }
.awcard.off .awb small { color: var(--dim); }
.awcard.win { box-shadow: 0 14px 40px rgba(0, 0, 0, 0.65), 0 0 34px rgba(240, 180, 76, 0.45); }
/* пока карточка на экране, уведомления встают под неё */
body.award:not(.touch) #toasts { top: calc(var(--topH, 36px) + 150px); }
body.touch #award { top: calc(var(--mtop) + 10px + var(--st)); width: min(440px, 94vw); }
body.touch .awcard { padding: 9px 12px 10px 10px; gap: 10px; }
body.touch .awb b { font-size: 16px; }
body.touch .awcard .awmedal, body.touch .awcard .awic { width: 54px; height: 54px; }
body.touch .awlvl { width: 52px; height: 52px; }
body.touch .awlvl b { font-size: 22px; }
body.touch.award #toasts { top: calc(var(--mtop) + 150px + var(--st)); }
body.touch.award #evbar { visibility: hidden; }

/* ---------- тесное окно и телефон ---------- */
.panel.compact .evhead { flex-wrap: wrap; }
.panel.compact .evcard { grid-template-columns: 46px minmax(0, 1fr); gap: 9px; padding: 9px 10px 9px 8px; }
.panel.compact .evcard .evic { width: 46px; height: 46px; }
.panel.compact .evr { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: flex-start; gap: 3px 10px; text-align: left; white-space: normal; }
.panel.compact .evb b { white-space: normal; }
.panel.compact .evform { grid-template-columns: minmax(0, 1fr); }
.panel.compact .evicons { gap: 4px; }
.panel.compact .evsum { flex-wrap: wrap; bottom: -14px; margin: 0 -10px -14px; padding: 8px 12px calc(10px + var(--sb, 0px)); }
.panel.compact .evsum > .evic { display: none; }
.panel.compact .evsum .cbtns { flex: 1 1 100%; }
.panel.compact .evsum .cbtns button { flex: 1 1 0; padding: 10px 8px; }
.panel.compact .lvstrip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.panel.compact .achgrid { grid-template-columns: minmax(0, 1fr); }
.panel.compact .acard { grid-template-columns: 58px minmax(0, 1fr); }
.panel.compact .amedal { width: 58px; height: 58px; }
.panel.compact .fpick button { width: 76px; }
@media (max-width: 520px) {
  .panel.compact .evhead .pbtn { flex: 1 1 100%; justify-content: center; }
}

/* Недоступная пока вещь: слегка приглушена, но цвет остаётся — золотое должно выглядеть золотым, иначе витрина «Премиум»
   превращается в ряд серых палок. О недоступности уже говорят замок и подпись «с N уровня». */
.icard.locked .ithumb, .hcard.locked .ithumb { filter: none; }
.icard.locked .ithumb .art, .hcard.locked .ithumb .art { filter: saturate(0.72) brightness(0.84) drop-shadow(0 4px 5px rgba(0, 0, 0, 0.5)); opacity: 0.92; }

/* ---------- громкость по каналам (настройки) ---------- */
.vols { display: flex; flex-direction: column; gap: 4px; margin: 10px 0 4px; }
.vols.off { opacity: 0.45; }
.vol { display: grid; grid-template-columns: minmax(150px, 230px) 1fr 46px; align-items: center; gap: 12px; padding: 5px 0; }
.vol span b { display: block; font-size: 13px; font-weight: 600; color: var(--text); }
.vol span small { display: block; font-size: 11.5px; color: var(--dim); }
.vol em { font-style: normal; font-size: 12.5px; color: #e3c688; text-align: right; font-variant-numeric: tabular-nums; }
.vol input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; margin: 0; background: transparent; cursor: pointer; touch-action: pan-y; }
.vol input[type=range]:focus { outline: none; }
.vol input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, #1f6f6b, #e3c688); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.45), 0 1px 0 rgba(255, 255, 255, 0.06); }
.vol input[type=range]::-moz-range-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, #1f6f6b, #e3c688); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.45); }
.vol input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; border: 2px solid #7a5f33;
  background: radial-gradient(circle at 35% 30%, #fff1c9, #e3c688 45%, #b08d57); box-shadow: 0 2px 5px rgba(0, 0, 0, 0.55); }
.vol input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #7a5f33; background: radial-gradient(circle at 35% 30%, #fff1c9, #e3c688 45%, #b08d57); box-shadow: 0 2px 5px rgba(0, 0, 0, 0.55); }
.vol input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px rgba(240, 180, 76, 0.45), 0 2px 5px rgba(0, 0, 0, 0.55); }
body.touch .vol { grid-template-columns: 1fr 44px; row-gap: 0; padding: 6px 0; }
body.touch .vol span { grid-column: 1 / -1; }
body.touch .vol input[type=range] { height: 36px; }
body.touch .vol input[type=range]::-webkit-slider-thumb { width: 26px; height: 26px; margin-top: -10px; }
@media (max-width: 620px) { .vol { grid-template-columns: 1fr 44px; } .vol span { grid-column: 1 / -1; } }

/* вещи экземплярами: рюкзак и дом, продажа снастей */
.chips i.wh { color: var(--brass2); border-color: rgba(240, 195, 106, 0.4); }
.ownline { margin: 2px 0 0; }
.kdrop { margin-left: auto; flex: none; }
.kdrop, .stbtn button, .stall { background: none; border: 1px solid transparent; border-image: url(../assets/ui/btn.webp) 60 fill / 10px stretch; border-radius: 0; color: #e8f4f0; padding: 6px 12px; font: inherit; font-size: 12.5px; font-weight: 600; white-space: nowrap; cursor: pointer; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75); transition: filter 0.12s ease; }
.kdrop:hover, .stbtn button:hover:not(:disabled), .stall:hover { filter: brightness(1.2); }
.stbtn button.main { border-image-source: url(../assets/ui/btn_primary.webp); color: #2b1702; font-weight: 700; text-shadow: 0 1px 0 rgba(255, 236, 190, 0.55); }
.stmeters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 18px; margin: 0 0 10px; }
.store { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-items: start; }
@media (min-width: 1400px) { .panel:not(.compact) .store:not(.away) { grid-template-columns: 1fr 1fr; } }
.store .eqp h4 { display: flex; align-items: center; gap: 8px; min-height: 30px; }
.store .eqp h4 i { font-style: normal; padding: 1px 8px; border-radius: 3px; background: rgba(4, 9, 11, 0.45); color: var(--text); letter-spacing: 0; }
.stall { margin-left: auto; text-transform: none; letter-spacing: 0; }
.strows { display: grid; gap: 6px; }
.strow { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 5px 8px 5px 5px; border-radius: 4px; border: 1px solid rgba(217, 185, 121, 0.16); background: rgba(4, 9, 11, 0.28); }
.strow .ithumb.sm { width: 56px; height: 42px; aspect-ratio: auto; }
.strow .etxt { display: grid; min-width: 0; }
.strow small { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--dim); }
.strow b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strow b i { font-style: normal; font-weight: 600; color: var(--brass2); }
.strow em { font-style: normal; font-size: 11.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stbtn { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.stbtn u { text-decoration: none; font-size: 11.5px; color: var(--dim); }
.detbtn .detrow { display: flex; flex-wrap: wrap; gap: 6px; flex-basis: 100%; }
.detbtn .detrow button { flex: 1 1 auto; padding: 7px 10px; font-size: 12.5px; white-space: nowrap; }
.slotc .qty.short { color: var(--warn); }
.store + .dimtxt { margin-top: 10px; }
.sfilt button.sell { color: var(--good); }
.sfilt button.sell.on { color: #fff7df; }
.panel.compact .stmeters { grid-template-columns: minmax(0, 1fr); }
.kright { display: flex; gap: 6px; margin-left: auto; }
@media (max-width: 620px) { .kright { margin-left: 0; } }
body.touch .stbtn button, body.touch .kdrop, body.touch .stall { min-height: 38px; padding: 6px 14px; }
@media (max-width: 620px) { .strow { grid-template-columns: 48px minmax(0, 1fr); } .strow .ithumb.sm { width: 48px; height: 36px; } .stbtn { grid-column: 1 / -1; justify-content: flex-start; } .kdrop { margin-left: 0; } }

/* ================= ПРОГНОЗ, ГРАФИК КЛЁВА, ПЕРЕМОТКА, КЛУБНАЯ КАРТА (js/trip.js) =================
   Экран выезда (карта дома) и окно «Время и клёв» на водоёме. Значки погоды — картинки assets/ui/wx_*.webp,
   столбики графика и ленты видов — вёрстка: пять ступеней клёва от тёмной бирюзы («вяло») до янтаря («жор»). */
.l0 { --lc: #2a4447; } .l1 { --lc: #25605f; } .l2 { --lc: #2f8a82; } .l3 { --lc: #c4a04d; } .l4 { --lc: #f3b94f; }
.locside.wide { flex: 1 1 400px; }
.trip { display: grid; gap: 8px; min-width: 0; }
.tarr { width: 12px; height: 12px; vertical-align: -1px; margin: 0 1px; }
.tdays { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.tday { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n i" "t i" "x x" "m m"; gap: 1px 6px; align-content: start; padding: 7px 9px 8px; text-align: left; color: var(--text); font: inherit; cursor: pointer;
  border: 1px solid rgba(217, 185, 121, 0.22); border-radius: 4px; background: linear-gradient(180deg, rgba(20, 36, 42, 0.72), rgba(8, 16, 19, 0.72)); transition: filter 0.12s ease; }
.tday:hover { filter: brightness(1.15); }
.tday small { grid-area: n; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: #b9a67c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tday .tdi { grid-area: i; align-self: center; }
.tday .tdi .ic { width: 38px; height: 38px; vertical-align: middle; }
.tday b { grid-area: t; font: 400 20px / 1.15 var(--serif); color: var(--brass2); white-space: nowrap; }
.tday b i { font-style: normal; font-size: 13px; color: var(--dim); margin-left: 6px; }
.tday em { grid-area: x; font-style: normal; font-size: 11.5px; line-height: 1.3; min-height: 2.6em; }
.tday .tdm { grid-area: m; display: flex; flex-wrap: wrap; gap: 2px 9px; font-size: 11px; color: var(--dim); }
.tday .tdm u { text-decoration: none; white-space: nowrap; }
.tday.on { border-color: var(--acc); box-shadow: 0 0 0 1px var(--acc) inset, 0 0 14px rgba(240, 180, 76, 0.16); background: linear-gradient(180deg, rgba(52, 46, 26, 0.78), rgba(14, 24, 26, 0.82)); }
.tchart, .tnow { border: 1px solid rgba(217, 185, 121, 0.2); border-radius: 4px; background: rgba(4, 9, 11, 0.38); min-width: 0; }
.tchart { padding: 8px 10px 9px; }
.tchh { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.tchh b { font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: #b9a67c; }
.tleg { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; color: var(--dim); white-space: nowrap; }
.tleg i { width: 10px; height: 10px; border-radius: 2px; background: var(--lc); }
.tleg u { text-decoration: none; margin: 0 2px; }
.twx { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); margin-bottom: 6px; }
.twx span { display: grid; justify-items: center; font-size: 11px; line-height: 1.25; min-width: 0; }
.twx .ic { width: 24px; height: 24px; vertical-align: middle; }
.twx b { font-weight: 600; }
.twx small { color: var(--dim); font-size: 10px; white-space: nowrap; }
.twx small .tarr { width: 9px; height: 9px; }
.tbars { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 2px; height: 104px; padding-bottom: 15px; }
.tb { position: relative; height: 100%; min-width: 0; display: flex; align-items: flex-end; padding: 0; border: 0; border-radius: 0; background: none; font: inherit; color: inherit; }
button.tb { cursor: pointer; }
.tb i { display: block; width: 100%; min-height: 4px; border-radius: 2px 2px 0 0; background: linear-gradient(180deg, var(--lc), color-mix(in srgb, var(--lc) 72%, #000)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22); }
.tb u { position: absolute; left: 50%; bottom: -15px; transform: translateX(-50%); font-size: 10px; color: var(--dim); text-decoration: none; }
.tb.past i { opacity: 0.32; }
.tb.now::after { content: ''; position: absolute; inset: 0 -1px; border: 1px solid #fff2cf; border-radius: 3px; box-shadow: 0 0 8px rgba(255, 236, 190, 0.45); pointer-events: none; }
.tb.now u { color: #fff2cf; font-weight: 700; }
.tb.pick i { box-shadow: 0 0 0 2px #fff7df, 0 0 10px rgba(255, 236, 190, 0.7); }
.tb.pick::before { content: ''; position: absolute; left: 50%; top: -2px; width: 0; height: 0; margin-left: -5px; border: 5px solid transparent; border-top-color: #fff7df; }
button.tb:hover i { filter: brightness(1.3); }
.tsum { margin: 8px 0 0 !important; font-size: 12.5px !important; line-height: 1.45 !important; color: var(--text) !important; }
.tsum b { color: var(--brass2); }
.tfish { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 5px; }
.tf { display: grid; grid-template-columns: 46px minmax(0, 1fr); grid-template-areas: "p n" "p s"; gap: 2px 7px; align-items: center; padding: 4px 7px 5px 4px; text-align: left; color: var(--text); font: inherit; cursor: pointer;
  border: 1px solid rgba(217, 185, 121, 0.16); border-radius: 3px; background: rgba(4, 9, 11, 0.3); }
.tf .tfi { grid-area: p; width: 46px; height: 24px; object-fit: contain; }
.tf:not(.got) .tfi { filter: saturate(0.5) brightness(0.8); }
.tf b { grid-area: n; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tf.got b { color: #fff7df; }
.tstrip { grid-area: s; display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 1px; height: 7px; }
.tstrip i { border-radius: 1px; background: var(--lc); }
.tf.on { border-color: var(--acc); box-shadow: 0 0 0 1px var(--acc) inset; background: rgba(52, 46, 26, 0.5); }
.tf:hover { filter: brightness(1.15); }
.tmore { display: flex; flex-wrap: wrap; gap: 6px; }
.tmore button, .trw button, .clubgold button, .clubplan { background: none; border: 1px solid transparent; border-image: url(../assets/ui/btn.webp) 60 fill / 12px stretch; border-radius: 0; color: #e8f4f0; padding: 7px 14px; font: inherit; font-size: 12.5px; font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75); cursor: pointer; transition: filter 0.12s ease; }
.tmore button:hover, .trw button:hover:not(:disabled), .clubgold button:hover, .clubplan:hover:not(:disabled) { filter: brightness(1.2); }
.tnote { font-size: 12px !important; }
.tnow { display: flex; gap: 10px; align-items: center; padding: 8px 10px; }
.tnow .tni .ic { width: 42px; height: 42px; vertical-align: middle; }
.tnow b { display: block; font: 400 18px / 1.2 var(--serif); color: var(--brass2); }
.tnow small { color: var(--dim); font-size: 12px; line-height: 1.4; }
.trw { display: grid; gap: 6px; padding: 9px 10px 10px; border: 1px solid rgba(240, 180, 76, 0.35); border-radius: 4px; background: linear-gradient(180deg, rgba(40, 36, 22, 0.5), rgba(8, 16, 19, 0.5)); }
.trwt { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; }
.trwt b { color: var(--brass2); }
.trwt small { color: var(--dim); font-size: 12px; }
.trw button.big { padding: 11px 18px; font-size: 14.5px; }
.trw button.primary { border-image-source: url(../assets/ui/btn_primary.webp); color: #2b1702; font-weight: 700; text-shadow: 0 1px 0 rgba(255, 236, 190, 0.55); }
.trw > small { text-align: center; }
/* клубная карта */
.club { display: grid; gap: 12px; max-width: 760px; }
.clubcard { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid rgba(217, 185, 121, 0.3); border-radius: 5px; background: linear-gradient(120deg, rgba(20, 36, 42, 0.8), rgba(8, 16, 19, 0.8)); }
.clubcard.on { border-color: var(--acc); box-shadow: 0 0 0 1px rgba(240, 180, 76, 0.5) inset, 0 0 22px rgba(240, 180, 76, 0.16); background: linear-gradient(120deg, rgba(58, 48, 24, 0.85), rgba(14, 24, 26, 0.85)); }
.clubic .ic { width: 72px; height: 72px; vertical-align: middle; }
.clubcard h3 { margin: 0 0 2px; font: 400 22px / 1.2 var(--serif); color: var(--brass2); letter-spacing: 0.03em; }
.clubcard p { margin: 0; color: var(--text); }
.clubperks { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px; }
.clubperks > div { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 2px 8px; align-items: start; padding: 9px 10px; border: 1px solid rgba(217, 185, 121, 0.16); border-radius: 4px; background: rgba(4, 9, 11, 0.3); }
.clubperks .ic { width: 28px; height: 28px; grid-row: 1 / 3; }
.clubperks b { font-size: 13px; }
.clubperks small { color: var(--dim); font-size: 12px; line-height: 1.35; }
.clubplans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.clubplan { display: grid; justify-items: center; gap: 1px; padding: 12px 10px; border-image-width: 16px; }
.clubplan b { font-size: 15px; }
.clubplan small { color: #b8cbc6; font-size: 11.5px; }
.clubplan span { margin-top: 5px; font: 400 19px / 1 var(--serif); color: var(--brass2); }
.clubgold { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.clubgold span { color: var(--brass2); }
.evcard u.wr { color: var(--warn); }
.panel.compact .tday { padding: 6px 6px 7px; }
.panel.compact .tday .tdi .ic { width: 30px; height: 30px; }
.panel.compact .tday b { font-size: 17px; }
.panel.compact .tday b i { font-size: 11.5px; margin-left: 4px; }
.panel.compact .tday .tdm { gap: 1px 6px; font-size: 10.5px; }
.panel.compact .tbars { gap: 1px; }
.panel.compact .tfish { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel.compact .clubplans { grid-template-columns: minmax(0, 1fr); }
.panel.compact .clubplan { grid-template-columns: 1fr auto; justify-items: start; align-items: center; text-align: left; }
.panel.compact .clubplan small { grid-column: 1; }
.panel.compact .clubplan span { grid-column: 2; grid-row: 1 / 3; margin: 0; }
@media (max-width: 420px) { .twx small { display: none; } .tleg u { display: none; } }
body.touch .tf { min-height: 40px; }

/* ---------- премиум-магазин (js/premium.js): отдельное окно поверх игры и меню ---------- */
/* Монеты, пакеты монет за голоса (только ВКонтакте), клубная карта на три срока, витрина вещей за монеты. Окно лежит выше меню,
   но ниже плашек наград (#award): письмо о зачисленных монетах видно поверх него. */
#premium { position: fixed; inset: 0; z-index: 25; display: flex; align-items: center; justify-content: center; background: rgba(4, 9, 11, 0.78); pointer-events: auto; }
#premium .pmwin { width: min(1040px, 96vw); height: min(840px, 92vh); max-height: none; overflow: hidden; }
.pmhead { gap: 12px; }
.pmhead h2 { flex: 0 0 auto; }
.pmbal { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px 4px 8px; border: 1px solid rgba(231, 198, 106, 0.45); border-radius: 4px; background: linear-gradient(120deg, rgba(58, 48, 24, 0.7), rgba(14, 24, 26, 0.6)); white-space: nowrap; }
.pmbal .ic { width: 24px; height: 24px; }
.pmbal b { font: 400 22px / 1 var(--serif); color: #ffe6a6; }
.pmbal small { color: var(--dim); font-size: 12px; }
.pmnav { display: flex; gap: 6px; margin-left: auto; }
.pmnav button { padding: 6px 13px; border: 1px solid rgba(217, 185, 121, 0.3); border-radius: 4px; background: rgba(6, 13, 16, 0.5); color: var(--text); font-size: 12.5px; cursor: pointer; white-space: nowrap; }
.pmnav button:hover { border-color: rgba(227, 198, 136, 0.8); filter: brightness(1.2); }
.pmbody { flex: 1; min-height: 0; padding: 14px 18px 18px; }
.pmsec { margin: 0 0 18px; }
.pmsec > h4:first-child { margin-top: 0; }
.pmsay { position: sticky; top: -14px; z-index: 3; margin: 0 0 12px; text-align: center; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5); background-color: #14242a; }
.pmsay.good { background: #17301f; }
.pmsay.warn { background: #33290f; }
.pmpacks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; padding-top: 8px; }
.pmpack, .pmplan { position: relative; display: grid; justify-items: center; align-content: start; gap: 2px; padding: 12px 8px 10px; border: 1px solid rgba(231, 198, 106, 0.35); border-radius: 4px;
  background: linear-gradient(170deg, rgba(231, 198, 106, 0.13), rgba(255, 255, 255, 0.02) 62%); color: var(--text); cursor: pointer; text-align: center; transition: border-color 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease; }
.pmpack:hover:not(:disabled), .pmplan:hover:not(:disabled) { border-color: rgba(240, 180, 76, 0.9); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45), 0 0 18px rgba(240, 180, 76, 0.14); transform: translateY(-1px); }
.pmpack.best { border-color: var(--acc); box-shadow: 0 0 0 1px rgba(240, 180, 76, 0.5) inset, 0 0 22px rgba(240, 180, 76, 0.16); }
.pmpack .rib { top: -9px; right: auto; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.pmart { display: block; width: min(112px, 100%); aspect-ratio: 1; }
.pmart .art { width: 100%; height: 100%; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.55)); }
.pmpack b, .pmplan b { font: 400 18px / 1.2 var(--serif); color: var(--brass2); letter-spacing: 0.02em; }
.pmpack small { min-height: 1.35em; color: var(--good); font-size: 12px; }
.pmplan small { color: #b8cbc6; font-size: 12px; }
.pmprice { display: inline-flex; align-items: center; gap: 5px; margin-top: 7px; padding: 7px 16px; border: 1px solid transparent; border-image: url(../assets/ui/btn_primary.webp) 60 fill / 12px stretch; color: #2b1702; font-weight: 700;
  font-size: 13.5px; letter-spacing: 0.02em; text-shadow: 0 1px 0 rgba(255, 236, 190, 0.55); white-space: nowrap; }
.pmplan .pmprice { border-image-source: url(../assets/ui/btn.webp); color: #ffe6a6; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75); font: 400 17px / 1 var(--serif); }
.pmplan.poor .pmprice { filter: grayscale(0.85) brightness(0.7); }
.pmplans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 10px 0 8px; }
.pmplan .pmart { width: min(104px, 100%); aspect-ratio: 3 / 2; }
.pmplan .pmart .art { object-fit: contain; }
.pmcat { margin: 14px 0 7px; font: 400 15px / 1.2 var(--serif); color: var(--brass2); letter-spacing: 0.04em; }
.pmgrid { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); }
.pmitem { cursor: default; }
.pmitem:hover { transform: none; }
.pmitem .chips { min-height: 19px; }
.pmitem .foot { flex-wrap: wrap; gap: 6px; }
.pmitem .foot u { display: inline-flex; align-items: center; gap: 3px; }
.pmitem .foot u.poor { color: var(--dim); }
.pmbtns { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; }
.panel .pmitem .pbtn { padding: 6px 12px; font-size: 12.5px; background: none; border: 1px solid transparent; border-image: url(../assets/ui/btn_primary.webp) 60 fill / 11px stretch; color: #2b1702; font-weight: 700; cursor: pointer; text-shadow: 0 1px 0 rgba(255, 236, 190, 0.55); }
.pmmore { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 1px solid rgba(217, 185, 121, 0.3); border-radius: 4px; background: rgba(6, 13, 16, 0.5); color: var(--text); cursor: pointer; }
.pmmore:hover { border-color: rgba(227, 198, 136, 0.8); filter: brightness(1.2); }
.pmfoot { margin: 0; }
/* кнопка с числом монет в шапке магазина открывает это окно */
button.mgold { padding: 6px 12px; border: 1px solid rgba(231, 198, 106, 0.5); border-radius: 999px; background: linear-gradient(120deg, rgba(58, 48, 24, 0.7), rgba(14, 24, 26, 0.6)); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
button.mgold:hover { border-color: #e7c66a; filter: brightness(1.2); }
button.mgold small { font-weight: 600; color: var(--text); opacity: 0.85; }
/* телефон и узкое окно: во весь экран, пакеты в два столбца, сроки карты строками */
body.touch #premium .pmwin, #premium .pmwin.compact { width: 100vw; height: 100vh; height: 100dvh; border: 0; border-radius: 0; }
.pmwin.compact .pmhead { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 10px; padding: calc(8px + var(--st, 0px)) calc(10px + var(--sr, 0px)) 8px calc(12px + var(--sl, 0px)); }
.pmwin.compact .pmhead h2 { font-size: 18px; }
.pmwin.compact .pmbal { justify-self: start; }
.pmwin.compact .pmnav { grid-column: 1 / -1; margin: 0; }
.pmwin.compact .pmnav button { flex: 1 1 0; padding: 8px 6px; }
.pmwin.compact .pmbody { padding: 12px calc(10px + var(--sr, 0px)) calc(16px + var(--sb, 0px)) calc(10px + var(--sl, 0px)); }
.pmwin.compact .pmsay { top: -12px; }
.pmwin.compact .pmpacks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pmwin.compact .pmpack:last-child:nth-child(odd) { grid-column: 1 / -1; }
.pmwin.compact .pmplans { grid-template-columns: minmax(0, 1fr); }
.pmwin.compact .pmplan { grid-template-columns: 76px minmax(0, 1fr) auto; justify-items: start; align-items: center; text-align: left; gap: 0 12px; padding: 8px 12px; }
.pmwin.compact .pmplan .pmart { grid-row: 1 / 3; width: 76px; }
.pmwin.compact .pmplan small { grid-column: 2; }
.pmwin.compact .pmplan .pmprice { grid-column: 3; grid-row: 1 / 3; margin: 0; }
.pmwin.compact .pmgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* ---------- конец: премиум-магазин ---------- */
/* ---------- веб-версия: окно аккаунта, документы сайта (js/site.js; в сборках площадок этого файла нет) ---------- */
#acctwin { position: fixed; inset: 0; z-index: 27; display: flex; align-items: center; justify-content: center; background: rgba(4, 9, 11, 0.78); pointer-events: auto; }
#acctwin .acwin { width: min(520px, 94vw); max-height: 92vh; overflow: hidden; }
.acwin .mhead .mx, .docwin .mhead .mx { margin-left: auto; }
.acbody { padding: 16px 20px 18px; overflow-y: auto; }
.acbody p { margin: 0 0 10px; }
.acbody .note { margin: 0 0 12px; }
.acfield { display: block; margin: 0 0 12px; }
.acfield > span:first-child { display: block; margin: 0 0 5px; color: var(--dim); font-size: 13px; }
.acfield .crewrow input { flex: 1 1 100%; width: 100%; font-size: 16px; }
.acfield #acCode { letter-spacing: 0.35em; font-size: 20px; text-align: center; }
.accheck { display: flex; gap: 10px; align-items: flex-start; margin: 2px 0 14px; font-size: 13.5px; line-height: 1.45; cursor: pointer; }
.accheck input { flex: 0 0 auto; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--acc); }
.acbody a, .sitelegal a, .pmneed a { color: var(--brass2); }
.acbody .cbtns { margin: 4px 0 12px; }
.aclist { margin: 0 0 14px; padding-left: 20px; color: #cfdad6; }
.aclist li { margin: 4px 0; }
.acme { display: grid; gap: 4px; margin: 0 0 14px; padding: 12px 14px; border: 1px solid rgba(231, 198, 106, 0.35); border-radius: 4px; background: linear-gradient(120deg, rgba(58, 48, 24, 0.45), rgba(14, 24, 26, 0.5)); }
.acme b { font: 400 19px / 1.2 var(--serif); color: #ffe6a6; overflow-wrap: anywhere; }
.acme small { color: var(--dim); font-size: 13px; }
.sitelegal { margin: 12px 0 0; font-size: 12.5px; line-height: 1.7; color: var(--dim); }
.sitelegal a { white-space: nowrap; }
.sitelegal.pmlegal { margin-top: 6px; }
a.pmpack { text-decoration: none; }
.pmneed { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.pmneed span { flex: 1 1 260px; }
.panel .pmneed .pbtn { padding: 7px 14px; font-size: 13px; background: none; border: 1px solid transparent; border-image: url(../assets/ui/btn_primary.webp) 60 fill / 11px stretch; color: #2b1702; font-weight: 700; cursor: pointer; text-shadow: 0 1px 0 rgba(255, 236, 190, 0.55); }
.panel .pmneed .pbtn.alt { border-image-source: url(../assets/ui/btn.webp); color: #e8f4f0; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75); }
/* подвал заставки: документы сайта видны посетителю до входа в игру */
#sitefoot { display: none; position: absolute; left: 0; right: 0; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); padding: 0 16px; justify-content: center; flex-wrap: wrap; gap: 2px 10px; font-size: 12.5px; z-index: 2; }
#loading.boot #sitefoot { display: flex; }
#sitefoot a { color: #e6e0d2; text-decoration: none; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95); opacity: 0.85; }
#sitefoot a:hover { opacity: 1; text-decoration: underline; }
#sitefoot i { font-style: normal; color: #e6e0d2; opacity: 0.5; }
/* телефон и узкое окно */
body.touch #acctwin .acwin, #acctwin .acwin.compact { width: 100vw; height: 100vh; height: 100dvh; max-height: none; border: 0; border-radius: 0; }
.acwin.compact .mhead { padding: calc(8px + var(--st, 0px)) calc(10px + var(--sr, 0px)) 8px calc(14px + var(--sl, 0px)); }
.acwin.compact .acbody { padding: 14px calc(14px + var(--sr, 0px)) calc(18px + var(--sb, 0px)) calc(14px + var(--sl, 0px)); }
.acwin.compact .cbtns { justify-content: stretch; }
.acwin.compact .cbtns button { flex: 1 1 auto; }
/* ---------- конец: веб-версия ---------- */
/* окно «Документы» (js/docs.js): соглашение, политика конфиденциальности и то, что добавит сборка */
#docwin { position: fixed; inset: 0; z-index: 29; display: flex; align-items: center; justify-content: center; background: rgba(4, 9, 11, 0.8); pointer-events: auto; }
#docwin .docwin { width: min(820px, 95vw); height: min(860px, 92vh); max-height: none; overflow: hidden; }
.docnav { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 16px; border-bottom: 1px solid rgba(217, 185, 121, 0.2); }
.docnav button { padding: 6px 12px; border: 1px solid rgba(217, 185, 121, 0.3); border-radius: 4px; background: rgba(6, 13, 16, 0.5); color: var(--text); font-size: 12.5px; cursor: pointer; }
.docnav button.on { border-color: var(--acc); color: #ffe6a6; }
.docbody { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 22px 22px; line-height: 1.6; font-size: 14.5px; user-select: text; -webkit-user-select: text; }
.docbody h1 { margin: 4px 0 6px; font: 400 26px / 1.2 var(--serif); color: var(--brass2); }
.docbody h2 { margin: 20px 0 6px; font-family: inherit; font-size: 16px; font-weight: 700; line-height: 1.3; letter-spacing: 0; text-transform: none; color: #f1e9d6; }
.docbody p, .docbody li { margin: 7px 0; }
.docbody ul, .docbody ol { padding-left: 22px; }
.docbody a { color: var(--brass2); }
.docbody .dim, .docbody small { color: var(--dim); }
.docbody table { border-collapse: collapse; margin: 10px 0; width: 100%; }
.docbody td, .docbody th { border: 1px solid rgba(217, 185, 121, 0.25); padding: 6px 10px; text-align: left; vertical-align: top; }
.docbody th { background: rgba(217, 185, 121, 0.1); }
.docbody mark, .docbody .todo { background: rgba(240, 180, 76, 0.28); color: #ffe6a6; padding: 0 3px; border-radius: 2px; }
.docbody .draft { margin: 0 0 12px; padding: 10px 12px; border: 1px dashed rgba(224, 108, 90, 0.8); border-radius: 4px; background: rgba(224, 108, 90, 0.1); color: #ffc2b6; font-size: 13px; }
body.touch #docwin .docwin, #docwin .docwin.compact { width: 100vw; height: 100vh; height: 100dvh; border: 0; border-radius: 0; }
.docwin.compact .mhead { padding: calc(8px + var(--st, 0px)) calc(10px + var(--sr, 0px)) 8px calc(14px + var(--sl, 0px)); }
.docwin.compact .mhead h2 { font-size: 17px; white-space: normal; }
.docwin.compact .docnav { padding: 8px calc(10px + var(--sr, 0px)) 8px calc(10px + var(--sl, 0px)); }
.docwin.compact .docbody { padding: 12px calc(14px + var(--sr, 0px)) calc(18px + var(--sb, 0px)) calc(14px + var(--sl, 0px)); }
/* кнопка, которая выглядит ссылкой: открывает документ */
button.doclink { display: inline; padding: 0; border: 0; background: none; color: var(--brass2); font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; pointer-events: auto; }
button.doclink:hover { filter: brightness(1.25); }
.docrow { display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: center; align-items: baseline; margin: 14px 0 0; font-size: 12.5px; color: var(--dim); }
/* ================= АВТОСБОР (js/trip.js, js/kitpick.js): начало ================= */
/* Экран выезда: рыбу в списке отмечают (одну, несколько или всю), кнопка собирает лучшее из своего; ниже — что собрано,
   что уехало домой и что стоит докупить. Картинки — готовые (предметы, звёзды), остальное — вёрстка. */
.tpick { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 2px; }
.tpick b { color: var(--brass2); font: 400 15px / 1.2 var(--serif); letter-spacing: 0.03em; }
.tpick small { color: var(--dim); font-size: 12px; flex: 1 1 auto; }
.tpick button { background: none; border: 1px solid rgba(217, 185, 121, 0.3); border-radius: 4px; color: var(--text); padding: 5px 12px; font: inherit; font-size: 12.5px; cursor: pointer; }
.tpick button.on { border-color: var(--acc); box-shadow: 0 0 0 1px var(--acc) inset; background: rgba(52, 46, 26, 0.5); color: #fff7df; }
.tf.pk { position: relative; }
.tf.pk.on::after { content: ''; position: absolute; right: 5px; top: 5px; width: 13px; height: 13px; background: url(../assets/ui/check.webp) center / contain no-repeat; }
.auto { display: grid; gap: 7px; margin-top: 8px; padding: 10px 10px 11px; border: 1px solid rgba(240, 180, 76, 0.35); border-radius: 4px; background: linear-gradient(180deg, rgba(40, 36, 22, 0.5), rgba(8, 16, 19, 0.5)); }
.autoh { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; }
.autoh b { color: var(--brass2); }
.autoh small { color: var(--dim); font-size: 12px; }
.auto > button.big { background: none; border: 1px solid transparent; border-image: url(../assets/ui/btn_primary.webp) 60 fill / 12px stretch; border-radius: 0; color: #2b1702; font: inherit; font-weight: 700; font-size: 14.5px; padding: 11px 18px; cursor: pointer; text-shadow: 0 1px 0 rgba(255, 236, 190, 0.55); }
.auto > button.big:disabled { filter: grayscale(0.7) brightness(0.7); cursor: default; }
.auto > button.big:hover:not(:disabled) { filter: brightness(1.12); }
.auto > small { text-align: center; }
.autores { display: grid; gap: 7px; margin-top: 4px; }
.autores h4 { margin: 6px 0 0; }
.arig { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 9px; align-items: start; padding: 7px 8px; border: 1px solid rgba(217, 185, 121, 0.16); border-radius: 4px; background: rgba(4, 9, 11, 0.3); }
.arig .ithumb.sm, .advrow .ithumb.sm { width: 64px; height: 48px; aspect-ratio: auto; }
.arig b { display: block; color: #fff7df; font-size: 13.5px; }
.arig b u { text-decoration: none; margin-left: 6px; padding: 1px 6px; border: 1px solid rgba(240, 180, 76, 0.5); border-radius: 3px; color: var(--acc); font-size: 10.5px; font-weight: 500; vertical-align: 1px; }
.arig small { display: block; color: var(--dim); font-size: 12px; line-height: 1.4; margin-top: 1px; }
.afor { display: flex; flex-wrap: wrap; gap: 3px 10px; margin-top: 4px; }
.afor i { font-style: normal; font-size: 12.5px; color: var(--text); white-space: nowrap; }
.afor .stars { margin-left: 2px; vertical-align: -2px; }
.arig em { display: block; margin-top: 4px; padding-left: 8px; border-left: 2px solid rgba(87, 199, 189, 0.5); color: #b9d3cf; font-style: normal; font-size: 12px; line-height: 1.4; }
.aline { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--text); }
.aline b { color: var(--brass2); font-weight: 600; }
.adv { display: grid; gap: 5px; }
.advrow { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 9px; align-items: center; padding: 5px 8px; border: 1px solid rgba(217, 185, 121, 0.16); border-radius: 4px; background: rgba(4, 9, 11, 0.3); }
.advrow b { display: block; font-size: 13px; color: #fff7df; }
.advrow small { display: block; color: var(--dim); font-size: 12px; line-height: 1.35; }
.advrow button, .abtn button { background: none; border: 1px solid transparent; border-image: url(../assets/ui/btn.webp) 60 fill / 12px stretch; border-radius: 0; color: #e8f4f0; padding: 7px 12px; font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; }
.advrow button:hover, .abtn button:hover:not(:disabled) { filter: brightness(1.2); }
.abtn { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.abtn button:disabled { filter: grayscale(0.6) brightness(0.7); cursor: default; }
.panel.compact .arig, .panel.compact .advrow { grid-template-columns: 52px minmax(0, 1fr); }
.panel.compact .arig .ithumb.sm, .panel.compact .advrow .ithumb.sm { width: 52px; height: 39px; }
.panel.compact .advrow button { grid-column: 1 / -1; justify-self: stretch; }
body.touch .tpick button, body.touch .advrow button, body.touch .abtn button { min-height: 40px; }
/* ================= АВТОСБОР: конец ================= */
