/* ============================================================
   STOA — the Whetstone bounty board theme.
   Token contract + page-specific rules in one file.
   Sections: slot contract · board (index.html) · quest (quest.html) · log (log.html)

   The slot contract (below) is the cross-theme API used by
   structure.css and any code that should survive a theme swap.
   The Stoa-internal palette names (--parchment-cream, --bronze,
   --wax-seal, etc.) live in the per-section :root blocks and are
   implementation details of how Stoa fulfills the contract.

   See docs/THEMING.md for the slot contract specification.
   ============================================================ */

:root {
  --bg-deepest:     var(--stoa-stone-deepest);
  --bg-mid:         var(--stoa-stone-mid);
  --bg-light:       var(--stoa-stone-light);
  --surface:        var(--parchment-cream);
  --surface-alt:    var(--parchment-deep);
  --ink:            var(--ink-black);
  --ink-soft:       var(--ink-thin);
  --accent:         var(--bronze);
  --accent-strong:  var(--gilt);
  --accent-on-dark: var(--gilt);
  --rule:           rgba(94, 70, 40, 0.2);
  --font-ornament:  var(--font-carved);
  --font-prose:     var(--font-body);
}

/* ============================================================
   SECTION 1 — Board (index.html)
   ============================================================ */
:root {
  --stoa-stone-deepest: #2e3540;
  --stoa-stone-deep:    #3d4654;
  --stoa-stone-mid:     #5a6271;
  --stoa-stone-light:   #7a8290;
  --stoa-stone-shadow:  rgba(8, 10, 14, 0.55);

  --parchment-cream:    #ebe1c8;
  --parchment-deep:     #d8c9a4;
  --parchment-aged:     #c9b890;
  --parchment-fresh:    #f0e6cc;
  --parchment-shadow:   rgba(40, 30, 14, 0.20);

  --wax-tablet:         #b89868;
  --wax-tablet-deep:    #927244;
  --wax-seal:           #5e2018;
  --wax-seal-light:     #7a3024;

  --wood-board:         #4a3019;
  --wood-board-light:   #6a4828;
  --wood-board-grain:   #321e0c;

  --scrap-paper:        #d6c9a8;

  --ink-black:          #1a1208;
  --ink-faded:          #4e4032;
  --ink-thin:           #6a5a44;
  --bronze:             #8c6a3f;
  --bronze-deep:        #5e4628;
  --olive:              #6b7f3a;
  --olive-deep:         #4a5828;
  --gilt:               #c4a050;

  --font-display: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --font-posted:  'IM Fell English', 'EB Garamond', Georgia, serif;
  --font-posted-sc: 'IM Fell English SC', 'IM Fell English', serif;
  --font-body:    'EB Garamond', Georgia, serif;
  --font-carved:  'Cinzel', 'Cormorant Garamond', serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  font-family: var(--font-body);
  color: var(--ink-black);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body {
  min-height: 100vh;
  background-color: var(--stoa-stone-deep);
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent 0, transparent 220px,
      rgba(0,0,0,0.14) 220px, rgba(0,0,0,0.22) 222px,
      rgba(220,230,245,0.04) 224px, transparent 226px, transparent 460px
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0, transparent 140px,
      rgba(0,0,0,0.14) 140px, rgba(0,0,0,0.20) 141px,
      rgba(220,230,245,0.03) 142px, transparent 144px, transparent 280px
    ),
    radial-gradient(ellipse at 20% 30%, rgba(110,125,150,0.35), transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(30,38,50,0.55), transparent 55%),
    radial-gradient(ellipse at 50% 50%, rgba(140,155,180,0.18), transparent 70%),
    linear-gradient(180deg, var(--stoa-stone-light) 0%, var(--stoa-stone-mid) 50%, var(--stoa-stone-deepest) 100%);
  background-attachment: fixed;
  position: relative;
}

body::before {
  content: ''; position: fixed; inset: 0;
  pointer-events: none; z-index: 1; opacity: 0.6;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.06  0 0 0 0 0.07  0 0 0 0 0.09  0 0 0 0.4 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}

body::after {
  content: ''; position: fixed; inset: 0;
  pointer-events: none; z-index: 2;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.55) 100%);
}

.board-header {
  position: relative; z-index: 10;
  text-align: center;
  padding: 4rem 2rem 2rem;
  max-width: 1100px; margin: 0 auto;
}

.board-header .eyebrow {
  font-family: var(--font-posted-sc);
  font-size: 0.95rem; letter-spacing: 0.32em;
  color: var(--parchment-deep);
  text-shadow: 0 1px 2px var(--stoa-stone-shadow);
  margin: 0 0 0.4rem; opacity: 0.78;
}

.board-header h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 1; margin: 0;
  color: var(--parchment-cream);
  letter-spacing: 0.01em;
  text-shadow: 0 2px 0 rgba(0,0,0,0.35), 0 4px 8px var(--stoa-stone-shadow), 0 0 28px rgba(220,230,245,0.06);
}

.board-header h1 em { font-style: italic; color: var(--parchment-deep); font-weight: 400; }

.board-header .inscription {
  font-family: var(--font-posted);
  font-style: italic; font-size: 1.05rem;
  color: var(--parchment-deep);
  margin: 1.2rem auto 0; max-width: 540px;
  opacity: 0.72; line-height: 1.55;
}

.board-header .inscription::before, .board-header .inscription::after {
  content: '·'; display: inline-block; margin: 0 0.6em; opacity: 0.6;
}

