/* SUNIVA_LV_ACHIEVEMENT_DISPLAY_V1 — layout/pictogram only */
:root {
    --smp-ach-ink: #183028;
    --smp-ach-gold: #b98a32;
    --smp-ach-line: #e9e3d7;
    --smp-ach-pearl: #fbfaf6;
    --smp-ach-bronze: #b87333;
    --smp-ach-silver: #9aa3ad;
    --smp-ach-gold-ring: #c9a227;
    --smp-ach-platinum: #d9d4c8;
    --smp-ach-obsidian: #2c2724;
}

.smp-ach-level {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 10px;
    margin: 0 0 6px;
    color: var(--smp-ach-ink);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .02em;
}
.smp-ach-level__kicker {
    color: var(--smp-ach-gold);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .16em;
}
.smp-ach-level strong {
    font-size: 20px;
}
.smp-ach-level-guide {
    margin: 0 0 12px;
    color: #7a7266;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.7;
}

.smp-ach-featured {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 14px;
}

.smp-ach-featured-empty {
    margin: 0 0 14px;
    color: #7a7266;
    font-size: 13px;
    line-height: 1.7;
}

.smp-stats .smp-shell > div .smp-ach-stat-note {
    display: block;
    margin-top: 4px;
    color: #8a8173;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
}

.smp-stats .smp-shell > div strong.smp-ach-stat-soft {
    font-size: 16px;
    line-height: 1.35;
    color: #5d564b;
}

.smp-journey {
    background: linear-gradient(180deg, #fffdf8, #fff);
}

.smp-journey-card {
    display: grid;
    gap: 16px;
    padding: 22px 22px 20px;
    border: 1px solid rgba(185, 138, 50, .22);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(92, 70, 29, .06);
}

.smp-journey-card dl {
    display: grid;
    gap: 14px;
    margin: 0;
}

.smp-journey-card dt {
    color: var(--smp-ach-gold);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .16em;
}

.smp-journey-card dd {
    margin: 6px 0 0;
    color: var(--smp-ach-ink);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.6;
}

.smp-journey-card .smp-ach-guide {
    margin: 0;
    color: #6f675c;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.75;
}

.smp-medal-tiers {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
    margin: 0 0 22px;
}
.smp-medal-tiers .smp-medal {
    gap: 6px;
}
.smp-medal-tiers .smp-medal__frame {
    width: 36px;
    height: 36px;
}
.smp-medal-tiers .smp-medal__name {
    font-size: 11px;
    font-weight: 800;
    color: #6f675c;
}

.smp-medal-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px 12px;
}

.smp-medal {
    display: grid;
    justify-items: center;
    gap: 8px;
    margin: 0;
    background: transparent;
    border: 0;
    padding: 0;
    color: inherit;
}

.smp-medal__frame {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 32%, rgba(255, 255, 255, .55), transparent 46%),
        #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45);
}

.smp-medal__frame img {
    width: 38px;
    height: 38px;
}

.smp-medal__name {
    max-width: 92px;
    color: #3f382d;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
}

.smp-medal.is-bronze .smp-medal__frame { box-shadow: inset 0 0 0 5px var(--smp-ach-bronze), 0 8px 18px rgba(120, 70, 20, .16); }
.smp-medal.is-silver .smp-medal__frame { box-shadow: inset 0 0 0 5px var(--smp-ach-silver), 0 8px 18px rgba(90, 100, 110, .14); }
.smp-medal.is-gold .smp-medal__frame { box-shadow: inset 0 0 0 5px var(--smp-ach-gold-ring), 0 8px 18px rgba(160, 120, 20, .16); }
.smp-medal.is-platinum .smp-medal__frame { box-shadow: inset 0 0 0 5px #e7e2d6, 0 0 0 1px #b7a57a, 0 8px 18px rgba(120, 110, 90, .12); background: linear-gradient(180deg, #fff, #f3efe6); }
.smp-medal.is-obsidian .smp-medal__frame { background: radial-gradient(circle at 50% 30%, #4a433d, #1f1c1a); box-shadow: inset 0 0 0 5px #1b1816, 0 0 0 1.5px #c4a056, 0 8px 18px rgba(20, 16, 12, .2); }
.smp-medal.is-obsidian .smp-medal__frame img { filter: brightness(1.35) saturate(.85); }

.smp-medal.is-quiet .smp-medal__frame {
    background: #fbfaf7;
    box-shadow: inset 0 0 0 1.5px rgba(185, 138, 50, .28);
}
.smp-medal.is-quiet .smp-medal__frame img {
    filter: grayscale(.55) saturate(.45) opacity(.72);
}
.smp-medal.is-quiet .smp-medal__name {
    color: #8a8276;
    font-weight: 700;
}

.smp-badge-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.smp-badge {
    display: grid;
    justify-items: center;
    gap: 8px;
    width: 100%;
    max-width: 132px;
    margin: 0 auto;
    min-height: 128px;
    padding: 12px 8px 14px;
    border: 1px solid rgba(198, 168, 96, .42);
    border-radius: 14px 14px 28px 28px;
    background:
        linear-gradient(180deg, #fff, #fffdf8);
    box-shadow: 0 10px 22px rgba(120, 90, 30, .06);
}

.smp-badge__mark {
    display: grid;
    place-items: center;
    width: 46px;
    height: 72px;
    border: 1px solid rgba(198, 168, 96, .46);
    border-radius: 8px 8px 22px 22px;
    background: #fff;
    clip-path: polygon(8% 0, 92% 0, 100% 9%, 100% 78%, 50% 100%, 0 78%, 0 9%);
}

.smp-badge__mark img {
    width: 34px;
    height: 34px;
}

.smp-badge__name {
    color: #3f382d;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
    text-align: center;
}

.smp-badge.is-featured {
    min-height: 0;
    width: 128px;
    padding: 10px 8px 9px;
}
.smp-badge.is-featured .smp-badge__mark {
    width: 44px;
    height: 54px;
}
.smp-badge.is-featured .smp-badge__mark img {
    width: 28px;
    height: 28px;
}
.smp-badge.is-featured .smp-badge__name {
    font-size: 11px;
}

@media (max-width: 900px) {
    .smp-medal-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .smp-badge-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
    .smp-ach-level { font-size: 14px; }
    .smp-ach-level,
    .smp-ach-level-guide,
    .smp-ach-featured,
    .smp-ach-featured-empty { justify-content: center; text-align: center; }
    .smp-journey-card { padding: 18px 16px; }
    .smp-medal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 8px; }
    .smp-medal__frame { width: 68px; height: 68px; }
    .smp-badge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 390px) {
    .smp-medal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .smp-stats .smp-shell > div strong.smp-ach-stat-soft { font-size: 14px; }
}
