:root{
  --bg: #07060a;
  --ink: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.65);
  --faint: rgba(255,255,255,0.45);

  --panel: rgba(16, 14, 18, 0.76);
  --panel2: rgba(26, 22, 30, 0.72);
  --stroke: rgba(255,255,255,0.09);

  --ember: rgba(255,122,44,0.85);
  --ember2: rgba(255,184,90,0.65);
  --blood: rgba(220,60,80,0.75);
  --void: rgba(110, 90, 255, 0.45);
  --ring: rgba(255,184,90,0.22);
  --shadow: rgba(0,0,0,0.60);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  background:
    radial-gradient(1200px 800px at 30% 20%, rgba(255,184,90,0.06), transparent 55%),
    radial-gradient(900px 700px at 70% 80%, rgba(220,60,80,0.05), transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  overflow:hidden;
}

#sky{
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.wrap{
  position: relative;
  z-index: 1;
  height: 100%;
  display:grid;
  place-items: start center;
  padding: 24px 18px;
  pointer-events: none;
}

.panel{
  width: min(1100px, 100%);
  border-radius: 22px;
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  border: 1px solid var(--stroke);
  box-shadow:
    0 30px 80px var(--shadow),
    0 0 0 1px rgba(255,184,90,0.08) inset,
    0 0 70px rgba(255,122,44,0.10);
  overflow:hidden;
  pointer-events: auto;
}

.head{
  display:flex;
  align-items:center;
  gap: 14px;
  padding: 16px 18px 12px 18px;
  border-bottom: 1px solid var(--stroke);
  background: linear-gradient(90deg, rgba(255,122,44,0.10), transparent 35%);
}

.sigil{
  width: 52px;
  height: 52px;
  display:grid;
  place-items:center;
  border-radius: 14px;
  background: rgba(0,0,0,0.22);
  border: 1px solid var(--stroke);
  box-shadow: 0 0 0 1px rgba(255,184,90,0.08) inset, 0 0 24px rgba(255,122,44,0.12);
  font-size: 20px;
}

.title{ font-size: 18px; }
.sub{ font-size: 13px; color: var(--muted); }

.controls{
  padding: 12px 18px 6px 18px;
  display:flex;
  flex-direction: column;
  gap: 10px;
}

.chips{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip{
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,0.26);
  color: var(--ink);
  padding: 8px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}
.chip:hover{
  transform: translateY(-1px);
  border-color: rgba(255,184,90,0.22);
  box-shadow: 0 0 0 4px rgba(255,184,90,0.09);
}
.chip.on{
  border-color: rgba(255,184,90,0.30);
  background: linear-gradient(180deg, rgba(255,122,44,0.32), rgba(0,0,0,0.20));
}

.hint{
  font-size: 12px;
  color: var(--faint);
}

.legend{
  padding: 10px 18px 16px 18px;
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
}

.legendRow{ display:flex; align-items:center; gap: 8px; }
.dot{
  width: 10px; height: 10px; border-radius: 99px;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 0 14px rgba(255,255,255,0.10);
}
.dot.relic{ background: rgba(255,184,90,0.80); }
.dot.law{ background: rgba(220,60,80,0.80); }
.dot.ritual{ background: rgba(110,90,255,0.80); }
.dot.room{ background: rgba(255,122,44,0.80); }

.foot{
  padding: 12px 18px 16px 18px;
  border-top: 1px solid var(--stroke);
  color: var(--faint);
  font-size: 12px;
  display:flex;
  align-items:center;
  gap: 10px;
}
.footDot{
  width: 8px; height: 8px; border-radius: 99px;
  background: rgba(255,122,44,0.85);
  box-shadow: 0 0 18px rgba(255,122,44,0.35);
}
