/* ===============================================================
   profile-mvp.css  - MVP-only overrides for profile.html
   profile-full.html is NOT affected: shared V2 CSS untouched.
=============================================================== */

/* --- Hide elements not used in MVP --------------------------- */
.cmg-card-actions,
.cmg-customizer-dock,
.cmg-customizer-sheet,
.cmg-panel--moments,
#trainingSim,
.cmg-panel--featured {
  display: none !important;
}

/* --- TASK 6: Profile style CSS variables --------------------- */
/* Default: Ice */
.cmg-command {
  --mvp-accent:       #d7dee8;
  --mvp-accent-soft:  rgba(141, 232, 255, 0.24);
  --mvp-accent-glow:  rgba(215,222,232,0.20);
  --mvp-gold-soft:    rgba(244, 200, 106, 0.14);
  --mvp-card-start:   rgba(7, 29, 43, 0.98);
  --mvp-card-end:     rgba(11, 24, 43, 0.98);
  --mvp-border:       color-mix(in srgb, var(--mvp-accent), white 36%);
  --mvp-btn-accent:   linear-gradient(135deg, rgba(141,232,255,0.22), rgba(54,169,255,0.12));
  --mvp-stat-accent:  rgba(141, 232, 255, 0.18);
}

/* Gold */
.cmg-command[data-profile-style="gold"] {
  --mvp-accent:       #f4c86a;
  --mvp-accent-soft:  rgba(244, 200, 106, 0.24);
  --mvp-accent-glow:  rgba(244, 200, 106, 0.22);
  --mvp-gold-soft:    rgba(255, 244, 194, 0.18);
  --mvp-card-start:   rgba(38, 27, 10, 0.98);
  --mvp-card-end:     rgba(24, 19, 26, 0.98);
  --mvp-border:       color-mix(in srgb, var(--mvp-accent), white 36%);
  --mvp-btn-accent:   linear-gradient(135deg, rgba(244,200,106,0.24), rgba(200,140,40,0.14));
  --mvp-stat-accent:  rgba(244, 200, 106, 0.18);
}

/* Blackout */
.cmg-command[data-profile-style="blackout"] {
  --mvp-accent:       #d5dde8;
  --mvp-accent-soft:  rgba(255, 255, 255, 0.16);
  --mvp-accent-glow:  rgba(213,221,232,0.24);
  --mvp-gold-soft:    rgba(244, 200, 106, 0.10);
  --mvp-card-start:   rgba(8, 9, 11, 0.98);
  --mvp-card-end:     rgba(0, 0, 0, 0.98);
  --mvp-border:       rgba(255, 255, 255, 0.58);
  --mvp-btn-accent:   linear-gradient(135deg, rgba(255,255,255,0.18), rgba(120,120,120,0.10));
  --mvp-stat-accent:  rgba(255, 255, 255, 0.12);
}

/* --- MVP top hierarchy: quiet product intro + ownership rail --- */
.cmg-intro {
  margin: 10px auto 5px;
  padding: 10px 18px 2px;
}

.cmg-intro h1 {
  font-size: clamp(26px, 3.4vw, 40px);
}

.cmg-intro .cmg-profile-tagline {
  display: block;
  max-width: 620px;
  margin: 9px auto 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(218,228,242,0.76);
  font-family: inherit;
  font-size: clamp(15px, 1.45vw, 18px);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.45;
  text-shadow: 0 0 20px rgba(141,232,255,0.08);
}

.cmg-reward-strip {
  display: flex;
  justify-content: center;
  width: min(520px, calc(100% - 32px));
  margin: 2px auto 8px;
}

.cmg-free-hook {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 26px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(223,232,244,0.72);
  cursor: default;
  pointer-events: none;
  text-transform: uppercase;
  transform: none;
}

.cmg-free-hook:hover {
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

.cmg-free-hook span,
.cmg-free-hook strong {
  color: inherit;
  font-family: var(--cmg-font-head);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1;
}

.cmg-free-hook span::after {
  content: "•";
  margin-left: 8px;
  color: rgba(244,248,255,0.34);
}

.cmg-free-hook strong {
  text-transform: uppercase;
}

.cmg-mobile-buy-cta {
  display: none;
}

.cmg-command__shell {
  margin-top: 4px;
}

/* --- Premium player card ------------------------------------- */
.cmg-card {
  --player-render-width: min(350px, 92%);
  --player-render-height: 364px;
  --player-render-top: 7.4%;
  --player-render-scale: 1.08;
  border: 1px solid var(--mvp-border);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 30%, var(--mvp-accent-soft), transparent 30%),
    radial-gradient(circle at 22% 12%, rgba(255,255,255,0.28), transparent 18%),
    radial-gradient(circle at 86% 2%,  var(--mvp-gold-soft),   transparent 22%),
    linear-gradient(150deg, var(--mvp-card-start), rgba(4,13,25,0.98) 52%, var(--mvp-card-end)),
    repeating-linear-gradient(112deg, rgba(255,255,255,0.055) 0 1px, transparent 1px 18px);
  box-shadow:
    0 34px 92px rgba(0,0,0,0.56),
    0 0 0 1px rgba(255,255,255,0.08),
    0 0 44px var(--mvp-accent-glow),
    0 0 76px rgba(54,169,255,0.16),
    0 0 24px var(--mvp-gold-soft),
    inset 0 1px 0 rgba(255,255,255,0.34),
    inset 0 0 0 2px rgba(255,255,255,0.06),
    inset 0 -42px 72px rgba(0,0,0,0.38);
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
  transition:
    transform 260ms ease,
    box-shadow 0.5s ease,
    border-color 0.5s ease;
}

@media (hover: hover) and (pointer: fine) and (min-width: 981px) {
  .cmg-card {
    --mvp-card-tilt-x: 0deg;
    --mvp-card-tilt-y: 0deg;
  }

  .cmg-card:not(.is-direct-card-focus):hover {
    transform:
      perspective(1000px)
      rotateX(var(--mvp-card-tilt-x))
      rotateY(var(--mvp-card-tilt-y))
      translateY(-3px)
      scale(1.004);
    box-shadow:
      0 38px 100px rgba(0,0,0,0.60),
      0 0 0 1px rgba(255,255,255,0.10),
      0 0 50px var(--mvp-accent-glow),
      0 0 82px rgba(54,169,255,0.18),
      0 0 30px var(--mvp-gold-soft),
      inset 0 1px 0 rgba(255,255,255,0.36),
      inset 0 0 0 2px rgba(255,255,255,0.07),
      inset 0 -42px 72px rgba(0,0,0,0.38);
  }

  .cmg-card:not(.is-direct-card-focus):hover .cmg-card__shine {
    opacity: 0.66;
    transform: translate3d(3px, -3px, 0);
  }
}

.cmg-card::before {
  inset: 7px;
  z-index: 1;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 19px;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.34), transparent 20% 76%, var(--mvp-gold-soft)),
    linear-gradient(90deg, rgba(255,255,255,0.30), transparent 16% 84%, rgba(255,255,255,0.12)) top / 100% 1px no-repeat,
    linear-gradient(180deg, rgba(255,255,255,0.18), transparent 24% 72%, rgba(0,0,0,0.24)) right / 1px 100% no-repeat,
    linear-gradient(90deg, var(--mvp-accent-soft), transparent 18% 80%, var(--mvp-gold-soft)) bottom / 100% 1px no-repeat;
  opacity: 1;
}

.cmg-card::after {
  inset: 14px;
  border-color: rgba(255,255,255,0.18);
  border-radius: 15px;
  background:
    radial-gradient(circle at 3% 5%,   rgba(255,255,255,0.22), transparent 9%),
    radial-gradient(circle at 96% 11%,  var(--mvp-accent-soft),  transparent 10%),
    radial-gradient(circle at 94% 94%,  var(--mvp-gold-soft),    transparent 12%),
    linear-gradient(135deg, rgba(255,255,255,0.18), transparent 18% 76%, var(--mvp-accent-soft)),
    repeating-linear-gradient(55deg, transparent 0 30px, rgba(255,255,255,0.03) 31px 32px, transparent 33px 62px);
  opacity: 0.72;
  transition: opacity 0.5s ease;
}

/* --- TASK 8: Mobile hologram - GPU-optimised ----------------- */
.cmg-card__grid {
  opacity: 0.42;
  background-image:
    radial-gradient(circle at 7%  8%,  rgba(255,255,255,0.28), transparent 7%),
    radial-gradient(circle at 90% 8%,  var(--mvp-accent-soft), transparent 9%),
    radial-gradient(circle at 11% 92%, var(--mvp-accent-soft), transparent 10%),
    radial-gradient(circle at 90% 92%, var(--mvp-gold-soft),   transparent 9%),
    linear-gradient(120deg, transparent 0 38%, rgba(255,255,255,0.045) 45%, transparent 54%),
    linear-gradient(color-mix(in srgb, var(--mvp-accent), transparent 94%) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--mvp-accent), transparent 95%) 1px, transparent 1px);
  background-size: auto, auto, auto, auto, auto, 34px 34px, 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.62), #000 16%, #000 82%, rgba(0,0,0,0.58));
  /* Reduced paint cost: no transform on grid, animate only shine layer */
  will-change: auto;
}

/* Foil sweep - lower GPU cost: opacity-only animation, no translate */
.cmg-card__shine {
  background:
    linear-gradient(112deg, transparent 30%, rgba(255,255,255,0.08) 37%, rgba(235,249,255,0.30) 45%, var(--mvp-accent-soft) 52%, transparent 62%),
    radial-gradient(circle at 22% 20%, rgba(255,255,255,0.16), transparent 18%),
    repeating-linear-gradient(34deg, transparent 0 20px, color-mix(in srgb, var(--mvp-accent), transparent 96%) 21px 22px, transparent 23px 44px);
  opacity: 0.58;
  animation-duration: 14s; /* slower = less GPU churn */
  will-change: opacity;
  transition: opacity 260ms ease, transform 360ms ease;
}

.cmg-card__rank {
  display: none !important;
}

.cmg-card__highlight-count {
  position: absolute;
  top: 30px;
  left: 34px;
  z-index: 9;
  width: 108px;
  height: 118px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  clip-path: polygon(
    50% 0%,
    86% 12%,
    96% 42%,
    88% 78%,
    50% 100%,
    12% 78%,
    4% 42%,
    14% 12%
  );
  background:
    linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0.02)),
    linear-gradient(145deg, rgba(92,106,126,0.92), rgba(22,28,39,0.98));
  border: 1px solid rgba(255,255,255,0.20);
  box-shadow:
    0 20px 34px rgba(0,0,0,0.42),
    0 0 26px rgba(255,255,255,0.08),
    inset 0 2px 0 rgba(255,255,255,0.34),
    inset 0 -14px 20px rgba(0,0,0,0.38);
  overflow: hidden;
}

@keyframes cmgBadgeSweep {
  0%, 72%, 100% {
    transform: translateX(0) rotate(24deg);
    opacity: 0;
  }
  78% {
    opacity: 1;
  }
  90% {
    transform: translateX(230px) rotate(24deg);
    opacity: 0.9;
  }
}

.cmg-card__highlight-count::before {
  content: "";
  position: absolute;
  inset: 4px;

  clip-path: inherit;

  background:
    linear-gradient(135deg, rgba(255,255,255,0.12), transparent 38%),
    linear-gradient(180deg, rgba(28,34,45,0.18), rgba(6,8,12,0.56));

  border: 1px solid rgba(255,255,255,0.08);
}

.cmg-card__highlight-count::after {
  content: "";
  position: absolute;
  top: -30%;
  left: -50%;
  width: 52%;
  height: 160%;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255,255,255,0.22),
      transparent
    );

  transform: rotate(22deg);
  animation: cmgBadgeSweep 11s linear infinite;
}

.cmg-card__highlight-count strong {
  position: relative;
  z-index: 2;
  display: block;
  font-family: var(--cmg-font-head);
  font-size: 42px;
  line-height: 0.86;
  letter-spacing: -0.055em;
  color: #f9fbff;

  text-shadow:
    0 2px 0 rgba(0,0,0,0.34),
    0 0 14px rgba(255,255,255,0.08);
}

.cmg-card__highlight-count span {
  position: relative;
  z-index: 2;
  margin-top: 9px;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  color: rgba(236,243,252,0.92);
}

.cmg-card__edition {
  position: absolute;
  top: 36px;
  right: 30px;
  z-index: 8;
  overflow: hidden;

  padding: 11px 15px;
  border-radius: 14px;

  border: 1px solid rgba(255,255,255,0.16);

  background:
    linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.02)),
    linear-gradient(145deg, rgba(30,36,48,0.94), rgba(8,10,15,0.98));

  box-shadow:
    0 14px 22px rgba(0,0,0,0.32),
    inset 0 1px 0 rgba(255,255,255,0.16);

  color: rgba(244,248,255,0.92);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.15em;
  line-height: 1;
  text-transform: uppercase;
}

.cmg-card__edition::after {
  content: "";
  position: absolute;
  top: -60%;
  bottom: -60%;
  left: -80%;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.34), transparent);
  opacity: 0;
  transform: rotate(18deg);
  pointer-events: none;
  animation: cmgEditionShimmer 9.4s ease-in-out infinite;
}

@keyframes cmgEditionShimmer {
  0%, 72%, 100% {
    left: -80%;
    opacity: 0;
  }
  78% {
    opacity: 0.24;
  }
  90% {
    left: 130%;
    opacity: 0;
  }
}

.cmg-card__level {
  top: 25px;
  right: 25px;
  color: color-mix(in srgb, var(--mvp-accent), white 62%);
}
.cmg-card__level span   { color: rgba(236,255,228,0.86); font-size: 11px; letter-spacing: 0; }
.cmg-card__level strong {
  font-size: clamp(50px, 7.4vw, 70px);
  letter-spacing: 0;
  text-shadow: 0 0 18px var(--mvp-accent-glow), 0 0 8px rgba(244,200,106,0.18), 0 4px 20px rgba(0,0,0,0.42);
}