.filter-bar {
  position: relative; z-index: 10;
  max-width: 1100px; margin: 1.5rem auto 2rem;
  padding: 0.9rem 1.5rem;
  background: linear-gradient(180deg, var(--stoa-stone-light), var(--stoa-stone-mid));
  border-top: 1px solid rgba(220,230,245,0.10);
  border-bottom: 2px solid var(--stoa-stone-deepest);
  box-shadow: 0 1px 0 rgba(220,230,245,0.05) inset, 0 4px 12px var(--stoa-stone-shadow);
  display: flex; gap: 0.6rem; flex-wrap: wrap;
  justify-content: center; align-items: center;
}

.filter-bar .label {
  font-family: var(--font-posted-sc);
  font-size: 0.78rem; letter-spacing: 0.22em;
  color: var(--parchment-deep);
  margin-right: 0.5rem; opacity: 0.85;
}

.filter-pill {
  font-family: var(--font-posted);
  font-size: 0.92rem;
  background: transparent;
  border: 1px solid rgba(235, 225, 200, 0.28);
  color: var(--parchment-cream);
  padding: 0.35rem 0.95rem;
  border-radius: 0; cursor: pointer;
  transition: all 0.18s ease;
  font-style: italic; letter-spacing: 0.02em;
}

.filter-pill:hover { background: rgba(235, 225, 200, 0.10); border-color: var(--parchment-cream); }

.filter-pill.active {
  background: var(--parchment-cream);
  color: var(--ink-black);
  border-color: var(--parchment-cream);
  font-style: normal;
  box-shadow: 0 1px 4px var(--stoa-stone-shadow);
}

.board {
  position: relative; z-index: 10;
  max-width: 1180px; margin: 0 auto 6rem;
  padding: 1rem 2rem 4rem;
  display: flex; flex-wrap: wrap; gap: 1.6rem;
  align-items: flex-start; justify-content: center;
}

@media (max-width: 600px) { .board { padding: 1rem 1rem 4rem; } }

.notice {
  flex: 0 0 auto;
  position: relative; display: block;
  text-decoration: none; color: inherit;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  animation: notice-settle 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes notice-settle {
  from { opacity: 0; transform: translateY(-8px) rotate(var(--tilt, 0deg)) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) rotate(var(--tilt, 0deg)) scale(1); }
}

.notice:hover {
  transform: rotate(0deg) translateY(-3px) scale(1.015) !important;
  z-index: 5;
  filter: drop-shadow(0 6px 8px rgba(0,0,0,0.35));
}

.notice--trivial {
  width: 220px; padding: 0.9rem 1rem;
  background: var(--scrap-paper);
  background-image:
    radial-gradient(ellipse at 20% 30%, transparent 70%, rgba(80,60,30,0.12) 100%),
    radial-gradient(ellipse at 75% 80%, transparent 60%, rgba(80,60,30,0.10) 100%);
  clip-path: polygon(
    2% 0%, 12% 1%, 28% 0%, 45% 2%, 63% 0%, 80% 1%, 96% 0%, 100% 8%,
    99% 25%, 100% 48%, 98% 70%, 100% 92%, 92% 100%, 75% 99%, 55% 100%,
    35% 99%, 18% 100%, 4% 99%, 0% 90%, 1% 70%, 0% 50%, 2% 28%, 0% 10%
  );
  box-shadow: 0 4px 10px var(--stoa-stone-shadow);
  font-family: var(--font-posted);
  font-style: italic; color: var(--ink-thin);
}

.notice--trivial::before {
  content: ''; position: absolute;
  top: 4px; left: 50%; transform: translateX(-50%);
  width: 9px; height: 9px;
  background: radial-gradient(circle at 30% 30%, var(--bronze), var(--bronze-deep));
  border-radius: 50%;
  box-shadow: 0 1px 1px rgba(0,0,0,0.4), inset -1px -1px 1px rgba(0,0,0,0.4);
  z-index: 2;
}

.notice--small {
  width: 260px; padding: 1.1rem 1.2rem;
  background: linear-gradient(165deg, var(--wax-tablet) 0%, var(--wax-tablet-deep) 100%);
  border: 5px solid var(--wood-board);
  border-radius: 2px; color: var(--ink-black);
  box-shadow: 0 6px 14px var(--stoa-stone-shadow), 0 2px 3px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,230,180,0.25), inset 0 -2px 4px rgba(60,40,10,0.18);
}

.notice--small::before {
  content: ''; position: absolute;
  top: -7px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 9px;
  background: linear-gradient(180deg, var(--wax-seal-light), var(--wax-seal));
  border-radius: 1px 1px 6px 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.4); z-index: 2;
}

.notice--medium {
  width: 310px; padding: 1.4rem 1.5rem 1.3rem;
  background: var(--parchment-cream);
  background-image:
    radial-gradient(ellipse at 30% 20%, transparent 60%, rgba(120,90,40,0.12) 100%),
    radial-gradient(ellipse at 80% 90%, transparent 50%, rgba(120,90,40,0.13) 100%);
  clip-path: polygon(
    1% 1%, 30% 0%, 60% 1%, 99% 0%, 100% 30%, 99% 70%, 100% 99%,
    65% 100%, 30% 99%, 0% 100%, 1% 60%, 0% 30%
  );
  box-shadow: 0 7px 16px var(--stoa-stone-shadow), 0 2px 3px rgba(0,0,0,0.18);
  color: var(--ink-black);
}

