/* Levels, badges and notifications (M-013). Loaded on every page by layout-site/master: the ring and the number of
   the level go around the avatars everywhere (components/account/avatar, the avatars built in js/components/
   progression.js), and the header carries the red dot of the notifications. The level block, the badges and the
   achievements and notifications pages are below. */

/* ================== TOKENS ================== */
:root {
    --tier-novice: #8e8a96;
    --tier-explorer: #c9894f;
    --tier-respected: #c4cad6;
    --tier-veteran: #c9a54a;
    --tier-master: #8fd3ee;
    --tier-legend: #a98bff;
    --tier-divine: #e5486b;
    --tier-transcendent: #f5b83d;

    --badge-bronze: #c9894f;
    --badge-silver: #c4cad6;
    --badge-gold: #e8bd4f;
    --badge-platinum: #8fd3ee;
    --badge-diamond: #b7f0ff;
    --badge-locked: #3a3742;
}

.is-tier-novice { --tier-color: var(--tier-novice); }
.is-tier-explorer { --tier-color: var(--tier-explorer); }
.is-tier-respected { --tier-color: var(--tier-respected); }
.is-tier-veteran { --tier-color: var(--tier-veteran); }
.is-tier-master { --tier-color: var(--tier-master); }
.is-tier-legend { --tier-color: var(--tier-legend); }
.is-tier-divine { --tier-color: var(--tier-divine); }
.is-tier-transcendent { --tier-color: var(--tier-transcendent); }

/* ================== RING AND PILL OF THE AVATAR ================== */
/* Both are pseudo-elements outside the circle (the circle clips what is inside it, and a new photo replaces its
   content): the ring in the color of the tier and the pill with the number at the bottom right. Below 24px the pill
   shrinks to nothing: --level-pill-on is 0px there and 1px above. Rooms of the Social have their own "speaking"
   ring, so they take only the pill (.level-pill). */
.level-ring,
.level-pill {
    --level-line: clamp(1.5px, calc(var(--avatar-size, 48px) * 0.04), 4px);
    --level-pill-on: clamp(0px, calc((var(--avatar-size, 48px) - 23.5px) * 1000), 1px);
    --level-pill-size: min(clamp(15px, calc(var(--avatar-size, 48px) * 0.34), 36px), calc(var(--level-pill-on) * 1000));
}

.account-avatar.level-ring,
.account-avatar.level-pill,
.social-avatar.level-ring,
.social-avatar.level-pill {
    position: relative;
    overflow: visible;
}

.level-ring::before {
    content: '';
    position: absolute;
    inset: calc(-2 * var(--level-line));
    border: var(--level-line) solid var(--tier-color, var(--tier-novice));
    border-radius: 50%;
    pointer-events: none;
}

.level-ring::after,
.level-pill::after {
    content: attr(data-level);
    position: absolute;
    right: calc(var(--level-pill-size) * -0.28);
    bottom: calc(var(--level-pill-size) * -0.22);
    z-index: 1;
    box-sizing: border-box;
    min-width: var(--level-pill-size);
    height: var(--level-pill-size);
    padding: 0 calc(var(--level-pill-size) * 0.2);
    border: calc(var(--level-pill-on) * 1.5) solid var(--tier-color, var(--tier-novice));
    border-radius: 999px;
    background: var(--surface-0);
    font-family: var(--font-display);
    font-weight: var(--font-display-weight);
    font-size: calc(var(--level-pill-size) * 0.7);
    line-height: calc(var(--level-pill-size) - var(--level-pill-on) * 3);
    letter-spacing: 0.03em;
    text-align: center;
    font-variant-numeric: tabular-nums;
    color: var(--text-1);
    text-shadow: none;
    pointer-events: none;
}

