/* Команды в бою, PvP, награды, гильдии, обмен, сумка, уведомления. Цвета — из theme/theme.css. */

/* ---------- Команда в бою ---------- */
.duel-teams { display: flex; justify-content: space-between; gap: 8px; padding: 8px 14px; background: var(--ink-900); border-bottom: 2px solid var(--ink-line); }
.duel-teams:empty { display: none; }
.duel-team-row { display: flex; align-items: center; gap: 5px; }
.duel-team-row small { font-size: 10px; font-weight: 900; letter-spacing: .08em; color: var(--mute); margin-right: 2px; text-transform: uppercase; }
.duel-team-row--foe { flex-direction: row-reverse; }
.duel-pip { position: relative; width: 34px; height: 34px; border-radius: 50%; background: var(--ink-700); border: 2px solid var(--ink-line); overflow: hidden; display: grid; place-items: center; }
.duel-pip img { width: 30px; height: 30px; object-fit: contain; filter: none !important; }
.duel-pip i { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--leaf); }
.duel-pip.is-active { box-shadow: 0 0 0 2px var(--sun); }
.duel-pip.is-out { opacity: .35; filter: grayscale(1); }
.duel-extra { margin-top: 10px; }
.duel-extra-toggle { width: 100%; font-size: 13px; }
.duel-extra-panel { margin-top: 8px; padding: 10px; border-radius: var(--r-md); background: var(--ink-900); border: 2px solid var(--ink-line); }
.duel-extra-title { font-size: 11px; font-weight: 800; color: var(--text-2); margin: 4px 0 6px; }
.duel-extra-list { display: flex; flex-wrap: wrap; gap: 6px; }
.duel-extra-list .btn { padding: 7px 10px; font-size: 12px; }
.duel-heal { position: absolute; left: 22%; top: 40%; font-size: 46px; font-weight: 900; color: var(--leaf); -webkit-text-stroke: 2px var(--ink-line); animation: duel-damage 1s ease-out both; }
.story-enemy-team { display: flex; align-items: center; }
.story-enemy-team img + img, .story-enemy-team span + span { margin-left: -10px; }
.tower-team { display: flex; align-items: flex-end; }
.tower-team > * + * { margin-left: -12px; }
.story-title-pill { margin-top: 6px; color: var(--sun); }

/* ---------- Побочные поручения ---------- */
.side-quests { display: grid; gap: 8px; }
.side-quest { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: var(--r-md); background: var(--panel); border: 2px solid var(--panel-border); box-shadow: var(--shadow-cel-sm); }
.side-quest.is-done { box-shadow: var(--shadow-cel-sm), inset 0 0 0 2px var(--sun); }
.side-quest.is-claimed { opacity: .6; }
.side-quest-npc { flex: 0 0 42px; height: 42px; display: grid; place-items: center; font-size: 24px; border-radius: 50%; background: var(--ink-700); border: 2px solid var(--ink-line); }
.side-quest-body { flex: 1; min-width: 0; }
.side-quest-body small { font-size: 10px; font-weight: 900; color: var(--sun); letter-spacing: .06em; }
.side-quest-body strong { display: block; font-size: 14px; }
.side-quest-body p { font-size: 12px; color: var(--text-2); margin: 3px 0 6px; line-height: 1.5; }
.side-quest .story-reward { margin: 8px 0 0; }

