/* ============================================================
   pyramid2000 shared site styles
   Generated from former per-page style blocks.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700;900&display=swap');

:root {
  --stone-dark:   #1e1810;
  --stone-mid:    #3a2e1a;
  --stone-light:  #5a4a2a;
  --gold:         #c8a84b;
  --gold-bright:  #e8c84e;
  --gold-pale:    #f0d9a0;
  --cream:        #faf5e8;
  --terra:        #b85c2c;
  --terra-bright: #d4742e;
  --text:         #1e1a10;
  --text-light:   #f0d9a0;
  --border:       #8a7040;
  --font-title:   Georgia, 'Times New Roman', serif;
  --font-body:    'Helvetica Neue', Arial, sans-serif;
  --radius:       3px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* pyramid.html */
body.pyramid-home *, body.pyramid-home *::before, body.pyramid-home *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.pyramid-home {
      font-family: var(--font-body);
      font-size: 16px;
      line-height: 1.65;
      color: var(--text);
      background:
        radial-gradient(circle at 18% 0%, rgba(200,168,75,0.16), transparent 26rem),
        radial-gradient(circle at 84% 8%, rgba(184,92,44,0.12), transparent 30rem),
        linear-gradient(180deg, #fff8e6 0%, var(--cream) 42%, #ead9b2 100%);
    }

body.pyramid-home img { max-width: 100%; height: auto; display: block; }

body.pyramid-home a { color: var(--terra); text-decoration: underline; }

body.pyramid-home a:hover { color: var(--terra-bright); }

body.pyramid-home h1, body.pyramid-home h2, body.pyramid-home h3 { font-family: var(--font-title); line-height: 1.2; }

body.pyramid-home .site-nav {
      background: var(--stone-dark);
      border-bottom: 3px solid var(--gold);
      position: sticky;
      top: 0;
      z-index: 100;
    }

body.pyramid-home .nav-inner {
      max-width: 900px;
      margin: 0 auto;
      padding: 0 clamp(1.5rem, 3vw, 2.25rem);
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 56px;
    }

body.pyramid-home .nav-logo {
      font-family: 'Cinzel', var(--font-title);
      font-variant-numeric: lining-nums;
      font-feature-settings: "lnum" 1;
      font-size: 1.3rem;
      color: var(--gold-bright);
      text-decoration: none;
      letter-spacing: 3px;
      text-transform: uppercase;
    }

body.pyramid-home .nav-links {
      display: flex;
      gap: 1.5rem;
      list-style: none;
    }

body.pyramid-home .nav-links a {
      color: var(--gold-pale);
      text-decoration: none;
      font-size: 0.9rem;
      letter-spacing: 0.5px;
      text-transform: uppercase;
      transition: color 0.2s;
    }

body.pyramid-home .nav-links a:hover { color: #fff; }

body.pyramid-home .nav-toggle {
      display: none;
      background: none;
      border: none;
      cursor: pointer;
      padding: 4px;
    }

body.pyramid-home .nav-toggle span {
      display: block;
      width: 24px;
      height: 2px;
      background: var(--gold-pale);
      margin: 5px 0;
      transition: 0.3s;
    }

@media (max-width: 640px) {
body.pyramid-home .nav-toggle { display: block; }

body.pyramid-home .nav-inner { padding: 0 1.5rem; }

body.pyramid-home .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 56px;
        left: 0; right: 0;
        background: var(--stone-dark);
        border-bottom: 3px solid var(--gold);
        padding: 1rem 1.5rem;
        gap: 0.75rem;
      }

body.pyramid-home .nav-links.open { display: flex; }

}

body.pyramid-home .hero {
      background:
        radial-gradient(circle at 50% 8%, rgba(232,200,78,0.18), transparent 22rem),
        radial-gradient(circle at 80% 72%, rgba(184,92,44,0.16), transparent 28rem),
        linear-gradient(180deg, #1e1810 0%, var(--stone-mid) 68%, #5a3a24 100%);
      color: var(--text-light);
      padding: 3rem 1.5rem 0;
      text-align: center;
      position: relative;
      overflow: hidden;
    }

body.pyramid-home .hero::before {
      content: '';
      position: absolute;
      inset: 0;
      background-image:
        radial-gradient(1px 1px at 20% 30%, rgba(200,168,75,0.15) 0%, transparent 100%),
        radial-gradient(1px 1px at 80% 10%, rgba(200,168,75,0.1) 0%, transparent 100%),
        radial-gradient(1px 1px at 55% 60%, rgba(200,168,75,0.12) 0%, transparent 100%);
      pointer-events: none;
    }

body.pyramid-home .hero-title {
      font-family: 'Cinzel', var(--font-title);
      font-size: clamp(2.4rem, 6vw, 4rem);
      font-variant-numeric: lining-nums;
      font-feature-settings: "lnum" 1;
      color: var(--gold-bright);
      letter-spacing: 6px;
      text-transform: uppercase;
      text-shadow: 2px 2px 0 #000, 0 0 40px rgba(200,168,75,0.4);
      margin-bottom: 0.5rem;
    }

body.pyramid-home .hero-subtitle {
      font-family: var(--font-title);
      font-size: clamp(0.9rem, 2.5vw, 1.2rem);
      color: var(--gold-pale);
      letter-spacing: 1px;
      margin-bottom: 2.5rem;
      line-height: 1.45;
    }

body.pyramid-home .hero-covers {
      display: flex;
      justify-content: center;
      gap: 2rem;
      flex-wrap: wrap;
      padding-bottom: 0;
    }

body.pyramid-home .hero-covers figure {
      text-align: center;
    }

body.pyramid-home .hero-covers img {
      height: 500px;
      width: auto;
      border: 3px solid var(--border);
      box-shadow: 4px 4px 20px rgba(0,0,0,0.7);
      cursor: zoom-in;
      transition: transform 0.2s, box-shadow 0.2s;
    }

body.pyramid-home .hero-covers img:hover {
      transform: translateY(-4px);
      box-shadow: 4px 8px 28px rgba(0,0,0,0.8);
    }

body.pyramid-home .hero-covers figcaption {
      margin-top: 0.5rem;
      font-size: 0.78rem;
      color: var(--gold-pale);
      letter-spacing: 0.3px;
      padding-bottom: 1.5rem;
    }

body.pyramid-home .hero-dune {
      display: block;
      width: 100%;
      height: 48px;
      background: var(--stone-dark);
      position: relative;
    }

body.pyramid-home .hero-dune::after {
      content: '';
      position: absolute;
      bottom: 0; left: 0; right: 0;
      height: 48px;
      background: var(--cream);
      clip-path: ellipse(55% 100% at 50% 100%);
    }

body.pyramid-home .container {
      max-width: 900px;
      margin: 0 auto;
      padding: 0 1.5rem;
    }

body.pyramid-home .section {
      padding: 1.5rem 0;
    }

body.pyramid-home .section .container {
      background: rgba(255, 250, 235, 0.76);
      border: 1px solid #ddd0b0;
      border-top: 3px solid var(--gold);
      border-radius: var(--radius);
      box-shadow: 0 12px 30px rgba(30,24,16,0.12);
      padding: clamp(1.5rem, 3vw, 2.25rem);
    }

body.pyramid-home .section h2 {
      font-size: clamp(1.4rem, 4vw, 2rem);
      color: var(--stone-dark);
      margin-bottom: 1rem;
    }

body.pyramid-home .section h3 {
      font-size: 1.15rem;
      color: var(--stone-dark);
      margin: 1.5rem 0 0.6rem;
    }

body.pyramid-home .section p { margin-bottom: 1rem; }

body.pyramid-home .section p:last-child { margin-bottom: 0; }

body.pyramid-home .about-pull {
      font-family: var(--font-title);
      font-size: 1.1rem;
      color: #444;
      margin-bottom: 1.25rem;
      font-style: italic;
    }

body.pyramid-home .info-table {
      width: 100%;
      border-collapse: collapse;
      font-family: var(--font-body);
      font-size: 0.92rem;
      margin: 1.2rem 0;
    }

body.pyramid-home .info-table td {
      padding: 0.5rem 0.75rem;
      border: 1px solid var(--border);
      background: rgba(255,248,230,0.66);
      vertical-align: top;
    }

body.pyramid-home .info-table td:first-child {
      color: var(--stone-dark);
      font-weight: 700;
      white-space: nowrap;
      background: rgba(200,168,75,0.14);
      width: 35%;
    }

body.pyramid-home #play .container {
      text-align: center;
    }

body.pyramid-home .play-block {
      margin-bottom: 2.5rem;
    }

body.pyramid-home .play-block:last-child { margin-bottom: 0; }

body.pyramid-home .play-block h3 {
      font-family: var(--font-title);
      font-size: 1.2rem;
      color: var(--stone-dark);
      border-bottom: 2px solid var(--gold);
      padding-bottom: 0.4rem;
      margin-bottom: 1rem;
    }

body.pyramid-home .play-wrapper {
      display: flex;
      gap: 2rem;
      align-items: flex-start;
      justify-content: center;
      flex-wrap: wrap;
    }

body.pyramid-home .console-wrap {
      flex-shrink: 0;
      text-align: center;
      width: 100%;
    }

body.pyramid-home .console-trs {
      background-color: #000;
      color: #fff;
      font-family: monospace;
      font-size: 16px;
      width: 65ch;
      max-width: 100%;
      border: 3px solid var(--stone-mid);
      resize: none;
      padding: 6px;
      display: block;
      margin-left: auto;
      margin-right: auto;
    }

body.pyramid-home .console-coco {
      background-color: #00FF01;
      color: #000;
      font-family: monospace;
      font-size: 16px;
      width: 33ch;
      max-width: 100%;
      border: 3px solid var(--stone-mid);
      resize: none;
      padding: 6px;
      display: block;
      margin-left: auto;
      margin-right: auto;
    }

body.pyramid-home .tape-area {
      font-size: 8px;
      width: 100%;
      max-width: 65ch;
      display: block;
      margin-top: 0.5rem;
      margin-left: auto;
      margin-right: auto;
    }

body.pyramid-home .console-hint {
      font-size: 0.8rem;
      color: #666;
      margin-top: 0.4rem;
    }

body.pyramid-home .tape-info {
      background: #fff;
      border-left: 4px solid var(--gold);
      padding: 0.85rem 1rem;
      font-size: 0.88rem;
      margin-top: 0.75rem;
      max-width: 65ch;
      margin-left: auto;
      margin-right: auto;
      text-align: left;
    }

body.pyramid-home .tape-info p { margin-bottom: 0.4rem; }

body.pyramid-home .tape-info p:last-child { margin-bottom: 0; }

body.pyramid-home .key-table {
      border-collapse: collapse;
      font-size: 0.82rem;
      min-width: 260px;
    }

body.pyramid-home .key-table th, body.pyramid-home .key-table td {
      border: 1px solid var(--border);
      padding: 5px 10px;
      text-align: left;
    }

body.pyramid-home .key-table th {
      background: var(--stone-mid);
      color: var(--gold-pale);
    }

body.pyramid-home .key-table tr:nth-child(even) td { background: #e8e0cc; }

body.pyramid-home .also-play {
      margin-top: 1.25rem;
      padding: 1rem;
      background: #fff;
      border-left: 4px solid var(--stone-light);
      font-size: 0.9rem;
    }

body.pyramid-home .resource-list {
      display: inline-block;
      list-style: none;
      margin: 0.35rem auto 0.9rem;
      max-width: 42rem;
      text-align: left;
      width: min(100%, 42rem);
    }

body.pyramid-home #play .resource-heading {
      text-align: left;
      width: min(100%, 42rem);
      margin-left: auto;
      margin-right: auto;
    }

body.pyramid-home .indented-resource-list {
      padding-left: 1.5rem;
    }

body.pyramid-home .resource-list li {
      padding: 0.28rem 0;
      font-size: 0.95rem;
    }

body.pyramid-home .card-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 1rem;
      margin-top: 1rem;
    }

