/* Shared from BaseGameDiscord 0.94.0. Do not edit here: change it in BaseGameDiscord and run tools/sync.mjs. */
/* The Achievements page and its pop-up (shared/client/achievements.js) */
.ach-page { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.ach-sum { font-weight: 800; text-align: center; }
.ach-sum b { font-size: 1.5rem; }
.ach-bar { height: 8px; border-radius: 99px; background: var(--surface-edge); overflow: hidden; margin-top: 6px; }
.ach-bar i { display: block; height: 100%; border-radius: 99px; background: var(--accent, var(--blue, #5865f2)); }
.ach-tabs { display: flex; gap: 8px; }
.ach-tabs button { flex: 1; padding: 9px 10px; border-radius: 12px; border: 0; background: var(--surface); box-shadow: 0 3px 0 var(--surface-edge); color: var(--ink); font: inherit; font-weight: 800; font-size: 0.9rem; }
.ach-tabs button.on { background: var(--accent, var(--blue, #5865f2)); box-shadow: none; color: #fff; }
.ach-tabs button:disabled { opacity: 0.5; }
.ach-h { margin: 8px 0 0; font-size: 1rem; display: flex; justify-content: space-between; align-items: baseline; }
.ach-h span { color: var(--muted); font-weight: 700; font-size: 0.9rem; }
.ach-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ach { display: flex; gap: 0.9em; align-items: center; padding: 0.7em 0.9em; border-radius: 12px; background: var(--surface); box-shadow: 0 3px 0 var(--surface-edge); }
.ach-ico { flex: none; width: 2.6em; height: 2.6em; box-sizing: border-box; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 1rem; line-height: 1; background: var(--surface-edge); color: var(--muted); border: 2px solid var(--muted); }
.ach.done .ach-ico { background: #f5b82e; color: #3a2a00; border-color: #f5b82e; }
.ach.part .ach-ico { background: var(--accent, var(--blue, #5865f2)); color: #fff; border-color: transparent; }
.ach-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.ach-main b { font-size: 0.98rem; overflow-wrap: anywhere; }
.ach-main span { color: var(--muted); font-size: 0.85rem; overflow-wrap: anywhere; }
.ach-main small { color: var(--muted); font-size: 0.78rem; font-variant-numeric: tabular-nums; }
.ach.lock { opacity: 0.72; }
.ach.lock.secret .ach-main b { letter-spacing: 0.2em; }
#ach-toast { position: fixed; left: 50%; bottom: calc(max(12px, env(safe-area-inset-bottom)) + 24px); transform: translate(-50%, 160%); z-index: 9999; width: min(92vw, 360px); box-sizing: border-box; padding: 10px 14px; border-radius: 14px; background: var(--surface); color: var(--ink); border: 2px solid #f5b82e; box-shadow: 0 6px 20px rgb(0 0 0 / 0.35); display: flex; flex-direction: column; gap: 1px; text-align: center; opacity: 0; visibility: hidden; transition: transform 0.35s ease, opacity 0.3s ease, visibility 0s linear 0.35s; pointer-events: none; }
#ach-toast.on { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform 0.35s ease, opacity 0.3s ease, visibility 0s; }
#ach-toast b { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: #f5b82e; }
#ach-toast span { font-weight: 900; font-size: 1.05rem; }
#ach-toast small { color: var(--muted); }

.ach-head { flex: none; display: flex; flex-direction: column; gap: 12px; }

.ach-title { display: flex; align-items: center; justify-content: space-between; gap: 0.6em; }
.ach-pips { flex: none; display: flex; gap: 0.3em; }
.ach-pips i { width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--surface-edge); border: 1.5px solid var(--muted); box-sizing: border-box; }
.ach-pips i.on { background: #f5b82e; border-color: #f5b82e; }

.ach-note { margin: 0 0 10px; font-size: 0.85em; opacity: 0.75; text-align: center; }