/* The top tier: the amber of THIRA turning slowly around the photo, still for who asks for less movement */
.level-ring.is-tier-transcendent::before {
    border: 0;
    padding: var(--level-line);
    background: conic-gradient(var(--tier-transcendent), #fff1c2, var(--tier-transcendent), #c8871d, var(--tier-transcendent));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    animation: level-ring-turn 6s linear infinite;
}

.account-avatar.level-ring.is-tier-transcendent {
    box-shadow: 0 0 18px -2px color-mix(in srgb, var(--tier-transcendent) 65%, transparent);
}

@keyframes level-ring-turn {
    to {
        transform: rotate(1turn);
    }
}

/* Their own ring gives way to the ring of the tier */
.account-avatar.level-ring.profile-hero-avatar,
.account-avatar.level-ring.app-account-avatar,
.app-account-button:hover .account-avatar.level-ring.app-account-avatar,
.app-account-button[aria-expanded="true"] .account-avatar.level-ring.app-account-avatar {
    box-shadow: none;
}

.app-account-button:hover .level-ring::before,
.app-account-button[aria-expanded="true"] .level-ring::before {
    filter: brightness(1.25);
}

/* Faces piled on each other (recommendations, collaborative lists) are too small and close for a ring */
.recs-friends .level-ring::before,
.recs-friends .level-ring::after,
.collab-avatar .level-ring::before,
.collab-avatar .level-ring::after {
    display: none;
}

/* The Social draws its own avatars (34px) */
.social-avatar.level-ring,
.social-avatar.level-pill {
    --avatar-size: 34px;
}

/* The podium of the homes (site/public-dashboard) draws its own photo, sized by place: the photo keeps its circle by
   itself, so the ring and the pill can go outside it */
.podium-avatar.level-ring {
    --avatar-size: 44px;
    position: relative;
    overflow: visible;
}

.podium-avatar.level-ring img {
    position: absolute;
    inset: 0;
    border-radius: 50%;
}

.podium-step--1 .podium-avatar.level-ring {
    --avatar-size: 52px;
}

.podium-step--4 .podium-avatar.level-ring,
.podium-step--5 .podium-avatar.level-ring {
    --avatar-size: 36px;
}

@media (max-width: 991.98px) {
    .podium-step .podium-avatar.level-ring {
        --avatar-size: 36px;
    }
}

/* ================== LEVEL BLOCK ================== */
/* The profile section and the top of the achievements page (components/progression/level) */
.progression-level {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 24px 36px;
    padding: 28px 32px;
    border-radius: var(--radius);
    background:
        radial-gradient(520px 240px at 0% 0%, color-mix(in srgb, var(--tier-color) 16%, transparent) 0%, transparent 70%),
        var(--surface-1);
    box-shadow: inset 0 0 0 1px var(--line);
}

.progression-medallion {
    position: relative;
    display: grid;
    place-items: center;
    width: 148px;
    height: 148px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--tier-color) 22%, var(--surface-2)) 0%, var(--surface-0) 72%);
    box-shadow: 0 0 0 5px var(--surface-1), 0 0 0 8px var(--tier-color), 0 18px 40px -18px color-mix(in srgb, var(--tier-color) 60%, transparent);
}

.progression-level.is-tier-transcendent .progression-medallion {
    box-shadow: 0 0 0 5px var(--surface-1), 0 0 0 8px var(--tier-transcendent), 0 0 42px -4px color-mix(in srgb, var(--tier-transcendent) 70%, transparent);
}

.progression-medallion-kicker {
    position: absolute;
    top: 26px;
    font-size: 10px;
    font-weight: 700;
    line-height: 12px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--text-2);
}

.progression-medallion-number {
    margin-top: 8px;
    font-family: var(--font-display);
    font-weight: var(--font-display-weight);
    font-size: 84px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: var(--text-1);
}

.progression-level-body {
    min-width: 0;
}

.progression-kicker {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

/* The tier in small caps: lowercase letters drawn as small capitals */
.progression-tier {
    margin: 0;
    font-family: var(--font-body);
    font-size: clamp(26px, 2.6vw, 34px);
    font-weight: 700;
    line-height: 1.1;
    font-variant: small-caps;
    letter-spacing: 0.06em;
    text-transform: lowercase;
    color: var(--tier-color);
}

.progression-xp {
    margin-top: 18px;
    max-width: 560px;
}

.progression-xp-bar {
    display: block;
    width: 100%;
    height: 10px;
    border: 0;
    border-radius: 5px;
    background: var(--surface-3);
    overflow: hidden;
    appearance: none;
    color: var(--tier-color);
    transform-origin: left center;
    animation: progression-fill 0.9s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.progression-xp-bar::-webkit-progress-bar {
    border-radius: 5px;
    background: var(--surface-3);
}

.progression-xp-bar::-webkit-progress-value {
    border-radius: 5px;
    background: linear-gradient(90deg, color-mix(in srgb, var(--tier-color) 70%, var(--accent)), var(--tier-color));
}

.progression-xp-bar::-moz-progress-bar {
    border-radius: 5px;
    background: linear-gradient(90deg, color-mix(in srgb, var(--tier-color) 70%, var(--accent)), var(--tier-color));
}

@keyframes progression-fill {
    from {
        transform: scaleX(0);
    }
}

.progression-xp-text {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 16px;
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 18px;
    color: var(--text-2);
}

.progression-xp-text strong {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--text-1);
}

.progression-earn {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.progression-earn-title {
    margin: 20px 0 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-2);
}

.progression-earn-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 6px;
    border-radius: 999px;
    background: var(--surface-2);
    box-shadow: inset 0 0 0 1px var(--line);
    font-size: 13px;
    line-height: 18px;
    color: var(--text-1);
}