body.pyramid-home .card {
      background: #fff;
      border: 1px solid #ddd0b0;
      border-top: 3px solid var(--gold);
      border-radius: var(--radius);
      padding: 1.25rem;
    }

body.pyramid-home .card h3 {
      font-size: 1rem;
      color: var(--stone-dark);
      margin-bottom: 0.5rem;
    }

body.pyramid-home .card p, body.pyramid-home .card a {
      font-size: 0.88rem;
    }

body.pyramid-home .card a { display: block; margin-bottom: 0.25rem; word-break: break-all; }

body.pyramid-home .btn {
      display: inline-block;
      background: var(--stone-mid);
      color: var(--cream) !important;
      text-decoration: none;
      padding: 0.6rem 1.4rem;
      border-radius: var(--radius);
      font-size: 0.9rem;
      font-weight: bold;
      letter-spacing: 0.5px;
      transition: background 0.2s;
      margin-top: 0.5rem;
    }

body.pyramid-home .btn:hover { background: var(--stone-light); }

body.pyramid-home .btn-gold {
      background: var(--terra);
    }

body.pyramid-home .btn-gold:hover { background: var(--terra-bright); }

body.pyramid-home .other-games {
      background: var(--stone-dark);
      color: var(--gold-pale);
      padding: 2.5rem 1.5rem;
    }

