:root {
  color-scheme: dark;
  --ground: #0b0f0d;
  --panel: rgba(10, 13, 12, 0.84);
  --panel-solid: #111714;
  --line: #2a332e;
  --line-strong: #3d4a42;
  --text: #e9e6dc;
  --muted: #96a097;
  --gold: #e8c46a;
  --class: #9848b3;
  --class-soft: #c07ae0;
  --hp: #3fae4a;
  --mana: #2f6fd6;
  --danger: #e0503f;
  --tip-bg: #0a0e1c;
  --tip-line: #58607e;
  --f-display:
    "Marcellus SC",
    Georgia,
    "Times New Roman",
    serif;
  --f-body:
    "Alegreya Sans",
    "Segoe UI",
    system-ui,
    sans-serif;
  --f-num:
    "Barlow Condensed",
    "Arial Narrow",
    sans-serif;
}
[hidden] {
  display: none !important;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 15px;
  overflow: hidden;
}
#app {
  position: relative;
  height: 100%;
  min-height: 480px;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
#app input,
#app textarea,
#app select {
  user-select: text;
  -webkit-user-select: text;
}
#world {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  outline: none;
  cursor: crosshair;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button:focus-visible,
.slot:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
kbd {
  font-family: var(--f-num);
  font-weight: 600;
  font-size: 0.85em;
  padding: 1px 6px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: #18201c;
  color: var(--text);
}
.label {
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.ghost {
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 6px 10px;
}
.spec-pick {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}
.spec-pick select {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 5px 8px;
  font: inherit;
}
.opt-pick {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}
.opt-pick input {
  accent-color: var(--gold);
  margin: 0;
}
.ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.link {
  background: none;
  border: 0;
  color: var(--gold);
  padding: 0;
  font-size: 13px;
}
.link:hover {
  text-decoration: underline;
}
#topBar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 24px;
  padding: 12px 16px;
  background: linear-gradient(var(--panel), rgba(10, 13, 12, 0));
  pointer-events: none;
}
#topBar > * {
  pointer-events: auto;
}
.brand {
  display: grid;
  gap: 2px;
}
.brand-kicker {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.brand-title {
  font-family: var(--f-display);
  font-size: 22px;
  color: var(--gold);
  line-height: 1.1;
}
.brand-title em {
  font-style: normal;
  font-family: var(--f-body);
  font-size: 13px;
  color: var(--muted);
  margin-left: 6px;
}
.exp-wrap {
  justify-self: center;
  display: grid;
  justify-items: center;
  gap: 6px;
  max-width: 560px;
}
#expPicker {
  display: flex;
  gap: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
}
.exp {
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  padding: 6px 14px 5px;
  display: grid;
  line-height: 1.1;
  font-weight: 700;
  font-size: 14px;
}
.exp:last-child {
  border-right: 0;
}
.exp small {
  font-weight: 400;
  font-size: 11px;
  color: var(--muted);
}
.exp:hover {
  background: rgba(152, 72, 179, 0.15);
}
.exp.on {
  background: var(--class);
  color: #fff;
}
.exp.on small {
  color: #ecd6f5;
}
#expBlurb {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  text-wrap: balance;
}
.top-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.toggle {
  display: flex;
  align-items: center;
  gap: 6px;
}
.toggle .label {
  font-size: 10px;
}
.toggle b {
  font-weight: 700;
  color: var(--muted);
}
.toggle.on {
  border-color: #7fb2ff;
}
.toggle.on b {
  color: #9fc4ff;
}
#frames {
  position: absolute;
  top: 76px;
  left: 16px;
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  gap: 8px 12px;
  align-items: start;
}
.unit {
  display: flex;
  gap: 10px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  width: 290px;
}
.unit.target {
  width: 240px;
}
.portrait img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.portrait {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 35% 30%,
      #c07ae0,
      #4a1d5c);
  display: grid;
  place-items: center;
  font-family: var(--f-display);
  color: #fff;
  border: 2px solid var(--gold);
  flex: none;
}
.unit-body {
  flex: 1;
  display: grid;
  gap: 4px;
  min-width: 0;
}
.unit-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--gold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bar {
  position: relative;
  height: 16px;
  background: #050706;
  border: 1px solid #000;
  border-radius: 3px;
  overflow: hidden;
}
.bar .fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
}
.bar .txt {
  position: relative;
  display: block;
  text-align: center;
  font-family: var(--f-num);
  font-weight: 600;
  font-size: 13px;
  line-height: 15px;
  font-variant-numeric: tabular-nums;
  color: #fff;
  text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000,
    0 0 2px #000;
}
.bar.hp .fill {
  background: linear-gradient(#4fc25a, #2c8a36);
}
.bar.mana .fill {
  background: linear-gradient(#4a86ea, #2356b0);
}
.bar.cast .fill {
  background: linear-gradient(#f1d27f, #c79a2e);
}
.bar.cast .txt {
  color: #fff;
}
.rule {
  display: grid;
  gap: 2px;
}
.rule-track {
  height: 3px;
  background: #050706;
  border-radius: 2px;
  overflow: hidden;
}
#ruleFill {
  height: 100%;
  background: var(--muted);
  width: 0;
}
.rule.active #ruleFill {
  background: #7fb2ff;
}
#ruleTxt {
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.rule.active #ruleTxt {
  color: #9fc4ff;
}
.lock {
  font-size: 12px;
  color: #8fd8ff;
  font-weight: 700;
}
#buffs {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  align-items: flex-start;
  min-height: 46px;
}
.buff {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  width: 32px;
  cursor: default;
  outline: none;
}
.buff .bi {
  position: relative;
  width: 30px;
  height: 30px;
}
.buff .bi img,
.buff .glyph {
  width: 30px;
  height: 30px;
  border-radius: 3px;
  border: 1px solid #7a6a3a;
  display: block;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}