.progression-earn-xp {
    display: inline-grid;
    flex: none;
    place-items: center;
    white-space: nowrap;
    min-width: 46px;
    height: 24px;
    padding: 0 8px;
    border-radius: 12px;
    background: var(--accent-soft);
    font-family: var(--font-display);
    font-weight: var(--font-display-weight);
    font-size: 16px;
    line-height: 1;
    letter-spacing: 0.04em;
    color: var(--accent);
}

.progression-level-foot {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 24px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.progression-badges-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.progression-badges-strip li {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.progression-badges-strip .badge-mini-name {
    display: flex;
    flex-direction: column;
    font-size: 13px;
    font-weight: 600;
    line-height: 17px;
    color: var(--text-1);
}

.progression-badges-strip .badge-mini-name span {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-2);
}

.progression-badges-empty {
    margin: 0;
    font-size: 14px;
    line-height: 20px;
    color: var(--text-2);
}

.progression-privacy {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 0;
    font-size: 13px;
    line-height: 18px;
    color: var(--text-2);
}

.progression-privacy i {
    color: var(--accent);
}

.progression-privacy a {
    color: var(--text-1);
    font-weight: 600;
}

/* The profile places it between the band and the showcase */
.profile-progression {
    padding-top: 40px;
}

/* ================== BADGE (hexagonal medal) ================== */
/* components/progression/badge: the rim in the metal of the step, the icon of the family in the middle, a reflection
   on the diamond; a badge not earned yet is grey with the padlock */
.badge-medal {
    --badge-size: 56px;
    --badge-color: var(--badge-bronze);
    position: relative;
    display: inline-grid;
    flex: none;
    place-items: center;
    width: var(--badge-size);
    aspect-ratio: 64 / 72;
}

.badge-medal.is-sm { --badge-size: 34px; }
.badge-medal.is-md { --badge-size: 64px; }
.badge-medal.is-lg { --badge-size: 84px; }

.badge-medal.is-silver { --badge-color: var(--badge-silver); }
.badge-medal.is-gold { --badge-color: var(--badge-gold); }
.badge-medal.is-platinum { --badge-color: var(--badge-platinum); }
.badge-medal.is-diamond { --badge-color: var(--badge-diamond); }
.badge-medal.is-locked { --badge-color: var(--badge-locked); }

.badge-medal-shape {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45));
}

.badge-medal-rim {
    fill: var(--badge-color);
}

.badge-medal-face {
    fill: color-mix(in srgb, var(--badge-color) 16%, var(--surface-1));
    stroke: color-mix(in srgb, var(--badge-color) 55%, #000);
    stroke-width: 1.5;
}

/* The library badges take the color of their module (.is-game...) on the face */
.badge-medal.has-module .badge-medal-face {
    fill: color-mix(in srgb, var(--module) 14%, color-mix(in srgb, var(--badge-color) 12%, var(--surface-1)));
}

.badge-medal-shine {
    fill: #fff;
    opacity: 0.07;
}

.badge-medal.is-diamond .badge-medal-shine {
    opacity: 0.28;
}

.badge-medal-icon {
    position: relative;
    font-size: calc(var(--badge-size) * 0.32);
    color: var(--badge-color);
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.5));
}

.badge-medal.is-locked .badge-medal-face {
    fill: var(--surface-2);
    stroke: var(--line-strong);
}

.badge-medal.is-locked .badge-medal-icon {
    color: #6c6676;
}

.badge-medal-lock {
    position: absolute;
    right: 2%;
    bottom: 4%;
    display: grid;
    place-items: center;
    width: calc(var(--badge-size) * 0.36);
    height: calc(var(--badge-size) * 0.36);
    border-radius: 50%;
    background: var(--surface-0);
    box-shadow: 0 0 0 1px var(--line-strong);
    font-size: calc(var(--badge-size) * 0.16);
    color: var(--text-2);
}

/* ================== ACHIEVEMENTS PAGE ================== */
.achievements-body {
    display: flex;
    flex-direction: column;
    gap: 44px;
    padding-top: 40px;
    padding-bottom: 80px;
}

.achievements-group-head {
    margin-bottom: 18px;
}

.achievements-family {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 26px 0 14px;
    font-size: 13px;
    font-weight: 700;
    line-height: 18px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-2);
}

