/* ==========================================================================
   holdonquietly v2 shell: personal-web layout
   banner · sidebar nav · content · sidebar · button wall
   Same purple glass + aurora as hoq.css; denser boxes with title bars and
   pixel labels. The markup is stamped onto every page by scripts/shell.py.
   ========================================================================== */
:root { --px: "Montserrat", -apple-system, "Segoe UI", sans-serif; --acc: #8B7CF7; --acc2: #6d8bf2; --acc3: #40b0e8; }
body { font-size: 14px; }

.shell {
  flex: 1 0 auto; width: 100%; max-width: 1200px; margin: 0 auto; padding: 12px 12px 0;
  display: grid; gap: 10px;
  grid-template-columns: 172px minmax(0, 1fr) 206px;
  grid-template-areas: "banner banner banner" "left main right" "foot foot foot";
}
/* tool pages: content takes the right column too; the sidebar drops below */
.shell.wide { grid-template-areas: "banner banner banner" "left main main" "left right right" "foot foot foot"; }
.shell.wide aside.side-r { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.shell > main { grid-area: main; min-width: 0; }
.shell main .wrap, .shell main .wrap.narrow { max-width: none; padding: 0 0 8px; }
.shell .spacer { height: 16px; }

/* ---- title bars: the core "box" look ---- */
.box { overflow: hidden; border-radius: 6px; }
.bt {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 6px 11px; min-height: 28px;
  font-family: var(--px); font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: lowercase; color: #fff;
  background:
    linear-gradient(180deg, rgba(255,255,255,.26) 0%, rgba(255,255,255,.08) 48%, rgba(255,255,255,.02) 52%, rgba(255,255,255,.06) 100%),
    linear-gradient(90deg, rgba(139,124,247,.42), rgba(109,139,242,.26) 60%, rgba(64,176,232,.22));
  backdrop-filter: blur(14px) saturate(170%); -webkit-backdrop-filter: blur(14px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -1px 0 rgba(0,0,0,.18);
  border-bottom: 1px solid rgba(255,255,255,.22);
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
}
.bb { padding: 10px 11px; font-size: 13px; color: var(--dim); }
.bb a { color: #fff; }
.bb p + p { margin-top: 8px; }

/* ---- banner ---- */
.banner {
  grid-area: banner; position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 14px; padding: 12px 16px 0; flex-wrap: wrap;
}
.banner::before {   /* acrylic sheen across the top half */
  content: ""; position: absolute; inset: 0 0 50% 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.03));
  border-radius: inherit;
}
.banner > * { position: relative; z-index: 1; }
.bn-logo { flex: none; width: 60px; height: 60px; border-radius: 8px; display: grid; place-items: center; background: rgba(255,255,255,.92);
  box-shadow: 0 8px 22px rgba(0,0,0,.35); }
.bn-logo img { width: 74%; height: 74%; object-fit: contain; }
.bn-text { min-width: 0; flex: 1 1 360px; padding-bottom: 10px; }
.bn-word {
  display: inline-block; font-family: "Metal Mania", var(--px); font-weight: 400;
  font-size: clamp(32px, 5.2vw, 56px); line-height: 1.02; letter-spacing: .03em; padding: 0 .08em;
  background: linear-gradient(180deg,
    #fbfaff 0%, #d9d2ff 18%, #9d8ff5 38%, #f4f1ff 49%, #b8c8ff 53%, #6d7fe0 72%, #4b3fb0 86%, #d6e4ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 1px rgba(235,240,255,.6);
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.4)) drop-shadow(0 4px 6px rgba(10,8,40,.6)) drop-shadow(0 0 16px rgba(150,170,255,.35));
}
.bn-word span { color: transparent; }
.bn-sub { margin-top: 8px; font-family: var(--px); font-size: 12px; color: var(--dim); letter-spacing: .04em; }
.strip { flex: 1 0 100%; margin: 0 -16px; overflow: hidden; white-space: nowrap; border-top: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.28); font-family: var(--px); font-size: 11px; color: var(--dim); padding: 6px 0; }
.strip-track { display: inline-block; padding-left: 100%; animation: stripmove 40s linear infinite; }
.strip:hover .strip-track { animation-play-state: paused; }
@keyframes stripmove { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .strip-track { animation: none; padding-left: 12px; } }