.cmg-player-render { animation-duration: 5.8s; }
.cmg-player-render::before {
  top: 4%; width: 86%; height: 88%;
  background:
    radial-gradient(ellipse at 50% 38%, rgba(232,248,255,0.24), transparent 34%),
    radial-gradient(ellipse at 42% 45%, var(--mvp-accent-soft), transparent 58%),
    radial-gradient(ellipse at 64% 44%, var(--mvp-gold-soft),   transparent 62%);
  filter: blur(14px);
  opacity: 0.9;
  transform: translateX(-50%) translateZ(2px);
  transition: background 0.5s;
}

.cmg-player-render__shadow {
  left: 46%; bottom: 20px; width: 142px; height: 18px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.46) 0 10%, rgba(0,0,0,0.22) 32%, transparent 72%);
  filter: blur(2px); opacity: 0.72;
  transform: translateX(-50%) rotate(-4deg);
  animation: none;
}

.cmg-player-render__image {
  filter:
    contrast(1.08) saturate(1.02) brightness(1.03)
    drop-shadow(0 22px 22px rgba(0,0,0,0.52))
    drop-shadow(-10px 4px 18px rgba(232,248,255,0.14))
    drop-shadow(12px 0 20px var(--mvp-accent-glow));
}

.cmg-player-render__tint,
.cmg-player-render__detail,
.cmg-player-render__helmet-extra { display: none; }

.cmg-card__identity {
  bottom: 104px;
  padding-right: 10px;
}
.cmg-card__identity h1 {
  max-width: 100%;
  color: #fff;
  font-size: clamp(34px, 4vw, 42px);
  line-height: 0.95;
  overflow-wrap: anywhere;
  word-break: normal;
  text-wrap: balance;
  text-transform: uppercase;
  letter-spacing: -0.045em;
  text-shadow:
    0 4px 18px rgba(0,0,0,0.68),
    0 0 14px rgba(255,255,255,0.05);
}

.cmg-card__name--handle {
  font-size: clamp(18px, 2.5vw, 24px) !important;
  letter-spacing: -0.015em !important;
}

.cmg-card__identity h1.cmg-name--long {
  font-size: clamp(27px, 3.35vw, 36px);
  line-height: 1.02;
}

.cmg-card__identity h1.cmg-name--xlong {
  font-size: clamp(22px, 2.8vw, 30px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.cmg-card__identity p {
  width: fit-content;
  max-width: 100%;
  margin-top: 9px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: color-mix(in srgb, var(--mvp-accent), white 54%);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
  text-shadow: 0 0 14px var(--mvp-accent-glow);
}

.cmg-card__xp {
  left: 24px;
  right: 24px;
  bottom: 25px;
  min-height: 56px;
  padding: 12px 13px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.10), color-mix(in srgb, var(--mvp-accent), transparent 92%)),
    rgba(3,9,22,0.58);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 14px 24px rgba(0,0,0,0.22);
  transition: background 0.5s;
}

.cmg-card__xp-top {
  display: grid;
  gap: 3px;
  align-items: start;
}

.cmg-card__xp-top span {
  color: rgba(214,223,236,0.72);
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.cmg-card__xp-top strong {
  color: #fff;
  font-family: var(--cmg-font-head);
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cmg-card .cmg-energy-bar {
  display: none !important;
}

/* --- MVP Card Finish rail: tight light-bridge integrated controls --- */
.cmg-hero {
  gap: 6px;
}

.cmg-profile-style {
  position: relative;
  z-index: 14;
  display: grid;
  width: min(390px, calc(100% - 30px));
  margin: 0 auto 0;
  gap: 5px;
  padding: 11px 0 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* Focused reflected light bridge from card to finish controls. */
.cmg-profile-style::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: -22px;
  height: 34px;
  z-index: -1;
  border-radius: 999px;
  background:
    radial-gradient(ellipse 78% 28% at 50% 40%, color-mix(in srgb, var(--mvp-accent), white 24%) 0%, transparent 62%),
    linear-gradient(90deg, transparent 0%, var(--mvp-accent-glow) 16%, rgba(255,255,255,0.20) 50%, var(--mvp-accent-glow) 84%, transparent 100%);
  filter: blur(8.5px) saturate(1.04);
  opacity: 0.76;
  pointer-events: none;
  transform: translateZ(0);
  animation: cmgFinishBridgeBreathe 9s ease-in-out infinite;
}

/* Tiny reflected seam under the bridge; no full dashboard line. */
.cmg-profile-style::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  top: 6px;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--mvp-accent), white 24%), transparent);
  opacity: 0.30;
  pointer-events: none;
}

.cmg-command[data-profile-style="gold"] .cmg-profile-style::before {
  left: 10%;
  right: 10%;
  opacity: 0.61;
  filter: blur(8.5px) saturate(0.92);
  background:
    radial-gradient(ellipse 76% 26% at 50% 40%, rgba(255,232,174,0.39) 0%, transparent 62%),
    linear-gradient(90deg, transparent 0%, rgba(244,200,106,0.16) 20%, rgba(255,255,255,0.15) 50%, rgba(244,200,106,0.16) 80%, transparent 100%);
}

.cmg-command[data-profile-style="blackout"] .cmg-profile-style::before {
  opacity: 0.70;
  filter: blur(8.5px) saturate(0.90);
  background:
    radial-gradient(ellipse 78% 28% at 50% 40%, rgba(248,251,255,0.36) 0%, transparent 62%),
    linear-gradient(90deg, transparent 0%, rgba(213,221,232,0.20) 18%, rgba(255,255,255,0.20) 50%, rgba(213,221,232,0.20) 82%, transparent 100%);
}

@keyframes cmgFinishBridgeBreathe {
  0%, 100% {
    opacity: 0.58;
    transform: translateY(0) scaleX(0.98);
  }
  50% {
    opacity: 0.80;
    transform: translateY(-1px) scaleX(1.04);
  }
}

.cmg-profile-style__head,
.cmg-profile-style__options {
  position: relative;
  z-index: 1;
}

.cmg-profile-style__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 23px;
  padding: 0 2px;
}

.cmg-profile-style__head > span {
  color: rgba(229,237,247,0.68);
  font-family: var(--cmg-font-head);
  font-size: 9px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  white-space: nowrap;
  text-shadow: 0 0 14px rgba(255,255,255,0.06);
}

.cmg-profile-style__options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.cmg-profile-style__options button {
  position: relative;
  min-height: 34px;
  padding: 0 10px;
  overflow: hidden;
  border: 1px solid rgba(226,232,240,0.20);
  border-radius: 11px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.072), rgba(255,255,255,0.018)),
    linear-gradient(135deg, rgba(20,29,43,0.78), rgba(4,10,20,0.68));
  color: rgba(219,229,242,0.76);
  cursor: pointer;
  font-family: var(--cmg-font-head);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  box-shadow:
    0 6px 14px rgba(0,0,0,0.12),
    inset 0 1px 0 rgba(255,255,255,0.16),
    inset 0 -7px 12px rgba(0,0,0,0.10);
  backdrop-filter: blur(10px) saturate(1.03);
  -webkit-backdrop-filter: blur(10px) saturate(1.03);
  transition:
    transform 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.cmg-profile-style__options button::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(112deg, transparent 0 36%, rgba(255,255,255,0.20) 46%, transparent 58%),
    radial-gradient(circle at 50% 0%, rgba(255,255,255,0.08), transparent 52%);
  opacity: 0;
  pointer-events: none;
}

.cmg-profile-style__options button::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 5px;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.24), transparent);
  opacity: 0.26;
  pointer-events: none;
}

.cmg-profile-style__options button.is-active {
  border-color: color-mix(in srgb, var(--mvp-accent), white 42%);
  background:
    radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--mvp-accent), transparent 82%), transparent 64%),
    linear-gradient(180deg, rgba(255,255,255,0.13), rgba(255,255,255,0.030)),
    linear-gradient(135deg, color-mix(in srgb, var(--mvp-accent), transparent 92%), rgba(3,9,22,0.78));
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.055),
    0 0 10px var(--mvp-accent-glow),
    0 8px 16px rgba(0,0,0,0.17),
    inset 0 1px 0 rgba(255,255,255,0.24),
    inset 0 -7px 12px rgba(0,0,0,0.10);
}

.cmg-profile-style__options button.is-active::before {
  opacity: 0.50;
}

.cmg-profile-style__options button:hover {
  transform: translateY(-1px);
  color: #fff;
  border-color: color-mix(in srgb, var(--mvp-accent), white 24%);
}

.cmg-buy-box {
  border-color: rgba(226,232,240,0.14);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.060), transparent 26% 78%, color-mix(in srgb, var(--mvp-accent), transparent 90%)),
    rgba(5,12,23,0.52);
  box-shadow:
    0 14px 30px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.10);
}

.cmg-buy-box strong {
  font-family: var(--cmg-font-head);
  letter-spacing: 0.02em;
}

.cmg-package-row {
  grid-template-columns: 1fr;
}

.cmg-package-row a,
.cmg-package-row a:last-child {
  min-height: 42px;
  border: 1px solid color-mix(in srgb, var(--mvp-accent), transparent 62%);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.024)),
    linear-gradient(135deg, color-mix(in srgb, var(--mvp-accent), transparent 84%), rgba(5,12,23,0.74));
  color: rgba(246,250,255,0.94);
  box-shadow:
    0 8px 18px rgba(0,0,0,0.16),
    inset 0 1px 0 rgba(255,255,255,0.16);
  font-family: var(--cmg-font-head);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.cmg-package-row a:hover,
.cmg-package-row a:last-child:hover {
  border-color: color-mix(in srgb, var(--mvp-accent), white 26%);
  filter: none;
  box-shadow:
    0 0 16px var(--mvp-accent-glow),
    0 10px 20px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.20);
}

.cmg-package-row a::after,
.cmg-package-row a:last-child::after {
  content: none;
}

/* --- Profile stats panel ------------------------------------- */
.cmg-profile-column--progress .cmg-panel--profile-stats {
  width: 100%; margin: 0;
  border-color: color-mix(in srgb, var(--mvp-accent), transparent 72%);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.10), transparent 24% 82%, var(--mvp-stat-accent)),
    rgba(7,14,26,0.78);
  box-shadow: 0 20px 48px rgba(0,0,0,0.30), inset 0 1px 0 rgba(255,255,255,0.12);
  transition: border-color 0.5s, background 0.5s;
}
.cmg-panel--profile-stats #mvpStatsHud {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* TASK 1: stats hidden until _statsRevealReady sets data-mvp-stats="ready" */
.cmg-panel--profile-stats #mvpStatsHud:not([data-mvp-stats="ready"]) {
  opacity: 0;
  pointer-events: none;
}
/* Smooth reveal - no flash, no placeholder swap */
.cmg-panel--profile-stats #mvpStatsHud[data-mvp-stats="ready"] {
  opacity: 1;
  transition: opacity 0.22s ease;
}

.cmg-panel--profile-stats #mvpStatsHud .cmg-stat { min-height: 64px; }

.cmg-panel--profile-stats #mvpStatsHud .cmg-stat:nth-child(2) span {
  font-size: 0;
}

.cmg-panel--profile-stats #mvpStatsHud .cmg-stat:nth-child(2) span::after {
  content: "Games / Orders";
  font-size: 11px;
}

.cmg-share-copy { margin: 0 0 12px; }

/* --- Mobile sticky nav - hidden on desktop, active on mobile only --- */
.cmg-profile-tabs {
  display: none;
}

