/* Stelle SVG locali: distinguibili per riempimento, senza nuovi bersagli touch. */
.difficulty-stars { display:inline-flex; align-items:center; justify-content:center; gap:1px; pointer-events:none; white-space:nowrap; }
.difficulty-star { display:block; flex:0 0 auto; width:13px; height:13px; overflow:visible; fill:#e4e8dc; stroke:#576b61; stroke-width:1.8; stroke-linejoin:round; }
.difficulty-star.is-earned { fill:#ffcb54; stroke:#815a20; }
#map-nodes .node-difficulty-stars { position:absolute; z-index:3; left:50%; top:calc(100% - 17px); transform:translateX(-50%); height:14px; padding:1px 3px; border:1px solid #687f70; border-radius:5px; background:#fffcf1; box-shadow:0 1px 0 #203b3e55; }
#map-nodes .node-difficulty-stars .difficulty-star { width:10px; height:10px; }
#map-nodes .has-difficulty-stars > strong { transform:translateY(-4px); }
body.phone-game #map-view #map-nodes .mission-node.has-difficulty-stars { min-width:44px; min-height:44px; }
#mission-difficulty .difficulty-star-choice,
body.phone-game #map-view #mission-difficulty .difficulty-star-choice { display:grid; grid-template-columns:minmax(0,1fr) auto; grid-template-rows:auto auto; align-content:center; align-items:center; gap:2px 4px; min-width:44px; min-height:44px; padding:5px 7px; text-align:left; }
.difficulty-rank-label { font-size:11px; font-weight:900; line-height:14px; }
.difficulty-rank-stars { justify-self:end; }
.difficulty-rank-status { grid-column:1 / -1; font:700 8px/11px system-ui,sans-serif; letter-spacing:.02em; color:inherit; opacity:.82; }
#mission-difficulty .difficulty-rank-earned .difficulty-rank-status { opacity:1; }
body.phone-game #map-view #mission-difficulty .difficulty-star-choice .difficulty-rank-label { font-size:10px; line-height:12px; }
body.phone-game #map-view #mission-difficulty .difficulty-star-choice .difficulty-star { width:10px; height:10px; }
body.phone-game #map-view #mission-difficulty .difficulty-star-choice .difficulty-rank-status { font-size:7px; line-height:10px; }
@media (max-height:390px) and (orientation:landscape) {
  body.phone-game #map-view #mission-difficulty .difficulty-star-choice { gap:1px 2px; padding:3px 4px; }
  body.phone-game #map-view #mission-difficulty .difficulty-star-choice .difficulty-rank-label { font-size:9px; }
}
@media (prefers-reduced-motion:reduce) { .node-difficulty-stars,.difficulty-star-choice { animation:none!important; transition:none!important; } }
