/* medals-v10.css — 只作用于「奖励」页新增的分阶段勋章区，其他页面与原有样式不受影响 */
#stageAwards{margin:6px auto 44px;padding:0 16px;max-width:720px}
#stageAwards>h2{font-size:clamp(19px,2.4vw,26px);margin:18px 0 4px;text-align:center}
#stageAwards .stage-note{margin:0 0 14px;text-align:center;font-size:14px;color:#8a6a4e}
#stageAwards .stage-group{background:#fffdf7;border:2px solid #f2dcb8;border-radius:22px;padding:12px 14px 16px;margin:0 0 14px}
#stageAwards .stage-group h3{display:flex;align-items:center;gap:8px;margin:2px 0 12px;font-size:17px;color:#6e4825}
#stageAwards .stage-group h3 small{margin-left:auto;font-weight:normal;font-size:13px;color:#9c7a58}
#stageAwards .stage-group h3 span{width:14px;height:14px;border-radius:50%;flex:0 0 auto}
#stageAwards .g-1{--gc:#e0505c}
#stageAwards .g-2{--gc:#e3a63a}
#stageAwards .g-3{--gc:#4a8fc8}
#stageAwards .g-4{--gc:#38a878}
#stageAwards h3 span.g-1{background:#e0505c}
#stageAwards h3 span.g-2{background:#e3a63a}
#stageAwards h3 span.g-3{background:#4a8fc8}
#stageAwards h3 span.g-4{background:#38a878}
#stageAwards .stage-row{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
#stageAwards .medal-card{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;padding:8px 4px 10px;border:2px solid #f0e2ca;border-radius:18px;background:#fffaf0;color:#6e4825;line-height:1.25}
#stageAwards .medal-card:focus-visible{outline:4px solid #1878be;outline-offset:3px}
#stageAwards .medal-card.earned{border-color:var(--gc,#e7bc77);box-shadow:0 3px 0 0 rgba(0,0,0,.06)}
#stageAwards .medal-art{display:block;width:100%;max-width:118px;aspect-ratio:1/1}
#stageAwards .medal-art img{display:block;width:100%;height:100%;object-fit:contain}
#stageAwards .medal-name{font-size:14px;font-weight:bold;text-align:center}
#stageAwards .medal-card.locked{background:#f4f1e8;border-color:#e3ddd0;color:#94948c;cursor:pointer}
#stageAwards .medal-card.locked .medal-art img{filter:grayscale(1) contrast(.95) opacity(.6)}
#stageAwards .medal-lock{position:absolute;right:8px;top:8px;width:16px;height:13px;border-radius:4px;background:#a9a9a1}
#stageAwards .medal-lock::before{content:"";position:absolute;left:3px;top:-8px;width:10px;height:10px;border:2.5px solid #a9a9a1;border-bottom:0;border-radius:6px 6px 0 0}
#stageAwards .medal-card.locked .medal-name{color:#9a9a92}
@media (max-width:760px){
  #stageAwards{padding:0 12px}
  #stageAwards .stage-group{padding:10px 10px 14px;border-radius:18px}
  #stageAwards .stage-row{gap:6px}
  #stageAwards .medal-card{padding:6px 2px 8px;border-radius:14px;gap:4px}
  #stageAwards .medal-name{font-size:12.5px}
  #stageAwards .medal-lock{right:5px;top:5px;width:13px;height:11px}
  #stageAwards .medal-lock::before{left:2px;top:-7px;width:8px;height:9px;border-width:2px}
}
@media (prefers-color-scheme:dark){#stageAwards .stage-group{background:#fffdf7}}