body.pyramid-home .other-games .container {
      max-width: none;
      text-align: center;
    }

body.pyramid-home .other-games h2 {
      font-family: var(--font-title);
      font-size: 1.05rem;
      color: var(--gold-pale);
      letter-spacing: 1.5px;
      text-transform: uppercase;
      margin-bottom: 1.25rem;
    }

body.pyramid-home .games-grid {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 1rem;
      padding-bottom: 0.25rem;
    }

body.pyramid-home .games-grid a {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.5rem;
      text-decoration: none;
      color: var(--gold-pale);
      width: min(220px, 86vw);
      flex: 0 1 220px;
      font-size: 0.82rem;
      line-height: 1.3;
      transition: opacity 0.2s, transform 0.2s;
    }

body.pyramid-home .games-grid a:hover { opacity: 0.85; transform: translateY(-3px); }

body.pyramid-home .games-grid img {
      width: 100%;
      max-width: 220px;
      height: auto;
      border: 1px solid var(--border);
      border-radius: 5px;
      box-shadow: 0 3px 10px rgba(0,0,0,0.5);
      display: block;
    }

body.pyramid-home .site-footer {
      background: #111;
      color: #888;
      text-align: center;
      padding: 1.25rem;
      font-size: 0.8rem;
    }

body.pyramid-home .site-footer a { color: #aaa; }

body.pyramid-home .lightbox-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.93);
      z-index: 999;
      align-items: center;
      justify-content: center;
      cursor: zoom-out;
      padding: 1rem;
    }

