:root {
  --bg: #000000;
  --pink: #e83e8c;
  --magenta: #c026d3;
  --purple: #7c3aed;
  --silver: #e8e8f0;
  --muted: #a89bb8;
  --live: #eb0400;
}

@font-face {
  font-family: "Prata";
  src: url("/fonts/Prata-Regular.woff2") format("woff2"),
    url("/fonts/Prata-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
  background: var(--bg);
  color: var(--silver);
}

body {
  font-family: "Prata", Georgia, serif;
  background: var(--bg);
  overflow-x: hidden;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

.page {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.banner-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  background: #000;
  border-bottom: 1px solid rgba(192, 38, 211, 0.25);
  animation: bannerIn 0.9s ease-out both;
}

.banner {
  display: block;
  width: 100%;
  max-width: 1000px;
  height: auto;
  aspect-ratio: 1000 / 200;
  object-fit: cover;
  object-position: center;
}

main {
  width: min(1000px, 100%);
  padding: 2.5rem 1.25rem 3rem;
  text-align: center;
  flex: 1;
}

.tagline {
  font-family: "Prata", Georgia, serif;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
  animation: rise 0.8s ease-out 0.15s both;
}

.brand {
  font-family: "Prata", Georgia, serif;
  font-weight: 700;
  font-size: clamp(2.6rem, 8vw, 4.5rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #fff 10%, #f0abfc 40%, #c026d3 70%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 40px rgba(192, 38, 211, 0.25);
  animation: rise 0.9s ease-out 0.25s both;
}

.sub {
  font-family: "Prata", Georgia, serif;
  font-weight: 500;
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: var(--silver);
  margin-top: 0.35rem;
  margin-bottom: 1.75rem;
  opacity: 0.9;
  animation: rise 0.9s ease-out 0.35s both;
}

.sub::after {
  content: "";
  display: block;
  width: 3rem;
  height: 1px;
  margin: 0.85rem auto 0;
  background: linear-gradient(90deg, transparent, var(--pink), transparent);
}

.lead {
  max-width: 34rem;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted);
  animation: rise 0.9s ease-out 0.45s both;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  animation: rise 0.9s ease-out 0.55s both;
}

.btn {
  font-family: "Prata", Georgia, serif;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  padding: 0.85rem 1.6rem;
  border: 1px solid rgba(232, 62, 140, 0.45);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.35), rgba(232, 62, 140, 0.2));
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: var(--pink);
  box-shadow: 0 0 24px rgba(192, 38, 211, 0.35);
}

.btn.twitch:hover {
  border-color: #bf94ff;
}

.btn.twitch.is-live {
  border-color: var(--live);
  background: linear-gradient(135deg, rgba(235, 4, 0, 0.45), rgba(124, 58, 237, 0.35));
  box-shadow: 0 0 22px rgba(235, 4, 0, 0.35);
}

.btn.tiktok:hover {
  border-color: #fe2c55;
}

.live-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #666;
  flex-shrink: 0;
}

.btn.twitch.is-live .live-dot {
  background: var(--live);
  box-shadow: 0 0 8px var(--live);
  animation: pulse 1.4s ease-in-out infinite;
}

.live-badge {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: #fff;
  background: var(--live);
  padding: 0.15rem 0.4rem;
}

.btn.twitch.is-live .live-badge {
  display: inline-block;
}

.banner-link {
  display: block;
  width: 100%;
  max-width: 1000px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  align-self: stretch;
  flex-shrink: 0;
  background: #050505;
  border-bottom: 1px solid rgba(232, 62, 140, 0.55);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.nav-inner {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}

.nav-toggle {
  display: none;
  font-family: "Prata", Georgia, serif;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(232, 62, 140, 0.45);
  padding: 0.7rem 1rem;
  cursor: pointer;
}

.nav-links {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  flex: 1;
  width: auto;
  margin: 0;
  min-width: 0;
}

.nav-links li {
  display: flex;
}

.nav-links a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Prata", Georgia, serif;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: #f3e8ff;
  padding: 0.95rem 0.6rem;
  border-bottom: 3px solid transparent;
  background: transparent;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: #fff;
  background: linear-gradient(180deg, rgba(192, 38, 211, 0.22), rgba(232, 62, 140, 0.08));
  border-bottom-color: var(--pink);
}

.nav-auth {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0 1rem;
  border-left: 1px solid rgba(232, 62, 140, 0.4);
  flex-shrink: 0;
}