.notice--medium::before {
  content: ''; position: absolute;
  top: -10px; left: 50%; transform: translateX(-50%);
  width: 13px; height: 13px;
  background: radial-gradient(circle at 30% 30%, var(--bronze), var(--bronze-deep));
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.45), inset -1px -1px 1px rgba(0,0,0,0.4), inset 1px 1px 1px rgba(255,220,160,0.3);
  z-index: 2;
}

.notice--medium.aged   { background-color: var(--parchment-aged); }
.notice--medium.fresh  { background-color: var(--parchment-fresh); }

.notice--large {
  width: 360px; padding: 1.5rem 1.7rem;
  background:
    repeating-linear-gradient(
      90deg,
      var(--wood-board) 0px, var(--wood-board-light) 1px,
      var(--wood-board) 3px, var(--wood-board) 14px,
      var(--wood-board-light) 15px, var(--wood-board) 18px
    ),
    var(--wood-board);
  color: var(--parchment-cream);
  border: 3px solid var(--wood-board-grain);
  border-radius: 2px;
  box-shadow: 0 8px 20px var(--stoa-stone-shadow), 0 2px 4px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,220,160,0.12), inset 0 -1px 2px rgba(0,0,0,0.4);
  outline: 1px solid rgba(196, 160, 80, 0.3); outline-offset: -8px;
}

.notice--large::before, .notice--large::after,
.notice--epic::before, .notice--epic::after {
  content: ''; position: absolute;
  width: 7px; height: 7px;
  background: radial-gradient(circle at 30% 30%, #d0b070, #4a3010);
  border-radius: 50%;
  box-shadow: inset -1px -1px 1px rgba(0,0,0,0.6), 0 1px 1px rgba(0,0,0,0.4);
}

.notice--large::before { top: 7px; left: 9px; }
.notice--large::after  { top: 9px; right: 7px; }

.notice--epic {
  width: 420px; padding: 1.8rem 2rem;
  background:
    repeating-linear-gradient(
      90deg,
      var(--wood-board) 0px, var(--wood-board-light) 1px,
      var(--wood-board) 3px, var(--wood-board) 16px,
      var(--wood-board-light) 17px, var(--wood-board) 20px
    ),
    var(--wood-board);
  color: var(--parchment-cream);
  border: 4px double var(--gilt);
  border-radius: 3px;
  box-shadow: 0 10px 24px var(--stoa-stone-shadow), 0 3px 6px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,220,160,0.18), inset 0 -1px 2px rgba(0,0,0,0.45);
  outline: 1px solid rgba(196, 160, 80, 0.5); outline-offset: -10px;
}

.notice--epic::before { top: 10px; left: 12px; }
.notice--epic::after  { top: 12px; right: 10px; }

.notice--epic .corner-bl, .notice--epic .corner-br {
  position: absolute; bottom: 10px;
  width: 18px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gilt), transparent);
  opacity: 0.6;
}
.notice--epic .corner-bl { left: 12px; }
.notice--epic .corner-br { right: 12px; }

.notice-number {
  font-family: var(--font-posted-sc);
  font-size: 0.7rem; letter-spacing: 0.22em;
  opacity: 0.55; margin-bottom: 0.4rem;
}

.notice--trivial .notice-number { font-size: 0.62rem; opacity: 0.5; }
.notice--epic .notice-number { font-family: var(--font-carved); letter-spacing: 0.32em; opacity: 0.7; color: var(--gilt); }

.notice-title {
  font-family: var(--font-display);
  font-weight: 600; line-height: 1.18;
  margin: 0 0 0.5rem; letter-spacing: -0.005em;
}

.notice--trivial .notice-title { font-family: var(--font-posted); font-style: italic; font-weight: 400; font-size: 1rem; line-height: 1.25; }
.notice--small .notice-title { font-style: italic; font-size: 1.15rem; }
.notice--medium .notice-title { font-size: 1.3rem; }
.notice--large .notice-title { font-size: 1.4rem; color: var(--parchment-fresh); }
.notice--epic .notice-title {
  font-family: var(--font-carved); font-weight: 600; font-size: 1.45rem;
  letter-spacing: 0.02em; text-align: center;
  color: var(--parchment-fresh);
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  margin-bottom: 0.6rem;
}

.notice-summary {
  font-family: var(--font-posted);
  line-height: 1.5; margin: 0 0 0.8rem; font-style: italic;
}

.notice--trivial .notice-summary { font-size: 0.88rem; line-height: 1.4; margin-bottom: 0.5rem; }
.notice--small .notice-summary { font-size: 0.92rem; }
.notice--medium .notice-summary { font-size: 0.97rem; }
.notice--large .notice-summary { font-size: 1rem; color: var(--parchment-deep); font-style: normal; }
.notice--epic .notice-summary {
  font-size: 1.05rem; color: var(--parchment-deep); font-style: normal;
  text-align: center; max-width: 90%; margin-left: auto; margin-right: auto;
}

.notice-meta {
  display: flex; flex-wrap: wrap;
  gap: 0.3rem 0.9rem; align-items: baseline;
  margin-top: 0.6rem; padding-top: 0.55rem;
  border-top: 1px solid currentColor;
  border-image: linear-gradient(90deg, transparent, currentColor, transparent) 1;
  opacity: 0.85;
}

.notice--trivial .notice-meta { border-top-style: dashed; opacity: 0.7; }
.notice--epic .notice-meta {
  justify-content: center;
  border-image: linear-gradient(90deg, transparent, var(--gilt), transparent) 1;
  opacity: 0.95;
}

