/* Значки ачивок: рамка-шестигранник по уровню, эмблема — маска из /img/achievements/<id>.png */
.ach-b { --sz: 56px; display: inline-grid; place-items: center; flex: none; width: var(--sz); height: calc(var(--sz) * 1.1); clip-path: polygon(50% 0, 96% 25%, 96% 75%, 50% 100%, 4% 75%, 4% 25%); background: linear-gradient(160deg, #cfe0f1, #6f95b9 70%, #3e6489); }
.ach-b i { display: block; width: 58%; aspect-ratio: 1; background: #101a26; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.ach-b.l-gold { background: linear-gradient(160deg, #ffe29a, #d7a02f 62%, #8a5a10); }
.ach-b.l-gold i { background: #2b1b05; }
.ach-b.l-silver { background: linear-gradient(160deg, #f2f4f8, #a7afbf 62%, #666e7e); }
.ach-b.l-silver i { background: #1a1d24; }
.ach-b.l-bronze { background: linear-gradient(160deg, #f1b48a, #bf7240 62%, #6e3a18); }
.ach-b.l-bronze i { background: #2a1306; }
.ach-b.lock { background: rgba(128, 132, 146, .22); }
.ach-b.lock i { background: rgba(128, 132, 146, .6); }

.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.ach-card { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--s1, #12141c); border: 1px solid var(--line, rgba(255, 255, 255, .08)); min-width: 0; }
.ach-card > div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ach-card b { font-size: .98rem; font-weight: 700; line-height: 1.25; }
.ach-card b em { font-style: normal; font-weight: 500; color: var(--soft, #9aa2b6); font-size: .85rem; }
.ach-card .ach-d { font-size: 13px; color: var(--soft, #9aa2b6); line-height: 1.35; }
.ach-card .ach-s, .ach-card .ach-next { font-size: 12.5px; color: var(--soft, #9aa2b6); }
.ach-card.off { opacity: .72; }
.ach-card.off b { color: var(--soft, #9aa2b6); }
.ach-bar { display: block; height: 5px; border-radius: 3px; background: rgba(128, 132, 146, .25); margin-top: 4px; overflow: hidden; }
.ach-bar i { display: block; height: 100%; background: #6f95b9; border-radius: 3px; }
.ach-more { margin-top: 12px; }
.ach-more summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--soft, #9aa2b6); padding: 8px 0; }
.ach-more .ach-grid { margin-top: 8px; }

/* мини-значки в истории */
.ach-mini { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }

/* у имени в результатах */
.ach-pop { position: relative; display: inline-block; vertical-align: middle; margin-left: 6px; }
.ach-pb { display: inline-flex; align-items: center; gap: 2px; padding: 4px; margin: -4px; background: none; border: 0; cursor: pointer; color: var(--soft, #9aa2b6); font: inherit; min-height: 30px; min-width: 30px; justify-content: center; }
.ach-pb em { font-style: normal; font-size: 11px; font-weight: 700; }
.ach-menu { position: fixed; left: 0; top: 0; z-index: 1000; width: min(300px, 80vw); padding: 10px 12px; border-radius: 14px; background: var(--s2, #1a1d27); border: 1px solid var(--line2, rgba(255, 255, 255, .14)); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); text-align: left; font-weight: 400; }
.ach-menu[hidden] { display: none; }
.ach-menu ul { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.ach-menu li { display: flex; gap: 10px; align-items: center; }
.ach-menu li b { display: block; font-size: 13.5px; line-height: 1.25; }
.ach-menu li small { display: block; font-size: 12px; color: var(--soft, #9aa2b6); }
.ach-menu a { font-size: 13px; font-weight: 600; }
.ach-tour .ach-list { display: grid; gap: 8px; }
.ach-tour .ach-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: var(--s1, #12141c); border: 1px solid var(--line, rgba(255, 255, 255, .08)); }
.ach-tour .ach-row b { font-size: 14px; }
.ach-tour .ach-row span { font-size: 13px; color: var(--soft, #9aa2b6); }
@media (max-width: 520px) { .ach-grid { grid-template-columns: 1fr; } }
@media print { .ach-pop { display: none; } }

.arena .facts { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; }
.arena .facts li { font-size: 13px; color: var(--soft); padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--s1); }
.ach-count { font-size: .55em; font-weight: 500; color: var(--soft, #9aa2b6); margin-left: 8px; }

.ach-chip { display: inline-flex; align-items: center; gap: 2px; margin-left: 6px; vertical-align: middle; }
.ach-chip em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--soft, #9aa2b6); }

/* страница «Все достижения» */
.ach-sec { margin: 28px 0 8px; }
.ach-sec h2 { margin: 0 0 12px; }
.ach-fullgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.ach-full { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; padding: 16px 18px; border-radius: 16px; background: var(--s1, #12141c); border: 1px solid var(--line, rgba(255, 255, 255, .08)); min-width: 0; }
.ach-full h3 { margin: 0 0 4px; font-size: 1.02rem; }
.ach-full p { margin: 0; font-size: 13.5px; color: var(--soft, #9aa2b6); line-height: 1.4; }
.ach-tiers { display: flex; gap: 18px; flex-wrap: wrap; }
.ach-tier { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 52px; text-align: center; }
.ach-tl { font-size: 12px; color: var(--soft, #9aa2b6); }
.ach-tn { font-size: 14px; font-weight: 700; }
.ach-unit { display: block; font-size: 13px; color: var(--soft, #9aa2b6); margin-top: 2px; }
.ach-note { display: block; margin-top: 6px; font-size: 12.5px; color: var(--soft, #9aa2b6); }
.ach-foot { margin: 22px 0 8px; font-size: 13px; color: var(--soft, #9aa2b6); }
@media (max-width: 520px) { .ach-fullgrid { grid-template-columns: 1fr; } }
.ach-tn { white-space: nowrap; }
.ach-tiers + .ach-unit { margin-top: 8px; }