.cmg-profile-tabs__item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 4px;
  border: 0;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  transition: color 0.18s, background 0.18s, box-shadow 0.18s;
  letter-spacing: 0.01em;
  background: transparent;
  cursor: pointer;
}
.cmg-profile-tabs__item:hover { color: #fff; }

/* Clips - visually primary */
.cmg-profile-tabs__item--primary {
  color: color-mix(in srgb, var(--mvp-accent), white 42%);
  font-size: 13px;
  letter-spacing: 0.03em;
  position: relative;
}
.cmg-profile-tabs__item--primary::after {
  display: none;
}

/* Add More - conversion prominent */
.cmg-profile-tabs__item--cta {
  color: #fff;
  background: var(--mvp-btn-accent), rgba(4,13,25,0.5);
  border-radius: 10px;
  margin: 5px 3px;
  padding: 8px 6px;
  font-size: 11px;
  box-shadow: 0 0 12px var(--mvp-accent-glow);
  transition: box-shadow 0.2s;
}
.cmg-profile-tabs__item--cta:hover { box-shadow: 0 0 20px var(--mvp-accent-glow); color: #fff; }


/* --- Right column conversion filler --------------------------- */
.cmg-panel--profile-value {
  min-height: auto;
  border-color: rgba(93, 242, 164, 0.28);
  background:
    radial-gradient(circle at 12% 0%, rgba(93, 242, 164, 0.12), transparent 38%),
    linear-gradient(135deg, rgba(93, 242, 164, 0.08), rgba(54, 169, 255, 0.06)),
    rgba(7,14,26,0.78);
}

.cmg-profile-value__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  min-height: 44px;
  border-color: rgba(93, 242, 164, 0.42);
  background:
    linear-gradient(135deg, rgba(93,242,164,0.20), rgba(54,169,255,0.12)),
    rgba(3,9,22,0.54);
  color: #dfffee;
}

/* --- TASK 3: Share fallback modal ----------------------------- */
.cmg-share-fallback {
  position: fixed; inset: 0; z-index: 9000;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  background: rgba(0,0,0,0.52);
  animation: cmgFadeIn 0.18s ease;
}
.cmg-share-fallback__inner {
  width: min(440px, calc(100vw - 32px));
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 18px;
  background: rgba(7,18,32,0.98);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 28px 64px rgba(0,0,0,0.56);
  position: relative;
}
.cmg-share-fallback__inner p {
  margin: 0 0 10px; color: rgba(255,255,255,0.88);
  font-size: 14px; font-weight: 700;
}
.cmg-share-fallback__row { display: flex; gap: 8px; }
.cmg-share-fallback__input {
  flex: 1; padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  background: rgba(255,255,255,0.07);
  color: #fff; font-size: 13px;
  outline: none;
}
.cmg-share-fallback__btn {
  padding: 10px 18px;
  border: none; border-radius: 10px;
  background: var(--mvp-btn-accent, linear-gradient(135deg,rgba(141,232,255,0.22),rgba(54,169,255,0.12))),
              rgba(54,169,255,0.24);
  color: #fff; font-weight: 900; font-size: 13px; cursor: pointer;
  transition: opacity 0.15s;
}
.cmg-share-fallback__btn:hover { opacity: 0.85; }
.cmg-share-fallback__close {
  position: absolute; top: 14px; right: 16px;
  border: none; background: none; color: rgba(255,255,255,0.5);
  font-size: 16px; cursor: pointer; padding: 4px 6px; border-radius: 6px;
}
.cmg-share-fallback__close:hover { color: #fff; }

@keyframes cmgFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* --- TASK 7: "View Full Profile" link in watch modal ---------- */
.cmg-watch-modal__view-profile {
  display: block;
  padding: 9px 14px;
  margin-bottom: 8px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 10px;
  background: rgba(255,255,255,0.055);
  color: rgba(255,255,255,0.82);
  font-size: 13px; font-weight: 800;
  text-align: center; text-decoration: none;
  transition: background 0.18s, color 0.18s;
}
.cmg-watch-modal__view-profile:hover {
  background: rgba(255,255,255,0.10); color: #fff;
}

/* --- TASK 9: Desktop fullscreen button ----------------------- */
.cmg-fs-btn {
  position: absolute; bottom: 10px; right: 10px; z-index: 10;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 8px;
  background: rgba(0,0,0,0.52);
  color: rgba(255,255,255,0.85);
  cursor: pointer; transition: background 0.15s, color 0.15s;
  backdrop-filter: blur(4px);
}
.cmg-fs-btn:hover { background: rgba(0,0,0,0.76); color: #fff; }
.cmg-fs-btn.is-fullscreen svg path {
  /* swap to exit-fullscreen icon visually */
  d: path("M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z");
}

/* --- Toast visibility ---------------------------------------- */
.cmg-toast {
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
}
.cmg-toast.is-visible { opacity: 1; pointer-events: auto; }

/* --- Mobile layout adjustments ------------------------------ */
@media (max-width: 980px) {
  .cmg-profile-column--progress { order: 3; }
  .cmg-profile-column--clips    { order: 2; }
}

@media (max-width: 560px) {
  html, body, .cmg-command { max-width: 100%; overflow-x: hidden; }

  .cmg-intro,
  .cmg-reward-strip,
  .cmg-profile-tabs,
  .cmg-command__shell {
    box-sizing: border-box;
    width:     calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    margin-right: auto !important;
    margin-left:  auto !important;
  }

  .cmg-intro .cmg-profile-tagline { max-width: 100%; overflow-wrap: break-word; }

  .cmg-reward-strip {
  grid-template-columns: 1fr !important;
  gap: 8px !important;
  }

  .cmg-free-hook {
    width: 100%;
    min-height: 58px;
    padding: 11px 14px;
    justify-content: center;
    text-align: center;
  }

  .cmg-free-hook span {
    font-size: 13px;
    line-height: 1.15;
  }

  .cmg-free-hook strong {
    display: block;
    font-size: 11px;
    line-height: 1.25;
  }

  .cmg-mobile-buy-cta {
    width: 100%;
    min-width: 0;
    min-height: 46px;
  }

  .cmg-hero {
    width: 100% !important; max-width: 100% !important; min-width: 0 !important;
    padding-right: 0 !important; padding-left: 0 !important;
    justify-items: center !important; overflow: visible !important;
  }

  .cmg-card {
    width: min(296px, calc(100vw - 72px)) !important;
    max-width: calc(100vw - 72px) !important;
    border-radius: 22px;
    animation: cardEnter 620ms 120ms ease both;
  }

  .cmg-card__highlight-count {
    position: absolute;
    top: 32px;
    left: 34px;
    z-index: 10;
    width: 124px;
    height: 138px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    clip-path: polygon(
      50% 0%,
      80% 8%,
      95% 28%,
      95% 62%,
      78% 88%,
      50% 100%,
      22% 88%,
      5% 62%,
      5% 28%,
      20% 8%
    );

    background:
      linear-gradient(180deg, rgba(255,255,255,0.24), rgba(255,255,255,0.02)),
      linear-gradient(145deg, rgba(66,74,89,0.96), rgba(14,17,23,0.98));

    border: 1px solid rgba(255,255,255,0.18);

    box-shadow:
      0 26px 36px rgba(0,0,0,0.48),
      0 0 18px rgba(255,255,255,0.08),
      inset 0 2px 0 rgba(255,255,255,0.34),
      inset 0 -18px 24px rgba(0,0,0,0.42);

    overflow: hidden;
  }

  .cmg-card__highlight-count strong {
    position: relative;
    z-index: 2;
    display: block;
    font-family: var(--cmg-font-head);
    font-size: 34px;
    line-height: 0.88;
    letter-spacing: -0.05em;
    color: #f8fbff;
    text-shadow:
      0 2px 0 rgba(0,0,0,0.35),
      0 0 14px rgba(255,255,255,0.14);
  }

  .cmg-card__highlight-count span {
    position: relative;
    z-index: 2;
    margin-top: 8px;
    font-size: 9px;
    font-weight: 950;
    letter-spacing: 0.16em;
    line-height: 1;
    text-transform: uppercase;
    color: rgba(236,243,252,0.92);
  }

  .cmg-card__edition {
    position: absolute;
    top: 34px;
    right: 28px;
    z-index: 8;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.16);
    background:
      linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.02)),
      linear-gradient(145deg, rgba(28,34,45,0.94), rgba(10,12,18,0.96));
    box-shadow:
      0 10px 20px rgba(0,0,0,0.30),
      inset 0 1px 0 rgba(255,255,255,0.16);
    color: rgba(240,245,252,0.88);
    font-size: 9px;
    font-weight: 950;
    letter-spacing: 0.14em;
    line-height: 1;
    text-transform: uppercase;
  }

  .cmg-card__level { display: none !important; }

  /* TASK 8: reduce GPU on small screens */
  .cmg-player-render {
    transform: translate(36px, -104px) scale(1.58);
    transform-origin: center bottom;
  }
  .cmg-player-render::before { filter: blur(10px); opacity: 0.78; }
  .cmg-card__shine { animation: none; opacity: 0.42; } /* no anim = no repaint */

  .cmg-player-render__shadow { bottom: 18px; width: 128px; height: 16px; }

  /* MVP collectible card identity */
  .cmg-card__identity {
    bottom: 96px;
    padding-right: 0;
  }

  .cmg-card__identity h1 {
    max-width: 100%;
    color: #fff;
    font-size: clamp(30px, 3.5vw, 38px);
    line-height: 0.94;
    overflow-wrap: anywhere;
    word-break: normal;
    text-wrap: balance;
    text-transform: uppercase;
    letter-spacing: -0.05em;

    text-shadow:
      0 4px 18px rgba(0,0,0,0.68),
      0 0 10px rgba(255,255,255,0.04);
  }

  .cmg-card__identity p {
    margin-top: 7px;
    font-size: 8px;
    letter-spacing: 0.105em;
  }

  .cmg-card__share,
  .cmg-card__share--boosted {
    right: 0;
    bottom: -70px;
    padding: 6px 9px;
    min-height: 27px;
    min-width: 0;
    font-size: 8px;
    border-radius: 999px;
    margin: 0;
    letter-spacing: 0.105em;
  }

  .cmg-card__xp {
    left: 20px;
    right: 20px;
    bottom: 20px;
    min-height: 52px;
    padding: 10px 11px;
  }

  .cmg-card__xp-top span {
    font-size: 8px;
    letter-spacing: 0.105em;
  }

  .cmg-card__xp-top strong {
    font-size: 12px;
  }

  .cmg-profile-style {
    width: min(296px, calc(100vw - 72px));
  }
  .cmg-profile-style__options button {
    min-height: 40px; padding: 0 5px; font-size: 10px;
  }

  .cmg-panel--profile-stats #mvpStatsHud {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cmg-profile-tabs {
    position: sticky;
    top: 65px;
    z-index: 18;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    padding: 5px;
    border: 1px solid rgba(226,232,240,0.20);
    border-radius: 999px;
    background:
      linear-gradient(180deg, rgba(10,20,36,0.96), rgba(3,9,22,0.96));
    box-shadow: 0 14px 34px rgba(0,0,0,0.34), inset 0 1px 0 rgba(255,255,255,0.08);
    backdrop-filter: blur(14px);
  }

  /* TASK 9: Mobile native controls - ensure video is touch-friendly */
  #clipModalBody video {
    width: 100%;
    max-height: 50vh;
    border-radius: 10px;
    cursor: pointer;
  }
  
}

/* Mobile MVP cleanup: remove redundant profile status strip */
@media (max-width: 560px) {
  .cmg-reward-strip {
    display: none !important;
  }

  .cmg-profile-tabs {
    margin-top: 10px !important;
  }
}

/* MVP direct clip focus path: card glow -> vault focus -> exact clip */
.cmg-direct-status {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  bottom: max(18px, env(safe-area-inset-bottom)) !important;
  top: auto !important;
  z-index: 9100 !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: var(--cmg-direct-label-width, min(390px, calc(100vw - 32px))) !important;
  min-width: 0 !important;
  max-width: calc(100vw - 32px) !important;
  min-height: 46px !important;
  margin: 0 !important;
  padding: 11px 18px 12px !important;
  border: 1px solid rgba(255, 241, 174, 0.28) !important;
  border-radius: 999px !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.035)),
    radial-gradient(circle at 50% 0%, rgba(255, 241, 174, 0.14), transparent 66%),
    rgba(2, 7, 16, 0.86) !important;
  color: rgba(255,255,255,0.96) !important;
  font-family: var(--cmg-font-head) !important;
  font-size: 15px !important;
  font-weight: 950 !important;
  letter-spacing: 0.075em !important;
  line-height: 1.1 !important;
  text-align: center !important;
  text-indent: 0.075em !important;
  text-transform: none !important;
  white-space: nowrap !important;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    0 0 26px rgba(255, 241, 174, 0.13),
    0 18px 42px rgba(0,0,0,0.56),
    inset 0 1px 0 rgba(255,255,255,0.14) !important;
  backdrop-filter: blur(16px) saturate(1.08) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.08) !important;
  pointer-events: none !important;
  transform: translateX(-50%) !important;
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease !important;
}

.cmg-direct-status::before {
  content: "" !important;
  position: absolute !important;
  left: 18px !important;
  right: 18px !important;
  bottom: 7px !important;
  display: block !important;
  height: 1px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, transparent, rgba(255, 241, 174, 0.72), transparent) !important;
  opacity: 0.72 !important;
  pointer-events: none !important;
}

.cmg-direct-status::after,
.cmg-direct-status__eyebrow,
.cmg-direct-status__subline {
  display: none !important;
}

.cmg-direct-status--stage-vault {
  border-color: rgba(141, 232, 255, 0.30) !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.035)),
    radial-gradient(circle at 50% 0%, rgba(141, 232, 255, 0.16), transparent 66%),
    rgba(2, 7, 16, 0.86) !important;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    0 0 26px rgba(54, 169, 255, 0.14),
    0 18px 42px rgba(0,0,0,0.56),
    inset 0 1px 0 rgba(255,255,255,0.14) !important;
}

.cmg-direct-status--stage-vault::before {
  background: linear-gradient(90deg, transparent, rgba(141, 232, 255, 0.74), transparent) !important;
}

.cmg-direct-status--stage-order {
  border-color: rgba(255, 241, 174, 0.36) !important;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    0 0 30px rgba(244, 200, 106, 0.17),
    0 18px 42px rgba(0,0,0,0.58),
    inset 0 1px 0 rgba(255,255,255,0.15) !important;
}

.cmg-direct-status.is-hiding {
  opacity: 0 !important;
  transform: translateX(-50%) translateY(8px) scale(0.985) !important;
}

@media (max-width: 560px) {
  .cmg-direct-status {
    left: 50% !important;
    right: auto !important;
    width: var(--cmg-direct-label-width, min(340px, calc(100vw - 28px))) !important;
    max-width: calc(100vw - 28px) !important;
    min-height: 44px !important;
    padding: 10px 14px 11px !important;
    font-size: 13px !important;
    letter-spacing: 0.055em !important;
    line-height: 1.18 !important;
    text-align: center !important;
    text-indent: 0.055em !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    transform: translateX(-50%) !important;
  }

  .cmg-direct-status::before {
    left: 16px !important;
    right: 16px !important;
    bottom: 6px !important;
  }
}

.cmg-card.is-direct-card-focus {
  animation:
    cardEnter 620ms 120ms ease both,
    cmgDirectCardPulse 1.15s ease-in-out infinite;
  border-color: rgba(255, 241, 174, 0.96) !important;
  box-shadow:
    0 46px 124px rgba(0, 0, 0, 0.68),
    0 0 0 2px rgba(255, 241, 174, 0.38),
    0 0 64px rgba(255, 241, 174, 0.48),
    0 0 120px rgba(244, 200, 106, 0.34),
    0 0 72px rgba(255, 255, 255, 0.10),
    inset 0 1px 0 rgba(255,255,255,0.42),
    inset 0 0 0 2px rgba(255, 241, 174, 0.12),
    inset 0 -42px 72px rgba(0,0,0,0.38);
}

@keyframes cmgDirectCardPulse {
  0%, 100% {
    transform: translateY(0) scale(1);
    filter: saturate(1);
  }
  42% {
    transform: translateY(-7px) scale(1.045);
    filter: saturate(1.28) brightness(1.08);
  }
}

.cmg-order-card.is-direct-order-focus {
  position: relative;
  z-index: 4;
  border-color: rgba(255, 241, 174, 0.98) !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 241, 174, 0.28), transparent 44%),
    radial-gradient(circle at 90% 20%, rgba(141, 232, 255, 0.22), transparent 42%),
    rgba(3, 9, 22, 0.72) !important;
  box-shadow:
    0 0 0 2px rgba(255, 241, 174, 0.62),
    0 0 54px rgba(255, 241, 174, 0.52),
    0 0 72px rgba(54, 169, 255, 0.36),
    0 24px 46px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255,255,255,0.30) !important;
  animation: cmgDirectOrderPulse 1.05s ease-in-out infinite;
}

