/* Metro Rush — HUD, power-up chips, character picker */
.mr { position: absolute; inset: 0; pointer-events: none; font-family: var(--font-b); }
.mr__score { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); text-align: center; min-width: 190px; }
.mr__score b { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.mr__left { position: absolute; top: 74px; left: 16px; display: grid; gap: 8px; }
.mr__right { position: absolute; top: 74px; right: 16px; display: grid; gap: 8px; justify-items: end; }
.mr__right .pill, .mr__left .pill { min-width: 130px; }
.mr__coin { color: var(--sun); }
.mr__coin b::before { content: ""; display: inline-block; width: .7em; height: .7em; margin-right: .35em; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6b0, #FFD23F 55%, #E09B00); box-shadow: 0 0 0 .08em #8a5a00 inset, 0 0 12px rgba(255, 210, 63, .6); vertical-align: -.02em; }

.mr__pups { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; gap: 10px; }
.chip { --c: #fff; display: flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 999px; background: rgba(15, 12, 34, .72); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .12) inset, 0 6px 18px rgba(0, 0, 0, .3); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.chip i { --p: 100%; position: relative; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) var(--p), rgba(255, 255, 255, .16) 0); }
.chip i::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #1B1740; }
.chip i img { position: relative; width: 38px; height: 38px; }
.chip span em { font-style: normal; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.chip.low { animation: mrblink .32s steps(2) infinite; }
@keyframes mrblink { 50% { opacity: .35; } }

.mr__chase { position: absolute; left: 50%; top: 120px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 6px 16px 7px; border-radius: 999px; background: var(--orange); color: #fff; font-family: var(--font-d); font-size: 1rem; letter-spacing: .06em; opacity: 0; transition: opacity .2s; box-shadow: 0 4px 0 #A02A08; white-space: nowrap; }
.mr__chase i { width: 12px; height: 12px; border-radius: 50%; background: #FF2A2A; box-shadow: 0 0 10px #FF2A2A; animation: mrsiren .36s steps(2) infinite; }
.mr__chase i:last-child { background: #2A5BFF; box-shadow: 0 0 10px #2A5BFF; animation-direction: reverse; }
@keyframes mrsiren { 50% { opacity: .15; } }
.mr__chase.on { opacity: 1; animation: mrpulse .5s ease-in-out infinite alternate; }
.mr__chase.warn { background: #FFB02E; color: #3A2200; box-shadow: 0 4px 0 #A56A00; animation-duration: .22s; }
@keyframes mrpulse { to { transform: translateX(-50%) scale(1.08); } }
.mr__vig { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 55%, rgba(255, 40, 60, .38) 100%); opacity: 0; transition: opacity .35s; }
.mr__vig.on { opacity: 1; transition: opacity .05s; animation: mrvig .7s ease-in-out infinite alternate; }
@keyframes mrvig { to { opacity: .55; } }

/* character picker in the menu */
.cpick { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.cpick button { width: 90px; padding: 6px 4px 8px; border: 0; border-radius: 16px; background: rgba(255, 255, 255, .07); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .1) inset; display: grid; justify-items: center; gap: 2px; transition: transform .15s, background .15s; }
.cpick button:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .13); }
.cpick button.on { background: rgba(198, 255, 61, .16); box-shadow: 0 0 0 2.5px var(--lime) inset; }
.cpick canvas { width: 68px; height: 85px; }
.cpick span { font-family: var(--font-d); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; }
.cpick-lab { font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin-bottom: 8px; }

@media (max-width: 760px) {
  .cpick { flex-wrap: nowrap; gap: 8px; justify-content: center; } .cpick button { width: calc((100% - 24px) / 4); min-width: 0; } .cpick canvas { width: 100%; height: auto; aspect-ratio: 136 / 170; }
  .mr__left, .mr__right { top: 70px; } .mr__right .pill, .mr__left .pill { min-width: 0; padding: 6px 10px; } .pill b { font-size: 1.2rem; }
  .mr__score { top: 62px; } .mr__left { top: 120px; } .mr__right { top: 120px; }
  .mr__pups { bottom: 12px; } .chip { padding-right: 12px; } .chip i { width: 42px; height: 42px; } .chip i img { width: 32px; height: 32px; }
}

/* --- small desktop frame --- */
@media (max-height: 640px) {
  .ar__ov--menu .menu p.tag { display: none; }
  .cpick { gap: 6px; } .cpick button { width: 64px; padding: 4px 3px 5px; } .cpick canvas { width: 44px; height: 54px; }
  .cpick-lab { margin-bottom: 4px; }
}
@media (max-height: 460px) {
  .ar__ov--menu .menu h1 { font-size: clamp(2.2rem, 11vh, 3rem); }
  .cpick canvas { width: 34px; height: 42px; } .cpick button { width: 52px; } .cpick span { font-size: .62rem; }
}
