/* Starport Comms: one screen, no page scrollbars. Every list is paged to fit its pane. */
:root { --fu-bg: #05060f; --fu-ink: #e6ecff; --fu-dim: #93a0c8; --fu-cy: #5ef0ff; --fu-mg: #ff5ed7; --fu-gold: #ffd166; --fu-ok: #6dffa8; --fu-bad: #ff6b81;
  --fu-glass: rgba(18, 24, 52, .62); --fu-edge: rgba(120, 170, 255, .28); --fu-r: .8rem; }
html { font-size: clamp(12px, calc(.55rem + .42vw), 22px); }
@media (max-height: 640px) and (min-width: 761px) { html { font-size: clamp(11px, calc(.4rem + .4vw + .45vh), 18px); } }
html, body.fu { height: 100%; margin: 0; overflow: hidden; background: var(--fu-bg); color: var(--fu-ink); }
body.fu { font-family: 'Gluten', system-ui, sans-serif; line-height: 1.35; }
body.fu * { box-sizing: border-box; scrollbar-width: none; }
body.fu *::-webkit-scrollbar { display: none; }
#fu-sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at 20% 15%, rgba(140, 60, 255, .28), transparent 55%), radial-gradient(ellipse at 85% 80%, rgba(0, 200, 255, .2), transparent 55%), radial-gradient(ellipse at 60% 40%, rgba(255, 80, 200, .1), transparent 60%), #05060f; }
.fu-app.game-wrap { position: relative; z-index: 1; max-width: none; width: 100%; margin: 0; padding: .5rem .8rem .35rem; height: 100vh; height: 100dvh;
  display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; gap: .45rem; overflow: hidden; background: none; box-shadow: none; border: 0; }
