:root {
  --bg: #070a11;
  --panel: #0e1420;
  --panel-2: #131b2a;
  --line: #223047;
  --ink: #dbe5f2;
  --dim: #8496ad;
  --accent: #ffc861;
  --accent-2: #62d6c4;
  --bad: #ff6b6b;
  --good: #6fd98a;
  --warn: #ffb648;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0; height: 100%;
  background: var(--bg); color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

#app { display: flex; flex-direction: column; height: 100%; }

/* ------------------------------------------------------------- top bar */
#topbar {
  display: flex; align-items: stretch; gap: 0;
  background: linear-gradient(180deg, #121a29, #0c1220);
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
  overflow-x: auto;
}
.brand {
  display: flex; align-items: center; gap: 9px;
  padding: 0 14px; border-right: 1px solid var(--line);
  white-space: nowrap;
}
.brand .logo {
  width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #f2ead8, #b9ae97 55%, #6d6455);
  box-shadow: 0 0 12px rgba(255,220,150,.25);
  position: relative; flex: 0 0 auto;
}
.brand .logo::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 70% 65%, rgba(0,0,0,.35) 0 18%, transparent 20%),
              radial-gradient(circle at 40% 70%, rgba(0,0,0,.25) 0 10%, transparent 12%);
}
.brand b { font-size: 13px; letter-spacing: .06em; }
.brand span { color: var(--dim); font-size: 10px; letter-spacing: .12em; }

.stat {
  padding: 7px 13px; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: center;
  min-width: 84px; white-space: nowrap;
}
.stat .k { font-size: 9px; color: var(--dim); letter-spacing: .11em; text-transform: uppercase; }
.stat .v { font-size: 15px; font-variant-numeric: tabular-nums; }
.stat .v.small { font-size: 12px; }
.stat.hi .v { color: var(--accent); }
.stat .sub { font-size: 9px; color: var(--dim); }
.v.pos { color: var(--good); } .v.neg { color: var(--bad); }

#speed { margin-left: auto; display: flex; align-items: center; gap: 4px; padding: 0 12px; }
#speed button {
  background: var(--panel-2); color: var(--dim); border: 1px solid var(--line);
  border-radius: 3px; font-family: var(--mono); font-size: 11px;
  padding: 5px 9px; cursor: pointer;
}
#speed button:hover { color: var(--ink); border-color: #3a5170; }
#speed button.on { background: var(--accent); color: #10151f; border-color: var(--accent); font-weight: 700; }

.phase-dot {
  width: 13px; height: 13px; border-radius: 50%; display: inline-block;
  background: #e9e2d0; vertical-align: -2px; margin-right: 5px;
  box-shadow: inset -6px 0 0 0 #0b0f18;
}

/* --------------------------------------------------------------- layout */
#main { flex: 1 1 auto; display: flex; min-height: 0; }

#palette {
  flex: 0 0 218px; background: var(--panel); border-right: 1px solid var(--line);
  overflow-y: auto; padding-bottom: 24px;
}
#palette h4 {
  margin: 0; padding: 9px 12px 5px; font-size: 9px; letter-spacing: .16em;
  color: var(--dim); text-transform: uppercase;
  position: sticky; top: 0; background: var(--panel); z-index: 2;
  border-bottom: 1px solid rgba(34,48,71,.6);
}
.tool {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px; cursor: pointer; border-left: 3px solid transparent;
}
.tool:hover { background: var(--panel-2); }
.tool.on { background: #1b2740; border-left-color: var(--accent); }
.tool.locked { opacity: .34; cursor: not-allowed; }
.tool .sw { width: 13px; height: 13px; border-radius: 2px; flex: 0 0 auto; border: 1px solid rgba(0,0,0,.5); }
.tool .nm { flex: 1 1 auto; font-size: 11.5px; }
.tool .ct { font-size: 10px; color: var(--dim); font-variant-numeric: tabular-nums; }
.tool.locked .ct { color: var(--bad); }

#stage { flex: 1 1 auto; position: relative; min-width: 0; background: #05070d; }
#cv { display: block; width: 100%; height: 100%; cursor: crosshair; }
#cv.panning { cursor: grabbing; }

#hint {
  position: absolute; left: 44px; bottom: 12px; max-width: 46ch;
  background: rgba(9,13,21,.88); border: 1px solid var(--line);
  padding: 7px 11px; font-size: 11px; color: var(--dim); line-height: 1.5;
  pointer-events: none;
}
#hint b { color: var(--ink); }
#hint .err { color: var(--bad); }

