@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800;900&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  color-scheme: dark;
  --bg: #101210;
  --ink: #edf1e8;
  --muted: #92998c;
  --lime: #d3ff69;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    14px 'DM Sans',
    sans-serif;
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
  cursor: pointer;
  color: inherit;
  border: 1px solid #353b31;
  background: #20251e;
  border-radius: 6px;
  padding: 10px 13px;
  transition:
    background 0.15s,
    transform 0.15s;
}

button:hover {
  background: #323d2a;
}

button:active {
  transform: translateY(1px);
}

button:focus-visible,
a:focus-visible,
canvas:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

header {
  height: 86px;
  border-bottom: 1px solid #2a3027;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 7px;
  font:
    900 35px 'Barlow Condensed',
    sans-serif;
  color: var(--ink);
  text-decoration: none;
}

.brand > span {
  color: var(--lime);
}

.brand small {
  font:
    700 10px 'DM Sans',
    sans-serif;
  letter-spacing: 2px;
  margin-left: 14px;
  max-width: 130px;
}

.connection {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}

i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8c9685;
}

.quiet {
  background: transparent;
  border: 0;
  color: var(--ink);
  font-size: 12px;
}

main {
  max-width: 1580px;
  padding: 42px 4% 0;
  margin: auto;
}

.intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--lime);
}

h1 {
  font:
    900 clamp(50px, 5.5vw, 83px) / 0.94 'Barlow Condensed',
    Impact,
    sans-serif;
  text-transform: uppercase;
  letter-spacing: -1px;
  margin: 16px 0 0;
}

h1 em {
  font-style: normal;
  color: var(--lime);
}

.lede {
  color: #b2baaa;
  line-height: 1.8;
  font-size: 14px;
  margin: 0 8px 6px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
}

.stage {
  position: relative;
  border: 1px solid #394132;
  background: #151b14;
  border-radius: 9px;
  overflow: hidden;
  align-self: start;
}

.stage-top,
.stage-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  font-size: 10px;
  letter-spacing: 1px;
  background: #1c2319;
}

.stage-top #phase {
  color: var(--lime);
}

canvas {
  display: block;
  width: 100%;
  aspect-ratio: 1100/660;
  background: #151b14;
}

.stage-bottom {
  color: #98a18e;
  padding: 9px 18px;
  font-size: 10px;
  letter-spacing: 0;
}

.stage-bottom b {
  color: #d5ddcd;
  margin-left: 12px;
  margin-right: 5px;
}

aside {
  background: #1a1e17;
  border: 1px solid #30362b;
  border-radius: 9px;
  padding: 23px;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-heading .eyebrow {
  font-size: 9px;
  letter-spacing: 1.5px;
}

.tag {
  font-size: 8px;
  color: #b4bda9;
  border: 1px solid #46503c;
  padding: 4px;
  border-radius: 3px;
}

h2 {
  font:
    700 30px 'Barlow Condensed',
    sans-serif;
  margin: 15px 0 8px;
}

.muted {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 0;
}

.parts {
  display: grid;
  gap: 9px;
  margin: 20px 0;
}

.part {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 12px;
  padding: 15px 11px;
  background: #22291e;
}

.part .icon {
  font-size: 29px;
  width: 30px;
  text-align: center;
}

.part strong {
  display: block;
  font-size: 15px;
}

.part small {
  display: block;
  font-size: 9px;
  color: #a5ae9b;
  margin-top: 4px;
}

.part > b {
  margin-left: auto;
  font:
    700 22px 'Barlow Condensed',
    sans-serif;
}

.armor .icon,
.armor > b {
  color: #b7d2ff;
}

.legs .icon,
.legs > b {
  color: #d3ff69;
}

.chaos .icon,
.chaos > b {
  color: #ffae83;
}

.simulation {
  padding: 0 0 18px;
  font-size: 11px;
  color: #c4ccbb;
}

.simulation label {
  display: flex;
  align-items: center;
  gap: 5px;
}

.simulation label span {
  margin-left: auto;
  font-size: 8px;
  color: var(--lime);
}

input {
  accent-color: var(--lime);
}

.simulation small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin: 7px 0 0 4px;
}

.primary {
  background: var(--lime);
  color: #18210b;
  font-weight: 700;
  width: 100%;
  border: 0;
  padding: 14px 17px;
  display: flex;
  justify-content: space-between;
}

.primary:hover {
  background: #e3ff9e;
}

.actions {
  display: flex;
  gap: 6px;
  margin: 9px 0 24px;
}

.actions button {
  flex: 1;
  font-size: 10px;
  padding: 9px 5px;
}

.feed-heading {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: #9aa58f;
  letter-spacing: 1px;
  padding-bottom: 10px;
  border-bottom: 1px solid #343c2e;
}

ol {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 125px;
  overflow: auto;
}

li {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #2b3225;
  color: #bbc6b0;
}

li span {
  color: var(--lime);
}

li.empty {
  color: #7c8971;
  line-height: 1.6;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 26px 0;
  color: #717c65;
  font-size: 9px;
  letter-spacing: 1.3px;
}

#announcement {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  background: #d3ff69;
  color: #1a240d;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 5px;
  opacity: 0;
  transition: opacity 0.2s;
  white-space: nowrap;
}

dialog {
  max-width: 440px;
  border: 1px solid #455138;
  background: #1b2317;
  color: var(--ink);
  border-radius: 12px;
  padding: 26px;
  line-height: 1.8;
}

dialog::backdrop {
  background: #000b;
}

dialog code {
  color: var(--lime);
  overflow-wrap: anywhere;
}

.stage:fullscreen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #101510;
}

.stage:fullscreen canvas {
  max-height: 88vh;
  width: auto;
  max-width: 100%;
  margin: auto;
}

.stage:fullscreen .stage-top,
.stage:fullscreen .stage-bottom {
  flex-shrink: 0;
}

@media (max-width: 1000px) {
  .layout {
    grid-template-columns: 1fr 290px;
    gap: 14px;
  }

  aside {
    padding: 16px;
  }

  .lede {
    font-size: 12px;
  }
}

@media (max-width: 760px) {
  header {
    height: auto;
    min-height: 75px;
    gap: 10px;
    flex-wrap: wrap;
    padding: 15px 5%;
  }

  .brand small {
    font-size: 8px;
  }

  .connection {
    font-size: 10px;
    flex-wrap: wrap;
  }

  .intro {
    align-items: start;
  }

  .lede {
    display: none;
  }

  main {
    padding-top: 25px;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .stage-bottom {
    padding: 7px;
  }

  .stage-bottom b {
    margin-left: 3px;
  }

  footer {
    font-size: 7px;
    gap: 20px;
  }

  .parts {
    grid-template-columns: 1fr;
  }

  .stage-top {
    padding: 12px;
  }

  h1 {
    font-size: 64px;
  }
}
