/* -------------------------------------------------------------
   Arkheim Winter - UI tokens + base + components + utilities
   Scalable, themable, accessible. A coder's cozy blanket.
   ------------------------------------------------------------- */

@layer base, components, utilities;

/* ----------------------- TOKENS ----------------------- */
@layer base {
  :root {
    /* Color system */
    --bg:        #0c0f14;
    --bg-soft:   #121722;
    --panel:     #141b29;
    --text:      #e6edf3;
    --muted:     #a9b2c0;
    --muted-y:   #bca16b;
    --dim:       var(--text-dim);
    --text-strong: rgba(255,255,255,0.92);
    --text-main: rgba(255,255,255,0.78);
    --text-dim: rgba(255,255,255,0.6);
    --text-soft-accent: rgba(180,200,230,0.85);
    --gold-ui: #C6A96A;
    --gold-ui-muted: color-mix(in srgb, var(--gold-ui) 48%, #000);
    --gold-ui-line: color-mix(in srgb, var(--gold-ui) 12%, transparent);
    --gold-ui-hover: color-mix(in srgb, var(--gold-ui) 88%, white);
    --gold-ui-glow: color-mix(in srgb, var(--gold-ui) 16%, transparent);
    --gold-ui-faint: color-mix(in srgb, var(--gold-ui) 2%, transparent);
    --gold-ui-text-hover: color-mix(in srgb, var(--gold-ui) 82%, white);
    --proof-divider: var(--gold-ui-line);
    --brand:     #84acd2; /* winter blue */
    --brand-2: rgba(90,170,221,.35); /* aurora violet */
    --accent:    #94f9d2; /* mint */
    --danger:    #ff6b6b;

    --logo: 30px;

    /* Surfaces & borders */
    --surface: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
    --surface-strong: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
    --border: rgba(255,255,255,0.06);
    --border-strong: rgba(255,255,255,.12);

    /* Effects */
    --shadow: 0 10px 30px rgba(0,0,0,0.35);
    --radius: 8px;
    --blur: 6px;

    /* Typography */
    --font-sans: system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,"Helvetica Neue",Arial,"Apple Color Emoji","Segoe UI Emoji";
    --font-mono: ui-monospace,"Crimson Pro",SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;

    /* Rhythm */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --content-width: 1100px;

    /* Shared page-header typography */
    --page-head-kicker-font: var(--font-mono);
    --page-head-kicker-size: 11px;
    --page-head-kicker-color: #6f88a1;
    --page-head-title-font: Georgia, "Times New Roman", serif;
    --page-head-title-size: clamp(44px, 6vw, 66px);
    --page-head-title-size-mobile: clamp(36px, 10vw, 56px);
    --page-head-title-color: var(--text, #e6eefc);
    --page-head-thin-font: inherit;
    --page-head-thin-size: inherit;
    --page-head-thin-color: #bca16b;
    --page-head-copy-font: inherit;
    --page-head-copy-size: 12px;
    --page-head-copy-color: #8097ad;

    /* Motion */
    --ease: cubic-bezier(.2,.7,.2,1);
    --dur-1: 120ms;
    --dur-2: 220ms;

    /* Misc */
    --dot-size: 10px;
    --ring: 0 0 0 3px rgba(116,192,255,.35);

    /* brand files */
    --brand-mark-img-1x: url('/assets/img/brand/aw_mark_120.png');
    --brand-mark-img-2x: url('/assets/img/brand/aw_mark_240.png');
    --brand-mark-bg-fallback: #0c0f14; /* shows while image loads/fails */
  }

  /* Privileged/staff/login guards: hidden by default */
  .admin-only,
  .privileged-only,
  .staff-only { display: none !important; }
  .admin-login { display: none !important; }

  /* Show the Admin login button when ?admin=1 (main.js sets html.admin-granted) */
  html.admin-granted .admin-login { display: inline-flex !important; }

  /* Compatibility for legacy hooks plus clearer principal-based hooks. */
  html[data-admin="1"] .admin-only { display: block !important; }
  html[data-auth="authed"][data-admin="1"] .admin-only { display: block !important; }
  html[data-auth="authed"][data-privileged="1"] .privileged-only { display: block !important; }
  html[data-auth="authed"][data-staff="1"] .staff-only { display: block !important; }

  @media (prefers-reduced-motion: reduce) {
    :root { --dur-1: 0ms; --dur-2: 0ms; --ease: linear; }
  }

  /* ----------------------- BASE ----------------------- */
  * { box-sizing: border-box; }
  /* Let the page grow and ensure a base color always fills */
  html { background-color: var(--bg); min-height: 100%; }
  body {
    margin: 0;
    /* Ensure at least one viewport tall, but allow growth */
    min-height: 100vh;   /* fallback */
    min-height: 100svh;  /* small viewport unit */
    min-height: 100dvh;  /* dynamic viewport (best on modern mobile) */
    background: var(--bg);
    display: flex;
    flex-direction: column;
    color: var(--text);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
    isolation: isolate;
  }
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
      radial-gradient(900px 500px at 60% 10%, rgba(70, 110, 180, 0.08), transparent 70%),
      radial-gradient(1000px 600px at 50% 80%, rgba(40, 80, 140, 0.05), transparent 75%),
      linear-gradient(180deg, #050911 0%, #04070e 100%);
    pointer-events: none;
    z-index: -1;
  }
  .page-city-layer {
    --city-layer-opacity: .9;
    position: fixed;
    left: 0;
    top: 54px;
    bottom: 0;
    width: 100vw;
    height: calc(100svh - 54px);
    transform: none;
    opacity: var(--city-layer-opacity);
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    filter: saturate(.98) brightness(.84);
    isolation: isolate;
    background:
      radial-gradient(1200px 620px at 50% 16%, rgba(111, 155, 202, .16), transparent 70%),
      linear-gradient(180deg, rgba(3, 7, 14, .04) 0%, rgba(3, 7, 14, .12) 28%, rgba(3, 7, 14, .38) 72%, rgba(3, 7, 14, .72) 100%);
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.995) 0%, rgba(0,0,0,.985) 68%, rgba(0,0,0,.9) 84%, rgba(0,0,0,.46) 95%, transparent 100%);
    mask-image: linear-gradient(180deg, rgba(0,0,0,.995) 0%, rgba(0,0,0,.985) 68%, rgba(0,0,0,.9) 84%, rgba(0,0,0,.46) 95%, transparent 100%);
    transition: opacity 180ms linear;
  }
  .page-city-layer::before,
  .page-city-layer::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
  }
  .page-city-layer::before {
    background:
      linear-gradient(180deg, rgba(5, 8, 13, 0) 0%, rgba(5, 8, 13, .08) 32%, rgba(5, 8, 13, .28) 70%, rgba(5, 8, 13, .58) 100%);
    z-index: 1;
  }
  .page-city-layer::after {
    display: none;
  }
  .page-city-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    pointer-events: none;
    z-index: 0;
    filter: saturate(1.06) contrast(1.08) brightness(.96);
  }
  .page-city-layer.is-fading {
    filter: none;
  }
  .page-city-layer.is-fading .page-city-video {
    filter: saturate(1.06) contrast(1.08) brightness(.96);
  }
  .page-city-layer.is-static .page-city-video {
    transform: none !important;
  }
  #news[data-page="news"] .updates-page-kicker,
  #wikiPage[data-page="wiki"] .wiki-page-kicker,
  #contactPage[data-page="contact"] .contact-page-kicker,
  .account-page-kicker,
  .status-page-kicker {
    display: inline-block;
    color: var(--page-head-kicker-color);
    font-family: var(--page-head-kicker-font);
    font-size: var(--page-head-kicker-size);
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }

  #news[data-page="news"] .updates-page-title,
  #wikiPage[data-page="wiki"] .wiki-page-title,
  #contactPage[data-page="contact"] .contact-page-title,
  .account-page-title,
  .status-page-title {
    margin: 10px 0 0;
    color: var(--page-head-title-color);
    font-family: var(--page-head-title-font);
    font-size: var(--page-head-title-size);
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: -0.03em;
  }

  #news[data-page="news"] .updates-page-title .thin,
  #wikiPage[data-page="wiki"] .wiki-page-title .thin,
  #contactPage[data-page="contact"] .contact-page-title .thin,
  .account-page-title .thin,
  .status-page-title .thin {
    font-family: var(--page-head-thin-font);
    font-size: var(--page-head-thin-size);
    font-weight: 300;
    font-style: italic;
    color: var(--page-head-thin-color);
  }

  #news[data-page="news"] .updates-page-copy,
  #wikiPage[data-page="wiki"] .wiki-page-copy,
  #contactPage[data-page="contact"] .contact-page-copy,
  .account-page-copy,
  .status-page-copy {
    margin: 14px 0 0;
    color: var(--page-head-copy-color);
    font-family: var(--page-head-copy-font);
    font-size: var(--page-head-copy-size);
    line-height: 1.9;
  }

  @media (max-width: 760px) {
    #news[data-page="news"] .updates-page-title,
    #wikiPage[data-page="wiki"] .wiki-page-title,
    #contactPage[data-page="contact"] .contact-page-title,
    .account-page-title,
    .status-page-title {
      font-size: var(--page-head-title-size-mobile);
    }
  }
  .page-city-layer.is-fading::before,
  .page-city-layer.is-fading::after {
    mix-blend-mode: normal !important;
  }
  .page-city-layer.is-fading::before {
    opacity: .06;
  }
  .page-city-layer.is-fading::after {
    opacity: .18;
  }
  .page-rain-layer {
    --rain-opacity: .35;
    position: fixed;
    inset: 54px 0 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    overflow: hidden;
    mix-blend-mode: screen;
    animation: rain-presence 210s ease-in-out infinite;
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.16) 0%, rgba(0,0,0,.52) 18%, rgba(0,0,0,.86) 48%, rgba(0,0,0,.74) 82%, rgba(0,0,0,.3) 100%);
    mask-image: linear-gradient(180deg, rgba(0,0,0,.16) 0%, rgba(0,0,0,.52) 18%, rgba(0,0,0,.86) 48%, rgba(0,0,0,.74) 82%, rgba(0,0,0,.3) 100%);
  }
  .page-rain-layer > .rain {
    position: absolute;
    inset: 0;
    pointer-events: none;
  }
  .page-rain-layer > .rain.back-row {
    bottom: 0;
    opacity: .62;
  }
  .page-rain-layer .drop {
    position: absolute;
    bottom: 100%;
    width: 15px;
    height: 124px;
    pointer-events: none;
    animation: rain-drop-fall linear infinite;
  }
  .page-rain-layer .stem {
    width: 1px;
    height: 60%;
    margin-left: 7px;
    background: linear-gradient(180deg, rgba(255,255,255,0), rgba(214,228,255,.28));
    box-shadow: 0 0 4px rgba(206, 223, 255, .1);
    animation: rain-stem-fade linear infinite;
  }
  html:not(.home-scene-ready) .page-city-layer,
  html:not(.home-scene-ready) .page-rain-layer {
    opacity: 0 !important;
  }

  html.home-scene-ready .page-city-layer,
  html.home-scene-ready .page-rain-layer {
    transition: opacity 260ms ease;
  }

  .page-city-layer,
  .page-rain-layer,
  .page-city-video {
    transform: translateZ(0);
    contain: paint;
  }

  @media (prefers-reduced-motion: reduce) {
    .page-city-layer,
    .page-city-layer::before,
    .page-city-layer::after,
    .page-city-video,
    .page-rain-layer,
    .page-rain-layer .drop,
    .page-rain-layer .stem {
      animation: none !important;
      transition: none !important;
      filter: none !important;
      mix-blend-mode: normal !important;
    }
    .page-rain-layer { opacity: 0 !important; }
  }

  .low-graphics .page-city-layer,
  .low-graphics .page-city-layer::before,
  .low-graphics .page-city-layer::after,
  .low-graphics .page-city-video,
  .low-graphics .page-rain-layer,
  .low-graphics .page-rain-layer .drop,
  .low-graphics .page-rain-layer .stem {
    animation: none !important;
    transition: none !important;
    filter: none !important;
    mix-blend-mode: normal !important;
  }
  .low-graphics .page-rain-layer { opacity: 0 !important; }
  @media (max-width: 899px) {
    .page-city-layer {
      top: 48px;
      bottom: 0;
      width: 100vw;
      height: calc(100svh - 48px);
    }
    .page-city-video {
      object-position: 56% top;
    }
    .page-rain-layer {
      inset: 48px 0 0;
      --rain-opacity: .13;
    }
  }
  @media (min-width: 1200px) {
    .page-city-layer {
      --city-layer-opacity: .93;
      filter: saturate(1.02) brightness(.88);
    }
    .page-city-video {
      object-position: center 6%;
    }
  }
  @keyframes rain-drop-fall {
    0% { transform: translateY(0vh); }
    75% { transform: translateY(90vh); }
    100% { transform: translateY(90vh); }
  }
  @keyframes rain-presence {
    0%, 12% { opacity: 0; }
    18%, 30% { opacity: var(--rain-opacity); }
    36%, 100% { opacity: 0; }
  }
  @keyframes rain-stem-fade {
    0% { opacity: 1; }
    65% { opacity: 1; }
    75% { opacity: 0; }
    100% { opacity: 0; }
  }
  @media (prefers-reduced-motion: reduce) {
    .page-rain-layer,
    .page-rain-layer .drop,
    .page-rain-layer .stem {
      animation: none;
    }
  }
  body > * {
    position: relative;
    z-index: 1;
  }
  main { flex: 1 0 auto; }
  footer.footer { margin-top: auto; }

  .footer { padding-top: 16px; }
  :where(body) > footer.footer { margin-top: auto; }

  /* (optional) iOS Safari quirk fallback */
  @supports (-webkit-touch-callout: none) {
    html, body { height: -webkit-fill-available; }
    body { min-height: -webkit-fill-available; }
  }

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

  :focus-visible {
    outline: none;
    box-shadow: var(--ring);
    border-radius: 10px;
  }

  /* Headings & text */
  h1 { font-size: clamp(28px, 6vw, 48px); margin: 0 0 12px; }
  h1.logo { font-size: clamp(30px, 6vw, 64px); letter-spacing: 1px; margin: 0 0 10px; }
  h2 { font-size: clamp(22px,2.8vw,30px); margin: 0 0 10px; }
  h3 { font-size: clamp(18px,2.2vw,22px); margin: 0 0 6px; }
  p  { margin: 8px 0 1px; color: var(--muted); }
  ul { margin: 0; padding-left: 18px; color: var(--muted); }

  /* Mono + code */
  .mono { font-family: var(--font-mono); }
  code, pre { font-family: var(--font-mono); }

  /* Helpers */
  .wrap { width: 100%; max-width: var(--content-width); margin-inline: auto; padding: var(--space-6); padding-top: 0; }
  .status-wrap { width: 100%; max-width: var(--content-width); margin-inline: auto; padding: var(--space-6); }

  .section { padding-block: 48px; }

  .ascii { white-space: pre; color: #c8d4e7; font-weight: 600; line-height: 1.1; }

  .visually-hidden {
    position: absolute !important; clip: rect(1px,1px,1px,1px);
    padding: 0 !important; border: 0 !important; height: 1px !important; width: 1px !important; overflow: hidden;
  }
}

