/* ============================================================================
   allo.css — THE single source of design truth for byallo.com.

   One pixel/arcade "Stardew" aesthetic across the whole site. Two body modes:
     • body.allo-app   — the books.html canvas storefront (dark canvas + cream/wood
                          floating chrome + modal system).
     • body.allo-page  — every content page (cream paper, wood borders, Press Start 2P
                          headings, serif body): blog index, about, survey, free-guide,
                          privacy, generated book/ + shelf/ pages, blog/ posts.

   .rich-content is shared: it styles the modal body in app mode AND a standalone
   <main class="rich-content"> in page mode (so /about looks identical in both).

   RULE FOR AGENTS: never inline-style a page. All design lives here. Add a token or
   a component class to this file; link it with <link rel="stylesheet" href="/css/allo.css">.
   See AGENTS.md → "Site structure & design system".
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700&family=Rajdhani:wght@400;500;600;700&family=Press+Start+2P&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  /* Bookstore palette — the wooden modal aesthetic (named tokens). */
  --wood-deep: #3d2614;
  --wood-mid: #7a4f2e;
  --wood-light: #c9a96e;
  --wood-tan: #d6b87a;
  --paper: #efe0c4;
  --paper-warm: #f5ead0;
  --paper-bright: #faf2dc;
  --burnt-orange: #b35d20;
  --amber: #c97a17;
  --ink: #3d2614;
  --ink-soft: #5c3f24;
  --ink-faded: #6e4a2a;
  --ink-muted: #8a6a48;
  --cream: #fdf3dc;

  /* Dark canvas tokens — used by the storefront app shell + scoreboard. */
  --bg-primary: #0a0e1a;
  --bg-secondary: #0d1321;
  --bg-panel: #111827;
  --bg-card: #1a2235;
  --border-color: #1e3a5f;
  --accent-cyan: #00d4ff;
  --accent-orange: #ff9500;
  --accent-amber: #f59e0b;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --star: #f5a623;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

@keyframes px-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ── Shared: logo (identical in both modes) ───────────────────────────────── */
.header-logo {
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--ink);
}
.header-logo .by { color: var(--ink-soft); }
.header-logo .allo { color: var(--burnt-orange); }

/* ===========================================================================
   APP MODE — the canvas storefront (books.html)
   =========================================================================== */
body.allo-app {
  font-family: 'Rajdhani', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow: hidden;
}

.allo-app .header {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: calc(16px + env(safe-area-inset-top, 0px)) calc(20px + env(safe-area-inset-right, 0px)) 16px calc(20px + env(safe-area-inset-left, 0px));
  pointer-events: none;
  z-index: 10;
}
.allo-app .header-left, .allo-app .header-right {
  display: flex; align-items: center;
  pointer-events: auto;
  background: #efe0c4;
  border: 3px solid #3d2614;
  border-radius: 4px;
  padding: 8px 12px;
  box-shadow:
    inset 0 0 0 2px #c9a96e,
    inset 0 -3px 0 rgba(122, 79, 46, 0.4),
    0 6px 18px rgba(0, 0, 0, 0.45);
}
.allo-app .header-left { gap: 1rem; }
.allo-app .header-right { gap: 0.4rem; }
.allo-app .header-logo { font-size: 14px; }

