/* v321 result mastery: card stock, engraved brass rules, a restrained reward reveal. */
.v321-mastery-panel{--v321-mastery-gold:#e4c985;--v321-mastery-ink:#e8e3d3;position:relative;box-sizing:border-box;min-width:0;color:var(--v321-mastery-ink);font-family:"Yu Gothic",Meiryo,sans-serif;text-align:left}
.v321-mastery-panel *{box-sizing:border-box}
.v321-mastery-header{display:flex;align-items:center;gap:13px;padding-bottom:16px;border-bottom:1px solid rgba(212,192,139,.23)}
.v321-mastery-portrait{flex:0 0 48px;width:48px;height:58px;object-fit:cover;object-position:50% 22%;border:1px solid #cab57d;border-radius:5px;background:#d7cebb;box-shadow:0 3px 9px #0008}
.v321-mastery-heading{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}
.v321-mastery-eyebrow{font:600 10px/1.4 "Yu Gothic",Meiryo,sans-serif;letter-spacing:.12em;color:#b9b2a1}
.v321-mastery-character{overflow:hidden;color:#f0e4be;font:700 17px/1.35 "Yu Mincho",Georgia,serif;text-overflow:ellipsis;white-space:nowrap}
.v321-mastery-level{color:#c9bb99;font:11px/1.4 "Yu Gothic",Meiryo,sans-serif}
.v321-mastery-total{position:relative;display:flex;align-items:flex-end;flex-direction:column;gap:3px;flex:0 0 auto;padding-left:8px}
.v321-mastery-total>strong{color:#f6edcf;font:500 35px/.95 Georgia,"Times New Roman",serif;font-variant-numeric:tabular-nums}
.v321-mastery-total>span{color:#aaa38f;font-size:9px;letter-spacing:.08em}
.v321-mastery-delta{position:absolute;top:-8px;right:-19px;color:#d3e2c4;font:700 12px/1 Georgia,serif;animation:v321-mastery-gain .7s ease-out both}
.v321-mastery-next-reward{display:flex;align-items:center;gap:13px;padding:17px 0 15px}
.v321-mastery-reward-art{position:relative;display:flex;flex:0 0 52px;align-items:center;justify-content:center;width:52px;height:52px;overflow:hidden;border:1px solid rgba(216,189,115,.45);border-radius:6px;color:#ebd998;background:#171812;font:500 24px/1 Georgia,serif;box-shadow:inset 0 0 12px #0008,0 2px 6px #0005}
.v321-mastery-reward-image,.v321-mastery-frame-portrait{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 20%;border-radius:inherit}
.v321-mastery-reward-art>.v197-mastery-profile-frame{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.v321-mastery-reward-art.is-card{height:68px;border-radius:5px}
.v321-mastery-reward-art.is-card .v321-mastery-reward-image{object-fit:contain;background:#ddd8cb}
.v321-mastery-reward-art.is-title{width:68px;flex-basis:68px;height:39px;border-radius:3px;border-color:#b49851;background:linear-gradient(135deg,#302715,#12120d);font-size:14px;font-family:"Yu Mincho",Georgia,serif;letter-spacing:.08em}
.v321-mastery-reward-art.is-complete{border-color:#dfc368;color:#f9e9b3;background:linear-gradient(150deg,#42351c,#15150f)}
.v321-mastery-next-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:4px}
.v321-mastery-next-copy>strong{font-size:14px;color:#e7d6ac;line-height:1.4}
.v321-mastery-remaining{color:#d4cbb7;font-size:11px;line-height:1.5}
.v321-mastery-gauge,.v321-mastery-exp-gauge{position:relative;height:5px;margin-top:5px;overflow:hidden;border-radius:2px;background:#ffffff12}
.v321-mastery-fill{display:block;width:var(--v321-fill-to);height:100%;border-radius:inherit;background:linear-gradient(90deg,#967c3f,#e4c985);animation:v321-mastery-fill .8s cubic-bezier(.19,.7,.2,1) both}
.v321-mastery-experience{padding-top:12px;border-top:1px solid rgba(212,192,139,.15)}
.v321-mastery-exp-heading{display:flex;align-items:baseline;gap:8px;font-size:10px;letter-spacing:.05em;color:#a6b4a7}
.v321-mastery-exp-heading>strong{margin-left:auto;color:#d3dfd1;font:600 12px/1.4 "Yu Gothic",Meiryo,sans-serif;font-variant-numeric:tabular-nums}
.v321-mastery-exp-delta{color:#d0e3c8;font-size:11px}
.v321-mastery-exp-gauge{height:3px;margin-top:8px;background:#9ab39a15}
.v321-mastery-exp-gauge .v321-mastery-fill{background:#9bb49b}
.v321-mastery-exp-next{display:block;margin-top:5px;text-align:right;font-size:9px;color:#91a092}
.v321-mastery-note{margin:9px 0 0;color:#96998d;font-size:10px;line-height:1.6}
.v321-mastery-unlocked{margin:10px 0 0;padding:7px 9px;border-left:2px solid #e6ca79;background:#b28f3315;color:#f2d997;font-size:12px;animation:v321-mastery-gain .55s ease-out both}
.v321-mastery-selection{min-width:0}
.v321-mastery-selection:not(.v321-mastery-panel){display:flex;align-items:center;justify-content:center;gap:10px;width:fit-content;max-width:100%;margin:7px auto 0;padding:7px 11px;border:1px solid rgba(203,175,101,.38);border-radius:5px;background:rgba(9,19,15,.92);color:#e8d4a7;pointer-events:none}
.v321-mastery-selection:not(.v321-mastery-panel) .v321-mastery-reward-art{flex-basis:31px;width:31px;height:31px;font-size:16px;border-radius:3px}
.v321-mastery-selection:not(.v321-mastery-panel) .v321-mastery-reward-art.is-card{height:39px}
.v321-mastery-selection:not(.v321-mastery-panel) .v321-mastery-reward-art.is-title{flex-basis:48px;width:48px;font-size:10px}
.v321-mastery-selection-copy{display:flex;min-width:0;align-items:baseline;gap:10px;flex-wrap:wrap;font:11px/1.4 "Yu Gothic",Meiryo,sans-serif}
.v321-mastery-selection-copy>span{font-variant-numeric:tabular-nums;color:#c1b69a;font-size:10px}
.v321-mastery-selection.is-compact{margin:0 0 14px;padding:14px;border:1px solid rgba(200,177,112,.33);border-radius:6px;background:#0d1713}
.v321-mastery-selection.is-compact .v321-mastery-header{padding-bottom:12px}
.v321-mastery-selection.is-compact .v321-mastery-character{font-size:15px}
.v321-mastery-selection.is-compact .v321-mastery-total>strong{font-size:28px}
.v321-mastery-selection.is-compact .v321-mastery-next-reward{padding:12px 0}
@keyframes v321-mastery-fill{from{width:var(--v321-fill-from)}to{width:var(--v321-fill-to)}}
@keyframes v321-mastery-gain{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:640px){.v321-mastery-header{gap:10px}.v321-mastery-portrait{flex-basis:40px;width:40px;height:49px}.v321-mastery-character{font-size:15px}.v321-mastery-total>strong{font-size:30px}.v321-mastery-next-reward{gap:10px}.v321-mastery-next-copy>strong{font-size:12px}.v321-mastery-delta{right:-12px}.v321-mastery-selection-copy{gap:4px 9px}}
@media(prefers-reduced-motion:reduce){.v321-mastery-fill,.v321-mastery-delta,.v321-mastery-unlocked{animation:none!important}}