/* ----------------------- COMPONENTS ----------------------- */
@layer components {
  /* Hero / header */
  .hero { padding-bottom: 36px; display: grid; gap: 24px; align-items: center; }
  @media (min-width: 900px) { .hero { grid-template-columns: minmax(0, 1.35fr) minmax(320px, .85fr); gap: 32px; } }
  .hero-home {
    align-items: center;
    position: relative;
    padding-top: 64px;
    padding-bottom: 72px;
    background: transparent;
    overflow: visible;
  }
  .hero-home + .section {
    position: relative;
    margin-top: 0;
    padding-top: clamp(72px, 12svh, 140px);
  }
  .hero-home::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -30%;
    width: 112vw;
    height: 220%;
    transform: translateX(-50%);
    background:
      radial-gradient(1320px 520px at 66% 14%, rgba(74,124,188,.045), transparent 72%),
      radial-gradient(900px 260px at 24% 22%, rgba(128, 162, 204, .018), transparent 74%);
    opacity: .024;
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 0;
  }
  .hero-home::after {
    content: "";
    position: absolute;
    left: 50%;
    top: -34%;
    width: 112vw;
    height: 176%;
    transform: translateX(-50%);
    background:
      radial-gradient(980px 340px at 88% 18%, rgba(198,169,106,.12), transparent 70%),
      radial-gradient(700px 300px at 86% 70%, rgba(186,214,242,.05), transparent 72%),
      radial-gradient(700px 280px at 14% 74%, rgba(82,126,184,.028), transparent 72%),
      linear-gradient(180deg, rgba(14,19,28,.14) 0%, rgba(14,19,28,.06) 34%, rgba(14,19,28,0) 100%);
    filter: blur(68px);
    opacity: .28;
    pointer-events: none;
    z-index: 0;
  }
  .hero-home > .hero-copy::before {
    content: "";
    position: absolute;
    inset: -28% -18% -34% -24%;
    background:
      radial-gradient(760px 220px at 22% 48%, rgba(74,124,188,.024), transparent 72%);
    filter: blur(44px);
    opacity: .28;
    pointer-events: none;
    z-index: -1;
  }
  .hero-home > .hero-copy::after {
    content: "";
    position: absolute;
    inset: -40% -28% -44% -34%;
    background:
      radial-gradient(960px 220px at 12% 12%, rgba(74,124,188,.018), transparent 70%);
    filter: blur(52px);
    opacity: .2;
    pointer-events: none;
    z-index: -1;
  }
  .hero-home + .section::before {
    content: "";
    position: absolute;
    inset: -320px -22% auto;
    height: 680px;
    background:
      radial-gradient(1100px 420px at 16% 18%, rgba(82,126,184,.012), transparent 76%),
      radial-gradient(1100px 420px at 86% 22%, rgba(82,126,184,.01), transparent 76%);
    filter: blur(110px);
    opacity: .12;
    pointer-events: none;
    z-index: 0;
  }
  .hero-home > * {
    position: relative;
    z-index: 1;
  }
  .home-scroll-cue {
    position: absolute;
    left: 50%;
    bottom: -14px;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(225, 235, 246, .68);
    opacity: var(--scroll-cue-opacity, 0);
    cursor: pointer;
    transition: opacity 220ms cubic-bezier(.2,.6,.2,1);
    pointer-events: auto;
    animation: home-scroll-cue-float 1.6s ease-in-out infinite;
  }
  .home-scroll-cue[hidden] {
    display: none !important;
  }
  .home-scroll-cue-mark {
    width: 15px;
    height: 15px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
  }
  @media (hover:hover) and (pointer:fine) {
    .home-scroll-cue:hover {
      color: rgba(233, 239, 248, .88);
    }
  }
  @media (min-width: 900px) {
    .home-scroll-cue {
      bottom: -70px;
      width: 52px;
      height: 52px;
      color: rgba(225, 235, 246, .58);
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .home-scroll-cue,
    .home-scroll-cue-mark {
      transition: none;
      animation: none;
    }
  }
  .home-kicker {
    display: inline-block;
    margin-bottom: 16px;
    font-size: 10px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: #7fa6c9;
    font-family: var(--font-mono);
  }
  .logo-home {
    max-width: 8ch;
    letter-spacing: -2px;
    font-size: clamp(56px, 10vw, 104px);
    line-height: .92;
    font-weight: 400;
    font-family: Georgia, "Times New Roman", serif;
    color: var(--text-strong);
    margin-bottom: 8px;
  }
  .logo-home .thin {
    color: var(--text-strong);
    font-style: italic;
  }
  .home-subtitle {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: clamp(18px, 2.1vw, 24px);
    line-height: 1.45;
    color: var(--text-soft-accent);
    font-style: italic;
    font-family: Georgia, "Times New Roman", serif;
  }
  .home-lead-line {
    max-width: 460px;
    margin: 0 0 12px;
    color: var(--text-main);
    font-size: 18px;
    line-height: 1.55;
    letter-spacing: .01em;
    font-family: Georgia, "Times New Roman", serif;
  }
  .home-lede {
    max-width: 520px;
    margin-top: 0;
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.82;
    letter-spacing: .02em;
    font-family: var(--font-mono);
    color: var(--text-dim);
  }
  .home-signal {
    margin-top: 16px;
    margin-bottom: 0;
    font-size: 12px;
    line-height: 1.7;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--text-dim);
  }
  .hero-copy {
    transition: none;
  }
  .entry-flow-shell {
    grid-column: 1 / -1;
    width: 100%;
  }
  .home-status {
    padding: 0;
    background: rgba(10,17,24,.84);
    border-radius: 8px;
    overflow: hidden;
    border-color: rgba(255,255,255,.09);
    box-shadow:
      0 0 0 1px rgba(116,192,252,.08),
      0 18px 44px rgba(0,0,0,.34);
    backdrop-filter: blur(8px);
    margin-top: 6px;
    position: relative;
    isolation: isolate;
  }
  .home-status::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    pointer-events: none;
    background:
      radial-gradient(340px 110px at 88% 8%, color-mix(in srgb, var(--gold-ui) 42%, transparent), transparent 72%),
      linear-gradient(116deg,
        transparent 16%,
        color-mix(in srgb, var(--gold-ui) 52%, transparent) 33%,
        transparent 56%);
    filter: blur(16px);
    opacity: .26;
  }
  .home-status::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow:
      0 0 30px color-mix(in srgb, var(--gold-ui) 10%, transparent),
      0 0 78px rgba(116,192,252,.06);
    opacity: .4;
  }
  .home-status .status-block {
    padding: 11px 20px;
  }
  .home-status .status-block:last-child { border-bottom: 0; }
  .home-status .status-block h3 {
    font-size: 10px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--dim);
    font-family: var(--font-mono);
  }
  .home-status .status-block:not(:first-child) h3 {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .home-status .status-block:not(:first-child) h3::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: rgba(255,255,255,.08);
  }
  .home-status-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .home-status-head .status-block h3 {
    margin-bottom: 0;
  }
  .home-status-head h3 {
    margin-bottom: 0;
  }
  .home-status-head h3::after {
    content: none;
  }
  .home-status-line {
    margin: 0;
    text-align: right;
    flex-shrink: 0;
  }
  .home-status .mono {
    font-size: 13px;
    line-height: 1.7;
  }
  .home-status-connect {
    display: grid;
    gap: 7px;
  }
  .home-status-connect-row {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
  }
  .home-status-connect-key {
    color: #6f87a2;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 10px;
  }
  .home-status-copy {
    color: #d5e2ee;
  }
  .home-status-copy .entry-copy-hint {
    opacity: 0;
  }
  .home-status-presence {
    margin-top: 7px;
    color: #9ac4e5;
    font-size: 11px;
    letter-spacing: .06em;
    font-size: 10px !important;
  }
  .home-status-log-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    margin-bottom: 6px;
  }
  .home-status-log-head::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: rgba(255,255,255,.08);
  }
  .home-status-log-label {
    flex: 0 0 auto;
    color: #7d93a8;
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: 9px;
  }
  .home-status-console {
    margin-top: 10px;
    padding: 7px 10px;
    border: 1px solid rgba(116,192,252,.08);
    border-radius: 6px;
    background:
      linear-gradient(180deg, rgba(7,12,18,.34), rgba(5,9,14,.22)),
      repeating-linear-gradient(180deg, rgba(255,255,255,.008) 0 1px, transparent 1px 20px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
    min-height: 33px;
    opacity: .52;
    transition: opacity 180ms ease, background 180ms ease, border-color 180ms ease;
  }
  .home-status-console:hover,
  .home-status-console:focus-within {
    opacity: .96;
    border-color: rgba(116,192,252,.14);
    background:
      linear-gradient(180deg, rgba(7,12,18,.76), rgba(5,9,14,.62)),
      repeating-linear-gradient(180deg, rgba(255,255,255,.012) 0 1px, transparent 1px 20px);
  }
  .home-status-console-log {
    max-height: 33px;
    overflow-y: auto;
    padding-right: 2px;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
  }
  .home-status-console:hover .home-status-console-log,
  .home-status-console:focus-within .home-status-console-log {
    scrollbar-color: rgba(120,183,236,.4) transparent;
  }
  .home-status-console-line {
    margin: 0 0 4px;
    display: grid;
    grid-template-columns: 34px 46px minmax(0, 1fr);
    gap: 5px;
    align-items: start;
    color: #a9bfd2;
    font-size: 10px;
    line-height: 1.45;
    letter-spacing: .04em;
  }
  .home-status-console-line:last-child {
    margin-bottom: 0;
  }
  .console-time {
    display: inline-block;
    color: rgba(169,191,210,.56);
    font-size: 9px;
    letter-spacing: .08em;
  }
  .console-tag {
    display: inline-block;
    color: #78b7ec;
    font-size: 9px;
    letter-spacing: .16em;
  }
  .console-message {
    min-width: 0;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .home-status-console-log::-webkit-scrollbar {
    width: 6px;
  }
  .home-status-console-log::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 999px;
  }
  .home-status-console:hover .home-status-console-log::-webkit-scrollbar-thumb,
  .home-status-console:focus-within .home-status-console-log::-webkit-scrollbar-thumb {
    background: rgba(120,183,236,.4);
    border-radius: 999px;
  }
  .home-status-console-log::-webkit-scrollbar-track {
    background: transparent;
  }
  .home-status-console:hover .home-status-console-log::-webkit-scrollbar-track,
  .home-status-console:focus-within .home-status-console-log::-webkit-scrollbar-track {
    background: transparent;
  }
  .proof-strip {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--proof-divider);
  }
  .entry-flow-shell {
    max-height: var(--entry-flow-max-height, 0px);
    opacity: 0;
    overflow: hidden;
    transform: translateY(-8px);
    overflow-anchor: none;
    transition:
      max-height 440ms cubic-bezier(.22,.7,.18,1),
      opacity 280ms cubic-bezier(.2,.6,.2,1),
      transform 320ms cubic-bezier(.2,.6,.2,1),
      margin-top 320ms cubic-bezier(.2,.6,.2,1);
    margin-top: 0;
    pointer-events: none;
  }
  .hero-home[data-state="expanded"] .entry-flow-shell {
    opacity: 1;
    transform: translateY(0);
    margin-top: 12px;
    pointer-events: auto;
  }
  .entry-flow {
    border: 0;
    border-radius: 0;
    width: 100%;
  }
  .entry-flow-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
  }
  .entry-flow-head {
    margin-bottom: 8px;
  }
  .entry-flow-close {
    flex-shrink: 0;
    margin-top: 4px;
    padding: 8px 0;
    border: 0;
    background: transparent;
    color: #7f97ad;
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
    cursor: pointer;
  }
  @media (hover:hover) and (pointer:fine) {
    .entry-flow-close:hover {
      color: #c3d5e6;
    }
  }
  .entry-flow-intro {
    margin-top: 6px;
    color: #91a7bc;
    font-size: 13px;
    line-height: 1.7;
    font-family: var(--font-mono);
  }
  .entry-flow-grid {
    --entry-label-width: 280px;
    --entry-support-width: 380px;
    --entry-action-width: 280px;
    --entry-direct-overhang: 40px;
    --entry-row-gap-x: 28px;
    --entry-row-gap-y: 14px;
    --entry-row-padding-y: 18px;
    --entry-row-min-height: 116px;
    --entry-divider-color: rgba(255,255,255,.08);
    --entry-label-color: #7fa6c9;
    --entry-secondary-label-color: #8aa8c4;
    --entry-utility-label-color: #7288a0;
    --entry-title-primary-color: #f1f6fb;
    --entry-title-utility-color: #d9e4ef;
    --entry-support-color: #c6a96a;
    --entry-support-primary-color: var(--entry-support-color);
    --entry-support-secondary-color: var(--entry-support-color);
    --entry-support-utility-color: var(--entry-support-color);
    --entry-utility-meta-color: #879bb0;
    --entry-utility-key-color: #70859c;
    --entry-utility-value-color: #c0cedc;
    --entry-utility-copy-gap: 6px;
    --entry-direct-label-width: 34px;
    --entry-secondary-btn-border: rgba(255,255,255,.1);
    --entry-secondary-btn-opacity: .9;
    display: grid;
    gap: 0;
    border-top: 1px solid var(--entry-divider-color);
  }
  @media (max-width: 899px) {
    .entry-flow-top {
      flex-direction: column;
      align-items: flex-start;
    }
  }
  .entry-option {
    display: grid;
    gap: var(--entry-row-gap-y) var(--entry-row-gap-x);
    min-width: 0;
    padding: var(--entry-row-padding-y) 0;
    border-bottom: 1px solid var(--entry-divider-color);
    min-height: var(--entry-row-min-height);
    opacity: 0;
    transform: translateY(6px);
    transition:
      opacity 220ms cubic-bezier(.2,.6,.2,1),
      transform 220ms cubic-bezier(.2,.6,.2,1),
      border-color 220ms cubic-bezier(.2,.6,.2,1);
  }
  .entry-option-method {
    display: grid;
    gap: 4px;
    min-width: 0;
  }
  .entry-option:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }
  .hero-home[data-state="expanded"] .entry-option {
    opacity: 1;
    transform: translateY(0);
  }
  .hero-home[data-state="expanded"] .entry-option:nth-child(1) {
    transition-delay: 0ms;
  }
  .hero-home[data-state="expanded"] .entry-option:nth-child(2) {
    transition-delay: 40ms;
  }
  .hero-home[data-state="expanded"] .entry-option:nth-child(3) {
    transition-delay: 80ms;
  }
  @media (min-width: 900px) {
    .entry-option {
      grid-template-columns:
        minmax(220px, var(--entry-label-width))
        minmax(240px, var(--entry-support-width))
        minmax(220px, var(--entry-action-width));
      align-items: center;
      justify-content: space-between;
    }
  }
  .entry-option-label {
    display: inline-block;
    margin-bottom: 2px;
    color: var(--entry-label-color);
    font-size: 10px;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-family: var(--font-mono);
  }
  .entry-option h3 {
    margin: 0;
    color: var(--text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.2;
  }
  .entry-option-support {
    margin: 0;
    color: var(--entry-support-color);
    font-size: 12.5px;
    line-height: 1.75;
    font-family: var(--font-mono);
    max-width: 40ch;
    justify-self: start;
  }
  .entry-option-primary h3 {
    color: var(--entry-title-primary-color);
  }
  .entry-option-primary .entry-option-support {
    color: var(--entry-support-primary-color);
  }
  .entry-option-secondary .entry-option-label {
    color: var(--entry-secondary-label-color);
  }
  .entry-option-utility .entry-option-label,
  .entry-option-utility .entry-option-label {
    color: var(--entry-utility-label-color);
  }
  .entry-option-secondary .entry-option-support {
    color: var(--entry-support-secondary-color);
  }
  .entry-option-utility .entry-option-support {
    color: var(--entry-support-utility-color);
  }
  .entry-option-utility h3 {
    color: var(--entry-title-utility-color);
  }
  .entry-flow-cta {
    display: grid;
    justify-items: end;
    align-content: start;
    margin-top: 0;
    align-self: start;
    justify-self: end;
    width: 100%;
    max-width: var(--entry-action-width);
    min-height: 72px;
  }
  .entry-flow .btn {
    min-width: 0;
    width: 100%;
    justify-content: center;
  }
  .entry-option-primary .entry-flow-cta {
    width: 100%;
  }
  .entry-option-secondary .entry-flow-cta {
    width: 100%;
  }
  .entry-option-secondary .entry-flow-cta > .btn {
    border-color: var(--entry-secondary-btn-border);
    padding-inline: 12px;
  }
  .entry-option-secondary .entry-flow-cta > .btn.ghost {
    opacity: var(--entry-secondary-btn-opacity);
  }
  .entry-direct {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    align-content: center;
    align-self: center;
    justify-self: end;
    gap: 4px;
    width: calc(var(--entry-action-width) + var(--entry-direct-overhang));
    min-height: 72px;
    max-width: none;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 12px;
    line-height: 1.7;
    color: var(--entry-utility-meta-color);
  }
  .entry-direct-row {
    display: grid;
    grid-template-columns: var(--entry-direct-label-width) minmax(0, 1fr);
    align-items: baseline;
    gap: var(--entry-utility-copy-gap);
    width: 100%;
    min-width: 0;
    justify-items: start;
  }
  .entry-direct-row + .entry-direct-row {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }
  .entry-direct-key {
    display: inline-block;
    color: var(--entry-utility-key-color);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 10px;
  }
  .entry-copy-inline {
    display: inline-flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--entry-utility-copy-gap);
    width: 100%;
    min-width: 0;
    padding: 0 0 1px;
    border: 0;
    background: transparent;
    color: var(--entry-utility-value-color);
    font: inherit;
    text-align: left;
    cursor: copy;
    transition: color 160ms cubic-bezier(.2,.6,.2,1);
  }
  .entry-copy-hint {
    opacity: 0;
    color: #7f97ad;
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
    transition: opacity 160ms cubic-bezier(.2,.6,.2,1), color 160ms cubic-bezier(.2,.6,.2,1);
  }
  .entry-copy-inline:hover,
  .entry-copy-inline:focus-visible {
    color: #eef5fb;
  }
  .entry-copy-inline:hover .entry-copy-hint,
  .entry-copy-inline:focus-visible .entry-copy-hint,
  .entry-copy-inline.is-copied .entry-copy-hint {
    opacity: 1;
  }
  .entry-copy-inline.is-copied .entry-copy-hint {
    color: #b9d9f4;
  }
  .entry-copy-note {
    display: block;
    width: 100%;
    margin-top: 0;
    min-height: 1.35em;
    color: #90a8be;
    font-size: 10px;
    line-height: 1.35;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-align: right;
    opacity: 0;
    transition: opacity 280ms cubic-bezier(.2,.6,.2,1);
  }
  .entry-copy-note:empty::before {
    content: ".";
    visibility: hidden;
  }
  .entry-copy-note.is-visible {
    opacity: 1;
  }
  @media (max-width: 899px) {
    .entry-flow-grid {
      --entry-action-width: 100%;
    }
    .entry-option {
      gap: 10px;
      padding: 16px 0;
      min-height: 0;
    }
    .entry-flow-cta,
    .entry-direct {
      justify-self: start;
      max-width: none;
    }
    .entry-direct {
      width: 100%;
      max-width: none;
      align-items: center;
      justify-content: flex-start;
    }
    .entry-option-secondary .entry-flow-cta {
      max-width: 420px;
    }
    .entry-copy-note {
      text-align: left;
    }
    .entry-option-support {
      max-width: 34ch;
    }
  }
  @media (min-width: 900px) {
    .proof-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  }
  .proof-card {
    height: 100%;
    display: block;
    padding: 34px 28px 28px 0;
    background: none;
    border: 0;
    border-right: 1px solid var(--proof-divider);
    border-radius: 0;
  }
  .proof-card:last-child { border-right: 0; padding-right: 0; }
  .proof-card + .proof-card { padding-left: 28px; }
  .proof-label {
    display: inline-block;
    margin-bottom: 16px;
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold-ui-muted);
    font-family: var(--font-mono);
  }
  .proof-card h3 {
    font-size: clamp(20px, 2vw, 24px);
    line-height: 1.18;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    margin-bottom: 12px;
  }
  .proof-card p {
    color: #7f97ad;
    font-size: 12.5px;
    line-height: 1.85;
    font-family: var(--font-mono);
  }
  .proof-card:first-child h3 {
    color: var(--text);
  }
  .home-section-head {
    margin-bottom: 28px;
  }
  .home-section-title {
    font-size: clamp(42px, 5vw, 58px);
    line-height: 1.02;
    letter-spacing: -1px;
    font-weight: 400;
    font-family: Georgia, "Times New Roman", serif;
  }
  .home-section-title .thin {
    font-weight: 300;
    color: var(--muted-y);
  }
  .home-section-title.small {
    font-size: clamp(34px, 4vw, 48px);
    margin-bottom: 26px;
  }
  .home-section-title.updates {
    font-size: clamp(34px, 4vw, 48px);
  }
  .home-section-title.community {
    font-size: clamp(32px, 4vw, 42px);
  }
  .home-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 0;
    overflow: hidden;
    background: rgba(15,20,28,.92);
  }
  .home-split-pane {
    padding: 44px 48px 48px;
    display: flex;
    flex-direction: column;
  }
  .home-split-pane.pane-lore {
    background: rgba(18,24,32,.94);
    border-left: 1px solid rgba(255,255,255,.08);
  }
  .home-entry-grid {
    align-items: stretch;
  }
  .home-entry-title {
    margin-bottom: 32px;
    line-height: 1.2;
    letter-spacing: -.03em;
  }
  .home-entry-title .thin {
    display: block;
    padding-left: clamp(40px, 7vw, 60px);
    color: #69c4f0;
    font-weight: 600;
  }
  .conversion-lead {
    margin: 0 0 18px;
    color: #9fb5c9;
    font-size: 14px;
    line-height: 1.8;
    font-family: var(--font-mono);
  }
  .conversion-lines {
    display: grid;
    gap: 12px;
  }
  .conversion-line {
    margin: 0;
    color: #8ea5ba;
    font-size: 13px;
    line-height: 1.85;
    font-family: var(--font-mono);
  }
  .conversion-line strong {
    color: var(--text);
    font-weight: 600;
  }
  .conversion-bridge {
    margin: 24px 0 0;
    color: #c1dbef;
    font-size: 15px;
    line-height: 1.72;
    letter-spacing: .018em;
    font-family: var(--font-mono);
  }
  .home-entry-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 36px;
    flex: 1;
  }
  .home-entry-step {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 14px;
    align-items: baseline;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .home-entry-step:first-child {
    border-top: 1px solid rgba(255,255,255,.08);
  }
  .home-entry-step-index {
    padding-top: 2px;
    color: var(--gold-ui-muted);
    font-size: 10px;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-family: var(--font-mono);
  }
  .home-entry-step-copy strong {
    display: block;
    margin: 0 0 1px;
    color: #d9e2eb;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 400;
    font-family: var(--font-mono);
  }
  .home-entry-step-copy p {
    margin: 0;
    color: #7f90a4;
    font-size: 12.5px;
    line-height: 1.5;
    font-family: var(--font-mono);
  }
  .steps {
    gap: 0;
  }
  .steps li {
    padding: 16px 0;
    border-top: 1px solid rgba(255,255,255,.08);
    line-height: 1.85 !important;
    font-size: 13px !important;
    list-style-position: inside;
    font-family: var(--font-mono);
  }
  .steps li:first-child { border-top: 0; padding-top: 0; }
  .home-split-cta {
    margin-bottom: 16px;
  }
  .conversion-note {
    margin-top: 0;
    color: #728499;
    font-size: 11px;
    line-height: 1.6;
    letter-spacing: .12em;
    text-transform: none;
  }
  .conversion-secondary {
    margin-top: 4px;
    color: #728499;
    font-size: 11px;
    line-height: 1.7;
    letter-spacing: .04em;
  }
  .lore-quote-wrap {
    margin: 10px 0 10px;
    padding-left: 22px;
    border-left: 2px solid rgba(100,195,240,.88);
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
  }
  .lore-quote {
    margin: 0 0 14px;
    color: #63c0ec;
    font-size: clamp(24px, 3.2vw, 36px);
    line-height: 1.38;
    font-style: italic;
    font-family: Georgia, "Times New Roman", serif;
  }
  .lore-cite {
    margin: 0;
    color: var(--gold-ui-muted);
    font-size: 10px;
    line-height: 1.5;
    letter-spacing: .18em;
    text-transform: uppercase;
  }
  .lore-body {
    margin: 0 0 80px;
    color: #8b9aac;
    font-size: 12.5px;
    line-height: 1.8;
    font-family: var(--font-mono);
  }
  .home-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 0;
    margin-bottom: 28px;
  }
  .home-tag-row .chip {
    text-decoration: none;
    background: transparent;
    border: 1px solid rgba(98,128,164,.32);
    border-radius: 0;
    padding: 5px 25px;
    font-size: 10px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #66788d;
  }
  .home-tag-row .chip:hover {
    border: 1px solid #cbb86b70;
    color: #cbb86b;
  }
  .home-inline-link {
    align-self: flex-start;
    color: #6d7f94;
    text-decoration: none;
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
  }
  .home-inline-link:hover {
    color: var(--text);
  }
  .home-entry-link::after {
    content: " ->";
  }
  .home-split .btn.primary {
    min-width: 0;
    justify-content: flex-start;
    gap: 10px;
    padding: 14px 24px;
    border-color: #2a7fa8;
    background: #2a7fa8;
    color: #e8f6fc;
    box-shadow: none;
    border-radius: 0;
  }
  .home-entry-arrow {
    width: 14px;
    height: 14px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: rotate(45deg);
    flex-shrink: 0;
  }
  @media (max-width: 899px) {
    .home-split { grid-template-columns: 1fr; }
    .home-split-pane {
      padding: 36px 32px 38px;
    }
    .home-split-pane.pane-lore {
      border-left: 0;
      border-top: 1px solid rgba(255,255,255,.08);
    }
    .home-entry-title .thin {
      padding-left: 0;
    }
    .lore-quote-wrap {
      margin-bottom: 28px;
    }
    .lore-body {
      margin-bottom: 34px;
      max-width: none;
    }
    .proof-card,
    .proof-card:last-child {
      border-right: 0;
      padding: 24px 0;
    }
    .proof-card + .proof-card {
      padding-left: 0;
      border-top: 1px solid var(--proof-divider);
    }
  }

  /* Desktop: keep the status card anchored to the top of the hero */
  @media (min-width: 900px) {
    .hero { align-items: start; }                 /* don't vertically center everything */
    .hero > aside.panel { align-self: start; }    /* keep THIS item anchored to the top */
    .hero > aside.panel { justify-self: stretch; }
  }

  /* Mobile: stacked layout - normal flow is fine */
  @media (max-width: 899px) {
    .hero { align-items: start; }
    .hero > aside.panel { align-self: start; }
  }

  .logo { font-weight: 800; font-size: clamp(30px,6vw,74px); letter-spacing: 1px; line-height: 1; }
  .logo .thin { font-weight: 300; color: #bca16b; }

  .lede { font-size: clamp(16px,2.3vw,20px); color: var(--muted); max-width: 60ch; }

  .badge {
    display: inline-flex; gap: 8px; align-items: center;
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(116,192,255,.18), rgba(177,151,252,.18));
    border: 1px solid var(--border);
    backdrop-filter: blur(var(--blur));
  }

  /* badges */
  .badges { display:inline-block; padding:.1rem .4rem; border-radius:.5rem; border:1px solid var(--muted, #a9b2c0); font-size:.75rem; margin-left:.25rem }

  /* new dot */
  .dot.new { display:inline-block; width:.5rem; height:.5rem; border-radius:50%; margin:0 .4rem 0 .2rem; background:var(--accent, #94f9d2) }

  .panel-head { display:flex; align-items:baseline; justify-content:space-between; gap:.75rem }
  .news-intro {
    margin-top: 4px;
    color: var(--muted);
    font-size: 14px;
  }
  .home-updates-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
  }
  .home-updates {
    margin-top: 8px;
  }
  .home-update-list {
    position: relative;
    display: grid;
    gap: 0;
    margin-top: 1.2rem;
    padding-left: 0;
    list-style: none;
  }
  .home-update-list::before {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    margin-bottom: 1.2rem;
    background: linear-gradient(90deg, rgba(255,255,255,.02), rgba(123,193,246,.14), rgba(255,255,255,.02));
  }
  .home-updates-context {
    margin: 10px 0 0;
    color: #7f97ad;
    font-size: 11px;
    line-height: 1.7;
    letter-spacing: .05em;
  }
  .home-update-list li {
    padding: 22px 0 20px;
    border-bottom: 1px solid var(--proof-divider);
  }
  .home-update-list li.loading {
    color: var(--muted);
    font-family: var(--font-mono);
  }
  .home-update-list .news-entry,
  .home-update-list .news-row,
  .home-update-list .news-card,
  .home-update-list .news-item {
    position: relative;
    border: 0;
    background: none;
    padding: 0;
    margin: 0;
    border-radius: 0;
  }
  .home-update-list .news-item::before,
  .home-update-list .entry-actions,
  .home-update-list .date-pill,
  .home-update-list .kind-pill,
  .home-update-list .tags,
  .home-update-list .changes {
    display: none !important;
  }
  .home-update-row {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
    border-radius: 8px;
    transition: background-color 160ms ease;
    padding: 24px 0;
  }
  .home-update-date {
    display: grid;
    gap: 6px;
    align-content: start;
    padding-top: 2px;
    color: #7c8ea4;
    border-left: 1px solid var(--proof-divider);
    padding-left: 16px;
  }
  .home-update-month {
    font-size: 10px;
    letter-spacing: .16em;
    text-transform: uppercase;
  }
  .home-update-day {
    color: var(--text-main);
    font-size: 23px;
    line-height: 1;
    letter-spacing: -.04em;
  }
  .home-update-date.is-relative {
    gap: 6px;
    padding-top: 4px;
  }
  .home-update-date.is-relative .home-update-month {
    color: #9cb3c9;
    font-size: 12px;
    letter-spacing: .14em;
  }
  .home-update-full-date {
    color: #cbb86b;;
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  .home-update-main {
    min-width: 0;
    padding-right: 42px;
    position: relative;
  }
  .home-update-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 0;
  }
  .home-update-expand-indicator {
    position: absolute;
    top: 4px;
    right: 10px;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(142, 190, 233, .16);
    border-radius: 8px;
    background: rgba(11, 17, 25, .42);
    color: #8ea5ba;
    opacity: 0;
    transform: translateY(2px);
    transition: opacity 160ms ease, transform 160ms ease, border-color 160ms ease, color 160ms ease, background-color 160ms ease;
    pointer-events: none;
  }
  .home-update-main.is-expandable {
    cursor: pointer;
  }
  .home-update-main.is-expandable:hover .home-update-expand-indicator,
  .home-update-main.is-expandable:focus-visible .home-update-expand-indicator,
  .home-update-row:hover .home-update-expand-indicator {
    opacity: 1;
    transform: translateY(0);
    border-color: rgba(198,169,106,.24);
    background: rgba(198,169,106,.06);
    color: #cbb86b;
  }
  .home-update-row.is-expanded .home-update-expand-indicator {
    opacity: 1;
    transform: translateY(0);
  }
  .home-update-row.is-expanded .home-update-expand-indicator i {
    transform: rotate(45deg);
  }
  .home-update-expand-indicator i {
    font-size: 10px;
    transition: transform 160ms ease;
  }
  .home-update-main.is-expandable:hover .home-update-title,
  .home-update-row:hover .home-update-title {
    color: #f1f6ff;
  }
  .home-update-main.is-expandable:hover .home-update-summary,
  .home-update-row:hover .home-update-summary {
    color: #95adc3;
  }
  .home-update-main.is-expandable:focus-visible {
    outline: 1px solid rgba(142, 190, 233, .55);
    outline-offset: 8px;
    border-radius: 4px;
  }
  .home-update-title {
    margin: 0;
    color: var(--text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(20px, 2.1vw, 24px);
    font-weight: 400;
    line-height: 1.28;
    max-width: 140ch;
    text-wrap: balance;
  }
  .home-update-pill {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    align-self: center;
    padding: 3px 7px;
    border: 1px solid rgba(198,169,106,.18);
    border-radius: 2px;
    background: rgba(198,169,106,.05);
    color: #8a9eb3;
    font-size: 9px;
    letter-spacing: .12em;
    text-transform: uppercase;
    white-space: nowrap;
  }
  .home-update-summary {
    margin: 8px 0 0;
    color: #7f97ad;
    font-size: 12.5px;
    line-height: 1.8;
    max-width:140ch;
  }
  .home-update-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0 0;
    min-height: 34px;
  }
  .home-update-author-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.03);
    color: #d7b768;
    font-size: 12px;
    font-weight: 700;
    display: grid;
    place-items: center;
  }
  .home-update-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .home-update-author-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
  }
  .home-update-author-name {
    color: #e3ecf5;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
  }
  .home-update-author-title {
    --trust-color: #7a9bb5;
    color: #97adc2;
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
  }
  .home-update-author-title[data-trust] {
    color: var(--trust-color);
  }
  .home-update-author-title[data-trust="member"] {
    --trust-color: #7a9bb5;
  }
  .home-update-author-title[data-trust="hero"] {
    --trust-color: #c0bfbd;
  }
  .home-update-author-title[data-trust="avatar"] {
    --trust-color: #6eb3d4;
  }
  .home-update-author-title[data-trust="angel"] {
    --trust-color: #89cbf0;
  }
  .home-update-author-title[data-trust="demi"] {
    --trust-color: #4db89a;
  }
  .home-update-author-title[data-trust="immortal"] {
    --trust-color: #b8a97a;
  }
  .home-update-author-title[data-trust="god"] {
    --trust-color: #d4a843;
  }
  .home-update-author-title[data-trust="deity"] {
    --trust-color: #d47a3a;
  }
  .home-update-author-title[data-trust="supreme"] {
    --trust-color: #c45e7a;
  }
  .home-update-author-title[data-trust="creator"] {
    --trust-color: #d44a5a;
  }
  .home-update-author-title[data-trust="implementor"] {
    --trust-color: #9b7fd4;
  }
  .home-update-full {
    margin-top: 8px;
  }
  .home-update-full[hidden] {
    display: none !important;
  }
  .home-update-list .home-update-full .entry-highlights {
    display: grid !important;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .home-update-list .home-update-full .entry-highlights li {
    position: relative;
    margin: 0;
    padding: 0 0 0 1rem;
    border: 0;
    color: #8ea5ba;
    font-size: 12.5px;
    line-height: 1.75;
    font-family: var(--font-mono);
  }
  .home-update-list .home-update-full .entry-highlights li::before {
    content: "-";
    position: absolute;
    left: 0;
    top: 0;
    color: rgba(255,255,255,.34);
  }
  .home-update-row.is-expanded .home-update-summary {
    color: #9cb3c9;
  }
  .home-update-list .news-item:hover {
    background: none;
  }
  .home-update-row:hover {
    background: rgba(255,255,255,.018);
  }
  @media (max-width: 720px) {
    .home-update-row {
      grid-template-columns: 1fr;
      gap: 12px;
    }
    .home-update-date {
      grid-auto-flow: row;
      justify-content: start;
      align-items: start;
      gap: 6px;
      padding-left: 0;
      border-left: 0;
    }
    .home-update-title {
      max-width: none;
      text-wrap: pretty;
    }
    .home-update-main {
      padding-right: 30px;
    }
    .home-update-expand-indicator {
      top: 2px;
    }
    .home-update-head {
      gap: 8px;
    }
  }
  .news-tools { display:flex; gap:.5rem }
  .icon-link {
    display:inline-flex; align-items:center; justify-content:center;
    width:2rem; height:2rem; border:1px solid #535353;
    border-radius:.5rem; opacity:.9; transition:opacity .15s, transform .05s;
  }
  .icon-link:hover {
    border:1px solid #c7af40;
    transition:opacity .15s, transform .05s;
    text-decoration: none;
  }
  .icon-link:hover { opacity:1 }
  .icon-link:active { transform:translateY(1px) }
  .icon-link i { font-size:1rem; line-height:1 }

  /* ---------- Carousel ---------- */
 /* Strip panel chrome inside the carousel, but NOT the slides themselves */
.carousel .panel:not(.carousel-slide),
.carousel .panel:not(.carousel-slide)::before,
.carousel .panel:not(.carousel-slide)::after {
  background: none;
  background-image: none;
  box-shadow: none;
  backdrop-filter: none;
  border: none;
  border-radius: 1rem;
  padding: 0; /* let slides control their own padding */
}

  /* Point these to your assets */
  .slide-classic { --bg-img: url("/assets/img/highlights/classic.jpg"); }
  .slide-friends { --bg-img: url("/assets/img/highlights/friends.jpg"); }
  .slide-play    { --bg-img: url("/assets/img/highlights/play.jpg"); }

  /* Carousel slides get their own bg image via --bg-img */
  .carousel .carousel-slide {
    position: relative;
    overflow: hidden;              /* clip radius/overlay */
    border-radius: 1rem;
    padding: 4rem;                 /* your requested padding */
    color: var(--text);
    background: center / cover no-repeat var(--bg-img, none); /* image */
  }

  /* Readability overlay (left-to-right fade) */
  .carousel .carousel-slide::before {
    content: "";
    position: absolute; inset: 0;
    /* tweak the gradient stops to taste */
    background:
      linear-gradient(90deg,
        rgba(12,15,20,.75) 0%,
        rgba(12,15,20,.55) 45%,
        rgba(12,15,20,.25) 75%,
        rgba(12,15,20,0) 100%);
    z-index: 0;
  }

  /* Ensure text sits above the overlay */
  .carousel .carousel-slide > * {
    position: relative;
    z-index: 1;
  }

  .carousel {
    position: relative;
    padding: 0.5rem 0 2.5rem; /* space for dots */
  }

  .carousel-viewport {
    overflow: hidden;
    border-radius: 1rem;
    isolation: isolate;
    transform: translateZ(0);
  }

  .carousel-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    will-change: transform;
    transition: transform 300ms ease;
    touch-action: pan-y;
    backface-visibility: hidden;
  }

  .carousel-slide {
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: inherit;
  }

  /* Nav arrows */
  .carousel-nav {
    position: absolute;
    top: 50%;
    translate: 0 -50%;
    z-index: 2;
    width: 36px;               /* fixed button size prevents layout shift */
    height: 36px;
    padding: 0;                /* icon-only */
    display: grid;
    place-items: center;
    backdrop-filter: blur(4px);
    color: #c7af40 !important;
  }
  .carousel-nav.prev { left: .5rem; }
  .carousel-nav.next { right: .5rem; }

  .carousel-nav i {
    font-size: 18px;
    line-height: 1;
    pointer-events: none;
  }

  .carousel-nav.prev { left: .5rem; }
  .carousel-nav.next { right: .5rem; }

  /* Dots */
  .carousel-dots {
    display: flex;
    gap: .5rem;
    justify-content: center;
    position: absolute;
    left: 0; right: 0; bottom: .5rem;
  }
  .carousel-dots .dot {
    --dot-progress: 0;
    width: 2rem;
    height: .45rem;
    border-radius: 999px;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.14);
    cursor: pointer;
    position: relative;
    overflow: visible;
    padding: 0;
  }
  .carousel-dots .dot .dot-fill {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(270deg, rgba(199,175,64,.95) 0%, rgba(255,224,102,.92) 100%);
    transform-origin: right center;
    transform: scaleX(var(--dot-progress));
    will-change: transform;
    pointer-events: none;
  }
  .carousel-dots .dot[aria-selected="true"] {
    border-color: rgba(199,175,64,.45);
  }
  .carousel-dots .dot[aria-selected="true"]::before,
  .carousel-dots .dot[aria-selected="true"]::after {
    content: "";
    position: absolute;
    right: .18rem;
    bottom: calc(100% + .02rem);
    border-radius: 999px;
    pointer-events: none;
    background:
      radial-gradient(circle at 24% 68%, rgba(255,234,140,.74) 0 12%, transparent 16%),
      radial-gradient(circle at 52% 34%, rgba(255,221,115,.6) 0 13%, transparent 17%),
      radial-gradient(circle at 82% 60%, rgba(255,239,170,.48) 0 10%, transparent 14%);
    filter: drop-shadow(0 0 4px rgba(233,198,84,.18));
  }
  .carousel-dots .dot[aria-selected="true"]::before {
    width: .7rem;
    height: .32rem;
    opacity: .46;
    animation: carousel-bubble-rise 2s ease-in-out infinite;
  }
  .carousel-dots .dot[aria-selected="true"]::after {
    width: .5rem;
    height: .22rem;
    opacity: .3;
    right: .38rem;
    animation: carousel-bubble-rise 2.45s ease-in-out infinite;
  }
  .carousel-dots .dot[aria-selected="true"] .dot-fill {
    box-shadow: 0 0 0 1px rgba(199,175,64,.08) inset;
  }

  @keyframes carousel-bubble-rise {
    0% {
      transform: translate(.08rem, .04rem) scale(.96);
      opacity: .12;
    }
    35% {
      opacity: .42;
    }
    60% {
      transform: translate(-.08rem, -.06rem) scale(1);
      opacity: .38;
    }
    100% {
      transform: translate(-.2rem, -.14rem) scale(1.04);
      opacity: .08;
    }
  }

  /* Reduce motion */
  @media (prefers-reduced-motion: reduce) {
    .carousel-track { transition: none; }
    .carousel-dots .dot[aria-selected="true"]::before,
    .carousel-dots .dot[aria-selected="true"]::after {
      animation: none;
      opacity: .12;
    }
  }

  /* (Optional) small screens: reduce padding a bit */
  @media (max-width: 640px) {
    .carousel .carousel-slide { padding: 2rem; }
  }

  /* Subtle edge vignette */
  .carousel .carousel-slide::after {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(120% 100% at 50% 50%, transparent 40%, rgba(0,0,0,.25) 100%);
    z-index: 0;
  }

  /* Slight lift on focus/hover for keyboard/mouse users */
  .carousel .carousel-slide:focus-within,
  .carousel .carousel-slide:hover {
    outline: none;
    box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 10px 30px rgba(0,0,0,.25);
  }

  /* No shadows in the carousel */
  .carousel .carousel-slide,
  .carousel .carousel-slide:hover,
  .carousel .carousel-slide:focus-within {
    box-shadow: none !important;
  }

  /* If you added slide-specific outlines on hover, clear them too */
  .carousel .carousel-slide:hover,
  .carousel .carousel-slide:focus-within {
    outline: none;
  }

  .carousel { --border: #000; }

  .home-bottom-band {
    position: relative;
    padding-top: 18px;
  }
  .home-bottom-band::before {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    margin-bottom: 1.2rem;
    background: linear-gradient(90deg, rgba(255,255,255,.02), rgba(123,193,246,.14), rgba(255,255,255,.02));
  }
  .home-flow-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
      opacity 420ms cubic-bezier(.2,.6,.2,1),
      transform 420ms cubic-bezier(.2,.6,.2,1);
    will-change: opacity, transform;
  }
  .home-flow-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
  @keyframes home-scroll-cue-float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
  }
  @media (prefers-reduced-motion: reduce) {
    .home-flow-reveal,
    .home-flow-reveal.is-visible {
      opacity: 1;
      transform: none;
      transition: none;
    }
  }
  .home-bottom-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
  }
  .home-bottom-title {
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    font-size: 10px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--dim);
    font-family: var(--font-mono);
  }
  .home-bottom-grid .cta {
    flex-direction: column;
    align-items: stretch;
  }
  .home-bottom-grid .btn {
    justify-content: flex-start;
    background: transparent;
  }
  .home-bottom-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
  }
  .home-bottom-grid li {
    font-size: 12px;
    line-height: 1.7;
    font-family: var(--font-mono);
  }
  .home-bottom-grid .home-bottom-connect-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: baseline;
    gap: 8px;
  }
  .home-bottom-copy {
    display: inline-flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-width: 0;
    vertical-align: baseline;
  }
  .home-bottom-copy > .mono {
    white-space: nowrap;
  }
  .home-bottom-grid .entry-copy-note {
    margin-top: 10px;
    text-align: left;
  }
  .home-bottom-admin {
    margin-top: 30px;
    display: flex;
    justify-content: flex-start;
  }
  .home-bottom-admin-link {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font-family: inherit;
    font-size: 12px;
    font-weight: inherit;
    line-height: 1.7;
    letter-spacing: normal;
    text-transform: none;
    text-decoration: underline;
    text-underline-offset: 2px;
    opacity: 1;
    cursor: pointer;
  }
  @media (hover:hover) and (pointer:fine) {
    .home-bottom-admin-link:hover {
      color: var(--text);
    }
  }
  @media (max-width: 899px) {
    .home-bottom-grid { grid-template-columns: 1fr; }
    .home-bottom-admin { margin-top: 20px; }
  }

  /* Make the header a 2-col grid: filler + login */
  header.wrap.header-bar{
    display: grid;                      /* <- grid, not flex */
    grid-template-columns: 1fr auto;    /* left grows, right hugs */
    align-items: start;
    padding-top: var(--space-4);
    width: 100%;
    height: 70px;
  }

  #loginMsg {
    text-align: right;     /* push text to the right edge */
    display: block;
    width: 100%;           /* makes sure it stretches across the panel */
    margin: 4px 0 0;       /* optional: small spacing */
  }
  #loginMsg:empty {
    display: none;         /* don't reserve space if no message */
  }


  /* right-align the logged-in row */
  #userPanel{
    display: flex;
    align-items: center;
    justify-content: flex-end;  /* <- was space-between */
    gap: 10px;
    width: 100%;
  }

  /* ---------- Sticky glass header ---------- */
  .site-header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(6, 8, 16, .6);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(255,255,255,.07);
    position: sticky;
  }
  .site-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: repeating-linear-gradient( 90deg, rgba(198, 169, 106, 0.7) 0 12px, transparent 12px 15px );
    opacity: .55;
    pointer-events: none;
  }
  .site-header.is-scrolled {
    background: rgba(8, 12, 18, .96);
    box-shadow: none;
  }

  .nav-row {
    display: grid; align-items: center; gap: 12px;
    grid-template-columns: auto 1fr auto;
    padding: 10px var(--space-6);
    min-height: 56px;
    height: 56px;
    box-sizing: border-box;
    position: relative;
  }

  /* Brand */
  .brand {
    display:inline-flex;
    align-items:center;
    gap:8px;
    min-height: 24px;
    color: var(--text);
    text-decoration: none;
  }
  .brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 18px;
    flex-shrink: 0;
  }
  .brand-icon svg { display:block; }
  /* default: cover the 30x30 tile with the image */
  .brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    font-weight: 900;
    color: #0b1220;

    /* fallback color first (in case image blocks) */
    background-color: var(--brand-mark-bg-fallback);

    /* use image-set for crispness on HiDPI */
    background-image: image-set(
      var(--brand-mark-img-1x) 1x,
      var(--brand-mark-img-2x) 2x
    );

    background-repeat: no-repeat;
    background-position: center;
    background-size: cover; /* switch to `contain` if you want full logo visible */
  }

  .brand-icon svg { width: var(--logo,18px); height: var(--logo,18px); color: #cbb86b; }


  /* optional variant if you want to preserve the whole logo inside the round tile */
  .brand-mark--contain { background-size: contain; }

  /* optional light theme tweak */
  @media (prefers-color-scheme: light) {
    .brand-mark { color: #0b1220; }
  }
  .brand-text {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: .02em;
    color: #e5edf7;
    transform: translateY(-1px);
  }
  .brand-text .thin {
    font-weight: 300;
    font-style: italic;
    color: #84acd2;
  }

  /* Nav links */
  .nav {
    display: flex;
    gap: 24px;
    align-items: stretch;
    justify-content: flex-end;
    justify-self: end;
    height: 100%;
  }
  .nav-link {
    padding: 0; border-radius: 0; color: #5f768d; text-decoration: none;
    border: 1px solid transparent;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .16em;
    text-transform: uppercase;
  }
  @media (hover:hover) and (pointer:fine) {
    .nav-link:hover { background: transparent; border-color: transparent; color: var(--text); text-decoration: none; }
  }
  .nav-link.disabled { opacity: .5; pointer-events: none; }
  .btn.is-disabled,
  .btn[aria-disabled="true"] {
    opacity: .58;
    cursor: not-allowed;
  }
  .gate-note-inline {
    display: block;
    flex: 0 0 100%;
    width: min(320px, 100%);
    min-height: 24px;
    margin-top: 8px;
    margin-left: auto;
    padding: 0 4px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(233, 239, 248, 0);
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.35;
    letter-spacing: .01em;
    text-transform: none;
    text-align: right;
    opacity: 0;
    transition:
      opacity var(--dur-1) var(--ease),
      color var(--dur-1) var(--ease);
  }
  .entry-option-primary .gate-note-inline {
    width: min(280px, calc(100vw - 48px));
    margin-left: 0;
  }
  @media (hover:hover) and (pointer:fine) {
    .btn[aria-disabled="true"]:hover + .gate-note-inline,
    .btn[aria-disabled="true"]:focus-visible + .gate-note-inline {
      color: rgba(233, 239, 248, .82);
      opacity: 1;
    }
  }
  /* Active state for current page */
  /* Nav links - no layout shift underline */
.nav-link{
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0;
  text-decoration: none;         /* kill global underline here */
}

/* keep hover tidy even with global a:hover */
@media (hover:hover) and (pointer:fine){
  .nav-link:hover{
    background: transparent;
    border-color: transparent;
    text-decoration: none;       /* prevent underline on hover */
  }
}

/* Underline: always lives inside the padding box, no margin-top */
.nav-link::after{
  content:"";
  position:absolute;
  left:0; right:0;
  bottom:-10px;
  height:1px;
  border-radius:1px;
  background: rgba(148, 198, 242, .85);
  opacity:0;
  transform: scaleX(.6);
  transform-origin: 50% 50%;
  transition: opacity var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
  pointer-events:none;
}

/* Active / current page */
.nav-link[aria-current="page"]::after,
.nav-link.is-active::after{
  opacity:1;
  transform: scaleX(1);
}
.nav-link[aria-current="page"],
.nav-link.is-active {
  color: #84acd2;
}

/* Optional: show the line on hover too (without text jump) */
.nav-link:hover::after{
  opacity:.9;
  transform: scaleX(1);
}


  /* Subtle gradient bar under the active link */
  .nav-link[aria-current="page"]::after,
  .nav-link.is-active::after {
    content: "";
    display: block;
    height: 1px;
    border-radius: 1px;
    background: rgba(148, 198, 242, .85);
  }

  /* Actions + hamburger */
  .nav-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-width: 40px; }
  .menu-toggle {
    display: none; border: 1px solid rgba(255,255,255,.08); background: transparent;
    border-radius: 4px; padding: 6px; cursor: pointer; color: #8aa0b7;
  }
  @media (min-width: 900px) {
    .nav-row {
      grid-template-columns: auto minmax(0, 1fr) auto;
    }
    .nav-actions {
      min-width: 0;
      width: auto;
      overflow: visible;
      justify-self: end;
    }
    .nav {
      position: static;
      transform: none;
      justify-self: stretch;
      width: 100%;
      max-width: none;
      justify-content: flex-end;
    }
  }

  /* Mobile drawer */
  .mobile-menu {
    border-top: 1px solid var(--border);
    background: rgba(8, 12, 18, .96);
    backdrop-filter: blur(10px);
    padding: 10px var(--space-6) 14px;
  }
  .mobile-menu .mobile { display: grid; gap: 6px; margin: 8px 0; }

  /* Breakpoints */
  @media (max-width: 899px) {
    .nav { display: none; }
    .menu-toggle { display: inline-flex; }
  }


  /* Auth-aware visibility helpers */
  :root:not([data-auth]) .auth-authed-only { display: none !important; }
  :root[data-auth="guest"]  .auth-authed-only { display: none !important; }
  :root[data-auth="authed"] .auth-guest-only { display: none !important; }
  @media (min-width: 900px) {
    :root[data-auth="authed"] .site-header #userPanel.auth-authed-only {
      display: flex !important;
      visibility: visible;
      opacity: 1;
      filter: none;
    }
    :root[data-auth="authed"] .site-header #userPanel.auth-authed-only {
      pointer-events: auto;
    }
  }

  /* kill any generic centering that might exist */
  header.wrap .login-panel{ margin-inline:0 !important; }

  /* Header override (kept for compat) */
  /*header.wrap { color: #eee; padding: .5rem 1rem; } */
  header .badge {
    gap: .4rem; font-size: .9rem; font-weight: 800;
    background: #222; color: #ffd700;
    padding: .25rem .6rem; border-radius: 9999px;
  }

  footer.wrap { color: #bfbfbf; padding: 1rem 0.4rem; }
  footer .badge {
    gap: .4rem; font-size: .9rem; font-weight: 600;
    background: #22222200; color: #a29c3e;
    padding: .25rem .6rem; border-radius: 9999px;
  }

  /* Buttons */
  .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

  .btn {
    display: inline-flex; gap: 10px; align-items: center;
    padding: 6px 12px; border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface-strong);
    color: var(--text); box-shadow: var(--shadow);
    cursor: pointer; transition: box-shadow var(--dur-1) var(--ease), background var(--dur-1);
  }
  .btn {
    transition: 
      box-shadow 160ms cubic-bezier(.2,.6,.2,1),
      filter 160ms cubic-bezier(.2,.6,.2,1),
      background-color 160ms cubic-bezier(.2,.6,.2,1);
    box-shadow: 0 0 0 rgba(201, 151, 14, 0);
  }
  @media (hover:hover) and (pointer:fine) {
    .btn:hover {
      box-shadow: 0 6px 16px rgba(126, 68, 21, 0.35), 0 1px 0 rgba(112, 50, 9, 0.04) inset;
      filter: brightness(1.03) saturate(1.02);
    }
    .btn:active {
      box-shadow: 0 2px 8px rgba(0,0,0,.4), 0 0 0 rgba(255,255,255,0) inset;
      filter: brightness(.98);
    }
  }
  .btn.primary {
    border-color: #40587e;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #e6e6e6; font-weight: 700;
    position: relative;
    overflow: hidden;
  }
  .btn.primary::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,.18), transparent);
    opacity: 0;
    transition: opacity 160ms cubic-bezier(.2,.6,.2,1);
    pointer-events: none;
  }
  .btn.ghost { background: transparent; }
  .btn:disabled { opacity: .6; cursor: not-allowed; }
  @media (hover:hover) and (pointer:fine) {
    .btn.primary:hover::after {
      opacity: 1;
    }
  }

  /* Homepage button cleanup: flatter, quieter, and closer to the approved draft */
  .hero-home .btn,
  .home-split .btn,
  .home-bottom-band .btn,
  .entry-flow .btn {
    min-height: 44px;
    padding: 11px 18px;
    border-radius: 3px;
    border: 1px solid rgba(255,255,255,.12);
    background: transparent;
    box-shadow: none;
    color: #96aac0;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    text-decoration: none;
    transition:
      color 160ms cubic-bezier(.2,.6,.2,1),
      border-color 160ms cubic-bezier(.2,.6,.2,1),
      background-color 160ms cubic-bezier(.2,.6,.2,1),
      box-shadow 160ms cubic-bezier(.2,.6,.2,1);
  }
  .hero-home .btn.primary,
  .home-split .btn.primary,
  .home-bottom-band .btn.primary,
  .entry-flow .btn.primary {
    border-color: #76bdf4;
    background: #74c0fc;
    color: #08101a;
    font-weight: 500;
    box-shadow: 0 0 20px rgba(116,192,252,.16);
  }
  .hero-home .btn.primary::after,
  .home-split .btn.primary::after,
  .home-bottom-band .btn.primary::after,
  .entry-flow .btn.primary::after {
    background: linear-gradient(120deg, transparent, rgba(255,255,255,.12), transparent);
  }
  .hero-home .btn.ghost,
  .home-split .btn.ghost,
  .home-bottom-band .btn.ghost,
  .entry-flow .btn.ghost {
    background: transparent;
    opacity: .75;
  }
  .hero-home .btn svg,
  .home-split .btn svg,
  .home-bottom-band .btn svg,
  .entry-flow .btn svg {
    width: 15px;
    height: 15px;
  }
  @media (hover:hover) and (pointer:fine) {
    .hero-home .btn:hover,
    .home-split .btn:hover,
    .home-bottom-band .btn:hover,
    .entry-flow .btn:hover {
      text-decoration: none;
      border-color: rgb(96, 90, 59);
      color: #c3d5e6;
      background: rgba(255,255,255,.02);
      box-shadow: none;
      filter: none;
      opacity: 1;
    }
    .hero-home .btn.primary:hover,
    .home-split .btn.primary:hover,
    .home-bottom-band .btn.primary:hover,
    .entry-flow .btn.primary:hover {
      background: #84c9ff;
      border-color: #84c9ff;
      color: #071018;
      box-shadow: 0 0 24px rgba(116,192,252,.22);
    }
    .hero-home > .hero-copy > .cta > .btn.primary:hover {
      background: var(--gold-ui-hover);
      border-color: var(--gold-ui-hover);
      color: #0b0f15;
      box-shadow: 0 0 20px var(--gold-ui-glow);
    }
    .hero-home > .hero-copy > .cta > .btn.ghost:hover {
      color: var(--gold-ui-text-hover);
      box-shadow: none;
    }
    .hero-home > .hero-copy > .cta > .btn.ghost:hover::after {
      background: var(--gold-ui-faint);
    }
  }
  .hero-home .cta {
    --hero-primary-width: 160px;
    --hero-browser-width: 196px;
    --hero-cta-width: calc(var(--hero-primary-width) + var(--hero-browser-width) - 14px);
    margin-top: 20px;
    gap: 0;
    align-items: stretch;
    width: min(100%, var(--hero-cta-width));
  }
  .hero-home > .hero-copy > .cta > .btn {
    position: relative;
  }
  .hero-home > .hero-copy > .cta > .btn.primary {
    width: var(--hero-primary-width);
    min-width: var(--hero-primary-width);
    z-index: 2;
    border-color: var(--gold-ui);
    background: var(--gold-ui);
    color: #0b0f15;
    box-shadow: 0 0 18px color-mix(in srgb, var(--gold-ui) 12%, transparent);
    clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  }
  .hero-home > .hero-copy > .cta > .btn.ghost {
    width: var(--hero-browser-width);
    min-width: var(--hero-browser-width);
    margin-left: -14px;
    padding-left: 26px;
    border-color: transparent;
    color: #96aac0;
    clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%);
    background: rgba(255,255,255,.14);
    box-shadow: none;
    isolation: isolate;
  }
  .hero-home > .hero-copy > .cta > .btn.ghost::after {
    content: "";
    position: absolute;
    inset: 1px;
    background: #111821;
    clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%);
    z-index: -1;
    transition: background-color 160ms cubic-bezier(.2,.6,.2,1);
  }
  @media (max-width: 640px) {
    .hero-home .cta {
      gap: 10px;
      width: 100%;
    }
    .hero-home > .hero-copy > .cta > .btn.primary,
    .hero-home > .hero-copy > .cta > .btn.ghost {
      width: 100%;
      min-width: 0;
    }
    .hero-home > .hero-copy > .cta > .btn.ghost {
      margin-left: 0;
      padding-left: 18px;
    }
    .hero-home .gate-note-inline {
      width: 100%;
    }
  }
  .entry-flow .cta > .btn,
  .entry-flow .entry-flow-cta > .btn {
    min-width: 0;
    clip-path: none;
    isolation: auto;
  }
  .entry-flow .cta > .btn.ghost,
  .entry-flow .entry-flow-cta > .btn.ghost {
    margin-left: 0;
    padding-left: 18px;
    border-color: rgba(255,255,255,.12);
    background: transparent;
    box-shadow: none;
  }
  .entry-flow .cta > .btn.ghost::after,
  .entry-flow .entry-flow-cta > .btn.ghost::after {
    content: none;
  }
  .entry-flow .cta > .btn.primary,
  .entry-flow .entry-flow-cta > .btn.primary {
    clip-path: none;
  }

  /* Panels & cards */
  .panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
  }

  .frost {
    background:
      var(--surface) padding-box,
      linear-gradient(135deg, rgba(116,192,255,.25), rgba(177,151,252,.2)) border-box;
    border: 1px solid transparent;
  }

  .panel-classic {
    background: url('/assets/img/bg-classic.jpg') center/cover no-repeat;
    text-shadow: 1px 1px #4d4d4d;
    color: rgb(255, 255, 255);
  }
  .panel-classic p {
    color: rgb(215, 215, 215);
  }
  .panel-friends {
    background: url('/assets/img/bg-friends.jpg') center/cover no-repeat;
    text-shadow: 1px 1px #000000;
    color: rgb(248, 248, 248);
  }
  .panel-friends p {
    color: rgb(215, 215, 215);
  }
  .panel-play {
    background: url('/assets/img/bg-play.jpg') center/cover no-repeat;
    text-shadow: 1px 1px #000000;
    color: rgb(248, 248, 248);
  }
  .panel-play p {
    color: rgb(215, 215, 215);
  }

  .cards { display: grid; gap: 16px; }
  @media (min-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }

  .card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
  }

  /* Key/Value grid */
  .kvs {
    display: grid; grid-template-columns: auto 1fr; gap: 8px 12px;
    font-family: var(--font-mono);
  }
  .kvs span { color: var(--muted); }

  /* Dots / status */