body.pyramid-home .lightbox-overlay.open { display: flex; }

body.pyramid-home .lightbox-inner {
      display: flex;
      gap: 1.5rem;
      align-items: flex-start;
      justify-content: center;
      cursor: default;
      max-width: 96vw;
      max-height: 92vh;
      overflow: auto;
    }

body.pyramid-home .lightbox-inner img {
      max-height: 88vh;
      max-width: 46vw;
      width: auto;
      height: auto;
      border: 3px solid var(--border);
      box-shadow: 0 8px 40px rgba(0,0,0,0.8);
      flex-shrink: 0;
    }

body.pyramid-home .lightbox-close {
      position: fixed;
      top: 1rem;
      right: 1.25rem;
      color: #fff;
      font-size: 2.5rem;
      line-height: 1;
      cursor: pointer;
      background: none;
      border: none;
      opacity: 0.8;
      z-index: 1000;
    }

body.pyramid-home .lightbox-close:hover { opacity: 1; }

@media (max-width: 700px) {
body.pyramid-home .hero-covers {
      flex-direction: column;
      align-items: center;
      gap: 1.5rem;
    }

body.pyramid-home .hero-covers figure {
      width: 100%;
      text-align: center;
    }

body.pyramid-home .hero-covers img {
      height: 320px;
      margin-left: auto;
      margin-right: auto;
    }

body.pyramid-home .console-trs { width: 100%; font-size: 13px; }
body.pyramid-home .tape-area { max-width: 100%; }
body.pyramid-home .lightbox-inner img { max-width: 90vw; }
body.pyramid-home .games-grid { gap: 0.85rem; }
body.pyramid-home .games-grid a { font-size: 0.68rem; }
}

