@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("/static/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/static/fonts/literata-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #000;
  --panel: #1b1b1b;
  --panel-2: #141414;
  --text: #fff;
  --muted: #aaa;
  --line: #2a2a2a;
  --orange: #ff4f9a;
  --sans: "Bricolage Grotesque", "Avenir Next", sans-serif;
  --serif: "Literata", Georgia, serif;
}

* { box-sizing: border-box; }

html {
  background: #09090b;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-height: 100vh;
  background: transparent;
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.5;
}

.wash {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: #09090b;
  background-image:
    radial-gradient(ellipse 90% 46% at 88% -12%, rgba(255, 79, 154, 0.22), transparent 54%),
    radial-gradient(ellipse 50% 38% at -12% 22%, rgba(255, 79, 154, 0.1), transparent 52%);
}

.legal-warn,
.top,
main,
.colophon {
  position: relative;
  z-index: 1;
}

a { color: inherit; }

img { display: block; max-width: 100%; }

code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.92em;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 5;
  padding: 0.4rem 0.7rem;
  background: var(--orange);
  color: #000;
}

.skip:focus { top: 1rem; }

.legal-warn {
  margin: 0;
  padding: 0.7rem 1.25rem;
  background: var(--orange);
  color: #000;
  font-size: 0.92rem;
  font-weight: 600;
}

.top {
  background: rgba(9, 9, 11, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
}

.bar {
  display: flex;
  align-items: flex-end;
  gap: 1.75rem;
  width: min(1440px, calc(100% - 4.5rem));
  min-height: 112px;
  margin: 0 auto;
  padding: 1.35rem 0.25rem 2.15rem;
}

.mark {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: #fff;
  font-weight: 800;
  font-size: 2.65rem;
  letter-spacing: -0.05em;
  line-height: 1;
  text-decoration: none;
}

.mark-hub {
  margin-left: 0.08em;
  padding: 0.08em 0.22em 0.12em;
  border-radius: 0.18em;
  background: var(--orange);
  color: #000;
}

.session {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-left: auto;
}

main {
  width: min(1440px, calc(100% - 4.5rem));
  margin: 0 auto;
}

.hero, .profile { padding: 1.6rem 0 0.4rem; }

.kicker {
  margin: 0 0 0.45rem;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kicker a { text-decoration: none; }

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.lede { margin: 0.7rem 0 0; color: #ddd; }

.lede a { color: var(--orange); }

.bio { max-width: 40rem; margin: 0.7rem 0 0; color: var(--muted); }

.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0 0; }

.button {
  display: inline-block;
  padding: 0.7rem 1.05rem;
  border: 0;
  border-radius: 10px;
  background: var(--orange);
  color: #000;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.ghost, .text-button {
  background: #2a2a2a;
  color: #fff;
}

.text-button {
  border: 0;
  padding: 0;
  background: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.button:hover { filter: brightness(1.08); }

.band { padding: 3.6rem 0 0.4rem; }

.band-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.3rem;
}

.band-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.045em;
}

.band-head h2::before {
  content: "";
  display: inline-block;
  width: 0.42em;
  height: 0.42em;
  margin-right: 0.42em;
  border-radius: 0.12em;
  background: var(--orange);
  vertical-align: 0.08em;
}

.band-head p, .byline, .load-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.band-head p {
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 79, 154, 0.14);
  color: #ffc2dd;
  font-weight: 700;
}

.empty {
  margin: 0;
  padding: 1.4rem 1.5rem;
  border-radius: 10px;
  background: var(--panel);
  color: var(--muted);
  font-size: 1rem;
}

.tickets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ticket-wrap { position: relative; }