.allo-app .phone-tooltip {
  position: fixed; z-index: 20;
  background: #efe0c4; border: 2px solid #3d2614; border-radius: 4px;
  padding: 8px 14px; box-shadow: 0 4px 14px rgba(0,0,0,0.4);
  font-family: 'Press Start 2P', monospace; font-size: 9px; color: #3d2614;
  white-space: nowrap; pointer-events: auto; display: none;
  cursor: pointer;
}
.allo-app .phone-tooltip.visible { display: block; }
.allo-app .phone-tooltip a { color: #3d2614; text-decoration: none; }
.allo-app .phone-tooltip a:hover { text-decoration: underline; }
.allo-app .allo-reco {
  position: fixed; z-index: 20; display: none;
  background: #efe0c4; border: 2px solid #3d2614; border-radius: 6px;
  padding: 10px 14px; max-width: 220px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
  font-family: 'Rajdhani', sans-serif;
  pointer-events: auto;
}
.allo-app .allo-reco.visible { display: block; }
.allo-app .allo-reco-label { font-family: 'Press Start 2P'; font-size: 7px; color: #7a4f2e; margin-bottom: 6px; letter-spacing: 0.06em; }
.allo-app .allo-reco-title { font-size: 13px; font-weight: 700; color: #3d2614; line-height: 1.3; }
.allo-app .allo-reco-author { font-size: 11px; color: #7a4f2e; margin: 2px 0 8px; }
.allo-app .allo-reco-btn {
  display: inline-block; background: #3d2614; color: #efe0c4;
  font-family: 'Press Start 2P'; font-size: 7px; letter-spacing: 0.04em;
  padding: 5px 8px; border-radius: 3px; text-decoration: none;
}
.allo-app .allo-reco-btn:hover { background: #5c3a1e; }

.allo-app .nav-btn {
  background: transparent;
  border: 2px solid transparent;
  color: #5c3f24;
  padding: 0.45rem 0.75rem;
  border-radius: 4px;
  font-family: 'Press Start 2P';
  font-size: 10px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.1s;
  letter-spacing: 0.06em;
}
.allo-app .nav-btn:hover { color: #3d2614; background: rgba(122, 79, 46, 0.15); border-color: #7a4f2e; }
.allo-app .nav-btn.primary {
  color: #fdf3dc;
  border: 2px solid #3d2614;
  background: linear-gradient(180deg, #c97a17 0%, #a35e0d 100%);
  font-family: 'Press Start 2P';
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 0.45rem 0.75rem;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.18);
}
.allo-app .nav-btn.primary:hover {
  filter: brightness(1.08);
  transform: translateY(1px);
  background: linear-gradient(180deg, #c97a17 0%, #a35e0d 100%);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* ── Scoreboard counter ───────────────────────────── */
.allo-app .scoreboard {
  display: flex; align-items: center; gap: 8px;
  background: #050608;
  border: 2px solid #1f1408;
  border-radius: 8px;
  padding: 5px 10px;
  box-shadow: inset 0 0 8px rgba(245, 158, 11, 0.2);
}
.allo-app .scoreboard-label {
  font-family: 'Press Start 2P';
  font-size: 7px;
  color: #c97a17;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-align: right;
  max-width: 70px;
}
.allo-app .scoreboard-digits { display: flex; gap: 1px; }
.allo-app .scoreboard-digit {
  background: linear-gradient(180deg, #100a05 0%, #1a0f06 50%, #100a05 100%);
  border: 1px solid #2a1810;
  border-radius: 2px;
  padding: 3px 3px;
  font-family: 'Press Start 2P';
  font-size: 13px;
  color: #ff9500;
  text-shadow: 0 0 6px rgba(255, 149, 0, 0.7), 0 0 1px #ffcc66;
  min-width: 10px;
  text-align: center;
  line-height: 1.1;
}
.allo-app .scoreboard-digit.sep { color: #c97a17; padding: 3px 1px; min-width: 4px; text-shadow: none; }
.allo-app .scoreboard-digit.dollar { color: #c97a17; padding-right: 2px; text-shadow: none; }

.allo-app .canvas-wrapper {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: #2a1f14;
}
.allo-app #storeCanvas {
  display: block; width: 100%; height: 100%;
  image-rendering: pixelated; image-rendering: -moz-crisp-edges; cursor: grab;
}
.allo-app #storeCanvas.over-shelf { cursor: pointer; }
.allo-app #storeCanvas:active { cursor: grabbing; }

.allo-app .hint {
  position: absolute; top: 90px; left: 50%; transform: translateX(-50%);
  background: #efe0c4;
  border: 3px solid #3d2614;
  padding: 10px 18px; border-radius: 4px;
  font-family: 'Press Start 2P';
  font-size: 11px; color: #3d2614;
  pointer-events: none; z-index: 5;
  letter-spacing: 0.08em;
  line-height: 1.4;
  box-shadow:
    inset 0 0 0 2px #c9a96e,
    inset 0 -3px 0 rgba(122, 79, 46, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.4);
  transition: opacity 0.3s;
}
.allo-app .hint.hidden { opacity: 0; pointer-events: none; }

/* ── Modal ─────────────────────────────────────── */
.allo-app .modal-overlay {
  position: fixed; inset: 0;
  background: rgba(2, 6, 16, 0.88);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
}
.allo-app .modal-overlay.visible { display: flex; }
.allo-app .modal-card {
  background: #efe0c4;
  border: 4px solid #3d2614;
  box-shadow:
    inset 0 0 0 2px #c9a96e,
    inset 0 0 0 4px #7a4f2e,
    0 8px 32px rgba(0, 0, 0, 0.55);
  border-radius: 4px;
  width: 100%; max-width: 720px;
  max-height: 88vh;
  display: flex; flex-direction: column;
  overflow: hidden;
  color: #3d2614;
}
.allo-app .modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.5rem 0.9rem;
  border-bottom: 3px solid #7a4f2e;
  background: linear-gradient(180deg, #d6b87a 0%, #c9a96e 100%);
  box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.25);
}
.allo-app .modal-title {
  font-family: 'Press Start 2P';
  font-size: 12px;
  font-weight: 400;
  color: #3d2614;
  letter-spacing: 0.06em;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.35);
}
.allo-app .modal-close {
  background: #c9a96e;
  border: 2px solid #3d2614;
  color: #3d2614;
  width: 32px; height: 32px; border-radius: 4px;
  cursor: pointer;
  font-family: 'Press Start 2P'; font-size: 11px;
  line-height: 1;
  box-shadow: inset 0 -2px 0 #7a4f2e;
  transition: all 0.1s;
}
.allo-app .modal-close:hover { background: #d6b87a; transform: translateY(1px); box-shadow: inset 0 -1px 0 #7a4f2e; }
.allo-app .modal-body {
  overflow-y: auto;
  padding: 1rem;
  background: #efe0c4;
}

.allo-app .book-row {
  display: flex; gap: 14px;
  padding: 12px;
  background: #f5ead0;
  border: 2px solid #7a4f2e;
  border-radius: 4px;
  margin-bottom: 10px;
  box-shadow: inset 0 -2px 0 #c9a96e;
  transition: all 0.1s;
}
.allo-app .book-row:hover { border-color: #3d2614; background: #faf2dc; }
.allo-app .book-cover {
  flex-shrink: 0;
  width: 64px; height: 96px;
  background: #c9a96e;
  border: 2px solid #3d2614;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.allo-app .book-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.allo-app .book-cover-fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Press Start 2P';
  font-size: 9px; color: white;
  text-align: center; padding: 6px;
  line-height: 1.4;
  display: none;
}
.allo-app .book-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.allo-app .book-title-line { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.allo-app .book-title { font-size: 1rem; font-weight: 700; color: #3d2614; }
.allo-app .book-featured {
  font-family: 'Press Start 2P';
  font-size: 8px;
  color: #b35d20;
  letter-spacing: 0.08em;
}
.allo-app .book-author { font-size: 0.85rem; color: #6e4a2a; margin-bottom: 4px; font-weight: 500; }
.allo-app .book-stars { display: flex; gap: 2px; margin-bottom: 6px; }
.allo-app .book-stars svg { width: 12px; height: 12px; }
.allo-app .book-desc {
  font-size: 0.8rem;
  color: #5c3f24;
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.allo-app .book-rationale {
  font-size: 0.78rem;
  line-height: 1.5;
  background: rgba(122, 79, 46, 0.10);
  border-left: 3px solid #b35d20;
  padding: 6px 10px;
  border-radius: 0 4px 4px 0;
  margin-bottom: 10px;
  flex: 1;
}
.allo-app .book-rationale .rationale-label {
  display: block;
  font-family: 'Press Start 2P';
  font-size: 8px;
  color: #b35d20;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.allo-app .book-rationale .rationale-text { color: #3d2614; font-style: italic; }
.allo-app .book-rationale.missing .rationale-text { color: #8a6a48; font-style: italic; }
.allo-app .buy-btn {
  align-self: flex-start;
  background: linear-gradient(180deg, #c97a17 0%, #a35e0d 100%);
  color: #fdf3dc;
  border: 2px solid #3d2614;
  padding: 6px 14px;
  border-radius: 4px;
  font-family: 'Press Start 2P';
  font-size: 9px;
  letter-spacing: 0.06em;
  cursor: pointer;
  text-decoration: none;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.18);
  transition: all 0.1s;
}
.allo-app .buy-btn:hover { filter: brightness(1.08); transform: translateY(1px); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.18); }

.allo-app .empty-state {
  padding: 60px 24px; text-align: center;
  color: #6e4a2a;
}
.allo-app .empty-state .emoji { font-size: 32px; display: block; margin-bottom: 12px; }

.allo-app .shelf-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  padding: 4px 0 8px;
}
.allo-app .shelf-cat-card {
  background: #f5ead0;
  border: 2px solid #7a4f2e;
  border-radius: 4px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.1s;
  box-shadow: inset 0 -2px 0 #c9a96e;
  text-align: left;
}
.allo-app .shelf-cat-card:hover { border-color: #3d2614; background: #faf2dc; }
.allo-app .shelf-cat-card-name {
  font-family: 'Press Start 2P';
  font-size: 8px;
  color: #3d2614;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  line-height: 1.6;
}
.allo-app .shelf-cat-card-count {
  font-size: 0.8rem;
  color: #6e4a2a;
  margin-bottom: 10px;
}
.allo-app .shelf-cat-card-browse {
  font-family: 'Press Start 2P';
  font-size: 7px;
  color: #b35d20;
  letter-spacing: 0.06em;
}

.allo-app .modal-footer {
  padding: 0.75rem 1.5rem;
  border-top: 3px solid #7a4f2e;
  background: linear-gradient(180deg, #c9a96e 0%, #b89556 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2);
  font-size: 0.75rem;
  color: #3d2614;
  text-align: center;
  letter-spacing: 0.02em;
}
.allo-app .modal-footer a { color: #3d2614; text-decoration: underline; opacity: 0.75; }
.allo-app .modal-footer a:hover { opacity: 1; }
.allo-app .modal-footer.hidden { display: none; }

/* ── Mall easter egg overlay ─────────────────────── */
.allo-app .mall-overlay {
  position: fixed; inset: 0;
  background: #050309;
  transform: translateY(100%);
  transition: transform 380ms cubic-bezier(.2,.8,.2,1);
  z-index: 1100;
  pointer-events: none;
  overflow: hidden;
  will-change: transform;
  isolation: isolate;
}
.allo-app .mall-overlay.open { transform: translateY(0); pointer-events: auto; }
.allo-app #mallCanvas {
  display: block;
  width: 100%; height: 100%;
  background: #050309;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  cursor: grab;
}
.allo-app #mallCanvas.over-storefront,
.allo-app #mallCanvas.over-npc { cursor: pointer; }
.allo-app .mall-banner {
  position: absolute; top: 16px; left: 50%;
  transform: translateX(-50%);
  font-family: 'Press Start 2P';
  font-size: 9px;
  letter-spacing: 0.18em;
  color: #fcd34d;
  text-shadow: 0 0 8px rgba(252, 211, 77, 0.5);
  background: rgba(10, 6, 18, 0.7);
  border: 2px solid #3d2614;
  padding: 8px 14px;
  border-radius: 4px;
  pointer-events: none;
  white-space: nowrap;
}
.allo-app .mall-close {
  position: absolute; bottom: 20px; left: 50%;
  transform: translateX(-50%);
  font-family: 'Press Start 2P';
  font-size: 9px;
  letter-spacing: 0.08em;
  color: #fdf3dc;
  background: linear-gradient(180deg, #c97a17 0%, #a35e0d 100%);
  border: 2px solid #3d2614;
  padding: 10px 16px;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.18);
}
.allo-app .mall-close:hover { filter: brightness(1.1); }
.allo-app .mall-tooltip {
  position: absolute;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px; font-weight: 600;
  color: #3d2614;
  background: #efe0c4;
  border: 2px solid #3d2614;
  border-radius: 4px;
  padding: 6px 10px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  z-index: 51;
}
.allo-app .mall-tooltip.visible { opacity: 1; }

/* ===========================================================================
   PAGE MODE — content pages (cream paper, wood borders, serif body)
   =========================================================================== */
body.allo-page {
  font-family: 'Lora', Georgia, serif;
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  background-image:
    repeating-linear-gradient(
      90deg,
      rgba(122, 79, 46, 0.04) 0,
      rgba(122, 79, 46, 0.04) 1px,
      transparent 1px,
      transparent 6px
    );
}

.allo-page .site-header {
  background: linear-gradient(180deg, var(--wood-tan) 0%, var(--wood-light) 100%);
  border-bottom: 4px solid var(--wood-deep);
  box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.25), 0 2px 8px rgba(0, 0, 0, 0.15);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.allo-page .header-logo { text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.4); letter-spacing: 0.06em; }
.allo-page .header-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.allo-page .header-nav a {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: var(--paper-warm);
  border: 2px solid var(--wood-mid);
  padding: 8px 12px;
  border-radius: 4px;
  text-decoration: none;
  box-shadow: inset 0 -2px 0 var(--wood-light);
  transition: all 0.1s;
}
.allo-page .header-nav a:hover {
  background: var(--paper-bright);
  border-color: var(--wood-deep);
  transform: translateY(1px);
  box-shadow: inset 0 -1px 0 var(--wood-light);
}
.allo-page .header-nav a.back { background: linear-gradient(180deg, var(--wood-tan) 0%, var(--wood-light) 100%); }
.allo-page .header-nav a.cta {
  color: var(--cream);
  background: linear-gradient(180deg, var(--amber) 0%, #a35e0d 100%);
  border-color: var(--wood-deep);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.18);
}
.allo-page .header-nav a.cta:hover {
  filter: brightness(1.08);
  background: linear-gradient(180deg, var(--amber) 0%, #a35e0d 100%);
}

.allo-page main {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}
.allo-page .page-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: 0.04em;
  line-height: 1.5;
  margin-bottom: 14px;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.45);
}
.allo-page .page-lede {
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 60ch;
}

/* ── Section — wooden bordered panel ──────── */
.allo-page .section {
  background: var(--paper-warm);
  border: 4px solid var(--wood-deep);
  box-shadow:
    inset 0 0 0 2px var(--wood-light),
    inset 0 0 0 4px var(--wood-mid),
    0 4px 16px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  margin-bottom: 32px;
  overflow: hidden;
}
.allo-page .section-header {
  padding: 1rem 1.25rem 0.85rem;
  border-bottom: 3px solid var(--wood-mid);
  background: linear-gradient(180deg, var(--wood-tan) 0%, var(--wood-light) 100%);
  box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.25);
}
.allo-page .section-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 12px;
  color: var(--ink);
  letter-spacing: 0.06em;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.4);
  line-height: 1.5;
}
.allo-page .section-sub {
  margin-top: 6px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.allo-page .section-body { padding: 18px; background: var(--paper); }

/* ── Diary post cards (blog index) ─────── */
.allo-page .post {
  background: var(--paper-warm);
  border: 2px solid var(--wood-mid);
  border-radius: 4px;
  padding: 18px 20px;
  margin-bottom: 12px;
  box-shadow: inset 0 -2px 0 var(--wood-light);
  overflow: hidden;
}
.allo-page .post:last-child { margin-bottom: 0; }
.allo-page .post-img-wrap {
  margin: -18px -20px 16px;
  aspect-ratio: 3 / 1;
  background: var(--wood-deep);
  position: relative;
}
.allo-page .post-img {
  width: 100%; height: 100%;
  object-fit: cover;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  display: block;
}
.allo-page .post-img-genning { display: flex; align-items: center; justify-content: center; background: var(--wood-mid); }
.allo-page .post-img-genning span {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: var(--cream);
  letter-spacing: 0.1em;
  animation: px-blink 1.4s step-start infinite;
}
.allo-page .post-meta {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: var(--burnt-orange);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.allo-page .post h2 {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  color: var(--ink);
  margin-bottom: 14px;
  letter-spacing: 0.04em;
  line-height: 1.5;
}
.allo-page .post-body { line-height: 1.7; font-size: 0.95rem; color: var(--ink); }
.allo-page .post-body p { margin-bottom: 12px; }
.allo-page .post-body p:last-child { margin-bottom: 0; }
.allo-page .post-body h3 {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: var(--ink);
  margin: 18px 0 10px;
  letter-spacing: 0.04em;
  line-height: 1.5;
}
.allo-page .post-body ul { padding-left: 1.4rem; margin-bottom: 12px; }
.allo-page .post-body li { margin-bottom: 5px; line-height: 1.6; }
.allo-page .post-body a {
  color: var(--burnt-orange);
  text-decoration: none;
  border-bottom: 1px dashed var(--burnt-orange);
}
.allo-page .post-body a:hover { background: rgba(179, 93, 32, 0.12); }
.allo-page .post-body code {
  background: var(--wood-light);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.88em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--ink);
}
.allo-page .post-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.allo-page .post-tag {
  font-size: 0.72rem;
  color: var(--ink-faded);
  border: 1px solid var(--wood-mid);
  background: var(--paper);
  padding: 2px 9px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.allo-page .post-share {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--wood-mid);
  display: flex;
  align-items: center;
  gap: 10px;
}
.allo-page .post-share-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  color: var(--ink-faded);
  letter-spacing: 0.06em;
}
.allo-page .share-btn {
  display: inline-flex;
  align-items: center;
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  padding: 5px 11px;
  border-radius: 3px;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: opacity 0.15s;
}
.allo-page .share-btn:hover { opacity: 0.78; }
.allo-page .share-x { background: var(--ink); color: var(--cream); border: 1px solid var(--wood-deep); }

/* ── Reading guides — manifest cards ─────── */
.allo-page .guide-category { margin-bottom: 22px; }
.allo-page .guide-category:last-child { margin-bottom: 0; }
.allo-page .guide-category-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: var(--burnt-orange);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--wood-mid);
}
.allo-page .guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}
.allo-page .guide-card {
  display: block;
  background: var(--paper-warm);
  border: 2px solid var(--wood-mid);
  border-radius: 4px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--wood-light);
  transition: all 0.1s;
}
.allo-page .guide-card:hover {
  background: var(--paper-bright);
  border-color: var(--wood-deep);
  transform: translateY(-1px);
}
.allo-page .guide-card-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: var(--ink);
  line-height: 1.5;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}
.allo-page .guide-card-desc {
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.allo-page .loading, .allo-page .empty-state {
  padding: 48px 24px;
  text-align: center;
  color: var(--ink-faded);
}
.allo-page .empty-state .emoji { font-size: 32px; display: block; margin-bottom: 10px; }
.allo-page .empty-state .msg {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: var(--ink);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  line-height: 1.5;
}
.allo-page .empty-state .sub { color: var(--ink-faded); font-size: 0.88rem; line-height: 1.55; }

.allo-page footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 20px 40px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-faded);
}
.allo-page footer a { color: var(--ink-soft); text-decoration: underline; opacity: 0.85; }
.allo-page footer a:hover { opacity: 1; }

/* ── Catalog pages — generated book/ + shelf/ pages (<main class="catalog">) ── */
.allo-page .catalog { max-width: 720px; margin: 32px auto 48px; padding: 0 20px; }
.allo-page .catalog .crumb {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: var(--burnt-orange);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.allo-page .catalog .crumb a { color: var(--burnt-orange); text-decoration: none; border-bottom: 1px dashed var(--burnt-orange); }
.allo-page .catalog .crumb a:hover { background: rgba(179, 93, 32, 0.12); }
.allo-page .catalog h1 {
  font-family: 'Press Start 2P', monospace;
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.45);
  margin-bottom: 10px;
}
.allo-page .catalog .category-tag {
  display: inline-block;
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  letter-spacing: 0.08em;
  color: var(--cream);
  background: linear-gradient(180deg, var(--amber) 0%, #a35e0d 100%);
  border: 2px solid var(--wood-deep);
  padding: 5px 12px;
  border-radius: 4px;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.3), inset 0 2px 0 rgba(255,255,255,0.18);
  margin-bottom: 18px;
}
.allo-page .catalog .author { font-size: 1rem; color: var(--ink-soft); font-style: italic; margin-bottom: 18px; }
.allo-page .catalog .rating { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.allo-page .catalog .stars { color: var(--amber); font-size: 1.05rem; }
.allo-page .catalog .rating-val { font-family: 'Press Start 2P', monospace; font-size: 8px; color: var(--ink-faded); letter-spacing: 0.06em; }
.allo-page .catalog .description {
  background: var(--paper-warm);
  border: 4px solid var(--wood-deep);
  box-shadow: inset 0 0 0 2px var(--wood-light), inset 0 0 0 4px var(--wood-mid), 0 4px 16px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  padding: 22px 26px;
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 24px;
}
.allo-page .catalog .rationale {
  background: var(--paper-warm);
  border: 2px solid var(--wood-mid);
  border-left: 5px solid var(--burnt-orange);
  border-radius: 4px;
  padding: 18px 22px;
  box-shadow: inset 0 -2px 0 var(--wood-light);
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 32px;
}
.allo-page .catalog .rationale-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: var(--burnt-orange);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.allo-page .catalog .buy-btn {
  display: inline-block;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--cream);
  background: linear-gradient(180deg, var(--amber) 0%, #a35e0d 100%);
  border: 2px solid var(--wood-deep);
  padding: 14px 24px;
  border-radius: 4px;
  text-decoration: none;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.18);
  transition: filter 0.1s, transform 0.1s;
}
.allo-page .catalog .buy-btn:hover { filter: brightness(1.08); transform: translateY(1px); }
.allo-page .catalog .affiliate-note { font-size: 0.85rem; color: var(--ink-faded); margin-top: 16px; }
/* Shelf page list rows */
.allo-page .catalog .shelf-desc { font-size: 1.02rem; color: var(--ink-soft); line-height: 1.65; margin-bottom: 32px; max-width: 60ch; }
.allo-page .catalog .book-item {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--paper-warm);
  border: 2px solid var(--wood-mid);
  border-radius: 4px;
  padding: 14px 18px;
  margin-bottom: 12px;
  box-shadow: inset 0 -2px 0 var(--wood-light);
}
.allo-page .catalog .book-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.allo-page .catalog .book-title { font-size: 1rem; font-weight: 700; color: var(--ink); }
.allo-page .catalog .book-title a { color: var(--ink); text-decoration: none; }
.allo-page .catalog .book-title a:hover { color: var(--burnt-orange); }
.allo-page .catalog .book-author { font-size: 0.85rem; color: var(--ink-faded); font-style: italic; }
.allo-page .catalog .book-rating { font-size: 0.82rem; color: var(--amber); }
.allo-page .catalog .book-item .buy-btn { font-size: 8px; padding: 9px 14px; flex-shrink: 0; }

/* ── Form pages — survey + free-guide (<main class="form-page">) ── */
.allo-page .form-page { max-width: 640px; margin: 32px auto 64px; padding: 0 20px; }
.allo-page .eyebrow {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--burnt-orange);
  display: block;
  margin-bottom: 16px;
}
.allo-page .form-page h1 {
  font-family: 'Press Start 2P', monospace;
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.45);
  margin-bottom: 14px;
}
.allo-page .intro { font-size: 1.02rem; color: var(--ink-soft); line-height: 1.65; margin-bottom: 36px; max-width: 60ch; }
.allo-page .survey-card {
  background: var(--paper-warm);
  border: 4px solid var(--wood-deep);
  box-shadow: inset 0 0 0 2px var(--wood-light), inset 0 0 0 4px var(--wood-mid), 0 4px 16px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  padding: 30px 28px;
}
.allo-page .question { margin-bottom: 30px; }
.allo-page .question:last-of-type { margin-bottom: 0; }
.allo-page .q-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  letter-spacing: 0.1em;
  color: var(--burnt-orange);
  display: block;
  margin-bottom: 10px;
}
.allo-page .q-text { font-size: 1.05rem; font-weight: 600; color: var(--ink); line-height: 1.5; margin-bottom: 16px; }
.allo-page .radio-group { display: flex; flex-direction: column; gap: 10px; }
.allo-page .radio-option {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: var(--paper);
  border: 2px solid var(--wood-mid);
  border-radius: 4px;
  cursor: pointer;
  box-shadow: inset 0 -2px 0 var(--wood-light);
  transition: all 0.1s;
}
.allo-page .radio-option:hover { border-color: var(--wood-deep); background: var(--paper-bright); }
.allo-page .radio-option input[type="radio"] { accent-color: var(--burnt-orange); width: 16px; height: 16px; flex-shrink: 0; cursor: pointer; }
.allo-page .radio-option:has(input:checked) { border-color: var(--burnt-orange); background: var(--paper-bright); }
.allo-page .radio-label { font-size: 0.95rem; font-weight: 600; color: var(--ink-soft); }
.allo-page .radio-option:has(input:checked) .radio-label { color: var(--burnt-orange); }
.allo-page .form-page textarea {
  width: 100%;
  background: #fdf6e3;
  border: 2px solid var(--wood-mid);
  border-radius: 4px;
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 1rem;
  padding: 12px 14px;
  resize: vertical;
  min-height: 90px;
  outline: none;
}
.allo-page .form-page textarea:focus { border-color: var(--burnt-orange); }
.allo-page .form-page textarea::placeholder { color: var(--ink-muted); }
.allo-page .divider { border: none; border-top: 2px solid var(--wood-light); margin: 28px 0; }
.allo-page .submit-row { margin-top: 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.allo-page .submit-btn {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--cream);
  background: linear-gradient(180deg, var(--amber) 0%, #a35e0d 100%);
  border: 2px solid var(--wood-deep);
  padding: 14px 24px;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.18);
  transition: filter 0.1s, transform 0.1s;
}
.allo-page .submit-btn:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(1px); }
.allo-page .submit-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.allo-page .form-error { font-size: 0.88rem; color: var(--burnt-orange); display: none; }
.allo-page .thankyou {
  display: none;
  background: var(--paper-warm);
  border: 4px solid var(--wood-deep);
  box-shadow: inset 0 0 0 2px var(--wood-light), inset 0 0 0 4px var(--wood-mid), 0 4px 16px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  padding: 44px 30px;
  text-align: center;
}
.allo-page .thankyou-icon { font-family: 'Press Start 2P', monospace; font-size: 10px; color: var(--burnt-orange); letter-spacing: 0.1em; margin-bottom: 20px; }
.allo-page .thankyou h2 { font-family: 'Press Start 2P', monospace; font-size: 14px; color: var(--ink); line-height: 1.5; margin-bottom: 14px; }
.allo-page .thankyou p { font-size: 1rem; color: var(--ink-soft); line-height: 1.65; margin-bottom: 28px; }
.allo-page .back-link {
  display: inline-block;
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  letter-spacing: 0.06em;
  color: var(--cream);
  background: linear-gradient(180deg, var(--amber) 0%, #a35e0d 100%);
  border: 2px solid var(--wood-deep);
  padding: 11px 18px;
  border-radius: 4px;
  text-decoration: none;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.18);
}
.allo-page .back-link:hover { filter: brightness(1.08); }
/* Generic pixel button used by free-guide CTAs */
.allo-page .btn {
  display: inline-block;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--cream);
  background: linear-gradient(180deg, var(--amber) 0%, #a35e0d 100%);
  border: 2px solid var(--wood-deep);
  padding: 13px 22px;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.18);
  transition: filter 0.1s, transform 0.1s;
}
.allo-page .btn:hover { filter: brightness(1.08); transform: translateY(1px); }

