:root {
  --bg:        #0b0705;
  --bg-card:   #141010;
  --bg-bar:   #221815;
  --rust:     #a83423;
  --rust-dim: #5c1e14;
  --bone:     #d5c89a;
  --muted:    #7a6a4a;
  --ok:       #8fb86b;
  --warn:     #d7a43a;
  --crit:     #e0513a;
  --border:   #3a2418;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--bone);
  font-family: "Fira Code", "Source Code Pro", "JetBrains Mono", ui-monospace, monospace;
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
}
body::before {
  content: ""; position: fixed; inset: 0;
  background:
    radial-gradient(ellipse at top, rgba(168, 52, 35, 0.08), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.012) 0, rgba(255,255,255,0.012) 1px, transparent 1px, transparent 3px);
  pointer-events: none; z-index: 0;
}
main.frame {
  position: relative; z-index: 1;
  max-width: 1100px; margin: 0 auto; padding: 32px 24px 48px;
}
header {
  display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center;
  border: 1px solid var(--border); padding: 20px 24px; margin-bottom: 24px;
  background: linear-gradient(180deg, #160c08, #0b0705);
}
header .glyph {
  font-size: 56px; color: var(--rust); line-height: 1;
  text-shadow: 0 0 12px rgba(168,52,35,0.4);
  animation: spin 16s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
header .title .primary {
  font-size: 22px; letter-spacing: 4px; color: var(--rust);
  text-transform: uppercase; font-weight: 700;
}
header .title .secondary { font-size: 12px; color: var(--muted); letter-spacing: 2px; margin-top: 4px; }
header .prayer {
  font-size: 11px; color: var(--muted); text-align: right;
  max-width: 280px; font-style: italic; line-height: 1.4;
}
.grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px;
}
.card {
  border: 1px solid var(--border); background: var(--bg-card);
  padding: 18px 20px; position: relative;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; width: 4px; height: 100%;
  background: var(--rust-dim);
}
.card--wide { grid-column: 1 / -1; }
.card h2 {
  font-size: 13px; margin: 0 0 14px; letter-spacing: 3px;
  color: var(--rust); text-transform: uppercase; font-weight: 600;
}
dl { display: grid; grid-template-columns: 140px 1fr; gap: 6px 14px; margin: 0; }
dt {
  font-size: 11px; color: var(--muted); letter-spacing: 1.5px;
  text-transform: uppercase; align-self: center;
}
dd { margin: 0; font-size: 13px; color: var(--bone); word-break: break-word; }
.bar {
  display: inline-block; vertical-align: middle;
  width: 120px; height: 8px; margin-left: 10px;
  background: var(--bg-bar); border: 1px solid var(--border); position: relative;
}
.bar i {
  display: block; height: 100%; width: 0;
  background: var(--ok); transition: width 0.4s ease;
}
.bar i.warn { background: var(--warn); }
.bar i.crit { background: var(--crit); }
.status { letter-spacing: 2px; font-weight: 600; }
.status.ok { color: var(--ok); }
.status.crit { color: var(--crit); }
.muted { color: var(--muted); font-size: 11px; }
.enter {
  display: inline-block; margin-top: 18px; padding: 14px 28px;
  background: var(--rust); color: #0b0705; text-decoration: none;
  font-weight: 700; letter-spacing: 3px; font-size: 14px;
  border: 1px solid var(--rust); text-transform: uppercase;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.enter:hover {
  background: #c94434; box-shadow: 0 0 24px rgba(201,68,52,0.35);
}
.enter.disabled {
  background: transparent; color: var(--muted); border-color: var(--border);
  pointer-events: none; cursor: not-allowed;
}
footer {
  margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; font-size: 11px;
  color: var(--muted); letter-spacing: 2px; text-transform: uppercase;
}
@media (max-width: 680px) {
  header { grid-template-columns: auto 1fr; }
  header .prayer { grid-column: 1 / -1; text-align: left; max-width: 100%; }
  dl { grid-template-columns: 1fr; gap: 2px 0; }
  dt { margin-top: 8px; }
  .bar { width: 100%; margin: 6px 0 0; display: block; }
}
