:root {
  --bg: #141414;
  --bg-elev: #1c1c1c;
  --bg-sunken: #0d0d0d;
  --fg: #d4cfcf;
  --fg-dim: #8f8f8f;
  --fg-faint: #7d7d7d;
  --accent: #70e67e;
  --alert: #fc3d3d;
  --button: #454eb5;
  --button-hover: #0582f7;
  --line: #262626;

  --font-ui: Quicksand, 'Trebuchet MS', 'Segoe UI', system-ui, sans-serif;
  --font-link: 'Josefin Sans', Quicksand, system-ui, sans-serif;
  --font-note: Poppins, Quicksand, system-ui, sans-serif;

  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
}

body {
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  min-height: 100vh;
  padding: 0 0 72px;
  display: flex;
  flex-direction: column;
  overflow-wrap: anywhere;
}

body.locked { overflow: hidden; }

body::before {
  content: "";
  position: fixed;
  inset: -20% 0 auto;
  height: 420px;
  background:
    radial-gradient(60% 100% at 18% 0%, rgba(112, 230, 126, 0.10), transparent 70%),
    radial-gradient(50% 100% at 88% 6%, rgba(69, 78, 181, 0.14), transparent 72%);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--fg); font-family: var(--font-link); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 60;
  background: var(--accent);
  color: #0b0b0b;
  padding: 10px 16px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
}

.skip:focus { left: 12px; }

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

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 18px 24px 0;
  background: rgba(20, 20, 20, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.top-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px 28px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.brand-name {
  margin: 0;
  color: var(--accent);
  font-size: clamp(23px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: 0.4px;
  line-height: 1;
}

#count {
  color: var(--fg-faint);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.search-wrap {
  position: relative;
  flex: 1 1 280px;
  max-width: 460px;
  margin-left: auto;
}

#search {
  width: 100%;
  padding: 11px 46px 11px 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-sunken);
  color: var(--fg);
  font: inherit;
  font-size: 15px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

#search:focus {
  border-color: var(--accent);
  background: #111;
  box-shadow: 0 0 0 3px rgba(112, 230, 126, 0.14);
}

#search::placeholder { color: #7d7d7d; }

#search::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }

.search-wrap .icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  stroke: #8f8f8f;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  pointer-events: none;
}

.search-key {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: grid;
  place-content: center;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #1a1a1a;
  color: var(--fg-faint);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.search-key:hover { color: var(--fg); border-color: #3a3a3a; }

.status-row { max-width: 1440px; margin: 12px auto 0; }

#status {
  margin: 0;
  display: none;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 6px 13px 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--fg-dim);
  font-family: var(--font-note);
  font-size: 13px;
  font-weight: 500;
}

#status.on { display: flex; }

#status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: 0 0 auto;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(112, 230, 126, 0.45); }
  50% { opacity: 0.65; box-shadow: 0 0 0 5px rgba(112, 230, 126, 0); }
}

.chips {
  max-width: 1440px;
  margin: 14px auto 0;
  display: flex;
  gap: 8px;
  padding-bottom: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
}

.chips::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--fg-dim);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.chip:hover { color: var(--fg); border-color: #3a3a3a; }

.chip[aria-pressed="true"] {
  background: rgba(112, 230, 126, 0.12);
  border-color: rgba(112, 230, 126, 0.45);
  color: var(--accent);
}

.tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  margin-left: auto;
}

.sort-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-label {
  color: var(--fg-faint);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sort-field::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 2px solid var(--fg-faint);
  border-bottom: 2px solid var(--fg-faint);
  transform: translateY(-75%) rotate(45deg);
  pointer-events: none;
}

.sort-select {
  appearance: none;
  -webkit-appearance: none;
  color-scheme: dark;
  padding: 9px 32px 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-sunken);
  color: var(--fg);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sort-select:hover { border-color: #3a3a3a; }

.sort-select:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(112, 230, 126, 0.14);
}

.switch-server {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--fg-dim);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.switch-server:hover,
.switch-server:focus-visible {
  color: var(--fg);
  border-color: var(--accent);
  background: rgba(112, 230, 126, 0.08);
}

