/* «Достижения» (0.68, n70 a; public/club-achievements.js): the badge by the name, the hall's toast, the back-fill's
   card, the profile's section. Painted badges from public/ach-art (128 px webp). Only its own boxes; moves by
   transform and opacity only. */

/* The badge by the name (in the place of a bought one: club-looks.css .club-bdg) */
.ach-bdg { display: inline-flex; align-items: center; margin-left: 2px; vertical-align: -3px; }
.ach-bdg-i { width: 16px; height: 16px; border-radius: 50%; display: block; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .45)); }
.person > .ach-bdg, .club-chip > .ach-bdg { margin-left: -2px; }
.person[data-club-tt] > .ach-bdg, .club-chip[data-club-tt] > .ach-bdg { grid-area: 1 / 3 / 2 / 4; margin-left: 4px; }

/* The toast: someone earned one */
.ach-toast {
  position: fixed; z-index: 2600; left: 50%; top: calc(max(0px, env(safe-area-inset-top)) + 58px); /* under the top bar: its names stay seen */ width: min(440px, calc(100vw - 24px));
  display: flex; align-items: center; gap: 12px; padding: 10px 56px 10px 10px; border-radius: 18px; box-sizing: border-box;
  background: linear-gradient(135deg, rgba(48, 36, 74, .97), rgba(30, 26, 46, .97)); color: #f5efe6;
  border: 1px solid rgba(233, 196, 106, .55); box-shadow: 0 10px 34px rgba(0, 0, 0, .5), 0 0 0 1px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .08);
  transform: translate(-50%, -18px) scale(.96); opacity: 0; transition: transform .38s cubic-bezier(.2, 1.3, .4, 1), opacity .3s ease; pointer-events: none;
}
.ach-toast.in { transform: translate(-50%, 0) scale(1); opacity: 1; }
.ach-toast.out { transform: translate(-50%, -10px) scale(.98); opacity: 0; transition-duration: .35s; }
.ach-toast.still, .ach-toast.still.in, .ach-toast.still.out { transition: opacity .2s linear; transform: translate(-50%, 0); }
.ach-toast.mine { border-color: rgba(255, 214, 120, .9); }
.ach-toast-art { flex: none; width: 58px; height: 58px; position: relative; }
.ach-toast-art .ach-art { width: 58px; height: 58px; display: block; border-radius: 50%; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .5)); }
.ach-toast.in:not(.still) .ach-toast-art .ach-art { animation: ach-pop .7s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes ach-pop { 0% { transform: scale(.4) rotate(-25deg); } 100% { transform: scale(1) rotate(0); } }
.ach-toast-t { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ach-toast-who { font-size: 12px; font-weight: 600; color: #e9c46a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ach-toast-n { font-size: 16px; font-weight: 700; line-height: 1.2; }
.ach-toast-h { font-size: 12px; color: rgba(245, 239, 230, .72); line-height: 1.25; }
.ach-toast-pts { position: absolute; right: 12px; top: 10px; font-size: 13px; font-weight: 800; color: #ffd27a; }
.ach-toast-more { display: flex; align-items: center; gap: 4px; margin-top: 3px; font-size: 12px; color: rgba(245, 239, 230, .8); }
.ach-toast-sm { width: 20px; height: 20px; border-radius: 50%; }

/* «Вы уже заслужили: …» */
.ach-card-wrap { position: fixed; inset: 0; z-index: 2700; display: grid; place-items: center; padding: 16px; background: rgba(10, 8, 18, .62); animation: ach-fade .25s ease both; }
.ach-card {
  width: min(460px, 100%); max-height: calc(100vh - 32px); overflow: auto; box-sizing: border-box; padding: 20px 18px 18px; border-radius: 22px; text-align: center;
  background: radial-gradient(120% 70% at 50% 0%, rgba(233, 196, 106, .18), transparent 60%), linear-gradient(180deg, #2c2342, #1d1a2c);
  color: #f5efe6; border: 1px solid rgba(233, 196, 106, .5); box-shadow: 0 18px 60px rgba(0, 0, 0, .6);
  animation: ach-rise .45s cubic-bezier(.2, 1.2, .4, 1) both;
}
.ach-card-t { font-size: 22px; font-weight: 800; letter-spacing: .01em; }
.ach-card-sub { margin-top: 4px; font-size: 13px; color: rgba(245, 239, 230, .7); }
.ach-card-grid { margin: 16px 0 6px; display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 12px 8px; }
.ach-card-it { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 12px; line-height: 1.2; animation: ach-in .5s cubic-bezier(.2, 1.3, .4, 1) both; animation-delay: calc(var(--k, 0) * 70ms + 150ms); }
.ach-card-it .ach-art { width: 64px; height: 64px; border-radius: 50%; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .5)); }
.ach-card-pts { margin-top: 12px; font-size: 17px; font-weight: 700; color: #ffd27a; }
.ach-card-cap { margin-top: 4px; font-size: 12px; color: rgba(245, 239, 230, .6); }
.ach-card-ok { margin-top: 16px; min-width: 160px; padding: 11px 22px; border: 0; border-radius: 999px; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; color: #2b1d06; background: linear-gradient(180deg, #ffd884, #e9b44c); box-shadow: 0 4px 14px rgba(233, 180, 76, .35); }
.ach-card-ok:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.ach-card-wrap.still, .ach-card-wrap.still .ach-card, .ach-card-wrap.still .ach-card-it { animation: none; }
@keyframes ach-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ach-rise { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes ach-in { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }

/* The profile's section */
.ach-pp { margin: 12px 0 4px; }
.ach-pp-t { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted, #a9a3b8); margin: 4px 0 8px; }
.ach-pp-t small { text-transform: none; letter-spacing: 0; margin-left: 4px; opacity: .85; }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.ach-it { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; padding: 8px 6px 8px; border-radius: 14px; background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .07); }
.ach-it.on { border-color: rgba(233, 196, 106, .7); background: rgba(233, 196, 106, .1); }
.ach-it .ach-art { width: 52px; height: 52px; border-radius: 50%; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .45)); }
.ach-it-n { font-size: 12.5px; font-weight: 700; line-height: 1.2; }
.ach-it-h { font-size: 11px; line-height: 1.25; color: var(--muted, #a9a3b8); }
.ach-hint { display: block; margin-top: 3px; font-size: 11px; line-height: 1.25; font-style: italic; color: var(--muted, #a9a3b8); opacity: .9; } /* 0.65.1 n78: a secret one's hint */
.ach-hint::before { content: '✦ '; font-style: normal; opacity: .7; }
.ach-wear { margin-top: 4px; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(233, 196, 106, .55); background: transparent; color: #e9c46a; font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer; }
.ach-wear[aria-pressed="true"] { background: rgba(233, 196, 106, .2); color: #ffd884; }
.ach-wear:disabled { opacity: .5; }
@media (max-width: 480px) { .ach-wear { white-space: nowrap; padding: 4px 8px; } } /* «У имени ✓» on one line in a 3-across grid */
.ach-none { font-size: 12.5px; color: var(--muted, #a9a3b8); padding: 4px 0; }
/* n75 (n76 #4, stopgap): the card already wears titles (.pp-badges) — the club list does not say «0 из 20 · Пока нет достижений»
   next to them; a list with nothing earned and nothing ahead goes away. The counts of the two systems stay apart (data, later). */
.pp-body:has(> .pp-badges) .ach-pp :is(.ach-none, .ach-n0) { display: none; }
.pp-body:has(> .pp-badges) > .ach-pp:not(:has(.ach-grid, .ach-list)) { display: none; }
.ach-sub { margin: 12px 0 6px; font-size: 12px; color: var(--muted, #a9a3b8); }
.ach-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 10px; }
.ach-pr { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 12px; background: rgba(255, 255, 255, .03); }
.ach-pr[hidden], .ach-it[hidden] { display: none; } /* n82: «Посмотреть все · N» holds the rest */
.ach-pr .ach-art.dim { width: 40px; height: 40px; border-radius: 50%; flex: none; filter: grayscale(.85) brightness(.75); opacity: .75; }
.ach-pr-t { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ach-bar { display: block; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; margin-top: 3px; }
.ach-bar > i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #e9b44c, #ffd884); }
.ach-more { align-self: flex-start; margin-top: 8px; min-height: 40px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line, rgba(255, 255, 255, .14)); background: rgba(255, 255, 255, .04); color: var(--text, #fff); font: inherit; font-size: 13px; cursor: pointer; } /* n75: as .ppx-more (was a 32 px outline pill) */
.ach-more:hover { background: rgba(255, 255, 255, .08); }
@media (pointer: coarse) { .ach-more { min-height: 44px; } }
.ach-more:focus-visible { outline: 2px solid #e9c46a; outline-offset: 2px; }
.ach-more[aria-expanded="true"] { color: var(--muted, #a9a3b8); } /* n82: «Свернуть» — quieter than «Посмотреть все» */
.ach-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } /* n82: three shown = one full row (desktop too) */
.ach-pr-n { font-size: 11px; color: rgba(245, 239, 230, .8); font-variant-numeric: tabular-nums; }
.ach-qs { display: flex; flex: none; }
.ach-qs .ach-q + .ach-q { margin-left: -14px; }
.ach-q { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 20px; color: rgba(233, 196, 106, .85); background: rgba(233, 196, 106, .08); border: 2px dashed rgba(233, 196, 106, .45); box-sizing: border-box; }
@media (max-width: 480px) {
  .ach-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ach-list { grid-template-columns: 1fr; }
  .ach-toast { gap: 10px; padding: 9px 50px 9px 9px; }
  .ach-toast-art, .ach-toast-art .ach-art { width: 50px; height: 50px; }
  .ach-toast-n { font-size: 15px; }
  .ach-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* 0.66.4 (n114): the toast by tier — one's own is a moment (.big): the badge pops, a shine sweeps (bronze); + a ring
   burst and sparkles (silver); + light rays and gold confetti (gold); + a prismatic sheen, a shower, the screen-edge
   glow (platinum); a secret one tears its seal open first. Particles: club-ach-fx.js's canvas (.ach-fx-cv). Somebody
   else's: the quiet line in its tier's colour. .film: compact. .still (reduced motion): a fade, nothing flies. */
.ach-toast { --tc: #e9c46a; --tc2: #b8862f; }
.ach-toast[data-tier="bronze"] { --tc: #eab07a; --tc2: #a8693a; }
.ach-toast[data-tier="silver"] { --tc: #e8eef6; --tc2: #93a5bb; }
.ach-toast[data-tier="gold"] { --tc: #ffd77a; --tc2: #d99a22; }
.ach-toast[data-tier="platinum"] { --tc: #eaf6ff; --tc2: #a99cff; }
.ach-toast[data-tier] { border-color: color-mix(in srgb, var(--tc) 60%, transparent); }
.ach-toast.mine[data-tier] { border-color: var(--tc); }
.ach-toast-bg { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.ach-toast-bg::after { content: ''; position: absolute; top: -20%; bottom: -20%; left: 0; width: 38%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .16) 45%, rgba(255, 255, 255, .3) 50%, rgba(255, 255, 255, .16) 55%, transparent); transform: translateX(-120%) skewX(-12deg); opacity: 0; }
.ach-toast.big.go:not(.still) .ach-toast-bg::after { animation: ach-shine 1.2s .3s ease-in-out both; }
@keyframes ach-shine { 0% { transform: translateX(-120%) skewX(-12deg); opacity: 1; } 100% { transform: translateX(330%) skewX(-12deg); opacity: 1; } }
.ach-toast-t { position: relative; }
.ach-toast-tier { align-self: flex-start; margin: 1px 0 1px; padding: 1px 7px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #1d1830; background: linear-gradient(135deg, var(--tc), var(--tc2)); }
.ach-toast[data-tier="platinum"] .ach-toast-tier { background: linear-gradient(110deg, #ffd9f3, #d4f3ff 35%, #e6ffd9 60%, #c9c0ff); }
.ach-toast.secret .ach-toast-tier { background: linear-gradient(135deg, #c9b6ff, #7c5cd6); color: #fff; }
.ach-toast:not(.big):not(.film) .ach-toast-tier { display: none; } /* the hall's line stays as it was */
.ach-tilt { display: block; width: 100%; height: 100%; position: relative; z-index: 2; transform: perspective(300px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .18s ease-out; }
.ach-rays, .ach-ring { position: absolute; pointer-events: none; opacity: 0; border-radius: 50%; }
.ach-rays { inset: -38px; z-index: 0; background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--tc) 55%, transparent) 0deg 7deg, transparent 7deg 22deg); -webkit-mask: radial-gradient(closest-side, #000 30%, transparent 100%); mask: radial-gradient(closest-side, #000 30%, transparent 100%); }
.ach-ring { inset: -4px; z-index: 1; border: 2px solid var(--tc); box-shadow: 0 0 12px var(--tc); }
.ach-toast.big.go:not(.still) .ach-tilt .ach-art { animation: ach-pop2 .75s cubic-bezier(.2, 1.5, .4, 1) both; }
@keyframes ach-pop2 { 0% { transform: scale(.3) rotate(-30deg); opacity: 0; } 60% { opacity: 1; } 100% { transform: scale(1) rotate(0); } }
.ach-toast.big.go:not(.still)[data-tier="silver"] .ach-ring, .ach-toast.big.go:not(.still)[data-tier="gold"] .ach-ring, .ach-toast.big.go:not(.still)[data-tier="platinum"] .ach-ring { animation: ach-ring .9s .12s ease-out both; }
@keyframes ach-ring { 0% { transform: scale(.7); opacity: .95; } 100% { transform: scale(1.75); opacity: 0; } }
.ach-toast.big.go:not(.still)[data-tier="gold"] .ach-rays, .ach-toast.big.go:not(.still)[data-tier="platinum"] .ach-rays { animation: ach-rays 2.6s .1s ease-out both; }
@keyframes ach-rays { 0% { transform: rotate(0) scale(.6); opacity: 0; } 20% { opacity: .9; } 70% { opacity: .55; } 100% { transform: rotate(50deg) scale(1.05); opacity: 0; } }
.ach-toast.big.secret.go:not(.still) .ach-tilt .ach-art, .ach-toast.big.secret.go:not(.still) .ach-ring, .ach-toast.big.secret.go:not(.still) .ach-rays, .ach-toast.big.secret.go:not(.still) .ach-toast-bg::after { animation-delay: .65s; }
/* the platinum card's prismatic sheen */
.ach-toast-bg::before { content: ''; position: absolute; inset: 0; opacity: 0; background: linear-gradient(115deg, transparent 15%, rgba(255, 140, 210, .2) 35%, rgba(130, 220, 255, .2) 50%, rgba(170, 255, 170, .16) 65%, transparent 85%); background-size: 260% 100%; mix-blend-mode: screen; }
.ach-toast.big.go[data-tier="platinum"]:not(.still) .ach-toast-bg::before { animation: ach-prism 3s .1s ease-in-out both; }
.ach-toast.big[data-tier="platinum"].still .ach-toast-bg::before { opacity: .6; background-position: 50% 0; }
@keyframes ach-prism { 0% { opacity: 0; background-position: 100% 0; } 20% { opacity: 1; } 100% { opacity: .55; background-position: 0 0; } }
/* a secret one: the seal tears open */
.ach-seal { display: none; position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.ach-toast.big.secret .ach-seal { display: block; }
.ach-seal-l, .ach-seal-r { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; font-weight: 900; font-size: 15px; letter-spacing: .04em; color: #e9d7ff; background: radial-gradient(circle at 35% 30%, #6a4fb0, #2b1f4f 70%); border: 2px dashed rgba(220, 200, 255, .7); box-sizing: border-box; transition: transform .45s cubic-bezier(.3, 1.2, .5, 1), opacity .4s ease; }
.ach-seal-l { clip-path: polygon(0 0, 53% 0, 46% 17%, 55% 33%, 45% 50%, 56% 67%, 47% 84%, 52% 100%, 0 100%); }
.ach-seal-r { clip-path: polygon(53% 0, 100% 0, 100% 100%, 52% 100%, 47% 84%, 56% 67%, 45% 50%, 55% 33%, 46% 17%); }
.ach-toast.big.secret:not(.open) .ach-tilt { opacity: 0; }
.ach-toast.big.secret.open .ach-seal-l { transform: translate(-46%, 8%) rotate(-28deg); opacity: 0; }
.ach-toast.big.secret.open .ach-seal-r { transform: translate(46%, 8%) rotate(28deg); opacity: 0; }
.ach-toast.big.secret.go:not(.open):not(.still) .ach-seal { animation: ach-shake .5s .05s ease-in-out both; }
@keyframes ach-shake { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-7deg) scale(1.04); } 45% { transform: rotate(6deg) scale(1.06); } 70% { transform: rotate(-4deg) scale(1.08); } }
.ach-toast.big.secret .ach-toast-n { transition: filter .4s ease, opacity .4s ease; }
.ach-toast.big.secret:not(.open) .ach-toast-n, .ach-toast.big.secret:not(.open) .ach-toast-h { filter: blur(5px); opacity: .6; }
.ach-toast.big.secret:not(.open) .ach-toast-pts { opacity: 0; } /* the ★ come with the badge */
/* the goal reached */
.ach-toast-prog { display: flex; align-items: center; gap: 7px; margin-top: 3px; font-size: 11px; }
.ach-toast-prog[hidden] { display: none; }
.ach-bar { width: 96px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.ach-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--tc2), var(--tc)); transform-origin: left; transform: scaleX(1); }
.ach-toast.big.go:not(.still) .ach-bar i { animation: ach-fill .7s .4s cubic-bezier(.3, .8, .4, 1) both; }
@keyframes ach-fill { 0% { transform: scaleX(var(--from, .9)); } 100% { transform: scaleX(1); } }
.ach-toast-prog em { font-style: normal; font-weight: 700; color: var(--tc); }
/* the ★: the final text stays for the screen reader, the counter is drawn over it */
.ach-toast-pts.counting { color: transparent; }
.ach-toast-cnt { position: absolute; right: 0; top: 0; color: #ffd27a; white-space: nowrap; }
.ach-toast-pts.done { animation: ach-bump .35s ease-out; }
@keyframes ach-bump { 50% { transform: scale(1.18); } }
/* one's own, bigger */
.ach-toast.big { width: min(460px, calc(100vw - 24px)); padding: 12px 64px 14px 14px; gap: 14px; pointer-events: auto; cursor: pointer; box-shadow: 0 12px 38px rgba(0, 0, 0, .55), 0 0 26px color-mix(in srgb, var(--tc) 28%, transparent), inset 0 1px 0 rgba(255, 255, 255, .1); }
.ach-toast.big .ach-toast-art, .ach-toast.big .ach-toast-art .ach-art { width: 76px; height: 76px; }
.ach-toast.big .ach-toast-art .ach-art { filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .55)) drop-shadow(0 0 8px color-mix(in srgb, var(--tc) 45%, transparent)); }
.ach-toast.big .ach-toast-pts { top: 12px; right: 14px; font-size: 15px; }
.ach-toast-dots { position: absolute; right: 42px; bottom: 11px; display: flex; gap: 4px; }
.ach-toast-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .25); transition: background .3s; }
.ach-toast-dots i.on { background: var(--tc); }
.ach-toast-snd { position: absolute; right: 8px; bottom: 6px; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .06); color: inherit; cursor: pointer; opacity: .75; }
.ach-toast-snd::before { content: ''; display: block; width: 15px; height: 15px; margin: 6.5px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 9h4l5-4v14l-5-4H4z'/%3E%3Cpath d='M16 8.5a5 5 0 0 1 0 7M18.5 6a8.5 8.5 0 0 1 0 12' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 9h4l5-4v14l-5-4H4z'/%3E%3Cpath d='M16 8.5a5 5 0 0 1 0 7M18.5 6a8.5 8.5 0 0 1 0 12' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.ach-toast-snd[aria-pressed="false"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 9h4l5-4v14l-5-4H4z'/%3E%3Cpath d='M16.5 9.5l5 5M21.5 9.5l-5 5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 9h4l5-4v14l-5-4H4z'/%3E%3Cpath d='M16.5 9.5l5 5M21.5 9.5l-5 5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); opacity: .7; }
.ach-toast-snd:hover, .ach-toast-snd:focus-visible { opacity: 1; background: rgba(255, 255, 255, .14); }
/* more waiting behind: a card's edge and «+N ещё» — never a wall */
.ach-toast-stack { display: none; }
.ach-toast[data-stack]:not([data-stack="0"]) .ach-toast-stack { display: block; position: absolute; top: calc(100% + 10px); right: 16px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; color: #f5efe6; background: rgba(36, 30, 56, .92); border: 1px solid rgba(233, 196, 106, .35); }
.ach-toast[data-stack]:not([data-stack="0"])::after { content: ''; position: absolute; left: 14px; right: 14px; top: 100%; height: 6px; border-radius: 0 0 12px 12px; background: rgba(36, 30, 56, .9); border: 1px solid rgba(233, 196, 106, .3); border-top: 0; }
/* the particles' canvas and the platinum glow round the screen */
.ach-fx-cv { position: absolute; left: -60px; top: -60px; width: calc(100% + 120px); height: calc(100% + 120px); pointer-events: none; z-index: 4; }
.ach-edge { position: fixed; inset: 0; z-index: 2599; pointer-events: none; box-shadow: inset 0 0 70px 6px rgba(205, 185, 255, .38), inset 0 0 160px 10px rgba(130, 220, 255, .16); opacity: 0; animation: ach-edge 1.9s ease-out forwards; }
@keyframes ach-edge { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0; } }
/* under a film: compact, no flourish */
.ach-toast.film { width: min(340px, calc(100vw - 24px)); padding: 7px 46px 7px 8px; gap: 9px; }
.ach-toast.film .ach-toast-art, .ach-toast.film .ach-toast-art .ach-art { width: 40px; height: 40px; }
.ach-toast.film .ach-toast-n { font-size: 14px; }
.ach-toast.film .ach-toast-tier { font-size: 9px; }
/* reduced motion: a fade only */
.ach-toast.still *, .ach-toast.still .ach-toast-bg::after, .ach-toast.still .ach-toast-bg::before { animation: none !important; transition: none !important; }
.ach-toast.still .ach-tilt { transform: none; }
@media (max-width: 480px) {
  .ach-toast.big { padding: 10px 52px 12px 10px; gap: 11px; }
  .ach-toast.big .ach-toast-art, .ach-toast.big .ach-toast-art .ach-art { width: 60px; height: 60px; }
  .ach-toast.big .ach-toast-n { font-size: 15px; }
  .ach-bar { width: 72px; }
  .ach-rays { inset: -28px; }
}
