:root {
  --bg-deep: #071018;
  --bg-ocean: #12314a;
  --bg-sky: #31526f;
  --wood-deep: #1d110c;
  --wood: #392319;
  --wood-glow: #6b4325;
  --gold: #d0ab67;
  --gold-bright: #f4dda4;
  --parchment: #f0dfb4;
  --parchment-deep: #ddb876;
  --surf: #71d2d1;
  --surf-soft: #a5ece6;
  --coral: #f19072;
  --coral-deep: #ce675d;
  --sunset: #f2a156;
  --sunset-bright: #ffd789;
  --ink: #fff6e5;
  --body: #ede2ca;
  --muted: #c7baa0;
  --panel: rgba(11, 25, 37, 0.88);
  --panel-soft: rgba(30, 18, 14, 0.82);
  --line: rgba(244, 221, 164, 0.24);
  --line-soft: rgba(255, 244, 222, 0.1);
  --shadow: 0 28px 70px rgba(4, 10, 18, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  scrollbar-color: rgba(244, 221, 164, 0.4) rgba(7, 16, 24, 0.8);
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Cormorant Garamond", serif;
  background:
    linear-gradient(180deg, rgba(6, 12, 20, 0) 0%, rgba(7, 16, 24, 0.18) 36%, rgba(6, 12, 18, 0.68) 62%, rgba(4, 9, 14, 0.96) 100%),
    linear-gradient(140deg, #08121c 0%, #0f2233 18%, #2c4e69 37%, #f2964f 54%, #ffd47e 65%, #29506e 78%, #091522 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

body::before {
  top: 40px;
  right: max(32px, 8vw);
  width: min(30vw, 360px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 242, 193, 0.95) 0%, rgba(255, 212, 126, 0.94) 26%, rgba(242, 161, 86, 0.78) 48%, rgba(242, 161, 86, 0.12) 70%, transparent 72%);
  filter: blur(1px);
  opacity: 0.9;
}

body::after {
  left: 0;
  right: 0;
  bottom: 0;
  height: min(28vh, 260px);
  background:
    radial-gradient(circle at 18% 40%, rgba(12, 26, 42, 0.65), transparent 32%),
    radial-gradient(circle at 74% 30%, rgba(12, 26, 42, 0.72), transparent 28%),
    linear-gradient(180deg, transparent 0%, rgba(5, 13, 21, 0.2) 20%, rgba(7, 15, 24, 0.92) 86%, rgba(4, 9, 14, 0.98) 100%);
  clip-path: polygon(0 100%, 0 56%, 9% 50%, 15% 64%, 26% 44%, 33% 58%, 44% 36%, 55% 62%, 68% 30%, 80% 55%, 91% 38%, 100% 52%, 100% 100%);
}

.scene-bloom {
  position: fixed;
  inset: auto;
  width: min(34vw, 440px);
  height: min(34vw, 440px);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(22px);
  opacity: 0.35;
}

.scene-bloom-left {
  top: 8%;
  left: -6%;
  background: radial-gradient(circle, rgba(113, 210, 209, 0.6) 0%, rgba(113, 210, 209, 0.12) 58%, transparent 70%);
}

.scene-bloom-right {
  bottom: 18%;
  right: -8%;
  background: radial-gradient(circle, rgba(241, 144, 114, 0.52) 0%, rgba(241, 144, 114, 0.12) 58%, transparent 72%);
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.15;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 26px 26px;
  mix-blend-mode: soft-light;
}

.shell,
.portal-shell {
  position: relative;
  z-index: 1;
}

.shell {
  width: min(1320px, calc(100% - 28px));
  margin: 24px auto 56px;
}

.shell-ornament {
  position: absolute;
  top: 92px;
  bottom: 48px;
  width: 18px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 238, 199, 0), rgba(244, 221, 164, 0.5) 10%, rgba(81, 129, 143, 0.7) 48%, rgba(244, 221, 164, 0.48) 88%, rgba(255, 238, 199, 0));
  opacity: 0.55;
}

