/* =========================================================
       RESET + BASELINE (condensed spacing everywhere)
       ========================================================= */
    html, body, div, span, applet, object, iframe,
    h1, h2, h3, h4, h5, h6, p, blockquote, pre,
    a, abbr, acronym, address, big, cite, code,
    del, dfn, em, img, ins, kbd, q, s, samp,
    small, strike, strong, sub, sup, tt, var,
    b, u, i, center,
    dl, dt, dd, ol, ul, li,
    fieldset, form, label, legend,
    table, caption, tbody, tfoot, thead, tr, th, td,
    article, aside, canvas, details, embed,
    figure, figcaption, footer, header, hgroup,
    menu, nav, output, ruby, section, summary,
    time, mark, audio, video {
      margin: 0; padding: 0; border: 0;
      font: inherit; vertical-align: baseline;
    }
    *, *::before, *::after { box-sizing: border-box; }

    html { scroll-behavior: smooth; }
    
    /* DISCO ELYSIUM: Main Background - "Thought Cabinet" Beige with technical grid */
    body {
      font-family: Arial, Helvetica, sans-serif;
      line-height: 1.25;
      background-color: #e0ded6; 
      background-image:
        repeating-linear-gradient(90deg, rgba(60, 60, 60, 0.04), rgba(60, 60, 60, 0.04) 1px, transparent 1px, transparent 20px),
        repeating-linear-gradient(0deg, rgba(60, 60, 60, 0.04), rgba(60, 60, 60, 0.04) 1px, transparent 1px, transparent 20px);
      min-height: 100vh;
      color: #1a1a1a; /* Dark ink black */
      font-size: 12px;
    }

:root {
  --page-width: 950px;
  --gutter: 8px;
  --radius-lg: 64px;
  --radius: 6px;
  --radius-sm: 3px;
  
  /* DISCO ELYSIUM: Shadows - dark and muddy */
  --shadow-1: 0 0 1px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.2);
  --shadow-2: 0 2px 8px rgba(30, 40, 45, 0.4), 0 8px 24px rgba(30, 40, 45, 0.3);
  --shadow-3: 0 4px 24px rgba(0,0,0,0.3), 0 16px 48px rgba(0,0,0,0.2);

  /* Base highlight defaults - "Pale" interaction colors */
  --highlight-bg: rgba(235, 99, 50, 0.08); /* Faint orange */
  --highlight-bg-hover: rgba(235, 99, 50, 0.2);
  --highlight-border: rgba(40, 40, 40, 0.3);

  /* DISCO ELYSIUM: Structural Colors */
  --muted-bg: #8d8b55; /* Old concrete/Tape */
  --muted-fg: rgba(0,0,0,0.65);
  --active-bg: rgba(56, 92, 110, 0.15); /* Teal tint */
  --accent-border: rgba(20, 20, 20, 0.35); /* Ink lines */
  --overlay: rgba(224, 222, 214, 0.85);
  --overlay-dark: rgba(0,0,0,0.4);

  --grid-gap: 6px;
  --column-left: 270px;
  --column-right: 1fr;
  --main-column: 940px;
  --ticker-height: 24px;
  --header-height: 220px;
  --sticky-top: 6px;
  --blur: 1px;
  --tight: 4px;
  --tight-2: 2px;

  /* DISCO ELYSIUM: Theme Colors (The 4 Attributes) */
  --olive-green: #385c6e; /* Intellect / Revachol Blue */
  --salmon-red: #a42e2e;  /* Physique / Fysique Red */
  --salmon-pink: #eb6332; /* Motorics / UI Orange (Primary Accent) */
  --purple-mauve: #8d8b55; /* Psyche / Inland Empire Purple */

  /* Highlight Tabs - The "Skill Check" Gradient */
  --highlight-tab-bg: var(--salmon-pink);
  --highlight-tab-gradient: linear-gradient(135deg, #eb6332, #a42e2e); /* Orange to Red */
  --highlight-tab-glow: 0 0 8px rgba(235, 99, 50, 0.6), 0 0 16px rgba(164, 46, 46, 0.5);
}