/* manual.html */
body.pyramid-manual *, body.pyramid-manual *::before, body.pyramid-manual *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.pyramid-manual {
      font-family: var(--font-body);
      font-size: 16px;
      line-height: 1.7;
      color: var(--text);
      background:
        radial-gradient(circle at 18% 0%, rgba(200,168,75,0.16), transparent 26rem),
        radial-gradient(circle at 84% 8%, rgba(184,92,44,0.12), transparent 30rem),
        linear-gradient(180deg, #fff8e6 0%, var(--cream) 42%, #ead9b2 100%);
    }

body.pyramid-manual img { max-width: 100%; height: auto; display: block; }

body.pyramid-manual a { color: var(--terra); text-decoration: underline; }

body.pyramid-manual a:hover { color: var(--terra-bright); }

body.pyramid-manual h1, body.pyramid-manual h2, body.pyramid-manual h3, body.pyramid-manual h4 { font-family: var(--font-title); line-height: 1.25; }

body.pyramid-manual .site-nav { background: var(--stone-dark); border-bottom: 3px solid var(--gold); position: sticky; top: 0; z-index: 100; }

body.pyramid-manual .nav-inner { max-width: 820px; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; height: 56px; }

body.pyramid-manual .nav-logo { font-family: 'Cinzel', var(--font-title); font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; font-size: 1.3rem; color: var(--gold-bright); text-decoration: none; letter-spacing: 3px; text-transform: uppercase; }

body.pyramid-manual .nav-links { display: flex; gap: 1.5rem; list-style: none; }

body.pyramid-manual .nav-links a { color: var(--gold-pale); text-decoration: none; font-size: 0.9rem; letter-spacing: 0.5px; text-transform: uppercase; transition: color 0.2s; }

body.pyramid-manual .nav-links a:hover { color: #fff; }

body.pyramid-manual .nav-links a.active { color: var(--gold-bright); border-bottom: 2px solid var(--gold); }

body.pyramid-manual .nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }

body.pyramid-manual .nav-toggle span { display: block; width: 24px; height: 2px; background: var(--gold-pale); margin: 5px 0; }

@media (max-width: 640px) {
body.pyramid-manual .nav-toggle { display: block; }

body.pyramid-manual .nav-links { display: none; flex-direction: column; position: absolute; top: 56px; left: 0; right: 0; background: var(--stone-dark); border-bottom: 3px solid var(--gold); padding: 1rem 1.5rem; gap: 0.75rem; }

body.pyramid-manual .nav-links.open { display: flex; }

}

body.pyramid-manual .page-header {
      background:
        radial-gradient(circle at 50% 8%, rgba(232,200,78,0.18), transparent 22rem),
        radial-gradient(circle at 80% 72%, rgba(184,92,44,0.16), transparent 28rem),
        linear-gradient(180deg, #1e1810 0%, var(--stone-mid) 68%, #5a3a24 100%);
      padding: 3rem 1.5rem 2.5rem;
      text-align: center;
      border-bottom: 3px solid var(--gold);
    }

body.pyramid-manual .page-header h1 {
      font-family: 'Cinzel', var(--font-title);
      font-variant-numeric: lining-nums;
      font-feature-settings: "lnum" 1;
      font-size: clamp(2.4rem, 6vw, 4rem);
      line-height: 1.1;
      color: var(--gold-bright);
      letter-spacing: 6px;
      text-transform: uppercase;
      text-shadow: 2px 2px 0 #000, 0 0 40px rgba(200,168,75,0.4);
      margin-bottom: 0.4rem;
    }

body.pyramid-manual .page-header p { color: var(--gold-pale); font-style: italic; font-family: var(--font-title); }

body.pyramid-manual .container { max-width: 820px; margin: 0 auto; padding: 0 1.5rem; }

body.pyramid-manual .manual-toc {
      background: #f0ead6;
      border: 1px solid #ddd0b0;
      border-top: 3px solid var(--gold);
      border-radius: var(--radius);
      padding: 1.25rem 1.5rem;
      margin: 2rem 0;
    }

body.pyramid-manual .manual-toc h2 { font-size: 1rem; color: var(--stone-dark); margin-bottom: 0.75rem; }

body.pyramid-manual .manual-toc ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; }

body.pyramid-manual .manual-toc li { font-size: 0.9rem; }

body.pyramid-manual .manual-version {
      padding: 2.5rem 0;
      border-bottom: 2px solid #ddd0b0;
    }

body.pyramid-manual .manual-version:last-child { border-bottom: none; }

body.pyramid-manual .manual-jump-links {
      display: flex;
      gap: 0.75rem;
      justify-content: center;
      flex-wrap: wrap;
      margin: 2rem 0 0;
    }

body.pyramid-manual .manual-jump-links a {
      background: var(--stone-mid);
      border: 1px solid var(--stone-dark);
      border-radius: var(--radius);
      color: var(--gold);
      font-size: 0.9rem;
      font-weight: bold;
      padding: 0.55rem 1rem;
      text-decoration: none;
      transition: background 0.2s, border-color 0.2s;
    }

body.pyramid-manual .manual-jump-links a:hover {
      background: var(--stone-dark);
      border-color: var(--gold);
      text-decoration: none;
    }

body.pyramid-manual .manual-about {
      background: #f0ead6;
      border: 1px solid #ddd0b0;
      border-top: 3px solid var(--gold);
      border-radius: var(--radius);
      padding: 1.25rem 1.5rem;
      margin-bottom: 2rem;
    }

body.pyramid-manual .manual-about-layout {
      display: flex;
      gap: 1rem;
      align-items: center;
      flex-wrap: wrap;
    }

body.pyramid-manual .manual-cover-link {
      display: block;
      flex: 0 0 auto;
      color: inherit;
      text-decoration: none;
    }

body.pyramid-manual .manual-cover-link img {
      width: min(120px, 36vw);
      aspect-ratio: 3 / 4;
      object-fit: contain;
      background: #d8c9a8;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      box-shadow: 0 8px 18px rgba(30,24,16,0.25);
    }

body.pyramid-manual .manual-about-text {
      flex: 1 1 260px;
      align-self: center;
    }

body.pyramid-manual .manual-solution-cta {
      text-align: center;
      margin: 1rem 0 2.5rem;
    }

body.pyramid-manual .manual-solution-button {
      display: inline-block;
      background: var(--stone-mid);
      border: 1px solid var(--stone-dark);
      border-radius: var(--radius);
      color: var(--gold);
      font-size: 0.92rem;
      font-weight: bold;
      padding: 0.55rem 1.05rem;
      text-decoration: none;
      transition: background 0.18s, border-color 0.18s, transform 0.18s;
    }

body.pyramid-manual .manual-solution-button:hover {
      background: var(--stone-dark);
      border-color: var(--gold);
      color: var(--gold);
      text-decoration: none;
      transform: translateY(-1px);
    }

body.pyramid-manual .manual-about-toc {
      background: transparent;
      border: 0;
      border-top: 1px solid #ddd0b0;
      border-radius: 0;
      padding: 1rem 0 0;
      margin: 1rem 0 0;
    }

body.pyramid-manual .manual-about-toc h3 {
      margin-top: 0;
    }

body.pyramid-manual .version-badge {
      display: inline-block;
      background: var(--stone-mid);
      color: var(--gold);
      font-size: 0.68rem;
      font-weight: bold;
      letter-spacing: 2.5px;
      text-transform: uppercase;
      padding: 2px 10px;
      margin-bottom: 0.75rem;
      border-radius: var(--radius);
    }

body.pyramid-manual .manual-version h2 {
      font-size: clamp(1.3rem, 3.5vw, 1.8rem);
      color: var(--stone-dark);
      margin-bottom: 1.5rem;
      padding-bottom: 0.5rem;
      border-bottom: 2px solid var(--gold);
    }

body.pyramid-manual .manual-version h3 {
      font-size: 1.1rem;
      color: var(--stone-mid);
      margin: 1.5rem 0 0.5rem;
    }

body.pyramid-manual .manual-version p { margin-bottom: 1rem; }

body.pyramid-manual .manual-version ol, body.pyramid-manual .manual-version ul { margin: 0.5rem 0 1rem 1.5rem; }

body.pyramid-manual .manual-version li { margin-bottom: 0.4rem; }

body.pyramid-manual code { background: #e8e0cc; border: 1px solid #c9b071; padding: 1px 5px; border-radius: 3px; font-family: monospace; font-size: 0.9em; }

body.pyramid-manual .manual-covers {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 240px));
      gap: 1rem;
      align-items: start;
      justify-content: start;
      margin: 0 0 1.5rem;
    }