.shell-ornament-left {
  left: -8px;
}

.shell-ornament-right {
  right: -8px;
}

.panel {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(17, 37, 52, 0.9), rgba(11, 21, 30, 0.94)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.02), transparent 40%);
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 246, 229, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.panel::before,
.panel::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.panel::before {
  inset: 10px;
  border-radius: 22px;
  border: 1px solid rgba(255, 247, 230, 0.06);
}

.panel::after {
  top: 0;
  left: 18px;
  right: 18px;
  height: 1px;
  background: linear-gradient(90deg, rgba(244, 221, 164, 0), rgba(244, 221, 164, 0.7), rgba(244, 221, 164, 0));
}

.hero,
.portal-card {
  background:
    radial-gradient(circle at 16% 22%, rgba(255, 215, 137, 0.22), transparent 24%),
    radial-gradient(circle at 78% 0%, rgba(113, 210, 209, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(48, 29, 20, 0.36), rgba(10, 25, 37, 0.9));
}

.hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(280px, 330px);
  gap: 28px;
  align-items: center;
  padding: 34px;
  margin-bottom: 20px;
}

.hero-emblem {
  position: relative;
  width: clamp(132px, 16vw, 174px);
  aspect-ratio: 1;
  padding: 12px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(244, 221, 164, 0.98), rgba(171, 112, 47, 0.94));
  box-shadow: 0 18px 40px rgba(4, 10, 18, 0.34), inset 0 1px 0 rgba(255, 247, 230, 0.4);
}

.hero-emblem::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 1px solid rgba(59, 35, 20, 0.24);
}

.hero-emblem-core {
  position: relative;
  height: 100%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 239, 198, 0.96), rgba(255, 215, 137, 0.92) 28%, rgba(242, 161, 86, 0.9) 44%, rgba(31, 88, 114, 0.94) 70%, rgba(8, 22, 35, 1) 100%);
}

.hero-emblem-core span {
  font-family: "Cinzel", serif;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #10273a;
  text-shadow: 0 1px 0 rgba(255, 247, 230, 0.45);
}

.hero-emblem-ribbon {
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  padding: 7px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(43, 84, 101, 0.96), rgba(18, 35, 52, 0.98));
  border: 1px solid rgba(244, 221, 164, 0.28);
  color: var(--gold-bright);
  font-family: "Marcellus SC", serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-copy {
  align-self: stretch;
  display: grid;
  align-content: center;
}

.eyebrow,
.section-kicker,
.meta-label,
.card-kicker,
.summary-label,
.field span {
  font-family: "Cinzel", serif;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--surf-soft);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

