/*
 * web/landing/shells/CharacterSurface.css - the box a character stands in
 * (web/landing/shells/CharacterSurface.js). The page links it (web/landing.html, once,
 * before every section sheet); a section's sheet does not import it.
 *
 * The box only: its width rule, a square until the character's own aspect ratio arrives
 * (the surface sets it from /api/characters, so the art is never letterboxed by a guess),
 * and the near-black stage ground the app puts behind every character so the art's own
 * background reads. The layers inside are sdk/stage.css's alone; nothing here may move,
 * draw on or transform them.
 */

.character-surface {
  display: block;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  background: #0e0b14; /* the app's stage colour (web/style.css), behind the art */
  box-shadow: 0 0 0 1px var(--line);
}

/* A primary portrait is never narrower than 240 px; a widget may be. */
.character-surface[data-size="primary"] { min-width: min(240px, 100%); }

.character-surface[data-size="fixed"] {
  width: var(--character-surface-size);
  max-width: 100%;
}