body.pyramid-manual .manual-covers figure {
      background: #f0ead6;
      border: 1px solid #ddd0b0;
      border-radius: var(--radius);
      padding: 0.75rem;
    }

body.pyramid-manual .manual-covers a {
      display: block;
      color: inherit;
      text-decoration: none;
    }

body.pyramid-manual .manual-covers img {
      width: 100%;
      aspect-ratio: 3 / 4;
      object-fit: contain;
      background: #d8c9a8;
      border: 1px solid var(--border);
      box-shadow: 0 3px 10px rgba(30,24,16,0.25);
    }

body.pyramid-manual .manual-covers figcaption {
      margin-top: 0.5rem;
      color: var(--stone-mid);
      font-size: 0.82rem;
      font-weight: bold;
      line-height: 1.35;
      text-align: center;
    }

body.pyramid-manual .other-games { background: var(--stone-dark); color: var(--gold-pale); padding: 2.5rem 1.5rem; }

body.pyramid-manual .other-games .container { max-width: none; text-align: center; }

body.pyramid-manual .other-games h2 { font-family: var(--font-title); font-size: 1.05rem; color: var(--gold-pale); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 1.25rem; }

body.pyramid-manual .games-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; padding-bottom: 0.25rem; }

body.pyramid-manual .games-grid a { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--gold-pale); width: min(220px, 86vw); flex: 0 1 220px; font-size: 0.82rem; line-height: 1.3; transition: opacity 0.2s, transform 0.2s; }

body.pyramid-manual .games-grid a:hover { opacity: 0.85; transform: translateY(-3px); }

body.pyramid-manual .games-grid img { width: 100%; max-width: 220px; height: auto; border: 1px solid var(--border); border-radius: 5px; box-shadow: 0 3px 10px rgba(0,0,0,0.5); display: block; }

@media (max-width: 640px) {
body.pyramid-manual .games-grid { gap: 0.85rem; }

body.pyramid-manual .games-grid a { font-size: 0.68rem; }

}