@keyframes cmgDirectOrderPulse {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-5px) scale(1.035);
  }
}

@media (max-width: 560px) {
  .cmg-direct-status {
    width: var(--cmg-direct-label-width, min(340px, calc(100vw - 28px))) !important;
    min-height: 44px !important;
    font-size: 13px !important;
    line-height: 1.18 !important;
  }
}

/* MVP watch modal cleanup: direct links already preview the profile first */
.cmg-watch-modal__view-profile {
  display: none !important;
}

/* MVP watch modal footer CTA polish */
.cmg-watch-modal__footerbar {
  display: flex;
  justify-content: stretch;
  gap: 10px;
}

.cmg-watch-modal__cta {
  width: 100%;
  min-height: 44px;
  border-radius: 14px;
  text-align: center;
}

/* MVP direct clip flow: focus the full Clip Vault before exact order focus */
#clipVaultSection {
  transition: transform 280ms ease, filter 280ms ease;
}

#clipVaultSection.is-direct-vault-focus .cmg-panel--stream {
  border-color: rgba(255, 241, 174, 1) !important;
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 241, 174, 0.26), transparent 52%),
    radial-gradient(circle at 14% 0%, rgba(255, 241, 174, 0.18), transparent 46%),
    radial-gradient(circle at 88% 18%, rgba(244, 200, 106, 0.18), transparent 42%),
    rgba(7, 14, 26, 0.84) !important;
  box-shadow:
    0 0 0 2px rgba(255, 241, 174, 0.34),
    0 0 48px rgba(255, 241, 174, 0.34),
    0 0 86px rgba(244, 200, 106, 0.20),
    0 24px 54px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

@media (min-width: 769px) {
  #clipVaultSection.is-direct-vault-focus {
    transform: scale(1.002);
    filter: brightness(1.03) saturate(1.04);
  }
}

@media (max-width: 768px) {
  #clipVaultSection.is-direct-vault-focus {
    filter: brightness(1.03);
  }
}

/* MVP mobile watch modal: unified compact player controls */
@media (max-width: 560px) {
  .cmg-watch-modal__body {
    padding-bottom: 0 !important;
  }

  #clipModalBody video {
    width: 100% !important;
    max-height: 46vh !important;
    object-fit: contain;
    border-radius: 10px;
  }

  /* Play / Sound / Scrubber area */
  .cmg-profile-controls {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
    padding: 8px 10px 6px !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  /* force scrubber full width above buttons */
  .cmg-profile-controls input[type="range"],
  .cmg-profile-controls progress,
  .cmg-profile-controls .cmg-profile-scrubber {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    order: -2 !important;
    margin: 0 !important;
  }

  /* time row under scrubber */
  .cmg-profile-controls .cmg-profile-time,
  .cmg-profile-controls time {
    grid-column: 1 / -1 !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    opacity: 0.75;
    order: -1 !important;
  }

  /* prevent random spans from becoming full width */
  .cmg-profile-controls span {
    font-size: 11px !important;
  }

  /* Play / Sound match nav buttons */
  .cmg-profile-controls button,
  .cmg-watch-modal__navbtn {
    min-height: 38px !important;
    height: 38px !important;
    padding: 0 8px !important;
    border-radius: 10px !important;
    font-size: 11px !important;
    line-height: 1 !important;
    white-space: nowrap;
  }

  /* Clip counter + nav */
  .cmg-watch-modal__controls {
    gap: 5px !important;
    padding: 6px 10px 8px !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  .cmg-watch-modal__position {
    font-size: 10px;
    line-height: 1.1;
    opacity: 0.72;
  }

  .cmg-watch-modal__navrow {
    display: grid !important;
    grid-template-columns: 0.85fr 1fr 0.85fr;
    gap: 5px;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* rails closer */
  .cmg-watch-modal__section--clips,
  .cmg-watch-modal__section--orders {
    margin-top: 2px !important;
  }

  .cmg-watch-modal__railhead {
    padding-top: 6px !important;
  }

  .cmg-watch-modal__rail {
    padding-top: 4px !important;
  }

  .cmg-watch-modal__rail button {
    min-height: 50px !important;
  }
}

/* MVP mobile: remove duplicate overlay play button */
@media (max-width: 560px) {
  .cmg-profile-video-intro,
  .cmg-profile-video-intro button,
  .cmg-profile-video-intro .cmg-play-overlay,
  .cmg-profile-video-wrap .cmg-play-overlay {
    display: none !important;
  }
}

/* MVP cleanup: remove fake card tier, keep simple card branding */
.cmg-card__level {
  display: none !important;
}

/* MVP card reset: premium profile card, not fake game card */
.cmg-card__highlight-count,
.cmg-card__level,
.cmg-player-render__number {
  display: none !important;
}

/* Subtle top-right style marker */
.cmg-card__edition {
  top: 30px !important;
  right: 30px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: color-mix(in srgb, var(--mvp-accent), white 58%) !important;
  font-size: 10px !important;
  font-weight: 950 !important;
  letter-spacing: 0.22em !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  opacity: 0.86;
  text-shadow: 0 0 16px var(--mvp-accent-glow);
}

/* Cleaner composed player render */
.cmg-player-render {
  animation-duration: 5.8s;
}

.cmg-player-render::before {
  opacity: 0.72;
  filter: blur(18px);
}

.cmg-player-render__shadow {
  left: 46%;
  bottom: 20px;
  width: 142px;
  height: 18px;
  opacity: 0.72;
}

/* Identity becomes the main premium label */
.cmg-card__identity {
  bottom: 104px;
  left: 28px;
  right: 28px;
  padding-right: 0;
}

.cmg-card__identity h1 {
  max-width: 100%;
  text-wrap: balance;
}

.cmg-card__identity p {
  color: color-mix(in srgb, var(--mvp-accent), white 62%);
  letter-spacing: 0.16em;
}

/* Bottom metadata plaque */
.cmg-card__plaque,
.cmg-card__xp {
  left: 24px;
  right: 24px;
  bottom: 24px;
  min-height: 58px;
  padding: 13px 14px;
  border-radius: 17px;
  border: 1px solid rgba(255,255,255,0.18);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.12), color-mix(in srgb, var(--mvp-accent), transparent 91%)),
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(0,0,0,0.12)),
    rgba(3,9,22,0.64);
  box-shadow:
    0 14px 28px rgba(0,0,0,0.26),
    inset 0 1px 0 rgba(255,255,255,0.18);
}

.cmg-card__xp-top {
  display: grid;
  gap: 5px;
}

.cmg-card__xp-top span {
  color: rgba(218,228,240,0.72);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.18em;
}

.cmg-card__xp-top strong {
  color: #fff;
  font-family: var(--cmg-font-head);
  font-size: 17px;
  letter-spacing: 0.12em;
}

/* Better blackout material */
.cmg-command[data-profile-style="blackout"] {
  --mvp-accent:       #d9e1ec;
  --mvp-accent-soft:  rgba(210, 220, 232, 0.14);
  --mvp-accent-glow:  rgba(220, 230, 242, 0.18);
  --mvp-gold-soft:    rgba(255, 255, 255, 0.055);
  --mvp-card-start:   rgba(18, 20, 24, 0.99);
  --mvp-card-end:     rgba(1, 2, 4, 0.99);
  --mvp-border:       rgba(226, 232, 240, 0.48);
  --mvp-btn-accent:   linear-gradient(135deg, rgba(226,232,240,0.18), rgba(95,105,120,0.10));
  --mvp-stat-accent:  rgba(226, 232, 240, 0.10);
}

.cmg-command[data-profile-style="blackout"] .cmg-card {
  background:
    radial-gradient(circle at 54% 26%, rgba(226,232,240,0.12), transparent 30%),
    radial-gradient(circle at 14% 8%, rgba(255,255,255,0.18), transparent 18%),
    linear-gradient(130deg, rgba(255,255,255,0.08), transparent 18% 74%, rgba(255,255,255,0.07)),
    linear-gradient(150deg, var(--mvp-card-start), rgba(8,10,14,0.99) 52%, var(--mvp-card-end));
  box-shadow:
    0 34px 92px rgba(0,0,0,0.66),
    0 0 0 1px rgba(255,255,255,0.10),
    0 0 38px rgba(226,232,240,0.12),
    inset 0 1px 0 rgba(255,255,255,0.30),
    inset 0 0 0 2px rgba(255,255,255,0.045),
    inset 0 -42px 72px rgba(0,0,0,0.48);
}

/* Mobile version of the cleaner card */
@media (max-width: 560px) {
  .cmg-card__edition {
    top: 28px !important;
    right: 26px !important;
    font-size: 8px !important;
    letter-spacing: 0.18em !important;
  }

  .cmg-player-render {
    transform: translate(28px, -58px) scale(1.18);
  }

  .cmg-card__identity {
    bottom: 96px;
    left: 22px;
    right: 22px;
  }

  .cmg-card__plaque,
  .cmg-card__xp {
    left: 18px;
    right: 18px;
    bottom: 18px;
    min-height: 52px;
    padding: 11px 12px;
  }

  .cmg-card__xp-top span {
    font-size: 8px;
    letter-spacing: 0.14em;
  }

  .cmg-card__xp-top strong {
    font-size: 13px;
  }

  .cmg-card__share,
  .cmg-card__share--boosted {
    bottom: -66px;
    padding: 0 12px;
    min-height: 30px;
    font-size: 7px;
    letter-spacing: 0.10em;
  }
}

/* Kill legacy fake center badge / grade artifacts */
.cmg-card__avatar,
.cmg-card__rank,
#playerInitials {
  display: none !important;
}

/* Premium center watermark */
.cmg-card::after {
  background:
    radial-gradient(circle at 50% 42%, rgba(255,255,255,0.04), transparent 18%),
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--mvp-accent), transparent 90%), transparent 24%),
    linear-gradient(135deg, rgba(255,255,255,0.02), transparent 38%);
  opacity: 0.42;
}

.cmg-mvp-hidden-hooks {
  display: none !important;
}

.cmg-card__share,
.cmg-card__share--boosted {
  pointer-events: auto !important;
  cursor: pointer !important;
  opacity: 1 !important;
  z-index: 20 !important;
}

/* MVP share button click fix: prevent card overlays from stealing taps */
.cmg-card::before,
.cmg-card::after,
.cmg-card__grid,
.cmg-card__shine {
  pointer-events: none !important;
}

.cmg-card__share,
.cmg-card__share--boosted {
  pointer-events: auto !important;
  cursor: pointer !important;
  position: absolute !important;
  z-index: 999 !important;
}
/* MVP mobile card composition: one clean source of truth */
@media (max-width: 560px) {
  .cmg-card {
    position: relative !important;
    overflow: hidden !important;
  }

  .cmg-player-render {
    position: absolute !important;
    z-index: 6 !important;
    top: 24px !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    width: min(200px, 58vw) !important;
    max-width: min(200px, 58vw) !important;
    height: auto !important;
    margin: 0 !important;
    transform: translateX(-50%) scale(0.96) !important;
    transform-origin: center top !important;
    display: block !important;
    animation: none !important;
}

  .cmg-player-render__image {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center top !important;
  }

  .cmg-player-render::before {
    top: 7% !important;
    left: 50% !important;
    width: 108% !important;
    height: 82% !important;
    transform: translateX(-50%) !important;
    filter: blur(13px) !important;
    opacity: 0.66 !important;
  }

  .cmg-player-render__shadow {
    left: 50% !important;
    right: auto !important;
    bottom: 8px !important;
    width: 112px !important;
    height: 14px !important;
    transform: translateX(-50%) rotate(-4deg) !important;
  }

  .cmg-card__identity {
    z-index: 12 !important;
  }

  .cmg-card__plaque,
  .cmg-card__xp,
  .cmg-card__share,
  .cmg-card__edition {
    z-index: 13 !important;
  }
}
/* ===============================================================
   MVP direct clip cinematic spotlight + bottom hybrid status pill
   Purpose: keep the active reveal target bright while the status pill
   explains what is happening without covering profile/vault/order UI.
=============================================================== */
.cmg-direct-spotlight {
  position: fixed !important;
  inset: 0 !important;
  z-index: 8500 !important;
  pointer-events: none !important;
  opacity: 1 !important;
  transition: opacity 280ms ease !important;
  background:
    radial-gradient(circle at 50% 36%, transparent 0 15%, rgba(0,0,0,0.28) 28%, rgba(0,0,0,0.76) 100%) !important;
}

.cmg-direct-spotlight--stage-vault {
  background:
    radial-gradient(circle at 50% 46%, transparent 0 21%, rgba(0,0,0,0.30) 40%, rgba(0,0,0,0.80) 100%) !important;
}

.cmg-direct-spotlight--stage-order {
  background:
    radial-gradient(circle at 50% 53%, transparent 0 18%, rgba(0,0,0,0.32) 38%, rgba(0,0,0,0.82) 100%) !important;
}

.cmg-direct-spotlight.is-hiding {
  opacity: 0 !important;
}

.cmg-command.is-direct-spotlight-active #playerCard,
.cmg-command.is-direct-spotlight-active #clipVaultSection,
.cmg-command.is-direct-spotlight-active .cmg-order-card.is-direct-order-focus {
  position: relative !important;
  z-index: 9000 !important;
}

.cmg-command.is-direct-spotlight-active #playerCard {
  isolation: isolate;
}

@media (max-width: 768px) {
  .cmg-direct-spotlight {
    background:
      radial-gradient(circle at 50% 31%, transparent 0 18%, rgba(0,0,0,0.30) 36%, rgba(0,0,0,0.78) 100%) !important;
  }

  .cmg-direct-spotlight--stage-vault {
    background:
      radial-gradient(circle at 50% 45%, transparent 0 21%, rgba(0,0,0,0.30) 40%, rgba(0,0,0,0.80) 100%) !important;
  }

  .cmg-direct-spotlight--stage-order {
    background:
      radial-gradient(circle at 50% 53%, transparent 0 18%, rgba(0,0,0,0.32) 38%, rgba(0,0,0,0.82) 100%) !important;
  }
}