.meta-item {
  font-family: var(--font-posted-sc);
  font-size: 0.66rem; letter-spacing: 0.16em;
  display: flex; align-items: baseline; gap: 0.4em;
}

.meta-item .meta-label { opacity: 0.55; }
.meta-item .meta-value {
  font-family: var(--font-posted); font-style: italic;
  font-size: 0.88rem; letter-spacing: 0.02em; text-transform: none;
}

.notice--large .meta-item .meta-value, .notice--epic .meta-item .meta-value { color: var(--parchment-cream); }

.meta-reward {
  font-family: var(--font-posted);
  font-size: 0.92rem; font-style: normal;
  letter-spacing: 0.04em; color: var(--bronze-deep);
}

.notice--trivial .meta-reward { color: var(--ink-thin); font-size: 0.85rem; }
.notice--large .meta-reward, .notice--epic .meta-reward { color: var(--gilt); }
.meta-reward .currency-mark { display: inline-block; margin-right: 0.15em; opacity: 0.85; }

.effort-mark {
  position: absolute; bottom: 8px; right: 12px;
  font-family: var(--font-display);
  font-size: 1.1rem; font-style: italic; font-weight: 500;
  opacity: 0.5; pointer-events: none; line-height: 1;
}

.notice--trivial .effort-mark { color: var(--ink-thin); font-size: 0.95rem; opacity: 0.45; }
.notice--small .effort-mark   { color: var(--ink-faded); }
.notice--medium .effort-mark  { color: var(--ink-faded); }
.notice--large .effort-mark   { color: var(--gilt); opacity: 0.7; }
.notice--epic .effort-mark {
  color: var(--gilt); opacity: 0.85;
  font-size: 1.4rem; font-family: var(--font-carved);
  font-style: normal; bottom: 10px; right: 16px;
}