/* ---- left sidebar nav ---- */
nav.side-nav { grid-area: left; align-self: start; position: sticky; top: 10px; display: flex; flex-direction: column; gap: 10px; z-index: 5; }
.side-nav .links { padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.side-nav .sec { font-family: var(--px); font-weight: 700; font-size: 10px; letter-spacing: .14em; color: var(--dim2); padding: 8px 4px 2px; display: flex; align-items: center; gap: 6px; }
.side-nav .sec::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255,255,255,.3), transparent); }
.side-nav .links a {
  display: block; padding: 4px 9px; border-radius: 6px; border-left: 2px solid transparent;
  font-family: var(--px); font-weight: 600; font-size: 13px; color: var(--dim); text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.side-nav .links a:hover { background: rgba(255,255,255,.07); color: #fff; }
.side-nav .links a.active { color: #fff; background: rgba(139,124,247,.2); border-left-color: #b8acff; border-radius: 0 6px 6px 0; }

/* sticky-note to-do under the nav */
.note { position: relative; margin: 4px 6px 0; padding: 14px 14px 12px; border-radius: 4px; transform: rotate(-2deg); color: #2a2440;
  background: linear-gradient(180deg, #f3eeff, #ddd3ff); box-shadow: 0 10px 22px rgba(0,0,0,.4); font-size: 12px; }
.note::before { content: ""; position: absolute; top: -8px; left: 50%; width: 54px; height: 16px; margin-left: -27px; transform: rotate(3deg);
  background: rgba(255,255,255,.55); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.note h4 { font-family: var(--px); font-size: 11px; font-weight: 400; margin-bottom: 6px; letter-spacing: .06em; }
.note ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.note li::before { content: "☐ "; }
.note li.done { text-decoration: line-through; opacity: .6; }
.note li.done::before { content: "☑ "; }

/* ---- right sidebar ---- */
aside.side-r { grid-area: right; align-self: start; display: flex; flex-direction: column; gap: 10px; }
.side-r .bb { font-size: 12.5px; }
.status-line { color: #fff; font-size: 13px; }
.status-when { font-family: var(--px); font-size: 10px; color: var(--dim2); margin-top: 6px; }
.updates { max-height: 230px; overflow-y: auto; padding-right: 4px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; list-style: none; }
.updates .d { font-family: var(--px); font-size: 10px; color: #c9bfff; display: block; }
.np { display: flex; align-items: center; gap: 10px; }
.np button { flex: none; width: 34px; height: 34px; border-radius: 5px; cursor: pointer; display: grid; place-items: center; color: #fff;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); }
.np button:hover { background: rgba(255,255,255,.24); }
.np button svg { width: 16px; height: 16px; }
.np .t { min-width: 0; font-size: 12px; line-height: 1.35; }
.np .t b { display: block; color: #fff; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np .t a { color: var(--dim); }
.np .bars { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; margin-left: 4px; vertical-align: -1px; }
.np .bars i { width: 3px; background: #b8acff; height: 3px; }
.np.on .bars i { animation: eq .9s ease-in-out infinite; }
.np.on .bars i:nth-child(2) { animation-delay: .2s; }
.np.on .bars i:nth-child(3) { animation-delay: .4s; }
@keyframes eq { 0%,100% { height: 3px; } 50% { height: 12px; } }
.counter { display: flex; gap: 3px; justify-content: center; }
.counter span { font-family: ui-monospace, Consolas, monospace; font-weight: 700; font-size: 17px; color: #fff; width: 22px; text-align: center; padding: 3px 0; border-radius: 4px;
  background: linear-gradient(180deg, #24264a 50%, #1a1b36 50%); border: 1px solid rgba(255,255,255,.2); box-shadow: inset 0 1px 0 rgba(255,255,255,.1); }
.counter-sub { text-align: center; font-family: var(--px); font-size: 10px; color: var(--dim2); margin-top: 7px; }

/* ---- footer ---- */
.shell > footer { grid-area: foot; border-top: 0; padding: 10px 0 18px; }
.btnwall { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 16px; }
.btnwall a, .btnwall img { display: block; width: 88px; height: 31px; }
.btnwall a { transition: transform .15s ease, filter .15s ease; }
.btnwall a:hover { transform: translateY(-2px); filter: drop-shadow(0 0 6px rgba(139,124,247,.7)); }
.shell > footer .fnav a { font-family: var(--px); font-size: 11px; }

/* ---- denser content components inside the shell ---- */
.shell .pagehead { padding: 0; display: block; overflow: hidden; border-radius: 6px; margin-bottom: 10px; }
.shell .pagehead .ph-in { display: flex; gap: 14px; align-items: center; padding: 12px 16px; }
.shell .pagehead h1 { font-size: clamp(21px, 3.4vw, 28px); }
.shell .pagehead p { font-size: 14px; }
.shell .pagehead .ph-ico svg { width: 34px; height: 34px; }
.shell .eyebrow { font-family: var(--px); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: lowercase; color: #d9d2ff; display: flex; align-items: center; gap: 8px; }
.shell .eyebrow::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(184,172,255,.5), transparent); }
.shell .h2 { font-size: clamp(19px, 3vw, 24px); }
.shell .lineup { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.shell .proj { padding: 0 13px 12px; border-radius: 6px; }
.shell .proj .kind { order: -1; margin: 0 -13px 10px; padding: 6px 12px; font-family: var(--px); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: lowercase; color: #fff;
  background:
    linear-gradient(180deg, rgba(255,255,255,.26) 0%, rgba(255,255,255,.08) 48%, rgba(255,255,255,.02) 52%, rgba(255,255,255,.06) 100%),
    linear-gradient(90deg, rgba(139,124,247,.42), rgba(109,139,242,.26) 60%, rgba(64,176,232,.22));
  backdrop-filter: blur(14px) saturate(170%); -webkit-backdrop-filter: blur(14px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -1px 0 rgba(0,0,0,.18);
  border-bottom: 1px solid rgba(255,255,255,.22);
  text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.shell .proj h3 { font-size: 15.5px; }
.shell .proj p { font-size: 13px; }
.shell .proj .ico svg { width: 28px; height: 28px; }
.shell .proj .go { font-family: var(--px); font-size: 11px; margin-top: 12px; }
.shell .card { border-radius: 6px; }
.shell .crumbs { font-family: var(--px); font-size: 11px; margin-bottom: 12px; }

/* home */
.home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.home-grid .full { grid-column: 1 / -1; }
.welcome .bb { display: flex; gap: 16px; align-items: flex-start; font-size: 13.5px; }
.welcome h1 { font-family: var(--px); font-weight: 800; font-size: 21px; color: #fff; margin-bottom: 8px; letter-spacing: -.01em; }
.welcome .stamp { flex: none; width: 92px; height: 92px; border-radius: 7px; display: grid; place-items: center; background: rgba(255,255,255,.92);
  box-shadow: 0 0 0 4px rgba(255,255,255,.18), 0 8px 20px rgba(0,0,0,.35); }
.welcome .stamp img { width: 72%; }
.rows { display: flex; flex-direction: column; gap: 6px; }
.rows a, .rows .r { display: flex; align-items: baseline; gap: 12px; padding: 9px 2px; text-decoration: none; color: var(--dim);
  border-bottom: 1px solid rgba(255,255,255,.09); }
.rows a:last-child, .rows .r:last-child { border-bottom: 0; }
.rows a:hover b { color: #cfc6ff; text-decoration: underline; text-underline-offset: 3px; }
.rows .ri { display: none; }
.rows .rt { min-width: 0; }
.rows b { color: #fff; font-weight: 700; display: block; font-size: 13.5px; }
.rows small { font-size: 12px; }
.rows .mcstat { margin: 0 0 0 auto; font-size: 12px; white-space: nowrap; }
.gb-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.gb-cta .big { font-family: var(--px); font-weight: 800; font-size: 21px; color: #fff; line-height: 1.15; }
.gb-cta .cta { margin-left: auto; padding: 10px 18px; }

/* ---- responsive ---- */
@media (max-width: 1100px) {
  .shell, .shell.wide { grid-template-columns: 180px minmax(0, 1fr); grid-template-areas: "banner banner" "left main" "right right" "foot foot"; }
  aside.side-r { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
}
@media (max-width: 760px) {
  .shell, .shell.wide { grid-template-columns: minmax(0, 1fr); grid-template-areas: "banner" "left" "main" "right" "foot"; padding: 10px 10px 0; }
  nav.side-nav { position: static; }
  .side-nav .links { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .side-nav .links::-webkit-scrollbar { display: none; }
  .side-nav .links a { flex: none; }
  .side-nav .links a::before, .side-nav .sec, .side-nav .note, .side-nav .box > .bt { display: none; }
  .bn-logo { width: 56px; height: 56px; border-radius: 7px; }
  .banner { gap: 12px; padding: 14px 14px 0; }
  .bn-text { flex: 1 1 0; padding-bottom: 12px; }
  .bn-word { font-size: 30px; }
  .bn-sub { font-size: 10px; }
  .strip { margin: 0 -14px; }
  .home-grid { grid-template-columns: 1fr; }
  .welcome .stamp { display: none; }
}

/* games hub: compact join/status rows inside cards */
.shell .proj .join { padding: 0; margin-top: 10px; gap: 8px; }
.shell .proj .join .addr { font-size: 13px; padding: 6px 10px; }
.shell .proj .mcstat { margin-top: 10px; }
.shell .proj .act { margin-top: 12px; }

/* falling pixels (drawn by hoq.js), above the aurora, behind everything else */
#pixelfall { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* ---- compact: shared components inside the shell ---- */
.shell .card { padding: 13px 14px; }
.shell .grid { gap: 10px; }
.shell .eyebrow { margin-bottom: 8px; }
.shell .steps { gap: 8px; }
.shell .step { padding: 11px 14px; }
.shell .faq { gap: 7px; }
.shell .faq details { padding: 10px 14px; }
.shell .tool { padding: 16px; }
.shell .tool + .tool { margin-top: 10px; }
.shell .drop { min-height: 130px; padding: 18px; }
.shell .welcome .bb { padding: 12px 14px; }
.shell .rows a, .shell .rows .r { padding: 7px 2px; }

/* ---- Discord page ---- */
.dc-hero .bb { padding: 14px; }
.dc-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.dc-icon { width: 64px; height: 64px; border-radius: 8px; flex: none; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.dc-id { flex: 1 1 220px; min-width: 0; }
.dc-id h2 { font-size: 20px; font-weight: 800; color: #fff; }
.dc-id p { font-size: 13px; color: var(--dim); margin: 2px 0 6px; }
.dc-id .mcstat, .dc-bot .mcstat { margin-top: 0; }
.dc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.dc-stats > div { padding: 10px 12px; border-radius: 6px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.dc-stats b { display: block; font-size: 22px; font-weight: 800; color: #fff; line-height: 1.15; }
.dc-stats span { font-size: 11.5px; color: var(--dim2); text-transform: lowercase; }
.dc-hero .hint { margin-top: 8px; font-size: 11.5px; color: var(--dim2); }
.dc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.dc-bot { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.dc-bot img { width: 44px; height: 44px; border-radius: 50%; }
.dc-bot b { display: block; color: #fff; font-size: 14px; margin-bottom: 2px; }
.cmds { list-style: none; margin-top: 10px; display: flex; flex-direction: column; }
.cmds li { display: flex; gap: 10px; align-items: baseline; padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 12.5px; }
.cmds li:last-child { border-bottom: 0; }
.cmds code { flex: none; min-width: 84px; font-family: ui-monospace, Consolas, monospace; font-size: 12px; color: #d9d2ff; }
.cmds span { color: var(--dim); }
.dc-channels { display: flex; flex-direction: column; gap: 10px; max-height: 360px; overflow-y: auto; scrollbar-width: thin; }
.dc-cat h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--dim2); margin-bottom: 4px; }
.dc-cat ul { list-style: none; }
.dc-cat li { padding: 3px 0; font-size: 13px; color: #fff; }
.dc-cat li small { display: block; margin-left: 18px; font-size: 11.5px; color: var(--dim2); }
.dc-mk { display: inline-block; width: 18px; color: #b8acff; font-weight: 700; }
.shell .step code, .faq code { font-family: ui-monospace, Consolas, monospace; font-size: 12px; background: rgba(0,0,0,.3); padding: 1px 6px; border-radius: 5px; }

/* ---- Stilwater page ---- */
.sw-now .dc-stats { margin-top: 0; }
.sw-act { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.sw-act .mcstat { margin: 0 auto 0 0; }
.sw-now .hint { margin-top: 10px; font-size: 12px; color: var(--dim2); }

@media (max-width: 760px) {
  .dc-grid { grid-template-columns: 1fr; }
  .dc-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dc-stats b { font-size: 18px; }
}

/* ==========================================================================
   compact v2: tighter type, bars and spacing everywhere (overrides above)
   ========================================================================== */
body { font-size: 13px; }
.shell { gap: 8px; padding: 8px 10px 0; grid-template-columns: 158px minmax(0, 1fr) 196px; }
.shell .spacer { height: 10px; }
.bt { min-height: 23px; padding: 3px 9px; font-size: 11px; }
.bb { padding: 8px 10px; font-size: 12.5px; }
.bb p + p { margin-top: 6px; }
.box { border-radius: 6px; }

.banner { gap: 11px; padding: 8px 12px 0; }
.bn-logo { width: 46px; height: 46px; border-radius: 6px; }
.bn-text { padding-bottom: 7px; }
.bn-word { font-size: clamp(28px, 3.8vw, 42px); }
.bn-sub { margin-top: 3px; font-size: 11px; }
.strip { margin: 0 -12px; padding: 4px 0; font-size: 10.5px; }

nav.side-nav, aside.side-r { gap: 8px; top: 8px; }
.side-nav .links { padding: 4px; gap: 1px; }
.side-nav .sec { font-size: 9.5px; padding: 6px 4px 1px; }
.side-nav .links a { padding: 3px 8px; font-size: 12.5px; }
.note { padding: 10px 11px 9px; font-size: 11.5px; margin-top: 2px; }
.note ul { gap: 2px; }

.side-r .bb { font-size: 12px; }
.status-line { font-size: 12.5px; }
.status-when { margin-top: 3px; }
.updates { max-height: 180px; gap: 7px; }
.np { gap: 8px; }
.np button { width: 28px; height: 28px; border-radius: 5px; }
.np button svg { width: 14px; height: 14px; }
.counter span { font-size: 15px; width: 19px; padding: 2px 0; }
.counter-sub { margin-top: 5px; }

.shell .pagehead { margin-bottom: 8px; border-radius: 6px; }
.shell .pagehead .ph-in { gap: 11px; padding: 8px 12px; }
.shell .pagehead h1 { font-size: clamp(19px, 2.8vw, 23px); }
.shell .pagehead p { font-size: 12.5px; }
.shell .pagehead .ph-ico svg { width: 26px; height: 26px; }
.shell .crumbs { margin-bottom: 7px; }
.shell .eyebrow { font-size: 11px; margin-bottom: 6px; }
.shell .h2 { font-size: clamp(17px, 2.6vw, 21px); }

.shell .lineup, .shell .grid { gap: 8px; }
.shell .proj { padding: 0 11px 10px; border-radius: 6px; }
.shell .proj .kind { margin: 0 -11px 8px; padding: 4px 10px; font-size: 10.5px; }
.shell .proj h3 { font-size: 14.5px; }
.shell .proj p { font-size: 12.5px; }
.shell .proj .ico svg { width: 24px; height: 24px; }
.shell .proj .go { margin-top: 8px; }
.shell .proj .join, .shell .proj .mcstat { margin-top: 8px; }
.shell .proj .act { margin-top: 9px; }
.shell .card { padding: 10px 12px; border-radius: 6px; }
.shell .card h3 { font-size: 14.5px; }
.shell .card p { font-size: 12.5px; }
.shell .card .ico svg { width: 24px; height: 24px; }
.shell .steps { gap: 6px; }
.shell .step { padding: 8px 12px; }
.shell .faq { gap: 5px; }
.shell .faq details { padding: 8px 12px; }
.shell .tool { padding: 12px; }
.shell .drop { min-height: 110px; padding: 14px; }

.home-grid { gap: 8px; }
.shell .welcome .bb { padding: 9px 11px; gap: 12px; font-size: 12.5px; }
.welcome h1 { font-size: 18px; margin-bottom: 5px; }
.welcome .stamp { width: 70px; height: 70px; border-radius: 6px; }
.rows { gap: 0; }
.shell .rows a, .shell .rows .r { padding: 5px 2px; }
.rows b { font-size: 13px; }
.rows small { font-size: 11.5px; }
.gb-cta .big { font-size: 18px; }
.gb-cta .cta { padding: 8px 14px; }

.dc-hero .bb { padding: 10px; }
.dc-icon { width: 52px; height: 52px; border-radius: 7px; }
.dc-id h2 { font-size: 18px; }
.dc-stats { gap: 6px; margin-top: 9px; }
.dc-stats > div { padding: 7px 10px; }
.dc-stats b { font-size: 19px; }
.dc-grid { gap: 8px; margin-top: 8px; }
.cmds li { padding: 4px 0; font-size: 12px; }
.sw-act { margin-top: 9px; }

.shell > footer { padding: 8px 0 14px; }

@media (max-width: 1100px) {
  .shell, .shell.wide { grid-template-columns: 170px minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .shell, .shell.wide { grid-template-columns: minmax(0, 1fr); padding: 8px 8px 0; }
  .bn-logo { width: 42px; height: 42px; }
  .bn-word { font-size: 28px; }
  .banner { padding: 8px 10px 0; }
  .strip { margin: 0 -10px; }
}

/* ---- footer ad wall: real 2006-09 ad gifs ---- */
.gifwall { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 0 0 12px; padding: 10px; border-radius: 6px;
  background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.12); }
.gifwall img { display: block; height: 84px; width: auto; max-width: 100%; object-fit: contain; border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 4px 12px rgba(0,0,0,.35); transition: transform .15s ease, box-shadow .15s ease; }
.gifwall img:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(184,172,255,.7), 0 6px 18px rgba(139,124,247,.45); }
@media (max-width: 760px) { .gifwall img { height: 62px; } }

/* ---- scattered ad gifs (placed by hoq.js) ---- */
.gif-spot { display: flex; justify-content: center; }
.gif-spot img { display: block; max-width: 100%; height: auto; border: 1px solid rgba(255,255,255,.22); box-shadow: 0 4px 14px rgba(0,0,0,.4); }
.gif-in { margin: 2px 0 12px; }
.gif-side img { width: 100%; }
.side-nav .gif-side { margin: 6px 4px 0; }
@media (max-width: 760px) { .side-nav .gif-side { display: none; } }

/* ==========================================================================
   compact v3: denser still, smaller corners
   ========================================================================== */
body { font-size: 12.5px; }
.shell { max-width: 1140px; gap: 7px; padding: 7px 8px 0; grid-template-columns: 150px minmax(0, 1fr) 188px; }
.shell .spacer { height: 8px; }
.bt { min-height: 20px; padding: 2px 8px; font-size: 10.5px; }
.bb { padding: 6px 9px; font-size: 12px; }
.bb p + p { margin-top: 5px; }

.banner { gap: 10px; padding: 6px 10px 0; }
.bn-logo { width: 40px; height: 40px; }
.bn-text { padding-bottom: 5px; }
.bn-word { font-size: clamp(26px, 3.3vw, 36px); }
.bn-sub { margin-top: 1px; font-size: 10.5px; }
.strip { margin: 0 -10px; padding: 3px 0; font-size: 10px; }

nav.side-nav, aside.side-r { gap: 7px; top: 7px; }
.side-nav .links { padding: 3px; gap: 0; }
.side-nav .sec { font-size: 9px; padding: 5px 4px 0; }
.side-nav .links a { padding: 2px 7px; font-size: 12px; }
.note { padding: 8px 10px 7px; font-size: 11px; }
.note::before { top: -7px; height: 13px; }

.side-r .bb { font-size: 11.5px; }
.status-line { font-size: 12px; }
.updates { max-height: 160px; gap: 5px; }
.np button { width: 24px; height: 24px; }
.np button svg { width: 12px; height: 12px; }
.counter span { font-size: 13.5px; width: 17px; padding: 1px 0; }

.shell .pagehead { margin-bottom: 7px; }
.shell .pagehead .ph-in { gap: 9px; padding: 6px 10px; }
.shell .pagehead h1 { font-size: clamp(17px, 2.4vw, 20px); }
.shell .pagehead p { font-size: 12px; }
.shell .pagehead .ph-ico svg { width: 22px; height: 22px; }
.shell .crumbs { margin-bottom: 5px; font-size: 10.5px; }
.shell .eyebrow { font-size: 10.5px; margin-bottom: 5px; }

.shell .lineup, .shell .grid { gap: 7px; }
.shell .lineup { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.shell .grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.shell .proj { padding: 0 9px 8px; }
.shell .proj .kind { margin: 0 -9px 6px; padding: 3px 9px; font-size: 10px; }
.shell .proj h3, .shell .card h3 { font-size: 13.5px; }
.shell .proj p, .shell .card p { font-size: 12px; }
.shell .proj .ico svg, .shell .card .ico svg { width: 20px; height: 20px; }
.shell .proj .go { margin-top: 6px; }
.shell .proj .join, .shell .proj .mcstat { margin-top: 6px; }
.shell .proj .act { margin-top: 7px; }
.shell .card { padding: 8px 10px; }
.shell .steps { gap: 5px; }
.shell .step { padding: 6px 10px; }
.shell .faq { gap: 4px; }
.shell .faq details { padding: 6px 10px; }
.shell .tool { padding: 10px; }

.home-grid { gap: 7px; }
.shell .welcome .bb { padding: 7px 9px; gap: 10px; font-size: 12px; }
.welcome h1 { font-size: 16.5px; margin-bottom: 4px; }
.welcome .stamp { width: 56px; height: 56px; }
.shell .rows a, .shell .rows .r { padding: 4px 2px; }
.rows b { font-size: 12.5px; }
.rows small { font-size: 11px; }
.gb-cta .big { font-size: 16px; }

.dc-hero .bb { padding: 8px; }
.dc-icon { width: 44px; height: 44px; }
.dc-id h2 { font-size: 16px; }
.dc-stats > div { padding: 5px 9px; }
.dc-stats b { font-size: 17px; }
.cmds li { padding: 3px 0; font-size: 11.5px; }

.gifwall { padding: 8px; gap: 6px; margin-bottom: 10px; }
.gifwall img { height: 72px; }
.gif-in { margin: 0 0 8px; }
.shell > footer { padding: 6px 0 12px; }

@media (max-width: 1100px) { .shell, .shell.wide { grid-template-columns: 160px minmax(0, 1fr); } }
@media (max-width: 760px) {
  .shell, .shell.wide { grid-template-columns: minmax(0, 1fr); padding: 6px 6px 0; }
  .gifwall img { height: 56px; }
}

/* ---- skyline in the header: tilted back in 3D, blended into the glass ---- */
.banner > .bn-sky { position: absolute; z-index: 0; right: 7%; bottom: 0; top: 0; width: min(46%, 440px);
  perspective: 520px; perspective-origin: 70% 40%; pointer-events: none; }
.bn-sky img { position: absolute; right: 0; bottom: -2px; height: 104%; width: auto; max-width: none;
  mix-blend-mode: screen; opacity: .95; transform-origin: 85% 100%;
  transform: rotateY(-26deg) rotateX(8deg) translateZ(0);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 90%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 90%, transparent 100%);
  filter: saturate(1.25) brightness(1.1) drop-shadow(0 0 10px rgba(139,124,247,.55));
  animation: skysway 14s ease-in-out infinite alternate; }
.bn-sky::after { content: ""; position: absolute; right: 4%; left: 30%; bottom: 20px; height: 8px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(150,140,255,.55), transparent); filter: blur(3px); }
@keyframes skysway {
  from { transform: rotateY(-30deg) rotateX(8deg) translateZ(0); }
  to   { transform: rotateY(-18deg) rotateX(5deg) translateZ(14px); }
}
@media (prefers-reduced-motion: reduce) { .bn-sky img { animation: none; } }
@media (max-width: 760px) { .banner > .bn-sky { width: 62%; right: -6%; opacity: .55; } }

/* nav scrolls with the page now (old-web style), so the stacked ads never get cut off */
nav.side-nav { position: static; }
.side-nav .gif-side + .gif-side, .side-r .gif-side + .gif-side { margin-top: 0; }

.home-grid > .gif-in { margin: 0; }
.gifwall img[hidden] { display: none; }

/* ---- social hub ---- */
.soc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.soc-card .bb { display: flex; flex-direction: column; gap: 8px; height: 100%; }
.soc-card .bt .mcstat, .soc-card .bt-r { margin: 0; font-size: 10px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.soc-card .dc-stats { margin-top: 0; }
.soc-list { list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--dim); }
.soc-list li { display: flex; gap: 7px; align-items: flex-start; }
.soc-list li > span { flex: none; color: #b8acff; }
.soc-list svg { width: 14px; height: 14px; margin-top: 1px; }
.soc-list code { font-family: ui-monospace, Consolas, monospace; font-size: 11px; color: #d9d2ff; }
.soc-bot { margin: 0; }
.soc-bot img { width: 28px; height: 28px; }
.soc-bot b { font-size: 12.5px; }
.soc-act { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; margin-top: auto; }
.gb-sign { display: flex; gap: 10px; align-items: center; }
.gb-sign h2 { font-size: 16px; font-weight: 800; color: #fff; }
.gb-sign p { font-size: 12px; color: var(--dim); }
.gb-quill { flex: none; width: 44px; height: 44px; border-radius: 7px; display: grid; place-items: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #d9d2ff; }
.gb-quill svg { width: 22px; height: 22px; }
.gb-latest { padding: 7px 9px; border-radius: 5px; background: rgba(0,0,0,.25); border: 1px dashed rgba(255,255,255,.2); }
.gb-latest-h { font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--dim2); margin-bottom: 3px; }
.gb-latest-msg { font-size: 12.5px; color: #fff; font-style: italic; }
.gb-latest-msg span { font-style: normal; color: var(--dim2); font-size: 11px; }
@media (max-width: 760px) { .soc-grid { grid-template-columns: 1fr; } }

/* fine-print links (e.g. modder downloads) */
.fineprint { font-size: 10.5px; line-height: 1.5; color: var(--dim2); max-width: 640px; }
.fineprint a { color: var(--dim); text-decoration: underline; text-underline-offset: 2px; }
.fineprint a:hover { color: #fff; }

/* ---- tool usage counters ---- */
.shell .pagehead .ph-stat { margin-left: auto; flex: none; align-self: center; font-size: 11px; color: var(--dim); text-align: right; line-height: 1.15;
  padding: 5px 9px; border-radius: 6px; background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.14); white-space: nowrap; }
.shell .pagehead .ph-stat b { display: block; font-size: 17px; font-weight: 800; color: #fff; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.tstat { display: inline-block; margin-top: 4px; font-size: 10.5px; color: var(--dim); }
.tstat b { color: #fff; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .shell .pagehead .ph-stat { display: none; } }

/* ---- seo landing pages: steps, related links ---- */
.steps { margin: 6px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; color: var(--dim); }
.steps b { color: #fff; }
.prose p { font-size: 12.5px; color: var(--dim); margin: 0 0 6px; }
.prose p:last-child { margin-bottom: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.chips a { display: inline-block; padding: 3px 8px; border-radius: 5px; font-size: 11.5px; font-weight: 600; color: var(--dim); text-decoration: none;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); }
.chips a:hover { color: #fff; background: rgba(255,255,255,.12); }
.chips a[aria-current] { color: #fff; background: rgba(139,124,247,.32); border-color: rgba(184,172,255,.6); }
.seo-faq { margin-top: 8px; }
.block h2.h2 { margin: 0; }
.size-guide { margin: 10px 0 0; max-width: 560px; }
.size-guide img { display: block; width: 100%; height: auto; border-radius: 6px; border: 1px solid rgba(255,255,255,.14); }
.size-guide figcaption { font-size: 11px; color: var(--dim2); margin-top: 4px; }
