/* Maumbauer Enterprises — shared site chrome */
:root {
  --bg: #0a0e14;
  --bg2: #0f1520;
  --card: #121a26;
  --border: #243044;
  --border-gold: #5a4a28;
  --fg: #e8edf5;
  --muted: #8b9bb3;
  --accent: #7ddea8;
  --gold: #f5e6a8;
  --gold-deep: #d4a84a;
  --link: #7ddea8;
  --up: #3ddc84;
  --paypal: #0070ba;
  --venmo: #008cff;
  --bmc: #ffdd00;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  /* Centered, fluid content column */
  --content-max: 1320px;
  --page-pad: clamp(0.75rem, 3vw, 2rem);
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  /* Frames: 25% translucent ⇒ 75% solid fill so flag shows through */
  --frame-alpha: 0.75;
  --card: rgba(18, 26, 38, 0.75);
  --bg2: rgba(15, 21, 32, 0.75);
  --glass-blur: blur(10px);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  background: #0a1a3a;
}

body {
  margin: 0;
  font-family: var(--font);
  /* transparent so fixed flag layer shows through */
  background: transparent !important;
  color: var(--fg);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* —— Waving US flag background (all pages using site.css; not Stacy accounting) —— */
.flag-bg {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #3C3B6E;
}
.flag-bg__wave {
  position: absolute;
  top: -6%;
  left: -4%;
  width: 112%;
  height: 112%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(1.1) contrast(1.05);
  transform-origin: 20% 50%;
  animation: flag-wave 6.5s ease-in-out infinite;
  will-change: transform;
}
/* soft dark veil so translucent frames stay readable; keep flag visible */
.flag-bg__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 10, 16, 0.28) 0%, rgba(6, 10, 16, 0.38) 55%, rgba(6, 10, 16, 0.48) 100%);
}
@keyframes flag-wave {
  0%, 100% {
    transform: perspective(800px) rotateY(-3deg) skewY(0.5deg) scale(1.08) translate3d(0, 0, 0);
  }
  33% {
    transform: perspective(800px) rotateY(2.2deg) skewY(-0.7deg) scale(1.1) translate3d(1.2%, 0.4%, 0);
  }
  66% {
    transform: perspective(800px) rotateY(3deg) skewY(0.45deg) scale(1.09) translate3d(-0.8%, -0.3%, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .flag-bg__wave {
    animation: none;
    transform: scale(1.08);
  }
}

/* Content stacks above the fixed flag (z-index -1) */
.site-top,
.donate-frame,
.hub-wrap,
.site-foot,
main {
  position: relative;
  z-index: 1;
}

/* Shared glass/translucent frame treatment */
.glass-frame {
  background: var(--card) !important;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

/* —— Side QR sliders (Truth Social left, X right) —— */
.qr-slider {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 48;
  display: flex;
  align-items: stretch;
  pointer-events: none;
}
.qr-slider--left {
  left: 0;
  flex-direction: row;
}
.qr-slider--right {
  right: 0;
  flex-direction: row-reverse;
}
.qr-slider__tab,
.qr-slider__panel {
  pointer-events: auto;
}
.qr-slider__tab {
  appearance: none;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(10, 14, 22, 0.88);
  color: #e8edf5;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 0.35rem;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  font-family: system-ui, "Segoe UI", sans-serif;
}
.qr-slider--left .qr-slider__tab {
  border-left: none;
  border-radius: 0 10px 10px 0;
}
.qr-slider--right .qr-slider__tab {
  border-right: none;
  border-radius: 10px 0 0 10px;
  transform: rotate(180deg);
}
.qr-slider--left .qr-slider__tab {
  background: linear-gradient(180deg, rgba(40, 30, 20, 0.92), rgba(12, 14, 20, 0.9));
  border-color: rgba(245, 194, 107, 0.35);
  color: #f5e6a8;
}
.qr-slider--right .qr-slider__tab {
  background: linear-gradient(180deg, rgba(20, 24, 32, 0.92), rgba(8, 10, 14, 0.9));
  border-color: rgba(120, 180, 255, 0.4);
  color: #9ec8ff;
}
.qr-slider__tab:hover {
  filter: brightness(1.08);
}
.qr-slider.is-open .qr-slider__tab {
  box-shadow: 0 0 0 1px rgba(125, 222, 168, 0.35);
}
.qr-slider__panel {
  width: 0;
  overflow: hidden;
  opacity: 0;
  transition: width 0.22s ease, opacity 0.18s ease, padding 0.22s ease;
  background: rgba(10, 14, 22, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.qr-slider--left .qr-slider__panel {
  border-left: none;
  border-radius: 0 12px 12px 0;
}
.qr-slider--right .qr-slider__panel {
  border-right: none;
  border-radius: 12px 0 0 12px;
}
.qr-slider.is-open .qr-slider__panel {
  width: 11.5rem;
  opacity: 1;
  padding: 0.75rem;
}
.qr-slider:not(.is-open) .qr-slider__panel {
  width: 0;
  padding: 0;
  border-color: transparent;
  opacity: 0;
  overflow: hidden;
}
.qr-slider__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none !important;
  color: inherit;
  min-width: 9.5rem;
}
.qr-slider__link img {
  width: 9.5rem;
  height: 9.5rem;
  display: block;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.qr-slider__caption {
  font-size: 0.7rem;
  font-weight: 700;
  color: #e8edf5;
  text-align: center;
  word-break: break-all;
}
.qr-slider__link:hover .qr-slider__caption {
  color: #7ddea8;
}
@media (max-width: 640px) {
  .qr-slider__tab {
    font-size: 0.62rem;
    padding: 0.65rem 0.28rem;
  }
  .qr-slider.is-open .qr-slider__panel {
    width: 9.75rem;
    padding: 0.55rem;
  }
  .qr-slider__link {
    min-width: 8rem;
  }
  .qr-slider__link img {
    width: 8rem;
    height: 8rem;
  }
}
@media (max-width: 420px) {
  /* keep tabs only; still usable */
  .qr-slider {
    top: auto;
    bottom: 4.5rem;
    transform: none;
  }
  .qr-slider--left { bottom: 7.5rem; }
}

/* —— Home music control: overlays header, does not shift brand/nav —— */
.site-top {
  overflow: visible;
}
.music-header-wrap {
  /* Anchor at same spot as original player (bottom of header) — RWB hangs below */
  position: absolute;
  right: max(0.4rem, env(safe-area-inset-right, 0px));
  bottom: 0.2rem;
  z-index: 45;
  display: block;
  pointer-events: auto;
  max-width: min(42vw, 220px);
  width: max-content;
}
.music-header {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  width: 100%;
  max-width: min(42vw, 220px);
  padding: 0.15rem 0.3rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(8, 12, 20, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  font-family: system-ui, "Segoe UI", sans-serif;
  line-height: 1;
  position: relative;
  z-index: 1;
}
.music-header button {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(28, 36, 48, 0.95);
  color: #fff;
  border-radius: 5px;
  height: 1.35rem;
  min-width: 2.1rem;
  padding: 0 0.28rem;
  font-size: 0.58rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
}
.music-header button:hover {
  border-color: rgba(125, 222, 168, 0.5);
}
.music-header-title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.58rem;
  font-weight: 650;
  color: #f2f5fa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 7.5rem;
}
.music-header input[type="range"] {
  width: 3rem;
  flex-shrink: 0;
  height: 0.3rem;
  accent-color: #7ddea8;
  padding: 0;
  margin: 0;
}
.music-header audio {
  display: none;
}
/* RWB play under player — hangs below header, does not push player up */
.music-play-rwb {
  appearance: none;
  position: absolute;
  top: calc(100% + 0.28rem);
  left: 50%;
  transform: translateX(-50%);
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  border: 2px solid #fff;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  line-height: 1;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  background:
    linear-gradient(180deg, #3C3B6E 0%, #3C3B6E 33%, #FFFFFF 33%, #FFFFFF 66%, #B22234 66%, #B22234 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.25),
    0 3px 12px rgba(0, 0, 0, 0.35);
  transition: transform 0.12s, filter 0.12s, box-shadow 0.12s;
  z-index: 46;
}
.music-play-rwb:hover {
  transform: translateX(-50%) scale(1.06);
  filter: brightness(1.06);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.35),
    0 4px 16px rgba(0, 0, 0, 0.4);
}
.music-play-rwb:active {
  transform: translateX(-50%) scale(0.97);
}
.music-play-rwb.is-playing {
  box-shadow:
    0 0 0 2px rgba(125, 222, 168, 0.55),
    0 3px 14px rgba(0, 0, 0, 0.4);
}
@media (max-width: 720px) {
  .music-header-wrap {
    max-width: min(48vw, 160px);
    right: 0.25rem;
  }
  .music-header {
    max-width: min(48vw, 160px);
  }
  .music-header-title { max-width: 4.2rem; }
  .music-header input[type="range"] { width: 2.2rem; }
  .music-play-rwb {
    width: 2.1rem;
    height: 2.1rem;
    font-size: 0.85rem;
  }
}

/* Shared centered shell used across pages */
.site-shell,
.hub-wrap,
.site-top-inner,
.donate-frame-inner,
.site-foot {
  width: 100%;
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
  box-sizing: border-box;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* —— Top bar —— */
.site-top {
  background: linear-gradient(180deg, rgba(20, 26, 36, 0.75) 0%, rgba(12, 16, 24, 0.75) 100%);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  width: 100%;
}

.site-top-inner {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  text-decoration: none;
  color: inherit;
}
.brand-lockup:hover { text-decoration: none; color: inherit; }

.brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #fff;
  line-height: 1.15;
}
.brand-tag {
  font-size: 0.72rem;
  color: var(--gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.15rem;
  align-items: center;
  justify-content: flex-end;
}
@media (max-width: 720px) {
  .site-top-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .site-nav {
    justify-content: center;
  }
  .brand-lockup {
    align-items: center;
  }
}
.site-nav a {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #fff;
  background: rgba(125, 222, 168, 0.12);
  text-decoration: none;
}

/* —— Donate frame (compact height, full width) —— */
.donate-frame {
  width: 100%;
  background: linear-gradient(180deg, rgba(22, 18, 10, 0.75) 0%, rgba(14, 18, 24, 0.75) 100%);
  border-bottom: 1px solid var(--border-gold);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}
.donate-frame-inner {
  padding-top: 0.35rem;
  padding-bottom: 0.4rem;
}
.donate-title {
  margin: 0 0 0.25rem;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.2;
}
.donate-main-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.25rem;
}
.donate-left { min-width: 0; display: flex; align-items: center; gap: 0.45rem; }
.donate-right { min-width: 0; display: flex; align-items: center; gap: 0.45rem; text-align: left; }
.donate-center {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem 0.75rem;
  flex: 1 1 auto;
}
.donate-lbl {
  display: inline;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8a8070;
  margin: 0;
  font-weight: 700;
  white-space: nowrap;
}
.pay-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.35rem;
  max-width: none;
}
.pay-links a {
  display: inline-block;
  text-align: center;
  font-weight: 800;
  font-size: 0.82rem;
  text-decoration: none;
  padding: 0.28rem 0.75rem;
  border-radius: 7px;
  border: 1px solid transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
  color: #fff;
  line-height: 1.2;
}
.pay-links a:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  text-decoration: none;
  color: #fff;
}
.pay-paypal {
  border-color: #005ea6;
  background: linear-gradient(180deg, #3b9eff 0%, #0070ba 55%, #005ea6 100%);
}
.pay-venmo {
  border-color: #0066c2;
  background: linear-gradient(180deg, #3d9eff 0%, #008cff 55%, #0074d9 100%);
}
.bmc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background: var(--bmc);
  color: #0d0d0d !important;
  font-weight: 800;
  font-size: 0.85rem;
  text-decoration: none !important;
  border: 1px solid #e6c200;
  box-shadow: 0 2px 10px rgba(255, 221, 0, 0.28);
  transition: transform 0.15s, box-shadow 0.15s;
  line-height: 1.2;
  white-space: nowrap;
}
.bmc-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 221, 0, 0.45);
  color: #0d0d0d !important;
}
.xmoney-inline {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  background: linear-gradient(160deg, #1a160c 0%, #10141c 100%);
  padding: 0.15rem 0.5rem 0.15rem 0.2rem;
}
.xmoney-inline .x-title {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 800;
  color: #e8edf5;
  line-height: 1.15;
}
.xmoney-inline .x-title em {
  font-style: normal;
  color: #ffdd00;
}
.xmoney-inline .qr-hint {
  margin: 0;
  font-size: 0.58rem;
  color: var(--muted);
  line-height: 1.1;
}
.xmoney-inline a.qr-link {
  display: inline-block;
  line-height: 0;
  flex-shrink: 0;
  border: 1px solid #e6c200;
  border-radius: 5px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.15s;
}
.xmoney-inline a.qr-link:hover { transform: scale(1.04); }
.xmoney-inline a.qr-link img {
  display: block;
  width: 36px;
  height: 36px;
}
.donate-crypto-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.68rem;
  line-height: 1.25;
  text-align: left;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.85rem;
}
.donate-crypto-list li { margin: 0; color: #c8d4e8; }
.donate-crypto-list .coin {
  color: #e8edf5;
  font-weight: 700;
  margin-right: 0.25rem;
}
.donate-crypto-list .addr {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.62rem;
  color: #9fd4b8;
  word-break: break-all;
}

@media (max-width: 900px) {
  .donate-main-row {
    flex-direction: column;
    align-items: center;
  }
  .donate-left, .donate-right, .donate-center {
    justify-content: center;
    width: 100%;
  }
  .donate-crypto-list {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    text-align: center;
  }
}
@media (max-width: 560px) {
  .pay-links {
    width: 100%;
    justify-content: center;
  }
  .pay-links a { flex: 1 1 auto; min-width: 7rem; }
}

/* —— Hub / main content (centered column) —— */
.hub-wrap {
  flex: 1 0 auto;
  padding-top: 1.25rem;
  padding-bottom: 2.5rem;
}

.hero {
  text-align: center;
  padding: 1.75rem 1rem 1.5rem;
  margin: 0 0 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(212, 168, 74, 0.12), transparent 55%),
    linear-gradient(165deg, rgba(18, 24, 32, 0.75) 0%, rgba(10, 16, 24, 0.75) 100%);
  box-shadow: var(--shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}
.hero h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.75rem, 4.5vw, 2.55rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
}
.hero .llc {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.hero .lede {
  margin: 0 auto;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 1.25rem;
}
.hero-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  margin-top: 0.85rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.2rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none !important;
  border: 1px solid var(--border);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s, filter 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(180deg, #2a5a40 0%, #1a3a28 100%);
  border-color: #3a7a50;
  color: #c8f0d8 !important;
  box-shadow: 0 4px 16px rgba(61, 220, 132, 0.15);
}
.btn-secondary {
  background: #151c28;
  color: var(--fg) !important;
}
/* Donate CTA — blue face, soft blue flash every 15s */
a.btn.btn-donate,
.btn.btn-donate {
  background: linear-gradient(180deg, #3b9eff 0%, #1a6fd4 55%, #0d5bb8 100%) !important;
  border-color: rgba(90, 170, 255, 0.75) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  text-shadow: 0 1px 2px rgba(0, 40, 90, 0.45);
  box-shadow:
    0 0 0 1px rgba(40, 120, 220, 0.35),
    0 0 12px rgba(50, 140, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  animation: donate-flash 15s ease-in-out infinite;
}
a.btn.btn-donate:hover,
.btn.btn-donate:hover {
  background: linear-gradient(180deg, #5cb0ff 0%, #2a80e0 55%, #1568c4 100%) !important;
  border-color: rgba(140, 200, 255, 0.9) !important;
  color: #ffffff !important;
  box-shadow:
    0 0 0 1px rgba(80, 160, 255, 0.5),
    0 0 18px rgba(60, 150, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
@keyframes donate-flash {
  0%,
  90%,
  100% {
    border-color: rgba(90, 170, 255, 0.75);
    box-shadow:
      0 0 0 1px rgba(40, 120, 220, 0.35),
      0 0 12px rgba(50, 140, 255, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
  93% {
    border-color: rgba(180, 220, 255, 0.95);
    box-shadow:
      0 0 0 2px rgba(100, 180, 255, 0.55),
      0 0 20px rgba(80, 170, 255, 0.55),
      0 0 32px rgba(40, 120, 255, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.35);
  }
  96% {
    border-color: rgba(90, 170, 255, 0.75);
    box-shadow:
      0 0 0 1px rgba(40, 120, 220, 0.35),
      0 0 12px rgba(50, 140, 255, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
}
@media (prefers-reduced-motion: reduce) {
  a.btn.btn-donate,
  .btn.btn-donate {
    animation: none;
  }
}
.btn-gold {
  background: linear-gradient(180deg, #3a3020 0%, #241c10 100%);
  border-color: var(--border-gold);
  color: var(--gold) !important;
}
/* BUILD-pattern face button (same visual family as build-tools-thumb) */
a.btn.btn-build,
.btn.btn-build {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 3.1rem;
  min-width: min(100%, 17rem);
  padding: 0.15rem 0.2rem !important;
  border: 2px solid #3ddc84 !important;
  border-radius: 12px !important;
  background: #0a100c !important;
  color: #e8fff2 !important;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.65),
    0 0 22px rgba(61, 220, 132, 0.28),
    inset 0 1px 0 rgba(184, 255, 212, 0.12) !important;
  text-decoration: none !important;
}
a.btn.btn-build .btn-build-face,
.btn.btn-build .btn-build-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: 0;
  opacity: 0.95;
}
a.btn.btn-build .btn-build-label,
.btn.btn-build .btn-build-label {
  position: relative;
  z-index: 1;
  display: block;
  padding: 0.7rem 1.15rem;
  font-weight: 800 !important;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: #e8fff2 !important;
  text-shadow:
    0 0 10px rgba(0, 0, 0, 0.9),
    0 0 14px rgba(61, 220, 132, 0.55),
    0 1px 2px rgba(0, 0, 0, 1);
  background: linear-gradient(
    90deg,
    rgba(4, 10, 8, 0.15) 0%,
    rgba(4, 12, 10, 0.55) 40%,
    rgba(4, 12, 10, 0.55) 60%,
    rgba(4, 10, 8, 0.15) 100%
  );
  border-radius: 8px;
}
a.btn.btn-build:hover,
.btn.btn-build:hover {
  border-color: #9ff0c0 !important;
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(125, 222, 168, 0.45),
    0 0 34px rgba(61, 220, 132, 0.42),
    0 8px 22px rgba(0, 0, 0, 0.35) !important;
  filter: brightness(1.06);
  color: #fff !important;
}
a.btn.btn-build:hover .btn-build-label {
  color: #ffffff !important;
}

/* Dest-card variant for Projects hub — BUILD art */
.dest-card.dest-card-grok {
  border: 2px solid rgba(61, 220, 132, 0.65) !important;
  background:
    radial-gradient(ellipse 100% 70% at 50% 100%, rgba(61, 220, 132, 0.16), transparent 55%),
    linear-gradient(165deg, rgba(16, 22, 28, 0.88) 0%, rgba(6, 8, 12, 0.9) 100%) !important;
  box-shadow:
    0 0 24px rgba(61, 220, 132, 0.2),
    inset 0 1px 0 rgba(125, 222, 168, 0.12);
}
.dest-card.dest-card-grok:hover {
  border-color: #7ddea8 !important;
  box-shadow:
    0 0 36px rgba(61, 220, 132, 0.35),
    0 10px 32px rgba(0, 0, 0, 0.4);
}
.dest-card.dest-card-grok .go {
  color: #7ddea8 !important;
  text-shadow: 0 0 10px rgba(61, 220, 132, 0.45);
}
.dest-card.dest-card-grok h2 {
  color: #c8ffe0 !important;
  letter-spacing: 0.03em;
}
.btn-yt {
  background: linear-gradient(180deg, #e04a3a 0%, #c4302b 100%);
  border-color: #a82820;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(196, 48, 43, 0.3);
}
.btn-yt:hover { filter: brightness(1.06); color: #fff !important; }
.btn-tt {
  background: linear-gradient(135deg, #25f4ee 0%, #121212 45%, #fe2c55 100%);
  border-color: #333;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(254, 44, 85, 0.28);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
.btn-tt:hover { filter: brightness(1.08); color: #fff !important; }

.section-h {
  margin: 1.75rem 0 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-align: center;
}

/* Destination cards — centered rows (incomplete rows stay centered, not left-heavy) */
.dest-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
  width: 100%;
}
.dest-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 1rem;
  width: 100%;
}
.dest-row .dest-card {
  flex: 0 1 220px;
  width: min(100%, 240px);
  max-width: 260px;
  min-width: min(100%, 170px);
}
.dest-card {
  display: flex;
  flex-direction: column;
  background: rgba(18, 26, 38, 0.75);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none !important;
  color: inherit;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
  min-height: 100%;
}
.dest-card:hover {
  transform: translateY(-3px);
  border-color: #3a5a48;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
  text-decoration: none;
  color: inherit;
}
.dest-card .thumb {
  aspect-ratio: 16 / 10;
  background: #080c12;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.dest-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dest-card .thumb.contain img {
  object-fit: contain;
  padding: 0.75rem;
}
.dest-card .thumb.monogram {
  background: linear-gradient(145deg, #1e3a5f 0%, #2c6e9e 100%);
}
.dest-card .mono-mark {
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.dest-body {
  padding: 0.9rem 1rem 1.05rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.dest-body h2 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}
.dest-body p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.45;
  flex: 1;
}
.dest-body .go {
  margin-top: 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
}

.dest-card.featured {
  border-color: #3a6a8a;
  background: linear-gradient(165deg, rgba(20, 32, 48, 0.75) 0%, rgba(18, 26, 38, 0.75) 100%);
}
.dest-card.stacy {
  border-color: #2a4a6a;
}

/* About strip */
.about-strip {
  margin: 1.75rem auto 0;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(15, 21, 32, 0.75);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  max-width: 52rem;
  text-align: center;
}
.about-strip h2 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: #fff;
}
.about-strip p {
  margin: 0.4rem auto;
  color: #c8d4e8;
  font-size: 0.95rem;
  max-width: 42rem;
}
.about-strip ul {
  margin: 0.5rem auto 0;
  padding-left: 0;
  list-style-position: inside;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 40rem;
  text-align: left;
}
.about-strip li { margin: 0.3rem 0; }

/* Footer */
.site-foot {
  flex-shrink: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 1.25rem var(--page-pad) 2rem;
  text-align: center;
  color: #c8d0d8;
  font-size: 0.82rem;
  border-top: 1px solid var(--border);
  background: rgba(10, 14, 20, 0.75);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}
.site-foot > * {
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
}
.site-foot a {
  color: #9fd4b8;
  font-weight: 600;
  text-decoration: none;
}
.site-foot a:hover { text-decoration: underline; }
.site-foot .sep { color: #4a5a6a; margin: 0 0.4rem; }
.site-foot .legal {
  margin-top: 0.65rem;
  font-size: 0.75rem;
  color: #4a5568;
  line-height: 1.45;
}

/* Downloads page body offset when shared chrome used */
.dl-page-body {
  /* existing download styles remain in downloads.php inline */
}

/* —— Novels / book shelf (spread full frame width) —— */
.novels-frame {
  margin: 0 auto 1.75rem;
  padding: 1.25rem clamp(0.75rem, 2vw, 1.25rem) 1.4rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 2px solid #5a4a28;
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 70% 80% at 10% 0%, rgba(245, 194, 107, 0.14), transparent 50%),
    radial-gradient(ellipse 50% 60% at 90% 100%, rgba(125, 222, 168, 0.06), transparent 45%),
    linear-gradient(165deg, rgba(26, 22, 14, 0.75) 0%, rgba(14, 18, 24, 0.75) 55%, rgba(16, 24, 32, 0.75) 100%);
  box-shadow: 0 0 0 1px rgba(245, 230, 168, 0.08), 0 16px 48px rgba(0, 0, 0, 0.45);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  text-align: center;
}
.novels-frame-head {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
  text-align: center;
}
.novels-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-deep);
}
.novels-frame h2,
.novels-hero h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
}
.novels-frame-sub {
  margin: 0 auto;
  max-width: 40rem;
  font-size: 0.92rem;
  color: #c8d4e8;
  line-height: 1.45;
}
.novels-exclude {
  color: var(--muted);
  font-size: 0.85rem;
}
.novels-frame-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.novels-hero {
  text-align: center;
  padding: 1.5rem 1rem 1.25rem;
  margin: 0 0 1.25rem;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(212, 168, 74, 0.16), transparent 55%),
    linear-gradient(165deg, rgba(22, 18, 10, 0.75) 0%, rgba(10, 16, 24, 0.75) 100%);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}
.novels-lede {
  margin: 0.5rem auto 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}
.novels-lede a { font-weight: 600; }

/* Book shelves — wrap + center so partial rows are balanced */
.book-shelf {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 0.85rem 1rem;
  width: 100%;
}
.book-shelf-home,
.book-shelf-page {
  gap: 1rem 1.15rem;
}
.book-shelf-standalone {
  gap: 0.85rem 1rem;
}
.book-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none !important;
  color: inherit;
  border-radius: 8px;
  transition: transform 0.18s, filter 0.18s;
  flex: 0 0 auto;
  width: clamp(100px, 14vw, 150px);
  max-width: 160px;
  min-width: 0;
}
.book-card:hover {
  transform: translateY(-3px) scale(1.03);
  filter: brightness(1.06);
  text-decoration: none;
  color: inherit;
}
.book-cover-wrap {
  display: block;
  width: 100%;
  max-width: 140px;
  margin: 0 auto;
  aspect-ratio: 2 / 3;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #3a3428;
  background: #080c10;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(245, 230, 168, 0.12);
}
.book-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.book-cover-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 1.25rem;
  background: linear-gradient(145deg, #2a2418, #121820);
  color: var(--gold);
}
.book-title {
  display: -webkit-box;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
  color: #e8edf5;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  width: 100%;
}
.book-asin {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.58rem;
  color: var(--muted);
  font-family: ui-monospace, Consolas, monospace;
}
.empty-books {
  margin: 0.5rem auto 0;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}
.dest-card.novels-dest {
  border-color: #6a5428;
  background: linear-gradient(165deg, #1e1810 0%, #121a26 100%);
}

/* Series subframes inside novels frame */
.series-subframe {
  margin-top: 0.85rem;
  padding: 0.9rem 1rem 1.05rem;
  border: 1px solid #4a3e28;
  border-radius: 12px;
  background: rgba(8, 12, 16, 0.75);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  text-align: center;
}
.series-subframe + .series-subframe {
  margin-top: 1rem;
}
.series-subframe-title {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.04em;
  text-align: center;
}
.series-subframe-note {
  margin: 0 auto 0.85rem;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  text-align: center;
}
.series-subframe-standalone {
  border-color: #2a3a5a;
  background: rgba(10, 16, 28, 0.75);
}
.series-subframe-standalone .series-subframe-title {
  color: #9ec8ff;
}
.series-subframe-standalone .series-subframe-note {
  margin-bottom: 0.85rem;
}
.series-subframe-articles {
  border-color: #3a4a2a;
  background: rgba(12, 18, 12, 0.75);
}
.series-subframe-articles .series-subframe-title {
  color: #b8e0a0;
}
.series-subframe-articles .series-subframe-note a {
  color: var(--accent);
  font-weight: 700;
}
/* Substack thumb beside X article shelf — keep 16:10 */
.articles-with-substack {
  display: grid;
  grid-template-columns: minmax(150px, 200px) minmax(0, 1fr);
  gap: 0.85rem 1rem;
  align-items: start;
  width: 100%;
}
.articles-main {
  min-width: 0;
}
.substack-thumb-card {
  display: block;
  width: 100%;
  margin: 0;
  text-decoration: none !important;
  color: inherit;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #5a3a20;
  background: rgba(10, 12, 16, 0.75);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  flex-shrink: 0;
}
.substack-thumb-card:hover {
  transform: translateY(-2px);
  border-color: #ff6719;
  box-shadow: 0 8px 24px rgba(255, 103, 25, 0.2);
  text-decoration: none;
  color: inherit;
}
.substack-thumb-card img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.substack-thumb-card .ss-label {
  display: block;
  padding: 0.4rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #ffb080;
  background: rgba(20, 12, 8, 0.95);
  text-align: center;
  letter-spacing: 0.02em;
}
@media (max-width: 720px) {
  .articles-with-substack {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .substack-thumb-card {
    max-width: 240px;
  }
  .articles-main {
    width: 100%;
  }
}
.standalone-split {
  display: grid;
  grid-template-columns: minmax(160px, 0.9fr) minmax(280px, 1.6fr);
  gap: 1rem;
  margin-top: 0.85rem;
  align-items: stretch;
  width: 100%;
}
.standalone-split > .series-subframe {
  margin-top: 0;
  min-width: 0;
}
.series-subframe-head {
  margin-bottom: 0.65rem;
}
.articles-more {
  margin: 0.85rem 0 0;
  text-align: center;
}
.article-shelf {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 0.75rem 0.85rem;
  width: 100%;
}
.article-card {
  flex: 0 1 160px;
  width: min(100%, 180px);
  max-width: 200px;
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  color: inherit;
  min-width: 0;
  border-radius: 8px;
  transition: transform 0.15s, filter 0.15s;
}
.article-card:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  text-decoration: none;
  color: inherit;
}
.article-thumb-wrap {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 2;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #3a4a2a;
  background: #080c10;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.article-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-thumb-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 0.85rem;
  font-weight: 700;
  color: #9fd4b8;
  background: linear-gradient(145deg, #1a2a18, #101820);
}
.article-card-title {
  display: -webkit-box;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
  color: #e8edf5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: left;
}
@media (max-width: 900px) {
  .standalone-split {
    grid-template-columns: 1fr;
  }
}
.book-short {
  display: inline-block;
  margin-top: 0.3rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-deep);
  background: rgba(212, 168, 74, 0.12);
  border: 1px solid #4a3e28;
  border-radius: 4px;
  padding: 0.08rem 0.3rem;
}

/* Responsive: stack fewer columns on narrow viewports */
@media (max-width: 1100px) {
  .book-shelf-home,
  .book-shelf-page {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .book-card { max-width: 150px; }
  .book-cover-wrap { max-width: 130px; }
}
@media (max-width: 640px) {
  .book-shelf-home,
  .book-shelf-page {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .book-card { max-width: 140px; }
  .book-cover-wrap { max-width: 120px; }
}
