/* Eclipse Shards · the character screen (named_chars, 2026-11-13; pipeline/notes/named_chars). One framed panel on the left, in the kit's
   look (ui/kit.css: the thorned frame, the crest, the ember-bronze primary, the quiet bronze ghost buttons). Ariel's rules: ONE panel size
   (its two pages, the list and the new character, fill the same box; the box follows the window only), nothing moves on a click (the
   rows keep their place, the highlight is a border and a tint; the dialog lies OVER the panel), centred one-line labels, the list scrolls
   inside its own fixed area. Loaded after kit.css; #game #select #chars wins over the old class-screen rules. */
/* round1114g (Ariel: "not against the left margin and it should, and it's too big, it's almost crashing with the logo"): the panel's frame
   sits on the screen's left margin (the logo's, header padding 32px; the frame's corner knots reach 8px past the box), starts a clear
   gap under the logo (header 24px + the logo's height, brand.css .brand img, + 52px: the crest on its top rail stays ~27px under the
   logo) and is smaller: narrower, and as tall as its pages need (not down to the screen's foot). Both pages share this one box. */
#game #select #chars{--chars-top:calc(24px + clamp(62px,10.5vh,116px) + 52px);position:absolute;left:40px;top:var(--chars-top);bottom:auto;
  height:min(var(--chars-h,640px),calc(100vh - var(--chars-top) - 22px));width:min(clamp(400px,21.5vw,416px),calc(100vw - 56px));
  box-sizing:border-box;margin:0;padding:max(32px,var(--pt,32px)) 22px 14px;display:flex;flex-direction:column;align-items:stretch;text-align:center;overflow:visible}
#game #select #chars::before{width:min(230px,56%);top:-22px}   /* (the crest, narrower: clear of the logo above) */
#game #select #chars>.chars-page{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;align-items:stretch}
#game #select #chars>.chars-page[hidden]{display:none}
#game #select #chars .eyebrow{flex:none;margin:0}
#game #select #chars h2{flex:none;font-size:clamp(24px,3.1vh,30px);line-height:1.2;height:1.2em;margin:8px 0 2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:.04em}
#game #select #chars .chars-sub{flex:none;height:22px;margin:0;font:400 16px/22px var(--serif);color:#b6a98e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ---- the list: a fixed area that scrolls; rows of one height ---- */
#game #select #chars .chars-list{flex:1 1 auto;min-height:62px;margin:12px -6px 0;padding:4px 6px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable;
  scrollbar-width:thin;scrollbar-color:rgba(154,106,78,.45) transparent;border-top:1px solid rgba(154,106,78,.22);border-bottom:1px solid rgba(154,106,78,.22)}
#game #select #chars .char-row{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;column-gap:12px;width:100%;height:56px;box-sizing:border-box;margin:4px 0;
  padding:5px 12px 5px 5px;border:1px solid rgba(154,106,78,.26);background:linear-gradient(90deg,rgba(30,22,17,.6),rgba(12,11,10,.45));color:#cfc4ab;text-align:left;
  box-shadow:none;transform:none;transition:border-color .15s,background .15s}
