/* DaftBot · Daftlad Creations (2026-11-17). Our own chat-room look, fox orange accent. */
:root {
  --bg0: #0f0d12; --bg1: #16131a; --bg2: #1d1922; --bg3: #26212d; --line: #322b3a;
  --ink: #ece7f2; --dim: #a49cb0; --faint: #6f667b;
  --fox: #ff7a1a; --fox2: #ffb066; --ok: #43d17a; --bad: #ff5d6c; --gold: #f2c14e; --blue: #5aa9ff;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg0); color: var(--ink);
  font: 15px/1.45 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; }
button, input { font: inherit; color: inherit; }
.hidden { display: none !important; }

.app { display: grid; grid-template-columns: 68px 230px 1fr 220px; height: 100%; min-height: 0; overflow: hidden; }

/* server rail */
.rail { background: var(--bg0); display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 0; }
.srv { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; background: var(--bg2);
  transition: border-radius .2s, background .2s; cursor: default; user-select: none; }
.srv.on { border-radius: 15px; background: linear-gradient(135deg, var(--fox), #c2410c); box-shadow: 0 0 0 2px #ff7a1a33; }
.srv.ghost { opacity: .55; font-size: 20px; }
.srv.ghost:hover { border-radius: 15px; opacity: .8; }
.rail-sep { width: 30px; height: 2px; border-radius: 2px; background: var(--line); }

/* channels */
.side { background: var(--bg1); display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); }
.side-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.side-x { display: none; cursor: pointer; padding: 2px 8px; border-radius: 6px; }
.cats { flex: 1; overflow: auto; padding: 10px 8px; }
.cat { margin: 6px 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.ch { display: flex; align-items: center; gap: 6px; width: 100%; padding: 6px 10px; border: 0; border-radius: 7px; background: none;
  color: var(--dim); text-align: left; cursor: pointer; }
.ch:hover { background: var(--bg2); color: var(--ink); }
.ch.on { background: var(--bg3); color: var(--ink); }
.ch .h { color: var(--faint); font-size: 18px; width: 16px; text-align: center; }
.ch .dot { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.me { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--bg0); }
.me-t { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.me-t b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-t small { color: var(--gold); }

/* chat */
.chat { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--bg2); }
.chat-top { display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 50px; flex: none; border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 6px #0006; }
.chat-top .hash { color: var(--faint); font-size: 22px; }
.topic { color: var(--dim); font-size: 13px; margin-left: 8px; padding-left: 10px; border-left: 1px solid var(--line);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.burger, .mem-btn { display: none; border: 0; background: none; font-size: 20px; cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.mem-btn { margin-left: 4px; }
.brain-ind { margin-left: auto; flex: none; font-size: 12px; line-height: 1.2; color: var(--dim); background: var(--bg3);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; white-space: nowrap; user-select: none; }
.brain-ind.ai { color: var(--ok); border-color: #43d17a55; }
.brain-ind.potato { color: var(--gold); border-color: #f2c14e55; }
.log { flex: 1; overflow-y: auto; padding: 14px 0 6px; min-height: 0; overscroll-behavior: contain; }
.msg { display: grid; grid-template-columns: 44px 1fr; gap: 0 12px; padding: 4px 18px; }
.msg:hover { background: #ffffff05; }
.msg.cont { padding-top: 1px; }
.msg.cont .av, .msg.cont .who { visibility: hidden; height: 0; }
.msg.cont .av { margin: 0; }
.av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 21px; background: var(--bg3); margin-top: 2px; flex: none; }
.av.bot { background: linear-gradient(135deg, var(--fox), #a33a07); }
.who { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.who b { font-weight: 600; }
.tag { font-size: 10px; font-weight: 800; padding: 1px 5px; border-radius: 4px; background: var(--fox); color: #1b0d03; transform: translateY(-1px); }
.time { font-size: 11.5px; color: var(--faint); }
.body { min-width: 0; overflow-wrap: anywhere; }
.body p { margin: 2px 0; white-space: pre-wrap; }
.body code { background: var(--bg0); padding: 1px 5px; border-radius: 4px; font-size: 13.5px; }
.sys { color: var(--dim); font-size: 13.5px; padding: 6px 18px 6px 74px; }
.sys b { color: var(--ink); }
.mention { background: #ff7a1a26; color: var(--fox2); padding: 0 3px; border-radius: 4px; }

.embed { margin: 6px 0 4px; max-width: 520px; background: var(--bg1); border-left: 4px solid var(--fox); border-radius: 6px; padding: 10px 14px 12px; }
.embed h4 { margin: 0 0 6px; font-size: 15.5px; }
.embed .ed { margin: 0; white-space: pre-wrap; color: #ddd6e6; }
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px 14px; margin-top: 8px; }
.fields div b { display: block; font-size: 13px; }
.fields div span { color: #d4cde0; font-size: 14px; white-space: pre-wrap; }
.embed .foot { margin-top: 8px; font-size: 12px; color: var(--faint); }
.big { font-size: 34px; letter-spacing: 6px; margin: 4px 0; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.btn { border: 0; border-radius: 6px; padding: 6px 14px; background: var(--bg3); cursor: pointer; font-weight: 600; }
.btn:hover { filter: brightness(1.2); }
.btn.go { background: var(--fox); color: #1b0d03; }
.btn.red { background: var(--bad); color: #fff; }
.btn:disabled { opacity: .45; cursor: default; filter: none; }

.typing { height: 22px; padding: 0 18px; font-size: 12.5px; color: var(--dim); }
.typing i { display: inline-block; width: 5px; height: 5px; margin-right: 2px; border-radius: 50%; background: var(--dim); animation: bob 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; margin-right: 6px; }
@keyframes bob { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-4px); } }

.box { position: relative; display: flex; gap: 8px; margin: 0 14px 14px; padding: 6px 6px 6px 14px; background: var(--bg3); border-radius: 10px; flex: none; }
.box input { flex: 1; min-width: 0; border: 0; background: none; outline: none; padding: 8px 0; }
.box button { border: 0; border-radius: 8px; background: var(--fox); color: #1b0d03; width: 40px; cursor: pointer; font-size: 16px; }
.box:focus-within { box-shadow: 0 0 0 2px #ff7a1a55; }
.suggest { position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); max-height: 300px; overflow: auto; background: var(--bg1);
  border: 1px solid var(--line); border-radius: 10px; padding: 6px; box-shadow: 0 -10px 30px #0008; }
.sg { display: flex; gap: 10px; align-items: baseline; padding: 6px 10px; border-radius: 6px; cursor: pointer; }
.sg b { color: var(--fox2); white-space: nowrap; }
.sg span { color: var(--dim); font-size: 13px; }
.sg.on, .sg:hover { background: var(--bg3); }

/* members */
.members { background: var(--bg1); border-left: 1px solid var(--line); overflow: auto; padding: 14px 10px; }
.members h5 { margin: 10px 8px 6px; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.mem { display: flex; align-items: center; gap: 10px; padding: 5px 8px; border-radius: 7px; }
.mem:hover { background: var(--bg2); }
.mem .av { width: 32px; height: 32px; font-size: 17px; position: relative; margin: 0; }
.mem .av::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--ok); border: 3px solid var(--bg1); }
.mem.idle .av::after { background: var(--gold); }
.mem.off { opacity: .45; } .mem.off .av::after { background: var(--faint); }
.mem small { display: block; color: var(--faint); font-size: 12px; line-height: 1.1; }
.gold { color: var(--gold) !important; }

/* smaller screens */
@media (max-width: 1100px) {
  .app { grid-template-columns: 68px 220px 1fr; }
  .members { display: none; position: absolute; right: 0; top: 50px; bottom: 0; width: 240px; z-index: 5; box-shadow: -10px 0 30px #0009; }
  .members.open { display: block; }
  .mem-btn { display: block; }
  .chat { position: relative; }
  .app { position: relative; }
}
@media (max-width: 720px) {
  .app { grid-template-columns: 1fr; }
  .rail { display: none; }
  .side { display: none; position: absolute; inset: 0 auto 0 0; width: min(82vw, 300px); z-index: 6; box-shadow: 10px 0 30px #0009; }
  .side.open { display: flex; }
  .side-x { display: block; }
  .burger { display: block; }
  .topic { display: none; }
  .msg { padding: 4px 10px; grid-template-columns: 36px 1fr; gap: 0 10px; }
  .av { width: 34px; height: 34px; font-size: 18px; }
  .sys { padding-left: 56px; }
  .box { margin: 0 8px 8px; }
  .embed { max-width: 100%; }
}

/* The live lounge (2026-11-18) */
.livetag { margin-left: 6px; font-size: 9.5px; font-weight: 800; letter-spacing: .05em; padding: 1px 5px; border-radius: 4px;
  background: var(--bad); color: #fff; animation: livepulse 2s ease-in-out infinite; }
@keyframes livepulse { 50% { opacity: .55; } }
.tag.you { background: var(--blue); color: #06121f; }
.rep { margin-left: auto; border: 0; background: none; color: var(--faint); cursor: pointer; font-size: 13px; padding: 0 4px; border-radius: 4px; opacity: 0; transition: opacity .15s; }
.msg:hover .rep, .rep:focus-visible { opacity: 1; }
.rep:hover { color: var(--bad); }
.rep:disabled { color: var(--ok); opacity: 1; cursor: default; }
@media (hover: none) { .rep { opacity: .6; } }
.mem-empty { margin: 4px 8px; color: var(--faint); font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .livetag { animation: none; } }
