:root {
  --bg: #0c0a0b;
  --panel: rgba(255, 255, 255, 0.035);
  --ink: #f0eaea;
  --muted: #b3a6a8;
  --dim: #8a7c7e;
  --line: rgba(255, 255, 255, 0.08);
  --hot: #8f3036;
  --hot-2: #c9c9c9;
  --deep: #2a2a2a;
  --display: "Syne", "Segoe UI", sans-serif;
  --sans: "Manrope", "Segoe UI", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 42% at 50% -8%, rgba(122, 24, 36, 0.55), transparent 58%),
    radial-gradient(ellipse 50% 40% at 100% 110%, rgba(72, 12, 20, 0.4), transparent 55%),
    #0c0a0b;
}

body::before,
body::after { content: none; }

h1, h2, h3, p { margin: 0; }

button, input, textarea, select { font: inherit; color: inherit; }

button { cursor: pointer; }

a { color: #d0d0d0; }

::selection { background: #333; color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 99px; }
::-webkit-scrollbar-track { background: #141414; }

#blood,
.spine { display: none; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.mast { position: relative; z-index: 10; padding-top: 18px; text-align: center; }

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: inherit;
  text-decoration: none;
}

.brand-row { display: inline-flex; align-items: center; gap: 10px; }
.brand-logo { display: block; height: 18px; width: auto; opacity: 0.9; }

.mark {
  width: 22px;
  height: 28px;
  border-radius: 50% 50% 46% 46%;
  background: radial-gradient(circle at 50% 28%, #ff7380, #e1061c 46%, #4a0610 80%);
  position: relative;
  box-shadow: 0 10px 18px rgba(180, 0, 24, 0.35);
}

.mark i {
  position: absolute;
  left: 50%;
  top: 76%;
  width: 3px;
  margin-left: -1.5px;
  height: 10px;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(#ff2a3c, #7a0c16);
  transform-origin: top center;
  animation: drip 2.6s ease-in infinite;
}

.word {
  position: relative;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.04em;
  line-height: 1;
  color: #d8d8d8;
}

.word em {
  position: absolute;
  left: calc(100% + 6px);
  top: -14px;
  font-style: normal;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: #c81022;
  color: #fff;
  padding: 3px 6px 2px;
  border-radius: 4px;
  transform: rotate(8deg);
}

.tag {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.navrow {
  width: min(1120px, calc(100% - 28px));
  margin: 16px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
}

.nav { display: flex; align-items: center; gap: 22px; }

.nav a, .nav-btn {
  position: relative;
  color: #9a9a9a;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  background: none;
  border: 0;
  padding: 0;
}

.nav a::after, .nav-btn::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  background: #555;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.nav a:hover::after, .nav a.is-on::after, .nav-btn:hover::after, .nav-btn.is-on::after { transform: scaleX(1); }

.nav a.is-on, .nav-btn.is-on, .nav a:hover, .nav-btn:hover { color: var(--ink); }

.drop { position: relative; }

.menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 168px;
  padding: 8px;
  background: rgba(16, 12, 13, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 12px;
  flex-direction: column;
  gap: 2px;
  z-index: 12;
}

.menu a { padding: 8px 10px; border-radius: 8px; }
.menu a::after { display: none; }
.menu a:hover { background: rgba(255, 255, 255, 0.04); }

.drop.open .menu, .drop:hover .menu, .drop:focus-within .menu { display: flex; }

.tools { display: flex; align-items: center; gap: 8px; }
#session-slot { display: flex; align-items: center; gap: 8px; }

.search { position: relative; }

.search input {
  width: 168px;
  background: rgba(14, 10, 11, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 8px 12px 8px 30px;
  backdrop-filter: blur(12px);
}

.search::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 8px;
  height: 8px;
  border: 1.5px solid #b7a3a5;
  border-radius: 50%;
  transform: translateY(-80%);
  pointer-events: none;
}

.search::after {
  content: "";
  position: absolute;
  left: 20px;
  top: 58%;
  width: 6px;
  height: 1.5px;
  background: #b7a3a5;
  transform: rotate(45deg);
  pointer-events: none;
}

.seam {
  height: 1px;
  margin-top: 12px;
  background: var(--line);
}

.nav-toggle { display: none; }

.shell {
  width: min(1120px, calc(100% - 28px));
  margin: 18px auto 0;
  position: relative;
  z-index: 1;
  padding: 16px 16px 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(14, 10, 11, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(22px) saturate(1.05);
  -webkit-backdrop-filter: blur(22px) saturate(1.05);
}

.notices {
  display: grid;
  gap: 8px;
  margin: 0 0 10px;
}

.ticker {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--dim);
  font-weight: 500;
  font-size: 13px;
  text-decoration: none;
}

.ticker:hover { color: var(--muted); }

.booting { color: var(--muted); padding: 24px 0; }

.builds-wrap { margin-bottom: 16px; }

.builds-wrap > h2, .board-head h2, .card h2, .content-title h1, .page-title h1 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.builds-wrap > h2 {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hot-2);
  margin-bottom: 8px;
}

.builds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.build {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 112px;
  padding: 14px 14px 12px;
  text-decoration: none;
  color: inherit;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.build:hover { border-color: #333; background: #1c1c1c; }

.build .kicker { color: var(--muted); font-size: 13px; letter-spacing: 0.02em; line-height: 1.25; }

.build .ver { font-family: var(--display); font-size: 30px; line-height: 1; font-weight: 800; }

.build .state { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--hot-2); }

.build.is-quiet .state { color: #e0b48a; }
.build.is-down .state { color: var(--dim); }

.build .note { color: var(--muted); font-size: 13px; }

.meter { display: block; height: 2px; margin-top: 8px; background: rgba(255, 255, 255, 0.08); }
.meter i { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, #6d0a14, var(--hot)); }

.build.is-live::before {
  content: "";
  position: absolute;
  top: 0;
  left: 26px;
  width: 2px;
  height: 12px;
  background: linear-gradient(#ff7380, #7a0c16);
  border-radius: 0 0 6px 6px;
  transform-origin: top;
  animation: drip 2.8s ease-in infinite;
}

.hall-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 272px;
  gap: 16px;
  align-items: start;
}

.content-title, .page-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.content-title h1, .page-title h1 { font-size: 22px; font-weight: 600; }
.content-title p, .page-title p { color: var(--muted); margin-top: 4px; }
.title-actions { display: flex; gap: 8px; flex: none; }

.shoutbox, .board, .card, .post, .member {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.shoutbox { overflow: hidden; }

.nodes { display: grid; }

.node {
  display: grid;
  grid-template-columns: 18px minmax(0, 1.3fr) 108px minmax(120px, 0.8fr);
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.link-board .node, .nodes .node:first-child { border-top: 0; }
.node:hover { background: #1c1c1c; }

.node-mark {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #5c5c5c;
}

.node-main { display: grid; gap: 3px; min-width: 0; }
.node-main strong { font-size: 16px; }
.node-main em { color: var(--muted); font-style: normal; font-size: 13px; }

.node-stats { color: var(--dim); font-size: 12px; }
.node-stats b { color: var(--ink); font-weight: 650; }
.node-stats span { display: block; margin-top: 3px; }

.node-extra {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--dim);
  font-size: 12px;
}
.node-extra strong,
.node-extra em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
}
.node-extra strong { color: var(--ink); }

.card h2 a { color: inherit; text-decoration: none; }
.card h2 a:hover { color: var(--ink); }

.shout-head, .board-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.shout-head h2, .board-head h2 { font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.shout-head .count, .board-head span { margin-left: auto; color: var(--dim); font-size: 12px; }

.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #5c5c5c;
  flex: 0 0 auto;
}

.shout-log { max-height: 290px; overflow: auto; padding: 6px 12px 10px; }

.shout {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 6px 0;
}

.shout p { flex: 1; min-width: 0; line-height: 1.4; }
.shout time { color: var(--dim); font-size: 11px; white-space: nowrap; }
.name { font-weight: 700; margin-right: 6px; }

.role-keeper { color: var(--ink); }
.role-member { color: #f0d2d4; }
.role-fresh { color: #e0b48a; }

.avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex: 0 0 auto;
}

.avatar.lg { width: 36px; height: 36px; font-size: 15px; }

.shout-form, .reply-form, .ticket-form {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid var(--line);
  background: transparent;
}

.shout-form input { flex: 1; min-width: 0; border-radius: 999px; }
.who-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.who-chip:hover, .user-drop.open .who-chip { background: rgba(255, 255, 255, 0.05); }
img.avatar { object-fit: cover; }

.board { margin-top: 14px; overflow: hidden; }

.thread-row {
  display: block;
  padding: 12px 14px;
  text-decoration: none;
  color: inherit;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.board-head + .thread-row { border-top: 0; }
.thread-row:hover { background: rgba(255, 255, 255, 0.03); }
.thread-row strong { display: block; font-weight: 600; }
.thread-row:hover strong { color: var(--ink); }
.meta { color: var(--muted); font-size: 12px; margin-top: 4px; }
.pin {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #6d0a14;
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: 2px;
}

.query-note, .empty { color: var(--muted); padding: 8px 2px; }

.col-side { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 14px; }

.card { padding: 14px; }
.card h2 { font-size: 15px; margin-bottom: 10px; }
.card p { color: var(--muted); }
.side-actions { display: flex; gap: 8px; }
.side-actions .btn-hot, .side-actions .btn-ghost { flex: 1; }

.online { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.online li { display: flex; align-items: center; gap: 8px; }
.total { margin-top: 10px; color: var(--dim); font-size: 12px; }

.stats { margin: 0; display: grid; gap: 8px; }
.stats div { display: flex; justify-content: space-between; gap: 12px; }
.stats dt { color: var(--muted); }
.stats dd { margin: 0; font-weight: 700; }
.stats dd.hot { color: var(--hot-2); }

.codes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}
.code-row code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  color: #bdbdbd;
  word-break: break-all;
}
.code-row .open { color: var(--hot-2); font-size: 12px; white-space: nowrap; }
.code-row .burned { color: var(--dim); font-size: 12px; white-space: nowrap; }

.page-title { margin-bottom: 12px; }

.crumb { color: var(--dim); font-size: 12px; margin-bottom: 8px; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--hot-2); }

.post { padding: 14px; margin-top: 10px; }
.post header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.post header em { color: var(--dim); font-style: normal; font-size: 12px; }
.post header time { margin-left: auto; color: var(--dim); font-size: 12px; }
.post .body { white-space: pre-wrap; line-height: 1.55; }
.post.is-me { box-shadow: inset 2px 0 0 #444; }

.reply-form, .ticket-form { display: grid; margin-top: 12px; border: 1px solid var(--line); border-radius: 4px; }
.reply-form textarea, .ticket-form textarea { min-height: 90px; resize: vertical; }
.reply-form .btn-hot, .ticket-form .btn-hot { justify-self: start; }

.roster { display: grid; gap: 8px; }
.member {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
}
.member em { display: block; color: var(--dim); font-style: normal; font-size: 12px; }
.presence.on { color: var(--hot-2); font-size: 12px; }
.presence.off { color: var(--dim); font-size: 12px; }

.prose p + p { margin-top: 10px; }
.rules { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.rules li::marker { color: var(--hot); }

.ticket {
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.ticket:first-child { border-top: 0; }
.ticket h3 { font-size: 15px; font-weight: 700; }
.ticket .body { white-space: pre-wrap; margin-top: 6px; }
.badge {
  display: inline-block;
  margin-left: 8px;
  color: var(--hot-2);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.locked {
  padding: 16px;
  border: 1px dashed rgba(196, 32, 48, 0.55);
  border-radius: 4px;
  color: var(--muted);
}
.locked .btn-hot { margin-top: 10px; }

.btn-hot, .btn-ghost, .btn-text {
  border-radius: 999px;
  padding: 8px 14px;
  border: 1px solid transparent;
}

.btn-hot {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.16);
  font-weight: 600;
}

.btn-hot:hover { background: #2a2a2a; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(196, 32, 48, 0.55);
}

.btn-ghost:hover { border-color: #444; color: var(--ink); }

.btn-text {
  background: none;
  border: 0;
  color: var(--muted);
  padding-left: 0;
  padding-right: 0;
}
.btn-text:hover { color: var(--hot-2); }

button:focus-visible, a:focus-visible { outline: 2px solid var(--hot); outline-offset: 2px; }

input, textarea, select {
  width: 100%;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}

textarea { border-radius: 12px; }

input:focus, textarea:focus, select:focus {
  border-color: #444;
  outline: none;
}

::placeholder { color: #6e5558; }

label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; }

dialog {
  width: min(460px, calc(100% - 24px));
  max-height: min(92vh, 820px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(16, 12, 13, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

dialog::backdrop { background: rgba(0, 0, 0, 0.72); }

dialog[open] { animation: dlg 0.22s ease; }

.dlg-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.dlg-head h2 { font-family: var(--display); font-size: 26px; }

.dlg-body { padding: 16px 18px 18px; display: grid; gap: 10px; }

.icon-x {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  padding: 0 4px;
}

.hint { color: var(--muted); font-size: 13px; }
.form-error { min-height: 1.1em; color: var(--hot-2); font-size: 13px; }
.form-error:empty { display: none; }

.slip { padding: 0 18px 18px; }
.slip h3 { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hot-2); }
.slip p { color: var(--dim); font-size: 12px; margin: 4px 0 8px; }
.slip ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.slip li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.slip code { font-family: Consolas, "Courier New", monospace; color: #bdbdbd; }
.slip .dead { color: var(--dim); text-decoration: line-through; }
.slip .open { color: var(--hot-2); font-size: 12px; }
.slip .burned { color: var(--dim); font-size: 12px; }

.own-code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 20px;
  color: #bdbdbd;
  letter-spacing: 0.04em;
}

#toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 30;
  transform: translateX(-50%) translateY(12px);
  opacity: 0;
  pointer-events: none;
  padding: 10px 14px;
  border-radius: 999px;
  background: #1c1c1c;
  border: 1px solid var(--line);
  color: #fff;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.foot {
  margin: 22px 0 28px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.08em;
}

@keyframes drip {
  0% { transform: scaleY(0.25); opacity: 0; }
  18% { opacity: 1; }
  72% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1.35) translateY(3px); opacity: 0; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

@keyframes dlg {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1200px) {
  .spine { display: none; }
}

@media (max-width: 860px) {
  .hall-grid { grid-template-columns: 1fr; }
  .col-side { position: static; }
  .builds { grid-template-columns: 1fr; }
  .node { grid-template-columns: 18px minmax(0, 1fr); }
  .node-stats, .node-extra { grid-column: 2; }
}

@media (max-width: 720px) {
  .word { font-size: 22px; }
  .word em { top: -16px; left: calc(100% + 4px); }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 108px;
    left: 14px;
    right: 14px;
    padding: 12px;
    background: #1a1a1a;
    border: 1px solid var(--line);
    border-radius: 14px;
    flex-direction: column;
    align-items: flex-start;
    z-index: 15;
  }
  .nav.open { display: flex; }
  .menu { position: static; border: 0; padding: 4px 0 4px 10px; background: transparent; min-width: 0; }
  .search input { width: 108px; }
  .tools { margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
  .btn-hot, .btn-ghost { padding: 7px 10px; }
  .content-title h1, .page-title h1 { font-size: 26px; }
  .shout time { display: none; }
}

body.is-gate .navrow,
body.is-gate .seam,
body.is-gate .spine,
body.is-gate #hall-shell { display: none; }

body:not(.is-gate) .guest-bar,
body:not(.is-gate) #gate { display: none; }

.guest-bar {
  display: flex;
  align-items: center;
  gap: 22px;
  width: 100%;
  margin-top: 14px;
  padding: 0 28px;
  height: 40px;
  background: transparent;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.guest-bar a {
  color: #cbb8ba;
  font-size: 14px;
  text-decoration: none;
}

.guest-bar a:hover,
.guest-bar a.is-on { color: #fff; }

.guest-gap { flex: 1; }

#gate {
  width: min(920px, calc(100% - 32px));
  margin: 22px auto 48px;
  position: relative;
  z-index: 5;
  padding: 18px 18px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(14, 10, 11, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(22px) saturate(1.05);
  -webkit-backdrop-filter: blur(22px) saturate(1.05);
}

.gate-notice {
  margin: 0 0 18px;
  color: var(--dim);
  font-size: 13px;
}

#gate h1 {
  margin: 0 0 12px;
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 650;
  letter-spacing: 0;
}

.gate-lead { color: var(--muted); margin: 0 0 14px; }

.gate-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 12px 14px;
  background: #f8d7dc;
  color: #3d1218;
  border-radius: 3px;
  font-size: 15px;
}

.gate-x {
  width: 22px;
  height: 22px;
  border: 2px solid #e23b4a;
  border-radius: 50%;
  position: relative;
  flex: none;
}

.gate-x::before,
.gate-x::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 3px;
  width: 2px;
  height: 12px;
  background: #e23b4a;
}

.gate-x::before { transform: rotate(45deg); }
.gate-x::after { transform: rotate(-45deg); }

.gate-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.gate-row {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 16px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #b7a8aa;
  font-size: 14px;
}

.gate-card .gate-row:first-child { border-top: 0; }

.gate-row label,
.gate-row > span { padding-top: 8px; }

.gate-row input[type="text"],
.gate-row input[type="password"],
.gate-row input:not([type="checkbox"]) {
  width: 100%;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid #3a3336;
  color: var(--ink);
  border-radius: 2px;
  padding: 8px 10px;
  font: inherit;
}

.pass-line { display: flex; align-items: center; gap: 8px; }
.pass-line input { flex: 1; }

.show-pass, .stay {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  justify-self: start;
  width: auto;
  gap: 6px;
  padding-top: 0;
  color: #d5c6c8;
  font-size: 14px;
}

.gate-forgot {
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: #d7c4c6;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}

.gate-forgot-note { margin: 6px 0 0; color: var(--muted); font-size: 13px; }

.gate-submit { align-items: center; }
.gate-submit span { padding: 0; }

.gate-login-btn {
  justify-self: start;
  width: auto;
  background: rgba(255, 255, 255, 0.06);
  color: #eee;
  border: 1px solid #3a3336;
  border-radius: 3px;
  padding: 6px 12px;
  font: inherit;
  cursor: pointer;
}

.gate-login-btn:hover { border-color: #555; }

.gate-card .form-error { margin: 0; padding: 0 18px 14px; }

.gate-after {
  margin: 14px 0;
  color: #cbb8ba;
  font-size: 14px;
}

.gate-mini {
  display: inline-block;
  margin-left: 8px;
  padding: 4px 8px;
  border: 1px solid #3a3336;
  border-radius: 3px;
  color: #eee;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
}

.gate-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 14px;
  color: #8c7578;
}

.gate-or span { flex: 1; height: 1px; background: rgba(255, 255, 255, 0.08); }
.gate-or em { font-style: normal; text-transform: lowercase; }

.gate-pass {
  justify-self: start;
  width: auto;
  border: 1px solid #3a3336;
  background: rgba(255, 255, 255, 0.06);
  color: #eee;
  border-radius: 3px;
  padding: 6px 12px 6px 30px;
  font: inherit;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ddd' stroke-width='1.6'%3E%3Ccircle cx='8' cy='15' r='4'/%3E%3Cpath d='M11 13l8-8M16 6l2 2M14 8l2 2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 8px 50%;
  background-size: 14px;
}

.gate-slip { margin-top: 16px; }

@media (max-width: 720px) {
  .guest-bar { gap: 14px; padding: 0 14px; font-size: 13px; }
  .gate-row { grid-template-columns: 1fr; gap: 6px; }
  .gate-row label, .gate-row > span { padding-top: 0; }
  .pass-line { flex-wrap: wrap; }
}

.user-drop { position: relative; }
.user-drop > .menu {
  right: 0;
  left: auto;
  width: min(440px, calc(100vw - 20px));
  min-width: 280px;
  padding: 0;
  overflow: hidden;
  background: rgba(16, 12, 13, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.user-drop:hover > .menu,
.user-drop:focus-within > .menu { display: none; }
.user-drop.open > .menu,
.user-drop.open:hover > .menu,
.user-drop.open:focus-within > .menu { display: block; }
.user-menu > a.user-menu-head { padding: 14px; border-radius: 0; }
.user-menu .user-menu-links a { border-radius: 0; }
.user-menu-head {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  color: inherit;
  text-decoration: none;
}
.user-menu-head strong { display: block; font-size: 18px; }
.user-menu-head em { color: var(--muted); font-style: normal; font-size: 13px; }
.user-menu-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  padding: 0 14px 12px;
  gap: 6px 16px;
}
.user-menu-stats div { display: flex; justify-content: space-between; gap: 8px; }
.user-menu-stats dt { color: var(--muted); font-size: 13px; }
.user-menu-stats dd { margin: 0; font-weight: 700; }
.user-menu-links { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.user-menu-links a {
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #f2e6e7;
  text-decoration: none;
}
.user-menu-links a:nth-child(-n + 2) { border-top: 0; }
.user-menu-links a:hover { background: rgba(255, 255, 255, 0.04); }
.user-menu-out {
  width: 100%;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: #f2e6e7;
  font: inherit;
  text-align: left;
  padding: 12px 14px;
  cursor: pointer;
}
.user-menu-out:hover { background: rgba(255, 255, 255, 0.04); }

.wide-page { width: min(980px, 100%); margin: 0 auto; }
.profile-card, .profile-body, .account-page { padding: 16px; }
.profile { overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 4px; background: rgba(255, 255, 255, 0.03); }
.profile-card { display: flex; gap: 16px; align-items: center; }
.profile-card h1 { font-size: 22px; line-height: 1; font-weight: 600; }
.profile-card p { color: var(--muted); margin-top: 4px; }
.profile-card .rank { color: #f0d2d4; }
.profile-card .rank.is-banned { color: #c9a3a6; }
.staff-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.staff-bar input { width: min(240px, 100%); background: rgba(0, 0, 0, 0.18); border: 1px solid var(--line); border-radius: 4px; padding: 6px 8px; }
.presence.banned { color: #c9a3a6; font-size: 12px; }
.profile-card .viewing { color: var(--dim); font-size: 13px; }
.avatar.xl { width: 96px; height: 96px; font-size: 32px; }
.avatar-pick {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 96px;
  height: 96px;
  cursor: pointer;
}
.avatar-pick .avatar { width: 96px; height: 96px; }
.avatar-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.avatar-change {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  text-align: center;
  font-size: 11px;
  color: #fff;
  text-shadow: 0 1px 2px #000;
  pointer-events: none;
}
.profile-tabs { display: flex; gap: 4px; padding: 0 10px; border-top: 1px solid rgba(255, 255, 255, 0.08); border-bottom: 1px solid rgba(255, 255, 255, 0.08); overflow-x: auto; }
.profile-tabs a { padding: 12px 10px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.profile-tabs a.is-on { color: var(--ink); box-shadow: inset 0 -1px 0 #555; }
.wall-compose, .wall-reply { display: flex; gap: 10px; align-items: center; }
.wall-compose input, .wall-reply input { flex: 1; min-width: 0; background: rgba(0, 0, 0, 0.18); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 8px; color: inherit; padding: 10px 12px; }
.wall-post { display: grid; grid-template-columns: 40px 1fr; gap: 10px; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.wall-post header { display: flex; gap: 10px; align-items: baseline; }
.wall-post time, .feed time { color: var(--dim); font-size: 12px; }
.wall-post p, .feed p { margin-top: 6px; white-space: pre-wrap; }
.wall-actions { display: flex; gap: 8px; margin-top: 8px; }
.wall-actions button { border: 0; background: transparent; color: var(--muted); font: inherit; cursor: pointer; padding: 0; }
.wall-actions button.is-on { color: var(--hot-2); }
.wall-comments { display: grid; gap: 8px; margin-top: 10px; }
.wall-comment { display: grid; grid-template-columns: 22px 1fr; gap: 8px; }
.wall-reply { margin-top: 8px; }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.feed li { padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.feed a { color: var(--hot-2); text-decoration: none; }
.about-list, .account-form { display: grid; gap: 12px; }
.about-list div, .account-form label { display: grid; gap: 4px; }
.about-list dt, .account-form label { color: var(--muted); font-size: 13px; }
.account-form input, .account-form textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: inherit;
  padding: 10px 12px;
  font: inherit;
}
.account-form .check { display: flex; align-items: center; gap: 8px; color: #f2e6e7; }
.account-form .check input { width: auto; }
.account-form .btn-hot { justify-self: start; }
.online a { color: inherit; text-decoration: none; }
.member a { color: inherit; text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  .still *, .still *::before, .still *::after { animation: none !important; }
  .still #blood { display: none; }
}
