/* Collectible enamel jewels: one shared illustration per family, three earned settings. */
.emblem-art{--jewel:#eab997;display:inline-grid;place-items:center;position:relative;width:120px;aspect-ratio:1;isolation:isolate;vertical-align:middle;flex-shrink:0}.emblem-art img{display:block;width:84%;height:84%;object-fit:contain;position:relative;z-index:1;filter:drop-shadow(0 5px 5px #09091588)}.emblem-halo{position:absolute;inset:17%;border-radius:50%;background:radial-gradient(circle,#fff5ce1f,transparent 70%);box-shadow:0 0 0 1px var(--jewel),0 0 20px #ecb97c20}.emblem-halo:after{content:'';position:absolute;inset:-7px;border-radius:50%;border:1px dashed var(--jewel);opacity:.45}.emblem-gems{z-index:2;position:absolute;bottom:3%;font-size:8px;letter-spacing:3px;text-indent:3px;color:var(--jewel);text-shadow:0 1px 4px #111}.tier-1{--jewel:#b9ecff}.tier-1 .emblem-halo{inset:13%;box-shadow:0 0 0 2px #a9daf0,0 0 0 5px #dff5ff20,0 0 20px #6ad6ff33}.tier-2{--jewel:#ffeab2}.tier-2 .emblem-halo{inset:10%;background:conic-gradient(from 15deg,#ffe9b822,#d888fa33,#fff2b855,#63e2de33,#ffe9b822);box-shadow:0 0 0 2px #f7d984,0 0 0 5px #f6d88728,0 0 25px #e5bd5538}.tier-2 .emblem-halo:after{inset:-7px;border:2px dotted #ffdf9b}.emblem-locked img{filter:grayscale(.75) brightness(.52);opacity:.7}.emblem-locked .emblem-halo{opacity:.22}.emblem-locked .emblem-gems{opacity:.35}.emblem-seed{font-size:68px;color:#cfabbf;text-shadow:0 0 25px #ecb5de55}.emblem-small{width:42px}.emblem-small .emblem-gems{font-size:4px;letter-spacing:1px}.emblem-small .emblem-seed{font-size:27px}.emblem-small .emblem-halo:after{display:none}
#intro-emblems.album-entry{display:flex;align-items:center;gap:8px;width:100%;height:54px;margin:10px 0 4px;padding:3px 12px 3px 7px;text-align:left;background:linear-gradient(110deg,#32344fee,#584561dd);border:1px solid #e7c7a65e;border-radius:18px;box-shadow:inset 0 1px 0 #fff2,0 4px 12px #1b112844;color:#fff1d3}#intro-emblems span b{display:block;font-size:12px}#intro-emblems span small{display:block;color:#c9bcd5;font-size:10px;margin-top:3px}#intro-emblems>i{margin-left:auto;font:24px serif}button.has-emblem{background:linear-gradient(#50566e,#252c42)!important;padding:0!important;overflow:visible!important}button.has-emblem:before,button.has-emblem:after{display:none!important}button.has-emblem .emblem-small{width:100%;height:100%}
#emblem-profile{text-align:center;padding:0 0 18px}#emblem-profile .emblem-art{width:156px}#emblem-profile h3{font-size:21px;margin:0 0 5px;color:#ffedc7}#emblem-profile p{font-size:11px;color:#c9bdd4;margin:0 0 15px}#emblem-profile button,.emblem-action{background:linear-gradient(#ffe5b4,#edbb75);color:#48344c;border-radius:15px;padding:14px 20px;font-size:14px;font-weight:850;box-shadow:inset 0 1px #fff9,0 3px 0 #795971}
#emblem-dialog{width:min(94vw,460px);max-height:92dvh;max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));padding:20px 16px 14px;border:1px solid #dec59988;border-radius:26px;background:radial-gradient(ellipse at 15% 2%,#88668055,transparent 45%),linear-gradient(150deg,#293348,#24253e 60%,#372943);color:#fbf2e7;overflow:auto;overscroll-behavior:contain;box-shadow:0 25px 80px #0009}#emblem-dialog::backdrop,#emblem-detail::backdrop{background:#0b1324bf}.album-top{display:flex;justify-content:space-between;align-items:center}.album-top small{font-size:8px;letter-spacing:2px;color:#c5a88c}.album-top h2{font-size:22px;margin:5px 0 0}.album-close{width:36px;height:36px;flex-shrink:0;border:1px solid #ffffff25;border-radius:50%;color:#e9e0f1;background:#ffffff09;font-size:24px;line-height:1}.album-top .album-close{position:static!important}#album-hero{display:flex;align-items:center;gap:8px;margin:13px 0 17px;padding:8px 6px;background:radial-gradient(ellipse at 20% 60%,#b994aa30,transparent 70%);border-bottom:1px solid #b8a18b42}.album-spotlight{width:128px;flex-shrink:0}.album-spotlight>.emblem-art{width:128px}#album-hero>div:last-child{flex:1;min-width:0}#album-hero small{font-size:9px;color:#cabbcd}#album-hero h3{margin:5px 0 12px;font-size:17px;line-height:1.35;color:#fff0ca;word-break:keep-all}#album-hero p{font-size:9px;color:#baaec4}#album-hero p b{color:#fff0d4;white-space:nowrap}.album-track{display:block;height:3px;background:#0d182f88;border-radius:4px;overflow:hidden}.album-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#a2dfd2,#ffe4a9)}.album-filters{display:flex;gap:7px;margin-bottom:21px}.album-filters button{flex:1;font-size:11px;padding:9px 2px;border-radius:12px;border:1px solid #ffffff19;background:#131a3022;color:#bbb7cd}.album-filters button[aria-pressed=true]{color:#ffedbd;border-color:#e8c888aa;background:#a4834930}.emblem-family{margin-bottom:24px}.emblem-family>h3{font-size:12px;letter-spacing:.4px;margin:0 0 10px;color:#d8c9d5}.emblem-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.emblem-card{position:relative;display:flex;flex-direction:column;align-items:center;min-width:0;padding:8px 3px 10px;border-radius:17px;border:1px solid #ffffff13;background:linear-gradient(#ffffff07,#10152d29);color:#a29ab0}.emblem-card .emblem-art{width:100%;max-width:110px}.emblem-card>small{font-size:8px;letter-spacing:1px;margin:6px 0 5px}.emblem-card>b{font-size:10px;line-height:1.3;min-height:26px;word-break:keep-all;display:grid;place-content:center}.emblem-card.owned{color:#e8ddca;border-color:#d6b88235;background:linear-gradient(#ba938518,#121b3125)}.emblem-card.equipped{border-color:#f1d399;box-shadow:inset 0 0 16px #dcc79a15}.emblem-state{font-size:9px;margin:7px 0 6px}.emblem-card .album-track{width:78%}.emblem-new{position:absolute;z-index:3;top:5px;right:5px;font-size:7px;letter-spacing:.5px;color:#322f42;background:#eae0b6;border-radius:5px;padding:3px 4px}.album-empty{text-align:center;font-size:12px;padding:40px 0;color:#c5b6cc}.album-local{margin:4px 0;text-align:center;font-size:9px;color:#a099b1}
#emblem-detail{position:relative;text-align:center;width:min(88vw,340px);padding:36px 24px 24px;border-radius:28px;border:1px solid #dec591aa;background:radial-gradient(ellipse at 50% 28%,#75628080,transparent 60%),linear-gradient(#323950,#2a293f);color:#fff0d5;max-height:90dvh;overflow:auto;box-shadow:0 25px 80px #0008}#emblem-detail .album-close{position:absolute;right:12px;top:12px}.detail-tier{display:block;font-size:10px;color:#e7c997;letter-spacing:.5px;padding:0 17px}#emblem-detail>.emblem-art{width:min(200px,62vw);display:grid;margin:10px auto 3px}#emblem-detail h2{font-size:23px;line-height:1.25;margin:8px 0 12px}#emblem-detail p{font-size:12px;color:#cfc4d7;line-height:1.5}.detail-progress{display:block;font-size:23px;margin:12px 0}.detail-progress span{font-size:12px;color:#c9bad0}#emblem-detail>.album-track{height:5px;margin:0 0 22px}.emblem-action{width:100%}.emblem-action:disabled{opacity:.7;cursor:default}#emblem-detail .detail-note{font-size:10px;margin:14px 0 0}
#emblem-notice{position:fixed;left:50%;top:calc(10px + env(safe-area-inset-top));transform:translateX(-50%);width:min(88vw,340px);display:flex;align-items:center;gap:10px;padding:8px 15px;border-radius:20px;border:1px solid #e5c38bdd;background:linear-gradient(110deg,#303c50fa,#544365fa);box-shadow:0 8px 25px #10101f70;z-index:20;text-align:left;color:#fff0d2;animation:emblem-arrive .55s cubic-bezier(.2,1.4,.4,1)}#emblem-notice[hidden]{display:none}#emblem-notice small{font-size:9px;color:#f1cb8e;display:block;margin-bottom:4px}#emblem-notice b{font-size:14px}#emblem-notice>i{margin-left:auto}#emblem-notice .emblem-small{width:54px}@keyframes emblem-arrive{from{opacity:0;translate:0 -35px;scale:.9}to{opacity:1;translate:0 0;scale:1}}
@media(max-height:690px){#intro-emblems.album-entry{height:43px;margin:6px 0 2px}#intro-emblems .emblem-small{width:34px}#intro-detail{margin:5px 0!important;font-size:10px}#intro-emblems span b{font-size:11px}#intro-emblems span small{font-size:8px}}
@media(max-width:350px){#emblem-dialog{padding:16px 12px}.album-spotlight,.album-spotlight>.emblem-art{width:105px}#album-hero h3{font-size:15px}.emblem-row{gap:5px}.emblem-card>b{font-size:9px}.album-top h2{font-size:20px}}
@media(prefers-reduced-motion:reduce){#emblem-notice{animation:none}}

.tier-1 .emblem-halo{inset:8%}.tier-2 .emblem-halo{inset:6%}.emblem-small img{width:92%;height:92%}
#emblem-dialog,#emblem-detail{backdrop-filter:none;-webkit-backdrop-filter:none}#emblem-dialog{text-align:left}#emblem-dialog button,#emblem-detail button{margin-top:0;box-shadow:none}#emblem-dialog .album-close,#emblem-detail .album-close{width:40px;min-width:40px;height:40px;min-height:40px;padding:0;border-radius:50%;background:#ffffff0c;color:#eee6ed;border:1px solid #ffffff30;box-shadow:none}#emblem-dialog .album-filters button{min-height:35px;padding:9px 2px;background:#131a3022;color:#bbb7cd;border:1px solid #ffffff19;border-radius:12px;font-size:11px}#emblem-dialog .album-filters button[aria-pressed=true]{color:#ffedbd;border-color:#e8c888aa;background:#a4834930}#emblem-dialog .emblem-card{padding:8px 3px 10px;border-radius:17px;border:1px solid #ffffff13;background:linear-gradient(#ffffff07,#10152d29);color:#b4aabc;box-shadow:none}#emblem-dialog .emblem-card.owned{color:#e8ddca;border-color:#d6b88235;background:linear-gradient(#ba938518,#121b3125)}#emblem-dialog .emblem-card.equipped{border-color:#f1d399;box-shadow:inset 0 0 16px #dcc79a15}#emblem-detail .emblem-action,#emblem-profile button{background:linear-gradient(#ffe5b4,#edbb75);color:#48344c;border-radius:15px;padding:14px 20px;font-weight:850;box-shadow:inset 0 1px #fff9,0 3px 0 #795971}.emblem-locked img{filter:grayscale(.55) brightness(.68)}
#album-grid.album-filtered{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 7px}#album-grid.album-filtered .emblem-family,#album-grid.album-filtered .emblem-row{display:contents}#album-grid.album-filtered .emblem-family>h3{display:none}#album-grid.album-filtered .album-empty{grid-column:1/-1}.emblem-card:focus-visible{outline:2px solid #fff2c0;outline-offset:3px}#emblem-detail[open]>.emblem-art{animation:emblem-reveal .55s cubic-bezier(.2,1.35,.45,1)}@keyframes emblem-reveal{from{opacity:0;transform:translateY(12px) scale(.8) rotate(-7deg)}to{opacity:1;transform:translateY(0) scale(1) rotate(0)}}@media(prefers-reduced-motion:reduce){#emblem-detail[open]>.emblem-art{animation:none}}

@media(max-width:350px){
 #emblem-dialog{width:calc(100vw - 20px);padding:16px 12px}
 #album-hero{gap:10px;padding:8px 0}
 .album-spotlight,.album-spotlight>.emblem-art{width:94px}
 #album-hero h3{font-size:16px;overflow-wrap:normal;word-break:normal}
 .emblem-row,#album-grid.album-filtered{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 #emblem-dialog .emblem-card{padding:8px 7px 12px}
 .emblem-card>b{font-size:12px;min-height:31px;word-break:normal;overflow-wrap:normal}
 .emblem-card>small,.emblem-state{font-size:10px}
 #emblem-detail{width:calc(100vw - 24px);padding:34px 18px 20px}
 #emblem-detail>.emblem-art{width:160px}
 #emblem-detail h2{font-size:22px;word-break:normal;overflow-wrap:normal}
 #emblem-detail p{font-size:13px}
}

/* Personal identity stands alone; ranking and settings remain utility controls. */
#intro-screen .intro-tools{left:max(14px,env(safe-area-inset-left));right:max(14px,env(safe-area-inset-right));width:auto}
#intro-screen #intro-profile{order:-1;margin-right:auto!important;width:48px!important;height:48px!important;flex-basis:48px!important;border-radius:50%!important;background:#263244c7!important;border:1px solid #e2cba370!important}
#intro-screen #intro-profile{padding:0!important}
#intro-screen #intro-profile .emblem-small{width:42px;height:auto;aspect-ratio:200/210}

#emblem-dialog,#emblem-detail{max-width:calc(100vw - 20px)}
/* Each tier is a complete painted emblem, including its evolving setting. */
.emblem-art.evolution-art{height:auto;aspect-ratio:1;position:relative}
.emblem-sprite{display:block;width:100%;height:100%;background-size:300% 200%;background-repeat:no-repeat}
.emblem-art.emblem-empty{opacity:.6}.emblem-empty svg{width:100%;height:100%;fill:none;stroke:#b5c9d9;stroke-width:2}
.evolution-art.emblem-locked{opacity:.65;filter:saturate(.2)}
#intro-screen #intro-profile .emblem-small{aspect-ratio:1}
.evolution-grid{display:grid;gap:11px}
#emblem-dialog .evolution-card{display:grid;grid-template-columns:94px minmax(0,1fr) 10px;gap:10px;align-items:center;position:relative;width:100%;padding:12px 10px;margin:0;border:1px solid #b3c5dd24;border-radius:19px;background:linear-gradient(120deg,#42557440,#131d3340);box-shadow:none;text-align:left;color:#edebf5}
#emblem-dialog .evolution-card.owned{border-color:#c9b68555;background:linear-gradient(115deg,#554b622f,#26334980)}#emblem-dialog .evolution-card.equipped{border-color:#efd092;box-shadow:inset 0 0 0 1px #efd09222}
.evolution-card>.emblem-art{width:94px}.evolution-info{display:block;min-width:0}.evolution-info>small{display:block;font-size:10px;color:#cbbcd5;margin-bottom:5px}.evolution-info>b{display:block;font-size:16px;line-height:1.35;color:#fff0ca;word-break:normal;overflow-wrap:anywhere}
.evolution-steps{display:flex;gap:5px;margin:11px 0}.evolution-steps i{display:grid;place-items:center;width:22px;height:18px;border:1px solid #bdc8d327;border-radius:5px;color:#68758b;font:9px Georgia,serif;background:#152237}.evolution-steps i.reached{color:#ffecc0;border-color:#e9cf8d99;background:#81745c55}
.evolution-goal{display:flex;gap:5px;align-items:baseline;justify-content:space-between;margin:5px 0 7px;font-size:10px;color:#b7c8d7}.evolution-goal strong{font-variant-numeric:tabular-nums;color:#fff1ce;white-space:nowrap}.evolution-arrow{color:#dfc7ac;font-size:20px}
#emblem-detail{width:min(94vw,420px);padding:36px 22px 22px}#emblem-detail>.emblem-art{width:176px;margin:7px auto 0}#emblem-detail h2{font-size:22px;margin:3px 0 16px}
.evolution-path{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}
#emblem-detail .evolution-path button{position:relative;display:grid;place-items:center;padding:5px 0 6px;margin:0;min-width:0;min-height:60px;border:1px solid #ccd4e522;border-radius:10px;background:#15253c80;color:#9babc5;box-shadow:none}
#emblem-detail .evolution-path button[aria-pressed=true]{border-color:#e8ca88;background:#71635444;color:#ffe2a4}
.evolution-path .emblem-small{width:100%;max-width:54px}.evolution-path b{font:10px Georgia,serif}.evolution-path i{position:absolute;right:3px;top:3px;font-size:8px;color:#aff3d1}
#emblem-detail .evolution-caption{color:#f1d692;font-weight:700;margin:17px 0 4px}#emblem-detail .evolution-caption+p{margin:4px 0;font-size:12px}
#emblem-detail .detail-progress{margin:8px 0;font-size:24px}#emblem-detail>.album-track{margin-bottom:14px}#emblem-detail .emblem-action{padding:12px}
#emblem-detail .evolution-play{width:100%;margin:9px 0 0;padding:12px;background:#34445b;border:1px solid #c2d6e33b;border-radius:13px;color:#daf1fa;font-size:13px;box-shadow:none}
#emblem-detail .detail-note{margin:12px 0 0;font-size:10px}
#intro-emblems span b{font-size:12px}#emblem-notice b{font-size:13px}
@media(max-width:350px){#emblem-dialog .evolution-card{grid-template-columns:76px minmax(0,1fr) 8px;gap:8px;padding:11px 8px}.evolution-card>.emblem-art{width:76px}.evolution-info>b{font-size:14px}.evolution-info>small,.evolution-goal{font-size:9px}.evolution-steps{gap:4px}.evolution-steps i{width:19px}#emblem-detail{padding:34px 14px 17px}#emblem-detail>.emblem-art{width:150px}.evolution-path{gap:3px}.evolution-goal{flex-wrap:wrap}}

#emblem-notice>span{min-width:0;flex:1}#emblem-notice b{display:block;line-height:1.35}#emblem-notice .emblem-reason{display:block;margin-top:4px;font-size:11px;line-height:1.4;color:#e2eaf4;overflow-wrap:anywhere}#emblem-notice .emblem-small{flex-shrink:0}