.switch-server b { color: var(--accent); font-weight: 700; }

.switch-server .sq-dot { flex: 0 0 auto; }

main {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 24px 0;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
  gap: 18px;
}

.cell {
  position: relative;
  display: flex;
}

.cell > .card { flex: 1 1 auto; min-width: 0; }

.pin {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 2;
  width: 30px;
  height: 30px;
  padding: 0;
  display: grid;
  place-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.66);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: var(--fg-faint);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.18s ease;
}

.pin svg {
  width: 15px;
  height: 15px;
  display: block;
  fill: currentColor;
}

.cell:hover .pin,
.pin:focus-visible { opacity: 1; }

.pin:hover { color: var(--fg); border-color: #3a3a3a; }

.pin[aria-pressed="true"] {
  opacity: 1;
  color: var(--accent);
  border-color: rgba(112, 230, 126, 0.45);
  background: rgba(10, 10, 10, 0.82);
}

.pin[aria-pressed="true"]:hover { color: var(--accent); border-color: var(--accent); }

.cell:hover .pin { transform: translateY(-4px); }

.section-head {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.rest-head { margin-top: 28px; }

.section-head[hidden],
.section[hidden] { display: none; }

.card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--fg);
  font-family: var(--font-ui);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.cell:hover .card,
.card:focus-visible {
  outline: none;
  transform: translateY(-4px);
  border-color: rgba(112, 230, 126, 0.55);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(112, 230, 126, 0.2);
}

.card:focus-visible { box-shadow: 0 0 0 3px rgba(112, 230, 126, 0.35); }

.card .thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg-sunken);
  overflow: hidden;
}

.card .thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.3s ease;
}

.card .thumb img.ready { opacity: 1; }

.card .thumb img.fit {
  object-fit: contain;
  padding: 13px;
}

.card .thumb.has-art .tile b { display: none; }

.cell:hover .thumb img { transform: scale(1.06); }

.card .thumb::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(to top, rgba(12, 12, 12, 0.55), transparent);
  pointer-events: none;
}

.play {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  background: rgba(10, 10, 10, 0.42);
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}

.cell:hover .play,
.card:focus-visible .play { opacity: 1; }

.play span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: #0d0d0d;
  display: grid;
  place-content: center;
  font-size: 15px;
  padding-left: 3px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.card .tile {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
}

.card .tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.16), transparent 55%),
    radial-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px);
  background-size: 100% 100%, 11px 11px;
}

.card .tile b {
  position: relative;
  font-family: var(--font-link);
  font-size: 33px;
  font-weight: 600;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.card .name {
  padding: 11px 12px 13px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(2 * 1.35em + 24px);
}

.skeleton {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  position: relative;
  overflow: hidden;
  font-size: 14px;
  padding-bottom: calc(2 * 1.35em + 24px);
}

.skeleton::before {
  content: "";
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--bg-sunken);
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.045) 50%, transparent 80%);
  animation: sweep 1.3s linear infinite;
}

@keyframes sweep {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

.note {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--fg-dim);
  font-size: 16px;
  padding: 60px 0;
}

.note b { display: block; color: var(--fg); font-size: 18px; margin-bottom: 6px; }

.note button {
  margin-top: 14px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
  color: var(--accent);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.note button:hover { border-color: var(--accent); }

.panel {
  grid-column: 1 / -1;
  width: min(100%, 440px);
  margin: 4px auto 0;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  border-radius: 16px;
  padding: 26px 22px;
  text-align: center;
}

.panel-aside {
  width: min(100%, 560px);
  margin: 0 auto 20px;
  padding: 18px 20px;
}

.panel h2 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 700;
  color: var(--fg);
}

.panel-aside h2 { font-size: 16px; }
.panel-aside p { font-size: 14px; }

.panel p {
  margin: 0 auto;
  max-width: 46ch;
  color: var(--fg-dim);
  font-family: var(--font-note);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.55;
}

.panel .go {
  display: inline-block;
  margin-top: 18px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--button);
  color: #fff;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

.panel .go:hover { background: var(--button-hover); }

.panel .seat {
  display: flex;
  justify-content: center;
  margin-top: 18px;
  min-height: 78px;
}