/* Container for the dropdown */
.nav-main art.dropdown {
  position: relative;
  display: inline-block;
}

/* Keep the parent clickable: make sure no overlay sits on top of it */
.nav-main art.dropdown .dropdown-trigger {
  position: relative;
  z-index: 2; /* parent sits above its background, but below menu hover area */
  display: inline-block;
}

/* Dropdown panel (hidden by default) */
.nav-main art.dropdown .dropdown-menu {
  position: absolute;
  top: calc(100% + 4px); /* extend below the parent */
  left: 0;
  display: none;
  background: transparent;
  border: 0px solid var(--accent-border);
  border-radius: var(--radius);
  padding: 6px;
  z-index: 999; /* sits above surrounding nav elements */
  min-width: 190px;
  animation: none;
}

/* Show dropdown on hover of the container (not the link), keeping the parent clickable */
.nav-main art.dropdown:hover .dropdown-menu {
  display: block;
  animation: dropdownFade 0.22s ease;
  background: transparent;
  box-shadow: none;
  border: none;
}

/* Menu items as image buttons */
.nav-main art.dropdown .dropdown-menu a {
  display: block;
  margin: 4px 0;
  text-align: center;
  transition: transform 0.15s ease, background 0.15s ease;
}

.nav-main art.dropdown .dropdown-menu img {
  width: 180px;
  height: auto;
  display: block;
  border: 0px dashed var(--accent-border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.0);
  margin-top: -20px;
}

.nav-main art.dropdown .dropdown-menu a:hover img {
  transform: translateY(-1px);
}

/* Fade/slide animation */
@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Optional: keep nav items from shifting when dropdown appears */
.nav-main {
  position: relative;
}

/* Prevent dropdown from causing horizontal scrollbars */
.nav-main art.dropdown .dropdown-menu {
  overflow-x: hidden;
}


/* Simple fade/slide animation */
@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* Marquees */
.marquee {
  position: fixed;
  top: 0;
  width: 300px;
  height: 100%;
  overflow: hidden;
  background: rgba(224, 222, 214, 0.2);
}
.marquee.left { left: 0;}
.marquee.right { right: 0; }

/* Entry box */
.entry-box {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 400px;
  height: 300px;
  transform: translate(-50%, -50%);
  border: 2px dashed var(--purple-mauve);
  border-radius: 12px;
  background: rgba(240, 238, 230, 0.95); /* Paper */
  box-shadow: 0 0 12px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
}

.entry-content {
  overflow-y: auto;
  flex: 1;
  font-size: 12px;
  line-height: 1.4;
}