.agent-ribbon {
  display: inline-block;
  font-family: var(--font-posted-sc);
  font-size: 0.62rem; letter-spacing: 0.16em;
  background: var(--ink-black); color: var(--parchment-cream);
  padding: 0.16rem 0.5rem;
  margin-right: 0.4rem; margin-bottom: 0.3rem;
  border-radius: 1px; box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.notice--large .agent-ribbon, .notice--epic .agent-ribbon {
  background: var(--parchment-cream); color: var(--ink-black);
}

.board-state {
  position: relative; z-index: 10;
  width: 100%; max-width: 600px;
  margin: 4rem auto; padding: 2.5rem;
  text-align: center;
  background: var(--parchment-cream);
  font-family: var(--font-posted);
  color: var(--ink-faded); font-style: italic;
  box-shadow: 0 8px 18px var(--stoa-stone-shadow), inset 0 0 60px rgba(120,90,40,0.1);
  transform: rotate(-0.4deg);
}

.board-state h2 {
  font-family: var(--font-display);
  font-weight: 500; margin: 0 0 0.6rem;
  color: var(--ink-black); font-size: 1.5rem;
}

.board-footer {
  position: relative; z-index: 10;
  text-align: center; padding: 2rem 1rem 3rem;
  font-family: var(--font-posted-sc);
  font-size: 0.7rem; letter-spacing: 0.28em;
  color: var(--parchment-deep); opacity: 0.5;
}

.board-footer a {
  color: inherit; text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

.board-footer a:hover { opacity: 0.8; }

.notice:nth-child(1)  { animation-delay: 0.05s; --tilt: -1.2deg; }
.notice:nth-child(2)  { animation-delay: 0.10s; --tilt:  1.5deg; }
.notice:nth-child(3)  { animation-delay: 0.15s; --tilt: -0.6deg; }
.notice:nth-child(4)  { animation-delay: 0.20s; --tilt:  0.9deg; }
.notice:nth-child(5)  { animation-delay: 0.25s; --tilt: -1.3deg; }
.notice:nth-child(6)  { animation-delay: 0.30s; --tilt:  0.4deg; }
.notice:nth-child(7)  { animation-delay: 0.35s; --tilt: -0.8deg; }
.notice:nth-child(8)  { animation-delay: 0.40s; --tilt:  1.1deg; }
.notice:nth-child(9)  { animation-delay: 0.45s; --tilt: -0.5deg; }
.notice:nth-child(10) { animation-delay: 0.50s; --tilt:  1.3deg; }
.notice:nth-child(11) { animation-delay: 0.55s; --tilt: -1.0deg; }
.notice:nth-child(12) { animation-delay: 0.60s; --tilt:  0.7deg; }
.notice:nth-child(n+13) { --tilt: -0.6deg; animation-delay: 0.65s; }

.notice--trivial:nth-child(odd)  { --tilt: -2.1deg; }
.notice--trivial:nth-child(even) { --tilt:  2.4deg; }
.notice--epic { --tilt: -0.2deg; }
.notice--epic:nth-child(even) { --tilt: 0.3deg; }

/* ============================================================
   SECTION 2 — Quest Detail (quest.html)
   ============================================================ */
:root {
  --stoa-stone-deepest: #2e3540;
  --stoa-stone-deep:    #3d4654;
  --stoa-stone-mid:     #5a6271;
  --stoa-stone-light:   #7a8290;
  --stoa-stone-shadow:  rgba(8, 10, 14, 0.55);

  --parchment-cream:    #ebe1c8;
  --parchment-deep:     #d8c9a4;
  --parchment-fresh:    #f0e6cc;
  --parchment-aged:     #c9b890;

  --ink-black:          #1a1208;
  --ink-faded:          #4e4032;
  --ink-thin:           #6a5a44;
  --bronze:             #8c6a3f;
  --bronze-deep:        #5e4628;
  --olive:              #6b7f3a;
  --terracotta:         #b04a2c;
  --terracotta-deep:    #7a3018;
  --gilt:               #c4a050;
  --gilt-deep:          #8a6f30;
  --wax-seal:           #5e2018;

  --font-display: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --font-posted:  'IM Fell English', 'EB Garamond', Georgia, serif;
  --font-posted-sc: 'IM Fell English SC', 'IM Fell English', serif;
  --font-body:    'EB Garamond', Georgia, serif;
  --font-carved:  'Cinzel', 'Cormorant Garamond', serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  font-family: var(--font-body);
  font-size: 18px; line-height: 1.65;
  color: var(--ink-black);
  background-color: var(--stoa-stone-deep);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  background-color: var(--stoa-stone-deepest);
  background-image:
    radial-gradient(ellipse at 50% 30%, rgba(110,125,150,0.20), transparent 70%),
    radial-gradient(ellipse at 30% 90%, rgba(20,28,40,0.6), transparent 60%),
    linear-gradient(180deg, var(--stoa-stone-mid) 0%, var(--stoa-stone-deepest) 100%);
  background-attachment: fixed;
}

body::before {
  content: ''; position: fixed; inset: 0;
  pointer-events: none; z-index: 0; opacity: 0.55;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.06  0 0 0 0 0.07  0 0 0 0 0.09  0 0 0 0.4 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}

body::after {
  content: ''; position: fixed; inset: 0;
  pointer-events: none; z-index: 1;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(0,0,0,0.55) 100%);
}

.breadcrumb {
  position: relative; z-index: 10;
  max-width: 880px; margin: 0 auto;
  padding: 1.5rem 2rem 0;
  font-family: var(--font-posted-sc);
  font-size: 0.72rem; letter-spacing: 0.22em;
  color: var(--parchment-deep);
  opacity: 0.7;
}

.breadcrumb a {
  color: inherit; text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: border-color 0.18s ease;
}

.breadcrumb a:hover { border-bottom-color: var(--parchment-deep); }
.breadcrumb .sep { display: inline-block; margin: 0 0.7em; opacity: 0.5; }

.detail {
  position: relative; z-index: 10;
  max-width: 880px; margin: 0 auto;
  padding: 2rem 2rem 6rem;
}

.notice-detail {
  position: relative;
  background-color: var(--parchment-cream);
  background-image:
    radial-gradient(ellipse at 25% 15%, transparent 60%, rgba(120,90,40,0.10) 100%),
    radial-gradient(ellipse at 80% 85%, transparent 55%, rgba(120,90,40,0.10) 100%),
    radial-gradient(ellipse at 60% 50%, transparent 75%, rgba(120,90,40,0.04) 100%);
  padding: 4rem 4.5rem;
  clip-path: polygon(
    0.4% 0.6%, 18% 0%, 38% 0.4%, 60% 0%, 82% 0.5%, 99.6% 0.4%,
    100% 18%, 99.7% 38%, 100% 60%, 99.6% 82%, 99.5% 99.6%,
    82% 100%, 60% 99.7%, 38% 100%, 18% 99.6%, 0.4% 99.5%,
    0% 82%, 0.4% 60%, 0% 38%, 0.5% 18%
  );
  box-shadow:
    0 16px 40px var(--stoa-stone-shadow),
    0 6px 12px rgba(0,0,0,0.3),
    0 2px 4px rgba(0,0,0,0.2);
}

.notice-detail::before {
  content: '';
  position: absolute;
  top: -14px; left: 50%; transform: translateX(-50%);
  width: 18px; height: 18px;
  background: radial-gradient(circle at 30% 30%, var(--bronze), var(--bronze-deep));
  border-radius: 50%;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.5),
    inset -1px -1px 2px rgba(0,0,0,0.4),
    inset 1px 1px 2px rgba(255,220,160,0.3);
  z-index: 3;
}

@media (max-width: 700px) { .notice-detail { padding: 2.5rem 1.8rem; } }

.divider-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2.4rem 0 1.6rem;
  gap: 1.2rem;
  color: var(--bronze);
  opacity: 0.5;
}

.divider-ornament::before, .divider-ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  max-width: 200px;
}

.divider-ornament svg { width: 36px; height: 12px; display: block; }

.notice-header { margin-bottom: 0.5rem; }

.notice-eyebrow {
  font-family: var(--font-posted-sc);
  font-size: 0.75rem;
  letter-spacing: 0.32em;
  color: var(--bronze-deep);
  margin: 0 0 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  align-items: baseline;
}

.notice-eyebrow .number { color: var(--ink-black); font-weight: normal; }
.notice-eyebrow .milestone { opacity: 0.7; }
.notice-eyebrow .sep { display: inline-block; margin: 0 0.4em; opacity: 0.5; }

.notice-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.005em;
  margin: 0 0 0.3rem;
  color: var(--ink-black);
}

.notice-summary {
  font-family: var(--font-posted);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--ink-faded);
  margin: 0.5rem 0 0;
}

.claim-rail {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  background: rgba(196, 160, 80, 0.10);
  border-top: 2px solid var(--gilt);
  border-bottom: 1px solid rgba(196, 160, 80, 0.3);
  padding: 1.3rem 1.5rem;
  margin: 1.5rem -0.5rem 0;
}