.panel .seat > div {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line);
}

.panel .said {
  margin: 14px auto 0;
  max-width: 46ch;
  color: var(--fg-dim);
  font-family: var(--font-note);
  font-weight: 300;
  font-size: 13px;
  line-height: 1.5;
  min-height: 1.3em;
}

.panel .said.bad { color: var(--alert); }

.notice {
  border: 1px solid rgba(252, 61, 61, 0.4);
  background: rgba(252, 61, 61, 0.09);
  border-radius: 12px;
  padding: 12px 15px;
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.45;
}

.notice button {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  background: none;
  border: 0;
  padding: 0 0 0 6px;
  text-decoration: underline;
  cursor: pointer;
}

.actions {
  display: flex;
  justify-content: center;
  margin-top: auto;
  padding-top: 44px;
}

#comment-btn {
  background: var(--button);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 11px 22px;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

#comment-btn:hover {
  background: var(--button-hover);
  box-shadow: 0 15px 24px rgba(66, 135, 245, 0.14);
}

.about {
  width: min(760px, 100%);
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.about h2 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.about p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--fg-faint);
}

footer {
  margin-top: 22px;
  text-align: center;
  font-size: 12px;
  color: var(--fg-faint);
}

footer a { color: var(--fg-faint); }
footer a:hover { color: var(--fg); }

.nodes {
  margin: 10px 0 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  font-size: 11px;
}

.node {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--fg-faint);
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 120ms ease, border-color 120ms ease, opacity 120ms ease;
}

.node.up { color: var(--fg); border-color: var(--accent); }
.node.down { opacity: 0.35; text-decoration: line-through; }

.node.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #0b0b0b;
  font-weight: 700;
}

dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0c0c0c;
  color: var(--fg);
  padding: 24px;
  width: min(520px, calc(100vw - 40px));
  font-family: inherit;
}

dialog::backdrop { background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(2px); }

dialog h2 { margin: 0 0 14px; font-size: 20px; color: var(--accent); }

dialog textarea {
  width: 100%;
  min-height: 112px;
  resize: vertical;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #000;
  color: var(--fg);
  font: inherit;
  font-size: 15px;
  outline: none;
}

dialog textarea:focus { border-color: var(--accent); }

.dialog-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 14px;
}

.dialog-actions button {
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  border-radius: 10px;
  padding: 9px 16px;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
}

.dialog-actions button[value="send"] {
  background: var(--button);
  border-color: var(--button);
  color: #fff;
}

#comment-check { margin-top: 14px; display: flex; justify-content: center; }
#comment-check:empty { display: none; }

#comment-note {
  margin: 12px 0 0;
  font-family: var(--font-note);
  font-weight: 300;
  font-size: 13px;
  color: var(--fg-dim);
  min-height: 1.3em;
}

.sq-recaptcha-note {
  margin: 10px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--fg-faint);
}

.sq-recaptcha-note a { color: var(--fg-dim); font-family: inherit; }

.grecaptcha-badge { visibility: hidden; }

.wall {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.wall-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.wall-head h3 {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.wall-retry {
  font: inherit;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg-dim);
  cursor: pointer;
}

.wall-retry:hover { border-color: var(--accent); color: var(--fg); }
.wall-retry[hidden] { display: none; }

.wall-state {
  margin: 0;
  font-size: 13px;
  color: var(--fg-faint);
}

.wall-state:empty { display: none; }

.wall-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 252px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.wall-list:empty { display: none; }

.wall-item {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
}

.wall-body {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.wall-when {
  display: block;
  font-size: 11px;
  color: var(--fg-faint);
  letter-spacing: 0.03em;
}

.wall-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
}

.wall-foot .wall-when { margin-right: auto; }

.wall-act {
  font: inherit;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: none;
  color: var(--fg-faint);
  cursor: pointer;
}

.wall-act:hover:not(:disabled) { border-color: var(--line); color: var(--fg); }
.wall-act:disabled { cursor: default; opacity: 0.6; }
.wall-act.danger:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.wall-item.gone { opacity: 0.45; }

.squishes-toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 2147483646;
  transform: translate(-50%, 12px);
  max-width: min(420px, calc(100vw - 32px));
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  color: var(--fg);
  font-family: var(--font-note);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  opacity: 0;
  transition: opacity 400ms ease, transform 400ms ease;
}