.enter-button {
  margin-top: 8px;
  border: 1px dashed var(--purple-mauve);
  background: var(--salmon-pink);
  color: #000;
  font-size: 12px;
  padding: 6px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.enter-button:hover {
  background: var(--purple-mauve);
  color: #fff;
  transform: scale(1.05);
}

/* Circle style */
.circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.8;
}

    /* =========================================================
       PAGE FRAME + gutters (blank sides)
       ========================================================= */
    .page-shell {
      max-width: var(--page-width);
      margin: 0 auto;
      padding: 0 var(--gutter);
      position: relative;
    }

    .frame-gutters {
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 0;
      background:
        linear-gradient(to left, transparent, transparent 50%, rgba(20,20,20,0.05) 50%),
        linear-gradient(to right, transparent, transparent 50%, rgba(20,20,20,0.05) 50%);
      background-size: 50% 100%;
    }

    /* =========================================================
       HEADER: Watercolor Gloom
       ========================================================= */
    .site-header {
      height: var(--header-height);
      position: relative;
      margin: 6px 0;
      border: 1px solid var(--accent-border);
      border-top-left-radius: 0;
      border-bottom-left-radius: 0;
      border-top-right-radius: var(--radius-lg);
      border-bottom-right-radius: var(--radius-lg);
      box-shadow: var(--shadow-2);
      overflow: hidden;
      /* DISCO ELYSIUM: Muddy gradient - Blue/Grey to Dirty Sunset */
      background: linear-gradient(
        to bottom,
        #4a5c66,
        #8f7e68
      );
      backdrop-filter: blur(var(--blur));
      z-index: 5;
    }

    .site-header::after {
      content: "";
      position: absolute;
      right: -20px;
      top: -20px;
      width: 220px;
      height: 220px;
      border-top-right-radius: 50%;
      border-bottom-right-radius: 50%;
      border: 1px dashed rgba(255, 255, 255, 0.2);
      transform: rotate(8deg);
      filter: drop-shadow(0 2px 2px rgba(0,0,0,0.1));
      pointer-events: none;
    }

    .header-inner {
      position: absolute;
      inset: 0;
      display: grid;
      grid-template-columns: 1fr 1fr;
      align-items: stretch;
      gap: 0;
      overflow: hidden;
    }

    .header-left,
    .header-right {
      position: relative;
      padding: var(--tight);
    }

    .header-left { border-right: 1px dotted rgba(255,255,255,0.3); }
    .header-right { border-left: 1px dotted rgba(255,255,255,0.3); }

    .header-banner {
      position: absolute;
      bottom: var(--tight);
      left: var(--tight);
      right: var(--tight);
      height: 40px;
      border: 1px solid var(--accent-border);
      border-radius: var(--radius);
      display: grid;
      grid-template-columns: 1fr auto auto;
      gap: var(--tight-2);
      align-items: center;
      padding: 4px 6px;
      background: var(--muted-bg);
      box-shadow: var(--shadow-1);
      font-size: 11px;
    }

    .header-badge {
      position: absolute;
      top: 6px;
      right: 6px;
      width: 110px;
      height: 110px;
      border-radius: 50%;
      border: 2px double rgba(40, 40, 40, 0.8);
      /* DISCO ELYSIUM: Skill Check Sphere - Orange/Gold */
      background: radial-gradient(#ea6a36, #a64d29);
      box-shadow: 0 0 10px rgba(234, 106, 54, 0.4);
      animation: badgeSpin 18s linear infinite;
      display: grid;
      place-items: center;
      filter: saturate(1.1);
      font-size: 10px;
      color: #fff;
    }

    @keyframes badgeSpin {
      0% { transform: rotate(0deg) scale(1); }
      50% { transform: rotate(180deg) scale(1.03); }
      100% { transform: rotate(360deg) scale(1); }
    }

    .badge-row {
      display: inline-flex;
      gap: var(--tight-2);
      flex-wrap: wrap;
    }
    .badge {
      border: 1px dashed var(--accent-border);
      border-radius: 999px;
      padding: 2px 6px;
      background: rgba(255,255,255,0.4);
      font-size: 10px;
      box-shadow: var(--shadow-1);
      white-space: nowrap;
    }

    .ticker {
      position: relative;
      height: var(--ticker-height);
      border: 1px solid var(--accent-border);
      border-radius: var(--radius);
      overflow: hidden;
      background: rgba(255,255,255,0.4);
      box-shadow: var(--shadow-1);
      margin: 4px 0 8px;
    }
    .ticker-track {
      position: absolute;
      white-space: nowrap;
      display: inline-flex;
      gap: 12px;
      align-items: center;
      animation: tickerMove 26s linear infinite;
      padding: 2px 6px;
    }
    .ticker-item {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 0 6px;
      border-radius: var(--radius-sm);
      background: var(--muted-bg);
      border: 1px solid var(--accent-border);
      box-shadow: var(--shadow-1);
      transition: transform 0.15s ease;
      font-size: 10px;
      height: 18px;
    }
    .ticker-item:hover { transform: translateY(-1px) scale(1.02); }
    @keyframes tickerMove {
      0% { transform: translateX(0); }
      100% { transform: translateX(-50%); }
    }

    .ribbon {
      position: absolute;
      top: 0;
      left: 8px;
      transform: translateY(-50%);
      padding: 2px 6px;
      border: 1px solid var(--accent-border);
      border-radius: var(--radius-sm);
      background: rgba(255,255,255,0.85);
      box-shadow: var(--shadow-1);
      font-size: 10px;
      z-index: 1;
    }

    .floaters {
      position: absolute;
      inset: 0;
      pointer-events: none;
    }
    .floater {
      position: absolute;
      width: 18px;
      height: 18px;
      border-radius: 50%;
      border: 1px solid var(--accent-border);
      background: rgba(255,255,255,0.7);
      box-shadow: var(--shadow-1);
      animation: float 5s ease-in-out infinite;
    }
    @keyframes float {
      0% { transform: translateY(0); opacity: 0.85; }
      50% { transform: translateY(-6px); opacity: 1.0; }
      100% { transform: translateY(0); opacity: 0.85; }
    }

    /* =========================================================
       NAV (denser)
       ========================================================= */
    .nav-bar {
      position: sticky;
      top: var(--sticky-top);
      z-index: 7;
      display: grid;
      grid-template-columns: 1fr auto;
      gap: var(--tight-2);
      padding: 4px 0;
      backdrop-filter: blur(var(--blur));
    }
    .nav-main {
      display: flex;
      gap: var(--tight-2);
      align-items: center;
      flex-wrap: wrap;
    }
    .nav-main a {
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 2px 6px;
      background: transparent;
      transition: transform 0.1s ease, background 0.1s ease;
      font-size: 11px;
    }
    .nav-main a:hover {
      transform: translateY(-1px);
    }
    .nav-utils {
      display: inline-flex;
      gap: var(--tight-2);
      align-items: center;
    }
    .util-button {
      background: transparent;
      padding: 2px 6px;
      box-shadow: var(--shadow-1);
      cursor: pointer;
      transition: transform 0.1s ease, filter 0.15s ease;
      font-size: 11px;
      height: 22px;
    }
    
    .util-button:hover {
      transform: translateY(-1px);
      filter: brightness(1.02);
    }
    .subnav {
      display: grid;
      grid-template-columns: repeat(6, minmax(0, 1fr));
      gap: var(--tight-2);
      padding: 2px 0 6px;
      margin-top: 2px;
    }
    .subnav a {
      text-decoration: none;
      border: 1px dashed var(--accent-border);
      padding: 2px 4px;
      border-radius: var(--radius-sm);
      background: transparent;
      transition: transform 0.1s ease, background 0.1s ease;
      text-align: center;
      white-space: nowrap;
      font-size: 10px;
    }
    .subnav a:hover { transform: scale(1.02); background: var(--muted-bg); }

    /* =========================================================
       LAYOUT: TWO COLUMNS (tight)
       ========================================================= */
    /* SHRINE: full-width single-column layout */
.content-layout.shrine-layout {
  display: block;              /* no grid */
  width: 100%;
  padding: 0;
  margin: 0;
}

/* The main shrine column */
.shrine-main-column {
  width: 100%;
  max-width: 1100px;           /* matches your index main width */
  margin: 0 auto;              /* centers it */
  padding: 20px 18px;          /* breathing room */
  box-sizing: border-box;
}

/* Modules behave exactly like your index modules */
.shrine-main-column .module {
  background: rgba(240, 238, 230, 0.94); /* Paper white */
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 12px;
  margin-bottom: 20px;
}

/* Ensure media strips, grids, panels, etc. behave normally */
.shrine-main-column .media-strip { display:flex; gap:8px; margin-bottom:10px; }
.shrine-main-column .media-thumb {
  flex:1 1 0;
  min-height:56px;
  background:#cfcdc6;
  border-radius:4px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#666;
  font-size:12px;
}

.shrine-main-column .accordion .accordion-item { border-top:1px solid rgba(0,0,0,0.04); }
.shrine-main-column .accordion-head { display:flex; align-items:center; padding:10px 6px; cursor:pointer; }
.shrine-main-column .accordion-body { display:none; padding:8px 6px; }
.shrine-main-column .accordion-body.open { display:block; }

.shrine-main-column .grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.shrine-main-column .grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.shrine-main-column .grid-4 { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; }

.shrine-main-column .card-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.shrine-main-column .card {
  min-height:90px;
  border-radius:6px;
  background-position:center;
  background-size:cover;
}

.shrine-main-column .panel {
  background:rgba(0,0,0,0.03);
  padding:10px;
  border-radius:6px;
  min-height:60px;
}

.shrine-main-column .ghost-line {
  height:8px;
  background:rgba(0,0,0,0.06);
  border-radius:4px;
  margin-bottom:8px;
}

.shrine-main-column .badge-row { display:flex; gap:6px; flex-wrap:wrap; margin-top:8px; }
.shrine-main-column .badge {
  background:rgba(0,0,0,0.06);
  padding:4px 8px;
  border-radius:999px;
  font-size:12px;
}

    /* =========================================================
       MODULES (tight, stacked, eyestrain)
       ========================================================= */
    .module {
      border: 1px solid var(--accent-border);
      border-radius: var(--radius);
      /* DISCO ELYSIUM: Dirty paper background instead of pink */
      background: rgba(240, 238, 230, 0.8);
      box-shadow: var(--shadow-2);
      overflow: hidden;
      position: relative;
    }
    .module-header {
      display: flex;
      align-items: center;
      gap: var(--tight-2);
      padding: 4px 6px;
      border-bottom: 1px solid var(--accent-border);
      background: var(--muted-bg);
    }
    .module-title { font-weight: 700; letter-spacing: 0.02em; font-size: 12px; color: #000; }
    .module-tools { margin-left: auto; display: inline-flex; gap: var(--tight-2); }
    .tool {
      border: 1px solid var(--accent-border);
      border-radius: var(--radius-sm);
      padding: 2px 6px;
      background: rgba(255,255,255,0.6);
      cursor: pointer;
      transition: transform 0.1s ease;
      font-size: 11px;
      height: 22px;
    }
    .tool:hover { transform: translateY(-1px); background: var(--salmon-pink); color: white; }
    .module-body { padding: 6px; position: relative; display: grid; gap: 6px; }
    .module-footer {
      border-top: 1px dashed var(--accent-border);
      padding: 4px 6px;
      background: rgba(255,255,255,0.4);
      font-size: 10px;
      color: var(--muted-fg);
    }

    /* =========================================================
       INTERACTIVE HIGHLIGHT LISTS
       ========================================================= */
    .highlight-list {
      position: relative;
      isolation: isolate;
      display: grid;
      gap: var(--tight-2);
      padding: var(--tight-2);
      border: 1px solid var(--accent-border);
      border-radius: var(--radius);
      background: rgba(255,255,255,0.4);
      overflow: visible;
      z-index: 0;
    }
    .highlight-box {
      position: relative;
      padding: var(--tight);
      border-radius: var(--radius);
      /* DISCO ELYSIUM: Purple (Psyche) background for highlights */
      background: var(--purple-mauve);
      border: 1px solid var(--highlight-border);
      box-shadow: var(--shadow-1);
      color: #e0ded6;
      overflow: visible;
      transition:
        transform 0.16s ease,
        background 0.12s ease,
        filter 0.18s ease,
        box-shadow 0.18s ease;
    }
    .highlight-box:hover {
      background: var(--purple-mauve);
      transform: translateY(-1px) scale(1.015);
      filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
      z-index: 5;
      box-shadow: var(--shadow-3);
    }
    .highlight-box ul,
    .highlight-box ol {
      list-style: none;
      display: grid;
      gap: var(--tight-2);
      margin-top: var(--tight-2);
    }
    .highlight-item {
      position: relative;
      padding: 4px 6px;
      border: 1px dashed var(--accent-border);
      border-radius: var(--radius-sm);
      background: rgba(240, 238, 230, 0.85);
      color: #1a1a1a;
      transition:
        transform 0.16s ease,
        background 0.12s ease,
        color 0.12s ease,
        box-shadow 0.18s ease;
      will-change: transform;
      z-index: 1;
    }
    .highlight-item::before {
      content: "";
      position: absolute;
      inset: -2px;
      border-radius: inherit;
      border: 2px solid transparent;
      transition: border-color 0.18s ease;
      pointer-events: none;
    }
    .highlight-item:hover {
      transform: translate(2px, -2px) scale(1.06);
      color: #000;
      z-index: 6;
      box-shadow: var(--shadow-2);
      /* DISCO ELYSIUM: Orange border on hover */
      border-color: var(--salmon-pink);
    }
    .highlight-item:hover::before { border-color: rgba(235, 99, 50, 0.4); }
    .highlight-item .item-expand {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.22s ease, opacity 0.22s ease;
      opacity: 0.0;
      margin-top: var(--tight-2);
      border-top: 1px dotted var(--accent-border);
      padding-top: var(--tight-2);
      font-size: 10px;
    }
    .highlight-item:hover .item-expand { max-height: 100px; opacity: 1.0; }
    .highlight-box:hover .highlight-item { transform: translateY(-1px) scale(1.01); }

    /* =========================================================
       ACCORDION / TABS / CARDS (compact)
       ========================================================= */
    .accordion { display: grid; gap: var(--tight-2); }
    .accordion-item {
      border: 1px solid var(--accent-border);
      border-radius: var(--radius);
      background: rgba(255,255,255,0.6);
      overflow: hidden;
      transition: box-shadow 0.15s ease, transform 0.1s ease;
    }
    .accordion-item:hover { box-shadow: var(--shadow-2); transform: translateY(-1px); }
    .accordion-head {
      display: flex;
      align-items: center;
      gap: var(--tight-2);
      padding: 4px 6px;
      cursor: pointer;
      background: var(--muted-bg);
      border-bottom: 1px dashed var(--accent-border);
      font-size: 11px;
    }
    .accordion-body {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.24s ease, opacity 0.24s ease;
      opacity: 0.0;
      padding: 0 6px;
    }
    .accordion-item.open .accordion-body {
      max-height: 220px;
      opacity: 1.0;
      padding: 6px;
    }

    .tabs { display: grid; gap: var(--tight-2); }
    .tab-head { display: inline-flex; gap: var(--tight-2); flex-wrap: wrap; }
    .tab-button {
      border: 1px solid var(--accent-border);
      border-radius: var(--radius-sm);
      padding: 2px 6px;
      background: rgba(255,255,255,0.6);
      cursor: pointer;
      transition: transform 0.12s ease, background 0.12s ease;
      font-size: 11px;
      height: 22px;
    }
    .tab-button:hover { transform: translateY(-1px); background: var(--active-bg); }
    .tab-button.active { background: var(--salmon-pink); color: #fff; box-shadow: var(--shadow-1) inset; }
    .tab-panel {
      border: 1px dashed var(--accent-border);
      border-radius: var(--radius);
      background: rgba(255,255,255,0.5);
      padding: 6px;
      display: none;
      animation: panelFade 0.22s ease;
      font-size: 11px;
    }
    .tab-panel.active { display: block; }
    @keyframes panelFade {
      from { opacity: 0; transform: translateY(3px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--tight-2); }
    .card {
      border: 1px solid var(--accent-border);
      border-radius: var(--radius);
      padding: 6px;
      background: rgba(255,255,255,0.6);
      box-shadow: var(--shadow-1);
      transition: transform 0.12s ease, box-shadow 0.18s ease;
      min-height: 90px;
      font-size: 11px;
      display: grid;
      place-items: center;
    }
    .card:hover { transform: translateY(-2px) scale(1.02); box-shadow: var(--shadow-2); }

    /* =========================================================
       AD SLOTS / MEDIA / PANELS (cluttered grid)
       ========================================================= */
    .ad-slot {
      border: 2px dotted var(--accent-border);
      border-radius: var(--radius);
      background: rgba(255,255,255,0.4);
      min-height: 90px;
      display: grid;
      place-items: center;
      position: relative;
      overflow: hidden;
      font-size: 10px;
    }

    .media-strip {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: var(--tight-2);
    }
    .media-thumb {
      aspect-ratio: 4 / 3;
      border: 1px solid var(--accent-border);
      border-radius: var(--radius);
      background: rgba(255,255,255,0.5);
      box-shadow: var(--shadow-1);
      position: relative;
      overflow: hidden;
      display: grid;
      place-items: center;
      font-size: 10px;
    }
    .media-thumb::before {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(to bottom, rgba(255,255,255,0.2), transparent 60%);
      pointer-events: none;
    }

    .stacked-panels { display: grid; gap: var(--tight-2); }
    .panel {
      border: 1px solid var(--accent-border);
      border-radius: var(--radius);
      background: rgba(255,255,255,0.5);
      box-shadow: var(--shadow-1);
      padding: 6px;
      position: relative;
      overflow: hidden;
      font-size: 11px;
    }
    .ghost-line {
      position: absolute;
      left: 0; right: 0; height: 1px;
      background: rgba(0,0,0,0.15);
      filter: blur(0.2px);
      top: 0;
    }

    /* =========================================================
       FOOTER (dense)
       ========================================================= */
    .site-footer {
      margin: 12px 0 24px;
      border: 1px solid var(--accent-border);
      border-radius: var(--radius);
      /* DISCO ELYSIUM: Industrial dark rusty grey */
      background: #4a4a4a;
      color: #e0ded6;
      box-shadow: var(--shadow-1);
      padding: 6px;
      display: grid;
      gap: 6px;
      font-size: 11px;
    }
    .footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--tight-2); }
    .footer-cell {
      border: 1px dashed rgba(255,255,255,0.2);
      border-radius: var(--radius-sm);
      padding: 6px;
      background: rgba(255,255,255,0.1);
    }
    
    .lol {
      width: 105px;
      z-index: 100;
    }
    
    .lol:hover {
      width: 105px;
      z-index: 101;
      transform: rotate(-10deg) scale(1.02);
    }
    
    
    /* Limit journal list height and enable scrolling */
.journal-list {
  list-style: none;
  margin-top: 12px;
  display: grid;
  gap: var(--grid-gap);
  padding: 0;

  max-height: 90px;       /* fixed scrollable area */
  overflow-y: auto;       /* vertical scroll */
  overflow-x: hidden;     /* no horizontal scroll */
}

/* Optional: style scrollbars for WebKit browsers */
.journal-list::-webkit-scrollbar {
  width: 6px;
}
.journal-list::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.2);
}
.journal-list::-webkit-scrollbar-thumb {
  background-color: var(--salmon-pink);
  border: 1px solid var(--accent-border);
}