.dot, .status-dot {
  display: inline-block;
  width: var(--dot-size);
  height: var(--dot-size);
  border-radius: 50%;
}

/* Base colors */
.dot-green, .g {
  background: radial-gradient(circle at 30% 30%, #7dffb1, #2ecc71 70%);
}
.dot-red, .r {
  background: radial-gradient(circle at 30% 30%, #ff9c9c, #e74c3c 70%);
}
.dot-yellow {
  background: radial-gradient(circle at 30% 30%, #ffe08a, #d4a017 70%);
}

/* Ring-pulse animations */
@keyframes pulseDotGreen {
  0%,100% { box-shadow: 0 0 0 0   rgba(46,204,113,0.55); opacity: 1; }
  50%      { box-shadow: 0 0 0 7px rgba(46,204,113,0);    opacity: 0.7; }
}
@keyframes pulseDotRed {
  0%,100% { box-shadow: 0 0 0 0   rgba(231,76,60,0.55); opacity: 1; }
  50%      { box-shadow: 0 0 0 7px rgba(231,76,60,0);    opacity: 0.7; }
}
@keyframes pulseDotYellow {
  0%,100% { box-shadow: 0 0 0 0   rgba(212,160,23,0.55); opacity: 1; }
  50%      { box-shadow: 0 0 0 7px rgba(212,160,23,0);    opacity: 0.7; }
}

.dot-green.twinkle,  .g.twinkle     { animation: pulseDotGreen  2.8s ease-in-out infinite; }
.dot-red.twinkle,    .r.twinkle     { animation: pulseDotRed    2.8s ease-in-out infinite; }
.dot-yellow.twinkle                  { animation: pulseDotYellow 2.8s ease-in-out infinite; }


  /* Toolbar */
  .toolbar { display: flex; gap: 8px; margin-top: 8px; }
  .toolbar .btn {
    padding: 6px 10px; border-radius: 10px;
    border: 1px solid var(--border-strong); background: transparent; box-shadow: none;
  }
  .toolbar .btn.active {
    background: rgba(255,255,255,.08);
    border-color: var(--border-strong);
  }

  /* Chips & footer */
  .chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 10px; border-radius: 999px;
    background: rgba(255,255,255,.06);
    border: 1px solid var(--border);
  }

  .kbd {
    padding: 2px 6px; border-radius: 6px;
    background: rgba(255,255,255,.05);
  }

  /* Charts */
  .chart { width: 100%; height: 220px; display: block; }

  .hero.aurora { position: relative; overflow: clip; }
  .hero.aurora::before{
    content:"";
    position:absolute; inset:-10% -5% auto -5%;
    height:55%;
    background:
      radial-gradient(60% 60% at 20% 40%, rgba(116,192,255,.22), transparent 60%),
      conic-gradient(from 210deg at 60% 40%, rgba(177,151,252,.18), transparent 60%);
    filter: blur(30px);
    transform: translate3d(0,0,0);
    animation: auroraSweep 18s var(--ease) infinite alternate;
    pointer-events:none;
  }
  @keyframes auroraSweep{
    0% { transform: translateY(-6%) translateX(-2%) rotate(0.5deg); opacity:.85; }
    100%{ transform: translateY(4%)  translateX(2%)  rotate(-0.5deg); opacity:.65; }
  }

  .divider {
    display:flex; align-items:center; gap:10px; opacity:.6; margin:10px 0;
  }
  .divider::before, .divider::after {
    content:""; flex:1; height:1px; background:linear-gradient(90deg, transparent, var(--border), transparent);
  }
  .divider svg { opacity:.8 }

  .input{
    --input-height: 44px;
    --input-padding-x: 14px;
    --input-padding-y: 10px;
    --input-radius: 8px;
    --input-font-size: 14px;
    --input-line-height: 1.4;
    --input-bg: rgba(10,15,22,.74);
    --input-bg-hover: rgba(13,19,28,.82);
    --input-bg-focus: rgba(14,20,29,.9);
    --input-bg-disabled: rgba(12,17,24,.46);
    --input-bg-readonly: rgba(12,17,24,.62);
    --input-border: rgba(132,172,210,.14);
    --input-border-hover: rgba(188,161,107,.5);
    --input-border-focus: rgba(188,161,107,.5);
    --input-border-disabled: rgba(255,255,255,.04);
    --input-border-invalid: rgba(198,110,110,.48);
    --input-text: #e6eefc;
    --input-text-disabled: rgba(150,166,183,.54);
    --input-placeholder: #6a7d90;
    --input-ring: 0 0 0 1px rgba(188,161,107,.18);
    --input-ring-invalid: 0 0 0 1px rgba(198,110,110,.18);
    display:block;
    width:100%;
    min-height: var(--input-height);
    padding: var(--input-padding-y) var(--input-padding-x);
    border:1px solid var(--input-border);
    border-radius:var(--input-radius);
    background: var(--input-bg);
    color:var(--input-text);
    font: inherit;
    font-size: var(--input-font-size);
    line-height: var(--input-line-height);
    box-shadow: none;
    appearance: none;
    transition: border-color 160ms cubic-bezier(.2,.6,.2,1), box-shadow 160ms cubic-bezier(.2,.6,.2,1), background-color 160ms cubic-bezier(.2,.6,.2,1);
  }
  input.input,
  select.input{
    height: var(--input-height);
  }
  textarea.input{
    min-height: calc(var(--input-height) * 2.6);
    line-height: 1.6;
    resize: vertical;
  }
  select.input{
    appearance: none;
    padding-right: calc(var(--input-padding-x) + 24px);
    background-image:
      linear-gradient(45deg, transparent 50%, rgba(188,161,107,.78) 50%),
      linear-gradient(135deg, rgba(188,161,107,.78) 50%, transparent 50%);
    background-position:
      calc(100% - 16px) calc(50% - 2px),
      calc(100% - 11px) calc(50% - 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
  }
  .input::placeholder{
    color: var(--input-placeholder);
  }
  @media (hover:hover) and (pointer:fine) {
    .input:hover:not(:disabled):not([readonly]){
      border-color: var(--input-border-hover);
      background-color: var(--input-bg-hover);
    }
  }
  .input:focus,
  .input:focus-visible{
    box-shadow: var(--input-ring);
    border-color: var(--input-border-focus);
    background-color: var(--input-bg-focus);
    outline: none;
  }
  .input:disabled,
  .input[aria-disabled="true"]{
    border-color: var(--input-border-disabled);
    background: var(--input-bg-disabled);
    color: var(--input-text-disabled);
    cursor: not-allowed;
    opacity: .78;
  }
  .input:disabled::placeholder,
  .input[aria-disabled="true"]::placeholder{
    color: rgba(132,149,168,.46);
  }
  .input[readonly]{
    border-color: rgba(255,255,255,.08);
    background: var(--input-bg-readonly);
    color: rgba(214,223,232,.86);
  }
  .input[readonly]:focus,
  .input[readonly]:focus-visible{
    box-shadow: none;
    border-color: rgba(255,255,255,.12);
    background: var(--input-bg-readonly);
  }
  .input:is(:user-invalid, [aria-invalid="true"]){
    border-color: var(--input-border-invalid);
  }
  .input:is(:user-invalid, [aria-invalid="true"]):focus,
  .input:is(:user-invalid, [aria-invalid="true"]):focus-visible{
    box-shadow: var(--input-ring-invalid);
    border-color: var(--input-border-invalid);
  }
  select.input option{
    background: #111823;
    color: var(--text);
  }
  input[type="checkbox"],
  input[type="radio"]{
    accent-color: var(--brand);
  }
  input[type="checkbox"]:focus-visible,
  input[type="radio"]:focus-visible{
    outline: none;
    box-shadow: var(--ring);
  }
  .input-sm{
    --input-height: 38px;
    --input-padding-x: 10px;
    --input-padding-y: 7px;
    --input-radius: 8px;
    --input-font-size: 12px;
  }
  .input-md{
    --input-height: 44px;
    --input-padding-x: 14px;
    --input-padding-y: 10px;
    --input-radius: 8px;
    --input-font-size: 14px;
  }
  .input-lg{
    --input-height: 52px;
    --input-padding-x: 14px;
    --input-padding-y: 12px;
    --input-radius: 10px;
    --input-font-size: 15px;
  }
  .input-xs{
    --input-height: 32px;
    --input-padding-x: 9px;
    --input-padding-y: 5px;
    --input-radius: 7px;
    --input-font-size: 11px;
  }
  .input-xl{
    --input-height: 60px;
    --input-padding-x: 16px;
    --input-padding-y: 14px;
    --input-radius: 10px;
    --input-font-size: 16px;
  }

  .btn-sm{ padding:6px 12px; border-radius:8px; }

  /* Grid that goes single-column on small screens */
  /* Header quick-login ONLY (was .login-form and leaked into dialog) */
.site-header .login-form{
  display:grid; align-items:center; column-gap:10px; row-gap:8px;
  grid-template-columns: auto 1fr 1fr auto;
  grid-template-areas:
    "title email pass submit"
    ".     msg   msg  msg";
}
.site-header .login-title{ grid-area:title; margin:0; white-space:nowrap; font-size:16px; }
.site-header #loginEmail{ grid-area:email; }
.site-header #loginPass { grid-area:pass; }
.site-header .login-form .btn{ grid-area:submit; }
.site-header .login-msg{ grid-area:msg; min-height:1.2em; font-size:.9em; color:var(--muted); }
.login-msg{
  display:block;
  min-height: 1.2em;     /* reserves one line */
  margin-top: .5rem;     /* gives it breathing room */
}

 .site-header .login-msg.ok{ color:var(--accent); }
 .site-header .login-msg.error{ color:var(--danger); }

  /* Logged-in chip */
  .user-panel{
    display:flex; align-items:center; gap:10px; justify-content:space-between;
    min-width: 188px;
    width: 100%;
    position: relative;
  }
  .user-chip-wrap{
    position: relative;
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }
  .name-link{
    max-width: 18ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .user-chip{
    display:inline-flex; align-items:center; gap:8px;
    justify-content: flex-end;
    padding: 2px 0;
    border-radius: 0;
    min-height: 40px;
    box-sizing: border-box;
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    appearance: none;
    transition: color 180ms cubic-bezier(.2,.6,.2,1), opacity 180ms cubic-bezier(.2,.6,.2,1);
    width: auto;
  }
  .user-chip:hover{
    background: transparent;
    color: #f3f7fd;
  }
  .user-chip:focus-visible{
    outline: none;
    color: #f3f7fd;
  }
  .user-chip:hover .user-chip-caret,
  .user-chip:focus-visible .user-chip-caret{
    color: rgba(255,255,255,.72);
  }
  .user-chip-caret{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.42);
    flex-shrink: 0;
    transition: transform 180ms cubic-bezier(.2,.6,.2,1), color 180ms cubic-bezier(.2,.6,.2,1);
  }
  .user-chip-wrap.is-open .user-chip-caret{
    transform: rotate(180deg);
    color: rgba(255,255,255,.68);
  }
  /* Avatar in the header chip */
  .user-chip .avatar{
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.06);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 14px;
    position: relative;
    flex-shrink: 0;
  }
  .user-chip .avatar img{
    width: 100%; height: 100%;
    object-fit: cover; display: block;
  }
  .user-chip .avatar,
  .name-link{
    transition: opacity 160ms cubic-bezier(.2,.6,.2,1), color 180ms cubic-bezier(.2,.6,.2,1);
  }
  :root:not([data-auth]) .site-header #userPanel .avatar,
  :root:not([data-auth]) .site-header #userPanel #userName {
    opacity: 0;
  }
  :root:not([data-auth]) .site-header #userPanel .avatar::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,.16) 45%, rgba(255,255,255,.08) 100%);
    animation: header-auth-skeleton 1.35s ease-in-out infinite;
  }
  :root:not([data-auth]) .site-header #userPanel .name-link::before {
    content: "";
    display: block;
    width: 92px;
    max-width: 100%;
    height: 11px;
    margin-top: 1px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,.13) 45%, rgba(255,255,255,.06) 100%);
    animation: header-auth-skeleton 1.35s ease-in-out infinite;
  }
  :root[data-auth="authed"] .site-header #userPanel .avatar,
  :root[data-auth="authed"] .site-header #userPanel #userName {
    opacity: 1;
  }
  :root[data-auth="authed"] .site-header #userPanel .avatar {
    color: #d7ebff;
    background: rgba(35, 66, 102, .28);
    border-color: rgba(86, 153, 225, .28);
    box-shadow: 0 0 0 1px rgba(86, 153, 225, .08), 0 0 18px rgba(24, 118, 210, .12);
  }
  :root[data-auth="authed"] .site-header #userPanel .name-link {
    max-width: 18ch;
    opacity: 1;
  }
  .user-dropdown{
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(280px, calc(100vw - 24px));
    background: #111d2e;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;
    box-shadow: 0 22px 44px rgba(0,0,0,.32);
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px) scale(.98);
    pointer-events: none;
    transition: opacity 180ms cubic-bezier(.2,.6,.2,1), transform 180ms cubic-bezier(.2,.6,.2,1);
    z-index: 45;
  }
  .user-chip-wrap.is-open .user-dropdown{
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }
  .user-dropdown-header{
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px 14px;
    border-bottom: 1px solid rgba(255,255,255,.07);
  }
  .user-dropdown-avatar.avatar{
    width: 44px;
    height: 44px;
    font-size: 18px;
    border-width: 2px;
    border-color: rgba(184,169,122,.5);
    color: #b8a97a;
    background: #1a2535;
    box-shadow: none;
    border-radius: 50%;
    overflow: hidden;
    display: grid;
    place-items: center;
    flex-shrink: 0;
  }
  .user-dropdown-avatar.avatar img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .user-dropdown-meta{
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .user-dropdown-name{
    color: #dfe5eb;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
  }
  .user-dropdown-trust{
    --trust-color: #7a9bb5;
    --trust-bg: rgba(122,155,181,.14);
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: 4px;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--trust-bg);
    color: var(--trust-color);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
  }
  #userDropdownTrust[data-trust="member"],
  #acctRole[data-trust="member"],
  #stewardshipTrustLabel[data-trust="member"]{
    --trust-color: #7a9bb5;
    --trust-bg: rgba(122,155,181,.14);
  }
  #userDropdownTrust[data-trust="hero"],
  #acctRole[data-trust="hero"],
  #stewardshipTrustLabel[data-trust="hero"]{
    --trust-color: #c0bfbd;
    --trust-bg: rgba(192,191,189,.16);
  }
  #userDropdownTrust[data-trust="avatar"],
  #acctRole[data-trust="avatar"],
  #stewardshipTrustLabel[data-trust="avatar"]{
    --trust-color: #6eb3d4;
    --trust-bg: rgba(110,179,212,.16);
  }
  #userDropdownTrust[data-trust="angel"],
  #acctRole[data-trust="angel"],
  #stewardshipTrustLabel[data-trust="angel"]{
    --trust-color: #89cbf0;
    --trust-bg: rgba(137,203,240,.16);
  }
  #userDropdownTrust[data-trust="demi"],
  #acctRole[data-trust="demi"],
  #stewardshipTrustLabel[data-trust="demi"]{
    --trust-color: #4db89a;
    --trust-bg: rgba(77,184,154,.16);
  }
  #userDropdownTrust[data-trust="immortal"],
  #acctRole[data-trust="immortal"],
  #stewardshipTrustLabel[data-trust="immortal"]{
    --trust-color: #b8a97a;
    --trust-bg: rgba(184,169,122,.16);
  }
  #userDropdownTrust[data-trust="god"],
  #acctRole[data-trust="god"],
  #stewardshipTrustLabel[data-trust="god"]{
    --trust-color: #d4a843;
    --trust-bg: rgba(212,168,67,.16);
  }
  #userDropdownTrust[data-trust="deity"],
  #acctRole[data-trust="deity"],
  #stewardshipTrustLabel[data-trust="deity"]{
    --trust-color: #d47a3a;
    --trust-bg: rgba(212,122,58,.16);
  }
  #userDropdownTrust[data-trust="supreme"],
  #acctRole[data-trust="supreme"],
  #stewardshipTrustLabel[data-trust="supreme"]{
    --trust-color: #c45e7a;
    --trust-bg: rgba(196,94,122,.16);
  }
  #userDropdownTrust[data-trust="creator"],
  #acctRole[data-trust="creator"],
  #stewardshipTrustLabel[data-trust="creator"]{
    --trust-color: #d44a5a;
    --trust-bg: rgba(212,74,90,.16);
  }
  #userDropdownTrust[data-trust="implementor"],
  #acctRole[data-trust="implementor"],
  #stewardshipTrustLabel[data-trust="implementor"]{
    --trust-color: #9b7fd4;
    --trust-bg: rgba(155,127,212,.18);
  }
  .user-dropdown-section{
    padding: 8px 10px;
  }
  .user-dropdown-divider{
    border-top: 1px solid rgba(255,255,255,.07);
  }
  .user-dropdown-item{
    width: 100%;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 10px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: rgba(255,255,255,.76);
    text-decoration: none;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background-color 120ms ease, color 120ms ease;
  }
  .user-dropdown-item:hover,
  .user-dropdown-item:focus-visible{
    background: rgba(255,255,255,.06);
    color: #fff;
    outline: none;
  }
  .user-dropdown-icon{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #b8a97a;
    flex-shrink: 0;
  }
  .user-dropdown-icon-client{
    color: #6eb3d4;
  }
  .user-dropdown-icon-mudflow{
    color: #9b7fd4;
  }
  .user-dropdown-icon-staff{
    color: #4caf82;
  }
  .user-dropdown-icon-signout{
    color: #e05252;
  }
  .user-dropdown-label{
    min-width: 0;
    flex: 1;
    font-size: 13px;
  }
  .user-dropdown-arrow{
    color: rgba(255,255,255,.2);
    font-size: 11px;
    flex-shrink: 0;
  }
  .user-dropdown-signout{
    color: #e05252;
  }
  .user-dropdown-signout:hover,
  .user-dropdown-signout:focus-visible{
    background: rgba(224,82,82,.08);
    color: #ff7777;
  }
  @keyframes header-auth-skeleton {
    0% { opacity: .55; }
    50% { opacity: .95; }
    100% { opacity: .55; }
  }