.squishes-toast.is-in {
  opacity: 1;
  transform: translate(-50%, 0);
}

.squishes-flash {
  bottom: 72px;
  font-family: var(--font-ui);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.squishes-toast kbd {
  font-family: var(--font-ui);
  font-weight: 700;
  color: var(--accent);
  background: none;
  border: 0;
  padding: 0;
}

.sq-server-btn {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 2147483640;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.86);
  backdrop-filter: blur(8px);
  color: var(--fg-dim);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.02em;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 160ms ease, color 160ms ease, border-color 160ms ease;
}

.sq-server-btn:hover,
.sq-server-btn:focus-visible {
  opacity: 1;
  color: var(--fg);
  border-color: var(--fg-faint);
}

.sq-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px rgba(112, 230, 126, 0.6);
}

.sq-panel {
  position: fixed;
  inset: 0;
  z-index: 2147483645;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(3px);
}

.sq-panel-card {
  width: min(440px, 100%);
  max-height: min(560px, calc(100vh - 40px));
  overflow-y: auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-elev);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.sq-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sq-panel-head h2 {
  margin: 0;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 19px;
  color: var(--fg);
}

.sq-panel-shut {
  border: 0;
  background: none;
  color: var(--fg-faint);
  font-size: 24px;
  line-height: 1;
  padding: 0 4px;
  cursor: pointer;
}

.sq-panel-shut:hover { color: var(--fg); }

.sq-panel-blurb {
  margin: 8px 0 16px;
  font-family: var(--font-note);
  font-weight: 300;
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg-dim);
}

.sq-server-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sq-server {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-sunken);
}

.sq-server.is-current { border-color: var(--accent); }
.sq-server.is-down { opacity: 0.5; }

.sq-server-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.sq-server-name b {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sq-server-name span {
  font-family: var(--font-note);
  font-weight: 300;
  font-size: 12px;
  color: var(--fg-faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sq-server-state {
  font-family: var(--font-note);
  font-weight: 300;
  font-size: 12px;
  color: var(--fg-dim);
  white-space: nowrap;
}

.sq-server.is-up .sq-server-state { color: var(--accent); }
.sq-server.is-down .sq-server-state { color: var(--alert); }

.sq-server-go {
  flex: none;
  padding: 7px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--button);
  color: #fff;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: background 160ms ease;
}

.sq-server-go:hover:not(:disabled) { background: var(--button-hover); }

.sq-server-go:disabled {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--fg-faint);
  cursor: default;
}

.stage {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  flex-direction: column;
  background: var(--bg);
}

.stage.open { display: flex; }
.stage[hidden] { display: none; }
.stage.hidecursor, .stage.hidecursor * { cursor: none; }

.stagebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  padding-left: max(12px, env(safe-area-inset-left));
  padding-right: max(12px, env(safe-area-inset-right));
  border-bottom: 1px solid var(--line);
  background: var(--bg-elev);
  flex: 0 0 auto;
}

.stagename {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.act {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  background: var(--bg-sunken);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  min-height: 38px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.act:hover { border-color: #3a3a3a; }

.act.primary {
  color: #0b0b0b;
  background: var(--accent);
  border-color: var(--accent);
}

.framewrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  background: #000;
}

.framewrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.legend {
  position: absolute;
  left: 14px;
  bottom: 14px;
  max-width: min(300px, calc(100% - 28px));
  background: rgba(20, 20, 20, 0.96);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 15px;
  font-size: 13px;
  line-height: 1.9;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.legend[hidden] { display: none; }
.legend ul { margin: 0; padding: 0; list-style: none; }

.legend li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--fg-dim);
}

kbd {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  color: var(--fg);
  background: var(--bg-sunken);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 7px;
  padding: 1px 8px;
  min-width: 26px;
  text-align: center;
}

.legend .act {
  margin-top: 10px;
  width: 100%;
  font-size: 12px;
  min-height: 34px;
  padding: 6px 10px;
}

.squishes-fs:-webkit-full-screen {
  position: fixed !important;
  inset: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: #000;
}

.squishes-fs:fullscreen {
  position: fixed !important;
  inset: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: #000;
}

@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 15px; }
}