#toast {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; gap: 6px; align-items: center;
  pointer-events: none; z-index: 5;
}
.toast {
  background: rgba(12,18,30,.95); border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  padding: 7px 14px; font-size: 11.5px; max-width: 62ch;
  animation: pop .25s ease-out;
}
.toast.bad { border-left-color: var(--bad); }
.toast.good { border-left-color: var(--good); }
.toast.warn { border-left-color: var(--warn); }
@keyframes pop { from { opacity: 0; transform: translateY(-8px); } }

/* --------------------------------------------------------------- right */
#side {
  flex: 0 0 262px; background: var(--panel); border-left: 1px solid var(--line);
  display: flex; flex-direction: column; min-height: 0;
}
#tabs { display: flex; border-bottom: 1px solid var(--line); flex: 0 0 auto; }
#tabs button {
  flex: 1; background: none; border: none; border-bottom: 2px solid transparent;
  color: var(--dim); font-family: var(--mono); font-size: 10px; letter-spacing: .1em;
  padding: 9px 2px; cursor: pointer; text-transform: uppercase;
}
#tabs button.on { color: var(--accent); border-bottom-color: var(--accent); }
#panelbody { overflow-y: auto; flex: 1 1 auto; padding: 10px 12px 30px; }

.row { display: flex; justify-content: space-between; gap: 8px; padding: 3.5px 0; font-size: 11.5px; }
.row .l { color: var(--dim); }
.row .r { font-variant-numeric: tabular-nums; }
.sec { margin: 12px 0 5px; font-size: 9px; letter-spacing: .15em; color: var(--dim); text-transform: uppercase;
       border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.bar { height: 5px; background: #1a2437; border-radius: 3px; overflow: hidden; margin: 3px 0 7px; }
.bar i { display: block; height: 100%; background: var(--accent-2); }
.bar i.warn { background: var(--warn); } .bar i.bad { background: var(--bad); }

.chk { display: flex; gap: 7px; align-items: baseline; font-size: 11.5px; padding: 2.5px 0; }
.chk .m { width: 11px; }
.chk.ok { color: var(--good); } .chk.no { color: var(--dim); }

.logline { font-size: 11px; line-height: 1.45; padding: 5px 0; border-bottom: 1px solid rgba(34,48,71,.45); }
.logline .d { color: var(--dim); font-size: 10px; }
.logline.bad { color: #ffb3ad; } .logline.good { color: #a8e8ba; } .logline.warn { color: #ffd79a; }

.mdesc { font-size: 11px; line-height: 1.55; color: var(--dim); margin: 6px 0 10px; }
.pill { display: inline-block; padding: 1px 6px; border: 1px solid var(--line); border-radius: 9px;
        font-size: 9.5px; color: var(--dim); margin: 0 3px 3px 0; }

button.act {
  width: 100%; margin-top: 8px; background: var(--panel-2); color: var(--ink);
  border: 1px solid var(--line); padding: 7px; font-family: var(--mono);
  font-size: 11px; cursor: pointer; border-radius: 3px;
}
button.act:hover { border-color: var(--accent); color: var(--accent); }
button.act.danger:hover { border-color: var(--bad); color: var(--bad); }

/* --------------------------------------------------------------- modal */
#modal {
  position: fixed; inset: 0; background: rgba(4,6,12,.86);
  display: flex; align-items: center; justify-content: center; z-index: 50; padding: 20px;
}
#modal.hide { display: none; }
.card {
  background: var(--panel); border: 1px solid var(--line); max-width: 640px; width: 100%;
  max-height: 88vh; overflow-y: auto; padding: 26px 30px;
}
.card h1 { margin: 0 0 4px; font-size: 21px; letter-spacing: .04em; }
.card h2 { font-size: 12px; letter-spacing: .14em; color: var(--accent); text-transform: uppercase;
           margin: 20px 0 7px; }
.card p, .card li { font-size: 12.5px; line-height: 1.65; color: #b9c8dc; }
.card .lede { color: var(--dim); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 16px; }
.card ul { padding-left: 18px; margin: 6px 0; }
.card kbd {
  background: var(--panel-2); border: 1px solid var(--line); border-bottom-width: 2px;
  border-radius: 3px; padding: 1px 5px; font-size: 11px;
}
.card .go {
  margin-top: 22px; background: var(--accent); color: #10151f; border: none;
  padding: 11px 22px; font-family: var(--mono); font-weight: 700; font-size: 13px;
  cursor: pointer; letter-spacing: .05em; border-radius: 3px;
}
.card .go:hover { background: #ffd68a; }
.card .ghost {
  margin: 22px 0 0 10px; background: none; color: var(--dim); border: 1px solid var(--line);
  padding: 11px 18px; font-family: var(--mono); font-size: 13px; cursor: pointer; border-radius: 3px;
}

@media (max-width: 900px) {
  #palette { flex-basis: 168px; }
  #side { display: none; }
}
@media (max-width: 620px) {
  #palette { flex-basis: 132px; }
  .stat { min-width: 62px; padding: 6px 9px; }
}

/* ------------------------------------------------------------ auto/report */
#speed button.wide { padding: 5px 11px; letter-spacing: .05em; }
#speed #btn-auto.on {
  background: var(--accent-2); color: #0c1a17; border-color: var(--accent-2);
  font-weight: 700;
  animation: autopulse 2.2s ease-in-out infinite;
}
@keyframes autopulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(98,214,196,.35); }
  50% { box-shadow: 0 0 9px 2px rgba(98,214,196,.45); }
}
.logline.auto { color: #8fe0d2; }

/* ------------------------------------------------------- mission control */
#report { display: none; }
#report.show {
  display: flex; position: fixed; inset: 0; z-index: 60;
  background: rgba(3,5,10,.88);
  align-items: flex-start; justify-content: center;
  padding: 3vh 16px; overflow-y: auto;
}
.mc-card {
  width: 100%; max-width: 880px;
  background: linear-gradient(180deg, #0d1422, #0a0f1a);
  border: 1px solid #2a3c58; border-radius: 4px;
  padding: 22px 26px 18px;
  box-shadow: 0 0 60px rgba(70,120,200,.15), inset 0 1px 0 rgba(255,255,255,.06);
  animation: uplink .28s ease-out;
}
@keyframes uplink {
  from { opacity: 0; transform: translateY(10px) scale(.985); filter: brightness(2) saturate(0); }
}
.mc-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start;
  border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.mc-kicker { font-size: 9px; letter-spacing: .22em; color: var(--accent-2);
  animation: blink 2s step-end infinite; }
@keyframes blink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: .45; } }
.mc-head h1 { margin: 5px 0 3px; font-size: 17px; letter-spacing: .06em; }
.mc-sub { font-size: 10.5px; color: var(--dim); }
.mc-grade {
  flex: 0 0 auto; width: 54px; height: 54px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 700; border: 2px solid;
}
.mc-grade.g-A { color: #6fd98a; border-color: #6fd98a; background: rgba(111,217,138,.08); }
.mc-grade.g-B { color: #a8d96f; border-color: #a8d96f; background: rgba(168,217,111,.08); }
.mc-grade.g-C { color: #ffc861; border-color: #ffc861; background: rgba(255,200,97,.08); }
.mc-grade.g-D { color: #ff9d5c; border-color: #ff9d5c; background: rgba(255,157,92,.08); }
.mc-grade.g-E { color: #ff6b6b; border-color: #ff6b6b; background: rgba(255,107,107,.1); }

.mc-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px; margin: 14px 0; }
.mc-tile { background: rgba(19,27,42,.7); border: 1px solid var(--line); border-radius: 3px;
  padding: 8px 10px; }
.mc-tile .k { font-size: 8.5px; letter-spacing: .14em; color: var(--dim); text-transform: uppercase; }
.mc-tile .v { font-size: 17px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.mc-tile .v.pos { color: var(--good); } .mc-tile .v.neg { color: var(--bad); }
.mc-tile .sub { font-size: 9.5px; color: var(--dim); margin-top: 1px; }

.mc-charts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 4px 0 14px; }
.mc-chart { background: rgba(10,15,26,.8); border: 1px solid var(--line); border-radius: 3px;
  padding: 8px 10px 6px; }
.mc-chart .t { font-size: 8.5px; letter-spacing: .16em; color: var(--dim); margin-bottom: 4px; }
.mc-chart canvas { width: 100%; height: 58px; display: block; }

.mc-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mc-cols .row { font-size: 11px; }
.mc-cols .pos { color: var(--good); } .mc-cols .neg { color: var(--bad); }
.mc-census .pill { margin: 0 4px 4px 0; }

.mc-verdict { margin-top: 16px; border: 1px solid #3a4c33; border-left: 3px solid var(--good);
  background: rgba(111,217,138,.05); border-radius: 3px; padding: 10px 14px; }
.mc-verdict .t { font-size: 8.5px; letter-spacing: .18em; color: var(--good); }
.mc-verdict p { margin: 6px 0; font-size: 12px; line-height: 1.6; color: #cfe0d2; }
.mc-verdict .sig { font-size: 10px; color: var(--dim); font-style: italic; }

.mc-close { display: block; margin: 16px auto 0; background: none; border: 1px solid var(--line);
  color: var(--dim); font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  padding: 8px 22px; border-radius: 3px; cursor: pointer; }
.mc-close:hover { color: var(--accent); border-color: var(--accent); }

@media (max-width: 700px) {
  .mc-charts, .mc-cols { grid-template-columns: 1fr; }
}

#speed #btn-sandbox.on {
  background: #d0a2ff; color: #1a0f26; border-color: #d0a2ff; font-weight: 700;
}

/* ------------------------------------------------------------ end screen */
#speed #btn-league.on { background: var(--accent); color: #10151f; border-color: var(--accent); }
.mc-endrow { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.mc-endrow .mc-close { margin: 0; }
.mc-close.danger:hover { color: var(--bad); border-color: var(--bad); }

#endscreen { display: none; }
#endscreen.show {
  display: flex; position: fixed; inset: 0; z-index: 70;
  background: rgba(2,4,9,.93); align-items: flex-start; justify-content: center;
  padding: 3vh 16px; overflow-y: auto;
}
.es-card {
  width: 100%; max-width: 620px; background: linear-gradient(180deg, #0e1522, #090e18);
  border: 1px solid #2a3c58; border-radius: 4px; padding: 0 26px 22px;
  animation: uplink .3s ease-out;
}
.es-banner {
  margin: 0 -26px 0; padding: 16px; text-align: center;
  font-size: 19px; letter-spacing: .16em; font-weight: 700;
  border-bottom: 1px solid var(--line);
}
.es-banner.win { color: #ffe08a; background: linear-gradient(180deg, rgba(255,200,97,.18), transparent);
  text-shadow: 0 0 22px rgba(255,200,97,.5); }
.es-banner.ok { color: var(--accent-2); background: linear-gradient(180deg, rgba(98,214,196,.12), transparent); }
.es-banner.bad { color: var(--bad); background: linear-gradient(180deg, rgba(255,107,107,.14), transparent); }
.es-blurb { text-align: center; font-size: 12px; color: var(--dim); line-height: 1.6; margin: 12px 0 4px; }

.es-score { text-align: center; padding: 10px 0 16px; }
.es-score .n { font-size: 46px; font-weight: 700; color: var(--accent);
  font-variant-numeric: tabular-nums; text-shadow: 0 0 26px rgba(255,200,97,.35); line-height: 1; }
.es-score .u { font-size: 9px; letter-spacing: .3em; color: var(--dim); margin-top: 5px; }

.es-fx { border-top: 1px solid var(--line); }
.fx { display: grid; grid-template-columns: 1fr auto 74px; gap: 8px; align-items: baseline;
  padding: 5px 0; border-bottom: 1px solid rgba(34,48,71,.4); font-size: 11.5px; }
.fx .l { color: var(--ink); }
.fx .d { color: var(--dim); font-size: 10px; text-align: right; }
.fx .p { text-align: right; font-variant-numeric: tabular-nums; color: var(--good); }
.fx.neg .p { color: var(--bad); }
.fx.sub { border-bottom: none; border-top: 1px solid var(--line); margin-top: 4px; }
.fx.sub .l, .fx.sub .p { color: var(--accent); }

.es-note { margin-top: 12px; font-size: 10.5px; color: var(--warn); text-align: center;
  border: 1px dashed rgba(255,182,72,.4); border-radius: 3px; padding: 7px; }
.es-submit { display: flex; gap: 8px; margin-top: 18px; }
.es-submit input {
  flex: 1; background: var(--panel-2); border: 1px solid var(--line); color: var(--ink);
  font-family: var(--mono); font-size: 13px; padding: 10px 12px; border-radius: 3px;
}
.es-submit input:focus { outline: none; border-color: var(--accent); }
.es-submit .go { background: var(--accent); color: #10151f; border: none; font-weight: 700;
  font-family: var(--mono); font-size: 12px; padding: 10px 18px; border-radius: 3px; cursor: pointer; }
.es-submit .go:hover { background: #ffd68a; }
.es-actions { display: flex; gap: 8px; justify-content: center; margin-top: 10px; }
.es-actions .ghost { background: none; color: var(--dim); border: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; padding: 8px 16px; border-radius: 3px; cursor: pointer; }
.es-actions .ghost:hover { color: var(--ink); border-color: var(--accent); }

/* ---------------------------------------------------------- league table */
#league { display: none; }
#league.show {
  display: flex; position: fixed; inset: 0; z-index: 65;
  background: rgba(3,5,10,.9); align-items: flex-start; justify-content: center;
  padding: 3vh 16px; overflow-y: auto;
}
.lg-card {
  width: 100%; max-width: 1000px; background: linear-gradient(180deg, #0d1422, #0a0f1a);
  border: 1px solid #2a3c58; border-radius: 4px; padding: 20px 24px 16px;
  animation: uplink .28s ease-out;
}
.lg-head { display: flex; justify-content: space-between; align-items: flex-start;
  border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.lg-kicker { font-size: 9px; letter-spacing: .2em; color: var(--accent-2); }
.lg-head h1 { margin: 5px 0 0; font-size: 17px; letter-spacing: .06em; }
.lg-x { background: none; border: 1px solid var(--line); color: var(--dim); border-radius: 3px;
  font-family: var(--mono); font-size: 13px; padding: 5px 11px; cursor: pointer; }
.lg-x:hover { color: var(--bad); border-color: var(--bad); }

.lg-filters { display: flex; gap: 6px; margin: 12px 0; flex-wrap: wrap; }
.lg-filters button { background: var(--panel-2); border: 1px solid var(--line); color: var(--dim);
  font-family: var(--mono); font-size: 10.5px; padding: 5px 11px; border-radius: 3px; cursor: pointer; }
.lg-filters button.on { background: var(--accent); color: #10151f; border-color: var(--accent); font-weight: 700; }

.lg-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.lg-table th { text-align: left; font-size: 8.5px; letter-spacing: .12em; color: var(--dim);
  text-transform: uppercase; padding: 6px 7px; border-bottom: 1px solid var(--line); font-weight: 400; }
.lg-table td { padding: 7px; border-bottom: 1px solid rgba(34,48,71,.35); font-variant-numeric: tabular-nums; }
.lg-table tbody tr[data-i] { cursor: pointer; }
.lg-table tbody tr[data-i]:hover { background: rgba(30,44,68,.5); }
.lg-table .rk { color: var(--dim); }
.lg-table .nm { color: var(--ink); }
.lg-table .sc { color: var(--accent); font-weight: 700; }
.lg-table .dt { color: var(--dim); font-size: 10px; }
.lg-table .neg { color: var(--bad); }
.lg-table tr.g .rk::after { content: ' 🥇'; } .lg-table tr.g .sc { font-size: 13px; }
.lg-table tr.s .rk::after { content: ' 🥈'; }
.lg-table tr.b .rk::after { content: ' 🥉'; }
.lg-table tr.hi { background: rgba(255,200,97,.12); box-shadow: inset 3px 0 0 var(--accent); }
.oc { font-size: 9px; letter-spacing: .06em; padding: 2px 6px; border-radius: 9px; border: 1px solid; }
.oc.win { color: #ffe08a; border-color: rgba(255,224,138,.5); }
.oc.ok { color: var(--accent-2); border-color: rgba(98,214,196,.4); }
.oc.bad { color: var(--bad); border-color: rgba(255,107,107,.4); }
.md { font-size: 9px; padding: 2px 5px; border-radius: 3px; }
.md.m-MANUAL { color: var(--good); background: rgba(111,217,138,.12); }
.md.m-AUTO { color: var(--accent-2); background: rgba(98,214,196,.12); }
.md.m-SANDBOX { color: #d0a2ff; background: rgba(208,162,255,.14); }

.lg-table tr.det { display: none; }
.lg-table tr.det.open { display: table-row; }
.lg-table tr.det td { background: rgba(8,12,20,.75); padding: 9px 12px; }
.det-in { display: flex; flex-wrap: wrap; gap: 5px; }
.fchip { border: 1px solid var(--line); border-radius: 3px; padding: 4px 8px; font-size: 10px;
  color: var(--dim); display: flex; gap: 6px; align-items: baseline; }
.fchip b { color: var(--good); font-variant-numeric: tabular-nums; }
.fchip.neg b { color: var(--bad); }
.fchip i { color: #6b7d94; font-style: normal; font-size: 9.5px; }

.lg-empty { color: var(--dim); font-size: 12px; line-height: 1.6; padding: 26px 4px; text-align: center; }
.lg-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px;
  padding-top: 10px; border-top: 1px solid var(--line); font-size: 10px; color: var(--dim); }
.lg-clear { background: none; border: 1px solid var(--line); color: var(--dim); border-radius: 3px;
  font-family: var(--mono); font-size: 10px; padding: 5px 11px; cursor: pointer; }
.lg-clear:hover { color: var(--bad); border-color: var(--bad); }

@media (max-width: 780px) {
  .lg-table th:nth-child(8), .lg-table td:nth-child(8),
  .lg-table th:nth-child(11), .lg-table td:nth-child(11) { display: none; }
}

/* ------------------------------------------------------ charter promotion */
.charter-pop {
  position: fixed; left: 50%; top: 16%; transform: translate(-50%, 0);
  z-index: 40; pointer-events: none; text-align: center;
  background: linear-gradient(180deg, rgba(20,28,44,.97), rgba(12,17,28,.97));
  border: 1px solid var(--accent); border-radius: 4px;
  padding: 18px 30px 16px; min-width: 300px; max-width: 74vw;
  box-shadow: 0 0 50px rgba(255,200,97,.22), inset 0 1px 0 rgba(255,255,255,.08);
  animation: cbIn .5s cubic-bezier(.2,.9,.3,1);
}
.charter-pop.out { animation: cbOut .6s ease-in forwards; }
@keyframes cbIn {
  from { opacity: 0; transform: translate(-50%, -14px) scale(.96); filter: brightness(2); }
}
@keyframes cbOut { to { opacity: 0; transform: translate(-50%, -10px); } }
.charter-pop .cb-kicker { font-size: 9px; letter-spacing: .22em; color: var(--accent-2); }
.charter-pop .cb-name {
  font-size: 24px; font-weight: 700; letter-spacing: .07em; color: var(--accent);
  margin: 6px 0 2px; text-shadow: 0 0 24px rgba(255,200,97,.45);
}
.charter-pop .cb-sub { font-size: 9.5px; letter-spacing: .16em; color: var(--dim);
  text-transform: uppercase; margin-bottom: 10px; }
.charter-pop .cb-mods { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; }
.charter-pop .cb-mod {
  font-size: 10px; padding: 3px 8px; border: 1px solid; border-radius: 10px;
}
.charter-pop .cb-none { font-size: 10.5px; color: var(--dim); font-style: italic; }