/* Free-guide landing (<main class="form-page fg-landing">) */
.allo-page .fg-landing { text-align: center; max-width: 600px; }
.allo-page .form-page h1 span { color: var(--burnt-orange); }
.allo-page .sub { font-size: 1.1rem; color: var(--ink-soft); line-height: 1.65; margin: 0 auto 48px; max-width: 480px; }
.allo-page .capture-box {
  background: var(--paper-warm);
  border: 4px solid var(--wood-deep);
  box-shadow: inset 0 0 0 2px var(--wood-light), inset 0 0 0 4px var(--wood-mid), 0 4px 16px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  padding: 32px 30px;
  margin-bottom: 24px;
}
.allo-page .capture-box label { display: block; font-size: 0.9rem; color: var(--ink-soft); text-align: left; margin-bottom: 8px; font-weight: 600; }
.allo-page .email-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.allo-page .email-input {
  flex: 1; min-width: 200px;
  padding: 11px 14px;
  font-family: Georgia, serif;
  font-size: 1rem;
  background: #fdf6e3;
  border: 2px solid var(--wood-mid);
  border-radius: 4px;
  color: var(--ink);
  outline: none;
}
.allo-page .email-input:focus { border-color: var(--burnt-orange); }
.allo-page .email-input::placeholder { color: var(--ink-muted); }
.allo-page .capture-error { font-size: 0.88rem; color: var(--burnt-orange); text-align: left; margin-top: 6px; display: none; }
.allo-page .privacy-note { font-size: 0.8rem; color: var(--ink-faded); text-align: left; }
.allo-page .guide-link {
  display: inline-block;
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  letter-spacing: 0.06em;
  color: var(--cream);
  background: linear-gradient(180deg, var(--amber) 0%, #a35e0d 100%);
  border: 2px solid var(--wood-deep);
  padding: 11px 18px;
  border-radius: 4px;
  text-decoration: none;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.18);
}
.allo-page .guide-link:hover { filter: brightness(1.08); }
.allo-page .proof { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.allo-page .proof-item {
  background: var(--paper-warm);
  border: 2px solid var(--wood-mid);
  border-radius: 4px;
  padding: 16px 20px;
  flex: 1; min-width: 140px; max-width: 180px;
  text-align: center;
  box-shadow: inset 0 -2px 0 var(--wood-light);
}
.allo-page .proof-num { font-family: 'Press Start 2P', monospace; font-size: 16px; color: var(--ink); display: block; line-height: 1; margin-bottom: 8px; }
.allo-page .proof-label { font-size: 0.82rem; color: var(--ink-faded); font-weight: 600; }

/* ── Blog/SEO articles — public/blog/*.html (<main class="article">) ──────────
   Ready for inject-store-links.mjs to wire: it should link allo.css + set
   body.allo-page + <main class="article">, keep the affiliate rewrite + store-cta
   + GA4 tracking, and stop appending an EXTRA_CSS blob. (See #137 rebase spec.) */
.allo-page .article { max-width: 760px; margin: 32px auto 48px; padding: 0 20px; }
.allo-page .article h1 {
  font-family: 'Press Start 2P', monospace;
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.45);
  margin-bottom: 28px;
}
.allo-page .article-meta {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: var(--burnt-orange);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.allo-page a.article-meta { display: inline-block; text-decoration: none; border-bottom: none; }
.allo-page a.article-meta:hover { filter: brightness(0.85); }
.allo-page .article-body {
  background: var(--paper-warm);
  border: 4px solid var(--wood-deep);
  box-shadow: inset 0 0 0 2px var(--wood-light), inset 0 0 0 4px var(--wood-mid), 0 4px 16px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  padding: 28px 32px;
  font-size: 1.05rem;
  line-height: 1.78;
  color: var(--ink);
}
.allo-page .article-body p { margin-bottom: 18px; }
.allo-page .article-body p:last-child { margin-bottom: 0; }
.allo-page .article-body a { color: var(--burnt-orange); text-decoration: none; border-bottom: 1px dashed var(--burnt-orange); }
.allo-page .article-body a:hover { background: rgba(179, 93, 32, 0.12); }
.allo-page .store-cta {
  margin: 36px 0 24px;
  background: var(--paper-warm);
  border: 4px solid var(--wood-deep);
  box-shadow: inset 0 0 0 2px var(--wood-light), inset 0 0 0 4px var(--wood-mid), 0 4px 16px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  text-align: center;
  overflow: hidden;
}
.allo-page .store-cta-inner { padding: 28px 26px 26px; }
.allo-page .store-cta-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 12px;
  color: var(--ink);
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  line-height: 1.55;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.4);
}
.allo-page .store-cta p { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.6; max-width: 56ch; margin: 0 auto 18px; }
.allo-page .store-cta-btn {
  display: inline-block;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--cream);
  background: linear-gradient(180deg, var(--amber) 0%, #a35e0d 100%);
  border: 2px solid var(--wood-deep);
  padding: 11px 20px;
  border-radius: 4px;
  text-decoration: none;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.18);
  transition: filter 0.1s, transform 0.1s;
}
.allo-page .store-cta-btn:hover { filter: brightness(1.08); transform: translateY(1px); }