/* Full-bleed footer shell */
.site-footer {
  width: 100%;
  margin-top: auto;
  position: relative;
}

.footer-bottom-strip {
  border-top: 1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,.012), rgba(255,255,255,0) 40%),
    rgba(0,0,0,.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.015);
}

.site-footer .footer {
  max-width: 1050px;
  min-height: 48px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
}

.footer-meta{
  display:flex;
  align-items:center;
  gap:.8rem;
  flex-wrap:wrap;
  font-size:.92rem;
  color:var(--muted);
  min-width: 0;
}

.footer-bottom-left {
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 0;
  flex-wrap: wrap;
}

.preview-star {
  color: var(--gold-ui, #c6a96a);
  font-size: 12px;
  line-height: 1;
  flex-shrink: 0;
}

.preview-badge{
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  padding: 4px 8px;
  border:1px solid rgba(198,169,106,.32);
  border-radius: 6px;
  background: rgba(198,169,106,.1);
  color: var(--gold-ui, #c6a96a);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.preview-badge svg{ display:block }

.privacy-line{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  font-size: 11px;
  color: var(--dim);
}

.link-btn{
  background:none; border:0; padding:0;
  font:inherit;
  color:var(--muted);
  text-decoration:none;
  border-bottom: 1px solid transparent;
  opacity:.95;
  cursor:pointer;
}
.link-btn:hover{
  opacity:1;
  color: var(--text);
  border-color: rgba(255,255,255,.18);
}

.copyright {
  font-size: 11px;
  color: var(--dim);
  text-align: right;
  flex-shrink: 0;
}

@media (max-width: 700px) {
  .site-footer .footer {
    min-height: 0;
    padding-top: 14px;
    padding-bottom: 14px;
    align-items: flex-start;
  }
  .copyright {
    text-align: left;
  }
}

/* If you still have this anywhere, drop it to avoid double caps */
.footer { max-width: none; }
}

/* ----------------------- LAYOUT UTILS ----------------------- */
@layer utilities {
  .grid { display: grid; gap: 16px; }
  @media (min-width: 900px) { .grid.cols-2 { grid-template-columns: 1fr 1fr; } }
  @media (min-width: 900px) { .grid.cols-3 { grid-template-columns: repeat(3,1fr); } }

  /* Spacing utilities (handy while iterating) */
  .mt-0{margin-top:0}.mt-1{margin-top:var(--space-1)}.mt-2{margin-top:var(--space-2)}.mt-3{margin-top:var(--space-3)}.mt-4{margin-top:var(--space-4)}.mt-5{margin-top:var(--space-5)}.mt-6{margin-top:var(--space-6)}
  .mb-0{margin-bottom:0}.mb-1{margin-bottom:var(--space-1)}.mb-2{margin-bottom:var(--space-2)}.mb-3{margin-bottom:var(--space-3)}.mb-4{margin-bottom:var(--space-4)}.mb-5{margin-bottom:var(--space-5)}.mb-6{margin-bottom:var(--space-6)}
  .pt-0{padding-top:0}.pt-1{padding-top:var(--space-1)}.pt-2{padding-top:var(--space-2)}.pt-3{padding-top:var(--space-3)}.pt-4{padding-top:var(--space-4)}.pt-5{padding-top:var(--space-5)}.pt-6{padding-top:var(--space-6)}
  .pb-0{padding-bottom:0}.pb-1{padding-bottom:var(--space-1)}.pb-2{padding-bottom:var(--space-2)}.pb-3{padding-bottom:var(--space-3)}.pb-4{padding-bottom:var(--space-4)}.pb-5{padding-bottom:var(--space-5)}.pb-6{padding-bottom:var(--space-6)}

  .sr-only {
    position: absolute !important; clip: rect(1px,1px,1px,1px);
    padding: 0 !important; border: 0 !important; height: 1px !important; width: 1px !important; overflow: hidden;
  }
}
