/* ドキの爆弾処理班. All screen and effect selectors are scoped to this game. */
.mg-dialog[data-game="bomb"] {
  --bomb-ink: #160f19;
  --bomb-metal: #e2d6d2;
  --bomb-green: #82ffac;
  --bomb-white: #fff5e9;
  --bomb-orange: #ffb760;
  --bomb-red: #ff696e;
}
.mg-dialog[data-game="bomb"] .mg-top { height: calc(56px + var(--safe-t)); flex: none; }
.mg-dialog[data-game="bomb"] .mg-top::after { display: none; }
.mg-dialog[data-game="bomb"] .mg-shell:has(.bomb-select, .bomb-results):not(:has(.mg-count-in)) .mg-top {
  position: absolute;
  inset: 0 0 auto;
}
.mg-dialog[data-game="bomb"] .mg-shell:has(.bomb-select, .bomb-results):not(:has(.mg-count-in)) .mg-top h2 { visibility: hidden; }
.mg-dialog[data-game="bomb"] .mg-scroll:has(.bomb-select, .bomb-results) { padding: 0; }
.bomb-round .bomb-stage { border: 1px solid var(--mg-key-line); border-radius: var(--r-card); }

.mg-dialog[data-game="bomb"] .mg-combo { display: none; }
.mg-dialog[data-game="bomb"] .mg-cover { z-index: 6; }
.mg-dialog[data-game="bomb"] .mg-intro-actions {
  position: relative;
  width: min(calc(100% - 40px), 360px);
  margin: -58px auto 0;
}
.mg-dialog[data-game="bomb"] .mg-help { background: #271e2be8; min-height: 44px; }

.bomb-select {
  min-height: max(665px, 100dvh);
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(#100912eb, #160e1a82 22%, transparent 39%, #120a11c2 62%, #170f1a), var(--bomb-workbench) center 57% / cover;
  padding: calc(44px + var(--safe-t)) 20px calc(78px + var(--safe-b));
}
.bomb-select-head { position: relative; text-align: center; }
.bomb-total {
  position: absolute;
  top: -33px;
  right: 0;
  border-radius: var(--r-pill);
  border: 1px solid #fbda986c;
  background: #241927;
  padding: 5px 12px;
  color: #ffdea2;
  font: 800 13px/1.4 system-ui;
}
.bomb-select h3 {
  margin: 26px 0 0;
  font: 900 clamp(29px, 8.4vw, 38px)/1.16 var(--font-ui-title);
  letter-spacing: -.04em;
  text-shadow: 0 3px 20px #100815, 0 1px 0 #291923;
  text-wrap: balance;
}
.bomb-select-crew {
  align-self: flex-start;
  display: flex;
  align-items: flex-start;
  margin: auto 0 4px -12px;
  padding-top: min(9vh, 78px);
}
.bomb-select-crew img { width: clamp(117px, 35vw, 155px); height: auto; }
.bomb-select-crew p { margin: 15px 0 0 -14px; }
.bomb-select-controls { display: grid; justify-items: center; gap: 7px; }
.bomb-select-controls > .mg-primary { width: min(100%, 360px); }
.bomb-select-controls > .mg-reward-summary { color: #f4e5e9; font-size: 12px; }
.bomb-stages { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; width: 100%; }
.bomb-stages button {
  appearance: none;
  position: relative;
  min-width: 0;
  min-height: 75px;
  display: grid;
  grid-template-rows: 42px 14px 13px;
  justify-items: center;
  border-radius: 13px;
  border: 1px solid #f4b68f42;
  background: linear-gradient(#63444ab8, #281c27f0);
  color: var(--bomb-white);
  font: 800 12px/1 system-ui;
  touch-action: manipulation;
}
.bomb-stages button img { margin-top: -3px; }
.bomb-stages button[aria-pressed="true"] { border-color: var(--rose); box-shadow: 0 0 0 1px var(--rose), inset 0 0 16px #ff6d9638; }
.bomb-stages button:disabled { background: #281f29c7; color: #d2c4ce; }
.bomb-stages button:disabled img { filter: brightness(.23) saturate(.35); }
.bomb-stage-stars { color: #ffda95; font-size: 12px; letter-spacing: -1px; }
.bomb-lock {
  position: absolute; top: 22px; left: calc(50% - 6px);
  width: 12px; height: 9px; border-radius: 2px; background: #e0c6b6;
}
.bomb-lock::before {
  content: ""; position: absolute; top: -5px; left: 2px; width: 8px; height: 8px;
  border: 1.5px solid #e0c6b6; border-radius: 6px 6px 0 0;
}
.bomb-selected { margin: 3px 0; color: var(--bomb-white); font: 800 14px/1.25 var(--font-ui-title); }

.bomb-round, .bomb-count-stage {
  --bomb-led-color: var(--bomb-white);
  --bomb-stage-height: clamp(254px, calc(100dvh - 452px), 410px);
}
.bomb-round {
  --bomb-stage-height: clamp(228px, calc(100dvh - 508px - var(--safe-t) - var(--safe-b)), 410px);
  display: grid;
  min-width: 0;
  overflow: clip;
  gap: 6px;
}
.bomb-round[data-phase="2"] { --bomb-led-color: var(--bomb-orange); }
.bomb-round[data-phase="3"] { --bomb-led-color: var(--bomb-red); }
.bomb-stage {
  position: relative;
  height: var(--bomb-stage-height);
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(#170d1780, transparent 37%, #140c16a8), var(--bomb-workbench) center 57% / cover;
}
.bomb-round:has(.bomb-hint) .bomb-stage { height: calc(var(--bomb-stage-height) - 8px); }
.bomb-count-stage {
  --bomb-count-height: calc(100dvh - 56px - var(--safe-t));
  height: 100%;
  background:
    linear-gradient(transparent var(--bomb-stage-height), #211722 82%),
    var(--bomb-workbench) center calc(var(--bomb-stage-height) * .83 - var(--bomb-count-height) * .56) / cover no-repeat #211722;
}
.bomb-count-stage .bomb-scene { bottom: auto; height: var(--bomb-stage-height); }
.bomb-stage-hud {
  position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 9px;
}
.mg-view[data-mg-phase="finale"] .bomb-stage-hud {
  background: linear-gradient(#211823 3px, #21182380 50%, transparent);
}
.bomb-progress { display: flex; gap: 3px; }
.bomb-progress > span, .bomb-misses {
  background: #211823e8; border: 1px solid #e7ac983e; border-radius: var(--r-pill); color: var(--bomb-white);
}
.bomb-progress > span {
  position: relative; display: grid; place-items: center; width: clamp(26px, 7.4vw, 31px); height: 30px;
}
.bomb-progress img { max-width: 100%; }
.bomb-progress [data-outcome="waiting"] img { opacity: .54; }
.bomb-progress [data-outcome="current"] { border-color: var(--rose); }
.bomb-progress [data-outcome="hit"] { border-color: #64bf8e; }
.bomb-progress [data-outcome="hit"] b {
  position: absolute; right: 1px; bottom: -2px; color: var(--bomb-green);
  font: 850 14px/1 system-ui; text-shadow: 1px 1px 2px #0a2513;
}
.bomb-progress [data-outcome="miss"] { background: #2c2028; border-color: #cb8a76; }
.bomb-progress [data-outcome="miss"] img { filter: grayscale(1) brightness(.46); }
.bomb-misses { margin-inline-start: auto; padding: 5px 7px; font: 700 13px/1.35 system-ui; white-space: nowrap; }
.bomb-combo:not([hidden]) + .bomb-misses { margin-inline-start: 0; }

.bomb-scene {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transform-origin: center 54%;
  pointer-events: none;
}
.bomb-device, .bomb-smoke {
  position: absolute;
  width: min(calc(var(--bomb-stage-height) * .88), 100%);
  aspect-ratio: 1;
}
.bomb-housing {
  display: block; width: 100%; height: 100%; filter: drop-shadow(0 13px 12px #130913b8);
}
.bomb-led, .bomb-rule-led {
  position: absolute;
  left: 35.3%; top: 49%; width: 29.4%; height: 12.2%;
  display: flex; justify-content: center; align-items: center; gap: 6%;
  border-radius: 5%;
  color: var(--bomb-led-color, var(--bomb-white));
}
.bomb-led .bomb-digit, .bomb-rule-led .bomb-digit { height: 76%; width: 21%; }
.bomb-digit { position: relative; display: block; isolation: isolate; }
.bomb-digit i { position: absolute; display: block; background-color: currentColor; opacity: .12; }
.bomb-digit :is(.bomb-seg-a, .bomb-seg-g, .bomb-seg-d) {
  left: 16%; width: 68%; height: 10%;
  clip-path: polygon(10% 0, 90% 0, 100% 50%, 90% 100%, 10% 100%, 0 50%);
}
.bomb-digit .bomb-seg-a { top: 0; }
.bomb-digit .bomb-seg-g { top: 45%; }
.bomb-digit .bomb-seg-d { bottom: 0; }
.bomb-digit :is(.bomb-seg-b, .bomb-seg-c, .bomb-seg-e, .bomb-seg-f) {
  width: 14%; height: 39%;
  clip-path: polygon(50% 0, 100% 12%, 100% 88%, 50% 100%, 0 88%, 0 12%);
}
.bomb-digit :is(.bomb-seg-b, .bomb-seg-f) { top: 7%; }
.bomb-digit :is(.bomb-seg-c, .bomb-seg-e) { bottom: 7%; }
.bomb-digit :is(.bomb-seg-b, .bomb-seg-c) { right: 0; }
.bomb-digit :is(.bomb-seg-e, .bomb-seg-f) { left: 0; }
.bomb-digit[data-segments*="a"] .bomb-seg-a,
.bomb-digit[data-segments*="b"] .bomb-seg-b,
.bomb-digit[data-segments*="c"] .bomb-seg-c,
.bomb-digit[data-segments*="d"] .bomb-seg-d,
.bomb-digit[data-segments*="e"] .bomb-seg-e,
.bomb-digit[data-segments*="f"] .bomb-seg-f,
.bomb-digit[data-segments*="g"] .bomb-seg-g { opacity: 1; }
.bomb-led .bomb-digit, .bomb-rule-led .bomb-digit { filter: drop-shadow(0 0 3px currentColor); }
.bomb-round.is-opening .bomb-led { animation: bomb-power 1.2s ease-out both; }
@keyframes bomb-power { 0%, 13% { opacity: 0; } 20% { opacity: .72; } 27% { opacity: .38; } 48%, 100% { opacity: 1; } }

.bomb-fuse-canvas, .bomb-burst {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
}
.bomb-fuse-canvas { top: -37.5%; height: 137.5%; }
.bomb-burst { z-index: 3; }
.bomb-count-stage .has-live-fuse .bomb-housing,
.bomb-round:not([data-effect]) .has-live-fuse .bomb-housing,
.bomb-round:is([data-effect="hold"], [data-effect="flash"]) .has-live-fuse .bomb-housing {
  clip-path: polygon(0 0, 42% 0, 42% 24.609375%, 66% 24.609375%, 66% 0, 100% 0, 100% 100%, 0 100%);
}
.bomb-round:is([data-effect="cut"], [data-effect="boom"]) .bomb-fuse-canvas { visibility: hidden; }
.bomb-round[data-effect="hold"] * { animation-play-state: paused; }
.bomb-round[data-effect="cut"] .bomb-led {
  background: #17382a; color: var(--bomb-green);
  box-shadow: inset 0 0 8px #91ffb97d, 0 0 19px #54ff9b85;
}
.bomb-scissors {
  position: absolute; left: 65%; top: 47%; z-index: 1; display: none;
  font: 900 32px/1 system-ui; color: #fff7e9; filter: drop-shadow(0 2px 3px #281b27);
}
.bomb-round[data-effect="cut"] .bomb-scissors { display: block; animation: bomb-cut 320ms ease-out both; }
@keyframes bomb-cut {
  0% { opacity: 0; transform: translate(42px, -15px) rotate(-27deg); }
  36% { opacity: 1; }
  68% { opacity: 1; }
  100% { opacity: 0; transform: translate(-25px, 31px) rotate(12deg); }
}
.bomb-round.is-final-hit .bomb-scene { animation: bomb-zoom 300ms ease-out both; }
.bomb-round.is-final-hit .bomb-scissors { animation-duration: 620ms; }
@keyframes bomb-zoom { from { transform: scale(1); } to { transform: scale(1.08); } }
.bomb-round[data-effect="boom"] .bomb-device { visibility: hidden; }
.bomb-round[data-effect="boom"] .bomb-smoke {
  width: min(93%, 355px); height: auto; animation: bomb-boom 400ms ease-out both;
}
@keyframes bomb-boom {
  0% { opacity: 0; transform: scale(.4); }
  72% { opacity: 1; transform: scale(1.12); }
  100% { opacity: 1; transform: scale(1); }
}

.bomb-impact, .bomb-impact-flash, .bomb-glass {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
}
.bomb-impact { z-index: 4; --white-peak: 1; }
.bomb-impact.is-reduced { --white-peak: .5; }
.bomb-impact-flash {
  background: #fff; opacity: 0; animation: bomb-viewport-flash 560ms linear both;
}
@keyframes bomb-viewport-flash {
  0%, 100% { opacity: 0; }
  7.142857%, 28.571429% { opacity: var(--white-peak); }
}
.bomb-glass { animation: bomb-glass-away 250ms 1610ms ease-in both; }
.bomb-glass-shadow, .bomb-glass-rays, .bomb-glass-rings {
  fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: bomb-glass-spread 250ms 160ms ease-out forwards;
}
.bomb-glass-shadow { stroke: #251528bb; stroke-width: 3.6; }
.bomb-glass-rays { stroke: #f6faff; stroke-width: 1.35; }
.bomb-glass-rings { stroke: #c6e8ffd9; stroke-width: 1; }
@keyframes bomb-glass-spread { to { stroke-dashoffset: 0; } }
@keyframes bomb-glass-away { from { opacity: 1; } to { opacity: 0; } }
.bomb-glass-shard {
  opacity: 0; transform-box: fill-box; transform-origin: center;
  animation: bomb-shard-light 190ms 220ms ease-out forwards, bomb-shard-fall 290ms 1610ms ease-in forwards;
}
.bomb-glass-shard path:first-child { fill: #bee4ff38; }
.bomb-glass-shard path:last-child { fill: none; stroke: #fff7f0ba; stroke-width: 1.1; vector-effect: non-scaling-stroke; }
@keyframes bomb-shard-light { to { opacity: 1; } }
@keyframes bomb-shard-fall { from { opacity: 1; } to { transform: translate(var(--fall-x), 44px) rotate(var(--turn)); opacity: 0; } }

.mg-dialog:has(.bomb-impact:not(.is-reduced)) :is(.bomb-housing, .bomb-led) {
  animation: bomb-chroma 200ms 160ms linear both;
}
@keyframes bomb-chroma {
  0%, 100% { filter: none; }
  15%, 48% { filter: drop-shadow(-5px 1px 0 #ff254a) drop-shadow(9px -2px 0 #1677ff); }
  65% { filter: drop-shadow(3px 0 0 #ff254a) drop-shadow(-6px 1px 0 #1677ff); }
}
.mg-dialog:has(.bomb-impact[data-shake]) .mg-shell { animation: bomb-shake 450ms ease-out both; }
@keyframes bomb-shake {
  8% { transform: translate(-14px, 3px); } 20% { transform: translate(12px, -4px); }
  35% { transform: translate(-9px, 3px); } 50% { transform: translate(6px, -2px); }
  68% { transform: translate(-4px, 1px); } 85% { transform: translateX(2px); }
}
.mg-dialog:has(.mg-paused) .bomb-impact { visibility: hidden; }
.mg-dialog:has(.mg-paused) .bomb-impact *,
.mg-dialog .mg-paused { animation-play-state: paused !important; }
.bomb-coach {
  position: absolute; inset: auto 8px 0 auto; z-index: 4; display: flex; align-items: end; gap: 2px;
  pointer-events: none;
}
.bomb-coach .mg-doki { width: 96px; height: 96px; }
.bomb-coach .mg-speech {
  margin: 0 -12px 24px 0; z-index: 1; color: var(--bomb-white);
  background: #2b1b2cf2; border-color: #e5b59e70; font-size: 13px;
}
.bomb-combo {
  margin: 0 0 0 auto;
  padding: 5px 7px;
  border-radius: var(--r-pill);
  background: #211823;
  color: #ffdd9a; text-align: center; white-space: nowrap; font: 900 12px/1.3 system-ui;
  text-shadow: 0 2px 3px #211121, 0 0 12px #6d2b45;
  animation: bomb-combo-up 350ms var(--ease-spring-pop) both;
}
@keyframes bomb-combo-up { from { opacity: 0; transform: translateY(17px) scale(.75); } }

.bomb-console {
  display: grid; gap: 5px; padding: 4px 6px 6px;
  border-radius: var(--r-card);
  background: linear-gradient(#302433, #1e1724);
}
.bomb-audio { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 9px; align-items: center; }
.bomb-wave { display: flex; justify-content: center; align-items: center; gap: 3px; height: 34px; }
.bomb-wave i { width: 4px; height: var(--bar, 9px); border-radius: var(--r-pill); background: #f7abc3; opacity: .73; }
.bomb-wave i:is(:nth-child(2), :nth-child(6)) { --bar: 14px; }
.bomb-wave i:is(:nth-child(3), :nth-child(5)) { --bar: 22px; }
.bomb-wave i:nth-child(4) { --bar: 30px; }
.bomb-wave.is-speaking i { opacity: 1; animation: bomb-wave 440ms alternate infinite; }
.bomb-wave.is-speaking i:nth-child(2n) { animation-delay: -320ms; }
.bomb-wave.is-speaking i:nth-child(3n) { animation-delay: -100ms; }
@keyframes bomb-wave { 0% { transform: scaleY(.4); } 100% { transform: scaleY(1.12); } }
.bomb-listen { min-height: 44px; background: #34263a; border-color: #e9b7d969; font-size: clamp(12px, 3.55vw, 14px); }
.bomb-listen:disabled { color: #e3c9dc; border-style: dashed; }
.bomb-fallback {
  position: absolute; z-index: 3; inset: auto 112px 9px 12px;
  width: fit-content; max-width: calc(100% - 124px);
  padding: 4px 8px; border-radius: 8px; background: #241b2af5; color: #f9eaee;
}
.bomb-round:not([data-effect]):has(.bomb-fallback:not([hidden])) .bomb-coach .mg-speech {
  position: absolute; right: 4px; bottom: 86px; max-width: none; margin: 0; white-space: nowrap;
}
.bomb-round[data-effect] .bomb-fallback { visibility: hidden; }
.bomb-fallback small, .bomb-hint { color: #f4dce7; font-size: 12px; }
.bomb-fallback p { margin: 1px 0; font: 650 13px/1.3 var(--f-ko); overflow-wrap: anywhere; }
.bomb-code {
  display: grid; grid-template-columns: repeat(var(--bomb-digits), minmax(0, 1fr)); gap: 4px;
  width: min(100%, calc(var(--bomb-digits) * 42px + 16px)); min-height: 43px; margin: auto;
  border: 1px solid #af755da3; border-radius: 10px; padding: 4px 7px;
  background: #1b121f; box-shadow: inset 0 2px 8px #09070c;
}
.bomb-code .bomb-digit {
  height: 32px; width: min(21px, 68%); margin: auto; color: #ffadc6;
}
.bomb-code .bomb-digit:not([data-segments=""]) { filter: drop-shadow(0 0 3px #fa679999); }
.bomb-hint { margin: 0; text-align: center; line-height: 1.2; }
.bomb-pad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.bomb-pad button {
  min-height: 60px; display: grid; place-items: center; border: 1px solid #f0dfd7; border-bottom-color: #8f7778;
  border-radius: 11px; color: #261c27;
  background: repeating-linear-gradient(0deg, #ffffff00 0 2px, #fff3 3px 4px), linear-gradient(#ebe1dc, #c0aead 98%);
  box-shadow: inset 0 1px 1px #fff, 0 3px 0 #6a525b, 0 5px 8px #0c0813a8;
  font: 800 24px/1 system-ui;
  touch-action: manipulation;
}
@media (max-height: 700px) {
  .bomb-round { --bomb-stage-height: clamp(146px, calc(100dvh - 463px - var(--safe-t) - var(--safe-b)), 228px); }
  .bomb-pad { gap: 5px; }
  .bomb-pad button { min-height: 44px; }
}
@media (max-height: 660px) {
  .bomb-select { min-height: 100dvh; }
  .bomb-select-crew { padding-top: 5px; }
  .bomb-select-crew img { width: 110px; }
  .bomb-stages button { min-height: 62px; grid-template-rows: 33px 13px 12px; }
  .bomb-stages button img { width: 34px; height: 34px; }
  .bomb-lock { top: 17px; }
}
.bomb-pad button[data-key="delete"] { font-size: 23px; }
.bomb-pad .bomb-submit {
  font: 900 18px/1 var(--font-ui-title);
  background: linear-gradient(#ffb0c8, #f574a0);
  border-color: #ffd1df;
  box-shadow: inset 0 1px 1px #ffe5ed, 0 3px 0 #a34768, 0 5px 8px #0c0813a8;
}
.mg-dialog[data-game="bomb"] .bomb-submit:disabled {
  color: #522f47; background: #d491ab; border: 1px solid #f0aac2;
  box-shadow: 0 3px 0 #7c485e;
}
.bomb-retry { padding: 20px; }
.bomb-review header { display: grid; gap: 4px; text-align: center; margin: 4px 0 8px; }
.bomb-review header strong { font-size: 23px; color: var(--bomb-orange); }
.bomb-review header b { font: 850 20px/1 system-ui; color: var(--rose-l); }
.bomb-tip {
  padding: 8px 12px; margin-bottom: 8px; border: 1px solid var(--mg-edge); border-radius: var(--r-card); background: var(--surface-2);
}
.bomb-tip h3 { margin: 0 0 4px; color: var(--rose-l); font-size: 14px; }
.bomb-tip p { margin: 4px 0; color: var(--ivory); font-size: 13px; line-height: 1.33; overflow-wrap: anywhere; }
.bomb-tip-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 5px; }
.bomb-tip-row .bomb-review-listen { min-height: 44px; width: auto; padding: 5px 8px; font-size: 12px; }
.bomb-tip .bomb-tip-ko { font: 800 15px/1.35 var(--f-ko); }
.bomb-tip .bomb-tip-line { border-top: 1px solid var(--mg-edge); padding-top: 4px; color: var(--rose-l); font-weight: 800; }
.bomb-review > .mg-primary { min-height: 44px; }

.bomb-rule-art {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(#130e1455, #170e186b), var(--bomb-workbench) center 56% / cover;
}
.bomb-rule-art img { width: 170px; height: 170px; }
.bomb-rule-led { left: calc(50% - 25px); top: calc(50% - 2px); width: 50px; height: 21px; }

.bomb-results {
  min-height: 100dvh;
  align-content: center;
  padding: calc(52px + var(--safe-t)) 17px calc(18px + var(--safe-b));
  background: radial-gradient(ellipse at 50% 9%, #ffd1883d, transparent 49%),
    linear-gradient(#1a101b1f 17%, #190e1bd1 53%, #1b111f), var(--bomb-workbench) center 56% / cover;
}
.bomb-result-light { display: grid; justify-items: center; gap: 8px; padding-bottom: 6px; }
.bomb-result-light .mg-result-doki img { max-height: min(183px, 23vh); width: auto; height: auto; }
.bomb-result-light .mg-result-doki { min-height: 160px; }
.bomb-result-light .mg-result-score { text-shadow: 0 3px 10px #1d111c; }
.bomb-results .mg-stars { color: #ebcddd; }
.bomb-earned { position: relative; }
.bomb-earned::before { content: "☆"; position: absolute; inset: 0; }
.bomb-earned .is-earned { position: relative; display: block; font: inherit; }
.bomb-results .mg-result-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.bomb-results .mg-result-stats > div { padding: 10px 4px; background: #2c2130ed; }
.bomb-results .mg-result-stats dt { color: #efdae7; }
.bomb-milestones { display: grid; gap: 6px; margin: 4px 0 8px; text-align: start; }
.bomb-milestones > div:first-child { display: flex; justify-content: space-between; align-items: center; gap: 4px; font-size: 13px; }
.bomb-milestones strong, .bomb-prize { color: #ffda92; }
.bomb-milestones progress {
  display: block; width: 100%; height: 8px; border: 0; border-radius: var(--r-pill); clip-path: inset(0 round 10px);
  background: #492d43; color: var(--rose-l); accent-color: var(--rose-l);
}
.bomb-milestones progress::-webkit-progress-bar { background: #492d43; }
.bomb-milestones progress::-webkit-progress-value { background: linear-gradient(90deg, #ff9dac, #ffdd95); }
.bomb-milestones progress::-moz-progress-bar { background: linear-gradient(90deg, #ff9dac, #ffdd95); }
.bomb-prize { font-size: 13px; font-weight: 800; }
.mg-paused .bomb-round * { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  .mg-dialog[data-game="bomb"] :is(.bomb-round *, .bomb-results *) { animation: none !important; }
  .bomb-count-stage .bomb-fuse-canvas { display: none; }
  .bomb-count-stage .bomb-housing { clip-path: none !important; }
  .bomb-round :is(.bomb-fuse-canvas, .bomb-burst, .bomb-scissors), .bomb-glass { display: none !important; }
  .bomb-round .bomb-housing { clip-path: none !important; }
  .mg-dialog:has(.bomb-impact[data-shake]) .mg-shell { animation: none; }
  .bomb-impact { --white-peak: .5; }
  .bomb-impact-flash { animation-duration: 560ms !important; }
}