/* ===============================================================
   MVP dock share utility — shares existing #cardShareButton behavior
=============================================================== */

.cmg-card {
  isolation: isolate;
}

.cmg-card::before,
.cmg-card::after,
.cmg-card__grid,
.cmg-card__shine,
.cmg-player-render,
.cmg-player-render *,
.cmg-player-render::before,
.cmg-player-render__shadow,
.cmg-player-render__image {
  pointer-events: none !important;
}

.cmg-profile-style__share,
.cmg-card__share.cmg-profile-style__share,
#cardShareButton.cmg-profile-style__share {
  position: relative !important;
  inset: auto !important;
  z-index: 2 !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  min-height: 22px !important;
  min-width: 66px !important;
  padding: 0 11px !important;
  margin: 0 !important;

  overflow: hidden !important;
  border-radius: 11px !important;
  border: 1px solid rgba(226,232,240,0.20) !important;

  background:
    linear-gradient(180deg, rgba(255,255,255,0.066), rgba(255,255,255,0.018)),
    rgba(5,12,23,0.32) !important;

  color: rgba(229,237,247,0.76) !important;
  text-shadow: 0 0 10px rgba(255,255,255,0.05) !important;

  box-shadow:
    0 6px 14px rgba(0,0,0,0.10),
    inset 0 1px 0 rgba(255,255,255,0.15),
    inset 0 -7px 12px rgba(0,0,0,0.08) !important;

  font-family: var(--cmg-font-head) !important;
  font-size: 8px !important;
  font-weight: 950 !important;
  letter-spacing: 0.17em !important;
  line-height: 1 !important;
  text-transform: uppercase !important;

  opacity: 1 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  touch-action: manipulation !important;

  transform: none !important;
  backdrop-filter: blur(10px) saturate(1.03) !important;
  -webkit-backdrop-filter: blur(10px) saturate(1.03) !important;
  transition:
    transform 150ms ease,
    color 150ms ease,
    background 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease !important;
}

.cmg-profile-style__share::before,
#cardShareButton.cmg-profile-style__share::before {
  content: "";
  position: absolute;
  top: -72%;
  left: -70%;
  width: 34%;
  height: 240%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.30), transparent);
  transform: rotate(22deg);
  opacity: 0;
  pointer-events: none;
  animation: cmgShareDockSweep 7.6s ease-in-out infinite;
}

.cmg-profile-style__share::after,
#cardShareButton.cmg-profile-style__share::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 5px;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--mvp-accent), white 14%), transparent);
  opacity: 0.30;
  pointer-events: none;
}

@keyframes cmgShareDockSweep {
  0%, 68%, 100% {
    left: -70%;
    opacity: 0;
  }
  76% {
    opacity: 0.42;
  }
  90% {
    left: 128%;
    opacity: 0;
  }
}

.cmg-profile-style__share:hover,
#cardShareButton.cmg-profile-style__share:hover {
  transform: translateY(-1px) !important;
  color: #fff !important;
  border-color: color-mix(in srgb, var(--mvp-accent), white 28%) !important;
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--mvp-accent), transparent 84%), transparent 66%),
    linear-gradient(180deg, rgba(255,255,255,0.095), rgba(255,255,255,0.026)),
    rgba(5,12,23,0.42) !important;
  box-shadow:
    0 0 14px var(--mvp-accent-glow),
    0 8px 16px rgba(0,0,0,0.14),
    inset 0 1px 0 rgba(255,255,255,0.16) !important;
}

.cmg-profile-style__share:active,
#cardShareButton.cmg-profile-style__share:active {
  transform: translateY(0) scale(0.985) !important;
}

@media (min-width: 981px) and (max-height: 840px) {
  .cmg-intro {
    margin-top: 6px;
    margin-bottom: 2px;
    padding-top: 6px;
  }

  .cmg-intro h1 {
    font-size: clamp(25px, 2.8vw, 34px);
  }

  .cmg-intro .cmg-profile-tagline {
    margin-top: 6px;
    font-size: clamp(14px, 1.2vw, 16px);
    line-height: 1.32;
  }

  .cmg-reward-strip {
    margin-top: 0;
    margin-bottom: 4px;
  }

  .cmg-command__shell {
    margin-top: -4px;
  }

  .cmg-hero {
    gap: 4px;
  }

  .cmg-card {
    --player-render-scale: 1.12;
    width: min(376px, 100%);
  }

  .cmg-profile-style {
    width: min(366px, calc(100% - 24px));
    gap: 3px;
    padding-top: 8px;
  }

  .cmg-profile-style::before {
    top: -20px;
    height: 31px;
  }

  .cmg-profile-style__head {
    min-height: 21px;
  }

  .cmg-profile-style__options button {
    min-height: 30px;
  }
}

@media (min-width: 561px) and (max-width: 1280px) {
  .cmg-intro {
    margin-top: 6px;
    margin-bottom: 2px;
    padding-top: 6px;
  }

  .cmg-intro h1 {
    font-size: clamp(28px, 3.2vw, 36px);
  }

  .cmg-intro .cmg-profile-tagline {
    margin-top: 6px;
    font-size: clamp(14px, 1.6vw, 16px);
    line-height: 1.34;
  }

  .cmg-reward-strip {
    margin-top: 0;
    margin-bottom: 6px;
  }

  .cmg-profile-tabs {
    display: none !important;
  }

  .cmg-command__shell {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: min(760px, calc(100vw - 40px)) !important;
    max-width: min(760px, calc(100vw - 40px)) !important;
    gap: 16px !important;
    margin: 0 auto 22px !important;
  }

  .cmg-profile-column--clips,
  .cmg-hero,
  .cmg-profile-column--progress {
    grid-column: 1 !important;
    grid-row: auto !important;
  }

  .cmg-hero {
    order: 1 !important;
    width: 100% !important;
    min-height: auto !important;
    gap: 4px !important;
    justify-items: center !important;
    overflow: visible !important;
    transform: none !important;
  }

  .cmg-profile-column--clips {
    order: 2 !important;
  }

  .cmg-profile-column--progress {
    order: 3 !important;
  }

  .cmg-profile-column {
    gap: 16px !important;
  }

  .cmg-clip-activity {
    width: 100% !important;
    padding: 14px !important;
  }

  .cmg-clip-activity__header,
  .cmg-clip-activity__latest-main {
    gap: 10px !important;
  }

  .cmg-clip-activity__latest-main {
    grid-template-columns: 30px minmax(0, 1fr) !important;
    padding: 12px !important;
  }

  .cmg-clip-activity__latest-topline {
    display: grid !important;
    gap: 4px !important;
  }

  .cmg-clip-activity__event {
    grid-template-columns: 56px minmax(0, 1fr) !important;
    gap: 9px !important;
  }

  .cmg-clip-activity__time {
    font-size: 11px !important;
    text-align: left !important;
  }

  .cmg-card {
    --player-render-scale: 1.10;
    width: min(348px, calc(100vw - 92px)) !important;
  }

  .cmg-profile-style {
    width: min(338px, calc(100vw - 112px)) !important;
    gap: 3px !important;
    padding-top: 8px !important;
  }

  .cmg-profile-style::before {
    top: -20px !important;
    height: 31px !important;
  }

  .cmg-profile-style__head {
    min-height: 21px !important;
  }

  .cmg-profile-style__options button {
    min-height: 30px !important;
  }

  .cmg-panel {
    min-height: auto;
  }

  .cmg-panel--profile-stats #mvpStatsHud {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .cmg-hero {
    gap: 3px !important;
  }

  .cmg-intro {
    margin: 5px auto 1px !important;
    padding: 6px 16px 0 !important;
  }

  .cmg-intro .cmg-kicker {
    margin-bottom: 3px !important;
    font-size: 9px !important;
    letter-spacing: 0.12em !important;
  }

  .cmg-intro h1 {
    max-width: 320px;
    margin-right: auto;
    margin-left: auto;
    font-size: 28px !important;
    line-height: 1 !important;
    text-wrap: balance;
  }

  .cmg-intro .cmg-profile-tagline {
    max-width: 320px !important;
    margin-top: 5px !important;
    font-size: 13px !important;
    line-height: 1.32 !important;
  }

  .cmg-reward-strip {
    display: flex !important;
    position: relative !important;
    top: auto !important;
    z-index: 1 !important;
    width: min(320px, calc(100vw - 40px)) !important;
    max-width: min(320px, calc(100vw - 40px)) !important;
    height: auto !important;
    margin: 1px auto 5px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .cmg-free-hook {
    display: inline-flex !important;
    width: auto !important;
    min-height: 12px !important;
    padding: 0 !important;
    gap: 6px !important;
    color: rgba(223,232,244,0.62) !important;
    text-align: center !important;
  }

  .cmg-free-hook span,
  .cmg-free-hook strong {
    display: inline !important;
    font-size: 7px !important;
    letter-spacing: 0.12em !important;
    line-height: 1 !important;
  }

  .cmg-free-hook span::after {
    margin-left: 6px !important;
  }

  .cmg-mobile-buy-cta {
    display: none !important;
  }

  .cmg-profile-tabs {
    position: sticky !important;
    top: 64px !important;
    z-index: 18 !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 4px !important;
    width: calc(100vw - 24px) !important;
    max-width: 366px !important;
    min-height: 38px !important;
    margin: 3px auto 6px !important;
    padding: 3px !important;
    border: 1px solid rgba(226,232,240,0.14) !important;
    border-radius: 13px !important;
    background:
      linear-gradient(180deg, rgba(13,24,42,0.90), rgba(3,9,22,0.92)),
      rgba(3,9,22,0.74) !important;
    box-shadow:
      0 10px 24px rgba(0,0,0,0.28),
      inset 0 1px 0 rgba(255,255,255,0.08),
      inset 0 0 0 1px rgba(255,255,255,0.025) !important;
    backdrop-filter: blur(16px) saturate(1.04) !important;
    -webkit-backdrop-filter: blur(16px) saturate(1.04) !important;
  }

  .cmg-profile-tabs__item,
  .cmg-profile-tabs a,
  .cmg-profile-tabs button {
    min-width: 0 !important;
    min-height: 32px !important;
    padding: 0 5px !important;
    border: 0 !important;
    border-radius: 9px !important;
    background: transparent !important;
    box-shadow: none !important;
    color: rgba(224,234,246,0.76) !important;
    font-family: var(--cmg-font-head) !important;
    font-size: 8px !important;
    font-weight: 900 !important;
    letter-spacing: 0.055em !important;
    line-height: 1.05 !important;
    text-align: center !important;
    text-transform: uppercase !important;
  }

  .cmg-profile-tabs__item:nth-child(3) {
    display: none !important;
  }

  .cmg-profile-tabs__item:nth-child(1),
  .cmg-profile-tabs__item:nth-child(2) {
    font-size: 0 !important;
  }

  .cmg-profile-tabs__item:nth-child(1)::after {
    content: "Clip Vault";
    display: block !important;
    font-size: 8px;
  }

  .cmg-profile-tabs__item:nth-child(2)::after {
    content: "Add Highlights";
    display: block !important;
    font-size: 8px;
  }

  .cmg-profile-tabs__item--primary {
    color: color-mix(in srgb, var(--mvp-accent), white 34%) !important;
  }

  .cmg-profile-tabs__item--cta {
    margin: 0 !important;
    border: 1px solid color-mix(in srgb, var(--mvp-accent), transparent 72%) !important;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.018)),
      color-mix(in srgb, var(--mvp-accent), transparent 92%) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.10) !important;
    color: rgba(245,249,255,0.90) !important;
  }

  .cmg-profile-tabs__item:active {
    background: rgba(255,255,255,0.065) !important;
  }

  .cmg-profile-style {
    width: min(286px, calc(100vw - 82px)) !important;
    margin-top: 0 !important;
    gap: 4px !important;
    padding: 9px 0 0 !important;
  }

  .cmg-profile-style::before {
    left: 7% !important;
    right: 7% !important;
    top: -21px !important;
    height: 32px !important;
    filter: blur(8px) saturate(1.01) !important;
    opacity: 0.62 !important;
  }

  .cmg-profile-style::after {
    left: 18% !important;
    right: 18% !important;
    top: 5px !important;
    opacity: 0.22 !important;
  }

  .cmg-profile-style__head {
    min-height: 22px;
    gap: 8px;
    padding: 0 2px;
  }

  .cmg-profile-style__head > span {
    font-size: 8px;
    letter-spacing: 0.17em;
  }

  .cmg-profile-style__share,
  #cardShareButton.cmg-profile-style__share {
    min-height: 24px !important;
    min-width: 68px !important;
    padding: 0 10px !important;
    border-color: rgba(226,232,240,0.28) !important;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.085), rgba(255,255,255,0.024)),
      rgba(5,12,23,0.42) !important;
    color: rgba(248,251,255,0.92) !important;
    font-size: 8px !important;
    letter-spacing: 0.13em !important;
    transform: translateY(-3px) !important;
  }

  .cmg-profile-style__options {
    gap: 5px;
  }

  .cmg-profile-style__options button {
    min-height: 30px !important;
    padding: 0 5px !important;
    border-radius: 10px;
    font-size: 8px !important;
    letter-spacing: 0.085em;
  }

  .cmg-card__edition::after {
    animation: none !important;
    opacity: 0 !important;
  }

  .cmg-panel--profile-value {
    display: none !important;
  }
}