.nav-login,
.nav-logout,
.nav-user {
  font-family: "Prata", Georgia, serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.35rem 0;
}

.nav-login {
  color: #f0abfc;
  border-bottom: 2px solid var(--pink);
}

.nav-user {
  color: var(--muted);
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-logout {
  color: #f3e8ff;
}

.nav-mod {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  margin-left: 0.15rem;
  color: var(--muted);
  background: transparent;
  border: 1px solid rgba(232, 62, 140, 0.35);
  cursor: pointer;
  padding: 0;
}

.nav-mod svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
}

.nav-mod:hover,
.nav-mod.is-on {
  color: #f0abfc;
  border-color: var(--pink);
}

.nav-mod.is-on {
  background: rgba(232, 62, 140, 0.16);
}

.nav-login:hover,
.nav-logout:hover {
  color: #fff;
}

.as-user,
.auth-alt {
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.auth-alt {
  margin-top: 0.75rem;
}

.content {
  text-align: left;
}

.page-title {
  font-family: "Prata", Georgia, serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #fff 10%, #f0abfc 50%, #c026d3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.content .lead {
  margin-left: 0;
  margin-right: 0;
  max-width: 40rem;
}

.inline-link {
  color: #f0abfc;
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 62, 140, 0.45);
}

.inline-link:hover {
  color: #fff;
}

.card {
  background: rgba(12, 8, 18, 0.85);
  border: 1px solid rgba(192, 38, 211, 0.28);
  padding: 1.15rem 1.2rem;
  margin: 0 0 1.25rem;
}

.form {
  position: relative;
  display: grid;
  gap: 0.85rem;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.field {
  display: grid;
  gap: 0.4rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: "Prata", Georgia, serif;
}

.field input,
.field textarea {
  font-family: "Prata", Georgia, serif;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--silver);
  background: #0a0a0a;
  border: 1px solid rgba(168, 155, 184, 0.28);
  padding: 0.7rem 0.75rem;
  width: 100%;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--pink);
}

.password-wrap {
  position: relative;
  display: block;
}

.password-wrap input {
  width: 100%;
  padding-right: 2.8rem;
}

