:root {
  --accent: #55ff55;
  --accent-rgb: 85, 255, 85;
  --bg: #050506;
  --panel: rgba(20, 20, 23, .82);
  --panel-strong: rgba(10, 10, 12, .92);
  --line: rgba(255, 255, 255, .09);
  --text: #f6f6f6;
  --muted: #aaa9b2;
  --shadow: 0 18px 54px rgba(0, 0, 0, .34);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  background:
    radial-gradient(circle at 60% 24%, rgba(var(--accent-rgb), .16), transparent 34rem),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 16rem),
    linear-gradient(180deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 10rem),
    #060607;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, .03), transparent 18%, transparent 82%, rgba(255, 255, 255, .03));
  opacity: .5;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.material-symbols-rounded {
  font-family: "Material Symbols Rounded";
  font-weight: normal;
  font-style: normal;
  font-size: 25px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "liga";
}

.shell {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 26px 14px;
  background: linear-gradient(180deg, rgba(var(--accent-rgb), .11), rgba(0, 0, 0, .65));
  border-right: 1px solid var(--line);
  box-shadow: var(--shadow);
  z-index: 5;
}

.brand {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #0b140b;
  font-weight: 950;
  border-radius: 24px;
  background: linear-gradient(145deg, #e9ffe9, var(--accent) 58%, #139713);
  box-shadow: 0 18px 42px rgba(var(--accent-rgb), .24);
}

.brand img,
.hero-favicon,
.admin-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.brand img {
  padding: 6px;
  border-radius: inherit;
}

.side-nav {
  display: grid;
  gap: 12px;
  width: 100%;
}

.side-nav a,
.support-dot {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-inline: auto;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .055);
  color: rgba(255, 255, 255, .86);
  font-weight: 850;
  transition: .18s ease;
}

.side-nav a:hover,
.side-nav a.active,
.support-dot:hover {
  color: #081208;
  background: var(--accent);
  border-color: rgba(255, 255, 255, .18);
  box-shadow: 0 0 0 5px rgba(var(--accent-rgb), .22), 0 18px 48px rgba(var(--accent-rgb), .18);
}

.support-dot {
  margin-top: auto;
}

.main {
  min-width: 0;
  padding: 24px 34px 46px;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 18px;
  margin-bottom: 20px;
}

.search,
.auth-actions {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 29px;
  background: rgba(7, 7, 9, .72);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .24);
  backdrop-filter: blur(18px);
}

.search {
  padding: 0 22px;
}

.search span {
  color: var(--accent);
  font-size: 28px;
}

.search input {
  width: 100%;
  color: var(--text);
  border: 0;
  outline: none;
  background: transparent;
  font-size: 17px;
  font-weight: 750;
}

.auth-actions {
  width: min(42vw, 430px);
  justify-content: stretch;
  padding: 5px;
  font-weight: 850;
}

.auth-actions a {
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 0 22px;
  border-radius: 23px;
  white-space: nowrap;
  transition: .18s ease;
}

.auth-actions a:hover {
  color: #081208;
  background: var(--accent);
}

.view {
  min-width: 0;
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, .84fr);
  gap: 20px;
  align-items: start;
}

.hero,
.card,
.doc-frame,
.news-card,
.side-panel,
.monitor-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .065);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(24, 24, 28, .92), rgba(8, 8, 10, .9));
  box-shadow: var(--shadow);
}

.hero {
  min-height: clamp(520px, 58vh, 680px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  padding: clamp(34px, 4.2vw, 64px);
  background-size: cover;
  background-position: center;
  border-radius: 34px;
}

.hero::before,
.doc-frame::before,
.side-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .38) 42%, rgba(0, 0, 0, .08) 100%),
    linear-gradient(111deg, rgba(255, 255, 255, .04), transparent 34%),
    radial-gradient(circle at 76% 66%, rgba(var(--accent-rgb), .22), transparent 22rem);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, .045);
  border-radius: 26px;
  pointer-events: none;
}

.hero-content,
.hero-mark,
.doc-content,
.side-panel > * {
  position: relative;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 620px;
  margin-bottom: 22px;
  font-size: clamp(42px, 5.7vw, 76px);
  line-height: 1;
  letter-spacing: 0;
}

.accent {
  color: var(--accent);
}

.lead {
  max-width: 560px;
  color: #ececf0;
  font-size: 18px;
  line-height: 1.62;
  font-weight: 720;
}

.server-pill {
  width: fit-content;
  display: grid;
  gap: 4px;
  margin-top: 28px;
  padding: 13px 20px;
  color: #071207;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 20px 50px rgba(var(--accent-rgb), .2);
}

.server-pill small {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(7, 18, 7, .72);
  font-weight: 850;
}

.server-pill small::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, .12);
}

