/* The Philosophers' Trail (public zen page, Oct 17 2026). Uses village.css for the panel, buttons and title card. */
#zen-hud {
  position: fixed; top: calc(10px + env(safe-area-inset-top)); left: calc(10px + env(safe-area-inset-left));
  display: flex; align-items: center; gap: 8px; padding: 6px 10px;
  background: var(--paper); border: 3px solid var(--edge); border-radius: 6px; box-shadow: 0 3px 0 rgba(0,0,0,.35);
  font-family: "Pixelify Sans", "Segoe UI", sans-serif; font-size: 16px; color: #4a3320;
}
#zen-hud button { font: inherit; background: var(--paper-2); border: 2px solid var(--edge); border-radius: 4px; padding: 0 6px; cursor: pointer; }
#zen-thought {
  position: fixed; top: calc(58px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%);
  width: min(460px, calc(100vw - 24px)); padding: 10px 14px; text-align: center;
  background: rgba(251,243,223,.96); border: 3px solid var(--edge); border-radius: 6px; box-shadow: 0 3px 0 rgba(0,0,0,.35);
  font-size: 14px; color: var(--ink); transition: opacity .8s; cursor: pointer;
}
#zen-thought b { display: block; font-family: "Pixelify Sans", "Segoe UI", sans-serif; font-weight: 600; color: #4a3320; margin-bottom: 2px; }
#zen-thought.gone { opacity: 0; }
.zen-progress { margin-top: 14px; }
.zen-links { display: grid; gap: 8px; margin-top: 12px; }
.zen-link { display: grid; gap: 2px; padding: 10px 12px; border: 2px solid var(--edge); border-radius: 4px; background: #fff8e8; color: var(--ink); text-decoration: none; }
.zen-link b { font-family: "Pixelify Sans", "Segoe UI", sans-serif; font-size: 17px; font-weight: 600; }
.zen-link span { font-size: 12px; color: var(--muted); }
a.zen-link:hover { background: var(--paper-2); }
.zen-link.soon { border-style: dashed; opacity: .85; }
.codex { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
.codex-card { display: grid; justify-items: center; gap: 4px; padding: 8px 6px 10px; font: inherit; cursor: pointer;
  background: #fff8e8; border: 2px solid var(--edge); border-radius: 4px; box-shadow: 0 2px 0 rgba(0,0,0,.12); color: var(--ink); }
.codex-card b { font-family: "Pixelify Sans", "Segoe UI", sans-serif; font-size: 15px; font-weight: 600; }
.codex-card span { font-size: 11px; color: var(--muted); text-align: center; line-height: 1.25; }
.codex-face { width: 64px; height: 64px; image-rendering: pixelated; background: radial-gradient(circle, #e9dcb8 55%, transparent 56%); border-radius: 50%; }
.codex-card.unknown { background: #efe6cf; border-style: dashed; }
.codex-card:active { transform: translateY(1px); }
.reflect { display: grid; gap: 8px; padding: 10px 12px; background: #fff8e8; border: 2px solid var(--paper-2); border-radius: 4px; }
.reflect-q { font-family: "Pixelify Sans", "Segoe UI", sans-serif; font-size: 17px; color: #4a3320; }
.reflect-btn { font: inherit; text-align: left; padding: 8px 12px; cursor: pointer; background: var(--paper); border: 2px solid var(--edge); border-radius: 4px; box-shadow: 0 2px 0 rgba(0,0,0,.12); color: var(--ink); }
.reflect-btn:active { transform: translateY(1px); }
.reflect-a { font-weight: 600; }
.reflect-r { font-style: italic; color: #4a3320; }
.notes-wrap { display: grid; gap: 8px; margin: 12px 0; }
.notes-card { width: 100%; border-radius: 4px; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.notes-save { text-align: center; font-weight: 600; background: #d77a35; color: #fff; }

/* Art pass (Oct 17 2026): a soft vignette over the world so the edges fall away like a painting; the HUD sits above it. */
#game::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: radial-gradient(ellipse 75% 70% at 50% 50%, rgba(0,0,0,0) 50%, rgba(28,18,12,.32) 100%); }

/* Sit and breathe (Oct 17 2026): a calm circle that grows as you breathe in, rests, and shrinks as you breathe out. */
#breathe { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; align-content: center; gap: 18px;
  background: radial-gradient(circle at 50% 45%, rgba(20,32,26,.55), rgba(10,16,12,.85)); color: #f6efe0; cursor: pointer;
  font-family: "Pixelify Sans", "Segoe UI", sans-serif; text-align: center; }
#breathe[hidden] { display: none; }
.breathe-circle { width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(255,226,150,.9), rgba(215,122,53,.55) 60%, rgba(215,122,53,0) 72%);
  transform: scale(.6); transition: transform 1.2s ease-in-out; box-shadow: 0 0 40px rgba(255,200,120,.35); }
#breathe.in .breathe-circle { transform: scale(1.5); transition-duration: 4s; }
#breathe.hold .breathe-circle { transform: scale(1.5); transition-duration: .3s; }
#breathe.out .breathe-circle { transform: scale(.6); transition-duration: 6s; }
#breathe-word { font-size: 28px; }
#breathe-count { font-size: 14px; opacity: .7; }
.breathe-hint { font-size: 12px; opacity: .5; }
#zen-count.bump { animation: zen-bump .5s ease-out; }
@keyframes zen-bump { 40% { transform: scale(1.25); color: #d77a35; } }
#zen-count { display: inline-block; }

.zen-share { background: #1f3b2f; margin-top: 4px; }
