:root {
  --ink: #f4f1ea;
  --muted: #9aa0ab;
  --bg: #07080b;
  --panel: rgba(18, 20, 26, 0.72);
  --line: rgba(244, 241, 234, 0.1);
  --brass: #d8dbe3;
  --fess: #c11f2a;
  --go: #3d9a6a;
  --stop: #c11f2a;
  --error: #e07a6a;
  --radius: 1.15rem;
  --glass: blur(22px) saturate(1.15);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Outfit, "Segoe UI", "Helvetica Neue", sans-serif;
  font-weight: 400;
  background:
    radial-gradient(ellipse 80% 50% at 50% -8%, rgba(193, 31, 42, 0.16), transparent 52%),
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(216, 219, 227, 0.08), transparent 48%),
    #07080b;
  color: var(--ink);
  letter-spacing: 0.015em;
}

.eyebrow {
  letter-spacing: 0.38em;
  text-transform: uppercase;
  font-size: 0.64rem;
  color: var(--brass);
  margin: 0 0 0.35rem;
  font-weight: 400;
}

h1, h2, h3 { font-weight: 400; margin: 0 0 0.8rem; }
h1 { font-size: 1.45rem; letter-spacing: 0.08em; }
h2 { font-size: 0.92rem; color: var(--brass); letter-spacing: 0.14em; text-transform: uppercase; }
h3 { font-size: 0.82rem; color: var(--muted); letter-spacing: 0.08em; }
.muted { color: var(--muted); font-size: 0.84rem; font-weight: 300; }

.crest {
  display: block;
  width: 6.2rem;
  height: auto;
  margin: 0 auto 0.95rem;
  border: 1px solid rgba(244, 241, 234, 0.28);
  background: #f4f1ea;
  padding: 0.28rem;
  position: relative;
  z-index: 1;
}
.crest-board {
  width: 6rem;
  margin: 0 auto 0.85rem;
}
.mast {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.1rem 0 0.5rem;
  position: relative;
}
.mast::before {
  content: "";
  position: absolute;
  top: -1.2rem;
  width: 14rem;
  height: 14rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 241, 234, 0.16), rgba(193, 31, 42, 0.08) 38%, transparent 68%);
  pointer-events: none;
}
.mast .motto { margin: 0; max-width: 40rem; position: relative; }
.desk-bar {
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) auto minmax(10rem, 1fr);
  gap: 1rem 1.4rem;
  align-items: start;
}
.desk-left { min-width: 0; grid-column: 1; }
.desk-bar .mast { grid-column: 2; padding: 0.15rem 0 0; }
.desk-bar .crest-board { width: 4.6rem; margin-bottom: 0.4rem; }
.desk-right { grid-column: 3; justify-self: end; }
.network-name {
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--ink);
  margin: 0;
  text-align: left;
  font-weight: 400;
  line-height: 1.45;
  max-width: 22rem;
}
.network-name::after {
  content: "";
  display: block;
  width: 2.4rem;
  height: 1px;
  margin: 0.7rem 0 0;
  background: var(--fess);
}
.desk-tag {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.desk-right {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
}
.desk-facts {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 1.4rem;
  row-gap: 0.45rem;
  margin: 0;
  text-align: left;
}
.desk-facts div { margin: 0; }
.desk-facts dt {
  margin: 0;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.desk-facts dd {
  margin: 0.12rem 0 0;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.desk-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
  padding-top: 0.15rem;
}
.brand { display: flex; align-items: center; gap: 0.9rem; }
.brand-copy h1 { margin: 0; font-size: 1rem; letter-spacing: 0.12em; text-transform: uppercase; }
.motto {
  font-family: "Cormorant Garamond", Palatino, "Times New Roman", serif;
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.08em;
  margin: 0 0 0.7rem;
  font-size: 1.28rem;
  text-align: center;
}
.top {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.25rem;
  padding: 1.4rem 2.4rem 1.2rem;
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.top-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.status { display: flex; align-items: center; gap: 0.85rem; }
.lamp {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--stop);
}
.lamp.on { background: var(--go); }

.workspace-nav[hidden],
.sport-nav[hidden],
.sport-sub[hidden] {
  display: none !important;
}
.workspace-nav {
  position: sticky;
  top: 0.65rem;
  z-index: 45;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  margin: 0.85rem 1.6rem 0;
  padding: 0.45rem;
  background: rgba(10, 11, 14, 0.55);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.workspace-nav button {
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-weight: 400;
  font-size: 0.8rem;
  flex: 0 0 auto;
}
.workspace-nav button.on {
  background: var(--fess);
  color: var(--ink);
  border-color: transparent;
}
.workspace-nav .rec-jump {
  border-color: var(--fess);
  color: var(--fess);
}
.workspace-nav .rec-jump:not([hidden]) {
  animation: recpulse 1.2s ease-in-out infinite;
}
.board-notice { padding: 0.7rem 2.4rem 0; }
.workspace { display: none; padding: 1.35rem 2.4rem 2.6rem; }
.workspace.on { display: block; }
.workspace .grid { padding: 1rem 0 0; }
.workspace .metrics { padding: 0 0 0.5rem; }
.workspace .card.wide { margin-bottom: 0; }
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  padding: 1rem 2rem 0;
}
.metrics article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.05rem 1.15rem;
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
}
.metrics span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 400;
}
.metrics strong { font-size: 1.4rem; font-weight: 400; }

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1rem 2rem 2rem;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem 1.4rem;
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
}
.card.wide { grid-column: 1 / -1; }
.wide-note { grid-column: 1 / -1; margin: 0 0 0.4rem; }
.mail {
  border-top: 1px solid var(--line);
  padding: 0.75rem 0 0.35rem;
}
.mail.urgent { border-left: 2px solid var(--fess); padding-left: 0.7rem; }
.mail p { margin: 0 0 0.35rem; }