.buff .glyph {
  display: grid;
  place-items: center;
  background: #1b1712;
  color: var(--c, #d9c9a0);
  font-size: 17px;
  font-weight: 700;
}
.buff .bs {
  position: absolute;
  right: -3px;
  bottom: -4px;
  font-family: var(--f-num);
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  text-shadow:
    0 0 2px #000,
    1px 1px 1px #000,
    -1px -1px 1px #000;
}
.buff .bt {
  font-family: var(--f-num);
  font-weight: 600;
  font-size: 11px;
  line-height: 1.1;
  color: #f0d36a;
  text-shadow: 0 1px 2px #000;
  min-height: 12px;
}
.buff:hover .bi img,
.buff:focus-visible .bi img,
.buff:hover .glyph,
.buff:focus-visible .glyph {
  border-color: var(--gold);
}
.tt-stk {
  font-family: var(--f-num);
  font-size: 13px;
  color: var(--muted);
}
#side {
  position: absolute;
  top: 76px;
  right: 16px;
  width: 280px;
  display: grid;
  gap: 10px;
}
.meter,
.logbox {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  display: grid;
  gap: 8px;
}
.meter-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.meter-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.meter-stats div {
  display: grid;
}
.meter-stats b {
  font-family: var(--f-num);
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.meter-stats span {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.2;
}
#meterGraph {
  width: 100%;
  height: 84px;
  display: block;
}
.graph-cap {
  font-size: 11px;
  color: var(--muted);
}
#log {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
  font-size: 12.5px;
  line-height: 1.3;
  max-height: 200px;
  overflow: hidden;
}
#bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 10px 16px 14px;
  background: linear-gradient(rgba(10, 13, 12, 0), var(--panel));
  pointer-events: none;
}
#bottom > * {
  pointer-events: auto;
}
.channel {
  width: 260px;
  height: 18px;
}
.swing-bars {
  display: flex;
  gap: 10px;
}
.bar.swing {
  width: 200px;
  height: 14px;
}
.bar.swing .fill {
  background: linear-gradient(#f4ecd8, #b9ab86);
  transition: none;
}
.bar.swing.off .fill {
  background: linear-gradient(#c9d2dc, #7f8c99);
}
.swing-bars.fire .bar.swing .fill {
  background: linear-gradient(#ffc27a, #e2621c);
}
.bar.swing .txt {
  font-size: 11px;
  line-height: 13px;
  color: #fff;
}
.swing-bars.idle {
  opacity: 0.35;
}
.bars {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}
.passive-wrap {
  display: grid;
  justify-items: center;
  gap: 4px;
}
#passiveBar {
  display: flex;
  gap: 6px;
  padding: 6px;
  background: #080b0a;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
}
.slot.passive {
  cursor: default;
  box-shadow: inset 0 0 0 1px rgba(212, 172, 13, 0.6);
}
#bloodBar {
  display: flex;
  gap: 6px;
  padding: 6px;
  background: #080b0a;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
}
.slot.blood {
  width: 46px;
  height: 46px;
  box-shadow: inset 0 0 0 1px rgba(255, 90, 90, 0.45);
}
.slot.blood .lvl {
  position: absolute;
  left: 3px;
  bottom: 1px;
  font-family: var(--f-num);
  font-weight: 700;
  font-size: 11px;
  color: #ffd0d0;
  text-shadow: 0 0 2px #000, 0 0 2px #000;
}
.slot.blood.active {
  box-shadow: inset 0 0 0 2px #ff6a6a, 0 0 10px rgba(255, 90, 90, 0.65);
}
.pstats {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
}
.pstats b {
  color: var(--gold);
}
.slot .stk {
  position: absolute;
  right: 3px;
  bottom: 1px;
  font-family: var(--f-num);
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  text-shadow: 0 0 3px #000, 0 0 3px #000;
}
#actionBar {
  display: flex;
  gap: 6px;
  padding: 6px;
  background: #080b0a;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
}
.slot {
  position: relative;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 1px solid #000;
  border-radius: 6px;
  background: #000;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(232, 196, 106, 0.35);
}
.slot img {
  width: 100%;
  height: 100%;
  display: block;
}
.slot:hover {
  box-shadow: inset 0 0 0 2px rgba(255, 236, 190, 0.85), 0 0 8px rgba(240, 205, 126, 0.45);
}
.slot:hover img {
  filter: brightness(1.12);
}
.talent:hover {
  box-shadow: inset 0 0 0 2px rgba(255, 236, 190, 0.85), 0 0 8px rgba(240, 205, 126, 0.45);
}
.talent:hover img {
  filter: brightness(1.12);
}
.buff:hover .bi img,
.buff:focus-visible .bi img {
  box-shadow: 0 0 6px rgba(240, 205, 126, 0.6);
}
.slot .cd {
  position: absolute;
  inset: 0;
  background: conic-gradient(rgba(0, 0, 0, 0.72) var(--p, 0deg), transparent 0);
  pointer-events: none;
}
.slot .cdt {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--f-num);
  font-weight: 700;
  font-size: 20px;
  color: #fff;
  text-shadow: 0 0 3px #000, 0 0 3px #000;
  pointer-events: none;
}
.slot .key {
  position: absolute;
  top: 1px;
  right: 4px;
  font-family: var(--f-num);
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  text-shadow: 0 0 2px #000, 0 0 2px #000;
}
.slot.oom img {
  filter: saturate(0.3) brightness(0.55) sepia(1) hue-rotate(180deg);
}
.slot.range .key {
  color: var(--danger);
}
.slot.active {
  box-shadow: inset 0 0 0 2px var(--gold), 0 0 10px rgba(232, 196, 106, 0.6);
}
.slot.empowered {
  overflow: visible;
  animation: empPulse 0.8s ease-in-out infinite alternate;
}
.slot.empowered::after {
  content: "";
  position: absolute;
  inset: -3px;
  border: 2px solid #e8e2ff;
  border-radius: 8px;
  pointer-events: none;
}
.slot.emp-mana {
  animation-name: empPulseMana;
}
.slot.emp-mana::after {
  border-color: #9fd0ff;
}
@keyframes empPulseMana {
  from {
    box-shadow: 0 0 6px 1px rgba(70, 150, 255, 0.55);
  }
  to {
    box-shadow: 0 0 16px 4px rgba(140, 200, 255, 0.95);
  }
}
.slot.emp-fire {
  animation-name: empPulseFire;
}
.slot.emp-fire::after {
  border-color: #ffb347;
}
@keyframes empPulseFire {
  from {
    box-shadow: 0 0 6px 1px rgba(255, 120, 40, 0.55);
  }
  to {
    box-shadow: 0 0 16px 4px rgba(255, 180, 70, 0.95);
  }
}
@keyframes empPulse {
  from {
    box-shadow: 0 0 6px 1px rgba(200, 170, 255, 0.55);
  }
  to {
    box-shadow: 0 0 16px 4px rgba(232, 226, 255, 0.95);
  }
}
@media (prefers-reduced-motion: reduce) {
  .slot.empowered {
    animation: none;
    box-shadow: 0 0 12px 3px rgba(232, 226, 255, 0.85);
  }
}
.slot:hover {
  box-shadow: inset 0 0 0 2px #fff;
}
.keys {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
#errorMsg {
  position: absolute;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  font-weight: 700;
  font-size: 17px;
  color: #ff4a3a;
  text-shadow: 0 1px 2px #000;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
#errorMsg.show {
  opacity: 1;
}
#pausedTag {
  position: absolute;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-display);
  font-size: 18px;
  color: var(--gold);
  background: var(--panel);
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
}
#tip {
  position: fixed;
  z-index: 50;
  max-width: 320px;
  background: var(--tip-bg);
  border: 1px solid var(--tip-line);
  border-radius: 6px;
  padding: 9px 11px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  display: grid;
  gap: 2px;
  font-size: 13.5px;
}
.tt-name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.tt-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #fff;
}
.tt-text {
  color: #ffd100;
  margin-top: 4px;
  line-height: 1.35;
}
.tt-proto {
  color: #8b93a8;
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.3;
}
.overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(5, 8, 7, 0.82);
  z-index: 40;
  overflow-y: auto;
}
.overlay.soft {
  background: rgba(40, 5, 5, 0.35);
  pointer-events: none;
}
.card {
  max-width: 560px;
  background: var(--panel-solid);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 28px 28px 24px;
  display: grid;
  gap: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.card.small {
  max-width: 380px;
  text-align: center;
}
.card h1 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 44px;
  color: var(--gold);
  line-height: 1;
  letter-spacing: 0.02em;
}
.card h2 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 28px;
  color: var(--danger);
}
.card p {
  margin: 0;
  line-height: 1.45;
}
.lede {
  font-size: 17px;
}
.lede strong {
  color: var(--class-soft);
}
.how {
  display: grid;
  gap: 6px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.how div {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
}
.how span {
  margin-left: 8px;
  color: var(--muted);
}
.stations {
  color: var(--muted);
  font-size: 14px;
}
.primary {
  justify-self: start;
  background: var(--class);
  color: #fff;
  border: 1px solid var(--class-soft);
  border-radius: 8px;
  padding: 11px 20px;
  font-weight: 700;
  font-size: 16px;
}
.primary:hover {
  background: #a957c4;
}
.narrow-note {
  display: none;
  color: var(--danger);
  font-size: 14px;
}
#tuning {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(380px, 100%);
  z-index: 45;
  background: var(--panel-solid);
  border-left: 1px solid var(--line-strong);
  padding: 16px;
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 10px;
}
#tuning[hidden] {
  display: none !important;
}
#barPanel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(360px, 100%);
  z-index: 44;
  background: var(--panel-solid);
  border-left: 1px solid var(--line-strong);
  padding: 16px;
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 10px;
}
#barBody {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.brow {
  display: grid;
  grid-template-columns: 22px 28px 1fr auto auto;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
}
.brow.off {
  opacity: 0.55;
}
.brow img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}
.brow input {
  accent-color: var(--class);
  width: 16px;
  height: 16px;
}
.brow .bkey {
  font-family: var(--f-display);
  color: var(--gold);
  min-width: 14px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.brow button {
  background: #1d2521;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  width: 26px;
  height: 24px;
  padding: 0;
}
.brow button:disabled {
  opacity: 0.35;
}
.brow button:focus-visible,
.brow input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
#passivesPanel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 100%);
  z-index: 44;
  background: var(--panel-solid);
  border-left: 1px solid var(--line-strong);
  padding: 16px;
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 10px;
}
.pgrp {
  border-top: 1px solid var(--line);
  padding-top: 8px;
  display: grid;
  gap: 4px;
}
.pgrp-h {
  font-family: var(--f-display);
  color: var(--gold);
  font-size: 16px;
}
.pgrp-h small,
.prow small {
  font-family: var(--f-body);
  color: var(--muted);
  font-size: 11px;
  margin-left: 4px;
}
.prow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}
.prow input {
  accent-color: var(--class);
  width: 16px;
  height: 16px;
}
.tuning-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
}
.tuning-head h2 {
  margin: 2px 0 0;
  font-family: var(--f-display);
  font-weight: 400;
  color: var(--gold);
  font-size: 22px;
}
.tuning-note {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}
.tuning-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tuning-actions button:not(.ghost) {
  background: #1d2521;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 6px 10px;
}
.tuning-actions button:not(.ghost):hover {
  border-color: var(--gold);
}
#tuningStatus {
  margin: 0;
  font-size: 12px;
  color: var(--gold);
  min-height: 1em;
}
#tuningIO {
  width: 100%;
  min-height: 140px;
  background: #070a09;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font:
    12px/1.4 ui-monospace,
    Consolas,
    monospace;
  padding: 8px;
}
.tg {
  border-top: 1px solid var(--line);
}
.tg summary {
  cursor: pointer;
  padding: 7px 0;
  font-weight: 700;
  color: var(--text);
}
.tg.d0 > summary {
  font-family: var(--f-display);
  font-weight: 400;
  color: var(--gold);
  font-size: 16px;
}
.tg.d1 > summary,
.tg.d2 > summary {
  font-size: 14px;
}
.tg-body {
  display: grid;
  gap: 4px;
  padding: 0 0 8px 10px;
}
.tf {
  display: grid;
  grid-template-columns: 1fr 96px;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.tf input {
  width: 100%;
  background: #070a09;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 3px 6px;
  font-family: var(--f-num);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 1100px) {
  #side {
    display: none;
  }
  .exp-wrap {
    justify-self: end;
  }
}
@media (max-width: 820px) {
  #topBar {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .exp-wrap,
  .top-actions {
    display: none;
  }
  #frames {
    top: 64px;
  }
  #errorMsg,
  #pausedTag {
    top: 230px;
  }
  .narrow-note {
    display: block;
  }
  #playBtn {
    display: none;
  }
  .card h1 {
    font-size: 34px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
