/* Gourdy Site: XP-era messenger look on a dusky desktop.
   Layout: windows that wrap into one column on phones. Single deliberate look. */
:root {
  --desk: #3b2a5e;
  --win-border: #0a3fc4;
  --title-top: #3b7cf3;
  --title-mid: #0b4fd8;
  --panel: #ece9d8;
  --panel-2: #f6f4ea;
  --ink: #1b1b1b;
  --muted: #4f4b3e;
  --line: #b9b5a6;
  --bevel-dark: #7f7b6e;
  --accent: #f08a24;
  --blue: #0b2fa6;
  --link: #0a3fc4;
  --ok: #3fb36b;
  --away: #f2c53d;
  --idle: #b9c4e8;
  --off: #9a94a6;
  --f-px: 'Pixelify Sans', 'Courier New', monospace;
  --f-ui: Tahoma, Verdana, 'Segoe UI', sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 14px/1.45 var(--f-ui); color: var(--ink); background: var(--desk); min-height: 100vh; }
body.desk { background-color: var(--desk); background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 4px 4px; }
a { color: var(--link); }
a:hover { color: #06267a; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.px { font-family: var(--f-px); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.hint { font-size: 12px; color: var(--muted); }
.muted { color: var(--muted); margin: 0; }
.center { text-align: center; }
.pad { padding: 8px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack.tight { gap: 6px; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrapit, .wrapit { flex-wrap: wrap; }
.center-y { align-items: center; }
.push { margin-left: auto; }
.grow { flex: 1; min-width: 0; }
.inline { display: inline; }

/* ---------- top bar ---------- */
.topbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 6px 14px;
  background: linear-gradient(#3168e0, #1f4fd1 45%, #183fae); border-bottom: 3px solid #0d2c80; }
.brand { display: flex; align-items: center; gap: 6px; color: #fff; font-size: 22px; font-weight: 700; text-decoration: none; }
.brand img { object-fit: cover; object-position: 50% 30%; }
.topbar nav { display: flex; flex-wrap: wrap; gap: 2px; margin-left: auto; }
.topbar nav a { color: #fff; font-weight: 700; padding: 8px 10px; text-decoration: none; border-radius: 3px; }
.topbar nav a:hover, .topbar nav a.on { background: rgba(255,255,255,.2); color: #fff; }
.logout button { font: 700 13px var(--f-ui); color: #fff; background: #cf3f12; border: 2px solid #fff; border-radius: 4px; padding: 6px 10px; cursor: pointer; min-height: 36px; }

.flash { margin: 12px auto 0; max-width: 1180px; width: calc(100% - 32px); background: #fff3c4; border: 2px solid var(--ink);
  padding: 10px 14px; font-weight: 700; box-shadow: 3px 3px 0 var(--ink); }
.flash.bad { background: #ffd9cc; }

/* ---------- windows ---------- */
.win { background: var(--panel); border: 3px solid var(--win-border); border-radius: 9px 9px 3px 3px;
  box-shadow: 5px 5px 0 rgba(0,0,0,.35); overflow: hidden; color: var(--ink); min-width: 0; }
.tb { display: flex; align-items: center; gap: 8px; padding: 5px 6px 5px 10px; color: #fff; font-weight: 700;
  background: linear-gradient(var(--title-top), var(--title-mid) 45%, var(--win-border)); }
.tb .t { flex: 1; min-width: 0; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb { width: 26px; height: 26px; border: 2px solid #fff; border-radius: 5px; background: #2d6bea; display: grid; place-items: center; flex: none; }
.wb.x { background: #cf3f12; }
.wbody { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.inset { background: #fff; border: 2px solid; border-color: var(--bevel-dark) #fff #fff var(--bevel-dark); }
ul.inset, .inset ul { list-style: none; margin: 0; padding: 0; }

/* ---------- controls ---------- */
.field { font: inherit; width: 100%; min-height: 40px; padding: 6px 10px; color: var(--ink); background: #fff;
  border: 2px solid; border-color: var(--bevel-dark) #fff #fff var(--bevel-dark); }
textarea.field { resize: vertical; }
select.field { min-height: 38px; }
.lbl { font-weight: 700; display: block; margin-bottom: 4px; }
.check { display: flex; align-items: flex-start; gap: 8px; line-height: 1.4; min-height: 28px; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 14px;
  font: 700 14px var(--f-ui); color: var(--ink); background: var(--panel-2); border: 2px solid var(--ink); border-radius: 5px;
  box-shadow: 2px 2px 0 var(--ink); cursor: pointer; text-decoration: none; }
.btn:hover { background: #fff; color: var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: none; }
.btn.primary { background: var(--accent); }
.btn.big { min-height: 48px; font-size: 22px; font-weight: 700; padding: 0 22px; border-width: 3px; box-shadow: 3px 3px 0 var(--ink); }
.btn.static { cursor: default; box-shadow: none; }
.btn:disabled { opacity: .5; cursor: default; }
.linkbtn { background: none; border: 0; padding: 4px; font: 12px var(--f-ui); color: var(--link); text-decoration: underline; cursor: pointer; }
.tool { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 54px; min-height: 48px; padding: 4px 6px;
  border: 2px solid transparent; border-radius: 4px; background: none; font: 12px var(--f-ui); color: var(--ink); cursor: pointer; text-decoration: none; }
.tool:hover { border-color: var(--line); background: var(--panel-2); color: var(--ink); }
.toolrow { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px; }

/* ---------- avatars ---------- */
.avatar { flex: none; border: 2px solid var(--ink); border-radius: 4px; object-fit: cover; background: #fff3d6; display: inline-block; }
.avatar.note { display: inline-grid; place-items: center; font-family: var(--f-px); font-weight: 700; color: var(--ink); overflow: hidden; }
.avatar.big { border-width: 3px; box-shadow: 4px 4px 0 var(--ink); }
.avatar.tilt { transform: rotate(-4deg); }
.gourdy-av { object-position: 50% 28%; }
.dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink); display: inline-block; flex: none; background: var(--off); }
.dot.online { background: var(--ok); } .dot.away { background: var(--away); } .dot.idle { background: var(--idle); }

/* ---------- splash / centered pages ---------- */
.center-stage { min-height: calc(100vh - 60px); display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 24px; padding: 40px 16px; }
.hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; }
.hero-title { margin: 0; font-size: clamp(40px, 9vw, 60px); line-height: .95; color: #fff; text-shadow: 4px 4px 0 var(--ink); }
.hero-sub { margin: 6px 0 0; font-size: 21px; color: var(--accent); }
.tabs { display: flex; gap: 4px; padding: 10px 10px 0; flex-wrap: wrap; }
.tab { flex: 1; min-height: 44px; display: grid; place-items: center; font-size: 18px; font-weight: 700; color: var(--ink);
  text-decoration: none; border: 2px solid var(--bevel-dark); border-bottom: 2px solid var(--bevel-dark); border-radius: 6px 6px 0 0; background: #d8d4c2; }
.tab.on { background: #f8f7f0; border-bottom-color: #f8f7f0; position: relative; top: 2px; }
.tabpanel { margin: 0 10px 12px; padding: 16px; background: #f8f7f0; border: 2px solid var(--bevel-dark); }
.code { letter-spacing: .1em; text-transform: uppercase; font-size: 20px; }
.footnote { color: #e9e4f5; font-size: 13px; margin: 0; }
.footnote a { color: #ffd23f; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 24px 16px 40px; display: flex; flex-direction: column; gap: 24px; }
.wrap.narrow { max-width: 760px; }
.rules { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }

/* ---------- dashboard ---------- */
.desktop { max-width: 1180px; margin: 0 auto; padding: 24px 16px 90px; display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.col-left { flex: 1 1 250px; max-width: 320px; min-width: 0; }
.col-mid { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
@media (max-width: 640px) { .col-left { max-width: none; } }
.me-panel { background: var(--blue); border: 2px solid #061c66; padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.me-name { color: #fff; font-size: 20px; }
.blist { padding: 6px; }
.grp { font-size: 17px; font-weight: 600; color: var(--blue); padding: 4px; }
.grp.dim { color: #6b6758; }
.brow-link { display: flex; align-items: center; gap: 8px; padding: 5px 4px; color: var(--ink); text-decoration: none; border-radius: 4px; min-height: 44px; }
.brow-link:hover { background: #e6edff; color: var(--ink); }
.brow.off .bname { color: #6b6758; }
.bname { display: block; font-size: 18px; font-weight: 700; line-height: 1; }
.bstat { display: block; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.upd { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.upd > img { flex: none; width: 110px; height: auto; }
.upd > div { flex: 1 1 220px; min-width: 0; }
.upd-title { margin: 0; font-size: 28px; line-height: 1.05; text-wrap: balance; }
.new { background: var(--accent); border: 2px solid var(--ink); padding: 0 8px; font-weight: 700; }
.postbox { display: flex; gap: 8px; flex-wrap: wrap; }
.postbox .field { flex: 1 1 220px; min-width: 0; }
.feed .frow, .rlist .rrow { padding: 10px 12px; border-bottom: 1px dotted var(--line); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.feed .frow:last-child, .rlist .rrow:last-child { border-bottom: 0; }
.fname { font-weight: 700; font-size: 17px; color: var(--ink); }
.ftext { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
.fwhen { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pactions { display: flex; gap: 8px; width: 100%; align-items: center; }
.likebtn { font: 700 13px var(--f-ui); background: var(--panel-2); border: 2px solid var(--line); border-radius: 12px; padding: 2px 10px; min-height: 30px; cursor: pointer; color: #9b2c5b; }
.likebtn.on { background: #ffd6e6; border-color: #9b2c5b; }
.rrow { align-items: center !important; }
.rrow .px { font-weight: 700; font-size: 17px; }
.taskbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; gap: 10px;
  padding: 6px 10px calc(6px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(#3168e0, #1f4fd1 40%, #183fae); border-top: 2px solid #5b8cf0; }
.startbtn { display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px 0 6px; background: var(--accent); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 0 16px 16px 0; font-size: 18px; font-weight: 700; text-decoration: none; flex: none; }
.startbtn img { object-fit: cover; object-position: 50% 30%; }
.tasks { flex: 1; min-width: 0; display: flex; gap: 6px; overflow: hidden; }
.tasks a { flex: 0 1 160px; min-width: 0; min-height: 36px; display: flex; align-items: center; padding: 0 10px; color: #fff; text-decoration: none;
  background: #3c78ea; border: 1px solid #0d2c80; border-radius: 3px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clock { flex: none; padding: 0 12px; min-height: 36px; display: grid; place-items: center; background: #0f8ad8; border: 1px solid #0d2c80; color: #fff;
  font-size: 13px; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .tasks { display: none; } .clock { margin-left: auto; } }

/* ---------- profile ---------- */
.pbg { min-height: calc(100vh - 56px); padding-bottom: 40px; }
.bg-night, .sw.bg-night { background: #1a1433 radial-gradient(rgba(255,255,255,.55) 1px, transparent 1.6px) 0 0/22px 22px; }
.bg-check, .sw.bg-check { background: repeating-conic-gradient(#f08a24 0 25%, #1b1b1b 0 50%) 0 0/48px 48px; }
.bg-slime, .sw.bg-slime { background: #6fc85c repeating-linear-gradient(45deg, rgba(0,0,0,.1) 0 10px, transparent 10px 20px); }
.bg-gum, .sw.bg-gum { background: #f3a6cc radial-gradient(#fff 2px, transparent 2.6px) 0 0/18px 18px; }
.bg-desk, .sw.bg-desk { background: #3b2a5e radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px) 0 0/4px 4px; }
.bg-plain, .sw.bg-plain { background: #d8d4c2; }
.cv-sunset { background: linear-gradient(180deg, #2b1c55 0%, #7a2f6b 55%, #f08a24 100%); }
.cv-grid { background: #0b2fa6 repeating-linear-gradient(0deg, rgba(255,255,255,.18) 0 2px, transparent 2px 28px), repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 2px, transparent 2px 28px); }
.cv-night { background: #120d26 radial-gradient(rgba(255,255,255,.7) 1px, transparent 1.6px) 0 0/30px 30px; }
.cv-plain { background: #7f7b6e; }
.profile-wrap { max-width: 1180px; margin: 0 auto; padding: 24px 16px 0; display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.pmain { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.pside { flex: 1 1 240px; min-width: 0; }
.cover { height: 220px; position: relative; border-bottom: 3px solid var(--ink); }
.pav { position: absolute; left: 24px; bottom: -62px; border-width: 4px; box-shadow: 4px 4px 0 var(--ink); transform: rotate(-3deg); background-color: #fff3d6; }
.phead { padding: 14px 16px 18px 170px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; min-height: 76px; }
.pname { flex: 1 1 200px; min-width: 0; }
.pname h1 { margin: 0; font-size: 32px; line-height: 1; overflow-wrap: anywhere; }
.pmeta { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); align-items: center; }
.pmeta span { display: inline-flex; align-items: center; gap: 6px; }
.pact { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@media (max-width: 560px) { .phead { padding: 72px 14px 16px; } .cover { height: 170px; } .pav { width: 110px !important; height: 110px !important; bottom: -56px; } }
.songwin .wbody { padding: 0; }
.song { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 10px 14px; background: var(--ink); color: #f6f4ea; }
.song .hint { color: #cfcab8; }
.song audio { flex: 1 1 220px; min-width: 0; max-width: 100%; }
.pcols { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.pleft { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.pwall { flex: 2 1 320px; }
.topgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.topf { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 12px; min-width: 0; }
.topf .avatar { width: 100% !important; height: auto !important; aspect-ratio: 1; font-size: 22px !important; border-width: 3px; }
.topf span:last-child { overflow-wrap: anywhere; text-align: center; }
.wall .wrow { padding: 10px 12px; border-bottom: 1px dotted var(--line); }
.wall .wrow:last-child { border-bottom: 0; }
.wtop { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.wtop .px { font-size: 17px; color: var(--ink); text-decoration: none; }
.swgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.swatch { min-height: 60px; padding: 4px; border: 2px solid var(--line); border-radius: 6px; background: var(--panel-2); cursor: pointer;
  display: flex; flex-direction: column; gap: 4px; align-items: stretch; font: 11px var(--f-ui); color: var(--ink); }
.swatch.on { border: 3px solid var(--win-border); }
.sw { display: block; height: 32px; border: 2px solid var(--ink); }

/* ---------- settings ---------- */
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.colors { display: flex; gap: 8px; flex-wrap: wrap; }
.colorpick { position: relative; cursor: pointer; }
.colorpick input { position: absolute; opacity: 0; }
.colorpick span { display: block; width: 40px; height: 40px; border: 3px solid var(--ink); border-radius: 4px; }
.colorpick input:checked + span { outline: 3px solid var(--win-border); outline-offset: 2px; }
.colorpick input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
input[type=file] { font: inherit; max-width: 100%; }

/* ---------- updates ---------- */
.psstline { display: flex; align-items: flex-end; gap: 8px; }
.psstline > span { background: #fffdf3; border: 3px solid var(--ink); border-radius: 14px; padding: 8px 12px; font-size: 17px; line-height: 1.15; }
.psst { color: #7a4a9c; }

/* ---------- messenger ---------- */
.messenger { max-width: 1240px; margin: 0 auto; padding: 24px 16px 40px; display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.m-buddies { flex: 1 1 230px; max-width: 290px; }
.m-chat { flex: 999 1 440px; }
.m-info { flex: 1 1 220px; max-width: 300px; }
@media (max-width: 760px) { .m-buddies, .m-info { max-width: none; } }
.mystatus { display: flex; align-items: center; gap: 8px; }
.mystatus .lbl { margin: 0; }
.mbtn { width: 100%; display: flex; align-items: center; gap: 8px; padding: 5px 4px; min-height: 46px; text-align: left; border: 2px solid transparent;
  background: none; border-radius: 4px; cursor: pointer; font: inherit; color: var(--ink); }
.mbtn:hover { background: #e6edff; }
.mbtn.on { border-color: var(--win-border); background: #e6edff; }
.mbtn .badge { margin-left: auto; background: #cf3f12; color: #fff; border-radius: 10px; padding: 0 7px; font-size: 12px; font-weight: 700; }
.chattabs { border-bottom: 2px solid var(--bevel-dark); }
.chattabs .tab { flex: 0 1 auto; padding: 0 12px; font-size: 16px; min-height: 40px; }
.chatinfo { display: flex; flex-wrap: wrap; gap: 2px 14px; padding: 4px 12px; border-bottom: 1px solid var(--line); }
.chatlog { height: 340px; overflow-y: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; line-height: 1.45; }
.chatlog .msg { overflow-wrap: anywhere; }
.chatlog .who { font-weight: 700; }
.chatlog .who.me { color: #b5361f; } .chatlog .who.them { color: var(--blue); } .chatlog .who.helper { color: #b4600e; }
.chatlog .when { font-size: 12px; color: var(--muted); }
.chatlog .sys { font-size: 12px; color: var(--muted); font-style: italic; }
.typing { font-style: italic; }
.binfo-av { align-self: center; }

/* ---------- maintenance / errors ---------- */
.maint-gourdy img { width: 200px; animation: bob 2.2s ease-in-out infinite; }
.maint-title { margin: 0; font-size: 26px; line-height: 1.1; }
.err-title { margin: 0; font-size: 24px; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-2deg); } }

/* ---------- Gourdy overlay ---------- */
.gourdy-layer { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.gourdy-walker { position: absolute; bottom: 8px; left: 0; width: 170px; transform-origin: 50% 100%; pointer-events: auto; will-change: transform; }
.gourdy-walker img { width: 170px; display: block; user-select: none; -webkit-user-drag: none; }
.gbubble { position: absolute; pointer-events: auto; width: min(300px, calc(100vw - 32px)); background: #fffdf3; color: var(--ink);
  border: 3px solid var(--ink); border-radius: 16px; padding: 12px; box-shadow: 4px 4px 0 rgba(0,0,0,.35); display: flex; flex-direction: column; gap: 8px; }
.gbubble .gsay { font: 20px/1.1 var(--f-px); }
.gbubble .psst { color: #7a4a9c; }
.gbubble button.opt { font: 18px var(--f-px); text-align: left; border: 2px solid var(--ink); border-radius: 8px; background: #ece4f7; color: var(--ink);
  padding: 6px 10px; cursor: pointer; min-height: 40px; }
.gbubble button.opt.away { background: #ffe2c2; }
.gbubble .field { min-height: 36px; }
.gpeek { position: absolute; left: 50%; bottom: 0; width: 220px; height: 260px; transform: translateX(-50%); pointer-events: none; }
.gclip { position: absolute; left: -60px; right: -60px; bottom: 0; height: 420px; overflow: hidden; }
.gpeek .gbody { position: absolute; left: 60px; right: 60px; bottom: 0; height: 260px; transform: translateY(100%); transform-origin: 50% 100%; cursor: pointer; }
.gpeek .gbody img { width: 220px; display: block; }
.gpeek .glove { position: absolute; bottom: -26px; width: 62px; transform: translateY(90px); }
.gpeek .glove.l { left: 22px; } .gpeek .glove.r { right: 22px; }
.gpeek .gbubble { bottom: 150px; left: calc(100% + 10px); width: min(260px, calc(50vw - 130px)); min-width: 170px; opacity: 0; }
@media (max-width: 620px) { .gpeek .gbubble { left: 50%; transform: translateX(-50%); bottom: 270px; width: calc(100vw - 32px); } }
.toast { position: fixed; right: 16px; bottom: 70px; z-index: 70; max-width: min(340px, calc(100vw - 32px)); background: #fffdf3; border: 3px solid var(--ink);
  border-radius: 10px; padding: 10px 12px; box-shadow: 4px 4px 0 rgba(0,0,0,.35); display: flex; gap: 10px; align-items: center; }
.toast img { width: 36px; height: 42px; object-fit: cover; object-position: 50% 25%; }
@media (prefers-reduced-motion: reduce) { .maint-gourdy img { animation: none; } }
.gpeek .glove svg { width: 100%; height: auto; display: block; }
.helpbtn { font: 700 13px var(--f-ui); color: var(--ink); background: #ffd23f; border: 2px solid #fff; border-radius: 4px; padding: 6px 10px; cursor: pointer; min-height: 36px; }
.gclip { pointer-events: none; }
.gpeek .gbody, .gpeek .gbubble { pointer-events: auto; }

/* ---------- roadmap ---------- */
.roadmap { max-width: 1280px; }
.rtop { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.rtitle { font-size: clamp(40px, 8vw, 56px); }
.rcols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; align-items: start; }
.rcol { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.rhead { margin: 0; font-size: 26px; color: #fff; text-shadow: 3px 3px 0 var(--ink); display: flex; align-items: center; gap: 8px; }
.rhead::before { content: ""; width: 14px; height: 14px; border: 2px solid var(--ink); border-radius: 50%; background: var(--off); }
.rhead.working::before { background: var(--accent); } .rhead.planned::before { background: var(--idle); }
.rhead.ideas::before { background: #f3a6cc; } .rhead.done::before { background: var(--ok); }
.rprog { height: 16px; border: 2px solid var(--ink); background: #fff; }
.rprog div { height: 100%; background: repeating-linear-gradient(90deg, var(--ok) 0 10px, #2f9e5b 10px 12px); }
.rlist2 .ritem { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px dotted var(--line); }
.rlist2 .ritem:last-child { border-bottom: 0; }
.ritem .tick { flex: none; width: 20px; text-align: center; font-weight: 700; color: var(--muted); }
.ritem.done .tick { color: #2f7d4b; }
.ritem.done .rtext { color: var(--muted); text-decoration: line-through; }
.rtext { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.vote { margin: 0; flex: none; }
.votebtn { font: 700 13px var(--f-ui); min-width: 52px; min-height: 34px; padding: 0 8px; border: 2px solid var(--ink); border-radius: 6px; background: var(--panel-2); color: var(--ink); cursor: pointer; }
.votebtn.on { background: var(--accent); }
.votebtn.static { display: inline-grid; place-items: center; cursor: default; }

/* ---------- notifications ---------- */
.nudge { display: flex; gap: 12px; align-items: flex-start; background: #fffdf3; border: 3px solid var(--ink); border-radius: 14px; padding: 12px 14px;
  box-shadow: 4px 4px 0 rgba(0,0,0,.35); }
.nudge img { flex: none; object-fit: contain; }
.nb-title { font-size: 20px; color: #7a4a9c; }
.nstate { font-size: 18px; margin: 0; }
.nlist { list-style: none; margin: 0; padding: 4px 10px; }
.nlist li { padding: 6px 0; border-bottom: 1px dotted var(--line); }
.nlist li:last-child { border-bottom: 0; }
.desktop > .nudge { flex: 1 1 100%; }

/* ---------- announcement banner ---------- */
.ann { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 3px solid var(--ink);
  font-size: 15px; line-height: 1.35; color: var(--ink); background: #fff3c4; }
.ann img { flex: none; object-fit: contain; }
.ann-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ann-text .px { font-size: 17px; margin-right: 2px; }
.ann-info { background: #dfe8ff; }
.ann-warn { background: #ffd23f; }
.ann-maint { background: repeating-linear-gradient(-45deg, #ffd23f 0 18px, #ffc21a 18px 36px); }
.ann-fun { background: linear-gradient(90deg, #ffd6e6, #e4d8ff, #d7f5e9); }
.ann-cd { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ann-x { flex: none; width: 36px; height: 36px; border: 2px solid var(--ink); border-radius: 6px; background: rgba(255,255,255,.6); cursor: pointer; font-size: 15px; color: var(--ink); }
.maint-back { font-size: 19px; margin: 0; }

/* ---------- moving ---------- */
.mvlist { list-style: none; margin: 0; padding: 0; }
.mvrow { padding: 10px 12px; border-bottom: 1px dotted var(--line); }
.mvrow:last-child { border-bottom: 0; }
.mvrow .hint { display: block; }
.mvdrop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 12px; border: 3px dashed var(--ink); border-radius: 10px;
  background: #fffdf3; text-align: center; cursor: pointer; }
.mvdrop.over { background: #ffe9c7; }
.mvdrop input { max-width: 100%; }

/* ---------- chat upgrade ---------- */
.cp-host { position: relative; }
.composer { display: flex; align-items: flex-end; gap: 6px; }
.composer .field { flex: 1; min-width: 0; }
.cbtn { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; background: var(--panel-2);
  color: var(--ink); font: 700 22px/1 var(--f-ui); cursor: pointer; box-shadow: 2px 2px 0 var(--ink); padding: 0; }
.cbtn:hover { background: #fff; }
.cbtn:disabled { opacity: .45; cursor: default; }
.cbtn[aria-expanded="true"] { background: var(--accent); }
#cp-plus { font-size: 26px; }
.nudgeicon { font-size: 18px; line-height: 22px; }
.cp-pop { position: absolute; left: 12px; right: 12px; bottom: 112px; z-index: 15; background: #fffdf3; border: 3px solid var(--ink); border-radius: 14px;
  box-shadow: 5px 5px 0 rgba(0,0,0,.35); padding: 12px; display: flex; flex-direction: column; gap: 10px; max-height: min(430px, 60vh); overflow: auto; }
.cp-trow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cp-tbtn { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; min-height: 76px; border: 2px solid var(--line); border-radius: 12px;
  background: #fff; font: 700 13px var(--f-ui); color: var(--ink); cursor: pointer; }
.cp-tbtn:hover { border-color: var(--win-border); background: #e6edff; }
.cp-sub { font-weight: 700; grid-column: 1 / -1; margin-top: 4px; }
.cp-recent { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
.cp-recent button { padding: 0; border: 2px solid var(--line); border-radius: 8px; overflow: hidden; aspect-ratio: 1; background: #eee; cursor: pointer; }
.cp-recent img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-form .field { min-height: 38px; }
.cp-app { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px; border: 2px solid var(--line); border-radius: 10px; background: #fff; }
.cp-appbtn { cursor: pointer; font: inherit; color: var(--ink); text-align: left; }
.cp-appbtn:hover { border-color: var(--win-border); }
.cp-appcol { flex-direction: column; align-items: stretch; }
.cp-appcol .row .field { flex: 1; min-width: 0; }
.cp-appicon { font-size: 24px; }
.cp-die { min-height: 34px; padding: 0 9px; font-size: 13px; }
.cp-panel { padding: 0; gap: 0; height: min(430px, 60vh); }
.cp-tabs { display: flex; gap: 4px; padding: 8px 8px 0; border-bottom: 2px solid var(--bevel-dark); flex: none; }
.cp-tabs .tab { flex: 1; min-height: 38px; font-size: 16px; }
.cp-pbody { flex: 1; min-height: 0; overflow: auto; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.cp-search { min-height: 36px; }
.cp-cats { display: flex; gap: 2px; overflow-x: auto; flex: none; }
.cp-cat { flex: none; width: 36px; height: 34px; border: 0; border-radius: 6px; background: none; font-size: 20px; cursor: pointer; }
.cp-cat:hover { background: #e6edff; }
.cp-egrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 2px; }
.cp-e { height: 40px; border: 0; border-radius: 6px; background: none; font-size: 24px; cursor: pointer; padding: 0; }
.cp-e:hover { background: #e6edff; }
.cp-gtop { flex-wrap: wrap; }
.cp-ggrid { columns: 2 140px; column-gap: 6px; }
.cp-ggrid .cp-sub { column-span: all; display: block; margin: 4px 0; }
.cp-gif { display: block; width: 100%; margin: 0 0 6px; padding: 0; border: 2px solid var(--line); border-radius: 8px; overflow: hidden; background: #ddd; cursor: pointer; break-inside: avoid; }
.cp-gif img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cp-gif:hover { border-color: var(--win-border); }
.cp-attr { text-align: right; }
.cp-sgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 6px; }
.cp-st { aspect-ratio: 1; padding: 6px; border: 2px solid transparent; border-radius: 10px; background: #fff; cursor: pointer; display: grid; place-items: center; }
.cp-st:hover { border-color: var(--win-border); background: #e6edff; }
.cp-st img { max-width: 100%; max-height: 100%; }
.cp-st.wide { grid-column: span 2; aspect-ratio: auto; height: 40px; }
.cp-recbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; border: 2px solid var(--ink); border-radius: 10px; background: #ffe2c2; font-weight: 700; }
.cp-recbar .btn:first-of-type { margin-left: auto; }
.cp-dot { width: 12px; height: 12px; border-radius: 50%; background: #cf3f12; animation: cpblink 1s steps(2) infinite; }
@keyframes cpblink { 50% { opacity: .2; } }
.cp-rtime { font-size: 18px; font-variant-numeric: tabular-nums; }
.cp-shake { animation: cpshake .5s linear 2; }
@keyframes cpshake { 0%,100% { transform: translate(0,0); } 20% { transform: translate(-9px,3px); } 40% { transform: translate(8px,-4px); } 60% { transform: translate(-6px,-2px); } 80% { transform: translate(7px,3px); } }

/* rich messages in the chat log */
.chatlog .msg.rich { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 4px; }
.cm-block { margin: 4px 0 2px; }
.cm-break { flex-basis: 100%; height: 0; }
.cm-img { display: block; max-width: min(260px, 100%); height: auto; border: 2px solid var(--ink); border-radius: 8px; cursor: zoom-in; background: #eee; }
.cm-gifwrap { position: relative; width: fit-content; max-width: min(240px, 100%); }
.cm-gif { display: block; width: 100%; max-width: 240px; height: auto; border-radius: 8px; background: #eee; }
.cm-star { position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; border: 2px solid var(--ink); border-radius: 50%; background: rgba(255,255,255,.85);
  font-size: 16px; line-height: 1; cursor: pointer; padding: 0; }
.cm-star.on { background: #ffd84a; }
.cm-sticker { display: block; width: 110px; height: 110px; object-fit: contain; }
.cm-sticker.blink { width: 150px; height: 20px; }
.cm-voice { display: flex; align-items: center; gap: 8px; max-width: 280px; padding: 6px 10px; border: 2px solid var(--ink); border-radius: 20px; background: #e6edff; }
.cm-play { width: 34px; height: 34px; flex: none; border: 2px solid var(--ink); border-radius: 50%; background: var(--accent); cursor: pointer; font-size: 13px; padding: 0; }
.cm-vbar { flex: 1; height: 8px; border: 2px solid var(--ink); border-radius: 6px; overflow: hidden; background: #fff; }
.cm-vbar div { height: 100%; width: 0; background: var(--win-border); }
.cm-vtime { flex: none; font-variant-numeric: tabular-nums; }
.cm-file { display: flex; align-items: center; gap: 10px; max-width: 300px; padding: 8px 12px; border: 2px solid var(--ink); border-radius: 10px; background: #fff; color: var(--ink); text-decoration: none; }
.cm-fileicon { font-size: 24px; }
.cm-fileinfo { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.cm-poll { display: flex; flex-direction: column; gap: 6px; max-width: 320px; padding: 10px; border: 2px solid var(--ink); border-radius: 10px; background: #fffdf3; }
.cm-pq { font-size: 17px; }
.cm-opt { position: relative; overflow: hidden; display: flex; justify-content: space-between; gap: 8px; min-height: 38px; padding: 6px 10px; border: 2px solid var(--line);
  border-radius: 8px; background: #fff; font: 14px var(--f-ui); color: var(--ink); text-align: left; cursor: pointer; }
.cm-opt.on { border-color: var(--win-border); font-weight: 700; }
.cm-optfill { position: absolute; inset: 0 auto 0 0; background: #dfe8ff; transition: width .3s; }
.cm-opttext, .cm-optn { position: relative; }
.cm-app { display: flex; align-items: center; gap: 10px; width: fit-content; max-width: 100%; padding: 6px 12px; border: 2px dashed var(--ink); border-radius: 10px; background: #fff; }
.cm-die { font-size: 34px; line-height: 1; }
.cm-coin { display: grid; place-items: center; width: 32px; height: 32px; border: 2px solid var(--ink); border-radius: 50%; background: #ffd84a; font: 700 15px var(--f-px); }
.cm-coin.tails { background: #d8d4c2; }
.cm-8 img { object-fit: cover; object-position: 50% 25%; }
.cm-nudge { font-style: italic; color: #b5361f; font-weight: 700; }
.cm-flag { order: 2; margin-left: auto; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 14px; padding: 0 4px; opacity: .35; }
.msg:hover .cm-flag, .cm-flag:focus-visible { opacity: 1; }
@media (pointer: coarse) { .cm-flag { opacity: .6; } }
.chatlog .msg:not(.rich) .cm-flag { float: right; }
.cm-lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(10,8,20,.88); display: grid; place-items: center; padding: 16px; cursor: zoom-out; }
.cm-lightbox img { max-width: 100%; max-height: 100%; border: 3px solid #fff; border-radius: 8px; }
.cm-lbx { position: absolute; top: 14px; right: 14px; }
@media (min-width: 561px) {
  .cp-panel { left: auto; width: min(440px, calc(100% - 24px)); }
  .cp-tray, .cp-form { right: auto; width: min(440px, calc(100% - 24px)); }
}
@media (max-width: 560px) {
  .cp-pop { position: fixed; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); max-height: 65vh; }
  .cp-panel { height: 65vh; }
  .chatlog { height: 46vh; }
}
@media (prefers-reduced-motion: reduce) { .cp-dot { animation: none; } .cp-shake { animation: none; } }
.cemoji { width: 22px; height: 22px; object-fit: contain; vertical-align: -5px; image-rendering: auto; }
.mtext.jumbo .cemoji { width: 56px; height: 56px; vertical-align: middle; }
.cp-custom .cp-e img { width: 28px; height: 28px; object-fit: contain; }
.cp-sharebox { min-height: 24px; }
.cp-sharebox input { width: 16px; height: 16px; }

/* ---------- app icon maker ---------- */
.filebtn { position: relative; overflow: hidden; }
.filebtn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ai-wrap { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.ai-previews { display: flex; gap: 14px; flex: none; }
.ai-previews figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ai-prev { width: 110px; height: 110px; filter: drop-shadow(3px 3px 0 rgba(0,0,0,.35)); }
.ai-controls { flex: 1 1 280px; min-width: 0; }
.ai-row { display: flex; flex-wrap: wrap; gap: 6px; }
.ai-sw { width: 36px; height: 36px; border: 2px solid var(--ink); border-radius: 8px; cursor: pointer; padding: 0; }
.ai-pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 6px; }
.ai-pic { aspect-ratio: 1; padding: 4px; border: 2px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; display: grid; place-items: center; }
.ai-pic img { max-width: 100%; max-height: 100%; }
.ai-pic.on { border-color: var(--accent); border-width: 3px; }
.ai-none { font: 12px var(--f-ui); color: var(--muted); }
.ai-label { width: 90px; text-transform: uppercase; }
.ai-msg { min-height: 1.2em; }
.ai-done { margin-top: 12px; }

/* ---------- site music ---------- */
.musicbtn { position: fixed; left: 12px; bottom: calc(66px + env(safe-area-inset-bottom, 0px)); z-index: 25; max-width: min(260px, calc(100vw - 24px));
  min-height: 36px; padding: 0 12px; border: 2px solid var(--ink); border-radius: 18px; background: #fffdf3; color: var(--ink);
  font: 700 13px var(--f-ui); cursor: pointer; box-shadow: 2px 2px 0 rgba(0,0,0,.35); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.musicbtn.off { opacity: .75; }
body.term .musicbtn { display: none; }

/* ---------- bots (0.8) ---------- */
.bottag { display: inline-block; margin-left: 6px; padding: 0 5px; border-radius: 3px; background: #5865f2; color: #fff;
  font: 700 10px/16px system-ui, sans-serif; letter-spacing: .5px; vertical-align: middle; }
/* ---------- apps and / commands (0.9) ---------- */
.sl-pop { max-height: min(320px, 50vh); overflow-y: auto; padding: 4px; display: grid; gap: 2px; }
.sl-item { display: flex; align-items: center; gap: 10px; text-align: left; width: 100%; padding: 6px 8px; border: 0; border-radius: 6px; background: transparent; cursor: pointer; font: inherit; color: inherit; min-height: 44px; }
.sl-item.on, .sl-item:hover { background: #e3e9ff; }
.sl-av { width: 26px; height: 26px; border-radius: 6px; border: 1.5px solid #1b1b1b; flex: none; object-fit: cover;
  display: inline-flex; align-items: center; justify-content: center; font: 700 10px system-ui, sans-serif; color: #1b1b1b; }
.sl-txt { display: grid; min-width: 0; }
.sl-hint { color: var(--muted); }
.sl-desc { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sl-empty { padding: 8px; font-size: 14px; }
.sl-tray { margin-top: 8px; display: grid; gap: 6px; }
.sl-trow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sl-cmd { padding: 2px 8px; min-height: 32px; }
.sl-browse { font-weight: 700; }
.cm-botreply { display: grid; gap: 3px; max-width: min(420px, 100%); }
.cm-botused { font-size: 12px; color: var(--muted); font-style: italic; }
.cm-botcard { display: flex; gap: 8px; align-items: flex-start; border-left: 4px solid #5865f2; background: rgba(88, 101, 242, .08); border-radius: 4px; padding: 6px 8px; }
.cm-botav { width: 28px; height: 28px; border-radius: 6px; flex: none; object-fit: cover; display: inline-flex; align-items: center; justify-content: center;
  font: 700 10px system-ui, sans-serif; color: #1b1b1b; border: 1.5px solid #1b1b1b; }
.cm-botbody { min-width: 0; overflow-wrap: anywhere; }
.cm-botbody .bottag { margin-left: 6px; }
.sys.eph { border-left: 3px dashed #5865f2; padding-left: 8px; text-align: left; }
.eph-note { font-size: 12px; color: var(--muted); }
.cp-app > .grow { flex: 1 0 auto; }
@media (min-width: 561px) { .sl-pop { right: auto; width: min(440px, calc(100% - 24px)); } }
/* the / menu stays right above the typing box on phones too, so the keyboard doesn't hide it */
@media (max-width: 560px) { .cp-pop.sl-pop { position: absolute; left: 0; right: 0; max-height: 38vh; } }
/* ---------- message extras: reactions, replies, edit/delete/pin (0.11) ---------- */
.msg { position: relative; }
.mx-reply { display: block; width: 100%; text-align: left; background: none; border: 0; border-left: 3px solid #b9c4e8; padding: 0 0 0 8px; margin: 2px 0 3px;
  font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-reply b { color: inherit; }
.mx-edited { font-size: 12px; color: var(--muted); }
.mx-pin { font-size: 12px; }
.mx-rx { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 2px; }
.mx-chip { display: inline-flex; align-items: center; gap: 2px; min-height: 28px; padding: 0 8px; border: 1.5px solid #cfd6ea; border-radius: 14px; background: #f3f5fb;
  font: inherit; font-size: 14px; cursor: pointer; color: #1b1b1b; }
.mx-chip.on { border-color: #2b6be8; background: #e3e9ff; font-weight: 700; }
.mx-chip .cemoji { width: 18px; height: 18px; }
.mx-more { position: absolute; top: 0; right: 0; min-width: 32px; min-height: 28px; border: 1.5px solid #cfd6ea; border-radius: 8px; background: #fff;
  font-size: 16px; line-height: 1; cursor: pointer; opacity: 0; color: #1b1b1b; }
.msg:hover .mx-more, .msg:focus-within .mx-more, .mx-more[aria-expanded="true"] { opacity: 1; }
@media (hover: none) { .mx-more { opacity: .55; } }
.mx-menu { position: fixed; z-index: 90; background: #fffdf3; color: #1b1b1b; border: 2.5px solid #1b1b1b; border-radius: 12px; padding: 6px;
  box-shadow: 4px 4px 0 rgba(0,0,0,.3); min-width: 210px; max-width: min(320px, calc(100vw - 16px)); display: grid; gap: 2px; }
.mx-quick, .mx-grid { display: flex; flex-wrap: wrap; gap: 2px; padding-bottom: 4px; border-bottom: 1px dashed #d8d4c2; margin-bottom: 2px; }
.mx-grid { max-height: 160px; overflow-y: auto; }
.mx-q { width: 38px; height: 38px; border: 0; border-radius: 8px; background: transparent; font-size: 22px; cursor: pointer; }
.mx-q:hover, .mx-q:focus-visible { background: #e3e9ff; }
.mx-item { text-align: left; border: 0; background: transparent; padding: 8px 10px; border-radius: 8px; font: inherit; cursor: pointer; color: inherit; min-height: 40px; }
.mx-item:hover, .mx-item:focus-visible { background: #e3e9ff; }
.mx-replybar { display: flex; align-items: center; gap: 4px; padding: 4px 6px 4px 10px; margin-bottom: 4px; border-left: 3px solid #2b6be8; background: #eef2ff;
  border-radius: 6px; font-size: 14px; color: #1b1b1b; min-width: 0; }
.mx-rbt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.mx-rbx { flex: none; width: 32px; height: 32px; }
.mx-deleted .hint { font-style: italic; }
.mx-flash { animation: mxflash 1.2s ease; }
@keyframes mxflash { 0%, 60% { background: #fff4c2; } 100% { background: transparent; } }
.mx-pins { position: fixed; z-index: 90; right: 12px; top: 70px; width: min(380px, calc(100vw - 24px)); max-height: 70vh; overflow-y: auto; background: #fffdf3; color: #1b1b1b;
  border: 3px solid #1b1b1b; border-radius: 12px; padding: 10px; box-shadow: 5px 5px 0 rgba(0,0,0,.3); display: grid; gap: 6px; }
.mx-pinhead { display: flex; align-items: center; justify-content: space-between; }
.mx-pinrow { text-align: left; border: 1.5px solid #d8d4c2; border-radius: 8px; background: #fff; padding: 8px; font: inherit; cursor: pointer; overflow-wrap: anywhere; color: inherit; }
.cm-story { display: flex; gap: 8px; align-items: center; }
.cm-storyimg { width: 54px; height: 96px; object-fit: cover; border-radius: 6px; border: 2px solid #ff5a8a; }
.cm-join { color: var(--muted); font-style: italic; }
.fthumb img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; border: 2px solid #1b1b1b; display: block; margin-top: 4px; }
/* phones: one scrollable row of links so the top bar stays small (0.11) */
@media (max-width: 640px) {
  .topbar { gap: 4px 8px; padding: 4px 10px; }
  .topbar .brand { font-size: 19px; }
  .topbar .helpbtn { margin-left: auto; }
  .topbar nav { order: 3; flex: 1 0 100%; flex-wrap: nowrap; overflow-x: auto; margin: 0 -10px; padding: 0 6px 2px; scrollbar-width: none; }
  .topbar nav::-webkit-scrollbar { display: none; }
  .topbar nav a { flex: none; padding: 7px 10px; }
}