h1,
h2,
h3,
.title {
  margin: 0;
  font-family: "Cinzel", serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(44px, 6vw, 82px);
  line-height: 0.94;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

h2 {
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.02;
}

h3 {
  font-size: 1.4rem;
  color: var(--gold-bright);
}

.subhead,
.muted {
  color: var(--muted);
}

.subhead {
  max-width: 36rem;
  margin: 14px 0 0;
  font-size: clamp(1.22rem, 2vw, 1.52rem);
  line-height: 1.24;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-tag {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(9, 30, 44, 0.54);
  border: 1px solid rgba(244, 221, 164, 0.16);
  color: var(--body);
  font-family: "Marcellus SC", serif;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-meta {
  display: grid;
  gap: 14px;
  align-self: stretch;
}

.meta-panel {
  position: relative;
  padding: 17px 18px;
  border-radius: 22px;
  border: 1px solid rgba(244, 221, 164, 0.18);
  background:
    linear-gradient(180deg, rgba(53, 31, 22, 0.44), rgba(11, 24, 35, 0.82)),
    rgba(11, 24, 35, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 246, 229, 0.05);
}

.meta-label {
  display: block;
  margin-bottom: 10px;
  color: var(--parchment-deep);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.meta-value {
  font-size: 1.14rem;
  line-height: 1.18;
  color: var(--ink);
}

.account-meta {
  display: grid;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 15px;
  border-radius: 16px;
  border: 1px solid rgba(244, 221, 164, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 215, 137, 0.16), rgba(113, 210, 209, 0.15)),
    rgba(11, 30, 42, 0.8);
  color: var(--gold-bright);
  font-family: "Marcellus SC", serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 246, 229, 0.08);
}

body[data-regime="risk_off"] .pill,
.pill.is-put {
  background:
    linear-gradient(180deg, rgba(241, 144, 114, 0.18), rgba(206, 103, 93, 0.16)),
    rgba(43, 18, 19, 0.82);
  color: #ffe1d7;
}

body[data-regime="risk_on"] .pill,
.pill.is-call {
  background:
    linear-gradient(180deg, rgba(113, 210, 209, 0.18), rgba(165, 236, 230, 0.16)),
    rgba(10, 34, 39, 0.84);
  color: #ddfffc;
}

.grid {
  display: grid;
  gap: 20px;
}

.top-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 20px;
}

.section-head {
  position: relative;
  padding: 24px 24px 0;
}

.section-head::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: -16px;
  height: 1px;
  background: linear-gradient(90deg, rgba(244, 221, 164, 0), rgba(244, 221, 164, 0.48), rgba(244, 221, 164, 0));
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--surf-soft);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.board-panel,
.panel-war-table,
.panel-rules,
.portal-card {
  backdrop-filter: blur(8px);
}

.card-stack {
  padding: 30px 24px 24px;
  display: grid;
  gap: 16px;
}