.journal-widget {
  border: 2px dashed var(--accent-border);
  border-radius: var(--radius);
  background: rgba(231,211,217,0.4);
  padding: 10px;
  max-width: 610px;
  margin: 12px auto;
  font-size: 12px;
  position: relative;
  isolation: isolate;
}

.journal-header {
  display: flex;
  align-items: center;
  gap: var(--tight-2);
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--accent-border);
}
.journal-title {
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 13px;
}
.journal-tools {
  margin-left: auto;
  display: inline-flex;
  gap: var(--tight-2);
}
.journal-tools .tool {
  border: 1px dashed var(--accent-border);
  border-radius: var(--radius-sm);
  padding: 2px 6px;
  background: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: transform 0.1s ease, background 0.1s ease;
  font-size: 11px;
  height: 22px;
}
.journal-tools .tool:hover {
  transform: translateY(-1px);
  background: var(--muted-bg);
}

.journal-form {
  display: grid;
  gap: var(--grid-gap);
  margin-top: 8px;
}
#journal-input {
  min-height: 100px;
  border: 1px dashed var(--accent-border);
  border-radius: var(--radius-sm);
  padding: 6px;
  font-size: 12px;
  background: rgba(255,255,255,0.7);
  box-shadow: inset 0 0 6px rgba(0,0,0,0.08);
  resize: none;
}
.journal-controls {
  display: inline-flex;
  gap: var(--tight-2);
}
.journal-add,
.journal-clear {
  padding: 4px 12px;
  border: 1px dashed var(--accent-border);
  border-radius: var(--radius-sm);
  background: var(--salmon-pink);
  cursor: pointer;
  font-size: 11px;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.journal-add:hover,
.journal-clear:hover {
  background: var(--muted-bg);
  transform: translateY(-1px) scale(1.05);
  box-shadow: var(--shadow-2);
}

.journal-search {
  margin-top: 8px;
}
#journal-search-input {
  width: 100%;
  border: 1px dashed var(--accent-border);
  border-radius: var(--radius-sm);
  padding: 6px;
  font-size: 12px;
  background: rgba(255,255,255,0.7);
}