#game #select #chars .char-row:hover{border-color:rgba(210,162,126,.55);background:linear-gradient(90deg,rgba(60,40,28,.6),rgba(18,14,12,.5))}
#game #select #chars .char-row[aria-selected=true]{border-color:var(--bz-4);background:linear-gradient(90deg,rgba(92,58,40,.62),rgba(36,24,17,.55));box-shadow:inset 3px 0 0 var(--bz-4),0 0 18px -8px rgba(232,160,100,.6)}
#game #select #chars .char-row:focus-visible{outline:1px solid var(--bz-hi);outline-offset:-3px}
#game #select #chars .char-row .portrait{display:block;width:44px;height:44px;overflow:hidden;border:1px solid rgba(154,106,78,.45);background:#05070a}
#game #select #chars .char-row .portrait img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 16%;filter:saturate(.9) brightness(.95)}
#game #select #chars .char-row .cr-main,#game #select #chars .char-row .cr-side{display:flex;flex-direction:column;justify-content:center;gap:3px;min-width:0}
#game #select #chars .char-row .cr-side{align-items:flex-end;text-align:right}
#game #select #chars .char-row b,#game #select #chars .char-row small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
#game #select #chars .cr-main b{font:400 15px/1.2 var(--display);letter-spacing:.06em;color:#ead7b0}
#game #select #chars .cr-main small{font:400 14px/1.2 var(--serif);color:#a69a83}
#game #select #chars .cr-side b{font:600 11px/1.2 var(--display);letter-spacing:.14em;text-transform:uppercase;color:var(--bz-4)}
#game #select #chars .cr-side small{font:400 13px/1.2 var(--serif);color:#8f8676}
#game #select #chars .char-row[aria-selected=true] .cr-main b{color:var(--bz-hi)}
#game #select #chars .chars-count{flex:none;height:16px;margin:6px 0 0;font:400 10px/16px var(--display);letter-spacing:.28em;text-transform:uppercase;color:#8d806b}

/* ---- buttons: the primary full width; the rows of three, equal and one line ---- */
#game #select #chars #select-begin,#game #select #chars #chars-begin{flex:none;box-sizing:border-box;width:100%;min-width:0;height:50px;min-height:0;margin:8px 0 0;padding:0 18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#game #select #chars .chars-row{flex:none;display:grid;grid-template-columns:minmax(0,1.36fr) minmax(0,1fr) minmax(0,1fr);gap:8px;margin:8px 0 0}   /* (the first column a little wider: NEW CHARACTER on one line with room) */
#game #select #chars .chars-row.two{grid-template-columns:repeat(2,minmax(0,1fr))}
#game #select #chars .chars-row button{box-sizing:border-box;width:100%;min-width:0;height:38px;min-height:0;margin:0;padding:.1em 4px 0;display:flex;align-items:center;justify-content:center;
  font:400 11px/1 var(--display);letter-spacing:.12em;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transform:none}
#game #select #chars .chars-row.chars-files button{height:32px;font-size:10px;letter-spacing:.14em;color:#bba98a;border-color:rgba(154,106,78,.32)}
#game #select #chars .chars-row button:disabled{opacity:.38}