.achievements-family:first-of-type {
    margin-top: 0;
}

.achievements-family i {
    color: var(--accent);
}

.badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.badge-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    height: 100%;
    padding: 18px;
    border-radius: var(--radius);
    background: var(--surface-1);
    box-shadow: inset 0 0 0 1px var(--line);
    scroll-margin-top: calc(var(--site-header-h, 58px) + 24px);
}

.badge-card.is-earned {
    background: linear-gradient(160deg, color-mix(in srgb, var(--badge-color) 9%, var(--surface-1)) 0%, var(--surface-1) 60%);
}

.badge-card.is-bronze { --badge-color: var(--badge-bronze); }
.badge-card.is-silver { --badge-color: var(--badge-silver); }
.badge-card.is-gold { --badge-color: var(--badge-gold); }
.badge-card.is-platinum { --badge-color: var(--badge-platinum); }
.badge-card.is-diamond { --badge-color: var(--badge-diamond); }

/* New since the last visit: a short glow, once */
.badge-card.is-new {
    box-shadow: inset 0 0 0 1px var(--accent);
    animation: badge-new-glow 2.4s ease-out 0.3s 2;
}

@keyframes badge-new-glow {
    0%,
    100% {
        box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent);
    }

    40% {
        box-shadow: inset 0 0 0 1px var(--accent), 0 0 26px 2px color-mix(in srgb, var(--accent) 45%, transparent);
    }
}

.badge-card:target {
    box-shadow: inset 0 0 0 2px var(--accent);
}

.badge-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.badge-card-name {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 20px;
    color: var(--text-1);
}

.badge-card-metal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    line-height: 16px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--badge-color, var(--text-2));
}

.badge-card:not(.is-earned) .badge-card-metal {
    color: var(--text-2);
}

.badge-card-new {
    display: inline-flex;
    align-items: center;
    height: 18px;
    padding: 0 7px;
    border-radius: 9px;
    background: var(--accent);
    font-size: 10px;
    letter-spacing: 0.1em;
    color: var(--on-accent);
}

.badge-card-about {
    margin: 2px 0 0;
    font-size: 13px;
    line-height: 18px;
    color: var(--text-2);
}

.badge-card-progress {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2px 10px;
    margin: 8px 0 0;
    font-size: 12px;
    line-height: 16px;
    color: var(--text-2);
}

.badge-card-progress strong {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--text-1);
}

.badge-card-progress.is-top {
    color: var(--badge-color, var(--accent));
    font-weight: 600;
}

.badge-card-bar {
    display: block;
    width: 100%;
    height: 6px;
    margin-top: 6px;
    border: 0;
    border-radius: 3px;
    background: var(--surface-3);
    overflow: hidden;
    appearance: none;
}

.badge-card-bar::-webkit-progress-bar {
    border-radius: 3px;
    background: var(--surface-3);
}

.badge-card-bar::-webkit-progress-value {
    border-radius: 3px;
    background: var(--accent);
}

.badge-card-bar::-moz-progress-bar {
    border-radius: 3px;
    background: var(--accent);
}

.achievements-note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin: 0;
    padding: 14px 18px;
    border-radius: var(--radius);
    background: var(--surface-1);
    box-shadow: inset 0 0 0 1px var(--line);
    font-size: 14px;
    line-height: 20px;
    color: var(--text-2);
}

.achievements-note > i {
    color: var(--accent);
}

.achievements-note > span {
    flex: 1 1 220px;
    min-width: 0;
}

.achievements-note a {
    margin-left: auto;
}

/* ================== NOTIFICATIONS PAGE ================== */
.notifications-body {
    max-width: 760px;
    padding-top: 40px;
    padding-bottom: 80px;
}

.notification-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.notification-link {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px 16px;
    padding: 14px 18px;
    border-radius: var(--radius);
    background: var(--surface-1);
    box-shadow: inset 0 0 0 1px var(--line);
    color: var(--text-1);
    text-decoration: none;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.notification-link:hover {
    background: var(--surface-2);
    box-shadow: inset 0 0 0 1px var(--line-strong);
    color: var(--text-1);
}

.notification-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.notification.is-unread .notification-link {
    background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 8%, var(--surface-1)), var(--surface-1) 70%);
    box-shadow: inset 3px 0 0 var(--accent), inset 0 0 0 1px var(--line);
}

.notification-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--badge-color, var(--tier-color, var(--accent))) 18%, var(--surface-2));
    box-shadow: inset 0 0 0 1.5px var(--badge-color, var(--tier-color, var(--accent)));
    font-size: 16px;
    color: var(--badge-color, var(--tier-color, var(--accent)));
}

