/* Cocardo: ¡Rescate Helado! — Pantalla de juego (HUD, tablero, ayudas, capas de efectos).
 * Dueño: Board. Usa los tokens de css/style.css (§13 de ARQUITECTURA) con valores de respaldo.
 * Todas las clases llevan el prefijo cg- para no chocar con la Shell. */

/* ---------- marco ---------- */
.cg-root {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-areas: "hud" "stage" "boost";
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  box-sizing: border-box;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  font-family: var(--font-body, 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif);
  color: var(--ink, #2b1630);
  background: linear-gradient(180deg, #ffd6e8 0%, #ffeef6 45%, #bfe9ff 100%);
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}
.cg-root *, .cg-root *::before, .cg-root *::after { box-sizing: border-box; }
.cg-root svg { display: block; }
.cg-root button { font: inherit; color: inherit; }
.cg-root button:focus-visible { outline: 3px solid var(--gold, #ffc93c); outline-offset: 3px; }

.cg-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
}
.cg-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 65% at 50% 55%, rgba(255, 255, 255, 0) 45%, rgba(43, 22, 48, 0.32) 100%);
}

.cg-hud { grid-area: hud; position: relative; z-index: 2; display: flex; flex-direction: column; gap: 6px; padding: 8px 10px 4px; min-width: 0; }
.cg-stage { grid-area: stage; position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 0; }
.cg-boosters { grid-area: boost; position: relative; z-index: 2; display: flex; justify-content: center; align-items: center; gap: 12px; padding: 6px 10px 12px; }
.cg-fx { position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; }
.cg-overlay { position: absolute; inset: 0; z-index: 6; pointer-events: none; overflow: hidden; }

/* ---------- barra superior ---------- */
.cg-topbar { display: flex; align-items: center; gap: 8px; min-height: 40px; }
.cg-pause {
  flex: none;
  width: 40px; height: 40px;
  padding: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 3px solid var(--ink, #2b1630);
  background: var(--cream, #fff6ea);
  box-shadow: 0 3px 0 var(--ink, #2b1630);
  cursor: pointer;
  pointer-events: auto;
}
.cg-pause svg { width: 18px; height: 18px; color: var(--ink, #2b1630); }
.cg-pause:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink, #2b1630); }
.cg-title { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; line-height: 1.05; color: #fff; }
.cg-lvl {
  font-family: var(--font-display, 'Lilita One', 'Arial Rounded MT Bold', 'Trebuchet MS', sans-serif);
  font-size: 21px;
  letter-spacing: 0.01em;
  text-shadow: 2px 0 var(--ink, #2b1630), -2px 0 var(--ink, #2b1630), 0 2px var(--ink, #2b1630), 0 -2px var(--ink, #2b1630),
    2px 2px var(--ink, #2b1630), -2px 2px var(--ink, #2b1630), 2px -2px var(--ink, #2b1630), -2px -2px var(--ink, #2b1630), 0 4px 0 var(--ink, #2b1630);
}
.cg-lvname {
  max-width: 100%;
  margin-top: 3px;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(43, 22, 48, 0.62);
  font-size: 11px; font-weight: 800;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cg-lvname:empty { display: none; }
/* en el HUD lateral el título es angosto: el nombre baja a una segunda línea en vez de cortarse */
.cg-wide .cg-lvname { white-space: normal; overflow: visible; text-overflow: clip; text-align: center; line-height: 1.2; border-radius: 9px; padding: 1px 8px 2px; }
.cg-score {
  flex: none;
  min-width: 78px;
  padding: 5px 10px 4px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: rgba(43, 22, 48, 0.8);
  color: #fff;
  text-align: center;
  font-family: var(--font-display, 'Lilita One', 'Arial Rounded MT Bold', sans-serif);
  font-size: 17px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.cg-score small { margin-left: 3px; font-family: var(--font-body, sans-serif); font-size: 10px; font-weight: 900; opacity: 0.8; }

/* ---------- tarjeta del HUD ---------- */
.cg-card {
  display: flex; align-items: center; gap: 8px;
  min-height: 86px;
  padding: 7px 8px 7px 10px;
  border-radius: 22px;
  border: 3px solid var(--ink, #2b1630);
  background: linear-gradient(180deg, #fffaf3 0%, var(--cream, #fff6ea) 60%, #ffe9f2 100%);
  box-shadow: 0 4px 0 var(--ink, #2b1630), 0 12px 24px rgba(43, 22, 48, 0.28);
}

/* villanos */
.cg-villains { flex: none; display: flex; align-items: center; }
.cg-villain { position: relative; width: 66px; display: flex; flex-direction: column; align-items: center; }
.cg-villains.cg-two .cg-villain { width: 52px; }
.cg-villains.cg-two .cg-v2 { margin-left: -2px; }
.cg-portrait {
  width: 62px; height: 62px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--ink, #2b1630);
  background: radial-gradient(circle at 50% 30%, #ffd0e2 0%, var(--pink, #ff6fa5) 45%, var(--drama-2, #a1286a) 80%, var(--drama, #5b1e74) 100%);
  box-shadow: inset 0 -6px 10px rgba(43, 22, 48, 0.25);
}
.cg-v-cocardo .cg-portrait { background: radial-gradient(circle at 50% 30%, #eaf8ff 0%, var(--ice, #bfe9ff) 40%, var(--ice-deep, #4aa8e0) 78%, #1d5f8f 100%); }
.cg-villains.cg-two .cg-portrait { width: 50px; height: 50px; }
.cg-portrait svg { width: 100%; height: 100%; transform: translateY(5%) scale(1.12); }
.cg-vname {
  position: relative;
  margin-top: -9px;
  padding: 1px 7px 2px;
  border-radius: 999px;
  background: var(--ink, #2b1630);
  color: #fff;
  font-family: var(--font-display, 'Lilita One', sans-serif);
  font-size: 11px;
  line-height: 1.1;
  white-space: nowrap;
}
.cg-villains.cg-two .cg-vname { font-size: 9px; padding: 1px 5px; }
.cg-badges { position: absolute; top: -6px; right: -10px; display: flex; flex-direction: column; gap: 3px; }
.cg-badge {
  display: flex; align-items: center; gap: 2px;
  padding: 1px 6px 1px 3px;
  border-radius: 999px;
  border: 2px solid var(--ink, #2b1630);
  background: #fff;
  box-shadow: 0 2px 0 var(--ink, #2b1630);
  font-family: var(--font-display, 'Lilita One', sans-serif);
  font-size: 14px; line-height: 1.15;
}
.cg-badge-ic svg { width: 15px; height: 15px; }
.cg-badge-frost { background: #e6f7ff; }
.cg-badge-frost .cg-badge-ic { color: var(--ice-deep, #4aa8e0); }
.cg-badge-crate { background: #fff0dc; }
.cg-badge-crate .cg-badge-ic { color: var(--coco, #7a4a2a); }
.cg-badge.cg-urgent .cg-badge-ic { color: #fff; }
.cg-badge.cg-urgent { background: var(--cherry, #d61f4b); color: #fff; animation: cg-pulse 0.6s ease-in-out infinite; }
.cg-badge.cg-off { opacity: 0.45; filter: grayscale(1); }
.cg-badge.cg-bump { animation: cg-bump 0.35s ease-out; }
.cg-villain.cg-shake .cg-portrait { animation: cg-wobble 0.5s ease-in-out; }
.cg-villain.cg-zap .cg-portrait { animation: cg-zap 0.6s ease-out; }
.cg-villain[data-mood="llorando"] .cg-portrait { filter: saturate(0.85); }

/* metas */
.cg-goals { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 8px; }
.cg-goal { position: relative; flex: none; width: 50px; height: 56px; display: flex; flex-direction: column; align-items: center; }
.cg-goal-ic { width: 42px; height: 42px; filter: drop-shadow(0 2px 0 rgba(43, 22, 48, 0.25)); }
.cg-goal-ic svg { width: 100%; height: 100%; }
.cg-goal-n {
  position: relative;
  margin-top: -9px;
  min-width: 30px;
  padding: 0 6px;
  border-radius: 999px;
  border: 2px solid #fff;
  background: var(--ink, #2b1630);
  color: #fff;
  font-family: var(--font-display, 'Lilita One', sans-serif);
  font-size: 15px; line-height: 18px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.cg-goal-ok {
  display: none;
  position: relative;
  margin-top: -10px;
  width: 24px; height: 24px;
  padding: 3px;
  border-radius: 50%;
  border: 2px solid var(--ink, #2b1630);
  background: var(--ok, #33b679);
}
.cg-goal-ok svg { width: 100%; height: 100%; color: #fff; }
.cg-goal.cg-done .cg-goal-n { display: none; }
.cg-goal.cg-done .cg-goal-ok { display: block; animation: cg-pop-in 0.35s cubic-bezier(0.3, 1.7, 0.5, 1) both; }
.cg-goal.cg-done .cg-goal-ic { opacity: 0.75; }
.cg-goal.cg-bump .cg-goal-ic { animation: cg-bump 0.32s ease-out; }
.cg-goal.cg-bump .cg-goal-n { animation: cg-bump 0.32s ease-out; }
/* golpe al congelador: el contador tiembla y se pone rojo un instante */
.cg-goal.cg-hit .cg-goal-ic { animation: cg-hit 0.36s ease-out; }
.cg-goal.cg-hit .cg-goal-n { animation: cg-hit-n 0.42s ease-out; }
/* rescate con varios amigos: una carita por cada uno que falta */
.cg-goal.cg-multi { width: auto; min-width: 50px; }
.cg-goal.cg-multi .cg-goal-ic { width: auto; display: flex; justify-content: center; }
.cg-faces { display: flex; align-items: flex-end; height: 100%; }
.cg-face { flex: none; width: 34px; height: 34px; }
.cg-face + .cg-face { margin-left: -9px; }
.cg-faces[data-n="3"] .cg-face, .cg-faces[data-n="4"] .cg-face { width: 28px; height: 28px; }
.cg-face svg { width: 100%; height: 100%; }
.cg-goals[data-n="1"] .cg-goal { width: 62px; height: 66px; }
.cg-goals[data-n="1"] .cg-goal-ic { width: 54px; height: 54px; }
.cg-goals.cg-many .cg-goal { width: 44px; }
.cg-goals.cg-many .cg-goal-ic { width: 38px; height: 38px; }

/* «Pedido de Piña» */
.cg-ticket {
  position: relative;
  flex: none;
  padding: 3px 7px 5px;
  border-radius: 8px;
  border: 2px solid var(--ink, #2b1630);
  background:
    radial-gradient(circle at 0 50%, transparent 5px, #fffdf6 5.5px) left / 51% 100% no-repeat,
    radial-gradient(circle at 100% 50%, transparent 5px, #fffdf6 5.5px) right / 51% 100% no-repeat;
  box-shadow: 0 3px 0 rgba(43, 22, 48, 0.35);
  transform: rotate(-1.5deg);
}
.cg-ticket::after {
  content: '';
  position: absolute;
  left: 8px; right: 8px; top: 25px;
  border-top: 2px dashed rgba(43, 22, 48, 0.25);
}
.cg-ticket-head { display: flex; align-items: center; justify-content: center; gap: 4px; height: 22px; }
.cg-ticket-face { width: 22px; height: 22px; flex: none; border-radius: 50%; overflow: hidden; border: 2px solid var(--ink, #2b1630); background: #ffe680; }
.cg-ticket-face svg { width: 100%; height: 100%; transform: scale(1.2) translateY(6%); }
.cg-ticket-title {
  font-family: var(--font-script, 'Yellowtail', 'Brush Script MT', cursive);
  font-size: 16px; line-height: 1;
  color: var(--drama-2, #a1286a);
  white-space: nowrap;
}
.cg-ticket-items { display: flex; justify-content: center; gap: 5px; margin-top: 4px; }
.cg-ticket .cg-goal { width: 40px; height: 46px; }
.cg-ticket .cg-goal-ic { width: 33px; height: 33px; }
.cg-ticket .cg-goal-n { font-size: 13px; line-height: 16px; min-width: 26px; margin-top: -7px; }

/* movimientos */
.cg-moves {
  flex: none;
  width: 66px; height: 70px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 18px;
  border: 3px solid var(--ink, #2b1630);
  background: linear-gradient(180deg, #ffa3c9 0%, var(--pink, #ff6fa5) 45%, #d6457f 100%);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.5), 0 3px 0 var(--ink, #2b1630);
  color: #fff;
}
.cg-moves-n {
  font-family: var(--font-display, 'Lilita One', sans-serif);
  font-size: 33px; line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 2px 0 var(--ink, #2b1630), -2px 0 var(--ink, #2b1630), 0 2px var(--ink, #2b1630), 0 -2px var(--ink, #2b1630), 0 4px 0 var(--ink, #2b1630);
}
.cg-moves-l { margin-top: 2px; font-size: 10px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.cg-moves.cg-tick .cg-moves-n { animation: cg-bump 0.3s ease-out; }
.cg-root.cg-won .cg-moves.cg-low { animation: none; background: linear-gradient(180deg, #a7f0d4 0%, var(--ok, #33b679) 55%, #1f8a57 100%); }
.cg-moves.cg-low { background: linear-gradient(180deg, #ff8a8a 0%, #ff3b55 45%, var(--cherry, #d61f4b) 100%); animation: cg-pulse-red 0.9s ease-in-out infinite; }

/* ---------- tablero ---------- */
.cg-board-wrap { position: relative; flex: none; }
.cg-board { position: relative; z-index: 2; display: block; touch-action: none; transition: opacity 0.25s ease; cursor: pointer; }
.cg-board-wrap.cg-target::before {
  content: '';
  position: absolute;
  inset: -5px;
  z-index: 1;
  border-radius: 24px;
  box-shadow: 0 0 0 4px var(--gold, #ffc93c), 0 0 26px 8px rgba(255, 201, 60, 0.75);
  animation: cg-pulse 1s ease-in-out infinite;
}
.cg-board-wrap[data-armed] .cg-board { cursor: crosshair; }

/* cabeza que se asoma con la pista */
.cg-peek { position: absolute; z-index: 3; pointer-events: none; opacity: 0; transition: transform 0.4s cubic-bezier(0.3, 1.6, 0.5, 1), opacity 0.2s ease; }
.cg-peek-face { width: 100%; height: 100%; filter: drop-shadow(0 3px 0 rgba(43, 22, 48, 0.35)); }
.cg-peek-face svg { width: 100%; height: 100%; }
.cg-peek-side, .cg-peek-top { z-index: 1; }   /* por detrás del tablero */
.cg-peek-left { left: 0; transform: translateX(-20%) rotate(-25deg); }
.cg-peek-right { right: 0; transform: translateX(20%) rotate(25deg); }
.cg-peek-side.cg-peek-left.cg-in { opacity: 1; transform: translateX(-62%) rotate(-14deg); }
.cg-peek-side.cg-peek-right.cg-in { opacity: 1; transform: translateX(62%) rotate(14deg); }
.cg-peek-over.cg-peek-left { transform: translateX(-95%) rotate(-25deg); }
.cg-peek-over.cg-peek-right { transform: translateX(95%) rotate(25deg); }
.cg-peek-over.cg-peek-left.cg-in { opacity: 1; transform: translateX(-40%) rotate(14deg); }
.cg-peek-over.cg-peek-right.cg-in { opacity: 1; transform: translateX(40%) rotate(-14deg); }
.cg-peek-top { top: 0; transform: translateY(10%); }
.cg-peek-top.cg-in { opacity: 1; transform: translateY(-58%) rotate(-6deg); }
.cg-peek-say {
  position: absolute; top: -12px;
  padding: 1px 7px 2px;
  border-radius: 10px;
  border: 2px solid var(--ink, #2b1630);
  background: #fff;
  font-family: var(--font-display, 'Lilita One', sans-serif);
  font-size: 12px;
  white-space: nowrap;
}
.cg-peek-left .cg-peek-say { left: 62%; }
.cg-peek-right .cg-peek-say { right: 62%; }
.cg-peek-side.cg-peek-left .cg-peek-say { left: auto; right: 70%; }
.cg-peek-side.cg-peek-right .cg-peek-say { right: auto; left: 70%; }
.cg-peek-top .cg-peek-say { top: 4px; left: 80%; }

/* ---------- barra de ayudas ---------- */
.cg-boost {
  position: relative;
  width: 74px; height: 62px;
  padding: 3px 2px 2px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 18px;
  border: 3px solid var(--ink, #2b1630);
  background: linear-gradient(180deg, #ffffff 0%, var(--cream, #fff6ea) 55%, #ffe1ee 100%);
  box-shadow: 0 4px 0 var(--ink, #2b1630), 0 8px 16px rgba(43, 22, 48, 0.2);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  touch-action: manipulation;
}
.cg-boost:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink, #2b1630); }
.cg-boost-ic { width: 32px; height: 32px; }
.cg-boost-ic svg { width: 100%; height: 100%; }
.cg-boost-cucharon .cg-boost-ic { color: #6c7d96; }
.cg-boost-chorro .cg-boost-ic { color: #47a82a; }
.cg-boost-batido .cg-boost-ic { color: #e0306a; }
.cg-boost-name { margin-top: 1px; font-size: 11px; font-weight: 900; line-height: 1; }
.cg-boost-n {
  position: absolute; top: -9px; right: -9px;
  min-width: 24px; height: 24px;
  padding: 0 5px;
  border-radius: 12px;
  border: 2px solid var(--ink, #2b1630);
  background: var(--pink, #ff6fa5);
  color: #fff;
  font-family: var(--font-display, 'Lilita One', sans-serif);
  font-size: 14px; line-height: 20px;
  text-align: center;
}
.cg-boost-lock {
  display: none;
  position: absolute; inset: 0;
  place-items: center;
  border-radius: 14px;
  background: rgba(43, 22, 48, 0.55);
}
.cg-boost-lock svg { width: 24px; height: 24px; color: #fff; }
.cg-boost.cg-locked .cg-boost-lock { display: grid; align-content: center; justify-items: center; gap: 3px; padding-top: 4px; }
.cg-boost-at { display: block; color: #fff; font-size: 11px; font-weight: 900; line-height: 1; white-space: nowrap; text-shadow: 0 1px 0 rgba(43, 22, 48, 0.6); }
.cg-root.cg-noboost .cg-boosters { display: none; }
.cg-boost.cg-locked .cg-boost-n { display: none; }
.cg-boost.cg-locked .cg-boost-ic { opacity: 0.55; }
.cg-boost.cg-locked .cg-boost-name { opacity: 0; }   /* en su lugar, «Nivel N» sobre el candado */
.cg-boost.cg-empty .cg-boost-ic { filter: grayscale(0.8); opacity: 0.6; }
.cg-boost.cg-empty .cg-boost-n { background: #9a8a9a; }
.cg-boost.cg-disabled { filter: grayscale(1); opacity: 0.55; }
.cg-boost.cg-armed {
  background: linear-gradient(180deg, #fff6c4 0%, #ffe066 55%, var(--gold, #ffc93c) 100%);
  transform: translateY(-5px) scale(1.06);
  box-shadow: 0 0 0 3px #fff, 0 0 20px 6px rgba(255, 201, 60, 0.95), 0 5px 0 var(--ink, #2b1630);
}
.cg-boost.cg-armed .cg-boost-ic { animation: cg-wiggle 0.7s ease-in-out infinite; }
.cg-boost.cg-no { animation: cg-no 0.35s ease-in-out; }

/* ---------- capa de mensajes ---------- */
.cg-bubble {
  position: absolute;
  max-width: 240px;
  padding: 6px 11px 8px;
  border-radius: 16px;
  border: 3px solid var(--ink, #2b1630);
  background: #fff;
  box-shadow: 0 4px 0 var(--ink, #2b1630);
  font-size: 14px; font-weight: 800; line-height: 1.2;
  animation: cg-pop-in 0.28s cubic-bezier(0.3, 1.7, 0.5, 1) both;
  transform-origin: 20% 0;
}
.cg-bubble b { display: block; font-family: var(--font-display, 'Lilita One', sans-serif); font-weight: normal; font-size: 12px; color: var(--drama-2, #a1286a); }
.cg-bubble-cocardo b { color: var(--coco, #7a4a2a); }
.cg-bubble-cereza b { color: var(--cherry, #d61f4b); }
.cg-bubble::before, .cg-bubble::after { content: ''; position: absolute; width: 0; height: 0; border-style: solid; }
.cg-bubble.cg-tail-up::before { top: -14px; left: var(--tail-x, 20px); border-width: 0 9px 13px 9px; border-color: transparent transparent var(--ink, #2b1630) transparent; }
.cg-bubble.cg-tail-up::after { top: -8px; left: calc(var(--tail-x, 20px) + 3px); border-width: 0 6px 9px 6px; border-color: transparent transparent #fff transparent; }
.cg-bubble.cg-tail-left::before { left: -14px; top: calc(50% - 9px); border-width: 9px 13px 9px 0; border-color: transparent var(--ink, #2b1630) transparent transparent; }
.cg-bubble.cg-tail-left::after { left: -8px; top: calc(50% - 6px); border-width: 6px 9px 6px 0; border-color: transparent #fff transparent transparent; }
.cg-out { animation: cg-fade-out 0.26s ease-in forwards !important; }

.cg-banner { position: absolute; left: 0; right: 0; transform: translateY(-50%); text-align: center; pointer-events: none; }
.cg-banner-t {
  display: inline-block;
  max-width: calc(100% - 24px);
  padding: 6px 24px 9px;
  border-radius: 20px;
  border: 4px solid var(--ink, #2b1630);
  background: linear-gradient(180deg, #d84d9a 0%, var(--drama-2, #a1286a) 45%, var(--drama, #5b1e74) 100%);
  box-shadow: 0 6px 0 var(--ink, #2b1630), 0 18px 40px rgba(43, 22, 48, 0.45), inset 0 3px 0 rgba(255, 255, 255, 0.35);
  color: #fff;
  font-family: var(--font-display, 'Lilita One', sans-serif);
  font-size: clamp(28px, 8.6vw, 54px);
  line-height: 1.05;
  text-shadow: 3px 0 var(--ink, #2b1630), -3px 0 var(--ink, #2b1630), 0 3px var(--ink, #2b1630), 0 -3px var(--ink, #2b1630),
    2px 2px var(--ink, #2b1630), -2px 2px var(--ink, #2b1630), 2px -2px var(--ink, #2b1630), -2px -2px var(--ink, #2b1630), 0 6px 0 var(--ink, #2b1630);
  transform: rotate(-3deg);
  animation: cg-banner-in 0.5s cubic-bezier(0.2, 1.6, 0.4, 1) both;
}
.cg-banner-s {
  display: block;
  width: max-content;
  margin: 8px auto 0;
  padding: 3px 12px 4px;
  border-radius: 999px;
  background: rgba(43, 22, 48, 0.85);
  color: #fff;
  font-size: 14px; font-weight: 900;
  animation: cg-pop-in 0.3s 0.25s both;
}
.cg-banner-hf .cg-banner-t { background: linear-gradient(180deg, #fff3b0 0%, #ffd23c 40%, #ff8fbf 100%); color: #fff; }
.cg-banner-win .cg-banner-t { background: linear-gradient(180deg, #a7f0d4 0%, var(--ok, #33b679) 55%, #1f8a57 100%); }
.cg-banner-lose .cg-banner-t { background: linear-gradient(180deg, #8fd0f2 0%, var(--ice-deep, #4aa8e0) 50%, #1d5f8f 100%); transform: rotate(2deg); animation-name: cg-banner-in-lose; }
/* «¡Casi! Te faltan 3 [ícono] y 2 [ícono]» */
.cg-nm { display: inline-flex; align-items: center; gap: 2px; vertical-align: middle; }
.cg-nm b { font-family: var(--font-display, 'Lilita One', sans-serif); font-weight: normal; font-size: 16px; }
.cg-nm-ic { display: inline-block; width: 24px; height: 24px; }
.cg-nm-ic svg { width: 100%; height: 100%; }
.cg-banner-shuffle .cg-banner-t { font-size: clamp(20px, 6vw, 36px); }
.cg-banner.cg-out { animation: cg-fade-out 0.3s ease-in forwards; }

.cg-cascade {
  position: absolute;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  font-family: var(--font-display, 'Lilita One', sans-serif);
  font-size: clamp(30px, 10vw, 58px);
  color: #fff;
  text-shadow: 3px 0 var(--ink, #2b1630), -3px 0 var(--ink, #2b1630), 0 3px var(--ink, #2b1630), 0 -3px var(--ink, #2b1630),
    2px 2px var(--ink, #2b1630), -2px 2px var(--ink, #2b1630), 2px -2px var(--ink, #2b1630), -2px -2px var(--ink, #2b1630), 0 6px 0 var(--ink, #2b1630);
  animation: cg-cascade 1.1s cubic-bezier(0.2, 1.6, 0.4, 1) forwards;
}
.cg-c2 { color: #bff3e1; }
.cg-c3 { color: #ffe680; }
.cg-c4 { color: #ffb36b; font-size: clamp(32px, 10.5vw, 60px); }
.cg-c5 { color: #ff8fbf; font-size: clamp(34px, 11vw, 64px); }
.cg-c6 { color: #ffd23c; font-size: clamp(30px, 10vw, 64px); }

.cg-toast {
  position: absolute;
  transform: translate(-50%, -100%);
  max-width: calc(100% - 24px);
  padding: 6px 14px 7px;
  border-radius: 999px;
  background: rgba(43, 22, 48, 0.9);
  color: #fff;
  font-size: 14px; font-weight: 900;
  white-space: nowrap;
  animation: cg-toast-in 0.22s ease-out both;
}
.cg-toast-armed { border: 3px solid var(--ink, #2b1630); background: linear-gradient(180deg, #fff3b0, var(--gold, #ffc93c)); color: var(--ink, #2b1630); }

/* rescate */
.cg-rescue { position: absolute; width: 0; height: 0; }
.cg-rescue-face {
  position: absolute;
  left: calc(var(--face, 100px) / -2);
  top: calc(var(--face, 100px) / -2);
  width: var(--face, 100px); height: var(--face, 100px);
  filter: drop-shadow(0 5px 0 rgba(43, 22, 48, 0.3));
  animation: cg-hop 0.9s cubic-bezier(0.3, 1.4, 0.5, 1) both;
}
.cg-rescue-face svg { width: 100%; height: 100%; }
.cg-rescue-say {
  position: absolute;
  left: 0;
  bottom: calc(var(--face, 100px) * 1.05);
  width: max-content;
  max-width: 230px;
  padding: 6px 11px 8px;
  border-radius: 16px;
  border: 3px solid var(--ink, #2b1630);
  background: #fff;
  box-shadow: 0 4px 0 var(--ink, #2b1630);
  font-size: 14px; font-weight: 800; line-height: 1.2;
  transform: translateX(calc(-50% + var(--shift, 0px)));
  animation: cg-say-in 0.3s 0.45s cubic-bezier(0.3, 1.7, 0.5, 1) both;
}
.cg-rescue-say b { display: block; font-family: var(--font-display, 'Lilita One', sans-serif); font-weight: normal; font-size: 12px; color: var(--ok, #33b679); }
.cg-rescue.cg-below .cg-rescue-say { bottom: auto; top: calc(var(--face, 100px) * 0.45); }

/* tutorial */
.cg-tip {
  position: absolute;
  display: flex; align-items: center; gap: 9px;
  padding: 6px 12px 6px 6px;
  border-radius: 18px;
  border: 3px solid var(--ink, #2b1630);
  background: #fff;
  box-shadow: 0 4px 0 var(--ink, #2b1630), 0 10px 24px rgba(43, 22, 48, 0.3);
  animation: cg-pop-in 0.32s cubic-bezier(0.3, 1.7, 0.5, 1) both;
}
.cg-tip.cg-tip-above { margin-top: 0; transform: translateY(-100%); animation-name: cg-fade-in; }
.cg-tip.cg-tip-mid { transform: translateY(-50%); animation-name: cg-fade-in; }
.cg-tip.cg-bump .cg-tip-face { animation: cg-wobble 0.45s ease-in-out; }
.cg-tip.cg-ok { border-color: var(--ok, #33b679); }
.cg-tip.cg-ok .cg-tip-text span { color: #1f8a57; font-size: 17px; }
.cg-tip.cg-ok .cg-tip-face { animation: cg-bump 0.35s ease-out; }
.cg-tip-face {
  flex: none;
  width: 48px; height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--ink, #2b1630);
  background: radial-gradient(circle at 50% 30%, #ffffff, var(--mint, #bff3e1) 70%);
}
.cg-tip-face svg { width: 100%; height: 100%; transform: scale(1.15) translateY(6%); }
.cg-tip-text { min-width: 0; }
.cg-tip-text b { display: block; font-family: var(--font-display, 'Lilita One', sans-serif); font-weight: normal; font-size: 12px; color: var(--drama-2, #a1286a); }
.cg-tip-text span { display: block; font-size: 14px; font-weight: 800; line-height: 1.2; }
.cg-hand { position: absolute; z-index: 2; color: #fff; filter: drop-shadow(0 3px 0 rgba(43, 22, 48, 0.5)) drop-shadow(0 0 6px rgba(255, 255, 255, 0.8)); }
.cg-hand svg { width: 100%; height: 100%; }
.cg-hand-swipe { animation: cg-hand-swipe 1.7s ease-in-out infinite; }
.cg-hand-tap { animation: cg-hand-tap 1s ease-in-out infinite; }

/* sprites sueltos (ayudas) */
.cg-sprite { position: absolute; }
.cg-sprite svg { width: 100%; height: 100%; filter: drop-shadow(0 3px 0 rgba(43, 22, 48, 0.45)); }
.cg-spoon { color: #8796ad; }
.cg-squirt { color: #47a82a; }
.cg-blender { color: #e0306a; }
.cg-spoon { transform-origin: 50% 85%; animation: cg-spoon 0.6s cubic-bezier(0.5, 0, 0.6, 1.4) both; }
.cg-squirt { animation: cg-squirt 0.7s ease-out both; }
.cg-blender { animation: cg-blender 0.9s ease-in-out both; }

/* estados globales */
.cg-root.cg-danger::after {
  content: '';
  position: absolute; inset: 0;
  z-index: 4;
  pointer-events: none;
  box-shadow: inset 0 0 70px 12px rgba(214, 31, 75, 0.45);
  animation: cg-danger 1s ease-in-out infinite;
}
.cg-root.cg-paused .cg-stage { filter: blur(3px) saturate(0.8); }
.cg-root.cg-ended .cg-boosters { opacity: 0.55; pointer-events: none; }

/* ---------- teléfonos altos: HUD más grande ---------- */
.cg-root.cg-tall .cg-hud { gap: 8px; padding-top: 12px; }
.cg-root.cg-tall .cg-card { min-height: 98px; padding: 9px 10px 9px 12px; }
.cg-root.cg-tall .cg-villain { width: 76px; }
.cg-root.cg-tall .cg-portrait { width: 72px; height: 72px; }
.cg-root.cg-tall .cg-villains.cg-two .cg-villain { width: 60px; }
.cg-root.cg-tall .cg-villains.cg-two .cg-portrait { width: 58px; height: 58px; }
.cg-root.cg-tall .cg-moves { width: 72px; height: 78px; }
.cg-root.cg-tall .cg-moves-n { font-size: 37px; }
.cg-root.cg-tall .cg-goal { width: 56px; height: 62px; }
.cg-root.cg-tall .cg-goal-ic { width: 48px; height: 48px; }
.cg-root.cg-tall .cg-goals[data-n="1"] .cg-goal { width: 66px; height: 72px; }
.cg-root.cg-tall .cg-goals[data-n="1"] .cg-goal-ic { width: 60px; height: 60px; }
.cg-root.cg-tall .cg-boost { width: 80px; height: 68px; }
.cg-root.cg-tall .cg-boost-ic { width: 36px; height: 36px; }
.cg-root.cg-tall .cg-boosters { padding-bottom: 16px; }

/* ---------- pantallas bajas / angostas ---------- */
.cg-root.cg-short .cg-hud { gap: 4px; padding-top: 6px; }
.cg-root.cg-short .cg-topbar { min-height: 34px; }
.cg-root.cg-short .cg-pause { width: 34px; height: 34px; }
.cg-root.cg-short .cg-lvl { font-size: 18px; }
.cg-root.cg-short .cg-card { min-height: 74px; padding: 5px 7px 5px 9px; }
.cg-root.cg-short .cg-portrait { width: 54px; height: 54px; }
.cg-root.cg-short .cg-villain { width: 58px; }
.cg-root.cg-short .cg-moves { width: 58px; height: 60px; }
.cg-root.cg-short .cg-moves-n { font-size: 28px; }
.cg-root.cg-short .cg-boosters { padding: 4px 10px 8px; }
.cg-root.cg-short .cg-boost { width: 68px; height: 54px; border-radius: 15px; }
.cg-root.cg-short .cg-boost-ic { width: 27px; height: 27px; }
.cg-root.cg-narrow .cg-card { gap: 5px; }
.cg-root.cg-narrow .cg-goal { width: 44px; }
.cg-root.cg-narrow .cg-goal-ic { width: 36px; height: 36px; }
.cg-root.cg-narrow .cg-score { min-width: 64px; font-size: 15px; }
.cg-root.cg-narrow .cg-ticket .cg-goal { width: 34px; }
.cg-root.cg-narrow .cg-ticket .cg-goal-ic { width: 29px; height: 29px; }
.cg-root.cg-narrow .cg-ticket-title { font-size: 14px; }

/* ---------- pantalla ancha (≥900 px, horizontal): HUD a la izquierda, ayudas a la derecha ---------- */
.cg-root.cg-wide {
  grid-template-areas: "hud stage boost";
  grid-template-columns: minmax(250px, 300px) minmax(0, 1fr) 128px;
  grid-template-rows: minmax(0, 1fr);
}
.cg-wide .cg-hud { justify-content: center; gap: 14px; padding: 18px 0 18px 18px; }
.cg-wide .cg-topbar { flex-wrap: wrap; }
.cg-wide .cg-card { flex-direction: column; align-items: stretch; gap: 14px; padding: 14px 12px; }
.cg-wide .cg-villains { justify-content: center; gap: 6px; }
.cg-wide .cg-villain, .cg-wide .cg-villains.cg-two .cg-villain { width: 118px; }
.cg-wide .cg-portrait { width: 112px; height: 112px; border-width: 4px; }
.cg-wide .cg-villains.cg-two .cg-portrait { width: 88px; height: 88px; }
.cg-wide .cg-vname { font-size: 14px; margin-top: -12px; }
.cg-wide .cg-villains.cg-two .cg-vname { font-size: 12px; }
.cg-wide .cg-badges { right: -2px; }
.cg-wide .cg-badge { font-size: 17px; }
.cg-wide .cg-badge-ic svg { width: 18px; height: 18px; }
.cg-wide .cg-moves { order: 1; width: auto; height: auto; flex-direction: row; gap: 10px; padding: 8px 12px; }
.cg-wide .cg-moves-n { font-size: 46px; }
.cg-wide .cg-moves-l { font-size: 14px; }
.cg-wide .cg-goals { order: 2; flex-wrap: wrap; gap: 10px; }
/* la meta es lo más importante de la tarjeta: íconos al menos del alto del contador de movimientos */
.cg-root.cg-wide .cg-goals .cg-goal { width: 80px; height: 90px; }
.cg-root.cg-wide .cg-goals .cg-goal-ic { width: 72px; height: 72px; }
.cg-root.cg-wide .cg-goals[data-n="1"] .cg-goal { width: 96px; height: 104px; }
.cg-root.cg-wide .cg-goals[data-n="1"] .cg-goal-ic { width: 86px; height: 86px; }
.cg-root.cg-wide .cg-goals .cg-goal.cg-multi { width: auto; }
.cg-root.cg-wide .cg-goals .cg-goal.cg-multi .cg-goal-ic { width: auto; }
.cg-wide .cg-face { width: 58px; height: 58px; }
.cg-wide .cg-face + .cg-face { margin-left: -14px; }
.cg-wide .cg-goal-n { font-size: 20px; line-height: 24px; min-width: 38px; margin-top: -11px; }
.cg-root.cg-wide .cg-ticket .cg-goal { width: 72px; height: 82px; }
.cg-root.cg-wide .cg-ticket .cg-goal-ic { width: 68px; height: 68px; }
.cg-wide .cg-ticket-title { font-size: 20px; }
.cg-wide .cg-boosters { flex-direction: column; gap: 22px; padding: 18px 18px 18px 0; }
.cg-wide .cg-boost { width: 96px; height: 86px; border-radius: 22px; }
.cg-wide .cg-boost-ic { width: 44px; height: 44px; }
.cg-wide .cg-boost-name { font-size: 13px; }

/* ancho pero bajo (teléfono acostado, ventanas bajas) */
.cg-root.cg-wide.cg-short { grid-template-columns: minmax(200px, 250px) minmax(0, 1fr) 100px; }
.cg-wide.cg-short .cg-hud { gap: 8px; padding: 10px 0 10px 10px; }
.cg-wide.cg-short .cg-card { gap: 8px; padding: 8px; }
.cg-wide.cg-short .cg-villain, .cg-wide.cg-short .cg-villains.cg-two .cg-villain { width: 76px; }
.cg-wide.cg-short .cg-portrait { width: 66px; height: 66px; border-width: 3px; }
.cg-wide.cg-short .cg-villains.cg-two .cg-portrait { width: 56px; height: 56px; }
.cg-wide.cg-short .cg-vname { font-size: 11px; margin-top: -9px; }
.cg-wide.cg-short .cg-moves { width: auto; height: auto; padding: 4px 10px; }
.cg-wide.cg-short .cg-moves-n { font-size: 34px; }
.cg-root.cg-wide.cg-short .cg-goals .cg-goal { width: 60px; height: 66px; }
.cg-root.cg-wide.cg-short .cg-goals .cg-goal-ic { width: 54px; height: 54px; }
.cg-root.cg-wide.cg-short .cg-goals[data-n="1"] .cg-goal { width: 64px; height: 70px; }
.cg-root.cg-wide.cg-short .cg-goals[data-n="1"] .cg-goal-ic { width: 58px; height: 58px; }
.cg-wide.cg-short .cg-face { width: 42px; height: 42px; }
.cg-wide.cg-short .cg-goal-n { font-size: 16px; line-height: 19px; min-width: 30px; margin-top: -9px; }
.cg-root.cg-wide.cg-short .cg-ticket .cg-goal { width: 44px; height: 52px; }
.cg-root.cg-wide.cg-short .cg-ticket .cg-goal-ic { width: 40px; height: 40px; }
.cg-wide.cg-short .cg-boosters { gap: 12px; padding: 10px 10px 10px 0; }
.cg-wide.cg-short .cg-boost { width: 78px; height: 64px; border-radius: 18px; }
.cg-wide.cg-short .cg-boost-ic { width: 32px; height: 32px; }

/* acostado y angosto (568x320, 667x375): el tablero se queda con el alto completo y el HUD con lo que sobra */
.cg-root.cg-wide.cg-tiny {
  grid-template-columns: minmax(168px, 1fr) minmax(0, calc(100vh + 16px)) auto;
  grid-template-columns: minmax(168px, 1fr) minmax(0, calc(100dvh + 16px)) auto;
}
.cg-wide.cg-tiny .cg-hud { gap: 6px; padding: 6px 0 6px 8px; }
.cg-wide.cg-tiny .cg-topbar { gap: 4px 6px; }
.cg-wide.cg-tiny .cg-score { flex: 1 0 100%; padding: 3px 8px 2px; font-size: 15px; }
.cg-wide.cg-tiny .cg-card { gap: 6px; padding: 6px; }
.cg-wide.cg-tiny .cg-villain, .cg-wide.cg-tiny .cg-villains.cg-two .cg-villain { width: 70px; }
.cg-wide.cg-tiny .cg-portrait, .cg-wide.cg-tiny .cg-villains.cg-two .cg-portrait { width: 54px; height: 54px; }
.cg-wide.cg-tiny .cg-moves-n { font-size: 28px; }
.cg-root.cg-wide.cg-tiny .cg-goals .cg-goal, .cg-root.cg-wide.cg-tiny .cg-goals[data-n="1"] .cg-goal { width: 52px; height: 58px; }
.cg-root.cg-wide.cg-tiny .cg-goals .cg-goal-ic, .cg-root.cg-wide.cg-tiny .cg-goals[data-n="1"] .cg-goal-ic { width: 46px; height: 46px; }
.cg-wide.cg-tiny .cg-boosters { gap: 10px; padding: 8px 8px 8px 0; }
.cg-wide.cg-tiny .cg-boost { width: 68px; height: 56px; border-radius: 16px; }
.cg-wide.cg-tiny .cg-boost-ic { width: 28px; height: 28px; }
.cg-wide.cg-tiny .cg-boost-name { font-size: 11px; }

/* ---------- animaciones ---------- */
@keyframes cg-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes cg-pulse-red {
  0%, 100% { transform: scale(1); box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.5), 0 3px 0 #2b1630, 0 0 0 0 rgba(214, 31, 75, 0.6); }
  50% { transform: scale(1.07); box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.5), 0 3px 0 #2b1630, 0 0 0 7px rgba(214, 31, 75, 0); }
}
@keyframes cg-bump { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }
@keyframes cg-pop-in { 0% { opacity: 0; transform: scale(0.6); } 100% { opacity: 1; transform: scale(1); } }
/* los avisos se centran con translate: su entrada lo conserva (si no, quedaban corridos a la derecha y cortados) */
@keyframes cg-toast-in { 0% { opacity: 0; transform: translate(-50%, -100%) scale(0.6); } 100% { opacity: 1; transform: translate(-50%, -100%) scale(1); } }
@keyframes cg-hit { 0%, 100% { transform: translateX(0) scale(1); } 20% { transform: translateX(-3px) scale(1.12); } 45% { transform: translateX(3px) scale(1.08); } 70% { transform: translateX(-2px) scale(1.03); } }
@keyframes cg-hit-n { 0% { transform: scale(1); background: var(--ink, #2b1630); } 30% { transform: scale(1.35); background: var(--cherry, #d61f4b); } 100% { transform: scale(1); background: var(--ink, #2b1630); } }
@keyframes cg-fade-in { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes cg-fade-out { 0% { opacity: 1; } 100% { opacity: 0; } }
@keyframes cg-say-in { 0% { opacity: 0; transform: translateX(calc(-50% + var(--shift, 0px))) scale(0.6); } 100% { opacity: 1; transform: translateX(calc(-50% + var(--shift, 0px))) scale(1); } }
@keyframes cg-banner-in { 0% { opacity: 0; transform: rotate(-3deg) scale(2.2); } 60% { opacity: 1; } 100% { opacity: 1; transform: rotate(-3deg) scale(1); } }
@keyframes cg-banner-in-lose { 0% { opacity: 0; transform: rotate(2deg) scale(2.2); } 60% { opacity: 1; } 100% { opacity: 1; transform: rotate(2deg) scale(1); } }
@keyframes cg-cascade {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.3) rotate(-8deg); }
  25% { opacity: 1; transform: translate(-50%, -50%) scale(1.15) rotate(-4deg); }
  45% { transform: translate(-50%, -50%) scale(1) rotate(-3deg); }
  80% { opacity: 1; transform: translate(-50%, -62%) scale(1) rotate(-3deg); }
  100% { opacity: 0; transform: translate(-50%, -80%) scale(0.9) rotate(-3deg); }
}
@keyframes cg-hop {
  0% { opacity: 0; transform: translateY(0) scale(0.35); }
  35% { opacity: 1; transform: translateY(-85%) scale(1.08); }
  62% { transform: translateY(-38%) scale(0.94, 1.04); }
  80% { transform: translateY(-58%) scale(1.02); }
  100% { opacity: 1; transform: translateY(-50%) scale(1); }
}
@keyframes cg-wobble { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-10deg); } 40% { transform: rotate(9deg); } 60% { transform: rotate(-6deg); } 80% { transform: rotate(4deg); } }
@keyframes cg-zap { 0% { box-shadow: 0 0 0 0 rgba(127, 220, 255, 0.9); } 100% { box-shadow: 0 0 0 16px rgba(127, 220, 255, 0); } }
@keyframes cg-wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
@keyframes cg-no { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@keyframes cg-danger { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
@keyframes cg-hand-swipe {
  0% { opacity: 0; transform: translate(0, 0) scale(1.15); }
  12% { opacity: 1; transform: translate(0, 0) scale(1.15); }
  24% { transform: translate(0, 0) scale(0.92); }
  62% { opacity: 1; transform: translate(var(--dx, 0), var(--dy, 0)) scale(0.92); }
  78% { opacity: 0; transform: translate(var(--dx, 0), var(--dy, 0)) scale(1.1); }
  100% { opacity: 0; transform: translate(var(--dx, 0), var(--dy, 0)) scale(1.1); }
}
@keyframes cg-hand-tap { 0%, 100% { transform: translate(0, 6px) scale(1.05); } 50% { transform: translate(0, -2px) scale(0.92); } }
@keyframes cg-spoon {
  0% { opacity: 0; transform: translateY(-70%) rotate(-50deg) scale(1.3); }
  45% { opacity: 1; transform: translateY(0) rotate(12deg) scale(1); }
  60% { transform: translateY(4%) rotate(6deg) scale(1.05, 0.92); }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-20%) rotate(-10deg) scale(1); }
}
@keyframes cg-squirt { 0% { opacity: 0; transform: translateX(-40%) rotate(-20deg); } 30% { opacity: 1; transform: translateX(0) rotate(0); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateX(10%); } }
@keyframes cg-blender { 0% { opacity: 0; transform: scale(0.3) rotate(0); } 30% { opacity: 1; transform: scale(1.1) rotate(-15deg); } 50% { transform: scale(1) rotate(15deg); } 70% { transform: scale(1.05) rotate(-15deg); } 85% { opacity: 1; } 100% { opacity: 0; transform: scale(0.6) rotate(0); } }

/* ---------- movimiento reducido ---------- */
body.reduced-motion .cg-moves.cg-low,
body.reduced-motion .cg-badge.cg-urgent,
body.reduced-motion .cg-board-wrap.cg-target::before,
body.reduced-motion .cg-root.cg-danger::after,
body.reduced-motion .cg-boost.cg-armed .cg-boost-ic { animation: none; }
body.reduced-motion .cg-cascade { animation-name: cg-fade-out; animation-timing-function: ease-in; }
body.reduced-motion .cg-banner-t, body.reduced-motion .cg-banner-lose .cg-banner-t { animation-name: cg-fade-in; }
body.reduced-motion .cg-goal.cg-hit .cg-goal-ic { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .cg-moves.cg-low, .cg-badge.cg-urgent, .cg-board-wrap.cg-target::before, .cg-root.cg-danger::after, .cg-boost.cg-armed .cg-boost-ic { animation: none; }
  .cg-cascade { animation-name: cg-fade-out; animation-timing-function: ease-in; }
  .cg-banner-t, .cg-banner-lose .cg-banner-t { animation-name: cg-fade-in; }
  .cg-goal.cg-hit .cg-goal-ic { animation: none; }
}