/* ---------- PvP ---------- */
.pvp-rating { display: flex; justify-content: space-between; align-items: center; }
.pvp-rating small { font-size: 10px; font-weight: 900; letter-spacing: .12em; color: var(--sun); }
.pvp-rating strong { display: block; font-size: 36px; font-weight: 900; line-height: 1.1; text-shadow: 0 3px 0 var(--ink-line); }
.pvp-rating span { font-size: 12px; color: var(--text-2); }
.pvp-season-end { font-size: 11px !important; padding: 4px 10px; border-radius: var(--r-pill); background: var(--ink-900); border: 2px solid var(--ink-line); }
.pvp-result { display: flex; flex-direction: column; gap: 2px; text-align: center; }
.pvp-result strong { font-size: 20px; }
.pvp-result.is-win { box-shadow: var(--shadow-cel), inset 0 0 0 2px var(--sun); }
.pvp-result span { font-size: 12px; color: var(--text-2); }
.pvp-season-claim { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pvp-challenge { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.pvp-challenge strong { flex: 1; }
.pvp-queue { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.pvp-queue span:not(.dot-bounce) { font-size: 12px; color: var(--text-2); }
.pvp-actions { display: flex; gap: 8px; margin-top: 10px; }
.pvp-actions .btn { flex: 1; }
.pvp-challenge-form { display: flex; gap: 8px; margin-top: 10px; }
.pvp-challenge-form .input { flex: 1; }
.pvp-season-info { margin: 10px 0 14px; }
.pvp-panel { max-width: none; animation: none; }

/* ---------- Награды ---------- */
.daily-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin: 10px 0; }
.daily-day { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px; border-radius: var(--r-md); background: var(--ink-900); border: 2px solid var(--ink-line); text-align: center; }
.daily-day small { font-size: 9px; font-weight: 900; color: var(--mute); }
.daily-day span { font-size: 15px; line-height: 1.2; }
.daily-day.is-today { box-shadow: inset 0 0 0 2px var(--sun); background: rgba(var(--sun-rgb), .12); }
.daily-day.is-claimed { opacity: .55; }
.daily-day b { position: absolute; top: -6px; right: -4px; width: 18px; height: 18px; border-radius: 50%; background: var(--leaf); color: var(--ink-950); font-size: 11px; display: grid; place-items: center; border: 2px solid var(--ink-line); }
.pass-head { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 0; }
.pass-head strong { font-size: 22px; font-weight: 900; }
.pass-head small { font-size: 12px; color: var(--mute); }
.pass-head span { font-size: 12px; color: var(--sun); font-weight: 800; }
.pass-levels { display: grid; gap: 6px; margin-top: 12px; max-height: 420px; overflow-y: auto; padding-right: 2px; }
.pass-level { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: var(--r-md); background: var(--ink-900); border: 2px solid var(--ink-line); opacity: .6; }
.pass-level b { flex: 0 0 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--ink-700); border: 2px solid var(--ink-line); font-size: 12px; }
.pass-level span { flex: 1; display: flex; flex-wrap: wrap; gap: 4px; }
.pass-level span .pill { font-size: 10px; padding: 2px 6px; }
.pass-level.is-ready { opacity: 1; box-shadow: inset 0 0 0 2px var(--sun); }
.pass-level.is-ready b { background: var(--sun); color: var(--ink-950); }
.pass-level.is-claimed { opacity: .45; }
.pass-level.is-big b { width: 32px; height: 32px; box-shadow: 0 0 0 2px rgba(var(--violet-rgb), .6); }
.pass-level .pill { cursor: pointer; color: var(--text); }
.pass-level i { font-style: normal; color: var(--leaf); font-weight: 900; }
.pass-sources { margin-top: 10px; font-size: 12px; color: var(--text-2); }
.pass-sources summary { cursor: pointer; font-weight: 800; }
.pass-sources ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; margin-top: 8px; }
.pass-sources b { color: var(--sun); }