/* ---- the new character: the three class cards, the class's words, the name ---- */
#game #select #chars .class-cards{flex:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:14px 0 0;flex-wrap:nowrap}   /* feedback_1117d: four cards (Anastasiia's always there, sealed or awake: nothing moves when she wakes) */
#game #select #chars .class-card{width:auto;flex:none;min-width:0;padding:0 0 8px;margin:0;transform:none}
#game #select #chars .class-card .portrait{height:clamp(56px,calc(89vh - 590px),128px)}   /* round1114g: what the shorter panel leaves after the class's three lines of words (full 128px from ~810px tall) */
#game #select #chars .class-card b{min-height:0;height:2.6em;margin:6px 4px 0;font-size:10.5px;line-height:1.3;letter-spacing:.1em;align-items:center}
#game #select #chars .class-card.selected::after{width:96px}
#game #select #chars .class-card.selected{box-shadow:inset 0 0 0 1px var(--bz-4),0 0 26px -6px rgba(232,160,100,.65)}
#game #select #chars .class-card:not(.selected) .portrait img{filter:saturate(.55) brightness(.68)}
#game #select #chars .class-card:not(.selected) b{color:#a0937c}
/* feedback_1117d: Anastasiia asleep: the same box, dark, no portrait, one line on how to wake her; no hover lift, no pointer */
#game #select #chars .class-card .seal-line{display:none}
#game #select #chars .class-card.sealed{cursor:default!important;filter:none;opacity:1}
#game #select #chars .class-card.sealed .portrait{background:radial-gradient(ellipse at 50% 40%,#2a0d12,#0a0506 70%)}
#game #select #chars .class-card.sealed .portrait img{visibility:hidden}
#game #select #chars .class-card.sealed .seal-line{display:flex;position:absolute;inset:0;z-index:1;align-items:center;justify-content:center;padding:0 6px;font:400 13px/1.25 var(--serif);color:#b88a84;text-align:center}
#game #select #chars .class-card.sealed b{color:#6e5a52}
#game #select #chars .select-blurb{display:block;flex:1 1 auto;min-height:0;width:auto;max-width:none;margin:10px 2px 0;overflow:hidden;font:400 16px/1.4 var(--serif);color:#aeb2a8}
#game #select #chars .chars-skill{flex:none;height:20px;margin:6px 0 0;font:400 15px/20px var(--serif);color:#cdb98d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#game #select #chars .chars-field{flex:none;display:flex;flex-direction:column;align-items:stretch;gap:5px;margin:14px 0 0;text-align:left}
#game #select #chars .chars-field>span{font:400 10px/1 var(--display);letter-spacing:.3em;text-transform:uppercase;color:#a99a80;text-align:center}
#game #select #chars input[type=text]{box-sizing:border-box;width:100%;height:44px;margin:0;padding:0 12px;border:1px solid rgba(154,106,78,.55);border-radius:0;outline:0;
  background:linear-gradient(#0b0908f0,#141110f0);color:var(--cream);font:500 20px/1 var(--serif);letter-spacing:.02em;text-align:center;caret-color:var(--bz-hi);
  box-shadow:inset 0 1px 6px #000a;cursor:text!important}
#game #select #chars input[type=text]:focus{border-color:var(--bz-4);box-shadow:inset 0 1px 6px #000a,0 0 0 1px rgba(210,162,126,.35)}
#game #select #chars input[type=text]::selection{background:rgba(210,162,126,.4)}

/* ---- under every page: the message line (the keys, or what just happened) and the way back ---- */
#game #select #chars>.select-hint{flex:none;height:20px;max-width:none;margin:10px 0 0;font:400 15px/20px var(--serif);color:#8d958f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#game #select #chars>.select-hint.warn{color:#e2b27a}
#game #select #chars>.select-hint.ok{color:#cdb98d}
#game #select #chars>#select-back{flex:none;align-self:center;box-sizing:border-box;width:220px;min-width:0;height:42px;margin:8px auto 0;padding:.11em 12px 0}

/* ---- the dialog (rename / delete): over the panel, the panel unchanged ---- */
#game #select #chars>.chars-dialog{position:absolute;inset:10px;z-index:3;display:grid;place-items:center;background:radial-gradient(ellipse at 50% 50%,#0b0807f2,#050505e6);backdrop-filter:blur(1px)}
#game #select #chars>.chars-dialog[hidden]{display:none}
#game #select #chars .chars-dbox{box-sizing:border-box;width:calc(100% - 28px);padding:20px 18px 18px;border:1px solid rgba(154,106,78,.5);background:linear-gradient(#17120ff5,#0b0a09f5);box-shadow:0 18px 50px -12px #000}
#game #select #chars .chars-dtext{min-height:3em;margin:12px 0 12px;font:400 17px/1.45 var(--serif);color:#d6cab0}
#game #select #chars .chars-dbox input[type=text][hidden]{display:none}
#game #select #chars .chars-derr{height:20px;margin:8px 0 0;font:400 15px/20px var(--serif);color:#e2b27a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#game #select #chars .chars-dbox .chars-row button{height:44px;font-size:11.5px}
#game #select #chars .chars-dbox .chars-row .primary.danger{background:linear-gradient(180deg,#7a3326 0%,#4f1f17 46%,#2c120d 100%) padding-box}

/* ---- the view control, clear of the panel ---- */
@media (max-width:1100px) and (min-width:901px){#game section#select .select-views{left:auto;right:24px;transform:none}}
/* short windows: a shorter list and smaller cards; the class's words give way first */
@media (max-height:800px){#game #select #chars .select-blurb{font-size:15px;line-height:1.35}}
@media (max-height:724px){#game #select #chars .select-blurb{display:none}}   /* round1114g: under ~725px the shorter panel has no room for its three lines: hidden, never cut */
@media (max-height:620px){#game #select #chars .chars-row.chars-files button{height:28px}}