/* ── Reading-guide page — free-guide/reading-guide.html (<main class="guide">) ──
   Namespaced under .guide so its .section-*/.pick-* don't collide with the blog
   index's .section panels. */
.allo-page .guide { max-width: 720px; margin: 32px auto 48px; padding: 0 20px; }
.allo-page .guide h1 {
  font-family: 'Press Start 2P', monospace;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.45);
  margin-bottom: 10px;
}
.allo-page .guide .lede { font-size: 1.05rem; color: var(--ink-soft); margin-bottom: 48px; line-height: 1.65; }
.allo-page .guide p { line-height: 1.75; font-size: 1rem; color: var(--ink); margin-bottom: 18px; }
.allo-page .guide a.inline { color: var(--burnt-orange); text-decoration: none; border-bottom: 1px dashed var(--burnt-orange); }
.allo-page .guide a.inline:hover { background: rgba(179, 93, 32, 0.12); }
.allo-page .guide .section-header {
  margin: 48px 0 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--wood-mid);
}
.allo-page .guide .section-num {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: var(--ink-muted);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 8px;
}
.allo-page .guide .section-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 13px;
  color: var(--burnt-orange);
  letter-spacing: 0.04em;
  line-height: 1.5;
}
.allo-page .guide .section-sub { font-size: 0.9rem; color: var(--ink-muted); margin-top: 6px; }
.allo-page .guide .pick-list { list-style: none; padding: 0; margin: 0; }
.allo-page .guide .pick {
  background: var(--paper-warm);
  border: 2px solid var(--wood-mid);
  border-left: 4px solid var(--burnt-orange);
  border-radius: 4px;
  padding: 20px 24px;
  margin-bottom: 16px;
  position: relative;
  box-shadow: inset 0 -2px 0 var(--wood-light);
}
.allo-page .guide .pick-num {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: var(--cream);
  background: var(--burnt-orange);
  border: 2px solid var(--wood-deep);
  padding: 3px 7px;
  position: absolute;
  top: -10px; left: 18px;
  letter-spacing: 0.08em;
  border-radius: 2px;
}
.allo-page .guide .pick-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.45;
  letter-spacing: 0.03em;
}
.allo-page .guide .pick-author { font-size: 0.9rem; color: var(--ink-faded); font-style: italic; margin-bottom: 10px; }
.allo-page .guide .pick-cat {
  display: inline-block;
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.allo-page .guide .pick-note { font-size: 0.95rem; color: var(--ink-soft); line-height: 1.65; margin-bottom: 8px; }
.allo-page .guide .pick-audience { font-size: 0.85rem; color: var(--ink-faded); font-style: italic; margin-bottom: 12px; }
.allo-page .guide .pick-buy {
  display: inline-block;
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  letter-spacing: 0.06em;
  color: var(--cream);
  background: linear-gradient(180deg, var(--amber) 0%, #a35e0d 100%);
  border: 2px solid var(--wood-deep);
  padding: 7px 12px;
  border-radius: 4px;
  text-decoration: none;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.18);
}
.allo-page .guide .pick-buy:hover { filter: brightness(1.08); }
.allo-page .guide .affiliate-note {
  font-size: 0.8rem;
  color: var(--ink-faded);
  line-height: 1.55;
  border-top: 2px solid var(--wood-light);
  padding-top: 24px;
  margin-top: 48px;
}

/* ===========================================================================
   SHARED — rich-text content. Styles the modal body in app mode AND a standalone
   <main class="rich-content"> in page mode (so /about matches in both contexts).
   =========================================================================== */
.rich-content { padding: 8px 14px 16px; line-height: 1.7; color: #3d2614; }
.rich-content h1 {
  font-family: 'Press Start 2P';
  font-size: 14px;
  color: #3d2614;
  margin: 8px 0 12px;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.4);
}
.rich-content h2 {
  font-family: 'Press Start 2P';
  font-size: 11px;
  color: #3d2614;
  margin: 24px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #7a4f2e;
  letter-spacing: 0.04em;
  line-height: 1.4;
}
.rich-content h3 {
  font-family: 'Press Start 2P';
  font-size: 9px;
  color: #3d2614;
  margin: 4px 0 8px;
  letter-spacing: 0.04em;
  line-height: 1.4;
}
.rich-content p { font-size: 0.95rem; color: #3d2614; margin-bottom: 12px; }
.rich-content p.muted { color: #6e4a2a; }
.rich-content p.lede { font-size: 1rem; color: #5c3f24; margin-bottom: 24px; }
.rich-content a.inline,
.rich-content a {
  color: #b35d20; text-decoration: none;
  border-bottom: 1px dashed #b35d20;
}
.rich-content a:hover { background: rgba(179, 93, 32, 0.12); }
.rich-content ul, .rich-content ol { padding-left: 1.4rem; margin-bottom: 12px; }
.rich-content li { margin-bottom: 6px; line-height: 1.6; }
.rich-content strong { font-weight: 700; }
.rich-content em { font-style: italic; }
.rich-content .callout {
  background: #f5ead0;
  border: 2px solid #7a4f2e;
  border-left: 4px solid #b35d20;
  border-radius: 4px;
  padding: 14px 18px;
  margin: 0 0 16px;
  box-shadow: inset 0 -2px 0 #c9a96e;
  font-size: 0.92rem;
  color: #5c3f24;
  line-height: 1.6;
}
.rich-content .rules { list-style: none; counter-reset: rule; padding: 0; margin: 0; }
.rich-content .rule {
  counter-increment: rule;
  background: #f5ead0;
  border: 2px solid #7a4f2e;
  border-left: 4px solid #b35d20;
  border-radius: 4px;
  padding: 14px 18px;
  margin-bottom: 12px;
  position: relative;
  box-shadow: inset 0 -2px 0 #c9a96e;
}
.rich-content .rule::before {
  content: counter(rule, decimal-leading-zero);
  position: absolute;
  top: -10px; left: 14px;
  font-family: 'Press Start 2P';
  font-size: 9px;
  color: #fdf3dc;
  background: #b35d20;
  border: 2px solid #3d2614;
  padding: 3px 7px;
  letter-spacing: 0.08em;
  border-radius: 2px;
}
.rich-content .rule p { color: #5c3f24; font-size: 0.85rem; margin: 4px 0 0; }
.rich-content .locked-banner {
  display: flex; align-items: center; gap: 10px;
  background: rgba(179, 93, 32, 0.12);
  border: 2px dashed #b35d20;
  color: #b35d20;
  padding: 8px 12px;
  border-radius: 4px;
  font-family: 'Press Start 2P';
  font-size: 8px;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

/* Blog post styling inside modal */
.rich-content .post {
  background: #f5ead0;
  border: 2px solid #7a4f2e;
  border-radius: 4px;
  padding: 18px 20px;
  margin-bottom: 14px;
  box-shadow: inset 0 -2px 0 #c9a96e;
  overflow: hidden;
}
.rich-content .post-img-wrap { margin: -18px -20px 16px; aspect-ratio: 3 / 1; background: #3d2614; }
.rich-content .post-img {
  width: 100%; height: 100%;
  object-fit: cover;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  display: block;
}
.rich-content .post-meta {
  font-family: 'Press Start 2P';
  font-size: 8px;
  color: #b35d20;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.rich-content .post h3 {
  font-family: 'Press Start 2P';
  font-size: 11px;
  color: #3d2614;
  margin: 0 0 12px;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

/* More reading — SEO guide cards inside the blog modal */
.rich-content .more-reading { margin-top: 24px; padding-top: 20px; border-top: 3px dashed #7a4f2e; }
.rich-content .more-reading-title {
  font-family: 'Press Start 2P';
  font-size: 11px;
  color: #3d2614;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  line-height: 1.4;
}
.rich-content .more-reading-sub {
  font-size: 0.88rem;
  color: #6e4a2a;
  margin-bottom: 16px;
  line-height: 1.55;
}
.rich-content .more-reading-cta {
  display: inline-block;
  font-family: 'Press Start 2P';
  font-size: 10px;
  letter-spacing: 0.06em;
  color: #fdf3dc;
  background: linear-gradient(180deg, #c97a17 0%, #a35e0d 100%);
  border: 2px solid #3d2614;
  padding: 11px 18px;
  border-radius: 4px;
  text-decoration: none;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.3), inset 0 2px 0 rgba(255,255,255,0.18);
  transition: filter 0.1s, transform 0.1s;
}
.rich-content .more-reading-cta:hover { filter: brightness(1.08); transform: translateY(1px); }

.rich-loading, .rich-empty { padding: 60px 24px; text-align: center; color: #6e4a2a; }
.rich-empty .emoji { font-size: 32px; display: block; margin-bottom: 12px; }

/* Free-guide modal — email capture form */
.rich-content .fg-eyebrow {
  font-family: 'Press Start 2P';
  font-size: 8px;
  color: #b35d20;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.rich-content .fg-pitch { font-size: 0.95rem; color: #5c3f24; line-height: 1.6; margin-bottom: 18px; }
.rich-content .fg-form {
  background: #f5ead0;
  border: 2px solid #7a4f2e;
  border-radius: 4px;
  padding: 16px;
  box-shadow: inset 0 -2px 0 #c9a96e;
}
.rich-content .fg-form label {
  display: block;
  font-family: 'Press Start 2P';
  font-size: 8px;
  color: #3d2614;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.rich-content .fg-row { display: flex; gap: 8px; flex-wrap: wrap; }
.rich-content .fg-input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 11px 12px;
  background: #fdf6e3;
  border: 2px solid #7a4f2e;
  border-radius: 4px;
  font-family: Georgia, serif;
  font-size: 0.95rem;
  color: #3d2614;
  outline: none;
}
.rich-content .fg-input:focus { border-color: #b35d20; }
.rich-content .fg-input::placeholder { color: #8a6a48; }
.rich-content .fg-submit {
  flex-shrink: 0;
  padding: 11px 16px;
  font-family: 'Press Start 2P';
  font-size: 9px;
  letter-spacing: 0.06em;
  color: #fdf3dc;
  background: linear-gradient(180deg, #c97a17 0%, #a35e0d 100%);
  border: 2px solid #3d2614;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.3), inset 0 2px 0 rgba(255,255,255,0.18);
  transition: filter 0.1s, transform 0.1s;
}
.rich-content .fg-submit:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(1px); }
.rich-content .fg-submit:disabled { opacity: 0.6; cursor: progress; }
.rich-content .fg-error { display: none; margin-top: 10px; color: #b35d20; font-size: 0.85rem; }
.rich-content .fg-privacy { margin-top: 12px; font-size: 0.8rem; color: #6e4a2a; line-height: 1.5; }
.rich-content .fg-proof { display: flex; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.rich-content .fg-proof-item {
  flex: 1 1 0;
  min-width: 100px;
  text-align: center;
  padding: 12px 10px;
  background: #faf2dc;
  border: 2px solid #7a4f2e;
  border-radius: 4px;
  box-shadow: inset 0 -2px 0 #c9a96e;
}
.rich-content .fg-proof-num {
  display: block;
  font-family: 'Press Start 2P';
  font-size: 18px;
  color: #3d2614;
  margin-bottom: 6px;
}
.rich-content .fg-proof-label { font-size: 0.78rem; color: #6e4a2a; line-height: 1.4; }
.rich-content .fg-thanks {
  text-align: center;
  padding: 24px 16px;
  background: #f5ead0;
  border: 2px solid #7a4f2e;
  border-radius: 4px;
  box-shadow: inset 0 -2px 0 #c9a96e;
}
.rich-content .fg-thanks .check {
  font-family: 'Press Start 2P';
  font-size: 9px;
  color: #b35d20;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.rich-content .fg-thanks h3 {
  font-family: 'Press Start 2P';
  font-size: 12px;
  color: #3d2614;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  line-height: 1.5;
}
.rich-content .fg-thanks p { color: #5c3f24; margin-bottom: 0; }

/* ===========================================================================
   RESPONSIVE
   =========================================================================== */
@media (max-width: 640px) {
  /* App */
  .allo-app .header { padding: 10px 10px; gap: 8px; }
  .allo-app .header-left, .allo-app .header-right { padding: 6px 8px; border-width: 2px; border-radius: 4px; }
  .allo-app .header-left { gap: 8px; flex-wrap: wrap; }
  .allo-app .header-right { gap: 4px; }
  .allo-app .header-logo { font-size: 11px; }
  .allo-app .nav-btn { font-size: 8px; padding: 0.35rem 0.5rem; letter-spacing: 0.04em; }
  .allo-app .nav-btn.primary { font-size: 8px; padding: 0.4rem 0.55rem; }
  .allo-app .scoreboard { padding: 3px 6px; gap: 4px; }
  .allo-app .scoreboard-label { display: none; }
  .allo-app .scoreboard-digit { font-size: 10px; padding: 2px 3px; min-width: 11px; }
  .allo-app .hint { top: auto; bottom: 16px; font-size: 8px; padding: 8px 12px; max-width: 80vw; text-align: center; }
  .allo-app .modal-overlay { padding: 12px; }
  .allo-app .modal-title { font-size: 10px; }
  .allo-app .mall-banner { font-size: 7px; padding: 6px 10px; }
  .allo-app .mall-close { font-size: 7px; padding: 8px 12px; }
  /* Shared rich-content */
  .rich-content h1 { font-size: 12px; }
  .rich-content h2 { font-size: 10px; }
  .rich-content h3 { font-size: 8px; }
  /* Page */
  .allo-page .site-header { padding: 0.7rem 0.85rem; }
  .allo-page .header-logo { font-size: 12px; }
  .allo-page .header-nav a { font-size: 8px; padding: 6px 9px; }
  .allo-page main { padding: 24px 14px 48px; }
  .allo-page .page-title { font-size: 14px; }
  .allo-page .section-body { padding: 14px; }
  .allo-page .post { padding: 14px 16px; }
  .allo-page .post-img-wrap { margin: -14px -16px 14px; }
  .allo-page .guide-grid { grid-template-columns: 1fr; }
  .allo-page .catalog { margin: 24px auto 40px; }
  .allo-page .catalog h1 { font-size: 14px; }
  .allo-page .catalog .description { padding: 18px 20px; }
  .allo-page .catalog .rationale { padding: 14px 18px; }
}

@media (max-width: 380px) {
  .allo-app .header-logo { font-size: 10px; }
  .allo-app .nav-btn { font-size: 7px; padding: 0.3rem 0.45rem; }
  .allo-app .nav-btn.primary { font-size: 7px; padding: 0.35rem 0.5rem; }
  .allo-app .scoreboard-digit { font-size: 9px; }
}