.notification.is-bronze { --badge-color: var(--badge-bronze); }
.notification.is-silver { --badge-color: var(--badge-silver); }
.notification.is-gold { --badge-color: var(--badge-gold); }
.notification.is-platinum { --badge-color: var(--badge-platinum); }
.notification.is-diamond { --badge-color: var(--badge-diamond); }

.notification-text {
    font-size: 14px;
    line-height: 20px;
}

.notification.is-unread .notification-text {
    font-weight: 600;
}

.notification-time {
    font-size: 12px;
    line-height: 16px;
    white-space: nowrap;
    color: var(--text-2);
}

.notifications-note {
    margin: 18px 0 0;
    font-size: 13px;
    line-height: 18px;
    color: var(--text-2);
}

/* ================== SHOWCASE: FEATURED BADGES ================== */
.showcase-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.showcase-badge {
    display: flex;
    flex: 0 1 260px;
    align-items: center;
    gap: 16px;
    min-width: 0;
    padding: 16px 20px 16px 16px;
    border-radius: var(--radius);
    background: var(--surface-1);
    box-shadow: inset 0 0 0 1px var(--line);
}

.showcase-badge-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.showcase-badge-name {
    font-size: 15px;
    font-weight: 700;
    line-height: 20px;
    color: var(--text-1);
}

.showcase-badge-metal {
    font-size: 12px;
    font-weight: 700;
    line-height: 16px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--badge-color);
}

.showcase-badge.is-bronze { --badge-color: var(--badge-bronze); }
.showcase-badge.is-silver { --badge-color: var(--badge-silver); }
.showcase-badge.is-gold { --badge-color: var(--badge-gold); }
.showcase-badge.is-platinum { --badge-color: var(--badge-platinum); }
.showcase-badge.is-diamond { --badge-color: var(--badge-diamond); }

/* The badges of the showcase editor and its picker (js/components/showcase.js) */
.showcase-chip-medal {
    display: inline-grid;
    flex: none;
    padding-left: 4px;
}

.showcase-chip-medal .badge-medal {
    --badge-size: 24px;
}

.showcase-chip-medal .badge-medal-shape {
    filter: none;
}

.showcase-badge-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    max-height: min(52vh, 460px);
    margin: 4px 0 0;
    padding: 2px;
    overflow-y: auto;
    list-style: none;
}

.showcase-badge-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
    height: 100%;
    padding: 14px 10px 12px;
    border: 0;
    border-radius: var(--radius);
    background: var(--surface-2);
    box-shadow: inset 0 0 0 1px var(--line);
    font: inherit;
    text-align: center;
    color: var(--text-1);
    cursor: pointer;
}

.showcase-badge-option:hover {
    box-shadow: inset 0 0 0 1px var(--line-strong);
}

.showcase-badge-option:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.showcase-badge-option[aria-pressed="true"] {
    background: color-mix(in srgb, var(--accent) 12%, var(--surface-2));
    box-shadow: inset 0 0 0 2px var(--accent);
}

.showcase-badge-option-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 17px;
}

.showcase-badge-option-metal {
    font-size: 11px;
    font-weight: 700;
    line-height: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-2);
}

.showcase-badge-picker-count {
    margin: 0;
    font-size: 13px;
    line-height: 18px;
    color: var(--text-2);
}

/* ================== FRIEND PROFILE ================== */
.profile-identity-level {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin: 12px 0 0;
}

.profile-identity-level-label {
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    font-variant: small-caps;
    letter-spacing: 0.1em;
    color: var(--tier-color);
}

.profile-identity-level .progression-badges-strip {
    gap: 8px;
}

/* ================== RESPONSIVE ================== */
@media (max-width: 767.98px) {
    .progression-level {
        grid-template-columns: minmax(0, 1fr);
        justify-items: start;
        gap: 20px;
        padding: 22px 18px;
    }

    .progression-medallion {
        width: 112px;
        height: 112px;
    }

    .progression-medallion-kicker {
        top: 18px;
        font-size: 9px;
    }

    .progression-medallion-number {
        font-size: 62px;
    }

    .progression-level-foot {
        padding-top: 18px;
    }

    .badge-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .notification-link {
        grid-template-columns: auto minmax(0, 1fr);
        padding: 12px 14px;
    }

    .notification-time {
        grid-column: 2;
    }

    .achievements-note a {
        margin-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .level-ring.is-tier-transcendent::before,
    .progression-xp-bar,
    .badge-card.is-new {
        animation: none;
    }
}
