/* Охота за ружьями: значок едва заметен, при наведении загорается цветом книги. */
button.gun {
  display: inline-grid; place-items: center; width: 22px; height: 22px; margin: 0 0 0 4px; padding: 0;
  vertical-align: -4px; background: none; border: 0; border-radius: 50%; cursor: pointer;
  color: var(--muted); opacity: .38; transition: opacity .25s, color .25s, filter .25s, transform .25s;
  -webkit-tap-highlight-color: transparent;
}
button.gun svg { width: 12px; height: 12px; }
button.gun:hover, button.gun:focus-visible {
  opacity: 1; color: var(--accent); transform: scale(1.25);
  filter: drop-shadow(0 0 4px var(--accent)) drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 60%, transparent));
}
button.gun:focus-visible { outline: 1px solid var(--accent); outline-offset: 1px; }
button.gun.found { color: var(--accent); opacity: .7; }
button.gun.gun-corner { position: absolute; right: 6px; bottom: 6px; margin: 0; z-index: 2; }
button.gun.pop { animation: gun-pop .7s ease; }
@keyframes gun-pop { 40% { transform: scale(1.8); opacity: 1; color: var(--accent); } }
@media (prefers-reduced-motion: reduce) { button.gun, button.gun.pop { transition: none; animation: none; } }

.hunt-toast {
  position: fixed; left: 50%; bottom: 20px; z-index: 50; width: min(380px, calc(100% - 32px));
  padding: 14px 40px 14px 16px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--surface, #111) 88%, transparent); color: var(--ink);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px -12px #000, 0 0 40px -14px var(--accent);
  font-size: .92rem; line-height: 1.45;
  opacity: 0; pointer-events: none; transform: translate(-50%, 14px); transition: opacity .25s, transform .25s;
}
.hunt-toast.on { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.hunt-toast b { display: block; font-family: var(--font-display); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.hunt-toast p { margin: 6px 0 0; }
.hunt-hint { font-style: italic; }
.hunt-more, .hunt-win { color: var(--muted); font-size: .85rem; }
.hunt-win { color: var(--ink); }
.hunt-toast a { color: var(--accent); }
.hunt-x { position: absolute; top: 6px; right: 8px; width: 28px; height: 28px; background: none; border: 0; color: var(--muted); font-size: 1.3rem; line-height: 1; cursor: pointer; }

/* Кабинет: охота и значки */
.acc-hunt .hunt-bar { height: 6px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 12%, transparent); overflow: hidden; margin: 4px 0 14px; }
.acc-hunt .hunt-bar i { display: block; height: 100%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.hunt-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.hunt-list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: .9rem; color: var(--muted); }
.hunt-list li svg { width: 16px; height: 16px; margin-top: 3px; }
.hunt-list li.got { color: var(--ink); }
.hunt-list li.got svg { color: var(--accent); }
.hunt-list li small { display: block; color: var(--accent); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.hunt-list li:not(.got) small { color: var(--muted); }
.hunt-list .q { display: grid; place-items: center; width: 18px; height: 18px; margin-top: 2px; border: 1px dashed var(--line); border-radius: 50%; font-size: .7rem; }

.acc-badges { grid-column: 1 / -1; }
.badges { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
.badge { display: grid; justify-items: center; gap: 4px; text-align: center; padding: 14px 8px 12px; border-radius: 14px; border: 1px solid var(--line); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.badge svg { width: 60px; height: 60px; }
.badge .rim { fill: color-mix(in srgb, var(--accent) 16%, transparent); stroke: var(--accent); stroke-width: 2.5; }
.badge .ring { fill: none; stroke: var(--accent); stroke-width: 1; stroke-dasharray: 2 3; opacity: .6; }
.badge .glyph { fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.badge.on svg { filter: drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 45%, transparent)); }
.badge strong { font-size: .86rem; line-height: 1.25; }
.badge span { font-size: .74rem; color: var(--muted); line-height: 1.35; }
.badge.on span { color: var(--accent); letter-spacing: .04em; }
.badge.off { background: none; border-style: dashed; }
.badge.off svg { filter: grayscale(1); opacity: .35; }
.badge.off strong { color: var(--muted); }
@media (max-width: 420px) {
  .badges { grid-template-columns: 1fr 1fr; gap: 8px; }
  .badge svg { width: 50px; height: 50px; }
}