.recorder { position: sticky; top: 4.2rem; z-index: 30; }
.recorder.live { border-color: var(--fess); }
.recorder-actions { flex-wrap: wrap; }
.notes-desk {
  display: grid;
  grid-template-columns: minmax(14rem, 18rem) 1fr;
  gap: 1rem;
}
.notes-list { list-style: none; margin: 0.6rem 0 0; padding: 0; }
.notes-list li { margin: 0 0 0.35rem; }
.notes-list button {
  width: 100%;
  text-align: left;
  border-radius: 0.85rem;
}
.notes-list button.on { border-color: var(--fess); }
.notes-rail .news-desks { margin: 0.35rem 0 0.55rem; }
.live-caption {
  min-height: 2.4rem;
  margin: 0 0 0.8rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  color: var(--ink);
  font-weight: 300;
}
.notes-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.1rem;
  margin-top: 0.9rem;
}
.transcript {
  min-height: 16rem;
  max-height: 28rem;
  overflow: auto;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  outline: none;
}
.transcript p { margin: 0 0 0.55rem; cursor: pointer; }
.transcript p.on { color: var(--brass); }
.row-check { display: flex; align-items: center; gap: 0.4rem; }
.notes-head h2 { text-transform: none; letter-spacing: 0.04em; font-size: 1.15rem; }
.flip-card {
  width: 100%;
  min-height: 8.5rem;
  margin: 0.6rem 0;
  padding: 1.2rem 1rem;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.45;
  border-color: var(--line);
}
.inline-form { display: inline; margin: 0; }
.meet-box { margin: 0.85rem 0 0.4rem; }
.dictate-btn { margin-left: 0.35rem; }
.news-desks { margin: 0.7rem 0 1rem; position: static; }
#rugby-desks { margin-top: -0.4rem; }
.race-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 0.85rem;
  margin: 0.6rem 0 1.2rem;
}
.race-card h3 { color: var(--ink); text-transform: none; letter-spacing: 0.03em; }
.result-row { margin: 0.45rem 0; }
.result-cap { margin: 0 0 0.2rem; font-size: 0.82rem; }
.result-track {
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(244, 241, 234, 0.08);
  overflow: hidden;
}
.result-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  min-width: 0;
}
.us-map {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(8, 2.15rem);
  gap: 0.22rem;
  margin: 0.5rem 0 1.2rem;
}
.us-state {
  border: 0;
  border-radius: 0.28rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: #1a1408;
  cursor: pointer;
  padding: 0;
}
.us-state.on { outline: 2px solid var(--brass); }
.us-state.idle { opacity: 0.38; }
.us-state.watch { box-shadow: inset 0 0 0 2px #e0b84d; }
.watch-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 0.7rem;
  margin: 0.4rem 0 1.2rem;
}
.watch-card h3 { color: var(--ink); text-transform: none; letter-spacing: 0.03em; }
.seat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: 0.45rem 0 0.65rem;
}
.seat {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}
.seat.empty { background: rgba(244, 241, 234, 0.12); }
#election-runners { margin: 0 0 1.2rem; }
.sport-block { margin: 0 0 1.2rem; padding: 0.9rem 1rem 1rem; }
.sport-hero {
  margin: 0 0 1rem;
  padding: 1rem 1.1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(193, 31, 42, 0.08);
}
.sport-hero h3 {
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 1.25rem;
  margin: 0.15rem 0 0.35rem;
}
.sport-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 0.85rem;
  margin: 0 0 1rem;
}
.sport-fact { margin: 0 0 0.85rem; }
.sport-fact h3 {
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0.03em;
  margin: 0.15rem 0 0.3rem;
}
.sport-table-wrap { overflow-x: auto; margin: 0.4rem 0 0.5rem; }
.sport-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.sport-table th,
.sport-table td {
  text-align: left;
  padding: 0.35rem 0.5rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.sport-table th { color: var(--brass); font-weight: 400; letter-spacing: 0.04em; }
.sport-table tr.hot td { background: rgba(193, 31, 42, 0.14); }
.sport-table td.gold {
  background: #e0b84d;
  color: #1a1408;
  font-weight: 600;
}
.sport-nav,
.sport-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.55rem 0 0;
}
.sport-nav button,
.sport-sub button {
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
}
.sport-nav button.on,
.sport-sub button.on {
  background: var(--fess);
  color: var(--ink);
  border-color: transparent;
}
.sport-sub { padding-top: 0.15rem; }
#rassie-clip { margin-top: 1rem; }
.sport-embed {
  display: block;
  width: 100%;
  max-width: 640px;
  height: 360px;
  border: 0;
  margin: 0.6rem 0;
}
.briefing-copy {
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.45;
  margin: 0.8rem 0 0;
}
.news-list article { margin-bottom: 0.35rem; }
.news-list a { display: inline-block; margin: 0.15rem 0 0.2rem; }
.news-lean { letter-spacing: 0.02em; }
.meet-box label { display: block; margin-bottom: 0.45rem; }
button.text-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--brass);
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
}
button.text-link:hover { color: var(--ink); }
#scratch-pad { width: 100%; min-height: 7rem; }
.quick-row form { margin: 0; }
.quick-row button.on { border-color: var(--go); color: var(--go); }
.lamp.rec {
  background: var(--fess);
  animation: recpulse 1.2s ease-in-out infinite;
}
@keyframes recpulse { 50% { opacity: 0.45; } }