@media (max-width: 620px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(144px, 1fr)); gap: 13px; }
  .top { padding: 14px 16px 0; }
  main { padding: 18px 16px 0; }
  .search-wrap { margin-left: 0; max-width: none; }
  .card .name { font-size: 13px; padding: 9px 10px 11px; }
  .chips { margin-top: 12px; padding-bottom: 12px; }
  .search-key { display: none; }
  .tools { margin-left: 0; width: 100%; justify-content: space-between; }
  .switch-server { font-size: 12px; padding: 7px 12px; }
  .sort-label { display: none; }
  .legend { left: 10px; right: 10px; bottom: 10px; max-width: none; }
  .stagebar { gap: 6px; padding: 8px 10px; }
  .act { padding: 8px 10px; font-size: 12px; }
  .sq-server-btn { font-size: 11px; padding: 6px 11px; }
  .sq-panel-card { padding: 16px; }
}

@media (max-width: 480px) {
  .squishes-toast {
    white-space: normal;
    border-radius: 16px;
    text-overflow: clip;
  }
}

@media (hover: none) {
  .pin { opacity: 0.9; }
}

@media (prefers-reduced-motion: reduce) {
  .card, .card .thumb img, .play, .pin { transition: none; }
  .cell:hover .card { transform: none; }
  .cell:hover .thumb img { transform: none; }
  .cell:hover .pin { transform: none; }
  .skeleton::after, #status::before { animation: none; }
  .squishes-toast { transition: opacity 400ms ease; transform: translate(-50%, 0); }
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--fg-faint);
}

.crumbs li { display: flex; align-items: center; gap: 6px; }

.crumbs li + li::before { content: '/'; color: var(--line); }

.crumbs a { color: var(--fg-dim); text-decoration: none; }

.crumbs a:hover { color: var(--accent); }

.crumbs [aria-current="page"] { color: var(--fg); }

.lede {
  max-width: 70ch;
  margin: 0 0 22px;
  color: var(--fg-dim);
  font-size: 15px;
  line-height: 1.65;
}

.genres {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.genres a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-elev);
  color: var(--fg);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  text-transform: capitalize;
  transition: border-color 160ms ease, transform 160ms ease;
}

.genres a:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.genres b {
  font-weight: 500;
  font-size: 12px;
  color: var(--fg-faint);
}

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px;
  margin: 0 0 26px;
}

.hero-art {
  flex: 0 0 auto;
  width: 132px;
  height: 132px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-sunken);
  object-fit: cover;
}

.hero-body { flex: 1 1 320px; min-width: 0; }

.hero-body h1 {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.page-title,
.hub-title {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  line-height: 1.15;
}

.hub-title { text-transform: capitalize; }

.hero-body p {
  margin: 0 0 16px;
  max-width: 62ch;
  color: var(--fg-dim);
  font-size: 15px;
  line-height: 1.6;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.hero-tags a {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--fg-dim);
  text-decoration: none;
  text-transform: capitalize;
}

.hero-tags a:hover { color: var(--fg); border-color: #3a3a3a; }

.big-play {
  display: inline-block;
  padding: 11px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--button);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 160ms ease;
}

.big-play:hover { background: var(--button-hover); }

.prose {
  max-width: 70ch;
  margin: 0 0 28px;
  color: var(--fg-dim);
  font-size: 15px;
  line-height: 1.7;
}

.prose h1 {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: clamp(23px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.15;
}

.prose h2 {
  margin: 26px 0 10px;
  color: var(--fg);
  font-size: 18px;
}

.prose p { margin: 0 0 12px; }

.prose ul { margin: 0 0 12px; padding-left: 1.2rem; }

.prose li { margin: 0 0 6px; }

.prose code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--fg);
}

@media (max-width: 560px) {
  .hero-art { width: 92px; height: 92px; }
  .hero-body h1 { font-size: 23px; }
}
