:root {
  --bg: #0a0a0b;
  --bg-grid: rgba(255, 255, 255, 0.025);
  --surface: #121215;
  --surface-2: #18181c;
  --surface-3: #1f1f24;
  --border: #26262c;
  --border-hot: #3a3a42;
  --orange: #ff6e00;
  --orange-soft: rgba(255, 110, 0, 0.12);
  --orange-glow: rgba(255, 110, 0, 0.35);
  --text: #ececef;
  --text-dim: #8a8a92;
  --text-mute: #5a5a62;
  --live: #22c55e;
  --live-glow: rgba(34, 197, 94, 0.35);
  --off: #ef4444;
  --warn: #f59e0b;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  background-color: var(--bg);
  background-image: linear-gradient(var(--bg-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 20% -10%, rgba(255, 110, 0, 0.06), transparent 60%),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(255, 110, 0, 0.04), transparent 60%),
    radial-gradient(circle at 50% 50%, transparent 30%, rgba(0, 0, 0, 0.6) 100%);
}

img {
  max-width: 100%;
}

a,
.news-card h3 a {
  color: inherit;
  text-decoration: none;
}

.auth-form {
  display: contents;
  margin: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 11px;
  color: var(--text-dim);
}

.mono {
  font-family: var(--font-mono);
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: 1440px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.brand img {
  height: 44px;
  width: auto;
  display: block;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.05em;
  line-height: 1;
}

.brand-text .sub {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--text-mute);
  margin-top: 2px;
}

nav.menu {
  display: flex;
  gap: 4px;
  flex: 1;
}

nav.menu a {
  position: relative;
  padding: 10px 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  transition: color 0.15s ease;
}

.mobile-menu-panel.is-open {
  display: grid;
  gap: 8px;
}

nav.menu a:hover,
nav.menu a.active,
.streamer-back:hover {
  color: var(--text);
}

nav.menu a.active::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 2px;
  background: var(--orange);
  box-shadow: 0 0 12px var(--orange-glow);
}

nav.menu a .count {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-mute);
  margin-left: 6px;
  font-weight: 500;
  letter-spacing: 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.mobile-menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  flex-shrink: 0;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.mobile-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu-toggle:hover,
.field input:focus,
.field textarea:focus {
  border-color: var(--orange);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu-panel {
  display: none;
  position: fixed;
  top: 73px;
  left: 0;
  right: 0;
  width: 100vw;
  max-height: calc(100vh - 73px);
  overflow-y: auto;
  padding: 12px 16px 18px;
  border-top: 1px solid var(--border);
  background: rgba(10, 10, 11, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 49;
}

.mobile-menu {
  max-width: 1440px;
  margin: 0 auto;
  padding: 12px 28px 18px;
  display: grid;
  gap: 8px;
}

.mobile-menu-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mobile-menu-panel a:hover,
.mobile-menu-panel a.active {
  color: var(--text);
  border-color: var(--orange);
}

.mobile-menu-panel .count,
.user-info .id {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-mute);
}

.user-info .tag {
  font-size: 12px;
}

body.menu-open,
.news-card {
  overflow: hidden;
}

.lang-switch {
  display: flex;
  gap: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 4px;
}

.lang-btn {
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  border: 1px solid transparent;
  transition: 0.15s;
}

.lang-btn.active {
  background: var(--orange);
  color: #000;
}

.lang-btn:hover,
.btn-ghost:hover,
.srv-copy:hover,
.ba:hover,
.streamer-platform-btn.active {
  border-color: var(--orange);
  color: var(--orange);
}

.lang-btn.active:hover {
  color: #000;
}


.btn-primary {
  padding: 9px 18px;
  background: var(--orange);
  color: #000;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 13px;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  transition: all 0.15s;
}

.btn-primary:hover {
  background: #ff8a2e;
  box-shadow: 0 0 20px var(--orange-glow);
}

.btn-ghost {
  padding: 10px 22px;
  border: 1px solid var(--border-hot);
  font-family: var(--font-display);
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 13px;
  color: var(--text);
  transition: all 0.15s;
}

main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px 28px 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  position: relative;
  z-index: 1;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-head h2::before {
  content: "";
  width: 4px;
  height: 20px;
  background: var(--orange);
  box-shadow: 0 0 8px var(--orange-glow);
}

.section-head .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.accent-link {
  color: var(--orange) !important;
}

.hero {
  position: relative;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  padding: 36px 40px;
  overflow: hidden;
}

section {
  margin-bottom: 40px;
}

.hero::before {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--orange-soft) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--orange);
  box-shadow: 0 0 20px var(--orange-glow);
}

.hero-bg-logo {
  position: absolute;
  right: -60px;
  top: -60px;
  width: 400px;
  height: 400px;
  background: url("/assets/img/logo-icon.png") center / 220px auto no-repeat;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}

.hero-tag::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--orange);
  animation: pulse 2s infinite;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.hero p {
  color: var(--text-dim);
  max-width: 560px;
  margin-bottom: 12px;
  font-size: 16px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-stats {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat .val {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 24px;
  color: var(--text);
  line-height: 1;
}

.stat .val .unit {
  font-size: 13px;
  color: var(--text-mute);
  margin-left: 4px;
}

.stat .key {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-top: 6px;
}

.servers,
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.server-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 20px 22px;
  transition: all 0.2s;
  overflow: hidden;
}

.server-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--live);
  opacity: 0;
  transition: opacity 0.2s;
}

.server-card.online::before,
.profile-card.online::before {
  opacity: 1;
  background: var(--live);
  box-shadow: 0 0 12px var(--live-glow);
}