.pick-card {
  position: relative;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 18px;
  padding: 22px 20px;
  border-radius: 26px;
  border: 1px solid rgba(244, 221, 164, 0.2);
  background:
    linear-gradient(145deg, rgba(52, 33, 23, 0.96), rgba(13, 24, 35, 0.96)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  box-shadow:
    inset 0 1px 0 rgba(255, 247, 230, 0.06),
    0 18px 40px rgba(0, 0, 0, 0.24);
}

.pick-card::before,
.pick-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.pick-card::before {
  inset: 10px;
  border-radius: 18px;
  border: 1px solid rgba(255, 246, 229, 0.06);
}

.pick-card::after {
  inset: 0;
  background: radial-gradient(circle at 84% 20%, rgba(255, 215, 137, 0.12), transparent 32%);
}

.pick-card.is-call {
  background:
    linear-gradient(145deg, rgba(24, 59, 72, 0.96), rgba(13, 24, 35, 0.96)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
}

.pick-card.is-call::after {
  background: radial-gradient(circle at 84% 20%, rgba(113, 210, 209, 0.18), transparent 34%);
}

.pick-card.is-put {
  background:
    linear-gradient(145deg, rgba(74, 37, 31, 0.96), rgba(14, 22, 34, 0.96)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
}

.pick-card.is-put::after {
  background: radial-gradient(circle at 84% 20%, rgba(241, 144, 114, 0.2), transparent 34%);
}

.card-crest,
.pick-body {
  position: relative;
  z-index: 1;
}

.card-crest {
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-crest-inner {
  width: 74px;
  min-height: 74px;
  padding: 10px;
  border-radius: 20px 20px 26px 26px;
  display: grid;
  place-items: center;
  gap: 4px;
  background: linear-gradient(180deg, rgba(244, 221, 164, 0.98), rgba(191, 138, 63, 0.96));
  border: 1px solid rgba(74, 46, 22, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 247, 230, 0.35),
    0 10px 24px rgba(0, 0, 0, 0.2);
}

.crest-letter {
  display: block;
  font-family: "Cinzel", serif;
  font-size: 1.78rem;
  font-weight: 800;
  line-height: 1;
  color: #173147;
}

.crest-side {
  display: block;
  color: rgba(23, 49, 71, 0.74);
  font-family: "Marcellus SC", serif;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pick-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.card-kicker {
  margin: 0 0 4px;
  font-size: 0.68rem;
  color: var(--parchment-deep);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.title {
  font-size: clamp(1.48rem, 2.3vw, 2rem);
  line-height: 1.06;
}

.side {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(244, 221, 164, 0.26);
  background: rgba(255, 215, 137, 0.12);
  color: var(--gold-bright);
  font-family: "Marcellus SC", serif;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pick-card.is-call .side {
  background: rgba(113, 210, 209, 0.15);
  border-color: rgba(165, 236, 230, 0.22);
  color: #dffffe;
}

.pick-card.is-put .side {
  background: rgba(241, 144, 114, 0.15);
  border-color: rgba(255, 202, 191, 0.2);
  color: #ffe0d6;
}

.contract,
.meta,
.notes {
  margin: 10px 0 0;
}

.contract {
  color: var(--parchment);
  font-family: "Marcellus SC", serif;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  word-break: break-all;
}

.meta {
  font-size: 1.12rem;
  line-height: 1.2;
  color: var(--body);
}

.notes {
  font-size: 1.02rem;
  line-height: 1.28;
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.stat {
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(244, 221, 164, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 247, 230, 0.06), rgba(8, 20, 30, 0.1)),
    rgba(8, 19, 29, 0.24);
}

.stat-label {
  display: block;
  color: var(--muted);
  font-family: "Marcellus SC", serif;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-value {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 1.38rem;
  font-weight: 600;
}

.pipeline-grid {
  display: grid;
  grid-template-columns: 1.08fr 1.08fr 0.92fr;
  gap: 20px;
  padding: 30px 24px 24px;
}

.mini-table {
  display: grid;
  gap: 12px;
}

.mini-row {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 16px 16px 16px 20px;
  border-radius: 20px;
  border: 1px solid rgba(244, 221, 164, 0.14);
  background:
    linear-gradient(180deg, rgba(14, 31, 44, 0.82), rgba(10, 19, 29, 0.8)),
    rgba(10, 19, 29, 0.76);
}

.mini-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(113, 210, 209, 0.96), rgba(255, 215, 137, 0.7));
}

.mini-row.is-put::before {
  background: linear-gradient(180deg, rgba(241, 144, 114, 0.96), rgba(206, 103, 93, 0.72));
}

.mini-row strong {
  font-family: "Marcellus SC", serif;
  font-size: 1rem;
  color: var(--ink);
  letter-spacing: 0.05em;
}

.mini-row .muted {
  font-size: 1rem;
  line-height: 1.22;
}

.summary-box {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(244, 221, 164, 0.18);
  background:
    linear-gradient(180deg, rgba(58, 34, 24, 0.76), rgba(12, 23, 35, 0.82)),
    rgba(12, 23, 35, 0.72);
  display: grid;
  gap: 12px;
}

.summary-item {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 246, 229, 0.06);
  background: rgba(255, 246, 229, 0.04);
  display: grid;
  gap: 4px;
}

.summary-label {
  font-size: 0.72rem;
  color: var(--parchment-deep);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.summary-value {
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.2;
}

.rules {
  padding: 30px 24px 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.rule {
  position: relative;
  min-height: 160px;
  padding: 18px 18px 18px 70px;
  border-radius: 22px;
  border: 1px solid rgba(244, 221, 164, 0.16);
  background:
    linear-gradient(180deg, rgba(18, 34, 47, 0.84), rgba(44, 25, 19, 0.72)),
    rgba(18, 34, 47, 0.76);
}

.rule-rune {
  position: absolute;
  left: 18px;
  top: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(244, 221, 164, 0.98), rgba(191, 138, 63, 0.96));
  color: #173147;
  font-family: "Cinzel", serif;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.rule strong {
  display: block;
  margin-bottom: 10px;
  font-family: "Marcellus SC", serif;
  font-size: 1.04rem;
  color: var(--ink);
  letter-spacing: 0.05em;
}

.rule span:not(.rule-rune) {
  display: block;
  font-size: 1rem;
  line-height: 1.25;
  color: var(--body);
}

.mini-action,
.primary-action {
  border: 1px solid rgba(244, 221, 164, 0.28);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(244, 221, 164, 0.96), rgba(214, 171, 103, 0.96)),
    rgba(244, 221, 164, 0.94);
  color: #11273a;
  font-family: "Cinzel", serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2);
}

.mini-action:hover,
.primary-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.24);
  filter: brightness(1.04);
}

.mini-action:disabled,
.primary-action:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.mini-action {
  padding: 10px 14px;
  justify-self: start;
}

.portal-page {
  padding: 24px 14px;
}

.portal-shell {
  width: min(540px, calc(100% - 10px));
  margin: min(9vh, 72px) auto;
}

.portal-card {
  padding: 34px;
}

.portal-crest {
  width: 112px;
  height: 112px;
  margin: 0 auto 22px;
  border-radius: 50%;
  padding: 10px;
  background: linear-gradient(145deg, rgba(244, 221, 164, 0.98), rgba(171, 112, 47, 0.94));
  box-shadow: 0 18px 40px rgba(4, 10, 18, 0.34);
}

.portal-crest-core {
  height: 100%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 239, 198, 0.96), rgba(255, 215, 137, 0.92) 26%, rgba(242, 161, 86, 0.9) 42%, rgba(31, 88, 114, 0.94) 68%, rgba(8, 22, 35, 1) 100%);
  color: #11273a;
  font-family: "Cinzel", serif;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.portal-card h1 {
  font-size: clamp(2.6rem, 8vw, 4rem);
  text-align: center;
}

.portal-card .eyebrow,
.portal-card .subhead {
  text-align: center;
}

.portal-form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: var(--parchment);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(244, 221, 164, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 247, 230, 0.06), rgba(8, 20, 30, 0.08)),
    rgba(6, 17, 25, 0.72);
  color: var(--ink);
  font: inherit;
  font-size: 1.1rem;
  box-shadow: inset 0 1px 0 rgba(255, 246, 229, 0.05);
}