body.pyramid-manual .site-footer { background: #111; color: #888; text-align: center; padding: 1.25rem; font-size: 0.8rem; }

body.pyramid-manual .site-footer a { color: #aaa; }

/* solution.html */
body.pyramid-solution *, body.pyramid-solution *::before, body.pyramid-solution *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.pyramid-solution {
      font-family: var(--font-body);
      font-size: 16px;
      line-height: 1.7;
      color: var(--text);
      background:
        radial-gradient(circle at 18% 0%, rgba(200,168,75,0.16), transparent 26rem),
        radial-gradient(circle at 84% 8%, rgba(184,92,44,0.12), transparent 30rem),
        linear-gradient(180deg, #fff8e6 0%, var(--cream) 42%, #ead9b2 100%);
    }

body.pyramid-solution img { max-width: 100%; height: auto; display: block; }

body.pyramid-solution a { color: var(--terra); text-decoration: underline; }

body.pyramid-solution a:hover { color: var(--terra-bright); }

body.pyramid-solution h1, body.pyramid-solution h2, body.pyramid-solution h3, body.pyramid-solution h4 { font-family: var(--font-title); line-height: 1.25; }

body.pyramid-solution code { background: #e8e0cc; padding: 1px 5px; border-radius: 2px; font-family: monospace; font-size: 0.9em; }

body.pyramid-solution em { font-style: italic; }

body.pyramid-solution strong { font-weight: bold; }

body.pyramid-solution .site-nav { background: var(--stone-dark); border-bottom: 3px solid var(--gold); position: sticky; top: 0; z-index: 100; }

body.pyramid-solution .nav-inner { max-width: 820px; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; height: 56px; }

body.pyramid-solution .nav-logo { font-family: 'Cinzel', var(--font-title); font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; font-size: 1.3rem; color: var(--gold-bright); text-decoration: none; letter-spacing: 3px; text-transform: uppercase; }

body.pyramid-solution .nav-links { display: flex; gap: 1.5rem; list-style: none; }

body.pyramid-solution .nav-links a { color: var(--gold-pale); text-decoration: none; font-size: 0.9rem; letter-spacing: 0.5px; text-transform: uppercase; transition: color 0.2s; }

body.pyramid-solution .nav-links a:hover { color: #fff; }

body.pyramid-solution .nav-links a.active { color: var(--gold-bright); border-bottom: 2px solid var(--gold); }

body.pyramid-solution .nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }

body.pyramid-solution .nav-toggle span { display: block; width: 24px; height: 2px; background: var(--gold-pale); margin: 5px 0; }

@media (max-width: 640px) {
body.pyramid-solution .nav-toggle { display: block; }

body.pyramid-solution .nav-links { display: none; flex-direction: column; position: absolute; top: 56px; left: 0; right: 0; background: var(--stone-dark); border-bottom: 3px solid var(--gold); padding: 1rem 1.5rem; gap: 0.75rem; }

body.pyramid-solution .nav-links.open { display: flex; }

}

body.pyramid-solution .page-header {
      background:
        radial-gradient(circle at 50% 8%, rgba(232,200,78,0.18), transparent 22rem),
        radial-gradient(circle at 80% 72%, rgba(184,92,44,0.16), transparent 28rem),
        linear-gradient(180deg, #1e1810 0%, var(--stone-mid) 68%, #5a3a24 100%);
      padding: 3rem 1.5rem 2.5rem;
      text-align: center;
      border-bottom: 3px solid var(--gold);
    }

body.pyramid-solution .page-header h1 { font-family: 'Cinzel', var(--font-title); font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.1; color: var(--gold-bright); letter-spacing: 6px; text-transform: uppercase; text-shadow: 2px 2px 0 #000, 0 0 40px rgba(200,168,75,0.4); margin-bottom: 0.4rem; }

body.pyramid-solution .page-header p { color: var(--gold-pale); font-style: italic; font-family: var(--font-title); }

body.pyramid-solution .container { max-width: 820px; margin: 0 auto; padding: 0 1.5rem; }

body.pyramid-solution .spoiler-warning {
      background: #b43a2f;
      color: #fff;
      border-radius: var(--radius);
      padding: 0.75rem 1.25rem;
      margin: 2rem 0;
      font-size: 0.9rem;
      text-align: center;
    }

body.pyramid-solution .spoiler-warning strong { color: inherit; }

body.pyramid-solution .attribution {
      background: #f0ead6;
      border: 1px solid #ddd0b0;
      border-radius: var(--radius);
      padding: 1rem 1.25rem;
      margin: 1.5rem 0;
      font-size: 0.88rem;
    }

body.pyramid-solution .attribution p { margin-bottom: 0.3rem; }

body.pyramid-solution .attribution p:last-child { margin-bottom: 0; }

body.pyramid-solution .solution-toc {
      background: #f0ead6;
      border: 1px solid #ddd0b0;
      border-top: 3px solid var(--gold);
      border-radius: var(--radius);
      padding: 1.25rem 1.5rem;
      margin: 1.5rem 0 2.5rem;
    }

body.pyramid-solution .solution-toc h2 { font-size: 1rem; color: var(--stone-dark); margin-bottom: 0.75rem; }

body.pyramid-solution .solution-toc ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; }

body.pyramid-solution .solution-toc li { font-size: 0.9rem; }

body.pyramid-solution .solution-part {
      padding: 2.5rem 0;
      border-bottom: 2px solid #ddd0b0;
    }

body.pyramid-solution .solution-part:last-child { border-bottom: none; }

body.pyramid-solution .part-badge {
      display: inline-block;
      background: var(--stone-mid);
      color: var(--gold);
      font-size: 0.68rem;
      font-weight: bold;
      letter-spacing: 2.5px;
      text-transform: uppercase;
      padding: 2px 10px;
      margin-bottom: 0.75rem;
      border-radius: var(--radius);
    }

body.pyramid-solution .solution-part h2 {
      font-size: clamp(1.3rem, 3.5vw, 1.8rem);
      color: var(--stone-dark);
      margin-bottom: 1rem;
      padding-bottom: 0.5rem;
      border-bottom: 2px solid var(--gold);
    }

body.pyramid-solution .solution-part > .container > p { margin-bottom: 1rem; }

body.pyramid-solution .map-figure {
      margin: 1.5rem 0;
      text-align: center;
    }

body.pyramid-solution .zoomable {
      cursor: zoom-in;
      transition: opacity 0.2s;
    }

body.pyramid-solution .zoomable:hover { opacity: 0.88; }

body.pyramid-solution .lightbox-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.88);
      z-index: 999;
      justify-content: center;
      align-items: center;
      cursor: zoom-out;
    }

body.pyramid-solution .lightbox-overlay.open { display: flex; }

body.pyramid-solution .lightbox-overlay img {
      max-width: 90vw;
      max-height: 90vh;
      height: auto;
      border: 2px solid var(--border);
      border-radius: var(--radius);
      box-shadow: 0 0 60px rgba(0,0,0,0.8);
    }

body.pyramid-solution .lightbox-close {
      position: absolute;
      top: 1rem;
      right: 1.25rem;
      color: var(--gold-pale);
      font-size: 2rem;
      line-height: 1;
      cursor: pointer;
      background: none;
      border: none;
      font-family: var(--font-title);
    }

body.pyramid-solution .map-figure img {
      max-width: 100%;
      border: 2px solid var(--border);
      border-radius: var(--radius);
      box-shadow: 2px 2px 12px rgba(0,0,0,0.2);
      display: inline-block;
    }

body.pyramid-solution .map-figure figcaption {
      font-size: 0.82rem;
      color: #666;
      margin-top: 0.5rem;
      font-style: italic;
    }

body.pyramid-solution .map-figure figcaption a { font-size: 0.82rem; }

body.pyramid-solution .screenshot {
      margin: 1.25rem 0;
      text-align: center;
    }

body.pyramid-solution .screenshot img {
      max-width: 100%;
      border: 2px solid var(--border);
      display: inline-block;
    }

body.pyramid-solution .qa-list { list-style: none; margin: 1rem 0; }

body.pyramid-solution .qa-item { margin-bottom: 1.75rem; }

body.pyramid-solution .qa-item strong {
      display: block;
      font-family: var(--font-title);
      font-size: 1.05rem;
      color: var(--stone-dark);
      margin-bottom: 0.4rem;
    }

body.pyramid-solution .qa-item p { margin-bottom: 0.75rem; }

body.pyramid-solution .qa-item p:last-child { margin-bottom: 0; }

body.pyramid-solution .win-screens {
      display: flex;
      flex-wrap: wrap;
      gap: 1.5rem;
      justify-content: center;
      margin: 1.5rem 0;
    }

body.pyramid-solution .win-screens figure { text-align: center; }

body.pyramid-solution .win-screens img { border: 2px solid var(--border); max-width: 100%; }

body.pyramid-solution .win-screens figcaption { font-size: 0.82rem; color: #666; margin-top: 0.4rem; }

body.pyramid-solution .spaced-paragraph { margin-top: 1rem; }

body.pyramid-solution .other-games { background: var(--stone-dark); color: var(--gold-pale); padding: 2.5rem 1.5rem; }

body.pyramid-solution .other-games .container { max-width: none; text-align: center; }

body.pyramid-solution .other-games h2 { font-family: var(--font-title); font-size: 1.05rem; color: var(--gold-pale); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 1.25rem; }

body.pyramid-solution .games-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; padding-bottom: 0.25rem; }

body.pyramid-solution .games-grid a { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--gold-pale); width: min(220px, 86vw); flex: 0 1 220px; font-size: 0.82rem; line-height: 1.3; transition: opacity 0.2s, transform 0.2s; }

body.pyramid-solution .games-grid a:hover { opacity: 0.85; transform: translateY(-3px); }

body.pyramid-solution .games-grid img { width: 100%; max-width: 220px; height: auto; border: 1px solid var(--border); border-radius: 5px; box-shadow: 0 3px 10px rgba(0,0,0,0.5); display: block; }

@media (max-width: 640px) {
body.pyramid-solution .games-grid { gap: 0.85rem; }

body.pyramid-solution .games-grid a { font-size: 0.68rem; }

}

body.pyramid-solution .site-footer { background: #111; color: #888; text-align: center; padding: 1.25rem; font-size: 0.8rem; }

body.pyramid-solution .site-footer a { color: #aaa; }

/* Consolidated former inline styles */
body.pyramid-home .section-modern {
  background: #f5f0e0;
}

body.pyramid-home .museum-credit {
  font-size: 0.78rem;
  color: #666;
  margin-top: 0.5rem;
}

body.pyramid-solution .solution-part-first {
  padding-top: 1.5rem;
}

body.pyramid-solution .info-table {
      width: 100%;
      border-collapse: collapse;
      margin: 1rem 0;
      font-size: 0.92rem;
    }

body.pyramid-solution .info-table td {
      border: 1px solid #ddd0b0;
      padding: 0.55rem 0.75rem;
      vertical-align: top;
    }

body.pyramid-solution .info-table td:first-child {
      width: 34%;
      color: var(--stone-dark);
      font-weight: bold;
      white-space: nowrap;
    }
