:root{--am-action-grad:linear-gradient(90deg,#7F7FD5,#86A8E7,#91EAE4);--am-user-grad:linear-gradient(90deg,#FF6A88,#FF99AC);--am-global-grad:linear-gradient(90deg,#43cea2,#185a9d);--am-radius:14px}
.am-root{max-width:760px;margin:32px auto;padding:20px;font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;background:#fff;border-radius:18px;box-shadow:0 10px 40px rgba(0,0,0,0.08);position:relative}
.am-title{margin:0 0 18px;font-weight:800;letter-spacing:.2px;text-align:center}
.am-sr-only{position:absolute!important;height:1px;width:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}
.am-actions{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:10px;margin:16px 0 28px}
.am-action-btn{appearance:none;border:0;border-radius:10px;padding:10px 12px;text-align:left;cursor:pointer;background:var(--am-action-grad);color:#fff;font-weight:600;transition:transform .15s ease,box-shadow .2s ease,filter .2s ease;position:relative}
.am-action-btn:hover{transform:translateY(-1px);filter:brightness(1.05)}
.am-meters{display:grid;grid-template-columns:1fr;gap:18px}
@media (min-width:700px){.am-meters{grid-template-columns:1fr 1fr}}
.am-meter-block .am-meter-label{font-weight:700;margin-bottom:6px;text-align:center}
.am-meter{position:relative;height:28px;border-radius:var(--am-radius);overflow:hidden;background:#eaeaea;box-shadow:inset 0 0 0 1px rgba(0,0,0,.06)}
.am-meter-fill{width:0%;height:100%;background:var(--am-user-grad);transition:width .6s ease-in-out}
.am-meter-fill.am-global{background:var(--am-global-grad)}
.am-meter-text{position:absolute;inset:0;display:grid;place-items:center;font-weight:700;color:rgba(0,0,0,.75)}
.am-subtext{margin-top:6px;text-align:center;font-size:13px;color:rgba(0,0,0,.6)}
.am-thermo-wrap{position:relative;width:150px;height:400px;margin:10px auto 0}
.am-thermo-art{position:absolute;inset:0;background-repeat:no-repeat;background-position:center;background-size:contain;z-index:2}
.am-thermo-fill{position:absolute;left:0;right:0;bottom:0;height:0%;z-index:1;background:var(--am-thermo-fill,#FF6A88);-webkit-mask-image:var(--am-thermo-mask);-webkit-mask-size:contain;-webkit-mask-position:center;-webkit-mask-repeat:no-repeat;mask-image:var(--am-thermo-mask);mask-size:contain;mask-position:center;mask-repeat:no-repeat;transition:height .6s ease-in-out}
@supports not (mask-image: url("")) {.am-thermo-fill{opacity:.6;mix-blend-mode:multiply}}
.am-badges{margin-top:18px}
.am-badges-head{font-weight:700;margin-bottom:8px}
.am-badges-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px}
.am-badge{display:flex;align-items:center;gap:8px;background:#f8fafc;border:1px solid #e5e7eb;border-radius:10px;padding:8px 10px}
.am-badge .am-badge-medal{font-size:18px;display:inline-flex;align-items:center;justify-content:center}
.am-badge .am-badge-medal img{width:18px;height:18px;display:block}
.am-badge em{font-style:normal;opacity:.7;margin-left:4px}
.am-toast{position:fixed;left:50%;transform:translateX(-50%);bottom:20px;background:#111;color:#fff;padding:10px 14px;border-radius:999px;opacity:0;transition:opacity .2s ease, transform .2s ease;z-index:9999}
.am-toast.show{opacity:1;transform:translate(-50%, -4px)}
.am-leaderboard{max-width:760px;margin:20px auto;padding:12px 16px;background:#fff;border-radius:14px;box-shadow:0 8px 28px rgba(0,0,0,.06)}
.am-leaderboard-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.am-leaderboard-sub{font-size:12px;opacity:.7}
.am-leaderboard-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.am-lb-row{display:flex;justify-content:space-between;font-weight:700}
.am-lb-label{max-width:72%}
.am-lb-count{opacity:.75}
.am-lb-bar{height:8px;background:#eaeaea;border-radius:999px;overflow:hidden;margin-top:6px}
.am-lb-bar>span{display:block;height:100%;width:0;background:linear-gradient(90deg,#43cea2,#185a9d)}
.am-confetti{position:fixed;inset:0;width:100vw;height:100vh;pointer-events:none;z-index:9999}
.am-deeds-list{list-style:none;margin:0 0 10px; padding:0; border:1px solid #e5e7eb; border-radius:10px; overflow:hidden}
.am-deeds-list li{display:flex; align-items:center; gap:8px; padding:8px 10px; background:#fff; border-bottom:1px solid #eef2f7; cursor:grab}
.am-deeds-list li:last-child{border-bottom:0}
.am-deeds-handle{cursor:grab; opacity:.6}
.am-deeds-input{flex:1}
.am-preview{margin-top:14px}
.am-analytics-controls{margin:10px 0 12px;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.am-note{margin-bottom:10px;padding:8px 10px;border:1px solid #f0ad4e;border-radius:8px;background:#fff7e6;color:#8a6d3b}