@media (max-width: 740px) {
  .claim-rail { margin: 1.5rem 0 0; }
}

.claim-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  align-items: baseline;
  justify-content: center;
}

.stat { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }

.stat-label {
  font-family: var(--font-posted-sc);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--bronze-deep);
  opacity: 0.85;
}

.stat-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--ink-black);
  line-height: 1.15;
}

.stat-value.reward { color: var(--gilt-deep); }
.stat-value .currency-mark { display: inline-block; margin-right: 0.1em; opacity: 0.85; }
.stat-value .reward-secondary {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--bronze-deep);
  margin-left: 0.5em;
}
.stat-value .effort-mark {
  font-style: italic;
  margin-left: 0.3em;
  color: var(--bronze);
  opacity: 0.7;
}

.claim-action {
  display: block;
  width: 100%;
  text-align: center;
  font-family: var(--font-carved);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--parchment-cream);
  background: linear-gradient(180deg, var(--bronze) 0%, var(--bronze-deep) 100%);
  padding: 0.95rem 2rem;
  border: 1px solid var(--bronze-deep);
  border-radius: 1px;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,220,160,0.3),
    inset 0 -1px 2px rgba(0,0,0,0.3);
  transition: all 0.18s ease;
}

.claim-action:hover {
  transform: translateY(-1px);
  box-shadow:
    0 4px 8px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,220,160,0.4),
    inset 0 -1px 2px rgba(0,0,0,0.3);
}

.claim-action:active {
  transform: translateY(0);
  box-shadow:
    0 1px 2px rgba(0,0,0,0.3),
    inset 0 1px 2px rgba(0,0,0,0.4);
}

.notice-body {
  font-size: 1.02rem;
  line-height: 1.7;
  margin-top: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(94, 70, 40, 0.2);
}

.notice-body h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  margin: 0 0 0.7rem;
  color: var(--ink-black);
  letter-spacing: -0.005em;
}

.notice-body h2:not(:first-child) {
  margin-top: 0.5rem;
}

.notice-body p { margin: 0 0 1.1rem; }

.notice-body > p:first-of-type::first-letter {
  font-family: var(--font-carved);
  font-size: 3.2em;
  font-weight: 600;
  float: left;
  line-height: 0.9;
  margin: 0.08em 0.12em 0 0;
  color: var(--terracotta-deep);
  text-shadow: 1px 1px 0 rgba(120, 60, 30, 0.15);
}

.notice-body ul, .notice-body ol { margin: 0 0 1.2rem; padding-left: 1.5rem; }
.notice-body li { margin-bottom: 0.4rem; }

.notice-body code {
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-size: 0.88rem;
  background: rgba(94, 70, 40, 0.10);
  padding: 0.1rem 0.35rem;
  border-radius: 2px;
  color: var(--ink-black);
}

.notice-body pre {
  background: rgba(46, 53, 64, 0.05);
  border-left: 3px solid var(--bronze);
  padding: 1rem 1.2rem;
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-size: 0.88rem;
  line-height: 1.55;
  overflow-x: auto;
  margin: 1rem 0;
}

.notice-body strong { color: var(--ink-black); font-weight: 600; }
.notice-body em { font-style: italic; }
.notice-body a {
  color: var(--terracotta);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.notice-body a:hover { color: var(--bronze-deep); }

.notice-footer {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  justify-content: space-between;
  align-items: flex-end;
  font-family: var(--font-posted-sc);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--bronze-deep);
}

.notice-footer .labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.45rem;
  flex: 1 1 auto;
  min-width: 0;
}

.label-pill {
  font-family: var(--font-posted-sc);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  background: rgba(94, 70, 40, 0.12);
  color: var(--ink-faded);
  padding: 0.22rem 0.6rem;
  border-radius: 1px;
  white-space: nowrap;
}

.notice-footer .source-link { flex: 0 0 auto; white-space: nowrap; }

.notice-footer a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: opacity 0.18s ease;
}

.notice-footer a:hover { opacity: 0.7; }

.state {
  position: relative; z-index: 10;
  max-width: 600px; margin: 4rem auto;
  padding: 3rem 2rem;
  text-align: center;
  background: var(--parchment-cream);
  font-family: var(--font-posted);
  color: var(--ink-faded);
  font-style: italic;
  box-shadow: 0 8px 18px var(--stoa-stone-shadow);
  transform: rotate(-0.5deg);
}

.state h2 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0 0 0.6rem;
  color: var(--ink-black);
  font-size: 1.5rem;
}