.server-card.offline::before,
.profile-card.offline::before {
  opacity: 1;
  background: var(--off);
}

.server-card.maint::before,
.profile-card.progress::before {
  opacity: 1;
  background: var(--warn);
}

.server-card:hover,
.news-card:hover,
.profile-card:hover,
.team-card:hover,
.server-row:hover {
  border-color: var(--border-hot);
  transform: translateY(-1px);
}

.server-card::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 14px;
  height: 14px;
  border-top: 2px solid var(--orange);
  border-right: 2px solid var(--orange);
  opacity: 0;
  transition: opacity 0.2s;
}

.server-card:hover::after,
.server-card:hover .corner-br {
  opacity: 1;
}

.corner-br {
  position: absolute;
  bottom: 8px;
  left: 8px;
  width: 14px;
  height: 14px;
  border-bottom: 2px solid var(--orange);
  border-left: 2px solid var(--orange);
  opacity: 0;
  transition: opacity 0.2s;
}

.srv-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.srv-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.srv-icon {
  width: 40px;
  height: 40px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--orange);
}

.srv-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.srv-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 2px;
}

.srv-status,
.profile-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot.live {
  background: var(--live);
  box-shadow: 0 0 8px var(--live-glow);
  animation: pulse 2s infinite;
}

.dot.off {
  background: var(--off);
}

.dot.warn {
  background: var(--warn);
  animation: pulse 2s infinite;
}

.server-card.online .srv-status,
.profile-card .online,
.news-color-green {
  color: var(--live);
}

.server-card.offline .srv-status,
.profile-card .offline,
.news-color-red {
  color: var(--off);
}

.server-card.maint .srv-status,
.profile-card .progress {
  color: var(--warn);
}

.srv-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  margin-bottom: 14px;
}

.srv-body .stat-mini .k {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.srv-body .stat-mini .v {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text);
  margin-top: 2px;
  font-weight: 500;
}

.srv-bar {
  height: 4px;
  background: var(--surface-3);
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
}

.srv-bar .fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: var(--orange);
  box-shadow: 0 0 8px var(--orange-glow);
}

.srv-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.srv-ip {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.srv-copy,
.ba {
  padding: 6px 12px;
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  transition: all 0.15s;
}

.news-card {
  --news-card-pad-y: 20px;
  --news-card-pad-x: 22px;
  --news-card-pad-y-neg: -20px;
  --news-card-pad-x-neg: -22px;

  background: var(--surface);
  border: 1px solid var(--border);
  padding: var(--news-card-pad-y) var(--news-card-pad-x);
  transition: all 0.2s;
  position: relative;
}

.profile-card,
.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 20px 22px;
  transition: all 0.2s;
  position: relative;
}

.news-card.feat {
  --news-card-pad-y: 28px;
  --news-card-pad-x: 32px;
  --news-card-pad-y-neg: -28px;
  --news-card-pad-x-neg: -32px;

  grid-column: span 2;
  padding: var(--news-card-pad-y) var(--news-card-pad-x);
}

.profile-card.feat {
  grid-column: span 2;
  padding: 28px 32px;
}

.news-meta,
.team-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.tag {
  padding: 3px 10px;
  background: var(--orange-soft);
  color: var(--orange);
  letter-spacing: 0.18em;
  font-weight: 500;
}

.news-date,
.news-color-muted,
.team-count,
.team-info {
  color: var(--text-mute);
}

.news-card h3,
.profile-card h3,
.team-card h3,
.rules-block h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 8px;
  line-height: 1.15;
}

.news-card.feat h3,
.profile-card.feat h3 {
  font-size: 28px;
}

.news-card p,
.profile-card p,
.team-card p {
  color: var(--text-dim);
  font-size: 14px;
}

.profile-topbar {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.profile-avatar-wrap {
  flex: 0 0 auto;
}

.profile-avatar-img {
  width: 160px;
  height: 160px;
  display: block;
  object-fit: cover;
  border: 1px solid var(--border);
}

.profile-user-info {
  min-width: 0;
  flex: 1 1 320px;
}

.profile-username {
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.0;
  margin-top: 10px;
}

.profile-tag-row {
  margin-top: 10px;
}

.profile-description {
  margin-top: 12px;
}

.profile-xp-block {
  margin-top: 0;
}

@media (max-width: 640px) {
  .profile-topbar {
    align-items: flex-start;
  }

  .profile-avatar-img,
  .avatar.bigger {
    width: 80px;
    height: 80px;
  }
}

.news-card .read {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--orange);
}

.news-card .read::after {
  content: "→";
  transition: transform 0.15s;
}

.news-card:hover .read::after {
  transform: translateX(4px);
}

aside {
  position: sticky;
  top: 100px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
}

.panel-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.panel-head .tick {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--live);
}

.user-panel {
  padding: 20px;
}

.user-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.avatar {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--orange), #b34d00);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: #000;
  position: relative;
}

.avatar.bigger {
  width: 100px;
  height: 100px;
  font-size: 2rem;
}

.user-info .name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.user-info .tag-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.user-info .rank {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--orange);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.user-xp,
.news-body p {
  margin-bottom: 18px;
}

.xp-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.xp-bar {
  height: 6px;
  background: var(--surface-3);
  position: relative;
  overflow: hidden;
}

.xp-bar .fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 68%;
  background: linear-gradient(90deg, var(--orange), #ff9a40);
  box-shadow: 0 0 8px var(--orange-glow);
}

.user-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.user-stats .s .v {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  text-align: center;
}

.user-stats .s .k {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-mute);
  text-align: center;
  margin-top: 4px;
}