.ticket {
  display: flex;
  flex-direction: column;
  min-height: 160px;
  padding: 1.4rem 1.45rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  background: linear-gradient(180deg, #1c1c20 0%, #121214 100%);
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ticket-edit {
  position: absolute;
  top: 0.85rem;
  right: 0.9rem;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.ticket:hover {
  border-color: rgba(255, 79, 154, 0.7);
  transform: translateY(-4px);
}

.ticket-top {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

.avatar {
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: 14px;
  object-fit: cover;
  background: #1a1a1a;
  box-shadow: 0 0 0 2px rgba(255, 79, 154, 0.55);
}

.avatar-lg { width: 96px; height: 96px; }

.profile-head {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}

.steam-line { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.92rem; }

.steam-summary { white-space: pre-line; }

.ticket h3 {
  margin: 0;
  font-size: 1.8rem;
  letter-spacing: -0.03em;
}

.ticket p { margin: 0.35rem 0 0.6rem; color: #ddd; }

.ticket-meta {
  margin-top: auto;
  padding-top: 0.8rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.film {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.8rem 1.3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.frame { color: inherit; text-decoration: none; }

button.frame {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease;
}

button.frame:hover { transform: translateY(-4px); }

.thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: #1a1a1a;
  transition: border-color 0.2s ease;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.frame:hover .thumb { border-color: rgba(255, 79, 154, 0.75); }

.frame:hover .thumb img { transform: scale(1.045); }

.play {
  position: absolute;
  right: 0.55rem;
  bottom: 0.55rem;
  padding: 0.28rem 0.5rem;
  border-radius: 8px;
  background: var(--orange);
  color: #000;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.frame-copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding-top: 0.45rem;
}

.frame-copy strong { font-size: 0.98rem; font-weight: 700; }

.frame-copy em { color: var(--muted); font-size: 0.85rem; font-style: normal; }

.frame:hover .frame-copy strong { color: var(--orange); }

.player {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(200px, 0.7fr);
  gap: 1rem;
  align-items: start;
}

.player iframe,
.load-video .thumb { width: 100%; }

.player iframe {
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 6px;
  background: #000;
}

.player h3 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.player p { margin: 0 0 0.7rem; color: #ddd; }

.player a { color: var(--orange); }

.load-video {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.load-note { display: block; margin-top: 0.4rem; }

.cinema {
  position: fixed;
  z-index: 5;
  inset: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  margin: 0;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 1.25rem 1.5rem;
  border: 0;
  background: rgb(0 0 0 / 94%);
  color: #fff;
}

.cinema[open] { display: flex; }

.cinema:not([open]) { display: none; }

.cinema::backdrop { background: rgb(0 0 0 / 94%); }

.cinema-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.cinema-stage { width: min(1100px, 100%); margin: 0 auto; }

.cinema-frame {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 6px;
  background: #000;
}

.cinema-title {
  margin: 0.75rem 0 0;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.catalog {
  margin: 0;
  padding: 0;
  list-style: none;
}

.catalog li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: start;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.num { color: var(--muted); font-weight: 700; }

.catalog h3 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.catalog h3 a { text-decoration: none; }

.catalog h3 a:hover { color: var(--orange); }

.catalog p { margin: 0.25rem 0 0; color: #ccc; }

.byline {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  text-align: right;
}

.byline a { font-weight: 700; text-decoration: none; }

.byline a:hover { color: var(--orange); }

.byline span {
  padding: 0.08rem 0.35rem;
  border-radius: 3px;
  background: var(--orange);
  color: #000;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.colophon {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  width: min(1440px, calc(100% - 4.5rem));
  margin: 3.5rem auto 0;
  padding: 1rem 0 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.legal-nav { display: flex; gap: 1rem; }

.legal-nav a { color: #ddd; font-weight: 700; text-decoration: none; }

.legal-nav a:hover { color: var(--orange); }

.legal {
  max-width: 42rem;
  padding-top: 1.6rem;
  padding-bottom: 2rem;
  font-family: var(--serif);
}

.legal h1 { font-family: var(--sans); }

.legal h2 {
  margin: 1.8rem 0 0.35rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 800;
}

.legal p { margin: 0.35rem 0 0; color: #ddd; }

.legal a { color: var(--orange); }

.machine { padding-top: 0.2rem; }

.machine .band-head { margin-bottom: 0.15rem; }

.machine .meters { margin-top: 0; }

.game-box {
  margin-top: 2.4rem;
  overflow: hidden;
  border: 1px solid rgba(255, 79, 154, 0.35);
  border-radius: 24px;
  background:
    radial-gradient(ellipse 80% 140% at 100% 0%, rgba(255, 79, 154, 0.24), transparent 58%),
    linear-gradient(165deg, #241820 0%, #141416 48%, #0d0d10 100%);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.4);
}

.game-tools { padding: 0 2.3rem 2rem; }

.board {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.7fr);
  gap: 2rem;
  align-items: end;
  margin-top: 2.2rem;
  padding: 2.2rem 2.3rem 2rem;
  overflow: hidden;
  border: 1px solid rgba(255, 79, 154, 0.35);
  border-radius: 24px;
  background:
    radial-gradient(ellipse 80% 140% at 100% 0%, rgba(255, 79, 154, 0.24), transparent 58%),
    linear-gradient(165deg, #241820 0%, #141416 48%, #0d0d10 100%);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.4);
}

.game-box .board {
  margin-top: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.count {
  margin: 0.2rem 0 0.6rem;
  font-size: clamp(4.8rem, 12vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 0.82;
}

.count span {
  color: #8d8d8d;
  font-size: 0.42em;
  letter-spacing: -0.04em;
}

.board-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}

.state {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  font-weight: 800;
}

.dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: #6b6b6b;
}

.state.online .dot { background: #3dd68c; }
.state.offline .dot { background: #ff5a1f; }
.state.starting .dot,
.state.stopping .dot { background: var(--orange); }

@media (prefers-reduced-motion: no-preference) {
  .state.starting .dot,
  .state.stopping .dot { animation: status-pulse 1.2s ease-in-out infinite; }
}

@keyframes status-pulse {
  50% { opacity: 0.35; }
}

.occupancy {
  grid-column: 1 / -1;
  width: calc(100% + 4.6rem);
  margin: 0.4rem -2.3rem 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.occupancy .kicker { margin: 0 0 0.35rem 2.3rem; }

.occupancy-chart {
  display: block;
  width: 100%;
  height: 11rem;
}

.occupancy-grid { stroke: rgba(255, 255, 255, 0.14); stroke-width: 1; }

.occupancy-label {
  fill: #aaa;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
}

.occupancy-fill { fill: rgba(255, 79, 154, 0.22); }

.occupancy-line {
  fill: none;
  stroke: var(--orange);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.occupancy-dot { fill: var(--orange); }

.occupancy-tick { stroke: rgba(255, 255, 255, 0.28); stroke-width: 1; }

.server-name {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.notes p { max-width: 40rem; color: #ddd; }

.gate {
  max-width: 36rem;
  padding: 3rem 0 2rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 1.3rem 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.field input {
  padding: 0.85rem 0.95rem;
  border: 0;
  border-radius: 8px;
  background: #1b1b1b;
  color: #fff;
  font: inherit;
  font-size: 1.05rem;
}

.form-error { color: #ffb089; font-weight: 700; }

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.who {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.nav-logout { margin: 0; }

.meters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.meters article {
  padding: 1.2rem 1.25rem 1.1rem;
  border-radius: 12px;
  background: var(--panel);
}

.meter {
  margin: 0.35rem 0 0;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.meter-note,
.live-note {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.live-note { margin: 0.7rem 0 0; }

.meter-bar {
  display: block;
  width: 100%;
  height: 8px;
  margin-top: 0.75rem;
}

.bar-bg { fill: #111; }

.bar-fill { fill: var(--orange); }

.spark {
  display: block;
  width: 100%;
  height: 36px;
  margin-top: 0.55rem;
}

.spark-fill { fill: rgba(255, 79, 154, 0.22); }

.spark-line {
  fill: none;
  stroke: var(--orange);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.fold {
  margin-top: 2.4rem;
}

.fold summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
}

.fold summary::-webkit-details-marker { display: none; }

.fold summary::marker { content: ""; }

.fold-title {
  font-size: 1.45rem;
  font-weight: 800;
}

.fold-title::before {
  content: "▸";
  margin-right: 0.55rem;
  color: var(--orange);
}

.fold[open] .fold-title::before { content: "▾"; }

.fold .services { margin-top: 0.4rem; }

.server-log {
  margin: 0.9rem 0 0;
  max-height: 24rem;
  overflow: auto;
  padding: 0.9rem 1rem;
  background: #09090b;
  border: 1px solid var(--line);
  color: #d7d7d7;
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.82rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.services {
  margin: 0;
  padding: 0;
  list-style: none;
}

.services li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.services span { color: var(--muted); }

.account-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.5rem 1rem;
  align-items: end;
  max-width: 52rem;
  margin-top: 1.4rem;
}

.account-form .field { margin: 0; }

.account-form .field input,
.account-form .field select,
.account-form .button {
  height: 52px;
  box-sizing: border-box;
}

.account-form .button { align-self: end; }

.field select,
.field textarea {
  padding: 0.85rem 0.95rem;
  border: 0;
  border-radius: 8px;
  background: #1b1b1b;
  color: #fff;
  font: inherit;
}

.editor fieldset {
  margin: 1.4rem 0 0;
  padding: 0;
  border: 0;
}

.editor legend {
  margin-bottom: 0.6rem;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.edit-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.4rem 1rem;
  align-items: end;
  margin-bottom: 0.8rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}

.editor .field { margin: 0; }

.check {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.saved { margin: 0 0 0.8rem; color: #3dd68c; font-weight: 700; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .ticket, button.frame, .thumb, .thumb img { transition: none; }
  .state.starting .dot, .state.stopping .dot { animation: none; }
}

@media (max-width: 800px) {
  .bar { align-items: flex-start; flex-direction: column; gap: 0.85rem; min-height: 0; padding-bottom: 1.6rem; }
  .session { margin-left: 0; align-self: flex-end; }
  .player, .catalog li { display: flex; flex-direction: column; }
  .byline { align-items: flex-start; text-align: left; }
  main, .colophon { width: min(1440px, calc(100% - 2rem)); }
  .board { grid-template-columns: 1fr; padding: 1.4rem; }
  .game-tools { padding: 0 1.4rem 1.4rem; }
  .occupancy { width: calc(100% + 2.8rem); margin-left: -1.4rem; margin-right: -1.4rem; }
  .occupancy .kicker { margin-left: 1.4rem; }
}