.site-footer {
  position: relative; z-index: 10;
  text-align: center;
  padding: 2rem 1rem 3rem;
  font-family: var(--font-posted-sc);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  color: var(--parchment-deep);
  opacity: 0.5;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

.site-footer a:hover { opacity: 0.8; }

/* ============================================================
   SECTION 3 — Quest Log (log.html) — HUD aesthetic
   ============================================================ */
/* ============================================================
   QUEST LOG — HUD aesthetic
   Translucent overlay, soft-tech, traveler's instrument.
   Theme-agnostic to projects; project content shows up as
   accented entries inside neutral chrome.

   Backdrop is swappable:
     <body class="hud-backdrop hud-backdrop--void">  (default desktop)
     <body class="hud-backdrop hud-backdrop--ar">    (AR-ready translucent)
   ============================================================ */

:root {
  --hud-void:        #0a0f17;
  --hud-deep:        #0f1620;
  --hud-mid:         #1a2433;
  --hud-rim:         #2a3a52;

  --hud-glass:       rgba(180, 210, 240, 0.04);
  --hud-glass-up:    rgba(180, 210, 240, 0.07);
  --hud-glass-edge:  rgba(180, 210, 240, 0.14);
  --hud-glass-bright:rgba(180, 210, 240, 0.22);

  --hud-bright:      #e6eef8;
  --hud-fore:        #c0ccdd;
  --hud-mid-fg:      #8b9bb3;
  --hud-dim:         #5d6d85;
  --hud-faint:       #3e4c63;

  --hud-amber:       #d4a857;
  --hud-amber-bright:#f0c477;
  --hud-amber-deep:  #8c6e34;

  --hud-active:      #6dc5d4;
  --hud-done:        #7fb288;
  --hud-stale:       #8b9bb3;
  --hud-warning:     #d48b6d;

  --proj-default:    #8b9bb3;

  --font-prose:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:       'JetBrains Mono', 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  font-family: var(--font-prose);
  font-size: 15px;
  line-height: 1.5;
  color: var(--hud-fore);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body { min-height: 100vh; }

/* ============================================================
   BACKDROP — swappable.

   --void: opaque dark blue, full ambient/scan-lines/vignette.
           Used on desktop or anywhere the HUD owns the screen.

   --ar:   dark translucent overlay (~70% opacity navy). The
           real world (or whatever's behind) shows through, but
           the HUD has a controlled darkened context that keeps
           text readable. Real AR deployment would tune this
           opacity per scene brightness; fixed value here is
           the safe baseline that works against any background.
   ============================================================ */

.hud-backdrop--void {
  background-color: var(--hud-void);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(60, 90, 130, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 40% at 50% 110%, rgba(40, 70, 110, 0.12), transparent 60%),
    linear-gradient(180deg, var(--hud-deep) 0%, var(--hud-void) 100%);
  background-attachment: fixed;
}

.hud-backdrop--void::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 2px,
      rgba(180, 210, 240, 0.012) 2px,
      rgba(180, 210, 240, 0.012) 3px
    );
  mix-blend-mode: screen;
}

.hud-backdrop--void::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.4) 100%);
}

/* AR backdrop — translucent dark overlay.
   Pass-through with controlled darkening for text legibility. */
.hud-backdrop--ar {
  background-color: rgba(10, 15, 23, 0.72);
  background-image: none;
}

.hud-backdrop--ar::before,
.hud-backdrop--ar::after {
  content: none;
}

/* In AR mode, the glass panels need slightly more body so they
   stand out against varied real-world backgrounds. The rest of
   the HUD palette stays the same. */
.hud-backdrop--ar .card,
.hud-backdrop--ar .toggle-row,
.hud-backdrop--ar .tab {
  background: rgba(180, 210, 240, 0.08);
  border-color: rgba(180, 210, 240, 0.20);
}

.hud-backdrop--ar .card:hover,
.hud-backdrop--ar .tab:hover {
  background: rgba(180, 210, 240, 0.12);
}

.hud-backdrop--ar .toggle.active,
.hud-backdrop--ar .tab.active {
  background: rgba(180, 210, 240, 0.18);
}

/* ============================================================
   HUD top bar
   ============================================================ */

.hud-top {
  position: relative;
  z-index: 10;
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 2rem 0;
}

.hud-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  color: var(--hud-amber);
  text-transform: uppercase;
  margin: 0 0 0.4rem;
  opacity: 0.85;
}

.hud-title {
  font-family: var(--font-prose);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1.1;
  margin: 0 0 0.4rem;
  color: var(--hud-bright);
  letter-spacing: -0.01em;
}

.hud-title em {
  font-style: normal;
  color: var(--hud-amber-bright);
  font-weight: 400;
}

.hud-subtitle {
  font-family: var(--font-prose);
  font-size: 0.92rem;
  color: var(--hud-mid-fg);
  margin: 0 0 2rem;
  font-weight: 400;
}

.status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  margin: 0 0 1.5rem;
  padding: 0.6rem 0;
  border-top: 1px solid var(--hud-glass-edge);
  border-bottom: 1px solid var(--hud-glass-edge);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--hud-mid-fg);
  text-transform: uppercase;
}

.status-strip .stat { display: flex; align-items: baseline; gap: 0.5rem; }

.status-strip .stat .count {
  color: var(--hud-bright);
  font-weight: 600;
  font-size: 0.85rem;
}

.status-strip .spacer { flex: 1; }
.status-strip .timestamp { color: var(--hud-dim); }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.filter-group { display: flex; align-items: center; gap: 0.5rem; }

.filter-group .label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hud-dim);
  margin-right: 0.3rem;
}

.toggle-row {
  display: flex;
  background: var(--hud-glass);
  border: 1px solid var(--hud-glass-edge);
  border-radius: 2px;
  overflow: hidden;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.toggle {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: transparent;
  border: none;
  color: var(--hud-mid-fg);
  padding: 0.45rem 0.95rem;
  cursor: pointer;
  transition: all 0.15s ease;
  border-right: 1px solid var(--hud-glass-edge);
}

.toggle:last-child { border-right: none; }
.toggle:hover { background: var(--hud-glass-up); color: var(--hud-fore); }
.toggle.active { background: var(--hud-glass-bright); color: var(--hud-bright); }

.project-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 2rem;
}

