/* The characters page (characters.html - 25 Nov 2026): each character's 3D model (assets/characters.js) beside what
   they're like and their hobbies. Colours: the new Nibbles site's (--nib-*, assets/nibbles.css) where it has them, else
   the site's own. Header and footer are the site's - nothing here styles them. */
.ch-main, .town-main {
  --c-accent: var(--nib-accent, var(--accent, #e6d36a));
  --c-text: var(--nib-text, var(--dr-text, #efe8c8));
  --c-muted: var(--nib-muted, var(--dr-muted, #b3ab86));
  --c-card: var(--nib-card, var(--dr-card, #16140b));
  --c-line: var(--nib-line, var(--dr-line, #2b2814));
  --c-frame: var(--nib-frame, var(--dr-wall-dark, #8e7f34));
  --c-deep: var(--nib-deep, #0b0a06);
  padding: 28px 0 40px; color: var(--c-text);
}
.ch-main [hidden] { display: none !important; }
.ch-title { margin-bottom: 14px; }
.ch-h1 { margin: 0 0 6px; font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1.05; color: var(--c-accent); }
.ch-lead { margin: 0; max-width: 46em; color: var(--c-muted); }
.ch-jump { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.ch-jump .btn { font: inherit; font-weight: 700; font-size: .92rem; padding: 6px 14px; text-decoration: none; }
.ch-note { color: var(--c-muted); font-size: .9rem; }

.ch-list { display: grid; gap: 16px; }
.ch-card {
  display: grid; grid-template-columns: minmax(240px, 340px) minmax(0, 1fr); gap: 22px; align-items: start;
  padding: 16px; background: var(--c-card); border: 2px solid var(--c-line); border-radius: 12px; scroll-margin-top: 16px;
}
.ch-stage { display: grid; gap: 6px; }
.ch-model {
  position: relative; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; border: 1px solid #000;
  background: radial-gradient(ellipse 58% 12% at 50% 89%, rgba(0, 0, 0, .55), transparent 70%),
              radial-gradient(ellipse 80% 70% at 50% 40%, color-mix(in srgb, var(--c-accent) 22%, #1a170c), var(--c-deep) 74%);
}
.ch-3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; outline: none; }
.ch-3d:active { cursor: grabbing; }
.ch-3d:focus-visible { box-shadow: inset 0 0 0 3px var(--c-accent); border-radius: 10px; }
.ch-wait { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-size: .9rem; color: var(--c-muted); pointer-events: none; }
.ch-hint { margin: 0; text-align: center; font-size: .8rem; color: var(--c-muted); }   /* (no turn buttons - Wisse: swiping turns them) */

.ch-text h2 { margin: 0; font-size: 1.8rem; line-height: 1.1; color: var(--c-accent); }
.ch-text h3 { margin: 16px 0 6px; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); }
.ch-text p { margin: 0 0 .7em; max-width: 44em; }
.ch-role { margin: 4px 0 0 !important; font-weight: 700; }
.ch-role a { color: var(--c-accent); }
.ch-hobbies { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.ch-hobbies li { position: relative; padding: 6px 10px 6px 30px; background: var(--c-deep); border: 1px solid var(--c-line); border-radius: 8px; }
.ch-hobbies li::before { content: "\2605"; position: absolute; left: 10px; top: 6px; color: var(--c-accent); font-size: .9rem; }

@media (max-width: 720px) {
  .ch-card { grid-template-columns: minmax(0, 1fr); }
  .ch-stage { width: min(320px, 100%); justify-self: center; }
}