.journal-entry {
  border: 1px dashed var(--accent-border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.6);
  padding: 8px;
  position: relative;
  max-width: 575px;
  box-shadow: var(--shadow-1);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.journal-entry .entry-text {
  white-space: pre-wrap;
  word-wrap: break-word;
}
.journal-entry .meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}
.journal-entry .timestamp {
  font-size: 10px;
  color: var(--muted-fg);
  font-style: italic;
}
.journal-entry .delete-btn {
  margin-left: auto;
  font-size: 10px;
  background: var(--muted-bg);
  border: 1px dashed var(--accent-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 2px 6px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.journal-entry .delete-btn:hover {
  background: var(--salmon-pink);
  transform: translateY(-1px);
}

.journal-footer {
  margin-top: 10px;
  border-top: 1px dashed var(--accent-border);
  padding-top: 6px;
}

/* Empty state */
.journal-empty {
  border: 1px dashed var(--accent-border);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.4);
  padding: 8px;
  text-align: center;
  color: var(--muted-fg);
}



    /* =========================================================
       Utility classes (compact)
       ========================================================= */
    .visually-hidden { position: absolute; clip: rect(0 0 0 0); clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
    .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--tight-2); }
    .grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--tight-2); }
    .grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--tight-2); }
    .stack-4 { display: grid; gap: var(--tight-2); }
    .stack-6 { display: grid; gap: 6px; }
    .pad { padding: 6px; }
    .pad-sm { padding: 4px; }
    .muted { color: var(--muted-fg); }
    .tiny { font-size: 10px; }
    .center { display: grid; place-items: center; }
    .spacer { height: 6px; }
    .ghost { opacity: 0.78; filter: grayscale(0.15); }

    /* =========================================================
       Cursor light
       ========================================================= */
    .cursor-light {
      position: fixed;
      top: 0; left: 0;
      width: 90px; height: 90px;
      border-radius: 50%;
      pointer-events: none;
      /* DISCO ELYSIUM: The "Pale" glow - Eerie white-blue */
      background: radial-gradient(circle, rgba(230, 240, 255, 0.45) 0%, rgba(200, 220, 255, 0.25) 35%, transparent 70%);
      transform: translate(-50%, -50%);
      mix-blend-mode: screen;
      z-index: 9999;
      filter: blur(0.5px) saturate(1.05);
    }