.user-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.user-actions .ba {
  padding: 9px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.1em;
}

.user-actions .ba.full {
  grid-column: span 2;
}

.login-panel {
  padding: 22px;
}

.login-panel .links {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.login-panel .sep {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.login-panel .sep::before,
.login-panel .sep::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.login-panel h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}

.field {
  margin-bottom: 12px;
}

.field label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  display: block;
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s;
}

.login-panel .btn-primary {
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  font-size: 14px;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.quick-list {
  padding: 12px 0;
}

.quick-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px;
  transition: background 0.15s;
}

.quick-item:hover {
  background: var(--surface-2);
}

.mini-ava {
  width: 32px;
  height: 32px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--orange);
  position: relative;
}

.mini-ava .ind {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--surface);
}

.mini-ava .ind.on {
  background: var(--live);
}

.quick-item .q-info {
  flex: 1;
  min-width: 0;
}

.quick-item .q-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.quick-item .q-game {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 1px;
}

.network-stats {
  padding: 18px;
}

.network-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.network-row:last-child {
  border-bottom: none;
}

.highlight {
  color: var(--orange);
  font-weight: 700;
}

.live-text {
  color: var(--live);
  font-weight: 500;
}

footer {
  border-top: 1px solid var(--border);
  padding: 28px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

footer span,
.hero h1 span,
.brand-text .accent,
.server-player-count,
.news-card h3 a:hover,
.news-card h3 a:focus-visible,
.news-author-link:hover,
.news-author-link:focus-visible,
.comment-author-link:hover,
.comment-author-link:focus-visible,
.news-color-orange {
  color: var(--orange);
}

@keyframes pulse {
0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.9);
  }
}

@media (max-width: 1100px) {
  main,
  .servers,
  .news-grid {
    grid-template-columns: 1fr;
  }

  aside {
    position: static;
  }

  .news-card.feat {
    --news-card-pad-y: 20px;
    --news-card-pad-x: 22px;
    --news-card-pad-y-neg: -20px;
    --news-card-pad-x-neg: -22px;

    grid-column: span 1;
    padding: var(--news-card-pad-y) var(--news-card-pad-x);
  }

  .news-card.feat h3 {
    font-size: 22px;
  }

  nav.menu {
    display: none;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .mobile-menu-panel.is-open {
    display: block;
  }
}

@media (max-width: 560px) {
  .nav {
    padding: 12px 16px;
    gap: 12px;
  }

  main {
    padding: 20px 16px 60px;
  }

  .hero {
    padding: 24px 22px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .header-right {
    gap: 10px;
  }

  .mobile-menu-panel {
    padding: 12px 16px 18px;
  }
}

.profile-top-back {
  text-decoration: none;
}

.profile-columns {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 24px;
}

.profile-box-head {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.profile-box-head h3 {
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.15;
}

.profile-grid-single {
  grid-template-columns: 1fr;
}

.avatar-upload-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.avatar-upload-preview img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border: 1px solid var(--border);
  display: block;
}

.field-label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.field-input {
  width: 100%;
}

.field-input-file {
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 13px;
}

@media (max-width: 1100px) {
  .profile-columns {
    grid-template-columns: 1fr;
  }
}

.profile-hero, .rules-hero {
  padding-bottom: 22px;
}

.profile-shell,
.streamer-hero {
  display: grid;
  gap: 18px;
}

.profile-panel,
.link-panel {
  display: flex;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 20px 22px;
  transition: all 0.2s;
  overflow: hidden;
}

.profile-panel::before,
.link-panel::before {
  display: flex;
  flex-direction: column;
  width: 100%;
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--orange);
  opacity: 0.9;
  box-shadow: 0 0 12px var(--orange-glow);
}

.profile-panel-inner,
.link-panel-inner {
  position: relative;
  padding: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.profile-panel form {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.profile-grid,
.streamers-grid,
.team-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field.full {
  grid-column: 1 / -1;
}

.field-note {
  color: var(--text-mute);
  font-size: 0.95rem;
}

.profile-subtitle {
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  margin-top: 6px;
}

.field-stack,
.server-usage,
.news-content > * + *,
.news-body > * + * {
  margin-top: 16px;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
  margin-top: auto;
}

.profile-actions .btn-primary {
  width: 100%;
  justify-content: center;
  text-align: center;
  padding: 12px;
  font-size: 14px;
}

.profile-msg {
  margin-top: 15px;
  margin-bottom: 15px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.08);
  font-weight: 600;
}

.profile-msg.error {
  background: rgba(255, 77, 77, 0.12);
  border-color: rgba(255, 77, 77, 0.25);
  color: #ffb3b3;
}

.profile-msg.success {
  background: rgba(70, 201, 120, 0.12);
  border-color: rgba(70, 201, 120, 0.22);
  color: #baf0c8;
}

.links-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: rgba(255,255,255,0.6);
  font: 700 0.82rem/1 "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@media (max-width: 980px) {
  .links-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-actions {
    flex-direction: column;
  }

  .profile-btn {
    width: 100%;
  }
}

.streamer-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  float: right;
}

.streamer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.streamer-head-main {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.streamer-avatar,
.streamer-mini-avatar,
.team-avatar {
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
}

.streamer-avatar,
.team-avatar {
  width: 88px;
  height: 88px;
  font-size: 28px;
}

.streamer-mini-avatar
  width: 56px;
  height: 56px;
  font-size: 18px;
  flex-shrink: 0;
}

.streamer-avatar img,
.streamer-mini-avatar img,
.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.streamer-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  line-height: 0.7;
}

.streamer-heading h1 {
  margin-bottom: 8px;
}