.ptp-thread { min-height: 8rem; max-height: 18rem; }
#ptp-peers { margin: 0.5rem 0; }
.board-shell {
  display: grid;
  grid-template-columns: 13.5rem 1fr;
  gap: 1rem;
  align-items: start;
}
.chats {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.95rem;
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
}
.chats ul { margin-top: 0.6rem; }
.chats li { border-top: 0; padding: 0.15rem 0; display: block; }
.chats li.on .chat-pick { border-color: var(--fess); color: var(--ink); }
.chat-pick {
  width: 100%;
  text-align: left;
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 999px;
}
.chat-main { margin: 0; }
.chat-main.drop-on { outline: 1px dashed var(--brass); }
@media (max-width: 900px) {
  .board-shell { grid-template-columns: 1fr; }
  .workspace-nav { margin: 0.6rem 0.85rem 0; border-radius: 1.2rem; }
  .notes-desk, .notes-split { grid-template-columns: 1fr; }
}
.chat-head { margin-bottom: 0.75rem; }
.thread {
  max-height: 28rem;
  overflow-y: auto;
  border: 1px solid var(--line);
  background: rgba(7, 8, 11, 0.55);
  border-radius: 1rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.bubble {
  max-width: 78%;
  padding: 0.75rem 0.95rem;
  white-space: pre-wrap;
  line-height: 1.55;
  font-size: 0.95rem;
  font-weight: 300;
  border-radius: 1.05rem;
}
.mermaid {
  background: rgba(7, 8, 11, 0.65);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: 0.7rem;
  overflow: auto;
}
.bubble.land {
  align-self: flex-end;
  background: rgba(244, 241, 234, 0.08);
  border: 1px solid var(--line);
  border-bottom-right-radius: 0.35rem;
}
.bubble.operator {
  align-self: flex-start;
  background: rgba(193, 31, 42, 0.12);
  border: 1px solid rgba(193, 31, 42, 0.28);
  border-bottom-left-radius: 0.35rem;
}
.gen-image {
  display: block;
  max-width: min(28rem, 100%);
  margin: 0.5rem 0;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
}
.chat-form {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.85rem;
}
.chat-form textarea { width: 100%; }
.chat-actions {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.desk-controls { margin: 0; }
.quick-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.5rem 0 0.8rem; }
.mail-bands {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.mail.background { opacity: 0.78; }
.todo-list li { align-items: center; }
.month-cal {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
  margin: 0.7rem 0 1.4rem;
}
.month-dow {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}
.month-cell {
  min-height: 5.4rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  padding: 0.35rem 0.4rem 0.45rem;
}
.month-cell.out { opacity: 0.38; }
.month-cell.today { border-color: var(--fess); }
.month-n {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}
.month-mark {
  margin: 0.15rem 0 0;
  font-size: 0.62rem;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.month-mark.google { color: var(--brass); }
.month-mark.timetable { color: var(--ink); }
.month-mark.station { color: var(--go); }
.week-cal {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 1rem 0;
}
.week-day {
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  padding: 0.55rem 0.5rem 0.7rem;
  min-height: 11rem;
}
.week-day.today { border-color: var(--fess); }
.week-day h3 { margin: 0; font-size: 0.72rem; letter-spacing: 0.12em; }
.week-item { margin: 0.35rem 0 0; font-size: 0.72rem; line-height: 1.35; }
.week-item.google { border-left: 2px solid var(--brass); padding-left: 0.35rem; }
.week-item.timetable { border-left: 2px solid var(--fess); padding-left: 0.35rem; }
.week-item.station { border-left: 2px solid var(--go); padding-left: 0.35rem; }
.tt-wrap { overflow-x: auto; margin: 0.8rem 0 1rem; }
.tt { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
.tt th, .tt td {
  border: 1px solid var(--line);
  padding: 0.4rem 0.45rem;
  vertical-align: top;
  text-align: left;
}
.tt th { color: var(--brass); font-weight: 400; }
.prompt-chip { font-size: 0.76rem; padding: 0.4rem 0.8rem; font-weight: 400; }
textarea, input {
  background: rgba(7, 8, 11, 0.65);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 0.7rem 0.85rem;
  font: inherit;
  border-radius: 0.85rem;
}
textarea { resize: vertical; }

.row { display: flex; gap: 0.5rem; margin-bottom: 0.9rem; }
input { flex: 1; }
button {
  background: var(--fess);
  color: var(--ink);
  border: 0;
  padding: 0.58rem 1.05rem;
  font: inherit;
  font-weight: 400;
  letter-spacing: 0.08em;
  cursor: pointer;
  border-radius: 999px;
}
button.ghost {
  background: transparent;
  color: var(--brass);
  border: 1px solid var(--line);
}
button:hover { filter: brightness(1.08); }
.text-link { color: var(--brass); text-decoration: none; font-size: 0.85rem; }
.text-link:hover { color: var(--ink); }

ul { list-style: none; margin: 0; padding: 0; }
li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}
pre {
  white-space: pre-wrap;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
  margin: 0;
}

.pin-gate {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgba(7, 8, 11, 0.92);
  backdrop-filter: blur(18px);
}
.codes li, .today-desk li {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
}
.codes li form { margin: 0; }

.gate {
  display: grid;
  place-items: center;
  min-height: 100vh;
}
.gate-card {
  width: min(28rem, 92vw);
  text-align: center;
}
.gate-card label { text-align: left; }
.install-btn {
  display: block;
  width: 100%;
  margin-top: 0.75rem;
}
.status .install-btn,
.desk-actions .install-btn {
  width: auto;
  margin-top: 0;
}
label { display: grid; gap: 0.4rem; margin: 1rem 0; font-size: 0.85rem; }
.error { color: var(--error); }

@media (max-width: 900px) {
  .mail-bands, .week-cal { grid-template-columns: 1fr; }
  .month-cal { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .week-day { min-height: 0; }
  .metrics, .grid { grid-template-columns: 1fr; }
  .top { flex-direction: column; padding: 1.1rem 1.1rem 1rem; }
  .desk-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "left right"
      "mast mast";
  }
  .desk-left { grid-area: left; }
  .desk-bar .mast { grid-area: mast; padding-top: 0.6rem; }
  .desk-right { grid-area: right; }
  .desk-actions { flex-direction: row; align-items: center; }
  .top-meta { flex-direction: column; align-items: flex-start; }
  .workspace { padding: 0.95rem 1rem 1.6rem; }
}

#lion-portal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  place-items: center;
  background: #05060a;
  overflow: hidden;
}
#lion-portal.is-on,
html.portal-pending #lion-portal { display: grid !important; }
html.portal-pending { overflow: hidden; }
.portal-iris {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at center, transparent 12%, #05060a 42%);
  transform: scale(1.15);
}
.portal-rings {
  position: absolute;
  width: min(28rem, 80vw);
  height: min(28rem, 80vw);
  pointer-events: none;
}
.portal-rings span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(216, 219, 227, 0.18);
  border-radius: 50%;
}
.portal-rings span:nth-child(2) { inset: 12%; border-color: rgba(193, 31, 42, 0.35); }
.portal-rings span:nth-child(3) { inset: 26%; border-color: rgba(244, 241, 234, 0.22); }
.portal-crest {
  width: 5.6rem;
  height: auto;
  background: #f4f1ea;
  padding: 0.22rem;
  border: 1px solid rgba(244, 241, 234, 0.3);
  position: relative;
  z-index: 2;
}
.portal-motto {
  position: relative;
  z-index: 2;
  margin: 0.85rem 0 0;
  font-family: "Cormorant Garamond", Palatino, "Times New Roman", serif;
  font-style: italic;
  font-size: 1.05rem;
  color: #f4f1ea;
  text-align: center;
  max-width: 22rem;
}
.portal-word {
  position: absolute;
  bottom: 14%;
  margin: 0;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-size: 0.64rem;
  color: #d8dbe3;
  text-align: center;
  width: 90%;
  font-family: Outfit, "Segoe UI", sans-serif;
}
.portal-verify {
  position: absolute;
  bottom: 11%;
  width: min(22rem, 78vw);
  z-index: 3;
}
.portal-status {
  margin: 0 0 0.55rem;
  text-align: center;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: #d8dbe3;
  font-family: Outfit, "Segoe UI", sans-serif;
}
.portal-bar {
  height: 2px;
  background: rgba(244, 241, 234, 0.12);
  overflow: hidden;
}
.portal-bar i {
  display: block;
  height: 100%;
  width: 8%;
  background: linear-gradient(90deg, #c11f2a, #f4f1ea);
  transition: width 0.18s linear;
}
.portal-word { bottom: 18%; }
#lion-portal.verify .portal-crest {
  width: 7.1rem;
  animation: none;
  transform: none;
  opacity: 1;
}
#lion-portal.verify .portal-motto { opacity: 1; }
#lion-portal.verify .portal-rings span {
  animation: portal-breathe 2.4s ease-in-out infinite;
}
#lion-portal.verify .portal-rings span:nth-child(2) { animation-delay: 0.15s; }
#lion-portal.verify .portal-rings span:nth-child(3) { animation-delay: 0.3s; }
#lion-portal.open .portal-verify,
#lion-portal.arrive .portal-verify { animation: portal-fade 0.45s ease both; }
#lion-portal.open .portal-rings span {
  animation: portal-ring 1.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}
