/* Shared Byte mascot + click-to-chat panel for legal, 404 and verify pages.
   Same keycap character as the game header. Canned lines live in byte-chat.js. */
.sitehead{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;margin-bottom:28px}
.sitehead nav{margin-bottom:0}
.brand{display:flex;align-items:center;gap:14px;min-width:0;position:relative}
.brandtext{min-width:0;display:flex;flex-direction:column;align-items:flex-start}
.wordmark{font:400 28px/1 "Lilita One",system-ui,sans-serif;color:var(--ink,#F5F1FF);text-decoration:none}
.wordmark:hover{color:var(--accent,#4CC9F0)}
.byte{--c:var(--accent,#4CC9F0);position:relative;width:64px;height:60px;flex:none;border-radius:16px;border:0;padding:0;margin:0;
  background:linear-gradient(180deg,color-mix(in srgb,var(--c) 85%,#fff) 0%,var(--c) 100%);
  box-shadow:0 7px 0 color-mix(in srgb,var(--c) 45%,#000);
  animation:bytebob 2.6s ease-in-out infinite;cursor:pointer;appearance:none;-webkit-appearance:none;
  -webkit-tap-highlight-color:transparent;touch-action:manipulation}
.byte .eye{position:absolute;top:21px;width:9px;height:12px;border-radius:6px;background:#140C2B;animation:byteblink 4.2s infinite}
.byte .eye.l{left:17px}.byte .eye.r{right:17px}
.byte .mouth{position:absolute;left:50%;top:37px;width:18px;height:9px;transform:translateX(-50%);border:3px solid #140C2B;border-top:0;border-radius:0 0 12px 12px}
.byte .cheek{position:absolute;top:34px;width:8px;height:5px;border-radius:50%;background:#FF7AA8;opacity:.55}
.byte .cheek.l{left:9px}.byte .cheek.r{right:9px}
.byte:focus-visible{outline:3px solid var(--accent,#4CC9F0);outline-offset:4px}
.byte:hover{filter:brightness(1.07)}
.byte.chat{animation:bytechattilt .55s ease}
@keyframes bytebob{50%{transform:translateY(-4px)}}
@keyframes byteblink{0%,46%,50%,100%{transform:scaleY(1)}48%{transform:scaleY(.1)}}
@keyframes bytechattilt{
  0%,100%{transform:translateY(0) rotate(0)}
  20%{transform:translateY(-8px) rotate(-8deg)}
  45%{transform:translateY(-2px) rotate(8deg)}
  70%{transform:translateY(-10px) rotate(-4deg)}
}
.iconbtn.sm,.bcclose{width:34px;height:34px;border-radius:10px;font-size:14px;flex:none;border:2px solid var(--line,#3C2E78);background:var(--panel,#231949);color:var(--ink,#F5F1FF);display:grid;place-items:center;cursor:pointer}
.dotsload{display:inline-flex;gap:3px;vertical-align:middle}
.dotsload i{width:6px;height:6px;border-radius:50%;background:var(--accent,#4CC9F0);animation:bcdl 1s infinite}
.dotsload i:nth-child(2){animation-delay:.15s}.dotsload i:nth-child(3){animation-delay:.3s}
@keyframes bcdl{50%{transform:translateY(-5px);opacity:.4}}
.bytechat{position:absolute;top:calc(100% + 10px);left:0;z-index:70;width:min(360px,calc(100vw - 32px));max-height:min(440px,70vh);
  display:flex;flex-direction:column;background:linear-gradient(180deg,var(--panel,#231949),var(--bg,#150E2C));border:2px solid var(--line,#3C2E78);
  border-radius:18px;box-shadow:0 24px 60px -20px #000;overflow:hidden;animation:bytechatin .28s ease;color:var(--ink,#F5F1FF)}
@keyframes bytechatin{from{opacity:0;transform:translateY(-8px) scale(.96)}}
.bchead{display:flex;align-items:center;gap:10px;padding:10px 12px;border-bottom:2px solid var(--line,#3C2E78);flex:none}
.bcwho{display:flex;flex-direction:column;min-width:0;flex:1;line-height:1.15}
.bcwho b{font:400 18px/1.1 "Lilita One",system-ui,sans-serif}
.bcwho small{font-size:11px;color:var(--muted,#AA9DD8);font-weight:700}
.bcshell{width:36px;height:34px;flex:none;position:relative;overflow:hidden;border-radius:9px}
.bcshell .byte{position:absolute;left:0;top:0;transform:scale(.56);transform-origin:top left;animation:none;cursor:default;pointer-events:none;box-shadow:0 4px 0 color-mix(in srgb,var(--c) 45%,#000)}
.bcbody{flex:1;overflow:auto;padding:12px;display:flex;flex-direction:column;gap:8px;min-height:132px}
.bcmsg{max-width:88%;width:fit-content;padding:8px 12px;border-radius:14px;font-weight:800;font-size:14px;line-height:1.45;overflow-wrap:break-word}
.bcmsg.byte{align-self:flex-start;background:#150E2C;border:2px solid var(--line,#3C2E78);border-bottom-left-radius:6px}
.bcmsg.me{align-self:flex-end;background:color-mix(in srgb,var(--accent,#4CC9F0) 22%,var(--panel,#231949));border:2px solid color-mix(in srgb,var(--accent,#4CC9F0) 45%,var(--line,#3C2E78));border-bottom-right-radius:6px}
.bcchips{display:flex;flex-wrap:wrap;gap:6px;padding:10px 12px 12px;border-top:2px solid var(--line,#3C2E78);flex:none}
.bcchips button{border:2px solid var(--line,#3C2E78);background:var(--bg-2,#1E1541);border-radius:999px;padding:6px 10px;font-weight:800;font-size:12px;color:var(--ink,#F5F1FF);cursor:pointer}
.bcchips button:hover{border-color:var(--accent,#4CC9F0)}
.bcai{display:none!important}
.bcscrim{display:none}
[hidden]{display:none!important}
@media (max-width:600px){
  .bcscrim{display:block;position:fixed;inset:0;z-index:69;background:color-mix(in srgb,#05030E 55%,transparent)}
  .bytechat{position:fixed;left:0;right:0;bottom:0;top:auto;width:auto;max-height:min(75vh,560px);border-radius:22px 22px 0 0;
    animation:bytesheet .3s ease;padding-bottom:max(10px,env(safe-area-inset-bottom,0px))}
  @keyframes bytesheet{from{transform:translateY(28px);opacity:0}}
}
@media (prefers-reduced-motion:reduce){
  .byte,.byte .eye,.bytechat,.dotsload i{animation:none!important}
}
