/* Study Quest — creation.css (V7.13 "Character creation"): the redone hero creation screen and the Brichar's chair.
 * The user, 1 Nov 2026: "the character creation screen looks shit. hover animations and character customization barely
 * works". Calm: the hero stands in the middle with its face close up beside it; the look sits in one card under it
 * (two quiet columns of labelled choices); every choice answers the pointer (lift, glow, a sweep of light) and tries itself
 * on the hero while hovered. Builds on panels.css (.cc-*); the reduced-motion rules there switch every animation off.
 */

/* ---- layout: the hero over its look card */
.sqp-create13 .cc-center { gap: 10px; }
.sqp-create13 .cc-stage { flex: 1 1 auto; min-height: 180px; }
.sqp-create13 .cc-lookcard { flex: none; max-height: 66%; overflow: auto; padding: 10px 16px 12px; }
.sqp-create13 .cc-lookcard .cc-h { margin: 0 0 6px; font-size: 20px; }
.sqp-create13 .cc-head { padding-bottom: 2px; }

/* ---- the face close-up: a bronze-ringed medallion beside the hero */
.cc-face {
  position: absolute; z-index: 3; left: 6px; top: 48px; width: 92px; display: flex; flex-direction: column; align-items: center; gap: 4px;
  pointer-events: none;
}
.cc-face-pic {
  width: 84px; height: 84px; border-radius: 50%; display: block;
  box-shadow: 0 0 0 2px #030304, 0 0 0 4px #86592a, 0 0 0 5px #e2b56a, 0 0 0 6px #030304, 0 6px 16px rgba(0, 0, 0, 0.7);
  transition: box-shadow 0.25s ease;
}
.cc-face-cap { font: 700 11px/1 var(--cx-font-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--cx-text-dim); text-shadow: 0 1px 0 #000; }
.cc-face--was { left: auto; right: 6px; opacity: 0.85; }
.sqp-create13.trying .cc-face:not(.cc-face--was) .cc-face-pic { box-shadow: 0 0 0 2px #030304, 0 0 0 4px #b57a36, 0 0 0 5px #ffd08a, 0 0 0 6px #030304, 0 0 18px rgba(255, 138, 61, 0.55); }
.sqp-create13 .cc-spot { transition: opacity 0.3s ease, filter 0.3s ease; }
.sqp-create13.trying .cc-spot { filter: brightness(1.6); }

/* ---- the look card: two quiet columns of labelled rows */
.cc-look-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 26px; align-items: start; }
.cc-look-col { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.cc-look-row { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.cc-look-label { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font: 700 12px/1.1 var(--cx-font-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--cx-text-dim); text-shadow: 0 1px 0 #000; }
.cc-look-val { font: 400 14px/1.1 var(--cx-font-head); letter-spacing: 0.02em; text-transform: none; color: var(--cx-gold-text); }
.cc-look-note { margin: 2px 0 0; font: italic 500 14px/1.3 var(--cx-font-flavor); color: var(--cx-gold-3); }
.cc-look-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }

/* chips: a word in a recessed socket */
.cc-chips { display: flex; flex-wrap: wrap; gap: 4px 3px; }
.cc-chip {
  position: relative; overflow: hidden; padding: 4px 7px 3px; border-radius: 2px; border: 1px solid #000; cursor: pointer;
  font: 700 12.5px/1.2 var(--cx-font-label); letter-spacing: 0.02em; color: var(--cx-text);
  background: linear-gradient(180deg, #0b0c0e, #15181c); box-shadow: inset 0 0 0 1px rgba(176, 122, 60, 0.32), inset 0 2px 5px rgba(0, 0, 0, 0.7);
  transition: transform 0.16s cubic-bezier(.2, .8, .3, 1.3), color 0.16s, box-shadow 0.16s, background 0.16s;
}
.cc-chip:hover, .cc-chip:focus-visible {
  outline: none; transform: translateY(-2px); color: var(--cx-gold-leaf);
  box-shadow: inset 0 0 0 1px rgba(226, 181, 106, 0.85), 0 3px 8px rgba(0, 0, 0, 0.55), 0 0 10px rgba(255, 138, 61, 0.3);
}
.cc-chip:active { transform: translateY(0) scale(0.96); }
.cc-chip.active {
  color: #fff1cf;
  background: radial-gradient(ellipse 90% 80% at 50% 110%, rgba(255, 120, 40, 0.38), rgba(255, 120, 40, 0) 75%), linear-gradient(180deg, #1a1d22, #23272d);
  box-shadow: inset 0 0 0 1px rgba(255, 196, 120, 0.95), 0 0 9px rgba(255, 120, 40, 0.35);
  animation: ccPop 0.28s cubic-bezier(.2, .8, .3, 1.4);
}

/* swatches: the colour itself, lifted and ringed */
.sqp-create13 .cc-swatches { max-width: none; justify-content: flex-start; gap: 5px; }
.cc-swatch { background: var(--sw, #888); }
.sqp-create13 .cc-swatch {
  width: 24px; height: 24px; border-radius: 50%;
  transition: transform 0.16s cubic-bezier(.2, .8, .3, 1.4), box-shadow 0.16s;
}
.sqp-create13 .cc-swatch:hover, .sqp-create13 .cc-swatch:focus-visible {
  outline: none; transform: translateY(-2px) scale(1.16);
  box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--cx-bronze-hi, #e2b56a), 0 4px 9px rgba(0, 0, 0, 0.6);
}
.sqp-create13 .cc-swatch.active { box-shadow: 0 0 0 1px #000, 0 0 0 3px var(--cx-torch), 0 0 10px rgba(255, 138, 61, 0.65); animation: ccPop 0.28s cubic-bezier(.2, .8, .3, 1.4); }

/* the two buttons under the look */
.cc-look-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 4px; border-radius: 2px; border: 1px solid #000; cursor: pointer;
  font: 700 12.5px/1.2 var(--cx-font-label); letter-spacing: 0.06em; color: var(--cx-text-dim);
  background: linear-gradient(180deg, #121417, #0a0b0d); box-shadow: inset 0 0 0 1px rgba(176, 122, 60, 0.4);
  transition: color 0.16s, box-shadow 0.16s, transform 0.16s;
}
.cc-look-btn .icon { width: 14px; height: 14px; transition: transform 0.4s cubic-bezier(.2, .8, .3, 1.2); }
.cc-look-btn:hover, .cc-look-btn:focus-visible { outline: none; color: var(--cx-gold-leaf); box-shadow: inset 0 0 0 1px rgba(226, 181, 106, 0.85), 0 0 10px rgba(255, 138, 61, 0.3); transform: translateY(-1px); }
.cc-look-btn.cc-random:hover .icon { transform: rotate(200deg); }
.cc-look-btn.cc-look-reset:hover .icon { transform: rotate(-120deg); }

/* ---- the races: lift, a turning glint on the ring, a sweep of light */
.sqp-create13 .cc-race { position: relative; overflow: hidden; transition: transform 0.18s cubic-bezier(.2, .8, .3, 1.3), color 0.18s, box-shadow 0.18s; }
.sqp-create13 .cc-race::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, rgba(255, 220, 160, 0) 0%, rgba(255, 220, 160, 0.16) 50%, rgba(255, 220, 160, 0) 100%);
  transform: skewX(-18deg); opacity: 0;
}
.sqp-create13 .cc-race:hover::after { animation: ccSweep 0.7s ease-out; }
.sqp-create13 .cc-race:hover { transform: translateY(-2px); }
.sqp-create13 .cc-race:active { transform: translateY(0) scale(0.97); }
.sqp-create13 .cc-race-ring { transition: transform 0.25s cubic-bezier(.2, .8, .3, 1.3), box-shadow 0.25s; }
.sqp-create13 .cc-race:hover .cc-race-ring { transform: scale(1.08); box-shadow: 0 0 0 1px #030304, 0 0 12px rgba(255, 170, 90, 0.55); }
.sqp-create13 .cc-race-pic { transition: filter 0.25s; }
.sqp-create13 .cc-race:not(.active) .cc-race-pic { filter: saturate(0.75) brightness(0.9); }
.sqp-create13 .cc-race:hover .cc-race-pic { filter: none; }
.sqp-create13 .cc-race.active .cc-race-ring { animation: ccPop 0.32s cubic-bezier(.2, .8, .3, 1.4); }

/* ---- the classes: slide, the class colour on the edge */
.sqp-create13 .cc-class { transition: transform 0.18s cubic-bezier(.2, .8, .3, 1.3), box-shadow 0.18s, border-color 0.18s; }
.sqp-create13 .cc-class:hover { transform: translateX(3px); border-left-color: var(--cls); }
.sqp-create13 .cc-class-gem { transition: transform 0.25s cubic-bezier(.2, .8, .3, 1.4); }
.sqp-create13 .cc-class:hover .cc-class-gem { transform: rotate(-8deg) scale(1.1); }
.sqp-create13 .cc-addclass { transition: background 0.18s, color 0.18s, transform 0.18s; }
.sqp-create13 .cc-addclass:hover { transform: translateY(-1px); }
.sqp-create13 .cc-dice { transition: transform 0.4s cubic-bezier(.2, .8, .3, 1.2), color 0.16s, box-shadow 0.16s; }
.sqp-create13 .cc-dice:hover { transform: rotate(180deg); }

@keyframes ccPop { 0% { transform: scale(0.9); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes ccSweep { 0% { left: -60%; opacity: 0; } 20% { opacity: 1; } 100% { left: 120%; opacity: 0; } }

/* ---- the Brichar's chair: the hero on the left, the chair's card on the right */
.sqp-brichar .br-main { grid-template-columns: 1fr minmax(400px, 560px); }
.sqp-brichar .cc-swatch { width: 22px; height: 22px; }
.sqp-brichar .br-card { max-height: none; display: flex; flex-direction: column; }
.sqp-brichar .br-sub .sq-word, .sqp-brichar .br-sub [data-word] { color: var(--cx-gold-text); }
.br-price { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 12px; font-size: 15px; color: var(--cx-text); }
.br-price small { color: var(--cx-text-dim); }
.br-purse { color: var(--cx-text-dim); }
.sqp-brichar .br-msg { min-height: 18px; }

/* ---- smaller screens */
@media (max-height: 820px) {
  .sqp-create13 .cc-lookcard { padding: 8px 12px 10px; }
  .cc-look-grid { gap: 0 16px; }
  .cc-look-col { gap: 6px; }
  .cc-chip { padding: 3px 7px 2px; font-size: 12px; }
  .sqp-create13 .cc-swatch { width: 21px; height: 21px; }
  .cc-face { top: 40px; width: 74px; }
  .cc-face-pic { width: 66px; height: 66px; }
  .cc-look-foot { margin-top: 6px; }
}
@media (max-width: 1100px) {
  .cc-look-grid { grid-template-columns: minmax(0, 1fr); gap: 9px 0; }
  .sqp-brichar .br-main { grid-template-columns: 1fr minmax(320px, 420px); }
}
@media (max-width: 560px), (max-height: 420px) {
  .sqp-create13 .cc-lookcard { max-height: none; }
  .cc-face { display: none; }
  .sqp-brichar .br-main { display: flex; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .sqp-create13 *, .sqp-create13 *::after { animation: none !important; transition: none !important; }
}
