/* Progression lives inside the existing uniform UI stage. */
#avatar-mini { position:relative; overflow:visible; }
.level-badge { position:absolute; z-index:2; bottom:-7px; left:50%; translate:-50% 0; white-space:nowrap; border:2px solid #fff6d8; border-radius:20px; background:#183d50; color:#fff2b8; font-size:12px; font-weight:900; padding:2px 7px; pointer-events:none; }
.progress-home { display:flex; justify-content:center; align-items:center; gap:12px; margin:4px 0; }
#progress-home-title { font-size:12px; color:#174f60; font-weight:800; }
#mission-open { min-height:44px; padding:6px 14px; border:2px solid #fff; background:#eaf9df; color:#184e43; border-radius:24px; font-size:13px; box-shadow:0 3px 0 #99c7ac; }
.progress-modal { width:min(880px,calc(100% - 24px)); max-height:calc(var(--app-height,100dvh) - 24px); color:#193b4b; }
.progress-modal[open] { display:flex; flex-direction:column; overflow:hidden; }
.progress-modal>.dialog-head,.progress-modal>.progress-meta,.progress-modal>#progress-status { flex-shrink:0; }
#progress-status { margin:4px 0; font-size:13px; }
.progress-meta { display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:8px 0; }
.progress-meta label { display:flex; align-items:center; gap:8px; }
.progress-meta button { margin-left:auto; }
.progress-meta select { max-width:230px; }
#progress-tabs { display:flex; gap:6px; overflow-x:auto; padding:5px 0 10px; flex-shrink:0; }
#progress-tabs button { width:auto; min-width:max-content; white-space:nowrap; flex:1 0 auto; min-height:44px; padding:8px 12px; font-size:14px; border:2px solid #bcd4d3; border-radius:12px; background:#f7fffc; color:#234d57; }
#progress-tabs button[aria-selected=true] { background:#245c69; color:white; border-color:#245c69; }
#progress-content { flex:1 1 auto; min-height:0; overflow-y:auto; padding:4px 4px 14px; overscroll-behavior:contain; }
.progress-row { display:flex; flex-direction:column; gap:5px; padding:12px 14px; margin:9px 0; border:1px solid #cde0d7; border-left:5px solid #6faaa3; background:#f4fcf4; border-radius:12px; font-size:14px; }
.progress-row.bronze { border-left-color:#ab7958; }
.progress-row.silver { border-left-color:#929fa9; }
.progress-row.gold { border-left-color:#e6b944; }
.progress-row progress { width:100%; height:10px; accent-color:#328e78; }
.progress-row small,.word-entry small { color:#4b686e; }
.word-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:9px; }
.word-entry { min-width:0; display:flex; flex-direction:column; gap:6px; padding:12px; background:#f2faf4; border:1px solid #cbdcd7; border-radius:12px; overflow-wrap:anywhere; }
.word-entry.rare { border-color:#69abd7; }
.word-entry.epic { border-color:#b98add; background:#fbf4ff; }
.word-entry.legendary { border-color:#d8b348; background:#fff8dc; }
.progress-sort { display:flex; gap:8px; align-items:center; justify-content:center; margin:10px 0; }
.progress-sort button,#progress-content>button,.progress-meta button { min-height:44px; padding:8px 12px; font-size:14px; }
.stat-row,.xp-heading { display:flex; justify-content:space-between; gap:12px; }
.stat-row { padding:9px 2px; border-bottom:1px solid #d0e3d9; }
.word-toast { position:fixed; z-index:20; top:22%; left:50%; translate:-50% 0; max-width:85vw; padding:9px 16px; border-radius:20px; color:white; background:#204c59e8; font-size:14px; pointer-events:none; overflow-wrap:anywhere; }
#result-progress { max-width:540px; width:100%; margin:0 auto 10px; text-align:left; color:#214551; font-size:14px; }
.xp-track { height:10px; margin:7px 0; background:#c7ddd5; overflow:hidden; border-radius:10px; }
.xp-track span { display:block; height:100%; background:linear-gradient(90deg,#27ad94,#f1ce55); transition:width 850ms ease; }
.level-reveal { display:block; text-align:center; color:#966114; animation:reward-rise .5s ease both; }
.best-word { text-align:center; display:flex; flex-direction:column; gap:2px; padding:7px 0; }
.best-word strong { font-size:clamp(20px,3vw,32px); color:#214e63; line-height:1.2; overflow-wrap:anywhere; }
.reward-reveals { max-height:82px; overflow-y:auto; }
.reward-reveals p { margin:3px 0; padding:4px 8px; background:#fff3bb; border-radius:8px; animation:reward-rise .45s ease both; }
.result-missions { display:flex; flex-wrap:wrap; gap:4px 12px; justify-content:center; }
.next-reward { display:block; text-align:center; margin:4px 0; font-size:11px; color:#526c70; }
#avatar-unlock-detail { font-size:13px; padding:0 8px; margin:4px 0; }
#avatar-unlock-detail:empty { display:none; }
#result-dialog .result-panel { max-height:calc(100% - 8px); padding:14px 18px; overflow-y:auto; }
#result-banner { font-size:52px; }
#result-title { font-size:20px; margin:8px 0 2px; }
#result-score,#result-status { margin:5px 0; font-size:13px; }
#result-score:empty,#result-status:empty { display:none; }
#result-dialog .portrait.toy-portrait { height:112px; width:100px; }
#result-dialog .result-fighter { gap:3px; }
.result-actions { display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:8px; margin-top:10px; }
#result-dialog .result-actions button { min-height:44px; margin:0; font-size:14px; padding:8px; }
.avatar-tiles button { position:relative; }
.avatar-tiles button.locked { opacity:.7; padding-bottom:24px; cursor:help; min-height:78px; }
.avatar-tiles .unlock-hint { position:absolute; inset:auto 2px 3px; font-size:9px; line-height:1.15; color:#263d49; background:#fff9e9ee; border-radius:4px; padding:2px; white-space:normal; overflow-wrap:anywhere; }
.avatar-tiles button.locked[aria-pressed=true] { outline:none; }
#avatar-trail button { font-size:28px; }
.result-fighter .player-title { display:block; font-size:11px; color:#42646b; }
@keyframes reward-rise { from { opacity:0; translate:0 6px; } to { opacity:1; translate:0 0; } }
@media (hover:hover) {
 #mission-open:hover,#progress-tabs button:hover,.progress-sort button:hover { translate:0 -2px; box-shadow:0 5px 12px #163e4d22; }
}
@media (max-width:600px) {
 .progress-home { gap:6px; margin:0; }
 #progress-home-title { max-width:110px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
 #mission-open { font-size:12px; padding:5px 9px; }
 .lobby-nav { gap:5px; }
 .progress-modal { padding:14px; }
 .progress-meta { gap:6px; font-size:12px; }
 .progress-meta select { max-width:180px; }
 #progress-tabs button { padding:7px 10px; font-size:13px; }
 .word-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .word-entry { padding:8px; }
 .word-entry small { font-size:10px; }
 #result-progress { font-size:12px; }
 #result-dialog .result-panel { padding:12px 14px; }
 #result-banner { font-size:40px; }
 #result-title { font-size:18px; margin:6px 0 0; }
 #result-dialog .portrait.toy-portrait { height:86px; width:84px; }
 #result-dialog .result-fighter { font-size:12px; }
 .result-actions { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .result-actions #rematch { grid-column:1/-1; }
 .result-actions:has(#cpu-change[hidden]) #result-lobby { grid-column:1/-1; }
 .result-missions { font-size:11px; }
 .reward-reveals { max-height:38px; }
}
@media (prefers-reduced-motion:reduce) {
 .xp-track span { transition:none; }
 .level-reveal,.reward-reveals p { animation:none; }
}
