.card-reward {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
  overflow: auto;
  background: #08040e;
  color: #f4f8ff;
  opacity: 0;
  transition: opacity .18s ease;
}
.card-reward.is-visible { opacity: 1; }
.card-reward__heading { margin-bottom: 20px; text-align: center; }
.card-reward__kicker {
  color: #fff;
  font-family: "pixel-ttf", sans-serif;
  font-size: 22px;
  letter-spacing: 1px;
}
.card-reward__card { align-self: center; width: min(70vw, 310px); max-height: 66vh; }
.card-reward__footer { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.card-reward__footer span {
  color: #fff;
  font-family: "pixel-ttf", sans-serif;
  font-size: 16px;
  letter-spacing: 1px;
}
.card-reward__button {
  margin-top: 10px;
  width: 181px;
  height: 43px;
  border: 0;
  border-radius: 8px;
  background: #84994F;
  color: #fff;
  cursor: pointer;
  font-family: "pixel-ttf", sans-serif;
  font-size: 16px;
  letter-spacing: 1px;
  transition: .2s;
  user-select: none;
}
.card-reward__button:hover {
  background: #6c7e3e;
  transform: scale(1.05);
}
.card-reward__button:disabled { cursor: default; opacity: .65; }
.cb-action {
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  background: #3c7b6f;
  color: #fff;
  cursor: pointer;
  font-family: "pixel-ttf", sans-serif;
  font-size: 13px;
}
.cb-action:hover { background: #31675d; }
.cb-action:disabled { cursor: default; opacity: .45; }

.cb-queue[hidden] { display: none; }
.cb-queue__status { white-space: pre-line; }

.cb-board {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: grid;
  grid-template-rows: minmax(118px, 1fr) minmax(280px, 2.1fr) minmax(118px, 1fr);
  overflow: hidden;
  background: #08040e;
  color: #f4f8ff;
  font-family: "pixel-ttf", sans-serif;
  touch-action: none;
  overscroll-behavior: none;
}
.cb-board[hidden] { display: none; }
.cb-player {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) auto minmax(140px, 1fr);
  align-items: center;
  gap: 18px;
  padding: 12px clamp(16px, 4vw, 54px);
}
.cb-player--opponent { border-bottom: 1px solid #2d2438; }
.cb-player--self { border-top: 1px solid #2d2438; }
.cb-player.is-active { background: rgba(60, 123, 111, .1); }
.cb-player.is-active .cb-player__avatar { animation: cb-active-player 1.1s ease-in-out 2; }
.cb-player__identity { display: flex; align-items: center; gap: 14px; min-width: 0; }
.cb-player--opponent .cb-player__identity { align-self: start; }
.cb-player--self .cb-player__identity { align-self: end; }
.cb-player__avatar { width: 70px; height: 70px; object-fit: contain; image-rendering: pixelated; }
.cb-player__copy { min-width: 0; }
.cb-player__nick { overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.cb-player__lives { margin-top: 7px; color: #ef6e5b; font-family: "Micro 5", sans-serif; font-size: 27px; }
.cb-player__cards { display: flex; justify-content: center; gap: 7px; }
.cb-player__cards .ccard-frame { width: 55px; }
.cb-player__cards .ccard-frame { animation: cb-card-arrive .55s ease-out both; }
.cb-player__cards .ccard-frame:nth-child(2) { animation-delay: .08s; }
.cb-player__cards .ccard-frame:nth-child(3) { animation-delay: .16s; }
.cb-player__cards .ccard { gap: 0; padding: 3px; border-width: 1px; }
.cb-player__cards .ccard__body,
.cb-player__cards .ccard__rarity { display: none; }
.cb-player__cards .ccard__media { height: 100%; aspect-ratio: auto; }
.cb-player__cards .ccard__world { top: 3px; left: 3px; padding: 2px 3px; font-size: 12px; }
.cb-hand { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.cb-item {
  min-height: 34px;
  max-width: 132px;
  padding: 5px 8px;
  border: 1px solid #554866;
  border-radius: 5px;
  background: #170f26;
  color: #f4f8ff;
  font-family: "Micro 5", sans-serif;
  font-size: 17px;
  line-height: .9;
  text-align: center;
}
button.cb-item { cursor: pointer; }
button.cb-item:hover { border-color: #58bca8; }
.cb-item.is-status { border-color: #58bca8; color: #58bca8; }

.cb-arena {
  position: relative;
  display: grid;
  grid-template-columns: minmax(100px, 1fr) minmax(240px, 460px) minmax(100px, 1fr);
  align-items: center;
  gap: 20px;
  padding: 18px clamp(16px, 4vw, 54px);
}
.cb-deck { position: relative; display: grid; min-height: 230px; place-items: center; }
.cb-deck .ccard-frame { width: 142px; }
.cb-deck__count {
  position: absolute;
  right: calc(50% - 87px);
  bottom: 8px;
  z-index: 8;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: #f4f8ff;
  color: #0e071b;
  font-family: "Micro 5", sans-serif;
  font-size: 25px;
}
.cb-center { min-width: 0; text-align: center; }
.cb-phase { color: #77808d; font-family: "Micro 5", sans-serif; font-size: 21px; }
.cb-message { min-height: 38px; margin: 9px 0 14px; font-size: 15px; line-height: 1.25; }
.cb-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.cb-action--secondary { background: #2a213f; }
.cb-action--danger { background: #91454f; }
.cb-action--challenge-start {
  background: #84994F;
  font-size: 16px;
  letter-spacing: 1px;
  border-radius: 8px;
  width: 181px;
  height: 43px;
  transition: .2s;
}
.cb-action--challenge-start:hover:not(:disabled) {
  transition: .2s;
  transform: scale(1.05);
  background: #6c7e3e;
}
.cb-reveal { display: flex; justify-content: center; margin: 8px 0; }
.cb-reveal .ccard-frame { width: min(180px, 38vw); }
.cb-board__leave { position: absolute; top: 12px; right: 12px; z-index: 10; }

@keyframes cb-active-player {
  50% { filter: drop-shadow(0 0 10px #58bca8); transform: translateY(-5px); }
}

@keyframes cb-card-arrive {
  from { opacity: 0; transform: translateY(-18px) rotate(-4deg); }
}

@media (max-width: 760px) {
  .card-reward__footer { flex-direction: column; gap: 8px; }
  .cb-board { grid-template-rows: minmax(92px, auto) minmax(300px, 1fr) minmax(92px, auto); overflow-y: auto; }
  .cb-player { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 8px 10px; }
  .cb-player__identity { gap: 7px; }
  .cb-player__avatar { width: 45px; height: 45px; }
  .cb-player__nick { font-size: 12px; }
  .cb-player__lives { margin-top: 3px; font-size: 20px; }
  .cb-player__cards { display: none; }
  .cb-hand { gap: 4px; }
  .cb-item { min-height: 29px; max-width: 90px; padding: 4px 5px; font-size: 14px; }
  .cb-arena { grid-template-columns: 1fr; gap: 6px; padding: 12px 10px; }
  .cb-deck { min-height: 145px; }
  .cb-deck .ccard-frame { width: 93px; }
  .cb-deck__count { right: calc(50% - 62px); width: 32px; height: 32px; font-size: 21px; }
  .cb-side { display: none; }
  .cb-message { min-height: 30px; margin: 5px 0 9px; font-size: 12px; }
  .cb-action { min-height: 38px; padding: 0 10px; font-size: 11px; }
  .cb-action--challenge-start { width: 181px; height: 43px; font-size: 16px; }
  .cb-board__leave { top: 98px; right: 8px; min-height: 32px; padding: 0 8px; font-size: 10px; }
}

/* ---- 3D battle stage + HUD overlay ---- */
.cb-stage {
  position: fixed;
  inset: 0;
  z-index: 9000;
  overflow: hidden;
  background: radial-gradient(1200px 720px at 50% -140px, #1a1030, #08040e 70%);
  color: #f4f8ff;
  font-family: "pixel-ttf", sans-serif;
  touch-action: none;
  overscroll-behavior: none;
}
.cb-stage[hidden] { display: none; }
.cb-canvas {
  position: absolute;
  inset: 0;
  touch-action: none;
  overscroll-behavior: none;
}
.cb-canvas canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.cb-match-intro {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #0E071B;
  color: #f4f8ff;
  opacity: 0;
  pointer-events: auto;
  transition: opacity .18s ease;
}
.cb-match-intro[hidden] { display: none; }
.cb-match-intro.is-visible { opacity: 1; }
.cb-match-intro__panel {
  width: min(520px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.cb-match-intro__avatar {
  width: 96px;
  height: 96px;
  margin-bottom: 30px;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.cb-match-intro__title {
  color: #84994F;
  font-family: "Micro 5", sans-serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .13em;
}
.cb-match-intro__versus {
  max-width: 100%;
  overflow: hidden;
  color: #60626B;
  font-family: "Micro 5", sans-serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .13em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cb-match-intro__status {
  min-height: 24px;
  margin-top: 8px;
  color: #FFFFFF;
  font-family: "Micro 5", sans-serif;
  font-size: 27px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .13em;
}
.cb-match-intro__status:empty { display: none; }

.cb3d-label {
  position: absolute;
  transform: translate(-50%, -125%);
  color: #f4f8ff;
  font-family: "pixel-ttf", sans-serif;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .9), 0 0 2px rgba(0, 0, 0, .9);
  pointer-events: none;
  z-index: 6;
}
.cb3d-label[hidden] { display: none; }

.cb3d-sticker {
  position: absolute;
  z-index: 7;
  transform: translate(-50%, -100%) scale(var(--cb-sticker-scale, 1));
  transform-origin: 50% calc(100% + 7px);
  pointer-events: none;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45));
}
.cb3d-sticker[hidden] { display: none; }
.cb3d-sticker__body {
  position: relative;
  display: grid;
  min-width: 38px;
  max-width: 148px;
  min-height: 28px;
  place-items: center;
  padding: 7px 10px;
  border: 2px solid #2b1e1a;
  border-radius: 7px;
  background: #f7f2e6;
  color: #2b1e1a;
  font-family: "pixel-ttf", sans-serif;
  font-size: 12px;
  line-height: 1.16;
  text-align: center;
  overflow-wrap: anywhere;
}
.cb3d-sticker__body::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 10px;
  height: 10px;
  border-right: 2px solid #2b1e1a;
  border-bottom: 2px solid #2b1e1a;
  background: #f7f2e6;
  transform: translateX(-50%) rotate(45deg);
}
.cb3d-sticker--sprite .cb3d-sticker__body,
.cb3d-sticker--gif .cb3d-sticker__body {
  padding: 4px;
}
.cb3d-sticker img {
  display: block;
  max-width: 82px;
  max-height: 58px;
  object-fit: contain;
}

.cb-hud { position: absolute; inset: 0; pointer-events: none; }
.cb-hud button { pointer-events: auto; }

/* top-centre informer text */
.cb-hud__informer {
  position: absolute;
  z-index: 7;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: min(92vw, 640px);
  text-align: center;
  font-family: "pixel-ttf", sans-serif;
  font-size: 17px;
  line-height: 1.3;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .85), 0 0 3px rgba(0, 0, 0, .9);
}
.cb-countdown {
  color: #f4f8ff;
  font-family: "Micro 5", sans-serif;
  font-size: 25px;
  white-space: nowrap;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .85), 0 0 8px rgba(244, 248, 255, .18);
}
.cb-countdown.is-danger {
  color: #ef6e5b;
  text-shadow: 0 0 10px rgba(239, 110, 91, .45), 0 2px 10px rgba(0, 0, 0, .85);
}

.cb-effects {
  position: absolute;
  z-index: 9;
  left: max(14px, env(safe-area-inset-left, 0px));
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-wrap: wrap-reverse;
  align-items: flex-end;
  gap: 8px;
  max-width: min(72vw, 420px);
  pointer-events: auto;
}
.cb-effect {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #f6bc57;
  box-shadow: none;
  cursor: help;
  outline: none;
  transform-origin: center;
}
.cb-effect.is-new-arriving {
  animation: cb-effect-arrive-from-player .68s cubic-bezier(.16, .9, .18, 1) both;
  will-change: transform, opacity;
}
.cb-effect__icon {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  font-family: "Micro 5", sans-serif;
  font-size: 19px;
  line-height: 1;
  animation: cb-effect-blink 1.15s ease-in-out infinite;
}
.cb-effect__image {
  display: block;
  width: 46px;
  height: 46px;
  object-fit: contain;
  image-rendering: pixelated;
}
.cb-effect__tooltip {
  position: absolute;
  left: 0;
  bottom: calc(100% + 9px);
  width: min(74vw, 340px);
  padding: 10px 12px;
  border-radius: 5px;
  background: rgba(8, 4, 14, .96);
  color: #f4f8ff;
  font-family: "pixel-ttf", sans-serif;
  font-size: 15px;
  line-height: 1.3;
  opacity: 0;
  transform: none;
  transition: opacity .12s ease;
  pointer-events: none;
  text-align: left;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .85);
}
.cb-effect:hover .cb-effect__tooltip,
.cb-effect:focus-visible .cb-effect__tooltip {
  opacity: 1;
}

/* bottom-centre actions / challenge reveal */
.cb-hud__bottom {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  width: min(92vw, 560px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.cb-hud__bottom--challenge {
  z-index: 5;
  inset: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  min-height: 100%;
  padding: 76px 20px 28px;
  transform: none;
  justify-content: center;
  background: rgba(3, 1, 8, .72);
  pointer-events: auto;
}
.cb-stage.is-challenge-entering .cb-hud__bottom--challenge {
  pointer-events: none;
}
.cb-hud__bottom--challenge .cb-reveal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 0;
}
.cb-hud__bottom--challenge .cb-actions {
  margin-top: 14px;
}
.cb-hud__bottom--challenge .cb-reveal .ccard-frame {
  width: min(74vw, 260px);
}
.cb-hud__bottom--challenge .cb-reveal .ccard-frame.cb-challenge-card__frame--live {
  width: min(82vw, 310px);
}
.cb-hud__bottom--challenge .ccard {
  transition: box-shadow .2s ease, opacity .2s ease;
}
.cb-hud__bottom--challenge .ccard__surface::before,
.cb-hud__bottom--challenge .ccard__surface::after {
  transition: opacity .2s ease;
}
.cb-challenge-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  width: min(82vw, 480px);
}
.cb-challenge-card__frame {
  position: relative;
}
.cb-challenge-card__countdown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 5px;
  background: rgba(8, 4, 14, .72);
  color: #F6BC57;
  font-family: "pixel-ttf", sans-serif;
  font-size: 16px;
  letter-spacing: 1px;
  line-height: 1;
}
.cb-challenge-card__frame.is-effect-wave .ccard {
  animation: cb-card-effect-wave .34s cubic-bezier(.18, .9, .2, 1);
}
.cb-challenge-card__frame.is-effect-wave::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 2px solid rgba(246, 188, 87, .78);
  border-radius: 22px;
  pointer-events: none;
  animation: cb-card-effect-ring .34s ease-out forwards;
}
.cb-challenge-enter {
  position: fixed;
  inset: 0;
  z-index: 10040;
  isolation: isolate;
  overflow: hidden;
  pointer-events: none;
  background: transparent;
}
.cb-challenge-enter__dim {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #150d25;
  opacity: 0;
  will-change: opacity;
}
.cb-challenge-enter__snapshot {
  position: fixed;
  z-index: 0;
  box-sizing: border-box;
  border-radius: 0;
  margin: 0;
  transform-origin: center;
  backface-visibility: hidden;
  contain: strict;
  will-change: transform;
  image-rendering: auto;
}
.cb-effects--card {
  position: static;
  max-width: 100%;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  pointer-events: auto;
}
.cb-effects--card .cb-effect {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}
.cb-effects--card .cb-effect__icon {
  font-size: 15px;
}
.cb-effects--card .cb-effect__image {
  width: 35px;
  height: 35px;
}
.cb-effects--card .cb-effect__tooltip {
  left: 50%;
  bottom: calc(100% + 8px);
  width: min(76vw, 330px);
  font-size: 14px;
  text-align: center;
  transform: translate(-50%, 5px);
  transition: opacity .12s ease, transform .12s ease;
}
.cb-effects--card .cb-effect:hover .cb-effect__tooltip,
.cb-effects--card .cb-effect:focus-visible .cb-effect__tooltip {
  transform: translate(-50%, 0);
}
.cb-effects--card .cb-effect.is-applying {
  z-index: 3;
  animation: cb-card-effect-jump .36s cubic-bezier(.12, .88, .18, 1) both;
}
.cb-hud__bottom--challenge .ccard__stat.is-changing strong {
  animation: cb-card-stat-pop .35s ease-out;
}
.cb-hud__leave {
  position: absolute;
  z-index: 10;
  top: 22px;
  left: 14px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #ef6e5b;
  font-size: 17px;
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .85), 0 0 2px rgba(0, 0, 0, .9);
}
.cb-hud__leave:hover:not(:disabled) {
  background: transparent;
  color: #ef6e5b;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}
.cb-hud__leave:focus-visible {
  background: transparent;
  outline: 1px solid rgba(239, 110, 91, .75);
  outline-offset: 4px;
}
.cb-hud__help {
  position: absolute;
  z-index: 10;
  top: 22px;
  right: 14px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-family: "pixel-ttf", sans-serif;
  font-size: 17px;
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .85);
  transition: opacity .16s ease;
}
.cb-hud__help:hover {
  background: transparent;
  opacity: .86;
}
.cb-hud__help:focus-visible {
  background: transparent;
  outline: 1px solid rgba(246, 188, 87, .8);
  outline-offset: 4px;
}
.cb-help-modal {
  z-index: 10060;
}
.cb-help-modal__box {
  width: min(92vw, 430px);
  max-height: calc(100vh - 32px);
  padding: 32px 28px;
  box-sizing: border-box;
}
.cb-help-modal__scroll {
  max-height: min(58vh, 450px);
  padding-right: 8px;
}
.cb-help-modal__content {
  margin: 0;
}
.cb-help-modal__content .mode-info-subtitle:first-child {
  margin-top: 0;
}
.cb-hud__stickers {
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom, 0px));
  min-height: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  outline: none;
  background: none;
  color: #CEDAF3;
  font-family: "Micro 5", sans-serif;
  font-size: 20px;
  letter-spacing: 1px;
  line-height: normal;
  text-align: left;
  transform: translateX(-50%);
  cursor: pointer;
  user-select: none;
  touch-action: none;
}
.cb-hud__stickers:hover:not(:disabled),
.cb-hud__stickers:focus-visible {
  background: none;
  color: #CEDAF3;
  outline: none;
}

.cb-sticker-wheel {
  position: fixed;
  inset: 0;
  z-index: 9200;
  pointer-events: auto;
}
.cb-sticker-wheel[hidden] { display: none; }
.cb-sticker-wheel__canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

@keyframes cb-effect-blink {
  0%, 100% { opacity: .72; }
  50% { opacity: 1; }
}

@keyframes cb-effect-arrive-from-player {
  0% {
    opacity: 0;
    transform: translate(var(--cb-effect-enter-x, 0px), var(--cb-effect-enter-y, 0px)) scale(.32) rotate(-10deg);
    filter: brightness(1.35);
  }
  58% {
    opacity: 1;
    transform: translate(
      calc(var(--cb-effect-enter-x, 0px) * .2),
      calc(var(--cb-effect-enter-y, 0px) * .2 - 16px)
    ) scale(1.18) rotate(4deg);
    filter: brightness(1.25);
  }
  72% {
    transform: translate(0, 0) scale(.9) rotate(-2deg);
  }
  82% {
    transform: translate(5px, -2px) scale(1.1) rotate(1.6deg);
  }
  92% {
    transform: translate(-3px, 1px) scale(.98) rotate(-.8deg);
  }
  100% {
    opacity: 1;
    transform: translate(0, 0) scale(1) rotate(0);
    filter: none;
  }
}

@keyframes cb-card-effect-jump {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  38% {
    opacity: 1;
    transform: translate(
      calc(var(--cb-effect-fly-x, 0px) * .42),
      calc(var(--cb-effect-fly-y, -120px) * .42 - 30px)
    ) scale(1.18);
  }
  82% {
    opacity: 1;
    transform: translate(var(--cb-effect-fly-x, 0px), var(--cb-effect-fly-y, -120px)) scale(.64);
  }
  100% {
    opacity: .32;
    transform: translate(var(--cb-effect-fly-x, 0px), var(--cb-effect-fly-y, -120px)) scale(.48);
  }
}

@keyframes cb-card-effect-wave {
  0%, 100% { transform: translate(0, 0) rotate(0) scale(1); }
  14% { transform: translate(-4px, -1px) rotate(-1.4deg) scale(1.045); }
  28% { transform: translate(5px, 1px) rotate(1.35deg) scale(1.085); }
  44% { transform: translate(-4px, 0) rotate(-1deg) scale(1.06); }
  62% { transform: translate(3px, 0) rotate(.7deg) scale(1.035); }
  80% { transform: translate(-1px, 0) rotate(-.35deg) scale(1.012); }
}

@keyframes cb-card-effect-ring {
  0% { opacity: .95; transform: scale(.96); }
  100% { opacity: 0; transform: scale(1.2); }
}

@keyframes cb-card-stat-pop {
  0% { color: #f6bc57; transform: scale(.86); }
  70% { color: #f4f8ff; transform: scale(1.14); }
  100% { transform: scale(1); }
}

@media (max-width: 760px) {
  .cb-match-intro { padding: 18px 12px; }
  .cb-match-intro__panel { gap: 12px; }
  .cb-hud__informer { top: 14px; font-size: 13px; }
  .cb-hud__bottom { bottom: 18px; gap: 8px; }
  .cb-effects { left: 10px; bottom: 12px; gap: 6px; }
  .cb-effect { width: 36px; height: 36px; border-radius: 6px; }
  .cb-effect__icon { font-size: 17px; }
  .cb-effect__image { width: 40px; height: 40px; }
  .cb-effect__tooltip { width: min(88vw, 310px); font-size: 13px; }
  .cb-hud__bottom--challenge { bottom: 0; gap: 10px; padding: 58px 12px 20px; }
  .cb-hud__bottom--challenge .cb-reveal .ccard-frame { width: min(72vw, 240px); }
  .cb-challenge-card { gap: 7px; }
  .cb-effects--card { gap: 6px; }
  .cb-effects--card .cb-effect { width: 29px; height: 29px; }
  .cb-effects--card .cb-effect__icon { font-size: 14px; }
  .cb-effects--card .cb-effect__image { width: 33px; height: 33px; }
  .cb-hud__leave { top: 14px; left: 10px; font-size: 13px; }
  .cb-hud__help {
    top: 14px;
    right: 10px;
    font-size: 13px;
  }
  .cb-help-modal__box {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    padding: 26px 20px;
  }
  .cb-help-modal__scroll {
    max-height: min(62vh, 460px);
  }
  .cb-hud__stickers { bottom: max(12px, env(safe-area-inset-bottom, 0px)); font-size: 20px; }
  .cb3d-sticker__body { max-width: 118px; padding: 6px 8px; font-size: 10px; }
  .cb3d-sticker img { max-width: 64px; max-height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .card-reward,
  .cb-player.is-active .cb-player__avatar,
  .cb-player__cards .ccard-frame,
  .cb-effect__icon,
  .cb-effect.is-new-arriving,
  .cb-effects--card .cb-effect.is-applying,
  .cb-challenge-card__frame.is-effect-wave .ccard,
  .cb-challenge-card__frame.is-effect-wave::after,
  .cb-hud__bottom--challenge .ccard__stat.is-changing strong {
    animation: none;
    transition: none;
  }
}