.password-toggle {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.password-toggle:hover,
.password-toggle[aria-pressed="true"] {
  color: #f0abfc;
}

.password-toggle svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[hidden] {
  display: none !important;
}

button.btn {
  cursor: pointer;
  width: fit-content;
  font: inherit;
}

.form-status {
  font-size: 0.95rem;
  color: #f0abfc;
}

.form-status.error {
  color: #fb7185;
}

.stack {
  display: grid;
  gap: 0.85rem;
}

.entry,
.topic,
.post {
  text-align: left;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(192, 38, 211, 0.22);
  background: rgba(10, 8, 16, 0.7);
}

.entry h3,
.topic h3,
.post h3 {
  font-family: "Prata", Georgia, serif;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.meta {
  font-family: "Prata", Georgia, serif;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.55rem;
}

.entry p,
.post p,
.topic p {
  line-height: 1.55;
  color: var(--silver);
  white-space: pre-wrap;
}

.topic-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.topic-link:hover {
  border-color: var(--pink);
}

.post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.post-edit {
  margin-top: 0.85rem;
}

.badge-closed {
  display: inline-block;
  margin-left: 0.45rem;
  font-family: "Prata", Georgia, serif;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fb7185;
  border: 1px solid rgba(251, 113, 133, 0.45);
  padding: 0.15rem 0.4rem;
  vertical-align: middle;
  background: none;
  -webkit-text-fill-color: #fb7185;
}

.post.is-closed,
.topic-link.is-closed {
  border-color: rgba(251, 113, 133, 0.28);
}

.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  font-family: "Prata", Georgia, serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}

.back-link:hover {
  color: #fff;
}

.cat-block {
  text-align: left;
  margin: 0 0 1rem;
  border: 1px solid rgba(192, 38, 211, 0.32);
  background: rgba(12, 8, 18, 0.88);
  overflow: hidden;
}

.cat-head {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  background: linear-gradient(90deg, rgba(192, 38, 211, 0.28), rgba(232, 62, 140, 0.08));
  border-bottom: 1px solid rgba(192, 38, 211, 0.22);
}

.cat-toggle {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
  padding: 0.95rem 1.1rem;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.cat-toggle.is-chevron {
  flex: 0 0 auto;
  padding: 0.95rem 1rem;
}

.cat-name {
  font-family: "Prata", Georgia, serif;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

.cat-name.is-editable {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0.95rem 1.1rem;
  cursor: text;
}

body.mod-on .is-editable:hover {
  color: #fff;
}

.inline-edit {
  width: 100%;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--pink);
  padding: 0.2rem 0.45rem;
  outline: none;
}

.mod-x {
  flex-shrink: 0;
  align-self: stretch;
  min-width: 2.2rem;
  border: 0;
  background: transparent;
  color: rgba(251, 113, 133, 0.7);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.65rem;
}

.mod-x:hover {
  color: #fb7185;
  background: rgba(251, 113, 133, 0.1);
}

.chevron {
  width: 0.7rem;
  height: 0.7rem;
  border-right: 2px solid #f0abfc;
  border-bottom: 2px solid #f0abfc;
  transform: rotate(45deg);
  transition: transform 0.18s ease;
  flex-shrink: 0;
}

.cat-block.is-open .chevron {
  transform: rotate(-135deg);
}

.cat-body {
  display: none;
}

.cat-block.is-open .cat-body {
  display: block;
}

.sub-row {
  display: flex;
  align-items: stretch;
  border-top: 1px solid rgba(192, 38, 211, 0.16);
}

.sub-row:first-child {
  border-top: 0;
}

.sub-link {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.85rem 1.1rem;
  text-decoration: none;
  color: inherit;
}

.sub-link:hover {
  background: rgba(232, 62, 140, 0.08);
}

.sub-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  text-align: left;
  flex: 1;
}

.sub-name {
  font-family: "Prata", Georgia, serif;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  color: #f3e8ff;
}

.sub-name.is-editable,
.sub-info.is-editable {
  display: block;
  padding: 0.15rem 0;
  cursor: text;
}

.sub-info {
  font-family: "Prata", Georgia, serif;
  font-size: 0.86rem;
  letter-spacing: 0;
  color: var(--muted);
  line-height: 1.35;
}

.sub-info.is-placeholder {
  opacity: 0.45;
  font-style: italic;
}

.sub-meta {
  font-family: "Prata", Georgia, serif;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.sub-row > .sub-meta {
  display: flex;
  align-items: center;
  padding: 0.85rem 0.6rem 0.85rem 0;
  text-decoration: none;
  color: var(--muted);
}

.admin-btns {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.7rem 0 0;
  flex-shrink: 0;
}

.btn-tiny {
  font-family: "Prata", Georgia, serif;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f0abfc;
  background: transparent;
  border: 1px solid rgba(232, 62, 140, 0.4);
  padding: 0.35rem 0.5rem;
  cursor: pointer;
  white-space: nowrap;
}

.btn-tiny:hover {
  color: #fff;
  border-color: var(--pink);
}

.btn-tiny.danger {
  color: #fb7185;
  border-color: rgba(251, 113, 133, 0.4);
}

.mini-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  padding: 0.75rem 1.1rem 1rem;
}

.mini-form.card {
  padding: 1rem 1.1rem;
}

.mini-form input {
  flex: 1;
  min-width: 10rem;
  font-family: "Prata", Georgia, serif;
  font-size: 1rem;
  color: var(--silver);
  background: #0a0a0a;
  border: 1px solid rgba(168, 155, 184, 0.28);
  padding: 0.55rem 0.7rem;
}

.mini-form input:focus {
  outline: none;
  border-color: var(--pink);
}

.mini-form-stack {
  flex-direction: column;
  align-items: stretch;
}

.mini-form-stack .btn-tiny {
  align-self: flex-start;
}

.sub-desc p {
  margin: 0;
  line-height: 1.6;
  white-space: pre-wrap;
  text-align: left;
}

.empty {
  color: var(--muted);
  text-align: center;
  padding: 1.25rem;
}

@media (max-width: 640px) {
  .nav-inner {
    flex-wrap: wrap;
    align-items: center;
    padding: 0.55rem 1rem 0.75rem;
    gap: 0.5rem;
  }
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }
  .nav-auth {
    border-left: 0;
    padding: 0;
    order: -1;
  }
  .nav-links {
    display: none;
    grid-template-columns: 1fr;
    width: 100%;
    flex-basis: 100%;
  }
  .nav.is-open .nav-links {
    display: grid;
  }
  .nav-links a {
    justify-content: flex-start;
    padding: 0.75rem 0.2rem;
  }
  .sub-link {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  .sub-meta {
    white-space: normal;
  }
  .cat-head {
    flex-wrap: wrap;
  }
  .admin-btns {
    padding: 0 0.7rem 0.7rem;
  }
}

@keyframes bannerIn {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