#lion-portal.open .portal-rings span:nth-child(2) { animation-delay: 0.08s; }
#lion-portal.open .portal-rings span:nth-child(3) { animation-delay: 0.16s; }
#lion-portal.open .portal-iris {
  animation: portal-iris-open 1.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}
#lion-portal.open .portal-crest {
  animation: portal-crest 1.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}
#lion-portal.arrive .portal-iris {
  animation: portal-iris-arrive 1.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}
#lion-portal.arrive .portal-rings span {
  animation: portal-ring-out 1.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}
#lion-portal.arrive .portal-crest {
  animation: portal-crest-out 1.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}
#lion-portal.arrive .portal-motto,
#lion-portal.arrive .portal-word {
  animation: portal-fade 0.7s ease both;
}
@keyframes portal-ring {
  from { transform: scale(0.55); opacity: 0; }
  40% { opacity: 1; }
  to { transform: scale(2.6); opacity: 0; }
}
@keyframes portal-ring-out {
  from { transform: scale(1.4); opacity: 0.7; }
  to { transform: scale(0.4); opacity: 0; }
}
@keyframes portal-iris-open {
  from { transform: scale(1.2); }
  to { transform: scale(0.15); opacity: 0.2; }
}
@keyframes portal-iris-arrive {
  from { transform: scale(0.2); }
  to { transform: scale(2.4); opacity: 0; }
}
@keyframes portal-crest {
  from { transform: scale(1); filter: brightness(1); }
  55% { transform: scale(1.08); filter: brightness(1.12); }
  to { transform: scale(1.35); opacity: 0; }
}
@keyframes portal-crest-out {
  from { transform: scale(1.2); opacity: 1; }
  to { transform: scale(1); opacity: 0; }
}
@keyframes portal-fade {
  from { opacity: 1; }
  to { opacity: 0; }
}
@keyframes portal-breathe {
  0%, 100% { transform: scale(0.92); opacity: 0.45; }
  50% { transform: scale(1.08); opacity: 0.9; }
}

@media (prefers-reduced-motion: reduce) {
  .workspace-nav .rec-jump:not([hidden]),
  .lamp.rec { animation: none; }
  button:hover { filter: none; }
  #lion-portal.open .portal-rings span,
  #lion-portal.open .portal-iris,
  #lion-portal.open .portal-crest,
  #lion-portal.arrive .portal-iris,
  #lion-portal.arrive .portal-rings span,
  #lion-portal.arrive .portal-crest,
  #lion-portal.arrive .portal-word,
  #lion-portal.verify .portal-rings span { animation: none; }
}
