/* <char-bar>'s rules (components/char-bar.js): the page links this file, so its first paint has them; the component adds it
   to any other root it's drawn in (light-styles.js). */
/* The character's bar under the header: the character's name is the loudest thing on the page. Shut while there's
   no character or one is being made (the page's fresh and creating), it slides open with the side columns. */
char-bar { flex:none; display:flex; align-items:center; gap:16px; padding:14px 20px; background:var(--s-field); border-bottom:1px solid var(--line); }
char-bar { max-height:120px; transition:max-height .36s cubic-bezier(.3, .7, .2, 1), padding .36s cubic-bezier(.3, .7, .2, 1), border-bottom-width .36s, background-color .3s, border-color .3s; }
@media (prefers-reduced-motion: reduce) { char-bar { transition:none; } }
char-bar .acts { display:flex; align-items:center; gap:10px; flex:none; margin-left:auto; }
/* A phone: the characters are a menu behind the Purist mark, a drawer from the right (open: the page's charmenu). */
@media (max-width: 720px), (max-height: 520px) {
  #charMenuBtn { order:2; display:flex; align-items:center; justify-content:center; width:38px; height:34px; margin-left:auto; padding:0; border:1px solid var(--line); border-radius:var(--r-lg); background:var(--s-control); color:var(--text); flex:none; }
  #charMenuBtn img { width:22px; height:22px; } /* the Purist mark: the characters and the rest of the header are behind it */
  #charMenuBtn[aria-expanded="true"] { border-color:var(--gold-line); color:var(--gold); }
  /* A drawer from the right, full height, over the page dimmed behind it (a tap there closes it). */
  #charMenu { display:block; position:fixed; inset:0; z-index:40; background:#0009; visibility:hidden; opacity:0; transition:opacity .25s ease, visibility 0s .25s; }
  #charMenuPanel { position:absolute; top:0; right:0; bottom:0; width:min(84vw, 330px); display:flex; flex-direction:column; gap:6px; overflow:auto; padding:16px 8px 12px; background:var(--panel); border-left:1px solid var(--line); box-shadow:-8px 0 24px #000a; transform:translateX(100%); transition:transform .28s ease; }
  #charMenu p-brand { position:sticky; top:-16px; z-index:1; flex:none; margin:-16px -8px 0; padding:16px 16px 8px; background:var(--panel); border-bottom:1px solid var(--line-control); --brand-mark:22px; } /* (held at the top as the characters scroll; sticky offsets count from inside the panel's padding) */
  #charMenu .bnet { position:sticky; bottom:-12px; z-index:1; display:flex; flex-wrap:wrap; align-items:center; gap:8px; align-self:stretch; margin:auto -8px -12px; padding:8px 16px 12px; background:var(--panel); border-top:1px solid var(--line-control); } #charMenu .bnet[hidden] { display:none; } /* (at the foot of the menu, held there as the characters scroll) */
}