/* ---------- Гильдии ---------- */
.guild-list, .guild-members { display: grid; gap: 8px; }
.guild-item, .guild-member { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-md); background: var(--panel); border: 2px solid var(--panel-border); box-shadow: var(--shadow-cel-sm); }
.guild-item > div, .guild-member strong { flex: 1; min-width: 0; }
.guild-item strong { display: block; font-size: 14px; }
.guild-item small, .guild-member small { font-size: 11px; color: var(--mute); }
.guild-item p { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.guild-member { flex-wrap: wrap; }
.guild-member .pill { cursor: pointer; color: var(--text); }
.guild-emblem { flex: 0 0 44px; height: 44px; display: grid; place-items: center; font-size: 24px; border-radius: var(--r-md); background: var(--ink-700); border: 2px solid var(--ink-line); }
.guild-emblem--big { flex-basis: 58px; height: 58px; font-size: 32px; }
.guild-head { display: flex; align-items: center; gap: 12px; }
.guild-head > div:not(.guild-points) { flex: 1; min-width: 0; }
.guild-head strong { display: block; font-size: 16px; }
.guild-head small { font-size: 11px; color: var(--mute); }
.guild-head p { font-size: 12px; color: var(--text-2); margin-top: 3px; }
.guild-points { text-align: center; }
.guild-points b { display: block; font-size: 24px; font-weight: 900; color: var(--sun); line-height: 1; }
.guild-points small { font-size: 10px; color: var(--mute); }
.guild-create summary { cursor: pointer; font-weight: 900; }
.guild-create .input { margin-top: 8px; }
.guild-emblems { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.guild-emblem-btn { width: 40px; height: 40px; font-size: 20px; border-radius: var(--r-md); background: var(--ink-700); border: 2px solid var(--ink-line); cursor: pointer; }
.guild-emblem-btn.is-on { box-shadow: inset 0 0 0 2px var(--sun); background: rgba(var(--sun-rgb), .15); }
.guild-messages { height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 8px; margin: 8px 0; border-radius: var(--r-md); background: var(--ink-950); border: 2px solid var(--ink-line); }
.guild-msg { max-width: 85%; padding: 6px 10px; border-radius: 12px 12px 12px 4px; background: var(--ink-700); border: 1.5px solid var(--ink-line); font-size: 13px; }
.guild-msg.is-mine { align-self: flex-end; border-radius: 12px 12px 4px 12px; background: rgba(var(--sun-rgb), .18); }
.guild-msg b { display: block; font-size: 11px; color: var(--sun); }
.guild-msg span { word-break: break-word; }
.guild-msg time { display: block; font-size: 10px; color: var(--mute); text-align: right; }
.guild-send { display: flex; gap: 8px; }
.guild-send .input { flex: 1; }
.guild-leave { margin-top: 16px; }

/* ---------- Обмен ---------- */
.trade-new summary { cursor: pointer; font-weight: 900; }
.trade-form { display: grid; gap: 10px; margin-top: 10px; }
.trade-coins { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.trade-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.trade-pick-btn { display: flex; flex-direction: column; align-items: center; padding: 6px; border-radius: var(--r-md); background: var(--ink-800); border: 2px solid var(--ink-line); color: var(--text); cursor: pointer; }
.trade-pick-btn small { font-size: 10px; }
.trade-pick-btn.is-on { box-shadow: inset 0 0 0 2px var(--sun); background: rgba(var(--sun-rgb), .15); }
.trade-row { display: flex; align-items: center; gap: 8px; }
.trade-side { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px; border-radius: var(--r-md); background: var(--ink-900); border: 2px solid var(--ink-line); text-align: center; min-height: 110px; justify-content: center; }
.trade-side strong { font-size: 13px; }
.trade-side small { font-size: 10px; color: var(--mute); }
.trade-empty { font-size: 24px; color: var(--mute); }
.trade-arrow { font-size: 22px; color: var(--sun); font-weight: 900; }
.trade-actions { display: flex; gap: 8px; margin-top: 10px; }
.trade-actions .btn { flex: 1; }

/* ---------- Сумка ---------- */
.bag-title { font-size: 15px; font-weight: 900; margin: 14px 0 2px; }
.bag-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin-top: 6px; border-radius: var(--r-md); background: var(--ink-800); border: 2px solid var(--ink-line); }
.bag-item > div { flex: 1; min-width: 0; }
.bag-item strong { display: block; font-size: 13px; }
.bag-item small { font-size: 11px; color: var(--text-2); }
.bag-emoji { font-size: 26px; }
.bag-empty { font-size: 12px; color: var(--mute); padding: 6px 0; }
.bag .btn.w-full { margin-top: 14px; }
.hero-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.hero-quick .btn { padding: 9px 6px; font-size: 13px; }

/* ---------- Уведомления ---------- */
.notif-btn { position: relative; cursor: pointer; margin-right: 6px; background: var(--chip); border: 2px solid var(--chip-border); }
.notif-badge { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: var(--r-pill); background: var(--coral); color: #fff; font-size: 10px; font-weight: 900; display: grid; place-items: center; border: 2px solid var(--ink-line); }
.notif-badge[hidden] { display: none; }
.notif-panel { position: fixed; top: 56px; left: 50%; transform: translateX(-50%); z-index: 96; width: min(440px, calc(100% - 24px)); max-height: 70vh; overflow-y: auto;
  padding: 12px; border-radius: var(--r-xl); background: var(--panel-solid); border: 2px solid var(--ink-line); box-shadow: var(--shadow-float); animation: duel-panel-in .25s ease both; }
.notif-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.notif-head .pill { cursor: pointer; color: var(--text); }
.notif-item { display: flex; gap: 10px; padding: 8px; border-radius: var(--r-md); margin-bottom: 6px; background: var(--ink-900); border: 2px solid transparent; }
.notif-item.is-new { border-color: rgba(var(--sun-rgb), .5); }
.notif-item span { font-size: 20px; }
.notif-item p { font-size: 13px; line-height: 1.45; }
.notif-item time { font-size: 10px; color: var(--mute); }
.notif-empty { padding: 10px 4px; }
.notif-panel .btn { margin-top: 6px; }