/* header */
.fu-top { display: flex; align-items: center; gap: .8rem; min-width: 0; }
.fu-back.back { margin: 0; white-space: nowrap; color: var(--fu-dim); text-decoration: none; font-size: .9rem; }
.fu-brand { display: flex; align-items: baseline; gap: .5rem; min-width: 0; }
.fu-brand h1 { margin: 0; font-family: 'Chango', 'Gluten', sans-serif; font-size: 1.55rem; letter-spacing: .02em; white-space: nowrap;
  background: linear-gradient(90deg, var(--fu-cy), #a98bff 50%, var(--fu-mg)); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 .6rem rgba(94, 240, 255, .35)); }
.fu-dish { font-size: 1.4rem; display: inline-block; animation: fu-dish 6s ease-in-out infinite; }
@keyframes fu-dish { 0%, 100% { transform: rotate(-12deg); } 50% { transform: rotate(12deg); } }
.fu-sub { color: var(--fu-dim); font-size: .85rem; white-space: nowrap; }
.fu-links.gg-links { display: flex; gap: .4rem; margin: 0 0 0 auto; flex-wrap: nowrap; }
.fu-links.gg-links a { white-space: nowrap; font-size: .85rem; padding: .25rem .6rem; border-radius: 99px; border: 1px solid var(--fu-edge); color: var(--fu-ink); background: rgba(255, 255, 255, .05); text-decoration: none; }
.fu-links.gg-links a:hover { border-color: var(--fu-cy); box-shadow: 0 0 .6rem rgba(94, 240, 255, .35); }
.fu-me { display: flex; align-items: center; gap: .45rem; white-space: nowrap; }
.fu-me .fu-who { display: flex; flex-direction: column; line-height: 1.1; font-size: .85rem; }
/* buttons */
.fu-btn { font: inherit; font-size: .85rem; color: var(--fu-ink); background: rgba(255, 255, 255, .06); border: 1px solid var(--fu-edge); border-radius: 99px;
  padding: .25rem .7rem; cursor: pointer; white-space: nowrap; transition: background .2s, box-shadow .2s, border-color .2s, transform .1s; }
.fu-btn:hover:not(:disabled) { border-color: var(--fu-cy); box-shadow: 0 0 .7rem rgba(94, 240, 255, .35); }
.fu-btn:active:not(:disabled) { transform: translateY(1px); }
.fu-btn:disabled { opacity: .35; cursor: default; }
.fu-btn.fu-pri { background: linear-gradient(90deg, rgba(94, 240, 255, .25), rgba(255, 94, 215, .25)); border-color: rgba(94, 240, 255, .6); }
.fu-btn.fu-warn { border-color: rgba(255, 107, 129, .55); color: #ffc2cc; }
.fu-btn.sm { font-size: .75rem; padding: .1rem .5rem; }
/* phone pane switcher */
.fu-switch { display: none; gap: .3rem; }
.fu-switch button { flex: 1; font: inherit; color: var(--fu-ink); background: var(--fu-glass); border: 1px solid var(--fu-edge); border-radius: .6rem; padding: .35rem; }
.fu-switch button.on { border-color: var(--fu-cy); box-shadow: inset 0 0 .8rem rgba(94, 240, 255, .25); }
/* panes */
.fu-panes { display: grid; grid-template-columns: minmax(15rem, 22fr) minmax(0, 34fr) minmax(0, 46fr); gap: .6rem; min-height: 0; }
.fu-pane { display: flex; flex-direction: column; min-height: 0; min-width: 0; overflow: hidden; border-radius: var(--fu-r); padding: .55rem .6rem .45rem;
  background: var(--fu-glass); border: 1px solid var(--fu-edge); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .03) inset, 0 .6rem 2rem rgba(0, 0, 0, .45); }
.fu-ph { display: flex; align-items: center; gap: .5rem; min-height: 2rem; flex: none; }
.fu-ph h2 { margin: 0; font-size: 1.1rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fu-tools { display: flex; gap: .3rem; flex: none; flex-wrap: wrap; justify-content: flex-end; }
.fu-blurb { margin: .1rem 0 .3rem; color: var(--fu-dim); font-size: .8rem; flex: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fu-blurb:empty { display: none; }
.fu-list { flex: 1 1 auto; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: .4rem; padding: .25rem .1rem; }
.fu-pager { flex: none; display: flex; align-items: center; justify-content: space-between; gap: .4rem; padding-top: .35rem; border-top: 1px solid rgba(120, 170, 255, .14); min-height: 2rem; }
.fu-pager .fu-pos { color: var(--fu-dim); font-size: .8rem; text-align: center; flex: 1; white-space: nowrap; }
.fu-tabs { display: flex; gap: .25rem; flex-wrap: nowrap; overflow: hidden; }
.fu-tabs button { font: inherit; font-size: .8rem; color: var(--fu-dim); background: none; border: 1px solid transparent; border-radius: 99px; padding: .15rem .55rem; cursor: pointer; white-space: nowrap; }
.fu-tabs button.on { color: var(--fu-ink); border-color: var(--fu-edge); background: rgba(94, 240, 255, .1); }
.fu-tabs b { color: var(--fu-ok); }
/* cards */
.fu-card { flex: none; border-radius: .65rem; padding: .45rem .55rem; background: rgba(255, 255, 255, .04); border: 1px solid rgba(120, 170, 255, .16); cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .2s, background .2s; animation: fu-in .25s ease both; text-align: left; color: inherit; font: inherit; width: 100%; }
.fu-card:hover, .fu-card.on { border-color: rgba(94, 240, 255, .55); box-shadow: 0 0 1rem rgba(94, 240, 255, .18); background: rgba(94, 240, 255, .07); }
.fu-card.on { box-shadow: inset 3px 0 0 var(--fu-cy), 0 0 1rem rgba(94, 240, 255, .2); }
@keyframes fu-in { from { opacity: 0; } }
.fu-board { display: grid; grid-template-columns: 2.1rem 1fr; gap: .1rem .5rem; align-items: center; }
.fu-board .ic { grid-row: span 2; font-size: 1.45rem; width: 2.1rem; height: 2.1rem; display: grid; place-items: center; border-radius: .6rem;
  background: radial-gradient(circle, rgba(94, 240, 255, .25), rgba(169, 139, 255, .08)); box-shadow: 0 0 .8rem rgba(94, 240, 255, .2); }
.fu-board .nm { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fu-board .st { color: var(--fu-dim); font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fu-thr .tt { font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.fu-thr .mt { display: flex; gap: .4rem; align-items: center; color: var(--fu-dim); font-size: .75rem; margin-top: .15rem; white-space: nowrap; overflow: hidden; }
.fu-thr .mt .nm { overflow: hidden; text-overflow: ellipsis; }
.fu-tag { font-size: .7rem; padding: 0 .35rem; border-radius: 99px; border: 1px solid; white-space: nowrap; }
.fu-tag.pin { color: var(--fu-gold); border-color: rgba(255, 209, 102, .5); }
.fu-tag.lock { color: var(--fu-bad); border-color: rgba(255, 107, 129, .5); }
.fu-tag.log { color: var(--fu-ok); border-color: rgba(109, 255, 168, .5); }
.fu-mini { display: flex; gap: .45rem; align-items: center; cursor: default; }
.fu-mini .tx { min-width: 0; font-size: .8rem; line-height: 1.2; }
.fu-mini .tx div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fu-mini.go { cursor: pointer; }
.fu-dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--fu-ok); box-shadow: 0 0 .5rem var(--fu-ok); flex: none; animation: fu-pulse 2s infinite; }
@keyframes fu-pulse { 50% { opacity: .4; } }
/* sigils and ranks */
.fu-sig { width: 1.9rem; height: 1.9rem; flex: none; border-radius: 50%; display: block; }
.fu-sig.lg { width: 2.6rem; height: 2.6rem; }
.fu-sig.gold { box-shadow: 0 0 0 2px var(--fu-gold), 0 0 .9rem rgba(255, 209, 102, .7); }
.fu-rank { font-size: .68rem; padding: 0 .4rem; border-radius: 99px; border: 1px solid rgba(169, 139, 255, .5); color: #cdbfff; white-space: nowrap; }
.fu-rank.gold { color: #1b1300; background: linear-gradient(90deg, #ffe08a, #ffb84d); border-color: #ffd166; box-shadow: 0 0 .6rem rgba(255, 209, 102, .6); font-weight: 600; }
.fu-rank.sys { color: var(--fu-ok); border-color: rgba(109, 255, 168, .5); }
.fu-rank.ban { color: var(--fu-bad); border-color: rgba(255, 107, 129, .5); }
/* posts */
.fu-post { flex: none; cursor: default; display: grid; grid-template-columns: 2.6rem 1fr; gap: .1rem .6rem; }
.fu-post:hover { transform: none; }
.fu-post .hd { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; font-size: .8rem; }
.fu-post .hd b { font-size: .9rem; }
.fu-post .hd .tm { color: var(--fu-dim); font-size: .72rem; }
.fu-post .av { grid-row: span 3; }
.fu-body { font-size: .9rem; white-space: pre-wrap; overflow-wrap: anywhere; min-width: 0; }
.fu-body.clamp { overflow: hidden; -webkit-mask-image: linear-gradient(#000 75%, transparent); mask-image: linear-gradient(#000 75%, transparent); }
.fu-body blockquote, .fu-quote { margin: .2rem 0; padding: .2rem .5rem; border-left: 3px solid var(--fu-mg); background: rgba(255, 94, 215, .07); border-radius: 0 .4rem .4rem 0; color: #d9cfff; white-space: pre-wrap; }
.fu-quote { font-size: .8rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fu-body code { font-family: ui-monospace, Consolas, monospace; background: rgba(94, 240, 255, .1); padding: 0 .25rem; border-radius: .25rem; font-size: .85em; }
.fu-body a { color: var(--fu-cy); }
.fu-post .ft { display: flex; gap: .3rem; flex-wrap: wrap; align-items: center; grid-column: 2; margin-top: .2rem; }
.fu-react { font: inherit; font-size: .78rem; background: rgba(255, 255, 255, .05); border: 1px solid rgba(120, 170, 255, .2); border-radius: 99px; padding: 0 .4rem; color: var(--fu-ink); cursor: pointer; transition: transform .15s, background .15s; }
.fu-react.on { background: rgba(94, 240, 255, .2); border-color: var(--fu-cy); }
.fu-react:hover { transform: scale(1.08); }
.fu-picker { display: inline-flex; gap: .15rem; }
.fu-more { margin-left: auto; display: flex; gap: .25rem; }
.fu-link { font: inherit; font-size: .75rem; background: none; border: 0; color: var(--fu-dim); cursor: pointer; padding: 0 .2rem; }
.fu-link:hover { color: var(--fu-cy); }
/* mission report card */
.fu-mission { grid-column: 1 / -1; border-radius: .7rem; padding: .5rem .6rem; margin-bottom: .2rem; position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(0, 200, 255, .14), rgba(140, 60, 255, .14)); border: 1px solid rgba(94, 240, 255, .45); }
.fu-mission::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 3px); pointer-events: none; }
.fu-mission .mh { display: flex; gap: .5rem; align-items: center; font-family: 'Chango', sans-serif; font-size: .85rem; letter-spacing: .04em; color: var(--fu-cy); }
.fu-mission .mh .ok { margin-left: auto; font-family: 'Gluten', sans-serif; font-size: .7rem; color: var(--fu-ok); letter-spacing: 0; }
.fu-mission .cap { font-size: 1rem; margin: .15rem 0 .3rem; }
.fu-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .25rem; }
.fu-stats div { background: rgba(5, 6, 15, .45); border-radius: .4rem; padding: .15rem .35rem; min-width: 0; }
.fu-stats small { display: block; color: var(--fu-dim); font-size: .65rem; text-transform: uppercase; letter-spacing: .06em; }
.fu-stats b { display: block; font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fu-empty { color: var(--fu-dim); text-align: center; margin: auto; padding: 1rem; font-size: .9rem; }
.fu-empty .big { font-size: 2.2rem; display: block; margin-bottom: .3rem; }
/* footer */
.fu-foot { display: flex; gap: .5rem; justify-content: center; color: var(--fu-dim); font-size: .72rem; white-space: nowrap; overflow: hidden; }
.fu-foot code { font-size: .9em; }
/* dialogs */
.fu-modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(2, 3, 10, .7); backdrop-filter: blur(4px); padding: .6rem; }
.fu-modal[hidden] { display: none; }
.fu-dlg { width: min(44rem, 100%); max-height: calc(100dvh - 1.2rem); display: flex; flex-direction: column; gap: .4rem; overflow: hidden; border-radius: 1rem; padding: .8rem 1rem;
  background: rgba(14, 18, 40, .96); border: 1px solid rgba(94, 240, 255, .45); box-shadow: 0 0 2.5rem rgba(94, 240, 255, .25); animation: fu-in .2s ease; }
.fu-dlg h3 { margin: 0; font-size: 1.1rem; }
#dlg-b { display: flex; flex-direction: column; gap: .45rem; min-height: 0; flex: 1; }
.fu-dlg label { display: flex; flex-direction: column; gap: .15rem; font-size: .8rem; color: var(--fu-dim); }
.fu-dlg input, .fu-dlg textarea { font: inherit; font-size: .9rem; color: var(--fu-ink); background: rgba(5, 6, 15, .7); border: 1px solid var(--fu-edge); border-radius: .5rem; padding: .35rem .5rem; }
.fu-dlg textarea { resize: none; height: clamp(4rem, 30dvh, 16rem); }
.fu-dlg input:focus, .fu-dlg textarea:focus { outline: none; border-color: var(--fu-cy); box-shadow: 0 0 .6rem rgba(94, 240, 255, .3); }
.fu-row { display: flex; gap: .4rem; justify-content: flex-end; align-items: center; flex-wrap: wrap; }
.fu-row .fu-note { margin-right: auto; color: var(--fu-dim); font-size: .75rem; }
.fu-err { color: var(--fu-bad); font-size: .8rem; min-height: 1em; }
.fu-reader { flex: 1; min-height: 0; overflow: hidden; }
.fu-toast { position: fixed; left: 50%; bottom: 1rem; transform: translate(-50%, 2rem); opacity: 0; z-index: 60; pointer-events: none; background: rgba(14, 18, 40, .95);
  border: 1px solid var(--fu-cy); border-radius: 99px; padding: .35rem 1rem; transition: opacity .25s, transform .25s; font-size: .9rem; }
.fu-toast.show { opacity: 1; transform: translate(-50%, 0); }
/* short screens */
@media (max-height: 560px) and (min-width: 761px) {
  .fu-app.game-wrap { padding: .3rem .6rem .2rem; gap: .3rem; }
  .fu-sub, .fu-foot { display: none; }
  .fu-app.game-wrap { grid-template-rows: auto auto minmax(0, 1fr) 0; }
}
@media (max-width: 1150px) and (min-width: 761px) { .fu-sub { display: none; } .fu-panes { grid-template-columns: minmax(13rem, 22fr) minmax(0, 33fr) minmax(0, 45fr); } }
/* phones: one pane at a time */
@media (max-width: 760px) {
  html { font-size: 14px; }
  .fu-app.game-wrap { padding: .4rem .45rem .3rem; gap: .35rem; }
  .fu-top { gap: .4rem; flex-wrap: nowrap; }
  .fu-sub, .fu-brand .fu-dish { display: none; }
  .fu-brand h1 { font-size: 1.15rem; }
  .fu-links.gg-links a { padding: .2rem .4rem; font-size: .75rem; }
  .fu-me .fu-who { display: none; }
  .fu-switch { display: flex; }
  .fu-panes { grid-template-columns: 1fr; }
  .fu-pane { display: none; }
  .fu-panes[data-show="boards"] #p-boards, .fu-panes[data-show="threads"] #p-threads, .fu-panes[data-show="thread"] #p-thread { display: flex; }
  .fu-foot { display: none; }
  .fu-app.game-wrap { grid-template-rows: auto auto minmax(0, 1fr) 0; }
  .fu-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) and (max-height: 500px) { .fu-switch button { padding: .15rem; } .fu-brand h1 { font-size: 1rem; } }
@media (prefers-reduced-motion: reduce) { body.fu *, body.fu *::before, body.fu *::after { animation: none !important; transition: none !important; } }
/* the shared "Share on X" button, sized to the header */
.fu-links a.ggs-btn.ggs-btn { min-height: 0; padding: .25rem .65rem; font-size: .8rem; border-color: var(--fu-edge); background: rgba(0, 0, 0, .55); }
@media (max-width: 760px) { .fu-links a.ggs-btn.ggs-btn { padding: .2rem .45rem; font-size: 0; gap: 0; } .fu-links a.ggs-btn .ggs-logo { width: 13px; height: 13px; } }
@media (max-width: 400px) { .fu-me .fu-pri { display: none; } .fu-brand h1 { font-size: .95rem; } .fu-top { gap: .3rem; } .fu-links.gg-links { gap: .2rem; } .fu-back.back { font-size: .8rem; } }
/* desk.css centres every main/footer at 920px; the forum runs full width */
.fu-app main.fu-panes, .fu-app footer.fu-foot { width: auto; margin: 0; }
.fu-brand { flex: 1 1 auto; overflow: hidden; }
.fu-brand h1 { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.fu-links.gg-links, .fu-me, .fu-back.back { flex: none; }

/* achievements: the top badge next to names, clickable names and the profile dialog */
.fu-rk { display: inline-flex; align-items: center; gap: .25rem; }
.fu-name { font: inherit; font-weight: 700; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.fu-name:hover, .fu-name:focus-visible { color: var(--fu-cy); text-decoration: underline; outline: none; }
.fu-ach { font: inherit; font-size: .78rem; line-height: 1; width: 1.45rem; height: 1.2rem; display: inline-flex; align-items: center; justify-content: center; padding: 0; cursor: pointer;
  border-radius: 99px; border: 1px solid rgba(94, 240, 255, .45); background: rgba(94, 240, 255, .08); }
.fu-ach.t3 { border-color: rgba(169, 139, 255, .7); background: rgba(169, 139, 255, .14); }
.fu-ach.t4, .fu-ach.t5 { border-color: rgba(255, 94, 215, .7); background: rgba(255, 94, 215, .14); box-shadow: 0 0 .5rem rgba(255, 94, 215, .35); }
.fu-ach:hover, .fu-ach:focus-visible { border-color: var(--fu-cy); outline: none; box-shadow: 0 0 .6rem rgba(94, 240, 255, .5); }
.fu-prof { display: flex; gap: .7rem; align-items: center; margin-bottom: .6rem; }
.fu-dim { color: var(--fu-dim); font-size: .85rem; margin: .1rem 0; }
.fu-achs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; min-height: 9.5rem; align-content: start; }
.fu-achc { display: flex; gap: .45rem; align-items: center; padding: .3rem .5rem; border-radius: .7rem; border: 1px solid var(--fu-edge); background: rgba(255, 255, 255, .04); min-width: 0; }
.fu-achc .ic { font-size: 1.25rem; } .fu-achc div { min-width: 0; } .fu-achc b { display: block; font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fu-achc small { color: var(--fu-dim); font-size: .7rem; } .fu-achc.t4, .fu-achc.t5 { border-color: rgba(255, 94, 215, .55); }
.fu-dlg .fu-pager { display: flex; justify-content: center; align-items: center; gap: .5rem; margin: .4rem 0; min-height: 1.6rem; }
