.av-shortcut {
  width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 50%; overflow: hidden;
}
.av-shortcut svg { width: 30px; height: 36px; }
.av-shortcut:hover { border-color: var(--primary); }
#pf-avatar-studio { max-width: 1260px; margin: 0 auto; }
.av-back { color: var(--primary); font-weight: 700; }
.av-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr); gap: 18px; align-items: start; }
.av-stage {
  min-height: 435px; display: grid; align-content: center; justify-items: center; gap: 12px; position: sticky; top: 100px;
  background: radial-gradient(ellipse at center, color-mix(in srgb,var(--primary) 24%,var(--surface)), var(--surface) 70%);
}
.av-stage svg { width: min(100%, 320px); height: auto; display: block; filter: drop-shadow(0 12px 10px #18112850); }
.av-stage > span { color: var(--muted); font-weight: 700; }
.av-stage .av-eyes { transform-box: fill-box; transform-origin: center; animation: av-blink 5s infinite; }
@keyframes av-blink { 0%, 92%, 98%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.12); } }
.av-editor h2, .av-editor h3, .av-rewards h2 { margin: 0; }
.av-editor h3 { font-size: 1rem; margin-top: 16px; }
.av-tabs, .av-colors { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 10px; }
.av-tab {
  padding: .5rem .72rem; border: 1px solid var(--border); border-radius: .6rem; background: var(--surface-2);
  color: var(--text); font: inherit; font-size: .88rem; font-weight: 750; cursor: pointer;
}
.av-tab[aria-pressed="true"] { border-color: var(--primary); background: var(--primary); color: var(--primary-contrast, #fff); }
[data-theme="dark"] .av-tab[aria-pressed="true"] { color: #17132b; background: #b7a3fc; }
.av-subtabs .av-tab { font-size: .82rem; }
.av-colors { margin-bottom: 17px; }
.av-colors button { width: 29px; height: 29px; border-radius: 50%; background: var(--swatch); border: 1px solid var(--muted); cursor: pointer; }
.av-colors button[aria-pressed="true"] { outline: 2px solid var(--primary); outline-offset: 2px; }
.av-choices { display: grid; grid-template-columns: repeat(auto-fit,minmax(108px,1fr)); gap: 8px; margin-top: 13px; }
.av-choice {
  min-height: 105px; display: grid; justify-items: center; align-content: center; gap: 4px; padding: 8px 4px;
  color: var(--text); border: 1px solid var(--border); border-radius: .65rem; background: var(--surface-2);
  text-align: center; font: inherit; font-size: .8rem; font-weight: 750; cursor: pointer;
}
.av-choice svg { width: 55px; height: 64px; }
.av-choice[aria-pressed="true"] { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.av-choice:disabled { opacity: .68; cursor: not-allowed; }
.av-none { font-size: 1.6rem; height: 64px; display: grid; place-items: center; }
.av-choice small { font-size: .75rem; color: var(--muted); }
.av-outfit-note { padding: 10px 0; }
.av-save { margin-top: 15px; }
.av-save-status { display: inline-block; margin-inline-start: 10px; font-weight: 700; color: var(--muted); }
.av-rewards { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 18px; }
.av-rewards p { margin: 4px 0 0; color: var(--muted); }
.av-reward-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.av-feedback {
  --feedback: #167745; display: flex; align-items: center; gap: 10px; width: fit-content;
  margin: 10px 0; padding: 5px 12px 5px 8px; border-radius: .75rem; border: 1px solid var(--feedback);
  background: color-mix(in srgb, var(--feedback) 9%, var(--surface)); color: var(--text);
}
.av-feedback.av-incorrect { --feedback: #b13c53; }
.av-feedback.av-partial { --feedback: #875908; }
[data-theme="dark"] .av-feedback { --feedback: #73dfa0; }
[data-theme="dark"] .av-feedback.av-incorrect { --feedback: #ff9aaf; }
[data-theme="dark"] .av-feedback.av-partial { --feedback: #f6cd76; }
.av-result-mark {
  width: 30px; height: 30px; display: grid; place-items: center; color: var(--feedback);
  background: color-mix(in srgb,var(--feedback) 14%,var(--surface)); border-radius: 50%; font-weight: 900; font-size: 1.2rem;
}
.av-feedback strong, .av-feedback small { display: block; line-height: 1.3; }
.av-feedback small { color: var(--muted); }
.av-reaction-art { width: 46px; height: 52px; display: grid; place-items: center; }
.av-reaction-art svg { width: 44px; height: 51px; display: block; }
.av-play .av-result-mark, .bio-mock-review[open] .av-result-mark { animation: av-pop .32s ease-out both; }
.av-play.av-correct .av-reaction-art, .bio-mock-review[open] .av-correct .av-reaction-art { animation: av-hop .52s ease-out both; }
.av-play.av-incorrect .av-reaction-art, .bio-mock-review[open] .av-incorrect .av-reaction-art { animation: av-shake .43s ease-out both; }
.av-play.av-partial .av-reaction-art, .bio-mock-review[open] .av-partial .av-reaction-art { animation: av-tilt .45s ease-out both; }
@keyframes av-pop { 0% { transform: scale(.55); opacity: .35; } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes av-hop { 0%,100% { transform: translateY(0); } 40% { transform: translateY(-9px) rotate(-5deg); } 70% { transform: translateY(1px); } }
@keyframes av-shake { 25%,75% { transform: translateX(-3px); } 50% { transform: translateX(3px); } }
@keyframes av-tilt { 40% { transform: rotate(-10deg); } 70% { transform: rotate(5deg); } }
@media (max-width: 760px) {
  .av-grid { grid-template-columns: 1fr; }
  .av-stage { position: static; min-height: 0; }
  .av-stage svg { width: min(58vw,240px); }
}
@media (max-width: 410px) {
  .av-shortcut { display: none; }
  .av-choices { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .av-stage .av-eyes, .av-play .av-result-mark, .av-play .av-reaction-art,
  .bio-mock-review[open] .av-result-mark, .bio-mock-review[open] .av-feedback .av-reaction-art { animation: none; }
}
