/* CI-824-TW card synthesis; reuses town-service window chrome. */
/* Entry lives in the 道具 panel: the sealed 12-destination navigation is unchanged. */
.card-synthesis-entry-row { display: flex; justify-content: flex-end; padding: 4px 8px 0; }
.card-synthesis-entry { min-height: 36px; padding: 4px 12px; }
/* Fixed-height window: pool switch on top, the card list scrolls, the action footer always stays visible. */
.town-service-window.card-synthesis-window {
  left: 50%; transform: translateX(-50%); width: min(440px, calc(100% - 24px));
  height: calc(100% - 24px); max-height: calc(100% - 24px); overflow: hidden;
}
.card-synthesis-window > .titlebar { flex: 0 0 auto; }
.card-synthesis-pools {
  flex: 0 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin: 10px 12px 6px; padding: 3px;
  border-radius: 12px; background: rgb(120 140 170 / 18%); border: 1px solid rgb(255 255 255 / 55%);
}
.card-synthesis-window .card-synthesis-pools .card-synthesis-pool.card-synthesis-pool {
  min-height: 40px; padding: 2px 4px !important; display: grid; place-items: center; gap: 0; line-height: 1.15;
  border: 0 !important; border-radius: 9px !important; background: transparent !important; box-shadow: none !important;
  color: var(--glass-ink, #1c2a3a) !important; font: 600 13px var(--glass-font, sans-serif);
}
.card-synthesis-pool small { font-size: 11px; font-weight: 400; opacity: .75; }
.card-synthesis-window .card-synthesis-pools .card-synthesis-pool[aria-selected="true"] {
  background: rgb(255 255 255 / 88%) !important; color: #1f4f9a !important; text-shadow: none;
  box-shadow: 0 2px 8px rgb(10 20 40 / 16%), inset 0 1px 0 #fff !important;
}
.card-synthesis-holdings {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; padding: 2px 12px 8px;
  -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
}
.card-synthesis-row {
  display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 2px 6px; border-radius: 10px;
  background: rgb(255 255 255 / 30%); border: 1px solid transparent;
}
.card-synthesis-picked { background: rgb(255 255 255 / 62%); border-color: rgb(111 154 214 / 60%); }
.card-synthesis-name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; font-size: 14px; }
.card-synthesis-ineligible .card-synthesis-name { opacity: 0.6; }
.card-synthesis-reason { display: block; font-size: 11px; color: #8a2a1a; }
.card-synthesis-step { width: 36px; height: 36px; flex: 0 0 36px; padding: 0 !important; border-radius: 50% !important; font-size: 16px; }
.card-synthesis-qty { min-width: 48px; text-align: center; font-variant-numeric: tabular-nums; font-size: 13px; }
.card-synthesis-footer {
  flex: 0 0 auto; position: relative; display: grid; gap: 8px; padding: 10px 12px 12px;
  border-top: 1px solid rgb(255 255 255 / 55%); background: rgb(255 255 255 / 40%);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.card-synthesis-foot-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-synthesis-foot-row[hidden] { display: none; }
.card-synthesis-batch { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.card-synthesis-batch-value { min-width: 22px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; }
.card-synthesis-autofill { min-height: 36px; padding: 0 14px !important; border-radius: 18px !important; }
.card-synthesis-fill { display: flex; gap: 6px; }
.card-synthesis-most { min-height: 36px; padding: 0 12px !important; border-radius: 18px !important; }
.card-synthesis-count { display: flex; justify-content: space-between; font-size: 13px; font-variant-numeric: tabular-nums; }
.card-synthesis-upgrade { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--glass-ink, #1c2a3a); }
.card-synthesis-window .card-synthesis-submit.card-synthesis-submit {
  min-width: 132px; min-height: 42px; padding: 0 20px !important; border: 0 !important; border-radius: 21px !important;
  background: var(--glass-blue, linear-gradient(#6f9ad6, #3f69a8)) !important; color: #fff !important; font: 700 15px var(--glass-font, sans-serif);
  box-shadow: 0 4px 12px rgb(40 80 150 / 30%) !important;
}
.card-synthesis-window .card-synthesis-submit.card-synthesis-submit:disabled { opacity: .45; box-shadow: none !important; cursor: default; }
.card-synthesis-notice { margin: 0; font-size: 12px; color: #4b5a6a; cursor: pointer; }
.card-synthesis-notice[hidden] { display: none; }
.card-synthesis-info {
  position: relative; width: 18px; height: 18px; min-width: 18px; min-height: 18px; padding: 0; border-radius: 50%;
  display: inline-grid; place-items: center; font: 700 12px/1 var(--glass-font, sans-serif); cursor: pointer;
  color: #fff; background: linear-gradient(#6f9ad6, #3f69a8); border: 1px solid rgb(255 255 255 / 80%);
}
.card-synthesis-info::after { content: ''; position: absolute; inset: -12px; }
#game .window .card-synthesis-info.card-synthesis-info {
  width: 18px !important; height: 18px !important; min-width: 18px !important; min-height: 18px !important; padding: 0 !important;
  border-radius: 50% !important; border: 1px solid rgb(255 255 255 / 80%) !important;
  background: var(--glass-blue, linear-gradient(#6f9ad6, #3f69a8)) !important; color: #fff !important; font: 700 12px/1 var(--glass-font, sans-serif) !important;
}
.card-synthesis-info-panel {
  position: absolute; left: 12px; right: 12px; bottom: calc(100% + 6px); z-index: 5;
  padding: 10px 12px; border-radius: 14px; border: 1px solid rgb(255 255 255 / 75%);
  background: rgb(255 255 255 / 80%); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 12px 30px rgb(10 20 40 / 24%), inset 0 1px 0 #fff; color: #1c2a3a; font-size: 13px;
}
.card-synthesis-info-panel strong { display: block; margin-bottom: 4px; }
.card-synthesis-info-row { display: flex; justify-content: space-between; gap: 8px; margin: 4px 0; }
.card-synthesis-info-panel small { color: #4b5a6a; }
.card-synthesis-consumed { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 4px; }
.card-synthesis-consumed li { display: flex; align-items: center; gap: 6px; }
.card-synthesis-confirm-body { flex-direction: column; align-items: stretch; max-height: 320px; overflow-y: auto; }
.card-synthesis-confirm-body p { margin: 4px 0; }
.card-synthesis-confirm-note { font-size: 12px; color: #4b5a6a; }

/* Reveal stage: frosted glass over the game, RO card frames inside. */
.csr-stage {
  --csr-w: 84px; --csr-h: 112px; --csr-glow: 80 150 255;
  position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 16px;
  background: radial-gradient(circle at 50% 45%, rgb(12 20 36 / 30%), rgb(12 20 36 / 62%));
  -webkit-backdrop-filter: blur(6px) saturate(130%); backdrop-filter: blur(6px) saturate(130%);
  cursor: pointer; user-select: none; -webkit-user-select: none; outline: none; overflow: hidden;
}
.csr-stage[data-pool="BOSS"] { --csr-glow: 240 66 56; }
.csr-stage[data-pool="MVP"] { --csr-glow: 168 84 255; }
.csr-bb-effects { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
.csr-panel {
  position: relative; z-index: 1; width: min(calc(var(--csr-w) * 3 + 44px), 100%); max-height: calc(100dvh - 32px); overflow-y: auto;
  display: flex; flex-direction: column; gap: 10px; padding: 0 12px 12px; border-radius: 10px;
  border: 1px solid rgb(255 255 255 / 62%); background: rgb(255 255 255 / 58%);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 10px 28px rgb(10 20 40 / 24%), inset 0 1px 0 rgb(255 255 255 / 55%), 0 0 40px rgb(var(--csr-glow) / 25%);
  color: #1c2a3a; font-family: var(--glass-font, 'Microsoft JhengHei', 'PingFang TC', sans-serif); cursor: default;
}
.csr-title {
  position: sticky; top: 0; z-index: 5; margin: 0 -12px; padding: 7px 12px; text-align: center; font-size: 15px; font-weight: 700; letter-spacing: .04em;
  color: #fff; background: linear-gradient(rgb(90 130 190 / 88%), rgb(55 90 150 / 88%)); border-bottom: 1px solid rgb(255 255 255 / 40%);
  text-shadow: 0 1px 2px rgb(10 20 40 / 45%);
}
.csr-status { margin: 0; text-align: center; font-size: 13px; overflow-wrap: anywhere; }
.csr-actions { display: flex; justify-content: center; gap: 8px; }
.csr-actions:empty { display: none; }
.csr-actions button {
  min-height: 36px; min-width: 120px; padding: 2px 16px; border-radius: 12px; cursor: pointer; font: 600 14px var(--glass-font, sans-serif);
  border: 1px solid rgb(255 255 255 / 70%); background: rgb(255 255 255 / 50%); color: #1c2a3a; box-shadow: 0 2px 6px rgb(10 20 40 / 14%);
}
.csr-actions button.primary { border-color: transparent; background: linear-gradient(#6f9ad6, #3f69a8); color: #fff; }
.csr-lanes { display: grid; gap: 10px; }
/* Three cards plus two 8px gaps; the panel also accounts for lane/panel borders and padding. */
.csr-panel:has(.csr-compact) { --csr-w: 54px; }
.csr-lanes.csr-compact { --csr-w: 54px; --csr-h: 72px; gap: 6px; }
.csr-stage .csr-lanes.csr-compact { --csr-w: 54px; --csr-h: 72px; }
.csr-lane {
  position: relative; height: calc(var(--csr-h) + 18px); overflow: hidden; border-radius: 14px;
  background: rgb(12 18 30 / 62%);
  border: 1px solid rgb(255 255 255 / 45%); box-shadow: inset 0 0 18px rgb(0 0 0 / 40%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.csr-strip { position: absolute; top: 9px; left: 0; display: flex; gap: 8px; will-change: transform; }
.csr-marker {
  position: absolute; top: 4px; bottom: 4px; left: 50%; width: calc(var(--csr-w) + 8px); transform: translateX(-50%);
  border-radius: 10px; border: 2px solid rgb(255 226 150 / 85%); box-shadow: 0 0 14px rgb(var(--csr-glow) / 80%), inset 0 0 10px rgb(var(--csr-glow) / 45%); pointer-events: none;
}
.csr-card {
  position: relative; flex: 0 0 var(--csr-w); width: var(--csr-w); height: var(--csr-h); border-radius: 6px; overflow: hidden;
  border: 2px solid #8a6a32; background: linear-gradient(#f4e6c4, #d8c08a);
  box-shadow: 0 2px 6px rgb(0 0 0 / 45%), inset 0 0 0 1px rgb(255 245 210 / 70%);
}
.csr-card[data-pool="BOSS"] { border-color: #c48b22; }
.csr-card[data-pool="MVP"] { border-color: #a32d4d; }
.csr-card img { display: block; width: 100%; height: 100%; object-fit: cover; image-rendering: auto; }
.csr-card-name {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2px 3px; font-size: 10px; line-height: 1.2; text-align: center;
  color: #fff; background: linear-gradient(transparent, rgb(30 18 6 / 85%)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.csr-card-art .csr-card-name { opacity: 0; }
.csr-card-plain .csr-card-icon { position: absolute; inset: 14% 0 24%; display: grid; place-items: center; }
.csr-card-plain .csr-card-icon img { width: 24px; height: 24px; object-fit: contain; image-rendering: pixelated; }
.csr-card-plain .csr-card-name { color: #3a2a10; background: none; white-space: normal; font-weight: 700; }
.csr-compact .csr-card-name { font-size: 8px; }
.csr-hit { animation: csr-pop 520ms cubic-bezier(.2,1.4,.4,1) both; z-index: 2; }
.csr-landed .csr-target { box-shadow: 0 0 0 2px #fff, 0 0 22px 6px rgb(var(--csr-glow) / 95%); }
.csr-landed .csr-target .csr-card-name { opacity: 1; }
.csr-burst {
  position: absolute; left: 50%; top: 50%; width: calc(var(--csr-h) * 2.4); aspect-ratio: 1; transform: translate(-50%, -50%) scale(.2);
  border-radius: 50%; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(circle, rgb(255 255 255 / 95%), rgb(var(--csr-glow) / 70%) 35%, transparent 68%);
  animation: csr-burst 700ms ease-out forwards;
}
.csr-flash { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle, #fff, rgb(var(--csr-glow) / 60%) 45%, transparent 75%); opacity: 0; z-index: 3; mix-blend-mode: screen; }
.csr-flash-on { animation: csr-flash 520ms ease-out; }
.csr-upgraded .csr-target { box-shadow: 0 0 0 2px #fff, 0 0 26px 8px rgb(160 200 255 / 95%), 0 0 50px 14px rgb(150 110 255 / 70%); }
.csr-upgrade-badge {
  position: absolute; left: 50%; top: 2px; z-index: 4; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff; white-space: nowrap;
  background: linear-gradient(#8f7bff, #4f5fd8); border: 1px solid rgb(255 255 255 / 70%); box-shadow: 0 0 12px rgb(140 160 255 / 90%);
  transform: translateX(-50%); animation: csr-badge 600ms cubic-bezier(.2,1.4,.4,1) both;
}
.csr-upgraded { animation: csr-charge 1600ms ease-out; }
.csr-stopped .csr-strip { filter: grayscale(.4) brightness(.8); }
@keyframes csr-pop { 0% { transform: scale(1); } 40% { transform: scale(1.18); filter: brightness(1.8); } 100% { transform: scale(1.06); filter: brightness(1.05); } }
@keyframes csr-badge { 0% { transform: translateX(-50%) scale(.3); opacity: 0; } 60% { transform: translateX(-50%) scale(1.2); opacity: 1; } 100% { transform: translateX(-50%) scale(1); } }
@keyframes csr-charge { 0%, 100% { background-color: transparent; } 8%, 30% { background-color: rgb(120 110 255 / 45%); } 18% { background-color: rgb(220 230 255 / 60%); } }
@keyframes csr-burst { to { transform: translate(-50%, -50%) scale(1.15); opacity: 0; } }
@keyframes csr-flash { 0% { opacity: 0; } 18% { opacity: .9; } 100% { opacity: 0; } }
@media (max-width: 480px) {
  .csr-stage { --csr-w: 66px; --csr-h: 88px; padding: 10px; }
}



/* Single-card showcase after the marquee settles. */
.csr-panel { transition: opacity .35s ease, transform .35s ease; }
.csr-panel-out { opacity: 0; transform: scale(.94); pointer-events: none; }
.csr-show {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 16px; animation: csr-fade-in .3s ease both;
}
.csr-show-stage {
  --csr-sw: min(240px, 58vw); position: relative; width: var(--csr-sw); aspect-ratio: 3 / 4; display: grid; place-items: center;
}
.csr-show-smoke { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
/* Jets start at the card centre, behind the card, and grow toward the viewer: the card hides
   their core, only the plume that spills past the card edges shows. */
.csr-jet, .csr-drift {
  position: absolute; left: 50%; top: 50%; width: 150px; height: 150px; margin: -75px 0 0 -75px; border-radius: 50%;
  background: radial-gradient(circle, rgb(240 242 250 / 85%), rgb(205 212 230 / 45%) 40%, rgb(180 190 215 / 0%) 70%);
  filter: blur(8px); opacity: 0;
}
.csr-jet { animation: csr-jet 2300ms cubic-bezier(.1,.75,.3,1) forwards; }
.csr-drift { width: 120px; height: 120px; margin: -60px 0 0 -60px; animation: csr-drift 3600ms ease-in-out infinite; }
.csr-stage.csr-showing { background: radial-gradient(circle at 50% 45%, rgb(14 20 36 / 62%), rgb(6 10 20 / 86%)); }
.csr-show-card {
  position: relative; z-index: 2; width: 100%; height: 100%; border-radius: 12px; overflow: hidden;
  border: 3px solid #b48a3c; background: linear-gradient(#f6ead0, #dcc596);
  box-shadow: 0 0 0 1px rgb(255 245 215 / 80%) inset, 0 14px 36px rgb(0 0 0 / 45%), 0 0 40px rgb(var(--csr-glow) / 75%);
  animation: csr-card-in 700ms cubic-bezier(.2,1.3,.4,1) both;
}
.csr-show[data-pool="BOSS"] .csr-show-card { border-color: #d39a2a; }
.csr-show[data-pool="MVP"] .csr-show-card { border-color: #b03a5a; }
.csr-show-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.csr-show-plain { display: grid; place-items: center; align-content: center; gap: 12px; padding: 16px; }
.csr-show-plain .csr-show-icon { width: 48px; height: 48px; object-fit: contain; image-rendering: pixelated; }
.csr-show-plain-name { font: 700 18px var(--glass-font, sans-serif); color: #3a2a10; text-align: center; }
.csr-show .csr-show-badge {
  position: absolute; z-index: 4; top: -12px; left: 50%; padding: 2px 12px; border-radius: 999px; font: 700 14px var(--glass-font, sans-serif); color: #fff; white-space: nowrap;
  background: linear-gradient(#8f7bff, #4f5fd8); border: 1px solid rgb(255 255 255 / 75%); box-shadow: 0 0 16px rgb(140 160 255 / 95%);
  transform: translateX(-50%); animation: csr-badge 600ms 250ms cubic-bezier(.2,1.4,.4,1) both;
}
.csr-show-name, .csr-show-pool, .csr-show-foot { position: relative; z-index: 3; text-align: center; color: #fff; text-shadow: 0 1px 3px rgb(10 20 40 / 70%); }
.csr-show-name { margin-top: 6px; font: 700 20px var(--glass-font, sans-serif); letter-spacing: .04em; animation: csr-fade-in .4s .35s ease both; }
.csr-show-pool { font-size: 13px; opacity: .9; animation: csr-fade-in .4s .45s ease both; }
.csr-show-foot { display: flex; gap: 10px; font-size: 12px; opacity: .85; }
.csr-show-ok {
  position: relative; z-index: 3; min-width: 140px; min-height: 40px; margin-top: 4px; border: 0; border-radius: 20px; cursor: pointer;
  background: linear-gradient(#6f9ad6, #3f69a8); color: #fff; font: 700 15px var(--glass-font, sans-serif); box-shadow: 0 4px 14px rgb(40 80 150 / 35%);
  animation: csr-fade-in .4s .6s ease both;
}
@keyframes csr-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes csr-card-in { 0% { transform: scale(.55) rotateY(80deg); filter: brightness(2.2); opacity: 0; } 60% { transform: scale(1.06) rotateY(0); filter: brightness(1.4); opacity: 1; } 100% { transform: scale(1); filter: brightness(1); } }
@keyframes csr-jet { 0% { opacity: 0; transform: translate(0, 0) scale(.4); } 15% { opacity: .8; } 45% { opacity: .55; } 100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(calc(var(--s) * 1.9)); } }
@keyframes csr-drift { 0% { opacity: 0; transform: translate(0, 0) scale(.8); } 40% { opacity: .3; } 100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(1.7); } }

/* Teasing crawl, strobe on stop, multi-column lanes for big batches. */
.csr-lanes.csr-grid { grid-template-columns: 1fr 1fr; }
.csr-panel.csr-panel-wide { width: min(calc(var(--csr-w) * 6 + 68px), 100%); }
.csr-teasing .csr-marker { animation: csr-blink 280ms steps(1, end) infinite; }
.csr-teasing { box-shadow: inset 0 0 22px rgb(var(--csr-glow) / 45%); }
.csr-landed .csr-marker { animation: csr-strobe 1100ms ease-out both; }
.csr-target.csr-hit { animation: csr-pop 520ms cubic-bezier(.2,1.4,.4,1) both, csr-glowflash 260ms 520ms 3 both; }
@keyframes csr-blink { 0% { border-color: #fff; box-shadow: 0 0 22px rgb(var(--csr-glow) / 100%), inset 0 0 16px rgb(var(--csr-glow) / 70%); } 50% { border-color: rgb(255 226 150 / 50%); box-shadow: 0 0 6px rgb(var(--csr-glow) / 30%); } }
@keyframes csr-strobe { 0%, 20%, 40% { border-color: #fff; box-shadow: 0 0 30px 6px #fff, inset 0 0 20px #fff; } 10%, 30%, 50% { box-shadow: 0 0 8px rgb(var(--csr-glow) / 40%); } 100% { border-color: rgb(255 226 150 / 85%); box-shadow: 0 0 14px rgb(var(--csr-glow) / 80%); } }
@keyframes csr-glowflash { 0% { filter: brightness(1.9); } 100% { filter: brightness(1); } }
/* Continuous smoke during the single-card showcase. */
.csr-show-fog { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.csr-show-skip {
  position: relative; z-index: 2; min-height: 32px; padding: 0 14px; border-radius: 16px; cursor: pointer;
  border: 1px solid rgb(255 255 255 / 60%); background: rgb(255 255 255 / 22%); color: #fff; font: 600 12px var(--glass-font, sans-serif);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.csr-show-stage, .csr-show-name, .csr-show-pool, .csr-show-foot, .csr-show-ok { z-index: 2; }
.csr-jet.csr-jet-loop { animation-name: csr-jet-soft; animation-timing-function: cubic-bezier(.1,.7,.3,1); animation-fill-mode: forwards; animation-delay: 0ms; }
.csr-fog {
  position: absolute; width: 340px; height: 340px; margin: -170px 0 0 -170px; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, rgb(226 230 242 / 55%), rgb(200 206 224 / 22%) 45%, rgb(190 198 220 / 0%) 70%);
  filter: blur(16px); animation: csr-fog 5000ms ease-out forwards;
}
@keyframes csr-jet-soft { 0% { opacity: 0; transform: translate(0, 0) scale(.5); } 15% { opacity: .4; } 60% { opacity: .22; } 100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(calc(var(--s) * 2.2)); } }
@keyframes csr-fog { 0% { opacity: 0; transform: translate(0, 0) scale(.6); } 30% { opacity: .45; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(calc(var(--s) * 1.8)); } }

/* Result glow by output pool: normal blue, boss red, MVP purple. A breathing halo sits
   between the smoke and the card so it stays the strongest light on screen. */
.csr-show { --csr-glow: 80 150 255; }
.csr-show[data-pool="BOSS"] { --csr-glow: 240 66 56; }
.csr-show[data-pool="MVP"] { --csr-glow: 168 84 255; }
.csr-show-halo {
  position: absolute; inset: -42% -55%; border-radius: 50%; z-index: 1; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(closest-side, rgb(var(--csr-glow) / 100%), rgb(var(--csr-glow) / 70%) 32%, rgb(var(--csr-glow) / 28%) 58%, transparent 100%);
  filter: blur(6px); animation: csr-halo-in 700ms ease-out both, csr-breathe 2200ms 700ms ease-in-out infinite;
}
.csr-show-card { animation: csr-card-in 700ms cubic-bezier(.2,1.3,.4,1) both, csr-card-breathe 2200ms 700ms ease-in-out infinite; }
@keyframes csr-halo-in { 0% { transform: scale(.3); opacity: 0; } 60% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); opacity: .85; } }
@keyframes csr-breathe { 0%, 100% { transform: scale(.92); opacity: .6; } 50% { transform: scale(1.14); opacity: 1; } }
@keyframes csr-card-breathe {
  0%, 100% { box-shadow: 0 0 0 1px rgb(255 245 215 / 80%) inset, 0 14px 36px rgb(0 0 0 / 45%), 0 0 24px 4px rgb(var(--csr-glow) / 60%); }
  50% { box-shadow: 0 0 0 1px rgb(255 245 215 / 80%) inset, 0 14px 36px rgb(0 0 0 / 45%), 0 0 60px 16px rgb(var(--csr-glow) / 100%); }
}

/* Halo above the smoke in normal blending; smoke takes a light tint of the same colour. */
.csr-show .csr-show-halo {
  mix-blend-mode: normal; inset: -38% -50%; filter: blur(4px);
  background: radial-gradient(closest-side, rgb(var(--csr-glow) / 95%), rgb(var(--csr-glow) / 75%) 30%, rgb(var(--csr-glow) / 38%) 55%, rgb(var(--csr-glow) / 0%) 100%);
}
.csr-show .csr-jet, .csr-show .csr-drift {
  background: radial-gradient(circle, color-mix(in srgb, rgb(var(--csr-glow)) 30%, rgb(244 246 252) 70%) 0%, color-mix(in srgb, rgb(var(--csr-glow)) 25%, rgb(205 212 230) 75%) 40%, rgb(190 198 220 / 0%) 70%);
}
.csr-show .csr-fog {
  background: radial-gradient(circle, color-mix(in srgb, rgb(var(--csr-glow)) 18%, rgb(226 230 242 / 50%) 82%), rgb(200 206 224 / 18%) 45%, rgb(190 198 220 / 0%) 70%);
}
@keyframes csr-breathe { 0%, 100% { transform: scale(.88); opacity: .55; } 50% { transform: scale(1.16); opacity: 1; } }