@media (min-width: 561px) and (max-width: 980px) {
  .cmg-command__status {
    display: none !important;
  }

  .cmg-command__nav {
    padding: 20px !important;
  }

  .cmg-hero {
    gap: 3px !important;
  }

  .cmg-intro {
    margin: 5px auto 1px !important;
    padding: 6px 16px 0 !important;
  }

  .cmg-intro .cmg-kicker {
    margin-bottom: 3px !important;
    font-size: 9px !important;
    letter-spacing: 0.12em !important;
  }

  .cmg-intro h1 {
    max-width: 320px !important;
    margin-right: auto !important;
    margin-left: auto !important;
    font-size: 28px !important;
    line-height: 1 !important;
    text-wrap: balance !important;
  }

  .cmg-intro .cmg-profile-tagline {
    max-width: 320px !important;
    margin-top: 5px !important;
    font-size: 13px !important;
    line-height: 1.32 !important;
  }

  .cmg-reward-strip {
    display: flex !important;
    position: relative !important;
    top: auto !important;
    z-index: 1 !important;
    width: min(320px, calc(100vw - 40px)) !important;
    max-width: min(320px, calc(100vw - 40px)) !important;
    height: auto !important;
    margin: 1px auto 5px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .cmg-free-hook {
    display: inline-flex !important;
    width: auto !important;
    min-height: 12px !important;
    padding: 0 !important;
    gap: 6px !important;
    color: rgba(223,232,244,0.62) !important;
    text-align: center !important;
  }

  .cmg-free-hook span,
  .cmg-free-hook strong {
    display: inline !important;
    font-size: 7px !important;
    letter-spacing: 0.12em !important;
    line-height: 1 !important;
  }

  .cmg-free-hook span::after {
    margin-left: 6px !important;
  }

  .cmg-mobile-buy-cta {
    display: none !important;
  }

  .cmg-profile-tabs {
    position: sticky !important;
    top: 64px !important;
    z-index: 18 !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 4px !important;
    width: calc(100vw - 24px) !important;
    max-width: 366px !important;
    min-height: 38px !important;
    margin: 3px auto 6px !important;
    padding: 3px !important;
    border: 1px solid rgba(226,232,240,0.14) !important;
    border-radius: 13px !important;
    background:
      linear-gradient(180deg, rgba(13,24,42,0.90), rgba(3,9,22,0.92)),
      rgba(3,9,22,0.74) !important;
    box-shadow:
      0 10px 24px rgba(0,0,0,0.28),
      inset 0 1px 0 rgba(255,255,255,0.08),
      inset 0 0 0 1px rgba(255,255,255,0.025) !important;
    backdrop-filter: blur(16px) saturate(1.04) !important;
    -webkit-backdrop-filter: blur(16px) saturate(1.04) !important;
  }

  .cmg-profile-tabs__item,
  .cmg-profile-tabs a,
  .cmg-profile-tabs button {
    min-width: 0 !important;
    min-height: 32px !important;
    padding: 0 5px !important;
    border: 0 !important;
    border-radius: 9px !important;
    background: transparent !important;
    box-shadow: none !important;
    color: rgba(224,234,246,0.76) !important;
    font-family: var(--cmg-font-head) !important;
    font-size: 8px !important;
    font-weight: 900 !important;
    letter-spacing: 0.055em !important;
    line-height: 1.05 !important;
    text-align: center !important;
    text-transform: uppercase !important;
  }

  .cmg-profile-tabs__item:nth-child(3) {
    display: none !important;
  }

  .cmg-profile-tabs__item:nth-child(1),
  .cmg-profile-tabs__item:nth-child(2) {
    font-size: 0 !important;
  }

  .cmg-profile-tabs__item:nth-child(1)::after {
    content: "Clip Vault";
    display: block !important;
    font-size: 8px;
  }

  .cmg-profile-tabs__item:nth-child(2)::after {
    content: "Add Highlights";
    display: block !important;
    font-size: 8px;
  }

  .cmg-profile-tabs__item--cta {
    margin: 0 !important;
  }

  .cmg-card {
    width: min(296px, calc(100vw - 72px)) !important;
    max-width: calc(100vw - 72px) !important;
    border-radius: 22px !important;
  }

  .cmg-player-render {
    position: absolute !important;
    z-index: 6 !important;
    top: 24px !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    width: min(200px, 58vw) !important;
    max-width: min(200px, 58vw) !important;
    height: auto !important;
    margin: 0 !important;
    transform: translateX(-50%) scale(0.96) !important;
    transform-origin: center top !important;
    display: block !important;
    animation: none !important;
  }

  .cmg-player-render__image {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center top !important;
  }

  .cmg-player-render::before {
    top: 7% !important;
    left: 50% !important;
    width: 108% !important;
    height: 82% !important;
    transform: translateX(-50%) !important;
    filter: blur(13px) !important;
    opacity: 0.66 !important;
  }

  .cmg-player-render__shadow {
    left: 50% !important;
    right: auto !important;
    bottom: 8px !important;
    width: 112px !important;
    height: 14px !important;
    transform: translateX(-50%) rotate(-4deg) !important;
  }

  .cmg-profile-style {
    width: min(286px, calc(100vw - 82px)) !important;
    margin-top: 0 !important;
    gap: 4px !important;
    padding: 9px 0 0 !important;
  }

  .cmg-profile-style::before {
    left: 7% !important;
    right: 7% !important;
    top: -21px !important;
    height: 32px !important;
    filter: blur(8px) saturate(1.01) !important;
    opacity: 0.62 !important;
  }

  .cmg-profile-style::after {
    left: 18% !important;
    right: 18% !important;
    top: 5px !important;
    opacity: 0.22 !important;
  }

  .cmg-profile-style__head {
    min-height: 22px !important;
    gap: 8px !important;
    padding: 0 2px !important;
  }

  .cmg-profile-style__head > span {
    font-size: 8px !important;
    letter-spacing: 0.17em !important;
  }

  .cmg-profile-style__share,
  #cardShareButton.cmg-profile-style__share {
    min-height: 24px !important;
    min-width: 68px !important;
    padding: 0 10px !important;
    border-color: rgba(226,232,240,0.28) !important;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.085), rgba(255,255,255,0.024)),
      rgba(5,12,23,0.42) !important;
    color: rgba(248,251,255,0.92) !important;
    font-size: 8px !important;
    letter-spacing: 0.13em !important;
    transform: translateY(-3px) !important;
  }

  .cmg-profile-style__options {
    gap: 5px !important;
  }

  .cmg-profile-style__options button {
    min-height: 30px !important;
    padding: 0 5px !important;
    border-radius: 10px !important;
    font-size: 8px !important;
    letter-spacing: 0.085em !important;
  }

  .cmg-panel--profile-value {
    display: none !important;
  }
}

/* ===============================================================
   Redemption MVP Phase 1: visible available clips card
=============================================================== */

.cmg-available-clips-box {
  border-color: rgba(93, 242, 164, 0.42);
  background:
    radial-gradient(circle at 14% 0%, rgba(93, 242, 164, 0.18), transparent 38%),
    linear-gradient(135deg, rgba(93, 242, 164, 0.12), rgba(54, 169, 255, 0.055)),
    rgba(5, 12, 23, 0.72);
  box-shadow:
    0 16px 34px rgba(0,0,0,0.24),
    0 0 28px rgba(93, 242, 164, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.12);
}

.cmg-available-clips-box__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cmg-available-clips-box__head strong {
  color: #b8ffcf;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.cmg-available-clips-box__head span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(93, 242, 164, 0.42);
  border-radius: 999px;
  background: rgba(93, 242, 164, 0.12);
  color: #dfffee;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.cmg-available-clips-box p {
  margin: 0;
  color: rgba(218, 228, 242, 0.82);
  font-size: 13px;
  line-height: 1.45;
}

.cmg-clip-activity {
  display: grid;
  gap: 14px;
  padding: 17px;
  border: 1px solid rgba(141, 232, 255, 0.22);
  border-radius: 12px;
  background:
    radial-gradient(circle at 12% 0%, rgba(141, 232, 255, 0.12), transparent 34%),
    radial-gradient(circle at 100% 12%, rgba(93, 242, 164, 0.07), transparent 30%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.90), rgba(3, 9, 22, 0.82));
  box-shadow:
    0 16px 34px rgba(0,0,0,0.22),
    inset 0 1px 0 rgba(255,255,255,0.10);
}

.cmg-clip-activity[hidden],
.cmg-clip-activity__timeline[hidden],
.cmg-clip-activity__toggle[hidden] {
  display: none;
}

.cmg-clip-activity__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cmg-clip-activity__header .cmg-kicker {
  margin-top: 8px;
}

.cmg-clip-activity h2,
.cmg-clip-activity h3,
.cmg-clip-activity h4,
.cmg-clip-activity p {
  margin: 0;
}

.cmg-clip-activity h2 {
  color: #f8fafc;
  font-size: 18px;
}

.cmg-clip-activity h3,
.cmg-clip-activity h4 {
  color: rgba(186,224,255,0.84);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cmg-clip-activity__toggle {
  flex: 0 0 auto;
  min-height: 32px;
  border: 0;
  background: transparent;
  color: #b8ffcf;
  cursor: pointer;
  font-family: var(--cmg-font-head);
  font-size: 12px;
  font-weight: 900;
}

.cmg-clip-activity__latest {
  display: grid;
  gap: 7px;
}

.cmg-clip-activity__latest-main {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(93,242,164,0.20);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.015)),
    rgba(93,242,164,0.055);
}

.cmg-clip-activity__latest-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(93,242,164,0.52);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 25%, rgba(255,255,255,0.22), transparent 40%),
    rgba(93,242,164,0.15);
  color: #dfffee;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 0 18px rgba(93,242,164,0.12);
}

.cmg-clip-activity__latest-text,
.cmg-clip-activity__event-text {
  min-width: 0;
}

.cmg-clip-activity__latest-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cmg-clip-activity__label {
  display: block;
  color: #f8fafc;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
}

.cmg-clip-activity__latest-main .cmg-clip-activity__label {
  font-size: 16px;
}

.cmg-clip-activity__message {
  display: block;
  margin-top: 4px;
  color: rgba(218,228,242,0.76);
  font-size: 13px;
  line-height: 1.4;
}

.cmg-clip-activity__time,
.cmg-clip-activity__event-time {
  color: rgba(186,224,255,0.84);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
  white-space: nowrap;
}

.cmg-clip-activity__time {
  flex: 0 0 auto;
  text-align: right;
}

.cmg-clip-activity__timeline {
  display: grid;
  gap: 12px;
  padding-top: 2px;
}

.cmg-clip-activity__events {
  display: grid;
  gap: 15px;
}

.cmg-clip-activity__group {
  display: grid;
  gap: 9px;
}

.cmg-clip-activity__event {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  position: relative;
  padding: 0 0 13px 24px;
}

.cmg-clip-activity__event:last-child {
  padding-bottom: 0;
}

.cmg-clip-activity__event::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 21px;
  bottom: -4px;
  width: 1px;
  background: rgba(141,232,255,0.18);
}

.cmg-clip-activity__event:last-child::before {
  display: none;
}

.cmg-clip-activity__dot {
  position: absolute;
  left: 0;
  top: 5px;
  width: 13px;
  height: 13px;
  border: 1px solid rgba(141,232,255,0.42);
  border-radius: 50%;
  background: #07111f;
  box-shadow: 0 0 0 3px rgba(141,232,255,0.06);
}

.cmg-clip-activity__event .cmg-clip-activity__message {
  margin-top: 3px;
  color: rgba(218,228,242,0.66);
  font-size: 12px;
}

.cmg-clip-activity__empty {
  display: grid;
  gap: 5px;
  padding: 13px 14px;
  border: 1px dashed rgba(141,232,255,0.18);
  border-radius: 12px;
  background: rgba(255,255,255,0.025);
}

.cmg-clip-activity__empty strong {
  color: rgba(248,250,252,0.92);
  font-size: 14px;
}

.cmg-clip-activity__empty span {
  color: rgba(218,228,242,0.68);
  font-size: 13px;
  line-height: 1.4;
}

@media (min-width: 981px) {
  .cmg-profile-column--clips.cmg-vault-short .cmg-panel--stream {
    order: 1;
  }

  .cmg-profile-column--clips.cmg-vault-short #availableClipsBox {
    order: 2;
  }

  .cmg-profile-column--clips.cmg-vault-short #clipActivityCard {
    order: 3;
  }

  .cmg-profile-column--clips.cmg-vault-long #availableClipsBox {
    order: 1;
  }

  .cmg-profile-column--clips.cmg-vault-long #clipActivityCard {
    order: 2;
  }

  .cmg-profile-column--clips.cmg-vault-long .cmg-panel--stream {
    order: 3;
  }

  .cmg-profile-column--clips .cmg-panel--moments {
    order: 4;
  }

  .cmg-profile-column--clips.cmg-vault-short .cmg-panel--stream {
    min-height: 0;
  }

  .cmg-profile-column--clips.cmg-vault-short .cmg-stream {
    min-height: 0;
  }

  .cmg-profile-column--clips.cmg-vault-empty .cmg-panel--stream {
    min-height: 0;
    padding-bottom: 16px;
  }
}

@media (max-width: 980px) {
  .cmg-profile-column--clips #availableClipsBox {
    order: 1;
  }

  .cmg-profile-column--clips #clipActivityCard {
    order: 2;
  }

  .cmg-profile-column--clips .cmg-panel--stream {
    order: 3;
  }

  .cmg-profile-column--clips .cmg-panel--moments {
    order: 4;
  }
}

.cmg-request-clip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  margin-top: 4px;
  border: 1px solid rgba(93, 242, 164, 0.52);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.03)),
    linear-gradient(135deg, rgba(93,242,164,0.32), rgba(34,197,94,0.58));
  color: #effff6;
  cursor: pointer;
  font-family: var(--cmg-font-head);
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0.01em;
  box-shadow:
    0 10px 22px rgba(0,0,0,0.22),
    0 0 18px rgba(93,242,164,0.12),
    inset 0 1px 0 rgba(255,255,255,0.18);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.cmg-request-clip-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.25);
  transform: none;
  box-shadow: none;
}

.cmg-request-clip-btn:disabled:hover {
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

.cmg-clip-new-badge {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  margin-left: 7px;
  padding: 2px 7px;
  border: 1px solid rgba(93, 242, 164, 0.36);
  border-radius: 999px;
  background: rgba(93, 242, 164, 0.11);
  color: #c8ffdd;
  font-family: var(--cmg-font-body);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  vertical-align: middle;
}

.cmg-available-clips-box small {
  display: block;
  margin-top: 4px;
  color: rgba(218, 228, 242, 0.72);
  font-size: 11px;
  line-height: 1.35;
}

.cmg-available-clips-box.is-empty {
  border-color: rgba(226,232,240,0.16);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.060), transparent 26% 78%, color-mix(in srgb, var(--mvp-accent), transparent 90%)),
    rgba(5,12,23,0.52);
}