.tab {
  font-family: var(--font-prose);
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--hud-glass);
  border: 1px solid var(--hud-glass-edge);
  border-bottom: 2px solid transparent;
  color: var(--hud-mid-fg);
  padding: 0.55rem 1.1rem 0.5rem;
  cursor: pointer;
  transition: all 0.18s ease;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border-radius: 2px 2px 0 0;
}

.tab:hover { background: var(--hud-glass-up); color: var(--hud-fore); }
.tab.active {
  background: var(--hud-glass-up);
  color: var(--hud-bright);
  border-bottom-color: var(--tab-accent, var(--hud-amber));
}

.tab .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--tab-accent, var(--hud-amber));
  box-shadow: 0 0 8px var(--tab-accent, var(--hud-amber));
  flex-shrink: 0;
}

.tab .count {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--hud-dim);
  letter-spacing: 0.05em;
}

.tab.active .count { color: var(--hud-mid-fg); }

.tab.all .dot {
  background: transparent;
  border: 1px solid var(--hud-mid-fg);
  box-shadow: none;
}

.cards {
  position: relative;
  z-index: 10;
  max-width: 1280px;
  margin: 0 auto 6rem;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1rem;
}

.card {
  position: relative;
  background: var(--hud-glass);
  border: 1px solid var(--hud-glass-edge);
  border-radius: 3px;
  padding: 1.2rem 1.3rem 1.1rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.18s ease;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  animation: card-in 0.4s ease both;
  overflow: hidden;
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.card::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 3px;
  background: var(--card-accent, var(--hud-mid-fg));
  opacity: 0.7;
}

.card::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 100%;
  background: linear-gradient(90deg, var(--card-accent, transparent) 0%, transparent 30%);
  opacity: 0.05;
  pointer-events: none;
}

.card:hover {
  background: var(--hud-glass-up);
  border-color: var(--hud-glass-bright);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.card:hover::before { opacity: 1; width: 4px; }

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--card-accent, var(--hud-mid-fg));
  font-weight: 600;
}

.card-number {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--hud-dim);
  letter-spacing: 0.06em;
}

.card-title {
  font-family: var(--font-prose);
  font-weight: 500;
  font-size: 1.02rem;
  line-height: 1.3;
  color: var(--hud-bright);
  margin: 0;
  letter-spacing: -0.005em;
}

.card-lead {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--hud-mid-fg);
  letter-spacing: 0.04em;
}

.card-lead .label {
  color: var(--hud-dim);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.progress { display: flex; flex-direction: column; gap: 0.35rem; margin: 0.1rem 0; }

.progress-bar {
  height: 3px;
  background: var(--hud-glass);
  border-radius: 1px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  background: linear-gradient(90deg, var(--card-accent, var(--hud-amber)) 0%, var(--card-accent-bright, var(--hud-amber-bright)) 100%);
  box-shadow: 0 0 6px var(--card-accent, var(--hud-amber));
  border-radius: 1px;
  transition: width 0.4s ease;
}

.progress-meta {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--hud-mid-fg);
  letter-spacing: 0.08em;
  display: flex;
  justify-content: space-between;
}

.progress-meta .label { color: var(--hud-dim); text-transform: uppercase; letter-spacing: 0.16em; }

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  align-items: baseline;
  padding-top: 0.6rem;
  border-top: 1px solid var(--hud-glass-edge);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--hud-mid-fg);
  letter-spacing: 0.04em;
}

.meta-item { display: flex; align-items: baseline; gap: 0.35rem; }

.meta-item .meta-label {
  color: var(--hud-dim);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.meta-item .meta-value { color: var(--hud-fore); }
.meta-reward .currency-mark { color: var(--hud-amber); margin-right: 0.1em; }
.meta-spacer { flex: 1; }

.card-status {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--hud-active);
  box-shadow: 0 0 6px var(--hud-active);
}

.card[data-status="completed"] .card-status {
  background: var(--hud-done);
  box-shadow: 0 0 6px var(--hud-done);
}

.card[data-status="stale"] .card-status {
  background: var(--hud-stale);
  box-shadow: none;
  opacity: 0.5;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 5rem 2rem;
  color: var(--hud-mid-fg);
}

.empty-state h2 {
  font-family: var(--font-prose);
  font-weight: 300;
  font-size: 1.4rem;
  color: var(--hud-bright);
  margin: 0 0 0.5rem;
  letter-spacing: -0.005em;
}

.empty-state p {
  font-size: 0.9rem;
  margin: 0;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.hud-corner {
  position: fixed;
  bottom: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hud-faint);
  z-index: 5;
  pointer-events: none;
}

.hud-corner.left  { left: 1.5rem; }
.hud-corner.right { right: 1.5rem; }

.hud-corner .blink {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--hud-amber);
  border-radius: 50%;
  margin-right: 0.5em;
  vertical-align: middle;
  box-shadow: 0 0 4px var(--hud-amber);
  animation: blink 2.4s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

@media (max-width: 700px) {
  .hud-corner { display: none; }
  .cards { grid-template-columns: 1fr; padding: 0 1rem; }
  .hud-top { padding: 2rem 1rem 0; }
}

.backdrop-toggle {
  position: fixed;
  bottom: 1.5rem;
  right: 50%;
  transform: translateX(50%);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--hud-glass);
  border: 1px solid var(--hud-glass-edge);
  color: var(--hud-mid-fg);
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  border-radius: 2px;
  z-index: 6;
  transition: all 0.15s ease;
}

.backdrop-toggle:hover { background: var(--hud-glass-up); color: var(--hud-fore); }

@media (max-width: 700px) { .backdrop-toggle { display: none; } }