.hero-mark {
  position: absolute;
  right: clamp(24px, 4vw, 54px);
  bottom: clamp(24px, 4vw, 54px);
  width: clamp(104px, 12vw, 164px);
  height: clamp(104px, 12vw, 164px);
  display: grid;
  place-items: center;
  min-height: 0;
  color: var(--accent);
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 38px;
  background: rgba(0, 0, 0, .28);
  backdrop-filter: blur(14px);
  font-size: clamp(54px, 7vw, 96px);
  font-weight: 950;
  box-shadow: 0 18px 70px rgba(0, 0, 0, .36), 0 0 46px rgba(var(--accent-rgb), .24);
  text-shadow: 0 0 35px rgba(var(--accent-rgb), .55);
}

.hero-favicon {
  width: 82%;
  height: 82%;
  aspect-ratio: 1;
  padding: 8px;
  border-radius: 30px;
  filter: drop-shadow(0 0 42px rgba(var(--accent-rgb), .55));
}

.side-panel {
  min-height: clamp(520px, 58vh, 680px);
  padding: 28px;
  border-radius: 34px;
}

.side-panel h2 {
  margin-bottom: 24px;
  font-size: 27px;
}

.side-panel .lead {
  margin-bottom: 28px;
  font-size: 20px;
  line-height: 1.55;
}

.vote-list {
  display: grid;
  gap: 10px;
}

.rank {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 66px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 24px;
  background: rgba(255, 255, 255, .052);
}

.rank strong:first-child {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #081208;
  border-radius: var(--radius);
  background: var(--accent);
}

.rank span {
  color: var(--muted);
  font-weight: 850;
}

.section {
  margin-top: 22px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.section-head h2 {
  margin-bottom: 0;
  font-size: 28px;
}

.link {
  color: var(--accent);
  font-weight: 900;
}

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

.news-card,
.monitor-card,
.card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
}

.cover {
  min-height: 160px;
  background:
    linear-gradient(135deg, rgba(var(--accent-rgb), .22), transparent),
    rgba(255, 255, 255, .05);
  background-size: cover;
  background-position: center;
}

.card-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.card-body h3 {
  margin-bottom: 0;
  font-size: 22px;
}

.card-body p {
  color: var(--muted);
  line-height: 1.55;
  font-weight: 700;
}

.button {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  color: #081208;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  font-weight: 950;
  cursor: pointer;
}

.button.secondary {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .06);
}

.page-title {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.page-title h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 54px);
}

.doc-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 22px;
}

.toc {
  position: sticky;
  top: 24px;
  height: fit-content;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-strong);
}

.toc a {
  display: block;
  padding: 11px 12px;
  color: var(--muted);
  border-radius: var(--radius);
  font-weight: 850;
}

.toc a:hover,
.toc a.active {
  color: #071207;
  background: var(--accent);
}

.doc-frame {
  min-height: 520px;
  padding: clamp(22px, 4vw, 48px);
}

.doc-content {
  max-width: 920px;
  font-size: 18px;
  line-height: 1.75;
}

.doc-content h1,
.doc-content h2,
.doc-content h3 {
  line-height: 1.15;
}

.doc-content h1 {
  font-size: clamp(36px, 5vw, 58px);
}

.doc-content h2 {
  margin-top: 30px;
  color: var(--accent);
}

.doc-content img {
  max-width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.doc-content iframe {
  width: 100%;
  border: 0;
  border-radius: 22px;
  background: rgba(0, 0, 0, .35);
}

.doc-content .post-cover {
  width: min(100%, 760px);
  height: clamp(180px, 24vw, 300px);
  object-fit: cover;
  object-position: center;
  margin: 0 0 28px;
  border-radius: 24px;
  box-shadow: 0 18px 54px rgba(0, 0, 0, .28);
}

.rules-embeds {
  display: grid;
  gap: 22px;
  margin-top: 34px;
}

.embed-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 26px;
  background: rgba(255, 255, 255, .035);
}

.embed-card h2 {
  margin: 0;
  color: var(--accent);
  font-size: 22px;
}

.empty {
  padding: 28px;
  color: var(--muted);
  border: 1px dashed rgba(255, 255, 255, .16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .035);
  font-weight: 800;
}

@media (max-width: 1080px) {
  .home-grid,
  .doc-layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    bottom: 0;
    top: auto;
    height: auto;
    flex-direction: row;
    justify-content: space-between;
    order: 2;
    padding: 10px;
    border-top: 1px solid var(--line);
    border-right: 0;
  }

  .brand,
  .support-dot {
    display: none;
  }

  .side-nav {
    display: flex;
    justify-content: space-between;
    gap: 8px;
  }

  .side-nav a {
    width: 42px;
    height: 42px;
  }

  .main {
    padding: 14px 14px 84px;
  }

  .topbar {
    grid-template-columns: 1fr;
  }

  .auth-actions {
    width: 100%;
    min-height: 50px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-mark {
    position: relative;
    right: auto;
    bottom: auto;
    width: 120px;
    height: 120px;
    margin-top: 24px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .page-title {
    align-items: start;
    flex-direction: column;
  }
}
