@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/static/fonts/bricolage-grotesque-latin-variable.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: Barlow;
  src: url("/static/fonts/barlow-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Barlow;
  src: url("/static/fonts/barlow-latin-600-normal.woff2") format("woff2");
  font-weight: 600 900;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/static/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/static/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/static/fonts/barlow-condensed-latin-800-normal.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #0d1020;
  --panel: #171c30;
  --line: #303750;
  --aqua: #69e7dc;
  --iris: #b3a1ff;
  --headline: "Bricolage Grotesque", Arial, sans-serif;
  --text: #f2f3fb;
  --muted: #adb6ce;
  --sans: "Barlow", Arial, sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --rail-width: 220px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1rem/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
button,
dialog {
  color: var(--text);
}
:focus-visible {
  outline: 2px solid var(--iris);
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
.icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.skip {
  position: fixed;
  left: 16px;
  top: -100px;
  background: var(--aqua);
  color: var(--bg);
  padding: 8px;
  z-index: 30;
}
.skip:focus {
  top: 8px;
}
.rail {
  width: var(--rail-width);
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 8;
  display: flex;
  flex-direction: column;
  background: #121626;
  border-right: 1px solid #292e44;
  padding: 0 16px;
}
.brand {
  height: 91px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 11px;
  width: fit-content;
}
.brand > span {
  font: 800 2.27rem/0.9 var(--display);
  font-style: italic;
  letter-spacing: -0.045em;
  transform: skew(-4deg);
}
.brand-hq {
  color: var(--iris);
  margin-left: 3px;
}
.nav-label,
.tiny-label,
.pack-chip,
.pack-meta,
.kicker,
.status,
.short-hint {
  font-family: Consolas, "Liberation Mono", monospace;
}
.nav-label {
  margin: 28px 13px 12px;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: #949db9;
  text-transform: uppercase;
  font-weight: 600;
}
nav a,
.rail-bottom button {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 7px;
  padding: 11px 14px;
  color: #c4cbe0;
  font-weight: 600;
  font-size: 0.96rem;
  min-height: 43px;
}
nav a {
  margin: 3px 0;
}
nav a .icon,
.rail-bottom .icon {
  width: 19px;
  height: 19px;
  color: #a3adca;
}
nav a:hover,
.rail-bottom button:hover {
  background: #232942;
  color: white;
}
nav a[aria-current="page"] {
  background: #20353d;
  color: var(--aqua);
}
nav a[aria-current="page"] .icon {
  color: var(--aqua);
}
.nav-divider {
  height: 1px;
  background: #2c3148;
  margin: 21px 10px 0;
}
.nav-divider + .nav-label {
  margin-top: 22px;
}
.rail-bottom {
  margin-top: auto;
  border-top: 1px solid #2b3148;
  padding: 13px 0 18px;
}
.rail-bottom button {
  width: 100%;
  background: transparent;
  border: 0;
  text-align: left;
  color: var(--muted);
  font-size: 0.91rem;
}
.switch {
  display: inline-block;
  margin-left: auto;
  border-radius: 20px;
  width: 28px;
  height: 16px;
  background: #454e6a;
  position: relative;
}
.switch:after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 10px;
  height: 10px;
  background: #e0e4f4;
  border-radius: 50%;
}
[aria-pressed="true"] .switch {
  background: var(--aqua);
}
[aria-pressed="true"] .switch:after {
  transform: translateX(12px);
  background: #142b32;
}
.workspace {
  margin-left: var(--rail-width);
}
.topbar {
  height: 63px;
  padding: 0 clamp(24px, 3vw, 52px);
  display: flex;
  align-items: center;
  border-bottom: 1px solid #272d43;
  gap: 12px;
}
.crumb {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #a1acc9;
  font-size: 0.9rem;
}
.crumb .icon {
  width: 18px;
  height: 18px;
  color: #a0acc7;
}
.crumb strong {
  color: #e6e9f6;
  font-weight: 600;
}
.crumb b {
  color: #606b88;
  font-weight: 400;
}
.status {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #b0c8cb;
  font-size: 0.73rem;
}
.status-light {
  border-radius: 50%;
  width: 7px;
  height: 7px;
  background: #8590ac;
}
body[data-server="online"] .status-light {
  background: #69e7dc;
  box-shadow: 0 0 7px #52e7d544;
}
.main-content {
  max-width: 1440px;
  margin: auto;
  padding: 28px clamp(24px, 3vw, 52px) 32px;
  outline: none;
}
.page-lead {
  margin-bottom: 22px;
}
.page-lead h1 {
  font: 700 clamp(2.5rem, 3.4vw, 3.45rem) / 1.04 var(--display);
  letter-spacing: -0.015em;
}
.page-lead p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 1rem;
}
.pack-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #162041;
  border: 1px solid #3e4265;
  border-radius: 12px;
  min-height: 258px;
  display: flex;
  align-items: center;
}
.pack-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("/static/art/survey-signal.webp") center 54% / cover no-repeat;
}
.pack-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #12152be0 0%, #13172d5c 31%, transparent 60%);
}
.pack-copy {
  padding: 28px 35px;
  max-width: 54%;
}
.pack-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  line-height: 1;
  padding: 5px 8px 5px 7px;
  background: #1a1e37ce;
  border: 1px solid #68729b90;
  border-radius: 4px;
  color: #e4e5fc;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  font-weight: 600;
}
.pack-chip .icon {
  width: 14px;
  height: 14px;
  color: #8bf5e7;
}
.pack-copy h2 {
  font: 800 clamp(2.65rem, 4.15vw, 4.65rem) / 0.89 var(--display);
  text-transform: uppercase;
  letter-spacing: -0.013em;
  color: #f6f6ff;
  margin: 14px 0 18px;
}
.pack-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #d7d9ef;
  font-size: 0.77rem;
  white-space: nowrap;
}
.pack-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pack-meta .icon {
  width: 14px;
  height: 14px;
}
.pack-meta em {
  height: 12px;
  border-left: 1px solid #718099;
}
.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 20px 0 24px;
}
.action-card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 10px;
  padding: 22px 23px 23px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.card-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tile-icon {
  width: 37px;
  height: 37px;
  border-radius: 9px;
  display: inline-grid;
  place-items: center;
  flex: none;
}
.aqua {
  color: var(--aqua);
  background: #203c42;
}
.iris {
  color: var(--iris);
  background: #332c50;
}
.card-heading h2,
.shortcuts h2 {
  font: 600 1.8rem/1.1 var(--display);
  letter-spacing: -0.01em;
}
.action-card p {
  margin: 11px 0 17px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.45;
}
.action-end {
  margin-top: auto;
}
.join-form {
  display: flex;
  gap: 8px;
}
.code-entry {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1;
}
.code-entry .icon {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: #929cba;
  pointer-events: none;
}
input,
select {
  width: 100%;
  min-width: 0;
  border: 1px solid #424b68;
  background: #101526;
  color: var(--text);
  border-radius: 6px;
  padding: 10px 12px;
  min-height: 42px;
}
.code-entry input {
  padding-left: 36px;
  font-family: Consolas, monospace;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.code-entry input::placeholder {
  text-transform: none;
  color: #a2acc7;
  letter-spacing: 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 9px 16px;
  font-weight: 600;
  font-size: 0.96rem;
  min-height: 42px;
  line-height: 1.25;
  white-space: nowrap;
}
.btn .icon {
  width: 17px;
  height: 17px;
}
.primary {
  background: var(--aqua);
  color: #0d2e38;
}
.primary:hover {
  background: #a1f8ef;
}
.primary:disabled,
.host-create:disabled {
  opacity: 0.65;
}
.host-create {
  color: #201936;
  background: var(--iris);
}
.host-create:hover {
  background: #c6b9ff;
}
.full {
  width: 100%;
}
.form-error {
  color: #ffadbc;
  font-size: 0.92rem;
  margin-top: 7px;
}
.form-error:empty {
  display: none;
}
.shortcuts h2 {
  font-size: 1.55rem;
  margin-bottom: 12px;
}
.short-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.short-link {
  display: flex;
  align-items: center;
  padding: 15px 14px;
  gap: 12px;
  border: 1px solid #2c334a;
  border-radius: 8px;
  background: #151a2b;
}
.short-link:hover {
  background: #222941;
  border-color: #596383;
}
.short-link > .icon {
  width: 21px;
  height: 21px;
  color: #bac4e2;
}
.short-link strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.2;
}
.short-link small {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 3px;
}
.short-link .launch {
  width: 14px;
  height: 14px;
  color: #8997b8;
  margin-left: auto;
}
.modal {
  width: min(440px, calc(100vw - 32px));
  max-height: 90dvh;
  overflow: auto;
  border: 1px solid #45506b;
  background: #1b2036;
  color: var(--text);
  border-radius: 13px;
  padding: 27px;
  box-shadow: 0 20px 80px #0009;
}
.modal::backdrop {
  background: #070918bb;
  backdrop-filter: blur(4px);
}
.modal-dismiss {
  float: right;
}
.icon-button {
  background: transparent;
  color: var(--muted);
  border: none;
  padding: 6px;
  border-radius: 5px;
  display: grid;
  place-items: center;
}
.icon-button:hover {
  color: white;
  background: #2d344e;
}
.modal h2 {
  margin: 12px 0 5px;
  font: 700 2.2rem/1.1 var(--display);
}
.modal p {
  color: var(--muted);
  font-size: 0.98rem;
}
.create-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}
.create-form label {
  display: grid;
  gap: 5px;
  font-weight: 600;
  font-size: 0.93rem;
}
.team-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.rules-list {
  padding-left: 22px;
  margin: 20px 0;
}
.rules-list li {
  padding: 0 0 12px 4px;
}
.rules-list li::marker {
  color: var(--aqua);
  font-weight: 600;
}
.rules-list p {
  margin-top: 3px;
}
.mobile-menu,
.nav-shade {
  display: none;
}
@media (min-width: 1550px) {
  .pack-hero {
    min-height: 315px;
  }
  .main-content {
    padding-top: 36px;
  }
  .actions {
    margin-top: 24px;
  }
  .action-card {
    padding: 27px;
  }
}
@media (max-width: 1150px) {
  :root {
    --rail-width: 192px;
  }
  .rail {
    padding: 0 12px;
  }
  .topbar {
    padding: 0 26px;
  }
  .main-content {
    padding: 24px 26px;
  }
  .action-card {
    padding: 17px;
  }
  .short-link {
    gap: 9px;
    padding: 13px 10px;
  }
  .short-link small {
    font-size: 0.8rem;
  }
  .short-grid {
    gap: 9px;
  }
  .pack-hero {
    min-height: 239px;
  }
}
@media (max-width: 920px) {
  :root {
    --rail-width: 172px;
  }
  .rail {
    padding: 0 8px;
  }
  .brand {
    gap: 8px;
  }
  .brand > span {
    font-size: 2rem;
  }
  .actions {
    gap: 12px;
  }
  .btn {
    padding: 9px 12px;
  }
  .short-link small {
    display: none;
  }
  .short-link .launch {
    display: none;
  }
  .pack-copy {
    padding: 26px;
  }
  .main-content {
    padding: 22px;
  }
  .topbar {
    padding: 0 22px;
  }
  nav a {
    font-size: 0.88rem;
    gap: 9px;
  }
  .action-card p {
    font-size: 0.92rem;
  }
}
@media (max-width: 740px) {
  :root {
    --rail-width: 215px;
  }
  .workspace {
    margin-left: 0;
  }
  .rail {
    transform: translateX(-102%);
    transition: transform 0.16s;
    padding: 0 15px;
  }
  .nav-open .rail {
    transform: none;
  }
  .nav-open .nav-shade {
    position: fixed;
    inset: 0;
    display: block;
    z-index: 7;
    background: #0009;
    border: 0;
  }
  .mobile-menu {
    display: grid;
  }
  .topbar {
    height: 53px;
    padding: 0 15px;
    gap: 10px;
  }
  .crumb {
    gap: 8px;
  }
  .crumb > .icon {
    display: none;
  }
  .main-content {
    padding: 22px 17px 30px;
  }
  .page-lead {
    margin-bottom: 17px;
  }
  .page-lead h1 {
    font-size: 2.65rem;
  }
  .pack-hero {
    min-height: 218px;
  }
  .pack-copy {
    padding: 22px 18px;
  }
  .pack-copy h2 {
    font-size: clamp(2.3rem, 7.3vw, 3.55rem);
  }
  .status {
    font-size: 0.68rem;
  }
  .actions {
    margin-top: 14px;
  }
  .short-grid {
    gap: 9px;
  }
  .short-link {
    padding: 12px;
  }
  .short-link strong {
    font-size: 0.88rem;
  }
  .rail-bottom {
    padding-bottom: 16px;
  }
}
@media (max-width: 590px) {
  .actions {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 22px;
  }
  .pack-hero {
    min-height: 187px;
  }
  .pack-hero::before {
    background-position: 55% center;
  }
  .pack-hero::after {
    background: linear-gradient(90deg, #101429e6, #10142985 44%, transparent 67%);
  }
  .pack-copy {
    padding: 17px;
    max-width: 64%;
  }
  .pack-copy h2 {
    font-size: clamp(2.1rem, 8.5vw, 3.3rem);
    margin: 12px 0;
  }
  .pack-meta {
    font-size: 0.65rem;
    gap: 7px;
  }
  .pack-meta .icon {
    width: 12px;
    height: 12px;
  }
  .pack-chip {
    font-size: 0.57rem;
    padding: 4px 6px;
  }
  .short-grid {
    grid-template-columns: 1fr;
  }
  .short-link small,
  .short-link .launch {
    display: block;
  }
  .short-link {
    gap: 13px;
  }
  .short-link strong {
    font-size: 1rem;
  }
  .action-card {
    padding: 17px 18px;
  }
  .card-heading h2 {
    font-size: 1.7rem;
  }
  .actions p {
    margin: 9px 0 13px;
  }
  .page-lead p {
    font-size: 0.96rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation-duration: 0.01ms !important;
  }
}
.rail-bottom button {
  white-space: nowrap;
}
.switch {
  flex-shrink: 0;
}
@media (min-width: 741px) {
  .pack-hero {
    min-height: clamp(235px, 20.4vw, 314px);
    background-color: #16192e;
    background-image: radial-gradient(#949ff32b 0.7px, transparent 0.8px);
    background-size: 4px 4px;
  }
  .pack-hero::before {
    background-size: auto 114%;
    background-position: right 58%;
    mask-image: linear-gradient(90deg, transparent 12%, #000 55%);
  }
}
@media (max-width: 740px) {
  .rail {
    visibility: hidden;
    transition: none;
  }
  .nav-open .rail {
    visibility: visible;
  }
}
.brand > span {
  font: 800 1.62rem/1 var(--headline);
  letter-spacing: -0.075em;
  transform: none;
}
.brand-hq {
  color: var(--aqua);
  margin-left: 3px;
}
.page-lead h1 {
  font: 750 clamp(2.2rem, 3vw, 3rem) / 1.08 var(--headline);
  letter-spacing: -0.055em;
}
.card-heading h2,
.shortcuts h2 {
  font: 700 1.4rem/1.15 var(--headline);
  letter-spacing: -0.045em;
}
.shortcuts h2 {
  font-size: 1.25rem;
}
.pack-copy h2 {
  font: 800 clamp(3.55rem, 4.75vw, 5.25rem) / 0.83 var(--headline);
  text-transform: none;
  letter-spacing: -0.075em;
  margin: 19px 0 24px;
}
.pack-copy h2 span {
  color: #86f7e9;
}
.pack-hero {
  border-color: #494767;
  border-radius: 13px;
}
.pack-chip {
  letter-spacing: 0.1em;
  background: #1a1b3bd1;
  color: #ebe8ff;
  border-color: #606182;
  border-radius: 20px;
  padding: 6px 10px;
}
.pack-chip .icon {
  color: var(--aqua);
}
.pack-meta {
  font-family: var(--sans);
  font-size: 0.86rem;
  color: #dbdcee;
}
@media (min-width: 741px) {
  .pack-hero::before {
    left: auto;
    width: min(100%, clamp(645px, 55.9vw, 862px));
    mask-image: linear-gradient(90deg, transparent, black 24%);
  }
  .pack-copy {
    padding-left: 38px;
  }
}
@media (max-width: 740px) {
  .brand > span {
    font-size: 1.65rem;
  }
  .pack-copy h2 {
    font-size: clamp(2.65rem, 9vw, 4rem);
    margin: 13px 0 17px;
  }
  .pack-meta {
    font-size: 0.73rem;
  }
  .pack-chip {
    font-size: 0.58rem;
  }
  .pack-hero::before {
    background-position: 61% center;
  }
  .pack-hero::after {
    background: linear-gradient(90deg, #0d1025e6 5%, #0d102588 43%, transparent 72%);
  }
}
