/* Achievements page (uses the Support page frame: .tkp) */
.achp { --a: var(--acc, #8f82ec); }
.ach-h { display: flex; align-items: center; gap: 18px; margin-top: 4px; padding: 18px; border-radius: 24px; border: 1px solid rgba(255,255,255,.08);
  background: radial-gradient(120% 120% at 0% 0%, rgba(240,162,75,.2), transparent 60%), linear-gradient(155deg, color-mix(in srgb, var(--a) 20%, transparent), rgba(255,255,255,.03)); }
.ach-ring { position: relative; flex: none; width: 92px; height: 92px; }
.ach-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ach-ring circle { fill: none; stroke-width: 7; stroke-linecap: round; }
.ach-ring .bg { stroke: rgba(255,255,255,.1); }
.ach-ring .fg { stroke: #f6c343; transition: stroke-dashoffset .8s cubic-bezier(.2,.9,.3,1); filter: drop-shadow(0 0 6px rgba(246,195,67,.5)); }
.ach-ring b { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; font-size: 26px; line-height: 1; font-weight: 850; letter-spacing: -.03em; }
.ach-ring b small { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.5); margin-left: 1px; }
.ach-ht { min-width: 0; }
.ach-ht > small { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.ach-ht h1 { margin: 4px 0 6px; font-size: 22px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
.ach-ht p { margin: 0; font-size: 13px; color: rgba(255,255,255,.6); }
.ach-gn { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.5); }
.ach-l { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.ach-i { display: flex; align-items: center; gap: 12px; padding: 13px 14px; }
.ach-i + .ach-i { border-top: 1px solid rgba(255,255,255,.06); }
.ach-ic { flex: none; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); }
.ach-ic svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ach-i.done .ach-ic { background: linear-gradient(145deg, #fde68a, #f6c343); color: #4a2c02; box-shadow: 0 6px 16px -6px rgba(246,195,67,.7); }
.ach-i.can .ach-ic { animation: achpulse 1.6s ease-in-out infinite; }
@keyframes achpulse { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 22%, transparent); } }
.ach-m { flex: 1; min-width: 0; }
.ach-1 { display: flex; align-items: center; gap: 8px; }
.ach-1 b { flex: 1; min-width: 0; font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ach-1 em { flex: none; font-style: normal; font-size: 12px; font-weight: 800; color: #fcd34d; }
.ach-i.done .ach-1 em { color: rgba(255,255,255,.4); }
.ach-m > small { display: block; margin-top: 2px; font-size: 12.5px; color: rgba(255,255,255,.55); }
.ach-bar { height: 5px; margin-top: 9px; border-radius: 9px; background: rgba(255,255,255,.08); overflow: hidden; }
.ach-bar i { display: block; height: 100%; border-radius: 9px; background: var(--c); transition: width .6s ease; }
.ach-m .ach-n { margin-top: 4px; font-size: 11.5px; font-variant-numeric: tabular-nums; color: rgba(255,255,255,.45); }
.ach-claim { all: unset; cursor: pointer; flex: none; height: 34px; padding: 0 14px; border-radius: 99px; font-size: 13.5px; font-weight: 800; background: linear-gradient(145deg, #fde68a, #f6c343); color: #3b2402; box-shadow: 0 6px 16px -6px rgba(246,195,67,.8); }
.ach-claim:active { transform: scale(.95); }
.ach-go { all: unset; cursor: pointer; flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.06); color: rgba(255,255,255,.6); }
.ach-go svg, .ach-done svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ach-done { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(74,222,128,.14); color: #4ade80; }
.ach-foot { margin: 18px 4px 0; text-align: center; font-size: 12.5px; color: rgba(255,255,255,.4); }
/* Earn MP card */
.ach-cico { background: rgba(246,195,67,.14); color: #f6c343; }
.ach-mini { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 14px; }
.ach-mini > div { display: grid; grid-template-columns: 30px 1fr auto; grid-template-rows: auto auto; column-gap: 10px; row-gap: 5px; align-items: center; }
.ach-mini span { grid-row: 1 / 3; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); }
.ach-mini span svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ach-mini b { grid-column: 2; grid-row: 1; font-size: 13.5px; font-weight: 650; color: #fff; }
.ach-mini small { grid-column: 3; grid-row: 1; font-size: 12px; font-weight: 800; color: #fcd34d; }
.ach-mini > div.can small { color: #4ade80; }
.ach-mini i { grid-column: 2 / 4; grid-row: 2; height: 4px; border-radius: 9px; background: rgba(255,255,255,.08); overflow: hidden; }
.ach-mini i em { display: block; height: 100%; background: var(--c); }
/* unlocked note */
#achpop { all: unset; cursor: pointer; position: fixed; z-index: 1003; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 96px); box-sizing: border-box; width: min(92vw, 380px); display: flex; align-items: center; gap: 12px; padding: 11px 16px 11px 11px;
  border-radius: 20px; background: rgba(28,24,14,.94); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid rgba(246,195,67,.35); box-shadow: 0 16px 40px -10px rgba(0,0,0,.8), 0 0 30px -12px rgba(246,195,67,.6);
  opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%, 50px) scale(.96); transition: transform .5s cubic-bezier(.2,1.2,.3,1), opacity .3s, visibility 0s .5s; font-family: -apple-system, system-ui, sans-serif; }
#achpop.on { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); transition: transform .5s cubic-bezier(.2,1.2,.3,1), opacity .25s, visibility 0s; }
#achpop .ap-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(145deg, #fde68a, #f6c343); color: #4a2c02; }
#achpop .ap-ic svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#achpop .ap-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
#achpop small { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #fcd34d; }
#achpop b { font-size: 15px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#achpop em { font-style: normal; font-size: 14px; font-weight: 800; color: #fcd34d; }

#achpop { touch-action: none; -webkit-user-select: none; user-select: none; }
