/* /products/gamification/avatars (partials/sp-avatars.hbs, av-hero.hbs, av-rewards.hbs, av-studio.hbs; loaded by av-assets.hbs): the
   parts of the hero and rewards drawings, the two section panels and the live AI avatar studio (js/avatars.js). Colours follow the schematic kit
   (css/mcp-visuals.css): dark navy panels, cyan for "selected", red for the main action. */
:root {
  --av-bg: #171b2a;
  --av-panel: #1c2135;
  --av-line: #2f3755;
  --av-line2: #39405f;
  --av-text: #c9cee3;
  --av-muted: #8d93b0;
  --av-cyan: #11ced7;
  --av-red: #f15851;
  --av-gold: #f9c440;
}

/* ------------------------------------------------ chip: a prompt icon and name (hero, panels) */
.av-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .65rem .3rem .3rem; border-radius: 999px; background: rgba(17, 206, 215, .12); border: 1px solid rgba(17, 206, 215, .55); color: #fff; font: 600 .8125rem/1.2 "Lexend Deca", sans-serif; white-space: nowrap; }
.av-chip_icon { width: 1.5rem; height: 1.5rem; border-radius: 50%; object-fit: cover; background: #0b1430; }

/* ------------------------------------------------ drawings: hero (partials/av-hero.hbs) and rewards (av-rewards.hbs)
   Both sit on the schematic kit stage (css/mcp-visuals.css, scaled by js/mcp-visuals.js), so sizes here are stage px.
   Never write a star followed by a slash inside these comments: it ends the comment and the next rule is lost. */
.mcpv-stage .avD-big { position: absolute; width: 240px; height: 240px; padding: 4px; border-radius: 18px; background: linear-gradient(135deg, var(--av-cyan), #8e6cf5); box-shadow: 0 0 36px rgba(17, 206, 215, .25); }
.mcpv-stage .avD-big img { position: absolute; inset: 4px; width: 232px; height: 232px; object-fit: cover; border-radius: 14px; }
.mcpv-stage .avD-sweep { position: absolute; left: 4px; right: 4px; top: 4px; height: 70px; border-radius: 14px; background: linear-gradient(180deg, transparent, rgba(17, 206, 215, .55), transparent); opacity: 0; }
.mcpv-stage .avD-say { display: grid; gap: 10px; justify-items: start; }
.mcpv-stage .avD-say span { font-size: 16px; color: #fff; line-height: 1.4; }
.mcpv-stage .avD-kind { font-size: 14px; font-weight: 600; padding: 5px 11px; border-radius: 8px; border: 1px solid var(--k); color: var(--k); background: rgba(255, 255, 255, .04); }
.mcpv-stage .is-free { --k: #6be39b; }
.mcpv-stage .is-mission { --k: #11ced7; }
.mcpv-stage .is-prize { --k: #f9c440; }
.mcpv-stage .is-store { --k: #f39a3b; }
.mcpv-stage .is-vip { --k: #b79cff; }
.mcpv-stage .is-ai { --k: #ff8ad8; }
.mcpv-stage .avD-tiles { position: absolute; display: grid; grid-template-columns: repeat(3, 104px); gap: 12px; }
.mcpv-stage .avD-tile, .mcpv-stage .avD-slot { position: relative; width: 104px; height: 104px; border-radius: 12px; overflow: hidden; background: #0b1430; }
.mcpv-stage .avD-tile img, .mcpv-stage .avD-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mcpv-stage .avD-tag { position: absolute; left: 5px; right: 5px; bottom: 5px; z-index: 3; padding: 3px 4px; border-radius: 6px; background: rgba(11, 13, 22, .85); color: var(--k); font-size: 11px; font-weight: 600; line-height: 1.25; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* a locked avatar: dark cover with a padlock; it fades out when the avatar is unlocked */
.mcpv-stage .avD-lock { position: absolute; inset: 0; z-index: 1; background: rgba(11, 13, 22, .72); }
.mcpv-stage .avD-lock::before { content: ""; position: absolute; left: 50%; top: 40%; width: 16px; height: 13px; margin: -2px 0 0 -10px; border: 2px solid #fff; border-bottom: 0; border-radius: 9px 9px 0 0; transform: translateY(-100%); }
.mcpv-stage .avD-lock::after { content: ""; position: absolute; left: 50%; top: 40%; width: 24px; height: 18px; margin: -2px 0 0 -12px; border-radius: 4px; background: #fff; }
.mcpv-stage .avD-ring { position: absolute; inset: 0; z-index: 2; border-radius: 12px; box-shadow: inset 0 0 0 3px #11ced7, inset 0 0 18px rgba(17, 206, 215, .6); opacity: 0; }
.mcpv-stage .avD-wallet { position: absolute; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mcpv-stage .avD-cur { display: grid; gap: 4px; padding: 10px 12px; border-radius: 10px; background: #232943; border: 1px solid #39405f; }
.mcpv-stage .avD-cur span { font-size: 13px; color: #aab1cc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mcpv-stage .avD-cur b { position: relative; display: block; height: 30px; font-size: 24px; font-weight: 700; color: var(--k); }
.mcpv-stage .avD-cur em { position: absolute; left: 0; top: 0; font-style: normal; }
.mcpv-stage .avD-cur.is-points { --k: #f9c440; }
.mcpv-stage .avD-cur.is-gems { --k: #6be3e8; }
.mcpv-stage .avD-cur.is-diamonds { --k: #b79cff; }
.mcpv-stage .avD-src { position: absolute; left: 16px; width: 214px; height: 60px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border-radius: 12px; background: #1c2135; border: 1px solid #2f3755; }
.mcpv-stage .avD-src > div { display: grid; gap: 2px; min-width: 0; }
.mcpv-stage .avD-src b { font-size: 15px; font-weight: 600; color: #fff; }
.mcpv-stage .avD-src span { font-size: 12px; color: #aab1cc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mcpv-stage .avD-ico { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: rgba(17, 206, 215, .14); }
.mcpv-stage .avD-ico svg { width: 20px; height: 20px; fill: none; stroke: #11ced7; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mcpv-stage .avD-slots { position: absolute; display: grid; grid-template-columns: repeat(2, 98px); gap: 10px; }
.mcpv-stage .avD-slot { width: 98px; height: 98px; }
.mcpv-stage .avD-fly { position: absolute; left: 0; top: 0; z-index: 4; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 3px #11ced7, 0 0 16px rgba(17, 206, 215, .7); offset-rotate: 0deg; offset-anchor: center; opacity: 0; }
.mcpv-stage .avD-fly img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* hero: 6 frames (k0 to k5). s6: shown in its frame. r6-N: appears at frame N and stays; u6-N: shown until frame N.
   The negative delays put every element in its phase from the first frame, as in the kit. */
@keyframes av-show6 { 0% { opacity: 0 } 2% { opacity: 1 } 15% { opacity: 1 } 16.67% { opacity: 0 } 100% { opacity: 0 } }
@keyframes av-from1of6 { 0%, 16.2% { opacity: 0 } 18.2%, 96% { opacity: 1 } 100% { opacity: 0 } }
@keyframes av-from3of6 { 0%, 49.5% { opacity: 0 } 51.5%, 96% { opacity: 1 } 100% { opacity: 0 } }
@keyframes av-from5of6 { 0%, 82.8% { opacity: 0 } 84.8%, 96% { opacity: 1 } 100% { opacity: 0 } }
@keyframes av-until1of6 { 0%, 16.2% { opacity: 1 } 18.2%, 96% { opacity: 0 } 100% { opacity: 1 } }
@keyframes av-until2of6 { 0%, 32.8% { opacity: 1 } 34.8%, 96% { opacity: 0 } 100% { opacity: 1 } }
@keyframes av-until3of6 { 0%, 49.5% { opacity: 1 } 51.5%, 96% { opacity: 0 } 100% { opacity: 1 } }
@keyframes av-until4of6 { 0%, 66.2% { opacity: 1 } 68.2%, 96% { opacity: 0 } 100% { opacity: 1 } }
@keyframes av-until5of6 { 0%, 82.8% { opacity: 1 } 84.8%, 96% { opacity: 0 } 100% { opacity: 1 } }
@keyframes av-sweep6 { 0% { top: 4px; opacity: 0 } 1% { opacity: 1 } 7% { top: 170px; opacity: 1 } 8%, 100% { top: 170px; opacity: 0 } }
.mcpv-stage .s6 { animation: av-show6 var(--T) infinite both; }
.mcpv-stage .r6-1 { animation: av-from1of6 var(--T) infinite both; }
.mcpv-stage .r6-3 { animation: av-from3of6 var(--T) infinite both; }
.mcpv-stage .r6-5 { animation: av-from5of6 var(--T) infinite both; }
.mcpv-stage .u6-1 { animation: av-until1of6 var(--T) infinite both; }
.mcpv-stage .u6-2 { animation: av-until2of6 var(--T) infinite both; }
.mcpv-stage .u6-3 { animation: av-until3of6 var(--T) infinite both; }
.mcpv-stage .u6-4 { animation: av-until4of6 var(--T) infinite both; }
.mcpv-stage .u6-5 { animation: av-until5of6 var(--T) infinite both; }
.mcpv-stage .avD-sweep.k5 { animation: av-sweep6 var(--T) infinite both; }
.mcpv-stage .s6.k1 { animation-delay: calc(var(--T) * -5 / 6); }
.mcpv-stage .s6.k2 { animation-delay: calc(var(--T) * -4 / 6); }
.mcpv-stage .s6.k3 { animation-delay: calc(var(--T) * -3 / 6); }
.mcpv-stage .s6.k4 { animation-delay: calc(var(--T) * -2 / 6); }
.mcpv-stage .s6.k5, .mcpv-stage .avD-sweep.k5 { animation-delay: calc(var(--T) * -1 / 6); }

/* rewards: 7 frames, one per place (k0 to k5) and a last one that holds the full set. g7: the place glows; f7: its
   avatar flies along the line; ul7-N: slot N unlocks as the avatar lands; sg7: the slot flashes then. */
@keyframes av-glow7 { 0%, 14.29%, 100% { box-shadow: none; border-color: #2f3755 } 1.5%, 12.5% { box-shadow: 0 0 0 2px #11ced7, 0 0 18px rgba(17, 206, 215, .55); border-color: #11ced7 } }
@keyframes av-fly7 { 0% { offset-distance: 0%; opacity: 0 } 1% { offset-distance: 0%; opacity: 1 } 10% { offset-distance: 100%; opacity: 1 } 11.5%, 100% { offset-distance: 100%; opacity: 0 } }
@keyframes av-flash7 { 0% { opacity: 0 } 1% { opacity: 1 } 5% { opacity: 1 } 7%, 100% { opacity: 0 } }
@keyframes av-ul7-0 { 0%, 10% { opacity: 1 } 11.5%, 97% { opacity: 0 } 100% { opacity: 1 } }
@keyframes av-ul7-1 { 0%, 24.3% { opacity: 1 } 25.8%, 97% { opacity: 0 } 100% { opacity: 1 } }
@keyframes av-ul7-2 { 0%, 38.6% { opacity: 1 } 40.1%, 97% { opacity: 0 } 100% { opacity: 1 } }
@keyframes av-ul7-3 { 0%, 52.9% { opacity: 1 } 54.4%, 97% { opacity: 0 } 100% { opacity: 1 } }
@keyframes av-ul7-4 { 0%, 67.1% { opacity: 1 } 68.6%, 97% { opacity: 0 } 100% { opacity: 1 } }
@keyframes av-ul7-5 { 0%, 81.4% { opacity: 1 } 82.9%, 97% { opacity: 0 } 100% { opacity: 1 } }
.mcpv-stage .g7 { animation: av-glow7 var(--T) infinite both; }
.mcpv-stage .f7 { animation: av-fly7 var(--T) infinite both linear; }
.mcpv-stage .sg7 { animation: av-flash7 var(--T) infinite both; }
.mcpv-stage .ul7-0 { animation: av-ul7-0 var(--T) infinite both; }
.mcpv-stage .ul7-1 { animation: av-ul7-1 var(--T) infinite both; }
.mcpv-stage .ul7-2 { animation: av-ul7-2 var(--T) infinite both; }
.mcpv-stage .ul7-3 { animation: av-ul7-3 var(--T) infinite both; }
.mcpv-stage .ul7-4 { animation: av-ul7-4 var(--T) infinite both; }
.mcpv-stage .ul7-5 { animation: av-ul7-5 var(--T) infinite both; }
.mcpv-stage .g7.k1, .mcpv-stage .f7.k1 { animation-delay: calc(var(--T) * -6 / 7); }
.mcpv-stage .g7.k2, .mcpv-stage .f7.k2 { animation-delay: calc(var(--T) * -5 / 7); }
.mcpv-stage .g7.k3, .mcpv-stage .f7.k3 { animation-delay: calc(var(--T) * -4 / 7); }
.mcpv-stage .g7.k4, .mcpv-stage .f7.k4 { animation-delay: calc(var(--T) * -3 / 7); }
.mcpv-stage .g7.k5, .mcpv-stage .f7.k5 { animation-delay: calc(var(--T) * -2 / 7); }
.mcpv-stage .sg7.k0 { animation-delay: calc(var(--T) * -6.3 / 7); }
.mcpv-stage .sg7.k1 { animation-delay: calc(var(--T) * -5.3 / 7); }
.mcpv-stage .sg7.k2 { animation-delay: calc(var(--T) * -4.3 / 7); }
.mcpv-stage .sg7.k3 { animation-delay: calc(var(--T) * -3.3 / 7); }
.mcpv-stage .sg7.k4 { animation-delay: calc(var(--T) * -2.3 / 7); }
.mcpv-stage .sg7.k5 { animation-delay: calc(var(--T) * -1.3 / 7); }

/* ------------------------------------------------ section panels (#avatars, #ai) */
/* text on the right, panel on the left (desktop only; the Webflow grid has 12 explicit columns) */
@media (min-width: 992px) {
  .av-reverse .sidebyside-wrapper > .side_info_wrap { grid-column: 8 / span 5; grid-row: 1; }
  .av-reverse .sidebyside-wrapper > .image_wrapper { grid-column: 1 / span 6; grid-row: 1; }
}
.av-panel { width: 100%; max-width: 34rem; margin: 0 auto; padding: 1.25rem; border-radius: 1rem; background: radial-gradient(120% 90% at 50% 0%, #20263d 0%, var(--av-bg) 65%); border: 1px solid var(--av-line); box-shadow: 0 1.5rem 3rem rgba(24, 27, 43, .18); font-family: "Lexend Deca", sans-serif; }
.av-panel_title { margin-bottom: 1rem; color: #fff; font-size: .9375rem; font-weight: 600; }
.av-wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.av-wall_item { position: relative; display: block; border-radius: .75rem; overflow: hidden; border: 2px solid transparent; }
.av-wall_item.is-on { border-color: var(--av-cyan); box-shadow: 0 0 0 4px rgba(17, 206, 215, .18); }
.av-wall_img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.av-wall_item.is-locked .av-wall_img { filter: grayscale(1) brightness(.45); }
.av-wall_lock { position: absolute; left: 50%; top: 38%; width: 1.25rem; height: 1rem; transform: translate(-50%, -50%); border-radius: .2rem; background: #fff; }
.av-wall_lock::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: .8rem; height: .65rem; transform: translateX(-50%); border: 2px solid #fff; border-bottom: 0; border-radius: .5rem .5rem 0 0; }
.av-wall_tag { position: absolute; left: .25rem; right: .25rem; bottom: .25rem; padding: .2rem .25rem; border-radius: .375rem; background: rgba(11, 13, 22, .85); color: var(--av-gold); font-size: .625rem; font-weight: 600; line-height: 1.2; text-align: center; }
.av-wall_tag.is-free { color: #b9f5cf; }
.av-wall_check { position: absolute; right: .3rem; top: .3rem; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--av-cyan); }
.av-wall_check::after { content: ""; position: absolute; left: .42rem; top: .22rem; width: .3rem; height: .55rem; border: solid #0b1430; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.av-pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.av-pair { position: relative; margin: 0; display: grid; grid-template-columns: 34% 1fr; grid-template-rows: auto auto; align-items: end; gap: .5rem; }
.av-pair_from { grid-row: 1; grid-column: 1; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: .5rem; border: 1px solid var(--av-line2); opacity: .85; }
.av-pair_to { grid-row: 1; grid-column: 2; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: .75rem; border: 2px solid var(--av-cyan); }
.av-pair_arrow { display: none; }
.av-pair .av-chip { grid-row: 2; grid-column: 1 / span 2; justify-self: start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

/* ------------------------------------------------ setup steps: four in a row */
.sp-steps.av-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.av-setup_note { margin: 1.5rem 0 0; color: var(--sp-muted, #646a82); font-size: .9375rem; }
.av-setup_note a { color: #0a7f86; text-decoration: underline; }

/* ------------------------------------------------ live studio (#studio) */
.av-sec { position: relative; z-index: 2; background: radial-gradient(90% 60% at 50% 0%, #1b2140 0%, #0d1019 70%); color: #fff; overflow: hidden; }
.av-sec::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px); background-size: 28px 28px; pointer-events: none; }
.av-sec > * { position: relative; }
.av-sec_head { max-width: 50rem; margin: 0 auto 2.5rem; text-align: center; display: grid; gap: 1rem; }
.av-sec_head .section_title { margin: 0; color: #fff; }
.av-sec_head .title_sub { margin: 0; color: var(--av-text); opacity: 1; }
.av-studio { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 1.5rem; max-width: 68rem; margin: 0 auto; padding: 1.5rem; border-radius: 1.25rem; background: rgba(23, 27, 42, .85); border: 1px solid var(--av-line); box-shadow: 0 2rem 4rem rgba(0, 0, 0, .45); font-family: "Lexend Deca", sans-serif; }
.av-studio_left, .av-studio_right { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.av-label { display: flex; align-items: center; gap: .5rem; color: #fff; font-size: .9375rem; font-weight: 600; }
.av-label i { display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--av-red); font-style: normal; font-size: .8125rem; }

/* the stage: the current picture; while the AI draws, a light line sweeps over it */
.av-stage { position: relative; width: 100%; aspect-ratio: 1; border-radius: 1rem; padding: 4px; background: linear-gradient(135deg, var(--av-cyan), #8e6cf5); box-shadow: 0 0 2.5rem rgba(17, 206, 215, .2); }
.av-stage_img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: .8rem; background: var(--av-panel); transition: filter .4s, opacity .4s; }
.av-stage_scan { position: absolute; inset: 4px; border-radius: .8rem; overflow: hidden; pointer-events: none; display: none; }
.av-stage_scan::after { content: ""; position: absolute; left: 0; right: 0; top: -35%; height: 35%; background: linear-gradient(180deg, transparent, rgba(17, 206, 215, .55), transparent); animation: av-scan 1.6s ease-in-out infinite; }
.av-stage.is-busy .av-stage_scan { display: block; }
.av-stage.is-busy .av-stage_img { filter: saturate(.4) brightness(.7); }
.av-stage.is-new .av-stage_img { animation: av-reveal .9s ease-out; }
@keyframes av-scan { 0% { top: -35%; } 100% { top: 100%; } }
@keyframes av-reveal { 0% { clip-path: inset(0 0 100% 0); filter: brightness(1.6); } 100% { clip-path: inset(0 0 0 0); filter: none; } }

.av-status { min-height: 2.75rem; margin: 0; padding: .625rem .875rem; border-radius: .625rem; background: rgba(255, 255, 255, .04); border: 1px solid var(--av-line); color: var(--av-text); font-size: .875rem; line-height: 1.45; }
.av-status.is-error { color: #ff9a94; border-color: rgba(241, 88, 81, .5); background: rgba(241, 88, 81, .08); }
.av-status.is-ok { color: #b9f5cf; border-color: rgba(46, 204, 113, .45); }

.av-hist_list { display: flex; gap: .5rem; overflow-x: auto; padding: .25rem .125rem .5rem; scrollbar-width: thin; }
.av-hist_item { flex: none; position: relative; width: 3.5rem; height: 3.5rem; padding: 0; border-radius: .625rem; border: 2px solid var(--av-line2); background: var(--av-panel); overflow: hidden; cursor: pointer; transition: border-color .2s, transform .2s; }
.av-hist_item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.av-hist_item:hover { transform: translateY(-2px); }
.av-hist_item[aria-pressed="true"] { border-color: var(--av-cyan); }
.av-hist_item.is-orig::after { content: attr(data-label); position: absolute; left: 0; right: 0; bottom: 0; padding: .1rem 0; background: rgba(11, 13, 22, .8); color: #fff; font-size: .5625rem; text-align: center; }
.av-hist_item.is-new { animation: av-pop .5s ease-out; }
@keyframes av-pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }

.av-use { align-self: flex-start; padding: .625rem 1rem; border-radius: 999px; border: 1px solid var(--av-line2); background: transparent; color: #fff; font: 600 .875rem/1.2 "Lexend Deca", sans-serif; cursor: pointer; transition: border-color .2s, background-color .2s; }
.av-use:hover:not(:disabled) { border-color: var(--av-cyan); background: rgba(17, 206, 215, .1); }

.av-pts { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; border-radius: .75rem; background: rgba(249, 196, 64, .08); border: 1px solid rgba(249, 196, 64, .35); color: var(--av-text); font-size: .875rem; }
.av-pts b { color: var(--av-gold); font-size: 1.375rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.av-pts.is-change b { animation: av-pulse .6s ease-out; }
@keyframes av-pulse { 50% { transform: scale(1.25); color: #fff; } }

.av-avs { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: .5rem; }
.av-av { padding: 0; border-radius: .625rem; border: 2px solid transparent; background: var(--av-panel); overflow: hidden; cursor: pointer; aspect-ratio: 1; transition: border-color .2s, transform .2s; }
.av-av_img { display: block; width: 100%; height: 100%; object-fit: cover; }
.av-av:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--av-line2); }
.av-av[aria-pressed="true"] { border-color: var(--av-cyan); box-shadow: 0 0 0 3px rgba(17, 206, 215, .2); }

.av-prs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.av-pr { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr) auto; align-items: center; gap: .625rem; padding: .5rem .75rem .5rem .5rem; border-radius: .75rem; border: 1px solid var(--av-line2); background: var(--av-panel); color: #fff; font: 500 .875rem/1.25 "Lexend Deca", sans-serif; text-align: left; cursor: pointer; transition: border-color .2s, background-color .2s; }
.av-pr_icon { width: 2.25rem; height: 2.25rem; border-radius: .5rem; object-fit: cover; background: #0b1430; }
.av-pr_name { min-width: 0; overflow-wrap: anywhere; }
.av-pr_cost { color: var(--av-gold); font-size: .75rem; font-weight: 600; white-space: nowrap; }
.av-pr:hover:not(:disabled) { border-color: var(--av-cyan); }
.av-pr[aria-pressed="true"] { border-color: var(--av-cyan); background: rgba(17, 206, 215, .12); box-shadow: 0 0 0 3px rgba(17, 206, 215, .18); }
.av-pr.is-poor { opacity: .45; }
.av-pr.is-poor .av-pr_cost { color: var(--av-muted); }

.av-go { position: relative; overflow: hidden; width: 100%; margin-top: .25rem; justify-content: center; }
.av-go_cost { margin-left: .5rem; opacity: .85; font-weight: 500; }
.av-go_cost:empty { display: none; }
.av-go_bar { display: none; }
.av-go.is-busy .av-go_bar { display: block; position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: rgba(255, 255, 255, .25); transform-origin: left center; animation: av-fill 12s cubic-bezier(.2, .6, .4, 1) both; }
@keyframes av-fill { from { transform: scaleX(0); } to { transform: scaleX(.95); } }
.av-studio button:disabled { cursor: default; }
.av-studio .av-av:disabled, .av-studio .av-use:disabled { opacity: .5; }
.av-go:disabled:not(.is-busy) { opacity: .5; }
.av-studio button:focus-visible { outline: 2px solid var(--av-cyan); outline-offset: 2px; }
.av-note { max-width: 50rem; margin: 1.5rem auto 0; color: var(--av-text); font-size: .875rem; line-height: 1.5; text-align: center; opacity: .85; }

@media (max-width: 991px) {
  /* one column: picture and status first, then the controls, then the history (the result stays near the button) */
  .av-studio { display: flex; flex-direction: column; gap: 1rem; }
  .av-studio_left, .av-studio_right { display: contents; }
  .av-studio_right > * { order: 3; }
  .av-stage { order: 1; }
  .av-status { order: 2; }
  .av-hist { order: 4; }
  .av-use { order: 5; }
  .av-stage { max-width: 26rem; margin: 0 auto; }
  .av-avs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sp-steps.av-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 479px) {
  .av-studio { padding: 1rem; }
  .av-prs { grid-template-columns: minmax(0, 1fr); }
  .sp-steps.av-steps { grid-template-columns: minmax(0, 1fr); }
  .av-pairs { gap: .75rem; }
  .av-wall { gap: .5rem; }
}
@media (prefers-reduced-motion: reduce) {
  /* drawings (the kit stops every animation in a stage): hero shows frame 1, rewards the full set */
  .mcpv-stage .s6:not(.k0), .mcpv-stage .r6-1, .mcpv-stage .r6-3, .mcpv-stage .r6-5, .mcpv-stage .avD-fly, .mcpv-stage .avD-ring, .mcpv-stage [class*="ul7-"] { opacity: 0; }
  .av-stage_scan::after, .av-stage.is-new .av-stage_img, .av-hist_item.is-new, .av-pts.is-change b { animation: none; }
}