.cmg-available-clips-box.is-empty .cmg-available-clips-box__head strong {
  color: #fff;
}

.cmg-available-clips-box.is-empty .cmg-available-clips-box__head span {
  border-color: rgba(226,232,240,0.20);
  background: rgba(255,255,255,0.055);
  color: rgba(226,232,240,0.78);
}

.cmg-available-clips-box.is-empty .cmg-request-clip-btn {
  border-color: color-mix(in srgb, var(--mvp-accent), transparent 62%);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.024)),
    linear-gradient(135deg, color-mix(in srgb, var(--mvp-accent), transparent 84%), rgba(5,12,23,0.74));
  color: rgba(246,250,255,0.94);
}

@media (max-width: 560px) {
  .cmg-available-clips-box__head {
    align-items: flex-start;
  }

  .cmg-available-clips-box__head span {
    font-size: 11px;
  }

  .cmg-request-clip-btn {
    min-height: 48px;
  }
}

/* ===============================================================
   Redemption MVP Phase 2: Request Another Clip modal shell
=============================================================== */

.cmg-redemption-modal {
  position: fixed;
  inset: 0;
  z-index: 9400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.cmg-redemption-modal.is-open {
  display: flex;
}

.cmg-redemption-modal__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(93, 242, 164, 0.12), transparent 34%),
    rgba(1, 8, 23, 0.84);
  backdrop-filter: blur(16px);
}

.cmg-redemption-modal__panel {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(820px, 92vh);
  overflow: auto;
  border: 1px solid rgba(93, 242, 164, 0.34);
  border-radius: 18px;
  background:
    radial-gradient(circle at 12% 0%, rgba(93, 242, 164, 0.14), transparent 38%),
    linear-gradient(135deg, rgba(255,255,255,0.10), transparent 24% 82%, rgba(54,169,255,0.07)),
    rgba(5, 12, 23, 0.98);
  box-shadow:
    0 30px 90px rgba(0,0,0,0.62),
    0 0 42px rgba(93,242,164,0.12),
    inset 0 1px 0 rgba(255,255,255,0.14);
}

.cmg-redemption-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid rgba(226,232,240,0.12);
}

.cmg-redemption-modal__head h2 {
  margin: 0;
  color: #fff;
  font-family: var(--cmg-font-head);
  font-size: clamp(26px, 5vw, 34px);
  line-height: 1.05;
}

.cmg-redemption-modal__head span {
  display: block;
  margin-top: 7px;
  color: rgba(218,228,242,0.76);
  font-size: 14px;
  line-height: 1.4;
}

.cmg-redemption-modal__close {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(226,232,240,0.20);
  border-radius: 12px;
  background: rgba(255,255,255,0.055);
  color: #fff;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.cmg-redemption-form {
  display: grid;
  gap: 14px;
  padding: 18px 22px 22px;
}

.cmg-redemption-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cmg-redemption-form label {
  display: grid;
  gap: 6px;
}

.cmg-redemption-form label > span {
  color: rgba(226,232,240,0.78);
  font-size: 12px;
  font-weight: 900;
}

.cmg-redemption-form input,
.cmg-redemption-form textarea {
  width: 100%;
  border: 1px solid rgba(226,232,240,0.18);
  border-radius: 12px;
  background: rgba(3,9,22,0.74);
  color: #fff;
  font: inherit;
  font-size: 14px;
  outline: none;
  padding: 12px 13px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.cmg-redemption-form textarea {
  resize: vertical;
  min-height: 104px;
}

.cmg-redemption-form input:focus,
.cmg-redemption-form textarea:focus {
  border-color: rgba(93,242,164,0.56);
  box-shadow:
    0 0 0 3px rgba(93,242,164,0.10),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

.cmg-redemption-form__notice {
  display: grid;
  gap: 4px;
  padding: 13px;
  border: 1px solid rgba(141,232,255,0.20);
  border-radius: 13px;
  background:
    linear-gradient(135deg, rgba(141,232,255,0.08), rgba(93,242,164,0.055)),
    rgba(255,255,255,0.035);
}

.cmg-redemption-form__notice strong {
  color: #dfffee;
  font-size: 13px;
}

.cmg-redemption-form__notice span {
  color: rgba(218,228,242,0.72);
  font-size: 12px;
  line-height: 1.4;
}

.cmg-redemption-form__error {
  border: 1px solid rgba(248,113,113,0.42);
  border-radius: 12px;
  background: rgba(127,29,29,0.28);
  color: #fecaca;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  padding: 11px 12px;
}

.cmg-redemption-form__error[hidden] {
  display: none;
}

.cmg-redemption-form__submit {
  min-height: 48px;
  border: 1px solid rgba(93,242,164,0.56);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.13), rgba(255,255,255,0.03)),
    linear-gradient(135deg, rgba(93,242,164,0.32), rgba(34,197,94,0.62));
  color: #effff6;
  cursor: pointer;
  font-family: var(--cmg-font-head);
  font-size: 15px;
  font-weight: 950;
  box-shadow:
    0 12px 24px rgba(0,0,0,0.26),
    0 0 22px rgba(93,242,164,0.12),
    inset 0 1px 0 rgba(255,255,255,0.18);
}

.cmg-redemption-form__submit:hover {
  border-color: rgba(184,255,207,0.76);
  transform: translateY(-1px);
}

.cmg-redemption-form__topup {
  color: rgba(218,228,242,0.70);
  font-size: 12px;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cmg-redemption-success {
  padding: 26px 24px 24px;
  text-align: center;
}

.cmg-redemption-success h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(25px, 5vw, 34px);
  line-height: 1.08;
}

.cmg-redemption-success p:not(.cmg-kicker) {
  margin: 12px auto 18px;
  max-width: 420px;
  color: rgba(218,228,242,0.76);
  font-size: 14px;
  line-height: 1.5;
}

body.cmg-redemption-lock {
  overflow: hidden;
}

@media (max-width: 560px) {
  .cmg-redemption-modal {
    align-items: flex-end;
    padding: 10px;
  }

  .cmg-redemption-modal__panel {
    width: 100%;
    max-height: 90vh;
    border-radius: 18px 18px 14px 14px;
  }

  .cmg-redemption-modal__head {
    padding: 18px 18px 14px;
  }

  .cmg-redemption-form {
    padding: 16px 18px 20px;
  }

  .cmg-redemption-form__grid {
    grid-template-columns: 1fr;
  }
}

/* Redemption MVP: checkout-aligned field notes + readonly email */

.cmg-redemption-field-note {
  display: block;
  margin-top: 0;
  color: rgba(218,228,242,0.62);
  font-size: 11px;
  line-height: 1.35;
}

.cmg-redemption-form input[readonly] {
  border-color: rgba(93,242,164,0.34);
  background:
    linear-gradient(135deg, rgba(93,242,164,0.08), rgba(3,9,22,0.78)),
    rgba(3,9,22,0.74);
  color: rgba(239,255,246,0.96);
  cursor: default;
}

.cmg-redemption-form input[readonly]:focus {
  border-color: rgba(93,242,164,0.42);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

/* Redemption MVP refinement: cleaner readonly email alignment */

.cmg-redemption-form label {
  align-content: start;
}

.cmg-redemption-form label > span {
  min-height: 16px;
  line-height: 1.25;
}

.cmg-redemption-field-note {
  min-height: 15px;
}

.cmg-redemption-form input[readonly] {
  opacity: 0.82;
}

/* ===============================================================
   Redemption MVP: optional advanced details collapse
=============================================================== */

.cmg-redemption-advanced-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  border: 1px dashed rgba(226,232,240,0.18);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  color: rgba(226,232,240,0.78);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.cmg-redemption-advanced-toggle:hover {
  border-color: rgba(93,242,164,0.34);
  background: rgba(93,242,164,0.05);
  color: #effff6;
}

.cmg-redemption-advanced-toggle.is-open {
  border-color: rgba(93,242,164,0.42);
  background:
    linear-gradient(135deg, rgba(93,242,164,0.08), rgba(54,169,255,0.03)),
    rgba(255,255,255,0.035);
  color: #dfffee;
}

.cmg-redemption-advanced {
  display: grid;
  gap: 14px;
  margin-top: -2px;
}

.cmg-redemption-form__grid--advanced {
  margin-top: -2px;
}

/* ===============================================================
   Redemption MVP: checkout-style clip details disclosure
=============================================================== */

.cmg-redemption-form__grid--top {
  grid-template-columns: 1fr;
}

.cmg-redemption-details {
  display: block;
  border: 1px solid rgba(226,232,240,0.16);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.045), transparent 72%),
    rgba(255,255,255,0.025);
  overflow: hidden;
}

.cmg-redemption-details summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 14px;
  cursor: pointer;
  list-style: none;
}

.cmg-redemption-details summary::-webkit-details-marker {
  display: none;
}

.cmg-redemption-details summary strong {
  color: #fff;
  font-size: 14px;
}

.cmg-redemption-details summary span {
  color: rgba(141,232,255,0.78);
  font-size: 12px;
}

.cmg-redemption-details[open] summary {
  border-bottom: 1px solid rgba(226,232,240,0.12);
}

.cmg-redemption-details[open] summary::after {
  content: "▲";
}

.cmg-redemption-details summary::after {
  content: "▼";
  margin-left: auto;
  color: rgba(226,232,240,0.58);
  font-size: 11px;
}

.cmg-redemption-form__grid--details {
  padding: 14px;
}

.cmg-redemption-form__full {
  grid-column: 1 / -1;
}

.redemption-multi-clip-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 14px 14px;
}

.cmg-redemption-form.is-redemption-first-collapsed #redemptionMomentField,
.cmg-redemption-form.is-redemption-first-collapsed [data-redemption-first-field] {
  display: none;
}

.redemption-clip-one-edit-highlight {
  border-radius: 14px;
  box-shadow: 0 0 0 2px rgba(141,232,255,0.26), 0 14px 38px rgba(15,23,42,0.18);
  transition: box-shadow 0.25s ease;
}

.redemption-clip-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(226,232,240,0.14);
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  padding: 12px;
  overflow: hidden;
  transition: opacity 0.22s ease, max-height 0.22s ease, margin 0.22s ease, padding 0.22s ease, border-color 0.2s ease;
}

.redemption-clip-summary.is-complete {
  border-color: rgba(34,197,94,0.34);
}

.redemption-clip-summary strong {
  display: block;
  color: #fff;
  font-size: 13px;
  margin-bottom: 4px;
}

.redemption-clip-summary p {
  margin: 0 0 4px;
  color: rgba(226,232,240,0.92);
  font-size: 13px;
  line-height: 1.35;
}

.redemption-clip-summary span {
  display: block;
  color: rgba(226,232,240,0.62);
  font-size: 12px;
  line-height: 1.35;
}

.redemption-clip-summary__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.redemption-clip-summary__edit,
.redemption-clip-summary__remove,
.redemption-clip-remove-btn,
.redemption-add-clip-btn {
  border: 1px solid rgba(141,232,255,0.34);
  border-radius: 10px;
  background: rgba(141,232,255,0.10);
  color: #e0faff;
  cursor: pointer;
  font-weight: 800;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.redemption-clip-summary__edit,
.redemption-clip-summary__remove,
.redemption-clip-remove-btn {
  flex-shrink: 0;
  padding: 8px 10px;
  font-size: 12px;
}

.redemption-clip-summary__remove,
.redemption-clip-remove-btn {
  border-color: rgba(248,113,113,0.32);
  background: rgba(248,113,113,0.08);
  color: #fecaca;
}

.redemption-add-clip-btn {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
}

.redemption-clip-summary__edit:hover,
.redemption-clip-summary__remove:hover,
.redemption-clip-remove-btn:hover,
.redemption-add-clip-btn:hover {
  border-color: rgba(141,232,255,0.62);
  background: rgba(141,232,255,0.16);
  transform: translateY(-1px);
}

.redemption-clip-summary__remove:hover,
.redemption-clip-remove-btn:hover {
  border-color: rgba(248,113,113,0.58);
  background: rgba(248,113,113,0.14);
}

.redemption-add-clip-btn:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.redemption-add-clip-btn:disabled:hover {
  border-color: rgba(141,232,255,0.34);
  background: rgba(141,232,255,0.10);
}

.redemption-clip-form {
  border: 1px solid rgba(226,232,240,0.14);
  border-radius: 14px;
  background: rgba(2,6,23,0.32);
  padding: 14px;
  overflow: hidden;
  transition: opacity 0.22s ease, max-height 0.22s ease, margin 0.22s ease, padding 0.22s ease, border-color 0.2s ease;
}

.redemption-clip-form__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.redemption-clip-form h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 16px;
}

.redemption-clip-form__head h3 {
  margin: 0;
}

.redemption-clip-summary.is-removing,
.redemption-clip-form.is-removing {
  opacity: 0;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  pointer-events: none;
}

.redemption-game-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.redemption-game-toggle label {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(226,232,240,0.14);
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  padding: 10px;
  color: rgba(226,232,240,0.9);
  cursor: pointer;
  font-size: 12px;
}

.redemption-game-toggle input {
  width: auto;
  margin: 0;
}

.redemption-inherited-game {
  border: 1px solid rgba(34,197,94,0.24);
  border-radius: 10px;
  background: rgba(34,197,94,0.10);
  color: #bbf7d0;
  font-size: 12px;
  line-height: 1.4;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.redemption-inherited-game.is-hidden,
.redemption-game-fields.is-hidden {
  display: none;
}

.redemption-clip-note {
  color: rgba(226,232,240,0.74);
  font-size: 12px;
  line-height: 1.45;
}

.cmg-redemption-field-error {
  border-color: rgba(248,113,113,0.9) !important;
  box-shadow: 0 0 0 1px rgba(248,113,113,0.28) !important;
}

.redemption-remove-clip-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.redemption-remove-clip-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.redemption-remove-clip-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2,6,23,0.72);
  backdrop-filter: blur(10px);
}