.streamer-bio,
.streamer-card-bio,
.news-body em,
.news-content em,
.team-description {
  color: var(--text-dim);
}

.streamer-viewers {
  margin-top: 8px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
}

.streamer-vip-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(255, 110, 0, 0.35);
  background: rgba(255, 110, 0, 0.12);
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.streamer-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.streamer-stat-card {
  padding: 14px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  display: grid;
  gap: 6px;
}

.streamer-stat-card.total {
  border-color: rgba(255, 110, 0, 0.35);
  background: rgba(255, 110, 0, 0.08);
}

.streamer-stat-label {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.streamer-stat-value {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
}

.streamer-player-panel {
  margin-bottom: 24px;
}

.streamer-player-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--border);
}

.streamer-player {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.streamer-platform-switch,
.server-player-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.streamer-platform-btn {
  min-width: 110px;
  padding: 11px 16px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-dim);
  text-align: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: 0.2s ease;
}

.streamer-platform-btn:hover {
  border-color: var(--border-hot);
  color: var(--text);
}

.streamer-chat-wrap {
  margin-top: 14px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  overflow: hidden;
}

.streamer-chat {
  display: block;
  width: 100%;
  height: 520px;
  border: 0;
}

.streamer-card-item,
.team-card {
  position: relative;
  display: grid;
  gap: 16px;
  overflow: hidden;
}

.streamer-card-preview {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.18;
}

.streamer-card-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,12,0.18), rgba(10,10,12,0.82) 48%, rgba(10,10,12,0.96));
}

.streamer-card-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.streamer-card-top,
.team-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.streamer-card-info,
.team-card-info {
  min-width: 0;
}

.streamer-card-info h2,
.team-card-info h2 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.streamer-card-info p,
.team-card-info p {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.streamer-card-platforms,
.team-role-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.streamer-chip,
.team-role {
  padding: 8px 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.streamer-chip.main,
.team-role.main {
  border-color: rgba(255, 110, 0, 0.35);
  color: var(--orange);
  background: var(--orange-soft);
}

.streamer-open-btn,
.team-open-btn {
  width: 100%;
  text-align: center;
}

@media (max-width: 980px) {
  .streamers-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .streamer-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .streamer-head-main {
    flex-direction: column;
    align-items: flex-start;
  }

  .streamer-platform-switch {
    flex-direction: column;
  }

  .streamer-platform-btn {
    width: 100%;
  }

  .streamer-chat {
    height: 420px;
  }
}

@media (max-width: 560px) {
  .streamer-stats-grid {
    grid-template-columns: 1fr;
  }
}

.server-list-wrap {
  display: grid;
  gap: 14px;
}

.server-row {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0.005)), var(--surface);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  overflow: hidden;
}

.server-row[open] {
  border-color: var(--border-hot);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

.server-row.online {
  box-shadow: inset 3px 0 0 var(--live);
}

.server-row.offline,
.server-row-empty.is-static {
  box-shadow: inset 3px 0 0 var(--off);
}

.server-row-summary {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  cursor: pointer;
}

.server-row-summary::-webkit-details-marker {
  display: none;
}

.server-row-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.server-row-icon {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--surface-3);
  color: var(--orange);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.server-row-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.server-row-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.45rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.server-row-sub {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.server-row-stats {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
}

.server-row-chip {
  min-height: 40px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.server-row-chip-status {
  min-width: 108px;
  justify-content: center;
}

.server-row-chip-meta {
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.server-row-toggle {
  inline-size: 12px;
  block-size: 12px;
  border-inline-end: 2px solid var(--text-dim);
  border-block-end: 2px solid var(--text-dim);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.18s ease, border-color 0.18s ease;
  margin-inline-start: 4px;
  flex-shrink: 0;
}

.server-row[open] .server-row-toggle {
  transform: rotate(-135deg) translateY(-1px);
  border-color: var(--orange);
}

.server-row-detail {
  padding: 0 18px 18px;
  border-top: 1px solid var(--border);
}

.server-row-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-top: 18px;
}

.server-detail-card {
  border: 1px solid var(--border);
  background: var(--surface-2);
  padding: 14px;
  min-width: 0;
}

.server-detail-label,
.server-usage-head,
.server-player-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--text-mute);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.server-detail-value {
  margin-top: 8px;
  color: var(--text);
  font-size: 14px;
  word-break: break-word;
}

.server-row-bar {
  margin-top: 10px;
  margin-bottom: 0;
  height: 8px;
  border: 1px solid var(--border);
  background: var(--surface-3);
}

.server-row-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 16px;
}

.server-player-block {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}

.server-player-head h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.server-player-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 110, 0, 0.24);
  background: rgba(255, 110, 0, 0.08);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
}

.server-player-empty {
  margin-top: 14px;
  color: var(--text-dim);
}

.server-row-empty {
  padding: 0;
}

.server-row-empty .server-row-detail {
  padding-top: 18px;
}

