:root {
  --ink: #e8dcc4;
  --mute: #b9a67e;
  --desk: rgba(16, 12, 9, 0.82);
  --line: rgba(196, 163, 90, 0.35);
  --gold: #c4a35a;
  --ui: "Source Sans 3", system-ui, sans-serif;
  --display: "Cinzel", Palatino, serif;
}
* { box-sizing: border-box; }
html {
  scrollbar-width: thin;
  scrollbar-color: #c4a35a #1b140f;
}
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: #120e0a; }
*::-webkit-scrollbar-thumb { background: #c4a35a; border: 1px solid #1b140f; }
*::-webkit-scrollbar-thumb:hover { background: #e8d7a8; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #05060c; color: var(--ink); font-family: var(--ui); }
#sky {
  position: fixed; inset: 0; width: 100%; height: 100%;
  display: block; z-index: 0;
}
.hud-top {
  position: fixed; top: 16px; left: 16px; right: 16px;
  z-index: 3; display: flex; justify-content: space-between; gap: 12px;
  pointer-events: none;
}
.hud-top > * { pointer-events: auto; }
.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.brand-head {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.brand-kicker {
  margin: 0 0 2px;
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 1px 8px #000;
}
.brand h1 {
  font-family: var(--display); letter-spacing: .22em; font-weight: 500;
  font-size: 0.95rem; margin: 0; text-shadow: 0 2px 16px #000;
}
.compass {
  position: relative;
  width: 78px;
  height: 78px;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.55));
}
.compass svg { width: 100%; height: 100%; display: block; }
.compass-rose {
  transform-origin: 50px 50px;
  transform-box: fill-box;
  transition: transform 0.6s ease;
}
.compass-ahead {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 1px 6px #000;
}
.compass text.c-n {
  font-family: var(--display);
  font-size: 9px;
  fill: #ead7a0;
}
.compass text.c-ns {
  font-family: var(--display);
  font-size: 8px;
  fill: #c4a35a;
}
.live-pill {
  align-self: start;
  background: var(--desk);
  border: 1px solid var(--line);
  padding: 8px 10px;
  backdrop-filter: blur(10px);
  font-size: 0.8rem;
  display: flex; gap: 6px; flex-wrap: wrap;
}
.live-pill button, .ghost, .pill-link {
  background: transparent; color: var(--ink); border: 1px solid var(--line);
  padding: 6px 10px; cursor: pointer; font-family: var(--ui);
  min-height: 36px;
  text-decoration: none;
  display: inline-flex; align-items: center;
}
.live-pill button.on { background: var(--gold); color: #1b140f; border-color: var(--gold); }
.pill-link.gold { background: var(--gold); color: #1b140f; border-color: var(--gold); }

.desk {
  position: fixed; left: 16px; bottom: 16px; transform: none;
  width: min(560px, calc(100vw - 240px));
  z-index: 4;
  background: var(--desk);
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
  backdrop-filter: blur(16px);
  padding: 10px 14px;
}
.desk-bar {
  display: flex; align-items: center; gap: 10px; justify-content: space-between;
}
.desk-bar .readout { margin: 0; flex: 1; }
.desk.collapsed { padding: 6px 12px; }
.desk.collapsed .desk-body { display: none; }
.desk-grid {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}
#chart { width: 210px; height: 210px; display: block; }
.desk table { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
.desk th, .desk td { padding: 3px 5px; border-bottom: 1px solid rgba(196,163,90,.15); text-align: left; }
.desk th { color: var(--gold); font-weight: 500; letter-spacing: .04em; }
.readout { font-size: 0.8rem; color: var(--mute); }
.place-line { font-size: 0.75rem; color: var(--mute); margin-top: 6px; }

.drawer, .glossary {
  position: fixed; top: 64px; z-index: 5;
  background: var(--desk); border: 1px solid var(--line);
  padding: 12px; backdrop-filter: blur(12px);
}
.drawer {
  right: 16px; width: min(340px, calc(100vw - 32px));
  display: none;
}
.drawer.open { display: block; }
.glossary {
  left: 16px; width: min(380px, calc(100vw - 32px));
  max-height: calc(100vh - 140px);
  display: flex; flex-direction: column;
}
.glossary[hidden] { display: none !important; }
.glossary-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.glossary-head h2 {
  font-family: var(--display); font-size: 0.85rem; letter-spacing: .12em;
  text-transform: uppercase; margin: 0; color: var(--gold);
}
.glossary-list { overflow: auto; margin-top: 8px; }
.g-item { padding: 8px 0; border-bottom: 1px solid rgba(196,163,90,.15); }
.g-item b { display: block; font-size: 0.88rem; }
.g-item p { margin: 4px 0 0; font-size: 0.8rem; color: var(--mute); line-height: 1.45; }

.drawer label, .glossary label { display: block; font-size: 0.72rem; color: var(--mute); margin: 6px 0 3px; }
.drawer input, .glossary input, .drawer button { width: 100%; }
input {
  background: rgba(0,0,0,.35); color: var(--ink); border: 1px solid var(--line); padding: 7px 8px;
  font-family: var(--ui);
}
.drawer button[type="submit"], #use-now {
  margin-top: 8px; background: var(--gold); border: 0; color: #1b140f; padding: 7px 10px; cursor: pointer; width: auto;
}
#map { height: 160px; margin-top: 8px; }
.choices { list-style: none; margin: 6px 0 0; padding: 0; font-size: 0.78rem; }
.choices li { padding: 5px 0; cursor: pointer; border-bottom: 1px solid rgba(196,163,90,.15); }
.status { font-size: 0.75rem; min-height: 1em; margin-top: 6px; color: var(--mute); }
.status.error { color: #e07a5a; }

.workshop-cta {
  position: fixed;
  right: 18px;
  bottom: 16px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 14px 22px 16px;
  border: 1px solid #e6d3a0;
  background: linear-gradient(180deg, #e8d7a8 0%, #c4a35a 55%, #8d6b2e 100%);
  color: #1b140f;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.35);
  font-family: var(--display);
}
.workshop-cta:hover { filter: brightness(1.06); }
.workshop-cta:active { transform: translateY(1px); }
.cta-kicker {
  font-family: var(--ui);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0;
  opacity: 0.8;
}
.cta-title {
  font-size: 1.05rem;
  letter-spacing: 0.06em;
}
body.workshop-open .workshop-cta,
body.workshop-open .desk,
body.workshop-open .hud-top,
body.workshop-open .drawer,
body.workshop-open #sky { visibility: hidden; pointer-events: none; }

.workshop {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  background: #0c0a08;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border: 0;
  box-sizing: border-box;
}
.workshop[hidden] { display: none !important; }
.workshop-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(16,12,9,0.92);
  flex-shrink: 0;
}
.workshop-bar h2 {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  margin: 4px 0 0;
  font-weight: 500;
}
.workshop-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.workshop-body {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(200px, 240px) minmax(280px, 1fr) minmax(280px, 1fr);
  min-height: 0;
  overflow: hidden;
}
.charm-list {
  border-right: 1px solid var(--line);
  overflow: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}
.charm-list button {
  text-align: left;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 12px 14px;
  cursor: pointer;
  font-family: var(--ui);
  flex: 0 0 auto;
}
.workshop-main {
  overflow: auto;
  padding: 16px 22px 28px;
  min-height: 0;
  min-width: 0;
}
.elect-block {
  min-height: 0;
  overflow: auto;
  padding: 16px 22px 28px;
  border-left: 1px solid var(--line);
}
.charm-list {
  border-right: 1px solid var(--line);
  overflow: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.charm-list button {
  text-align: left;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 12px 14px;
  cursor: pointer;
  font-family: var(--ui);
  min-height: 56px;
}
.charm-list button b { display: block; font-family: var(--display); font-weight: 500; letter-spacing: 0.04em; }
.charm-list button span { display: block; font-size: 0.78rem; color: var(--mute); margin-top: 4px; }
.charm-list button.on {
  background: #c4a35a;
  color: #1b140f;
  border-color: #e8d7a8;
}
.charm-list button.on span { color: #3a2c14; }
.workshop-main {
  overflow: auto;
  padding: 16px 22px 28px;
  min-height: 0;
  min-width: 0;
}
.join {
  background: var(--gold); border: 0; color: #1b140f;
  padding: 9px 12px; cursor: pointer; font-family: var(--display);
  letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.78rem;
  width: auto; align-self: start;
}
.scan-label {
  display: block;
  font-size: 0.72rem;
  color: var(--mute);
  margin: 0 0 4px;
}
#scan-days {
  display: block;
  width: 100%;
  max-width: 220px;
  margin-bottom: 10px;
  background: rgba(0,0,0,.35);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 7px 8px;
  font-family: var(--ui);
}
.hit.peak {
  border-color: #e8d7a8;
  background: rgba(196,163,90,.12);
}
.hit.selected {
  background: #c4a35a;
  color: #1b140f;
  border-color: #e8d7a8;
}
.hit.selected b { color: #1b140f; }
.making blockquote.px {
  margin: 12px 0;
  padding: 10px 12px;
  border-left: 2px solid var(--gold);
  color: var(--mute);
  font-size: 0.84rem;
  line-height: 1.45;
}
.making blockquote.px p { margin: 0 0 6px; font-style: italic; color: var(--ink); }
.making cite { font-style: normal; font-size: 0.72rem; letter-spacing: 0.04em; }
.say {
  font-family: var(--display);
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.4;
  margin: 4px 0 8px;
}
.figure-wrap {
  margin: 8px 0 10px;
  max-width: 200px;
  color: #e8d7a8;
}
.fig-edit {
  margin: 8px 0 14px;
  padding: 10px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.22);
  max-width: 420px;
}
.fig-edit p.cta-kicker { margin: 0 0 6px; }
.fig-edit textarea {
  width: 100%;
  min-height: 90px;
  resize: vertical;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.72rem;
  line-height: 1.4;
  background: #120e0a;
  color: #e8dcc4;
  border: 1px solid var(--line);
  padding: 8px;
  box-sizing: border-box;
}
.fig-edit .row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.fig-edit .hint { margin: 6px 0 0; font-size: 0.75rem; }
.bench-key { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.bench-key input {
  width: 100%;
  margin-top: 4px;
  background: #120e0a;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 8px;
}
.charm-fig {
  width: 160px;
  height: 160px;
  display: block;
  background: rgba(0,0,0,.25);
  border: 1px solid var(--line);
  padding: 10px;
}
.elect-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.elect-actions[hidden] { display: none !important; }
.scan-results { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.hit {
  text-align: left; width: 100%;
  background: rgba(0,0,0,.28); color: var(--ink);
  border: 1px solid var(--line); padding: 8px 10px; cursor: pointer;
  font-family: var(--ui); font-size: 0.78rem; line-height: 1.4;
  white-space: normal;
}
.hit b { display: block; color: var(--gold); font-weight: 600; }
.making { font-size: 0.9rem; line-height: 1.5; color: var(--mute); }
.making h3 {
  font-family: var(--display); color: var(--gold); font-size: 0.8rem;
  letter-spacing: .12em; text-transform: uppercase; margin: 14px 0 4px;
}
.making ol, .making ul { margin: 0; padding-left: 1.2em; color: var(--ink); }
.making ul.why { color: var(--mute); }
.making ul.why li { margin: 0 0 6px; }
.print-sheet { display: none; }
.pdf-sheet, .print-sheet {
  background: #3d2a16;
  color: #f3e6c4;
  font-family: "Source Sans 3", system-ui, sans-serif;
}
.pdf-sheet {
  position: fixed;
  left: 0;
  top: 0;
  width: 148mm;
  min-height: 210mm;
  overflow: visible;
  padding: 0;
  z-index: -1;
  pointer-events: none;
  box-sizing: border-box;
}
.sheet-inner {
  box-sizing: border-box;
  height: 210mm;
  padding: 9mm 10mm 8mm;
  background: #3d2a16;
  border: 1.6px solid #c4a35a;
  box-shadow: inset 0 0 0 3.5mm #3d2a16, inset 0 0 0 4.2mm #c4a35a;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sheet-kicker {
  margin: 0;
  font-size: 7.5pt;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #c4a35a;
}
.sheet-head { flex: 0 0 auto; }
.sheet-head h2 {
  font-family: Cinzel, Palatino, serif;
  color: #f0ddb0;
  font-size: 18pt;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin: 2px 0 2px;
}
.sheet-blurb { margin: 0; color: #d4c39a; font-size: 9pt; }
.sheet-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 6px 12px;
  align-items: start;
}
.sheet-fig {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.sheet-fig-art {
  width: 96px;
  height: 96px;
  margin: 0 auto 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sheet-fig .charm-fig {
  width: 96px;
  height: 96px;
  margin: 0;
  color: #c4a35a;
  border: 1px solid rgba(196,163,90,.55);
  display: block;
  padding: 0;
}
.sheet-fig p, .sheet-meta p { margin: 0 0 4px; font-size: 8.5pt; line-height: 1.32; }
.pdf-sheet h3, .print-sheet h3 {
  font-family: Cinzel, Palatino, serif;
  color: #c4a35a;
  font-size: 7.5pt;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 5px 0 1px;
  font-weight: 500;
}
.pdf-sheet ul, .pdf-sheet ol, .print-sheet ul, .print-sheet ol {
  margin: 0; padding-left: 1.05em; font-size: 8.5pt; line-height: 1.32;
}
.pdf-sheet li, .print-sheet li { margin: 0 0 2px; }
.pdf-sheet blockquote, .print-sheet blockquote {
  margin: 2px 0;
  padding: 5px 8px;
  border-left: 2px solid #c4a35a;
  color: #d4c39a;
  font-style: italic;
  font-size: 8.5pt;
  background: transparent;
}
.pdf-sheet cite, .print-sheet cite { display: block; font-style: normal; color: #c4a35a; font-size: 7pt; margin-top: 2px; }
.sheet-say { color: #f0ddb0; }
.sheet-body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 6px; min-height: 0; }
.sheet-foot {
  margin: auto 0 0;
  padding-top: 6px;
  border-top: 1px solid rgba(196,163,90,.45);
  font-size: 7.5pt;
  letter-spacing: 0.04em;
  color: #d4c39a;
}

@media (max-width: 760px) {
  .desk-grid { grid-template-columns: 1fr; }
  #chart { width: 160px; height: 160px; margin: 0 auto; }
  .desk { left: 8px; bottom: 8px; width: min(68vw, 420px); max-height: 52vh; overflow: auto; }
  .live-pill { max-width: 58vw; }
  .workshop-body { grid-template-columns: 1fr; }
  .charm-list { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .charm-list button { min-width: 160px; }
  .elect-block { border-left: 0; border-top: 1px solid var(--line); }
  .workshop-cta { left: auto; right: 12px; bottom: 12px; }
}

@media print {
  @page { size: A5; margin: 0; }
  html, body { background: #3d2a16 !important; }
  body * { visibility: hidden !important; }
  .print-sheet, .print-sheet * { visibility: visible !important; }
  .pdf-sheet { display: none !important; }
  .print-sheet {
    display: block !important;
    position: absolute;
    inset: 0;
    width: 148mm;
    height: 210mm;
    background: #3d2a16 !important;
    color: #f3e6c4 !important;
    padding: 0;
    font-family: "Source Sans 3", system-ui, sans-serif;
  }
}

.about-link {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--line);
  padding: 4px 10px;
  font-family: var(--ui);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 6px;
}
.about-panel { width: min(460px, calc(100vw - 32px)); }
.about-copy { font-size: 0.86rem; line-height: 1.5; color: var(--ink); }
.about-copy h3 {
  font-family: var(--display); color: var(--gold); font-size: 0.78rem;
  letter-spacing: .1em; text-transform: uppercase; margin: 14px 0 6px;
}
.about-copy ul { margin: 0; padding-left: 1.2em; color: var(--mute); }
.about-copy li { margin: 0 0 6px; }
.about-copy blockquote {
  margin: 10px 0; padding-left: 12px; border-left: 2px solid var(--gold);
}
.about-copy blockquote p { font-style: italic; margin: 0 0 4px; }
.about-copy cite { font-style: normal; font-size: 0.72rem; color: var(--mute); }

.mode-tabs { display: flex; gap: 6px; margin-top: 8px; }
.mode-tabs button {
  background: transparent; color: var(--ink); border: 1px solid var(--line);
  padding: 5px 10px; cursor: pointer; font-family: var(--ui);
}
.mode-tabs button.on { background: var(--gold); color: #1b140f; border-color: var(--gold); }

.sage-board {
  overflow: hidden;
  padding: 8px 12px 10px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.sage-board[hidden] { display: none !important; }
.sage-board button, .sage-board input { cursor: pointer; }
.sage-board input { cursor: text; }
.sage-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-shrink: 0; }
.sage-top .status { margin: 0; }
.sage-board label { display: block; font-size: 0.72rem; color: var(--mute); margin: 0; }
.sage-board input { width: 100%; padding: 5px 7px; }
.sage-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
  flex-shrink: 0;
}
.hour-picks, .planet-tray { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; flex-shrink: 0; }
.hour-picks button, .planet-tray button {
  background: transparent; color: var(--ink); border: 1px solid var(--line);
  padding: 5px 8px; cursor: pointer; font-family: var(--ui);
}
.hour-picks button.on, .planet-tray button.on { background: var(--gold); color: #1b140f; border-color: var(--gold); }
.planet-tray button.placed:not(.on) { border-color: #e8d7a8; color: #e8d7a8; }
#sage-wheel {
  flex: 1 1 auto;
  width: auto;
  max-width: min(100%, calc(100vh - 220px));
  max-height: calc(100vh - 220px);
  min-height: 180px;
  height: auto;
  display: block;
  margin: 0 auto;
  cursor: default;
  user-select: none;
}
#sage-wheel .house { fill: rgba(196,163,90,.08); stroke: rgba(196,163,90,.45); cursor: pointer; }
#sage-wheel .house:hover, #sage-wheel .house.hot { fill: rgba(196,163,90,.26); stroke: #e8d7a8; }
#sage-wheel .house.held { fill: rgba(196,163,90,.38); stroke: #e8d7a8; }
#sage-wheel text { fill: #e8d7a8; font-family: Cinzel, serif; pointer-events: none; user-select: none; }
#sage-wheel .h-name { font-size: 15px; }
#sage-wheel .h-num { font-size: 13px; fill: #c4a35a; }
#sage-wheel .p-glyph { font-size: 24px; fill: #f0ddb0; }
#sage-place-note { flex-shrink: 0; margin: 2px 0 4px; min-height: 1em; }
body.sage-open .workshop-bar { padding: 8px 18px; }
body.sage-open .workshop-bar h2 { font-size: 1.15rem; }
body.sage-open .workshop-body {
  grid-template-columns: minmax(380px, 1.25fr) minmax(220px, 0.9fr) minmax(240px, 0.95fr);
  overflow: hidden;
}
body.sage-open .workshop-main,
body.sage-open .elect-block { overflow: auto; }

.charm-list[hidden] { display: none !important; }
.charm-list, .sage-board { grid-column: 1; grid-row: 1; min-height: 0; height: 100%; }
.workshop-main { grid-column: 2; grid-row: 1; min-height: 0; overflow: auto; }
.elect-block { grid-column: 3; grid-row: 1; }

.glossary-head .ghost { width: auto; min-width: 72px; align-self: center; }

.natal-banner {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  background: var(--desk);
  border: 1px solid var(--line);
  color: var(--gold);
  padding: 6px 14px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  pointer-events: none;
}
.paywall {
  position: absolute;
  inset: 0;
  z-index: 8;
  background: rgba(8,6,4,.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.paywall[hidden] { display: none !important; }
.paywall-card {
  width: min(420px, 100%);
  background: #120e0a;
  border: 1px solid var(--gold);
  padding: 22px 24px;
}
.paywall-card h2 {
  font-family: var(--display);
  color: var(--gold);
  margin: 4px 0 8px;
}
.paywall-card .join { display: inline-block; margin: 12px 12px 0 0; text-decoration: none; color: #1b140f; }

.threshold {
  position: absolute;
  inset: 0;
  z-index: 9;
  background: #0c0a08;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 18px 16px 20px;
  overflow: hidden;
}
.threshold[hidden] { display: none !important; }
.threshold-card {
  width: min(720px, 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #120e0a;
  border: 1px solid var(--gold);
  min-height: 0;
}
.threshold-head, .threshold-foot {
  flex-shrink: 0;
  padding: 18px 22px 14px;
}
.threshold-head { border-bottom: 1px solid var(--line); }
.threshold-head h2 {
  font-family: var(--display);
  color: var(--gold);
  margin: 4px 0 8px;
  font-size: 1.45rem;
  letter-spacing: 0.06em;
}
.threshold-head .mute, .threshold-foot .mute {
  margin: 0;
  color: var(--mute);
  font-size: 0.92rem;
  line-height: 1.45;
}
.threshold-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 8px 22px 18px;
}
.threshold-body section { margin: 18px 0; }
.threshold-body h3 {
  font-family: var(--display);
  color: var(--gold);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.threshold-body p, .threshold-body li {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 10px;
}
.threshold-body ul { margin: 0; padding-left: 1.1em; }
.threshold-body li { margin-bottom: 8px; }
.threshold-body b { color: #e8d7a8; font-weight: 600; }
.threshold-foot {
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.threshold-foot .join { min-height: 44px; padding: 10px 18px; }
.charm-list button.locked { opacity: 0.72; }
.charm-list button.locked span { color: var(--gold); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.68rem; }