.redemption-remove-clip-modal__dialog {
  position: relative;
  width: min(420px, 100%);
  border: 1px solid rgba(226,232,240,0.16);
  border-radius: 18px;
  background: rgba(8,13,24,0.96);
  box-shadow: 0 24px 70px rgba(0,0,0,0.42);
  color: #e5edf7;
  padding: 20px;
  outline: none;
}

.redemption-remove-clip-modal__dialog h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 20px;
}

.redemption-remove-clip-modal__dialog p {
  margin: 0;
  color: rgba(226,232,240,0.78);
  font-size: 13px;
  line-height: 1.45;
}

.redemption-remove-clip-modal__summary {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  border: 1px solid rgba(226,232,240,0.12);
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  padding: 12px;
}

.redemption-remove-clip-modal__summary span {
  color: rgba(226,232,240,0.84);
  font-size: 12px;
  line-height: 1.35;
}

.redemption-remove-clip-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.redemption-remove-clip-modal__actions button {
  border: 1px solid rgba(226,232,240,0.16);
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
  padding: 10px 14px;
}

.redemption-remove-clip-modal__keep {
  background: rgba(255,255,255,0.06);
  color: #e5edf7;
}

.redemption-remove-clip-modal__remove {
  background: rgba(248,113,113,0.16);
  border-color: rgba(248,113,113,0.34) !important;
  color: #fecaca;
}

/* Disable old optional-details experiment if still present */
.cmg-redemption-advanced-toggle,
.cmg-redemption-advanced {
  display: none !important;
}

/* Redemption MVP: compact mobile details fields */

@media (max-width: 560px) {
  .cmg-redemption-form__grid--details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .cmg-redemption-form__grid--details > label:has(#redemptionArena),
  .cmg-redemption-form__grid--details > label:has(#redemptionRink),
  .cmg-redemption-form__grid--details > label:has(#redemptionPlayerDetails) {
    grid-column: 1 / -1;
  }

  .cmg-redemption-form__grid--details input {
    min-width: 0;
  }

  .cmg-redemption-details summary {
    min-height: 44px;
  }

  .cmg-redemption-details summary strong {
    font-size: 13px;
  }

  .cmg-redemption-details summary span {
    font-size: 11px;
  }

  .redemption-game-toggle {
    grid-template-columns: 1fr;
  }

  .redemption-clip-summary {
    align-items: flex-start;
  }
}

/* Redemption MVP: modal must sit above all profile controls */

.cmg-redemption-modal {
  z-index: 99999 !important;
  pointer-events: auto !important;
}

.cmg-redemption-modal.is-open {
  pointer-events: auto !important;
}

.cmg-redemption-modal__backdrop,
.cmg-redemption-modal__panel {
  pointer-events: auto !important;
}

/* Redemption MVP: sending and pending states */

.cmg-redemption-modal__panel {
  position: relative;
}

.cmg-redemption-sending {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 8, 23, 0.72);
  backdrop-filter: blur(10px);
}

.cmg-redemption-sending[hidden] {
  display: none !important;
}

.cmg-redemption-sending__box {
  width: min(320px, 92%);
  padding: 18px;
  border: 1px solid rgba(255, 215, 128, 0.35);
  border-radius: 18px;
  background: rgba(8, 18, 38, 0.96);
  color: #f8fafc;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

.cmg-redemption-sending__box strong {
  display: block;
  font-size: 15px;
  margin-bottom: 6px;
}

.cmg-redemption-sending__box span {
  display: block;
  font-size: 13px;
  color: rgba(226, 232, 240, 0.78);
}

.cmg-redemption-status {
  margin-top: 12px;
  padding: 14px 15px;
  border: 1px solid rgba(96, 165, 250, 0.26);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.72);
  color: #e5eefb;
}

.cmg-redemption-status strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.cmg-redemption-status span {
  display: block;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(203, 213, 225, 0.82);
}

#redemption-confirmation-status {
  margin: 16px auto 18px;
  padding: 18px 18px;
  max-width: min(960px, calc(100% - 24px));
  border-color: rgba(93, 242, 164, 0.44);
  background:
    linear-gradient(135deg, rgba(20, 184, 166, 0.16), rgba(15, 23, 42, 0.92)),
    rgba(15, 23, 42, 0.94);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

#redemption-confirmation-status[data-state="loading"],
#redemption-confirmation-status[data-state="checking"] {
  border-color: rgba(96, 165, 250, 0.42);
  background:
    linear-gradient(135deg, rgba(96, 165, 250, 0.15), rgba(15, 23, 42, 0.92)),
    rgba(15, 23, 42, 0.94);
}

#redemption-confirmation-status[data-state="invalid"],
#redemption-confirmation-status[data-state="error"] {
  border-color: rgba(248, 113, 113, 0.42);
  background:
    linear-gradient(135deg, rgba(248, 113, 113, 0.14), rgba(15, 23, 42, 0.92)),
    rgba(15, 23, 42, 0.94);
}

#redemption-confirmation-status strong {
  font-size: clamp(18px, 4vw, 24px);
  line-height: 1.15;
  color: #f8fafc;
}

.cmg-redemption-status__meta {
  display: grid;
  gap: 4px;
  margin: 12px 0 10px;
  padding: 10px 12px;
  border: 1px solid rgba(226, 232, 240, 0.13);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.cmg-redemption-status__meta p {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(226, 232, 240, 0.88);
}

.cmg-redemption-status__meta strong {
  display: inline;
  margin: 0;
  font-size: inherit;
  color: rgba(248, 250, 252, 0.96);
}

#redemption-confirmation-status span {
  margin-top: 8px;
  max-width: 640px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.9);
  white-space: pre-line;
}

@media (max-width: 680px) {
  #redemption-confirmation-status {
    margin: 12px 12px 16px;
    padding: 16px;
    scroll-margin-top: 16px;
  }
}

/* Redemption MVP: resend confirmation modal */

.cmg-redemption-resend-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: grid;
  place-items: center;
  padding: 18px;
}

.cmg-redemption-resend-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 23, 0.72);
  backdrop-filter: blur(8px);
}

.cmg-redemption-resend-modal__panel {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 22px;
  border: 1px solid rgba(255, 215, 128, 0.3);
  border-radius: 20px;
  background: rgba(8, 18, 38, 0.98);
  color: #f8fafc;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.42);
}

.cmg-redemption-resend-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: rgba(226, 232, 240, 0.8);
  font-size: 24px;
  cursor: pointer;
}

.cmg-redemption-resend-modal__panel strong {
  display: block;
  padding-right: 28px;
  font-size: 18px;
  line-height: 1.2;
}

.cmg-redemption-resend-modal__panel p {
  margin: 10px 0 8px;
  color: rgba(203, 213, 225, 0.82);
  font-size: 13px;
  line-height: 1.45;
}

.cmg-redemption-resend-modal__email {
  padding: 11px 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.8);
  color: #e0f2fe;
  font-size: 13px;
  word-break: break-all;
}

.cmg-redemption-resend-modal__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 16px;
}

.cmg-redemption-resend-modal__actions button {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.cmg-redemption-resend-modal__cancel {
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: rgba(15, 23, 42, 0.7);
  color: #e5e7eb;
}

.cmg-redemption-resend-modal__confirm {
  border: 1px solid rgba(255, 215, 128, 0.45);
  background: linear-gradient(135deg, #f7c948, #d99b1f);
  color: #111827;
}

@media (max-width: 520px) {
  .cmg-redemption-resend-modal__actions {
    flex-direction: column-reverse;
  }

  .cmg-redemption-resend-modal__actions button {
    width: 100%;
  }
}

/* Redemption MVP: better confirmation notice */

.cmg-redemption-notice {
  position: fixed;
  right: 18px;
  top: 18px;
  z-index: 2147483647;
  width: min(380px, calc(100vw - 36px));
  padding: 15px 16px;
  border: 1px solid rgba(255, 215, 128, 0.34);
  border-radius: 16px;
  background: rgba(8, 18, 38, 0.97);
  color: #f8fafc;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(10px);
  animation: cmgRedemptionNoticeIn 180ms ease-out both;
}

.cmg-redemption-notice strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  line-height: 1.25;
}

.cmg-redemption-notice span {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(226, 232, 240, 0.86);
}

.cmg-redemption-notice.is-hiding {
  animation: cmgRedemptionNoticeOut 220ms ease-in both;
}

@keyframes cmgRedemptionNoticeIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cmgRedemptionNoticeOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
}

@media (max-width: 640px) {
  .cmg-redemption-notice {
    top: auto;
    right: 12px;
    bottom: 86px;
    width: calc(100vw - 24px);
  }
}

/* Profile quick return + access */

.cmg-profile-lookup[hidden] {
  display: none !important;
}

.cmg-command.is-profile-lookup .cmg-reward-strip,
.cmg-command.is-profile-lookup .cmg-profile-tabs,
.cmg-command.is-profile-lookup .cmg-command__shell {
  display: none !important;
}

.cmg-command.is-profile-lookup {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.cmg-command.is-profile-lookup .cmg-intro {
  margin-top: 8px;
  margin-bottom: 0;
  padding-bottom: 0;
}

.cmg-command.is-profile-lookup .cmg-intro .cmg-profile-tagline {
  margin-top: 7px;
}

.cmg-profile-lookup {
  position: relative;
  z-index: 1;
  width: min(700px, calc(100% - 32px));
  margin: 14px auto 24px;
}

.cmg-profile-lookup.has-saved-profile {
  width: min(980px, calc(100% - 32px));
}

.cmg-profile-lookup__grid {
  display: grid;
  grid-template-columns: minmax(0, 680px);
  justify-content: center;
  gap: 18px;
}

.cmg-profile-lookup.has-saved-profile .cmg-profile-lookup__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cmg-profile-lookup__card {
  padding: 20px;
  border: 1px solid rgba(255, 215, 128, 0.2);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 215, 128, 0.08), transparent 34%),
    rgba(8, 18, 38, 0.88);
  color: #f8fafc;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.cmg-profile-lookup__card h2 {
  margin: 5px 0 8px;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.08;
}

.cmg-profile-lookup__card p {
  margin: 0 0 14px;
  color: rgba(226, 232, 240, 0.82);
  line-height: 1.5;
}

.cmg-profile-lookup__card strong {
  display: block;
  margin: 8px 0 18px;
  color: #f7c948;
  font-size: 18px;
  word-break: break-word;
}

.cmg-profile-lookup__field {
  display: grid;
  gap: 7px;
  margin: 14px 0 12px;
  color: rgba(248, 250, 252, 0.88);
  font-size: 13px;
  font-weight: 800;
}

.cmg-profile-lookup__field input {
  min-height: 48px;
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  background: rgba(2, 8, 23, 0.62);
  color: #f8fafc;
  font: inherit;
  padding: 0 14px;
  outline: none;
}

.cmg-profile-lookup__field input:focus {
  border-color: rgba(255, 215, 128, 0.54);
  box-shadow: 0 0 0 3px rgba(255, 215, 128, 0.12);
}

.cmg-profile-lookup__primary {
  min-height: 46px;
  border: 1px solid rgba(255, 215, 128, 0.45);
  border-radius: 999px;
  background: linear-gradient(135deg, #f7c948, #d99b1f);
  color: #101827;
  font-weight: 900;
  cursor: pointer;
  padding: 0 18px;
}

.cmg-profile-lookup__primary:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.cmg-profile-lookup__note {
  margin-top: 12px !important;
  font-size: 12px;
  color: rgba(203, 213, 225, 0.68) !important;
}

.cmg-profile-lookup__error {
  margin: -4px 0 12px !important;
  color: #fecaca !important;
  font-size: 12px;
  font-weight: 800;
}

.cmg-profile-load-error__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 18px;
}

.cmg-profile-load-error__actions .cmg-secondary-btn {
  min-width: 220px;
  text-align: center;
}

@media (max-width: 640px) {
  .cmg-profile-load-error__actions {
    flex-direction: column;
  }

  .cmg-profile-load-error__actions .cmg-secondary-btn {
    width: 100%;
  }
}

.cmg-profile-lookup__preview {
  margin: 10px 0 0;
  color: rgba(250, 204, 21, 0.92);
  font-size: 0.9rem;
  font-weight: 700;
}

.cmg-profile-lookup__primary:disabled,
.cmg-profile-lookup__primary[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.cmg-command.is-profile-lookup .cmg-command__footer {
  margin-top: 2px;
  margin-bottom: 20px;
}

.cmg-panel--quick-access {
  position: relative;
  overflow: hidden;
  min-height: 0;
  border-color: rgba(255, 215, 128, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 215, 128, 0.055), rgba(255, 255, 255, 0.018) 52%, rgba(2, 8, 23, 0.08)),
    rgba(8, 18, 38, 0.72);
  box-shadow:
    0 0 0 1px rgba(255, 215, 128, 0.035),
    0 16px 46px rgba(0, 0, 0, 0.18);
}

.cmg-panel--quick-access::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, rgba(247, 201, 72, 0.72), rgba(141, 232, 255, 0.16), transparent);
}

.cmg-quick-access-preview {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 12px;
}

.cmg-quick-access-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.cmg-panel--quick-access .cmg-secondary-btn {
  flex: 1 1 128px;
  width: auto;
  min-height: 38px;
  padding: 0 13px;
}

@media (max-width: 760px) {
  .cmg-command.is-profile-lookup .cmg-intro {
    margin-top: 4px;
  }

  .cmg-profile-lookup {
    width: min(100% - 24px, 560px);
    margin-top: 12px;
    margin-bottom: 22px;
  }

  .cmg-profile-lookup__grid {
    grid-template-columns: 1fr;
  }

  .cmg-profile-lookup.has-saved-profile .cmg-profile-lookup__grid {
    grid-template-columns: 1fr;
  }

  .cmg-profile-lookup__card {
    padding: 18px;
    border-radius: 18px;
  }

  .cmg-command.is-profile-lookup .cmg-command__footer {
    margin-bottom: 18px;
  }

  .cmg-quick-access-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .cmg-panel--quick-access .cmg-secondary-btn {
    min-width: 0;
  }
}