@media (max-width: 1100px) {
  .server-row-summary {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .server-row-stats {
    justify-content: flex-start;
  }

  .server-row-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .server-row-summary {
    padding: 14px;
  }

  .server-row-detail {
    padding: 0 14px 14px;
  }

  .server-row-grid {
    grid-template-columns: 1fr;
  }

  .server-row-main {
    align-items: flex-start;
  }

  .server-row-icon {
    width: 48px;
    height: 48px;
    font-size: 16px;
  }

  .server-row-stats {
    width: 100%;
  }

  .server-row-chip {
    width: 100%;
    justify-content: space-between;
  }

  .server-row-toggle {
    margin-inline-start: auto;
  }
}

.news-grid-archive {
  align-items: stretch;
}

.news-thumb {
  display: block;
  width: auto;
  max-height: 260px;
  margin: var(--news-card-pad-y-neg) var(--news-card-pad-x-neg) 16px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.news-card.feat .news-thumb {
  max-height: 320px;
  margin: -28px -32px 20px;
}

.news-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: inherit;
  object-fit: cover;
  object-position: center;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.news-card:hover .news-thumb img {
  transform: scale(1.025);
  opacity: 0.92;
}

.news-card-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 14px;
  color: var(--text-mute);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.news-detail {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)),
    var(--surface);
  border: 1px solid var(--border);
  padding: clamp(22px, 3vw, 36px);
  margin-bottom: 24px;
}

.news-detail::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--orange);
  box-shadow: 0 0 18px var(--orange-glow);
}

.news-back-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  margin-bottom: 22px;
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.news-back-link:hover,
.news-back-link:focus-visible,
.news-body a:hover,
.news-body a:focus-visible,
.news-content a:hover,
.news-content a:focus-visible {
  color: #ff8a2e;
}

.news-detail-head {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 20px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--border);
}

.news-detail-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  color: var(--text-mute);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.news-meta-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.news-meta-icon svg {
  width: 14px;
  height: 14px;
  display: block;
  flex: 0 0 auto;
  fill: currentColor;
  color: var(--orange);
}

.news-detail-titlebox {
  display: grid;
  gap: 14px;
  max-width: 980px;
}

.news-detail-titlebox h1 {
  max-width: 920px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.006em;
}

.news-detail-titlebox p {
  max-width: 760px;
  color: var(--text-dim);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.65;
}

.news-detail-info {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.news-detail-author,
.news-detail-stats {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
}

.news-detail-author {
  flex: 1 1 260px;
}

.news-detail-author .label {
  color: var(--text-mute);
  font-size: 9px;
}

.news-detail-author strong,
.news-author-link {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.news-detail-stats {
  flex: 0 1 auto;
  flex-wrap: wrap;
}

.news-detail-stats span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: var(--text-mute);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.news-detail-stats strong {
  color: var(--orange);
  font-size: 13px;
}

.news-hero-image {
  width: 100%;
  max-width: 1280px;
  height: auto;
  max-height: 420px;
  margin: 28px 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.news-hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  object-position: center;
}

.news-body {
  max-width: 820px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.8;
}

.news-body strong,
.news-content strong {
  color: var(--text);
  font-weight: 800;
}

.news-body a,
.news-content a {
  color: var(--orange);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.news-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.news-actions form {
  margin: 0;
}

.news-like-btn.is-liked {
  border-color: var(--live);
  color: var(--live);
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.14);
}

.news-comments {
  margin-top: 24px;
}

.comment-form {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.comment-form label {
  color: var(--text-mute);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.comment-form textarea {
  width: 100%;
  min-height: 124px;
  resize: vertical;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.comment-form textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-soft);
}

.comment-form .btn-primary {
  width: fit-content;
  margin-top: 4px;
}

.comment-list {
  display: grid;
  gap: 12px;
}

.comment-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.comment-avatar {
  width: 44px;
  height: 44px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--orange), #b34d00);
  border: 1px solid var(--border-hot);
  color: #000;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  text-transform: uppercase;
}

.comment-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comment-content {
  min-width: 0;
}

.comment-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 6px;
}

.comment-author-link {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.comment-head time {
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--text-mute);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-align: right;
  text-transform: uppercase;
}

.comment-content p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
  .news-card.feat .news-thumb {
    margin: -20px -22px 16px;
  }

  .news-detail {
    padding: 24px 22px;
  }

  .news-detail-titlebox h1 {
    font-size: clamp(36px, 9vw, 58px);
  }
}

@media (max-width: 720px) {
  .news-detail-info {
    display: grid;
  }

  .news-detail-author,
  .news-detail-stats {
    width: 100%;
  }

  .news-detail-stats {
    justify-content: space-between;
  }

  .news-hero-image {
    max-width: 100%;
    max-height: 320px;
  }

  .news-hero-image img {
    max-height: 320px;
  }
}

@media (max-width: 560px) {
  .news-thumb,
  .news-card.feat .news-thumb {
    margin: -20px -22px 14px;
  }

  .news-card-foot,
  .news-detail-kicker {
    gap: 8px;
  }

  .news-detail {
    padding: 22px;
  }

  .news-detail-head {
    gap: 16px;
    padding-bottom: 22px;
  }

  .news-detail-titlebox h1 {
    font-size: clamp(34px, 11vw, 48px);
  }

  .news-detail-titlebox p {
    font-size: 15px;
  }

  .news-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .news-actions .btn-ghost,
  .comment-form .btn-primary {
    width: 100%;
  }

  .news-hero-image,
  .news-hero-image img {
    max-height: 240px;
  }

  .comment-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .comment-head time {
    margin-left: 0;
    text-align: left;
  }

  .comment-card {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 14px;
  }

  .comment-avatar {
    width: 38px;
    height: 38px;
    font-size: 15px;
  }
}

.field textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  transition: border-color 0.15s;
}

.admin-check {
  display: flex !important;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-dim) !important;
  font-family: var(--font-mono) !important;
  font-size: 10px !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase;
}

.admin-check input {
  width: auto;
  accent-color: var(--orange);
}

.bbcode-help {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-dim);
  font-size: 12px;
}

