/* /ladder/chat (ladder/chat.html) in the ladder's look, 18.11.2026 (SirItos: "the chat must not stand out"): the same slate and teal,
   Spectral headings and Roboto Condensed text (the fonts: ladder-hdr.css), the riveted steel frame round the messages, the room switch
   as the table's mode switch, the plate for the main buttons. Every class and id the chat's script uses is kept. Under 30 KB. */
:root {
  --tex-bg: url(/elite/ui/bg.webp); --tex-panel: url(/elite/ui/panel-fill.jpg); --tex-card: url(/elite/ui/card-fill.jpg);
  --steel: linear-gradient(#7f9a96, #3a5452 28%, #172627 52%, #2c4341 78%, #6c8884);
  --plate: linear-gradient(#2f5d56, #183c37 45%, #0d2522 56%, #13332f) padding-box, linear-gradient(#d2e9e3, #5f8a83 30%, #1f3b38 62%, #8fb5ad) border-box;
  --plate-sh: 0 0 0 1px #000, inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 0 0 1px rgba(0, 0, 0, .45), inset 0 0 10px rgba(69, 224, 192, .28), 0 0 8px rgba(69, 224, 192, .32);
  --metal: linear-gradient(#1b2c2e, #0c1516) padding-box, linear-gradient(#5f7c78, #24393a 45%, #121c1d) border-box;
  --metal-sh: 0 0 0 1px #000, inset 0 1px 0 rgba(255, 255, 255, .07), inset 0 0 0 1px rgba(69, 224, 192, .12);
  --glow: 0 0 0 1px #000, inset 0 0 0 1px rgba(69, 224, 192, .75), inset 0 0 10px rgba(69, 224, 192, .22), 0 0 7px rgba(69, 224, 192, .28);
  --cardbg: linear-gradient(rgba(13, 26, 27, .84), rgba(7, 14, 15, .9)) padding-box, var(--tex-card) center / cover padding-box, linear-gradient(#0c1718, #0c1718) padding-box;
  --cardbd: linear-gradient(#5b7773, #263a39 38%, #132121 62%, #44605c) border-box;
  --bg: #0a1112; --ln: #1e5a52; --ln2: #2b8273; --tx: #e4f3ed; --sf: #bdd1cb; --mu: #86a19b; --dim: #6f8c86;
  --gd: #45e0c0; --gd2: #c8fff0; --ok: #62e39a; --bd: #ff8f7d; --sep: rgba(30, 90, 82, .55);
  --fb: "Roboto Condensed", "Arial Narrow", "Liberation Sans Narrow", "Helvetica Neue", Arial, sans-serif; --fh: "D Head", Spectral, Georgia, "Times New Roman", serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
/* 18.11.2026: the body grows with the messages (min-height, not height) - a body of the screen's height ended the sticky top bar's
   run after one screen of scrolling */
html { height: 100%; }
body { margin: 0; min-height: 100%; }
html { background: var(--bg); }
body { display: flex; flex-direction: column; color: var(--tx); font: 15px/1.45 var(--fb); -webkit-text-size-adjust: 100%;
  background: radial-gradient(ellipse at 50% -10%, rgba(69, 224, 192, .09), transparent 55%), linear-gradient(rgba(5, 10, 11, .74), rgba(5, 10, 11, .74)),
    radial-gradient(ellipse at 50% 40%, transparent 40%, rgba(0, 0, 0, .7)), var(--tex-bg) center / cover fixed, var(--bg); }
a { color: var(--gd); text-decoration: none; transition: color .15s, text-shadow .15s; }
a:hover, a:focus-visible { color: #c9f7ea; text-shadow: 0 0 6px rgba(69, 224, 192, .35); }
button, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid var(--gd); outline-offset: 2px; }
.wrap { width: 100%; max-width: 820px; margin: 0 auto; flex: 1 1 0; display: flex; flex-direction: column; padding: 0 16px; }
.wrap > header { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 18px 2px 12px; margin-bottom: 12px;
  background: linear-gradient(90deg, transparent, rgba(69, 224, 192, .6) 16%, rgba(69, 224, 192, .6) 84%, transparent) center bottom / 100% 1px no-repeat,
    linear-gradient(90deg, transparent, rgba(0, 0, 0, .9) 8%, rgba(0, 0, 0, .9) 92%, transparent) center calc(100% - 1px) / 100% 2px no-repeat; }
h1 { margin: 0; font: 700 26px/1.2 var(--fh); color: #d8f6ea; text-shadow: 0 2px 2px #000; }
.lv { padding: 2px 9px; border: 1px solid var(--ln2); background: rgba(16, 48, 43, .6); color: var(--sf); font: 700 12px/1.4 var(--fb); letter-spacing: .06em; white-space: nowrap; }
.lv:hover { color: #fff; border-color: var(--gd); }

/* the cards: who I am, who is online, the sign-in (the launcher's cards) */
.me, .online, .signin { border: 2px solid transparent; background: var(--cardbg), var(--cardbd);
  box-shadow: 0 0 0 1px #000, inset 0 0 0 1px rgba(69, 224, 192, .18), inset 0 1px 0 rgba(255, 255, 255, .06), 0 2px 6px rgba(0, 0, 0, .45); }
.me { display: flex; align-items: center; gap: 10px; padding: 8px 12px; margin-bottom: 10px; }
.me img { width: 36px; height: 36px; object-fit: cover; background: #061011; border: 1px solid var(--ln2); }
.me .nm { font-weight: 700; color: var(--gd2); }
.me .rt { color: var(--mu); font-size: 14px; }
.me .out { margin-left: auto; height: 30px; padding: 0 12px; border: 2px solid transparent; background: var(--metal); box-shadow: var(--metal-sh);
  font: 700 14px/1 var(--fh); color: #dcefe9; text-shadow: 0 1px 2px #000; cursor: pointer; }
.me .out:hover { color: #fff; box-shadow: var(--glow); }
.online { padding: 8px 10px; margin-bottom: 10px; }
.ohdr { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; font: 700 12.5px var(--fb); letter-spacing: .08em; text-transform: uppercase; color: var(--sf); }
.ohdr .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 6px var(--ok); flex: none; }
.olist { display: flex; flex-wrap: wrap; gap: 6px; max-height: 96px; overflow-y: auto; }
.ou { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 2px 10px 2px 2px; border: 1px solid rgba(43, 130, 115, .55); background: #061011;
  font-size: 13.5px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.ou:hover { border-color: var(--gd); box-shadow: 0 0 6px rgba(69, 224, 192, .3); }
.ou img { width: 22px; height: 22px; object-fit: cover; background: #000; flex: none; }
.ou .on { color: var(--tx); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.ou .rt { color: var(--mu); font-size: 12px; flex: none; }
.ou.in { border-color: rgba(98, 227, 154, .45); }
.ou.in .on { color: #a7f0c4; }
.nk { cursor: pointer; }
.nk:hover { color: var(--gd2); text-decoration: underline; }

/* the rooms: the table's mode switch */
.rooms { display: inline-flex; gap: 6px; width: max-content; margin-bottom: 10px; }
.rooms button { height: 34px; padding: 0 18px; border: 2px solid transparent; background: var(--metal); box-shadow: var(--metal-sh); cursor: pointer;
  font: 700 16px/1 var(--fh); color: #9fbab3; text-shadow: 0 1px 2px #000; transition: box-shadow .12s, color .12s; }
.rooms button:hover:not(.on) { color: #fff; box-shadow: var(--glow); }
.rooms button.on { background: var(--plate); color: #fff; box-shadow: var(--plate-sh); cursor: default; }

/* the messages: the riveted steel frame of the site's panels */
.msgs { flex: 1; min-height: 240px; overflow-y: auto; padding: 10px 14px; border: 4px solid #2a403f; border-image: var(--steel) 1;
  background: linear-gradient(rgba(9, 19, 20, .88), rgba(5, 11, 12, .93)), var(--tex-panel) center / cover, #0b1516;
  box-shadow: 0 0 0 1px #000, 0 0 0 3px #0a1213, 0 0 0 4px rgba(69, 224, 192, .3), 0 0 16px rgba(69, 224, 192, .12), inset 0 0 0 1px #000, inset 0 0 28px rgba(69, 224, 192, .07);
  margin: 4px 4px 0; scrollbar-color: #2b6f64 transparent; }
.m { display: flex; gap: 10px; padding: 8px 0; }
.m + .m { border-top: 1px solid var(--sep); }
.m img { width: 34px; height: 34px; object-fit: cover; background: #061011; border: 1px solid rgba(43, 130, 115, .5); flex: none; }
.m .b { min-width: 0; }
.m .h { display: flex; align-items: center; flex-wrap: wrap; margin-bottom: 1px; font-size: 13px; color: var(--mu); }
.m .h b { margin-right: 4px; font-weight: 700; font-size: 14.5px; color: var(--gd2); }
.m .t { font-size: 15.5px; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-wrap; }
.m .t .at { color: var(--gd); font-weight: 600; }
/* 18.11.2026 (SirItos): links in the messages (chat.html linkify) - the site's link colour; 19.11: underlined always, never bold */
.m .t a.lk { color: var(--gd); font-weight: 400; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.m .t a.lk:hover, .m .t a.lk:focus-visible { color: #c9f7ea; }
.empty { padding: 30px 0; text-align: center; color: var(--mu); }
/* 20.11.2026 (SirItos: "on a phone the older messages do not load" - the page scrolls, not the list): a button, and scrolling the
   page up to it loads them too (chat.html) */
.older { display: block; width: 100%; margin: 0 0 8px; padding: 7px 10px; border: 1px solid rgba(43, 130, 115, .5); background: rgba(6, 16, 17, .6);
  color: var(--sf); font: 600 13px var(--fb); text-align: center; cursor: pointer; }
.older:hover, .older:focus-visible { color: #fff; border-color: var(--gd); }
.older:disabled { opacity: .6; cursor: default; }
/* Reply (13.11.2026, as in the launcher): the arrow after the name and the time on hover; the quote over a reply; the bar over the input */
.m .rpl { display: inline-grid; place-items: center; height: 20px; padding: 0 4px; margin-left: 6px; border: 0; background: none; color: var(--mu);
  cursor: pointer; opacity: 0; transition: opacity .12s, color .12s, filter .12s; }
.m .rpl svg, .rbar svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.m:hover .rpl, .m .rpl:focus-visible { opacity: 1; }
.m .rpl:hover, .m .rpl:focus-visible { color: var(--gd); filter: drop-shadow(0 0 4px rgba(69, 224, 192, .7)); outline: none; }
@media (hover: none) { .m .rpl { opacity: .6; } }
.m .rq { display: flex; flex-direction: column; gap: 1px; max-width: 100%; margin: 3px 0 2px; padding: 2px 8px; border-left: 2px solid var(--gd);
  background: rgba(69, 224, 192, .07); cursor: pointer; font-size: 13px; line-height: 1.35; }
.m .rq b { color: var(--gd2); font-weight: 600; }
.m .rq i { font-style: normal; color: var(--mu); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m .rq:hover, .m .rq:focus-visible { background: rgba(69, 224, 192, .14); outline: none; }
.m .rq.del { cursor: default; border-left-color: var(--ln); }
.m .rq.del i { font-style: italic; }
.m.tome { padding-left: 8px; box-shadow: inset 2px 0 0 var(--gd); background: linear-gradient(90deg, rgba(69, 224, 192, .09), transparent 70%); }
.m.flash { animation: chflash 1.4s ease; }
@keyframes chflash { 0%, 40% { background: rgba(69, 224, 192, .2); } 100% { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .m.flash { animation: none; } }

/* the bottom: sign in / the reply bar / the input */
.foot { position: sticky; bottom: 0; padding: 12px 0 18px; background: linear-gradient(transparent, var(--bg) 24px); }
.signin { padding: 14px; text-align: center; }
.signin p { margin: 0 0 10px; color: var(--sf); }
.steam { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 22px; border: 2px solid transparent; background: var(--plate); box-shadow: var(--plate-sh);
  font: 700 16px/1 var(--fh); color: #fff; text-shadow: 0 1px 2px #000, 0 0 8px rgba(0, 0, 0, .6); cursor: pointer; transition: filter .12s, box-shadow .12s; }
.steam:hover { box-shadow: var(--plate-sh), 0 0 14px rgba(69, 224, 192, .45); filter: brightness(1.15); }
.steam svg { width: 18px; height: 18px; fill: currentColor; }
.rbar { display: flex; align-items: center; gap: 8px; padding: 5px 10px; border: 1px solid #2b6f64; border-bottom: 0; background: #0b1819; font-size: 14px; }
.rbar svg { flex: none; stroke: var(--gd); width: 15px; height: 15px; }
.rbar .rb-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--mu); }
.rbar .rb-t b { color: var(--gd2); font-weight: 600; }
.rbar button { border: 0; background: none; color: var(--mu); font-size: 18px; line-height: 1; cursor: pointer; padding: 0 2px; }
.rbar button:hover { color: var(--tx); }
.send { display: flex; gap: 8px; }
.send textarea { flex: 1; min-width: 0; resize: none; padding: 9px 11px; border: 1px solid #2b6f64; border-radius: 0; background: #061011; color: #e8fff6;
  font: 500 15.5px/1.4 var(--fb); }
.send textarea:focus { border-color: var(--gd); box-shadow: 0 0 0 1px rgba(69, 224, 192, .35); outline: none; }
.send textarea::placeholder { color: var(--dim); }
.send button { padding: 0 20px; border: 2px solid transparent; background: var(--plate); box-shadow: var(--plate-sh); font: 700 16px/1 var(--fh); color: #fff;
  text-shadow: 0 1px 2px #000; cursor: pointer; transition: filter .12s, box-shadow .12s; }
.send button:hover:not(:disabled) { box-shadow: var(--plate-sh), 0 0 14px rgba(69, 224, 192, .45); filter: brightness(1.15); }
.send button:disabled { opacity: .5; cursor: default; }
.toast { position: fixed; left: 50%; bottom: 84px; z-index: 10; max-width: 90%; padding: 10px 16px; transform: translateX(-50%); text-align: center;
  border: 1px solid var(--bd); background: #1d1112; color: #ffe1db; box-shadow: 0 4px 16px rgba(0, 0, 0, .6); opacity: 0; transition: opacity .2s; pointer-events: none; }
.toast.on { opacity: 1; }
.toast.ok { border-color: var(--ok); background: #0d1d16; color: #d6ffe7; }
@media (max-width: 620px) {
  .wrap { padding: 0 8px; }
  .wrap > header { padding: 12px 2px 10px; }
  h1 { font-size: 22px; }
  .rooms { width: 100%; } .rooms button { flex: 1; padding: 0 10px; }
  .msgs { padding: 6px 10px; margin: 4px 2px 0; }
  .m .t { font-size: 15px; }
  .send button { padding: 0 14px; }
}

/* 18.11.2026 (SirItos): the page scrolls as before (the inner-scroll box, PR #46, was too small on a phone), only the site's top bar
   stays in view - sticky, opaque enough to read over the messages; jumps to a quote stop below it */
html { scroll-padding-top: 72px; }
/* 20.11.2026 (SirItos: "on a phone the chat covers the menu"): no backdrop-filter - it made the header the box of its fixed drawer
   (the menu was cut to the header's 54 px and the messages drew over it); the bar is opaque enough without the blur */
body > header.hdr { position: sticky; top: 0; z-index: 50; background: linear-gradient(rgba(4, 9, 10, .98), rgba(4, 9, 10, .95)); }
