html { color-scheme: dark; scroll-behavior: smooth; }
body { margin:0; color:#f1f5f9; background:radial-gradient(ellipse at 85% 0%, #35204c 0, transparent 44rem), radial-gradient(ellipse at 0% 55%, #12364b 0, transparent 42rem), #111827; min-height:100vh; font:16px/1.55 system-ui,sans-serif; }
.hub-nav,.hub-footer,.hub-main { box-sizing:border-box; font-family:system-ui,sans-serif; }
.hub-nav *, .hub-main * { box-sizing:border-box; }
.hub-nav { position:sticky; top:0; z-index:50; background:#111827f5; border-bottom:1px solid #ffffff1f; color:#f1f5f9; }
custom-navbar { display:block; position:sticky; top:0; z-index:50; }
.hub-nav-inner { max-width:1240px; min-height:66px; padding:.75rem clamp(.75rem,3vw,2rem); margin:auto; display:flex; gap:1rem; align-items:center; justify-content:space-between; flex-wrap:wrap; }
.hub-nav-main,.hub-nav-actions,.hub-account,.hub-links { display:flex; align-items:center; gap:.8rem; flex-wrap:wrap; }
.hub-brand { color:#f3d6ff; font-size:1.25rem; font-weight:800; letter-spacing:.025em; text-decoration:none; }
.hub-nav a:not(.hub-brand),.hub-footer nav a { color:#d7ddec; text-decoration:none; }
.hub-nav a:hover,.hub-nav a[aria-current],.hub-footer a:hover { color:#a5f3fc; }
.hub-nav details { position:relative; }
.hub-nav summary { cursor:pointer; }
.hub-menu { position:absolute; z-index:5; top:calc(100% + 12px); right:0; width:190px; padding:.5rem; background:#1e293b; border:1px solid #526078; border-radius:12px; box-shadow:0 14px 38px #0008; }
.hub-menu a { display:block; padding:.42rem .6rem; }
.hub-nav button,.hub-main button { font:inherit; color:#eef2ff; border:1px solid #687694; background:#273451; padding:.42rem .7rem; border-radius:9px; cursor:pointer; }
.hub-nav button[data-assistant] { border-color:#ab79d7; background:#47305d; }
.hub-main button:not(:disabled):hover,.hub-nav button:not(:disabled):hover { filter:brightness(1.22); }
.hub-main button:disabled,.hub-nav button:disabled { opacity:.55; cursor:default; }
.hub-username { max-width:12ch; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#cbd5e1; }
.hub-main { width:min(1100px,calc(100% - 2rem)); margin:0 auto; padding:clamp(2rem,5vw,4.5rem) 0; min-height:70vh; }
.hub-main h1 { font-size:clamp(2rem,5vw,3.4rem); line-height:1.08; margin:0 0 .7rem; color:#f4dbff; }
.hub-main h2 { font-size:1.2rem; margin:0 0 .55rem; }
.hub-main p { color:#cbd5e1; margin:.45rem 0 1rem; }
.hub-main a:not(.hub-primary) { color:#a5f3fc; text-underline-offset:.2em; }
.hub-intro { margin-bottom:1.6rem; }
.hub-card { color:#f1f5f9; padding:clamp(1rem,3vw,1.65rem); background:#1c263cee; border:1px solid #526078; border-radius:18px; box-shadow:0 18px 50px #070d1945; min-width:0; }
.hub-auth { width:min(100%,34rem); margin:auto; }
.hub-auth h1 { font-size:clamp(1.8rem,5vw,2.65rem); }
.hub-form,.hub-stack { display:grid; gap:1rem; }
.hub-form { margin-top:1rem; }
.hub-form label { display:grid; gap:.35rem; }
.hub-form small,.hub-main time,.hub-muted { color:#aab6ce; }
.hub-form label.hub-check { display:flex; align-items:center; }
.hub-form input:not([type=checkbox]),.hub-form textarea { width:100%; border:1px solid #64748b; border-radius:9px; color:#f1f5f9; background:#101827; padding:.63rem .75rem; font:inherit; }
.hub-form textarea { resize:vertical; }
.hub-form :focus-visible,.hub-nav :focus-visible,.hub-main :focus-visible { outline:2px solid #a5f3fc; outline-offset:3px; }
.hub-main .hub-primary { display:inline-block; color:white; font-weight:700; text-decoration:none; padding:.55rem .9rem; border-radius:9px; background:linear-gradient(115deg,#255b92,#743eae); border:1px solid #b19cde; }
.hub-status { min-height:1.5em; }
.hub-status[data-error=true] { color:#fda4af; }
.hub-chat { display:grid; grid-template-columns:minmax(14rem,1fr) minmax(0,2.4fr); gap:1rem; }
.hub-log { min-height:13rem; max-height:55vh; overflow:auto; display:flex; flex-direction:column; gap:.65rem; }
.hub-log p { margin:0; }
.hub-bubble { max-width:min(90%,38rem); align-self:flex-start; color:#fff; background:#293953; border-radius:14px; padding:.6rem .85rem; overflow-wrap:anywhere; }
.hub-bubble[data-own=true] { align-self:flex-end; background:#573c77; }
.hub-bubble div,.hub-prewrap { white-space:pre-wrap; overflow-wrap:anywhere; }
.hub-list { padding:0; list-style:none; display:grid; gap:.45rem; }
.hub-list button { width:100%; text-align:left; overflow-wrap:anywhere; }
.hub-list button[aria-pressed=true] { background:#573c77; }
.hub-row { display:flex; gap:.6rem; flex-wrap:wrap; align-items:center; }
.hub-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr)); gap:1rem; }
.hub-footer { border-top:1px solid #ffffff22; max-width:1240px; margin:auto; padding:1.5rem; display:flex; flex-wrap:wrap; gap:1rem; align-items:center; justify-content:space-between; color:#aab6ce; }
.hub-footer nav { display:flex; flex-wrap:wrap; gap:1rem; }
[hidden] { display:none !important; }
@media(max-width:700px) {
  .hub-chat { grid-template-columns:1fr; }
  .hub-nav-main { order:3; flex-basis:100%; }
  .hub-nav-inner { gap:.55rem; }
  .hub-nav-actions { gap:.55rem; }
  .hub-username { display:none; }
  .hub-log { max-height:45vh; }
}
.hub-hero { position:relative; isolation:isolate; display:grid; grid-template-columns:1fr minmax(12rem,32%); align-items:center; min-height:24rem; gap:2rem; margin-bottom:2rem; padding:clamp(1.25rem,6vw,5rem); border:1px solid #826da0; border-radius:26px; background:linear-gradient(125deg,#18374d,#2a264a 56%,#442e57); overflow:hidden; }
.hub-hero h1 { font-size:clamp(2.5rem,9vw,6rem); letter-spacing:-.055em; }
.hub-hero p { font-size:clamp(1.05rem,2.5vw,1.36rem); }
.hub-orbit { position:relative; width:min(100%,14rem); aspect-ratio:1; justify-self:center; border-radius:50%; background:radial-gradient(circle at 34% 32%,#fbe2ff 0%,#ae72d7 23%,#3a3f83 55%,#101d39 72%); box-shadow:0 0 60px #ae72d787, inset 0 0 20px #100f2f; }
.hub-orbit i { position:absolute; inset:36% -23%; border:1px solid #a5f3fc9e; border-radius:50%; transform:rotate(-34deg); }
.hub-orbit i:nth-child(2) { transform:rotate(38deg); border-color:#e1bfffcb; }
.hub-orbit i:nth-child(3) { inset:28% -32%; transform:rotate(-34deg); border-color:#7dd3fc53; }
.hub-game { display:grid; grid-template-columns:repeat(4,1fr); gap:.6rem; width:min(100%,32rem); }
.hub-game button { aspect-ratio:1.3; font-size:clamp(1rem,5vw,2rem); }
.hub-game button[data-matched] { background:#466677; }
.hub-catalog-visual { display:grid; place-items:center; height:6rem; margin-bottom:1rem; border-radius:12px; background:radial-gradient(circle,#744285,#202845); color:#f4d6ff; font-size:3rem; }
.hub-main [id^="post-"] { scroll-margin-top:8rem; }
@media(max-width:630px) { .hub-hero { display:block; min-height:0; } .hub-orbit { position:absolute; right:-3rem; bottom:-4rem; z-index:-1; opacity:.24; width:12rem; } }
.hub-history { margin-top:1rem; }

.hub-nav summary { padding: .4rem .55rem; border-radius: 9px; }
.hub-nav details[open] summary, .hub-nav summary:hover { background: #35415e; }
.hub-nav-inner { min-height: 70px; }
.hub-nav-main a { padding: .38rem .52rem; border-radius: 8px; }
.hub-nav-main a[aria-current] { background: #29354f; }
.hub-search-link { padding: .35rem 0; }
.hub-card { transition: border-color .2s ease; }
.hub-card:focus-within { border-color: #b296d3; }
.hub-onboarding { margin-top: 2.5rem; padding: 1.25rem 0 0; border-top: 1px solid #ffffff24; }
.hub-onboarding p, .hub-intro p { max-width: 65ch; }
.hub-history { scroll-margin-top: 9rem; }
.hub-archive-hero { margin: 1rem 0; min-height: 19rem; }
.hub-archive-hero h1 { font-size: clamp(2rem,7vw,4.5rem); overflow-wrap: anywhere; }
.hub-archive-hero p:first-child { color: #e8cbff; }
.hub-archive-hero .hub-orbit { filter: hue-rotate(var(--archive-hue,0deg)); }
.hub-archive[data-year="2018"] { --archive-hue: 305deg; }
.hub-archive[data-year="2019"] { --archive-hue: 55deg; }
.hub-archive[data-year="2022"] { --archive-hue: 260deg; }
.hub-archive[data-year="2025"] { --archive-hue: 330deg; }
.hub-archive[data-year="2026"] { --archive-hue: 25deg; }
.hub-timeline { padding-inline-start: 1.3rem; margin-bottom: 0; }
.hub-timeline li::marker { color: #c5a7fa; }
.hub-timeline p { margin: .2rem 0 .8rem; }
.hub-quote { margin: 0; border-inline-start: 4px solid #a97add; }
.hub-quote blockquote { margin: 0 0 .6rem; font-size: 1.12rem; }
.hub-quote figcaption, .hub-dialog-preview { color: #c3cee2; }
.hub-archive-nav { margin-top: 1.4rem; justify-content: space-between; }
.hub-dialog-preview { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
@media (min-width: 631px) and (prefers-reduced-motion: no-preference) {
  .hub-orbit { animation: orbit-drift 8s ease-in-out infinite alternate; }
  @keyframes orbit-drift { from { transform: translateY(0) rotate(-4deg); } to { transform: translateY(-10px) rotate(6deg); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hub-card { transition: none; }
}
@media (max-width: 700px) {
  .hub-nav-main { gap: .28rem; }
  .hub-nav-main a { padding: .3rem .4rem; }
}
.hub-archive-stats { margin: .6rem 0 0; }
.hub-archive-stats dd { margin: .2rem 0 0; font-size: 1.35rem; font-weight: 700; color: #e8cbff; }