input::placeholder {
  color: rgba(237, 226, 202, 0.5);
}

input:focus {
  outline: 2px solid rgba(165, 236, 230, 0.34);
  outline-offset: 1px;
}

.primary-action {
  width: 100%;
  padding: 14px 18px;
}

.error {
  min-height: 24px;
  color: #ffc5b7;
  font-size: 1rem;
  line-height: 1.2;
}

.portal-footnote {
  margin: 16px 0 0;
  text-align: center;
  font-size: 1rem;
}

.admin-shell {
  width: min(1180px, calc(100% - 28px));
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 30px 24px 24px;
}

.admin-card {
  min-height: 180px;
}

.admin-card .summary-value {
  font-size: 1.04rem;
  line-height: 1.3;
}

.access-links {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.access-links a {
  text-decoration: none;
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: auto 1fr;
  }

  .hero-meta {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pipeline-grid,
  .rules,
  .admin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  body::before {
    width: min(44vw, 260px);
    top: 24px;
    right: 18px;
  }

  .shell {
    width: min(100%, calc(100% - 18px));
    margin: 16px auto 40px;
  }

  .shell-ornament {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 22px;
  }

  .hero-emblem {
    margin: 0 auto;
  }

  .hero-copy,
  .hero-meta {
    justify-items: start;
  }

  .hero-meta {
    grid-template-columns: 1fr;
  }

  .top-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .pick-card {
    grid-template-columns: 1fr;
  }

  .card-crest {
    justify-content: flex-start;
  }

  .portal-card {
    padding: 26px 22px;
  }
}

@media (max-width: 560px) {
  .section-head,
  .card-stack,
  .pipeline-grid,
  .rules,
  .admin-grid {
    padding-left: 18px;
    padding-right: 18px;
  }

  .section-head::after {
    left: 18px;
    right: 18px;
  }

  .rule {
    padding-left: 18px;
    min-height: auto;
  }

  .rule-rune {
    position: static;
    margin-bottom: 12px;
  }

  .account-meta {
    justify-items: start;
  }
}