.bbcode-help strong {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bbcode-help code {
  padding: 3px 7px;
  border: 1px solid var(--border);
  background: var(--surface-3);
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.4;
}

.news-content,
.news-body {
  max-width: 820px;
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.8;
}

.news-content p,
.news-body p,
.rules-shell {
  margin-bottom: 0;
}

.news-content h2,
.news-content h3,
.news-body h2,
.news-body h3 {
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.news-content h2,
.news-body h2 {
  margin-top: 26px;
  font-size: clamp(24px, 3vw, 34px);
}

.news-content h3,
.news-body h3 {
  margin-top: 22px;
  font-size: clamp(19px, 2.2vw, 25px);
}

.news-content mark,
.news-body mark {
  padding: 0 4px;
  background: var(--orange-soft);
  color: var(--orange);
}

.news-content small,
.news-body small {
  color: var(--text-mute);
  font-size: 0.86em;
}

.news-content blockquote,
.news-body blockquote {
  padding: 14px 18px;
  border-left: 3px solid var(--orange);
  background: var(--surface-2);
  color: var(--text);
}

.news-content ul,
.news-body ul {
  padding-left: 22px;
}

.news-content li + li,
.news-body li + li {
  margin-top: 6px;
}

.news-bb-image {
  margin: 20px 0;
  border: 1px solid var(--border);
  background: var(--surface-2);
  overflow: hidden;
}

.news-bb-image img {
  display: block;
  width: 100%;
  height: auto;
}

.news-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 20px 0;
  border: 1px solid var(--border);
  background: #000;
  overflow: hidden;
}

.news-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.news-code {
  overflow-x: auto;
  padding: 14px 16px;
  border: 1px solid var(--border);
  background: #070708;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
}

.bbcode-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.018);
}

.bbcode-toolbar button {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.bbcode-toolbar button:hover,
.bbcode-toolbar button:focus-visible {
  border-color: var(--orange);
  background: var(--orange-soft);
  color: var(--orange);
  outline: none;
}

.bbcode-toolbar button:active {
  transform: translateY(1px);
}

@media (max-width: 560px) {
  .bbcode-toolbar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .bbcode-toolbar button {
    width: 100%;
  }
}

.news-detail-info-bottom {
  width: 100%;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.team-section {
  display: grid;
  gap: 18px;
  margin-bottom: 34px;
}

.team-grid {
  margin-bottom: 8px;
}

.team-description {
  min-height: 42px;
  line-height: 1.65;
}

.team-role-list {
  align-items: flex-start;
}

/* Rules */ 
.rules-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.rules-nav {
  position: sticky;
  top: 100px;
  align-self: start;
  border: 1px solid var(--border);
  background: var(--surface);
}

.rules-nav-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.rules-tabs {
  display: grid;
  gap: 6px;
}

.rules-subtabs {
  display: grid;
  gap: 6px;
  margin-left: 14px;
  padding-left: 12px;
  border-left: 1px solid var(--border);
}

.rules-tab {
  width: 100%;
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-dim);
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.rules-tab:hover,
.rules-tab:focus-visible {
  border-color: var(--orange);
  color: var(--text);
  outline: none;
}

.rules-tab.is-active {
  border-color: rgba(255, 110, 0, 0.45);
  background: var(--orange-soft);
  color: var(--orange);
  box-shadow: inset 3px 0 0 var(--orange);
}

.rules-tab-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rules-tab-tag {
  color: var(--text-mute);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rules-content {
  min-width: 0;
}

.rules-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(255,255,255,0.025), rgba(255,255,255,0)), var(--surface);
  padding: clamp(20px, 3vw, 32px);
}

.rules-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--orange);
  box-shadow: 0 0 18px var(--orange-glow);
}

.rules-panel[hidden] {
  display: none;
}

.rules-panel-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.rules-panel-head h2 {
  margin-top: 12px;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.rules-panel-head p {
  max-width: 720px;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.7;
}

.rules-count {
  flex: 0 0 auto;
  padding: 8px 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-mute);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rules-section-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.rules-block {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 0;
  padding: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.018);
}

.rules-block-index {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 110, 0, 0.28);
  background: var(--orange-soft);
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}

.rules-list {
  display: grid;
  gap: 10px;
  list-style: none;
  counter-reset: none;
}

.rules-list li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.rules-number {
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.rules-list p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.65;
}

@media (max-width: 1100px) {
  .rules-layout {
    grid-template-columns: 1fr;
  }

  .rules-nav {
    position: static;
  }

  .rules-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rules-subtabs {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .rules-tabs,
  .rules-subtabs {
    grid-template-columns: 1fr;
  }

  .rules-panel-head {
    display: grid;
  }

  .rules-count {
    width: fit-content;
  }

  .rules-block {
    grid-template-columns: 1fr;
  }

  .rules-block-index {
    width: 44px;
    height: 44px;
  }

  .rules-list li {
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 11px;
  }
}

/* Forum */
.forum-shell {
  display: grid;
  gap: 18px;
}

.forum-toolbar,
.forum-admin-panel,
.forum-editor,
.forum-empty,
.forum-post,
.forum-category,
.forum-topic-row {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(255,255,255,0.025), rgba(255,255,255,0)), var(--surface);
}

.forum-toolbar,
.forum-admin-panel,
.forum-editor,
.forum-empty {
  padding: 20px 22px;
}

.forum-toolbar::before,
.forum-admin-panel::before,
.forum-editor::before,
.forum-post::before,
.forum-category::before,
.forum-topic-row::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--orange);
  box-shadow: 0 0 18px var(--orange-glow);
}

.forum-toolbar-inner,
.forum-admin-inner,
.forum-editor-inner,
.forum-post-inner,
.forum-category-inner,
.forum-topic-inner {
  position: relative;
  z-index: 1;
}

