/* Fix My Fail challenge medals, October 2026.
 * Small additive overlays over the locked premium 3D world. No boxy cards,
 * no interference with ramp physics, node hit areas or scrolling.
 */
.hub-route-world .route-node{overflow:visible!important;isolation:isolate}
.hub-route-world .route-node .challenge-medallion{
 position:absolute;top:-12px;right:-12px;z-index:7;pointer-events:none;
 width:31px;height:31px;border-radius:50%;
 display:grid;place-items:center;overflow:visible;
 background:radial-gradient(circle at 27% 20%,#fffce5 0%,#ffe19b 22%,#f09541 64%,#a84140 100%);
 border:2px solid #fff3d4;outline:1px solid #9758307a;
 box-shadow:inset 0 2px 3px #fffbebb8,inset 0 -4px 6px #56230066,
  0 4px 1px #493521a6,0 6px 9px #082e486b,0 0 12px #ffc36799;
 transform:rotate(-13deg);
}
.hub-route-world .route-node .challenge-medallion::before{
 content:"";position:absolute;inset:-5px;border:1.5px solid #ffdd81b0;
 border-radius:50%;transform:rotate(20deg);pointer-events:none
}
.challenge-flare-core{position:relative;display:block;color:#fff7dd;font:1000 18px/1 system-ui;
 text-shadow:0 1px #9d4d28,0 2px 2px #5e311a,0 0 6px #fff2a4}
.hub-route-world .route-node .challenge-medallion[data-tier="4"]{
 background:radial-gradient(circle at 28% 17%,#f7fdff,#91d9f9 25%,#2989df 67%,#2c368d);
 border-color:#f2fcff;outline-color:#2b62a27a;
 box-shadow:inset 0 2px 3px #fff9,inset 0 -4px 7px #06134b70,0 4px 1px #203d72a0,0 8px 11px #062d5166,0 0 16px #75c9ffb0
}
.hub-route-world .route-node .challenge-medallion[data-tier="5"]{
 background:radial-gradient(circle at 30% 15%,#fff7e8,#ffa5ef 27%,#a63ace 63%,#40115f);
 border-color:#ffecfe;outline-color:#913acb99;
 box-shadow:inset 0 2px 3px #fff9,inset 0 -4px 7px #18053987,0 4px 1px #432253bd,0 8px 13px #180c4f78,0 0 17px #ef74f3d1
}
.hub-route-world .route-node .challenge-medallion[data-tier="5"]::before{
 border:2px solid #ffc7f7;box-shadow:0 0 9px #fd95f1a0
}
.challenge-flare-pips{
 position:absolute;right:-8px;bottom:-7px;display:block;
 padding:2px 4px 2px 3px;border-radius:999px;background:linear-gradient(#173958,#071d34);
 border:1px solid #f6df8b;color:#ffdb79;font:700 6px/1 system-ui;letter-spacing:-1px;
 white-space:nowrap;box-shadow:0 2px 3px #0728407a
}
.hub-route-world .route-node.current .challenge-medallion[data-tier="4"],
.hub-route-world .route-node.current .challenge-medallion[data-tier="5"]{
 animation:challenge-flare-breathe 3.2s ease-in-out infinite
}
.hub-route-world .route-node.locked .challenge-medallion{opacity:.78;filter:saturate(.63)}
@keyframes challenge-flare-breathe{
 0%,100%{filter:brightness(1);scale:1}
 50%{filter:brightness(1.14);scale:1.07}
}
/* Minimal in-level crest: keep existing challenge strip and board geometry. */
.game-shell .difficulty-badge[data-difficulty="3"],
.game-shell .difficulty-badge[data-difficulty="4"],
.game-shell .difficulty-badge[data-difficulty="5"]{
 position:relative;isolation:isolate;display:inline-flex;align-items:center;
 padding:5px 10px 5px 7px;border-radius:999px!important;
 color:#fff9e8!important;font-size:10px;letter-spacing:.2px;
 border:1.5px solid #fff8cb!important;
 background:linear-gradient(135deg,#ec9540,#bc5635)!important;
 box-shadow:inset 0 1px #fff6b377,0 3px 0 #824022,0 6px 13px #49270c30!important
}
.game-shell .difficulty-badge[data-difficulty="4"]{
 background:linear-gradient(130deg,#33b4eb,#3c6abb,#374592)!important;
 border-color:#e6f7ff!important;box-shadow:inset 0 1px #fff9,0 3px 0 #265086,0 5px 14px #335bad66!important
}
.game-shell .difficulty-badge[data-difficulty="5"]{
 background:linear-gradient(130deg,#f675ac,#ae53e1,#6c39a5)!important;
 border-color:#ffe8fb!important;box-shadow:inset 0 1px #fff9,0 3px 0 #632c85,0 6px 14px #823eb367!important
}
.game-shell .difficulty-badge .difficulty-glyph{display:none}
.game-shell .difficulty-badge[data-difficulty="3"] .difficulty-glyph,
.game-shell .difficulty-badge[data-difficulty="4"] .difficulty-glyph,
.game-shell .difficulty-badge[data-difficulty="5"] .difficulty-glyph{
 display:grid;place-items:center;width:22px;height:22px;min-width:22px;
 border-radius:50%;background:#fff3db22;border:1px solid #ffffff7b;
 box-shadow:inset 0 1px #fffbec99,0 0 10px #fff6d955;
 font:1000 14px/1 system-ui;color:#fffef4;text-shadow:0 2px 3px #250e3975
}
.game-shell .difficulty-badge[data-difficulty="3"] .difficulty-dots,
.game-shell .difficulty-badge[data-difficulty="4"] .difficulty-dots,
.game-shell .difficulty-badge[data-difficulty="5"] .difficulty-dots{color:#fff6b3;font-size:6px!important;letter-spacing:-1px}
.game-shell .difficulty-badge[data-difficulty="5"] .difficulty-dots{color:#ffe4ff}
/* Compact level picker medals; no extra grid row or resized cells. */
.journey-world .level-button{position:relative;overflow:visible}
.journey-world .level-button .challenge-medallion-small{
 position:absolute;right:-6px;top:-6px;z-index:2;display:grid;place-items:center;
 width:19px;height:19px;border:1.5px solid #fff9d9;border-radius:50%;
 color:#fff;background:radial-gradient(circle at 23% 20%,#ffdf7a,#d9863d,#a94e43);
 box-shadow:0 2px 4px #32415060;transform:rotate(-12deg);pointer-events:none
}
.journey-world .level-button .challenge-medallion-small[data-tier="4"]{
 background:radial-gradient(circle at 25% 20%,#c7f5ff,#528ddc,#344b97)
}
.journey-world .level-button .challenge-medallion-small[data-tier="5"]{
 background:radial-gradient(circle at 25% 20%,#ffdcf6,#be67de,#6639ac)
}
.journey-world .level-button .challenge-medallion-small .challenge-flare-core{font:1000 11px/1 system-ui}
.journey-world .level-button .challenge-medallion-small .challenge-flare-pips{display:none}
@media(max-width:390px){
 .hub-route-world .route-node .challenge-medallion{width:27px;height:27px;right:-7px;top:-9px}
 .challenge-flare-core{font-size:15px}
 .game-shell .difficulty-badge[data-difficulty="3"],
 .game-shell .difficulty-badge[data-difficulty="4"],
 .game-shell .difficulty-badge[data-difficulty="5"]{font-size:9px;padding:3px 7px!important}
}
@media(prefers-reduced-motion:reduce){
 .hub-route-world .route-node.current .challenge-medallion{animation:none!important}
}
