*{box-sizing:border-box;margin:0;padding:0}html,body{width:100%;height:100%;overflow:hidden;background:transparent;font-family:'Segoe UI',system-ui,sans-serif}body{display:flex;flex-direction:column;justify-content:flex-end;--accent:#cfafff;--surface:#2d1b3e;--ink:#f8efff;--size:17px}body.size-small{--size:14px}body.size-large{--size:22px}#chat{display:flex;flex-direction:column;justify-content:flex-end;gap:10px;padding:54px 16px 16px;width:100%;max-height:100%;overflow:hidden;flex-shrink:1}body.no-status #chat{padding-top:16px}.msg{flex-shrink:0;min-width:0;width:100%;background:var(--surface);border:1px solid color-mix(in srgb,var(--accent) 45%,transparent);border-left:3px solid var(--accent);border-radius:4px 14px 14px 14px;padding:12px 15px;line-height:1.45;font-size:var(--size);box-shadow:0 5px 14px #0002;overflow-wrap:anywhere;animation:chatEnter .25s ease both}.username{display:block;font-size:.75em;font-weight:750;letter-spacing:.2px;overflow-wrap:anywhere;white-space:normal;max-width:100%;color:var(--accent)!important}.text{color:var(--ink);font-size:1em;overflow-wrap:anywhere;white-space:pre-wrap}.colon{display:none}.badges{display:inline-flex;float:left;align-items:center;gap:3px;margin:2px 5px 0 0}.badges img{width:16px;height:16px;object-fit:contain}.emote{height:1.8em;max-width:100%;object-fit:contain;vertical-align:middle}.fade-out{opacity:0!important;transition:opacity .5s}#connection{position:absolute;left:16px;top:14px;color:var(--ink);background:var(--surface);border:1px solid var(--accent);border-radius:5px;padding:6px 9px;font-size:9px;letter-spacing:1px}#connection[hidden]{display:none}#chat-effects{position:absolute;inset:0;pointer-events:none;overflow:hidden}#chat-effects span{position:absolute;bottom:-40px;font-size:35px;color:var(--accent);animation:chatFloat 3s ease-out forwards}
body[data-layout=bubbles] .msg{width:94%;border:1px solid color-mix(in srgb,var(--accent) 40%,transparent);border-radius:18px 18px 18px 3px}body[data-layout=bubbles] .msg:nth-child(even){align-self:flex-end;border-radius:18px 18px 3px 18px}
body[data-layout=compact] #chat{gap:4px}body[data-layout=compact] .msg{padding:6px 9px;border-radius:5px}body[data-layout=compact] .username{display:inline;font-size:.85em;margin-right:6px}body[data-layout=compact] .colon{display:inline;color:var(--accent);margin-right:5px}
body[data-layout=minimal] .msg{padding:3px 2px;background:transparent!important;border:0!important;box-shadow:none!important;color:#fff}body[data-layout=minimal] .text{color:#fff;text-shadow:0 1px 3px #000,0 0 3px #000}body[data-layout=minimal] .username{text-shadow:0 1px 2px #000}body[data-layout=minimal] .msg:before{display:none!important}
body[data-layout=sidebar] .msg{border:0;border-left:5px solid var(--accent);border-radius:0;padding-left:18px}
body[data-layout=window] .msg{border-radius:5px;padding:0 12px 11px;overflow:hidden}body[data-layout=window] .username{max-width:none;margin:0 -12px 9px;padding:6px 12px;background:var(--accent);color:var(--surface)!important;font-size:.75em}body[data-layout=window] .badges{float:none;position:relative;margin:7px 3px 4px 0}body[data-layout=window] .text{display:block}
body[data-layout=ticket] .msg{border-radius:0;border:1px dashed var(--accent);border-left:5px solid var(--accent);box-shadow:3px 3px 0 #0003}
body[data-layout=stack] .msg{width:94%;align-self:center;text-align:center;border-radius:12px;border-left-width:1px;border-top:3px solid var(--accent)}body[data-layout=stack] .badges{float:none}
body[data-theme=sticker] .msg{border-style:dashed;box-shadow:3px 3px 0 #9b6ac83b}body[data-theme=denim] .msg{border-style:dashed;background-image:repeating-linear-gradient(125deg,#ffffff05 0 1px,transparent 1px 4px)}
body:is([data-theme=xp],[data-theme=xp-purple]) .msg{border:2px solid var(--accent);box-shadow:inset 0 2px #fff9,2px 3px 0 #0002}body[data-theme=xp] .username{color:#205ea4!important}body[data-theme=xp-purple] .username{color:#76409e!important}body:is([data-theme=xp],[data-theme=xp-purple])[data-layout=window] .username{background:linear-gradient(90deg,#2a418c,var(--accent));color:#fff!important}
body[data-theme=classic95] .msg{border:2px outset #ececec;border-radius:0;box-shadow:2px 2px 0 #0005}body[data-theme=classic95][data-layout=window] .username{background:#000080;color:#fff!important}
body:is([data-theme=terminal],[data-theme=gameboy],[data-theme=pixel]){font-family:ui-monospace,Consolas,monospace}body:is([data-theme=terminal],[data-theme=gameboy],[data-theme=pixel]) .msg{border-radius:2px;background-image:repeating-linear-gradient(0deg,transparent 0 3px,#0000000c 3px 4px)}body[data-theme=terminal] .username:before{content:'> '}
body[data-theme=glass] .msg{box-shadow:inset 0 1px #ffffff40,0 6px 20px #0002}body[data-theme=cyber] .msg{box-shadow:inset 0 0 12px #b884ed19,0 0 9px #df9aff30}body[data-theme=synth] .msg{background-image:linear-gradient(115deg,#371943,#251733)}body[data-theme=aurora] .msg{background-image:linear-gradient(125deg,#185043,#17243e)}body[data-theme=arcade] .msg{border-radius:2px;border-bottom:3px solid var(--accent)}
body[data-theme=puppy] .username:before,body[data-theme=sticker] .username:before{content:'';display:inline-block;width:13px;height:13px;margin-right:5px;vertical-align:-2px;background:url('/new/paw.svg') center/contain no-repeat}
body.font-5,body.font-10{font-family:ui-monospace,Consolas,monospace}body.font-6{font-family:Impact,sans-serif}body.font-8{font-family:cursive}body.small-caps .text{font-variant:small-caps}body.stroke-1 .text{-webkit-text-stroke:.5px #000}body.stroke-2 .text{-webkit-text-stroke:1px #000}body.stroke-3 .text{-webkit-text-stroke:1.5px #000}
@keyframes chatEnter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes chatFloat{from{opacity:.9;transform:translateY(0)}to{opacity:0;transform:translateY(-100vh) rotate(50deg)}}body.reduce .msg{animation:none!important}body.reduce #chat-effects{display:none}@media(prefers-reduced-motion:reduce){.msg{animation:none!important}#chat-effects{display:none}}
body[data-layout=minimal] .username{color:color-mix(in srgb,var(--accent) 35%,white)!important}
.emote-stack{display:inline-block;position:relative;vertical-align:middle;max-width:100%;line-height:1}.emote-stack>.emote{display:block;height:1.8em;max-width:100%;width:auto;object-fit:contain;margin:0}.emote-stack>.emote-layer{position:absolute;left:50%;bottom:0;transform:translateX(-50%);height:100%;max-width:none;width:auto;pointer-events:none}.text.emote-only .emote-stack>.emote:not(.emote-layer){height:2.7em}.text.emote-only .emote-layer{height:100%}
body[data-theme=arena] .msg{border-radius:2px;box-shadow:inset 0 0 12px #78d8ff15;border-top:2px solid var(--accent);background-image:linear-gradient(125deg,#68e7ff12,transparent)}body[data-theme=quest] .msg{border:2px solid #ae8d58;background-image:repeating-linear-gradient(0deg,#825b2505 0 2px,transparent 2px 5px);box-shadow:2px 3px 0 #4a321533}body[data-theme=dungeon] .msg{border-color:#977bb4;box-shadow:inset 0 0 20px #0003}body[data-theme=loot] .msg{border-color:#c29a48;box-shadow:inset 0 0 18px #f6c9570c,0 0 7px #ffca4c20}body[data-theme=battle] .msg{border-radius:2px;background-image:linear-gradient(135deg,#b7f77b0c 25%,transparent 25%);border-bottom:3px solid #779d55}body[data-theme=space] .msg{background-image:radial-gradient(ellipse at right,#5976be33,transparent);border-radius:7px;border-top:2px solid #98c3ff}body[data-theme=racing] .msg{border-radius:1px;border-left:5px solid #ff8989;background-image:repeating-linear-gradient(135deg,transparent 0 18px,#ffffff03 18px 22px)}body[data-theme=voxel] .msg{border-radius:0;border-width:3px;border-color:#89b45f #425a34 #425a34 #89b45f;box-shadow:3px 3px 0 #14200b80;font-family:ui-monospace,Consolas,monospace}
body[data-layout=hud] .msg{border-radius:0;border:1px solid var(--accent);border-left:5px solid var(--accent);padding:10px 14px}body[data-layout=hud] .username{letter-spacing:1px;text-transform:uppercase;font-size:.72em;padding-bottom:4px;border-bottom:1px solid color-mix(in srgb,var(--accent) 25%,transparent);margin-bottom:5px}
body[data-layout=questlog] .msg{border-radius:3px;border:1px solid var(--accent);padding:12px 14px 12px 30px;position:relative}body[data-layout=questlog] .msg:before{content:'◇';position:absolute;left:9px;top:12px;color:var(--accent);font-size:16px}body[data-layout=questlog] .username{font-family:Georgia,serif;font-size:.85em}
body[data-layout=scoreboard] #chat{gap:3px}body[data-layout=scoreboard] .msg{border-radius:0;border:0;border-left:3px solid var(--accent);padding:7px 11px;box-shadow:none}body[data-layout=scoreboard] .msg:nth-child(even){background:color-mix(in srgb,var(--surface) 90%,var(--accent))}body[data-layout=scoreboard] .username{display:inline;font-size:.8em;margin-right:9px}body[data-layout=scoreboard] .text{font-size:.94em}
body[data-layout=dialogue] .msg{border:2px solid var(--accent);border-radius:10px;padding:14px 18px;box-shadow:inset 0 0 0 3px color-mix(in srgb,var(--surface) 80%,var(--accent)),0 4px 10px #0004}body[data-layout=dialogue] .username{display:table;padding:2px 9px;margin:0 0 8px -3px;border-radius:4px;background:var(--accent);color:var(--surface)!important;max-width:100%}body[data-layout=dialogue] .text{display:block;padding-bottom:5px}