.forum-toolbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.forum-toolbar h2,
.forum-admin-panel h2,
.forum-editor h2,
.forum-empty h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.forum-toolbar p,
.forum-empty p,
.forum-category-desc,
.forum-topic-excerpt,
.forum-post-body {
  color: var(--text-dim);
}

.forum-admin-grid,
.forum-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.forum-admin-grid .full,
.forum-editor-grid .full {
  grid-column: 1 / -1;
}

.forum-list {
  display: grid;
  gap: 14px;
}

.forum-category {
  padding: 18px;
  transition: border-color .18s ease, transform .18s ease;
}

.forum-category:hover,
.forum-topic-row:hover,
.forum-post:hover {
  border-color: var(--border-hot);
  transform: translateY(-1px);
}

.forum-category-head,
.forum-topic-head,
.forum-post-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.forum-category-title,
.forum-topic-title,
.forum-post-author-name {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1;
}

.forum-category-title {
  font-size: clamp(24px, 3vw, 34px);
}

.forum-topic-title {
  font-size: clamp(20px, 2.4vw, 28px);
}

.forum-category-title a:hover,
.forum-topic-title a:hover,
.forum-user-link:hover {
  color: var(--orange);
}

.forum-category-meta,
.forum-topic-meta,
.forum-post-meta,
.forum-last-post,
.forum-user-title {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.forum-topic-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.forum-topic-row {
  padding: 16px;
  transition: border-color .18s ease, transform .18s ease;
}

.forum-topic-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.forum-topic-badges,
.forum-post-actions,
.forum-topic-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.forum-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 5px 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.forum-badge.hot,
.forum-badge.pin {
  border-color: rgba(255, 110, 0, 0.35);
  background: var(--orange-soft);
  color: var(--orange);
}

.forum-badge.lock {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.1);
  color: var(--off);
}

.forum-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(74px, auto));
  gap: 8px;
}

.forum-stat {
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  text-align: center;
}

.forum-stat strong {
  display: block;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1;
}

.forum-stat span {
  display: block;
  margin-top: 4px;
  color: var(--text-mute);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.forum-posts {
  display: grid;
  gap: 14px;
}

.forum-post {
  padding: 18px;
}

.forum-post-inner {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
}

.forum-post-user {
  display: block;
  gap: 10px;
  padding-right: 16px;
  border-right: 1px solid var(--border);
  top: 0;
  height: 100%;
  text-align: -webkit-center;
}

.forum-post-avatar {
  width: 100px;
  height: 100px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-hot);
  background: linear-gradient(135deg, var(--orange), #b34d00);
  color: #000;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
}

.forum-post-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.forum-post-body {
  font-size: 15px;
  line-height: 1.75;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.forum-post-edited {
  margin-top: 14px;
  color: var(--text-mute);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.forum-inline-form {
  display: inline-flex;
  gap: 8px;
  margin: 0;
}

.forum-msg {
  padding: 14px 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  font-weight: 600;
}

.forum-msg.success {
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.1);
  color: #baf0c8;
}

.forum-msg.error {
  border-color: rgba(239, 68, 68, 0.28);
  background: rgba(239, 68, 68, 0.1);
  color: #ffc1c1;
}

@media (max-width: 980px) {
  .forum-topic-inner,
  .forum-post-inner,
  .forum-admin-grid,
  .forum-editor-grid {
    grid-template-columns: 1fr;
  }

  .forum-post-user {
    display: flex;
    align-items: center;
    padding-right: 0;
    padding-bottom: 14px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .forum-stats {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .forum-toolbar,
  .forum-admin-panel,
  .forum-editor,
  .forum-empty,
  .forum-category,
  .forum-topic-row,
  .forum-post {
    padding: 16px;
  }

  .forum-post-avatar {
    width: 56px;
    height: 56px;
    font-size: 20px;
  }

  .forum-stats {
    grid-template-columns: 1fr 1fr;
  }

  .forum-topic-actions .btn-ghost,
  .forum-post-actions .btn-ghost,
  .forum-editor .btn-primary,
  .forum-admin-panel .btn-primary {
    width: 100%;
    text-align: center;
  }
}
/* Forum inactive categories */
.forum-category-card.is-inactive {
  opacity: 0.62;
  border-style: dashed;
}

.forum-category-card.is-inactive::after {
  content: "INACTIVE";
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 8px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.10);
  color: var(--warn);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.forum-category-card.is-inactive .forum-category-title,
.forum-category-card.is-inactive .forum-category-description,
.forum-category-card.is-inactive .forum-category-meta,
.forum-category-card.is-inactive .forum-last-post {
  opacity: 0.72;
}

.forum-category-card.is-inactive .forum-open-link {
  pointer-events: none;
  opacity: 0.5;
}

.forum-admin-note {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.08);
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.55;
}

.forum-admin-note strong {
  color: var(--warn);
}

/* Forum permissions / category edit */
.forum-category.is-inactive {
  opacity: 0.68;
  border-style: dashed;
}

.forum-category.is-inactive .forum-category-title,
.forum-category.is-inactive .forum-category-desc,
.forum-category.is-inactive .forum-category-meta {
  opacity: 0.76;
}

.forum-category-actions,
.forum-post-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.forum-post-actions form {
  margin: 0;
}

.btn-ghost.danger {
  border-color: rgba(239, 68, 68, 0.32);
  color: #ef4444;
}

.btn-ghost.danger:hover,
.btn-ghost.danger:focus-visible {
  border-color: rgba(239, 68, 68, 0.62);
  background: rgba(239, 68, 68, 0.10);
}

.forum-category-edit {
  margin-top: 16px;
}

.forum-lvl-help {
  display: block;
  margin-top: 6px;
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.45;
}

.forum-post-body blockquote {
  margin: 14px 0;
  padding: 12px 14px;
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
}

.forum-post-body pre {
  overflow-x: auto;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
}

.forum-post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

.forum-language-picker {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  align-items: center;
}

.forum-lang-badge {
  border-color: color-mix(in srgb, var(--accent, #ef4444) 45%, transparent);
  background: color-mix(in srgb, var(--accent, #ef4444) 12%, transparent);
}

.forum-category.is-inactive {
  opacity: .78;
}

.forum-category.is-inactive .forum-category-title a {
  color: color-mix(in srgb, var(--text, #f8fafc) 72%, transparent);
}

.forum-category-closed {
  border: 1px solid color-mix(in srgb, #f59e0b 35%, transparent);
  background: color-mix(in srgb, #f59e0b 9%, transparent);
}

.forum-admin-grid .field input[name="write_min_admin_level"] {
  max-width: 10rem;
}

.forum-category-actions form {
  display: inline-flex;
  margin: 0;
}

.forum-danger {
  border-color: rgba(239, 68, 68, 0.35);
  color: var(--off);
}

.forum-danger:hover,
.forum-danger:focus-visible {
  border-color: var(--off);
  color: var(--off);
  background: rgba(239, 68, 68, 0.08);
}

.forum-category.is-inactive {
  border-style: dashed;
  opacity: 0.78;
}

.forum-category.is-inactive .forum-category-title,
.forum-category.is-inactive .forum-category-desc {
  opacity: 0.82;
}

/* Profile ban state */
.profile-user-info.is-banned .profile-username,
.profile-username.is-banned {
  color: var(--text-mute);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--off);
  text-decoration-skip-ink: none;
}

.profile-ban-box {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(239, 68, 68, 0.32);
  background: rgba(239, 68, 68, 0.10);
  color: #ffc1c1;
}

.profile-ban-box-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--off);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.profile-ban-box-title::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--off);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.55);
}

.profile-ban-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.profile-ban-item {
  padding: 10px 12px;
  border: 1px solid rgba(239, 68, 68, 0.22);
  background: rgba(0, 0, 0, 0.14);
}

.profile-ban-item .k {
  margin-bottom: 4px;
  color: var(--text-mute);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.profile-ban-item .v {
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.profile-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.profile-admin-actions .btn-ghost,
.profile-admin-actions .btn-primary {
  width: auto;
}

@media (max-width: 640px) {
  .profile-ban-grid {
    grid-template-columns: 1fr;
  }

  .profile-admin-actions {
    display: grid;
  }

  .profile-admin-actions .btn-ghost,
  .profile-admin-actions .btn-primary {
    width: 100%;
  }
}

/* Forum / BBCode basic text colors */
.forum-text-orange,
.bb-color-orange {
  color: var(--orange);
}

.forum-text-green,
.bb-color-green {
  color: var(--live);
}

.forum-text-red,
.bb-color-red {
  color: var(--off);
}

.forum-text-yellow,
.bb-color-yellow {
  color: var(--warn);
}

.forum-text-blue,
.bb-color-blue {
  color: #60a5fa;
}

.forum-text-purple,
.bb-color-purple {
  color: #a78bfa;
}

.forum-text-pink,
.bb-color-pink {
  color: #f472b6;
}

.forum-text-cyan,
.bb-color-cyan {
  color: #22d3ee;
}

.forum-text-white,
.bb-color-white {
  color: var(--text);
}

.forum-text-gray,
.forum-text-grey,
.bb-color-gray,
.bb-color-grey,
.bb-color-muted {
  color: var(--text-dim);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 22px 28px;
  position: relative;
  z-index: 1;
}

.site-footer-inner {
  max-width: 1440px;
  min-height: 42px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-footer-copy {
  margin: 0;
  padding-inline: 280px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer-copy span,
.site-footer-copy a {
  color: var(--orange);
}

.footer-socials {
  position: absolute;
  right: 0;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  transform: translateY(-50%);
}

.footer-social {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)),
    var(--surface-2);
  color: var(--text-dim);
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.footer-social svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

.footer-social:hover,
.footer-social:focus-visible {
  color: var(--orange);
  border-color: var(--orange);
  background: var(--orange-soft);
  box-shadow: 0 0 16px rgba(255, 110, 0, 0.18);
  transform: translateY(-1px);
  outline: none;
}

@media (max-width: 920px) {
  .site-footer-inner {
    display: grid;
    gap: 16px;
    justify-items: center;
  }

  .site-footer-copy {
    padding-inline: 0;
  }

  .footer-socials {
    position: static;
    transform: none;
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .site-footer {
    padding: 20px 16px;
  }

  .site-footer-copy {
    font-size: 10px;
    line-height: 1.7;
  }

  .footer-social {
    width: 36px;
    height: 36px;
  }

  .footer-social svg {
    width: 17px;
    height: 17px;
  }
}

.comment-action-btn {
  min-height: 0;
  padding: 5px 8px;
  font-size: 11px;
  line-height: 1;
}

summary.comment-action-btn {
  display: inline-flex;
  width: fit-content;
  cursor: pointer;
  list-style: none;
}

summary.comment-action-btn::-webkit-details-marker {
  display: none;
}

.comment-save-btn {
  width: fit-content;
  padding: 8px 12px;
  font-size: 12px;
}

.error-image {
  max-width: 100%;
  height: auto;
  display: block;
}