:root {
  color-scheme: dark;
  --bg: #05080f;
  --bg-soft: #08111c;
  --panel: rgba(10, 20, 33, 0.78);
  --panel-strong: rgba(13, 27, 43, 0.94);
  --line: rgba(129, 220, 255, 0.18);
  --line-strong: rgba(127, 235, 255, 0.42);
  --text: #f4fbff;
  --muted: #a6bed1;
  --cyan: #19d9ff;
  --blue: #3b82f6;
  --green: #5cff9d;
  --pink: #ff4d86;
  --gold: #ffd166;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(25, 217, 255, 0.07), transparent 32%),
    linear-gradient(225deg, rgba(255, 110, 36, 0.07), transparent 35%),
    linear-gradient(180deg, #05080f 0%, #07111c 48%, #04070d 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 78%);
  z-index: -1;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site {
  min-height: 100vh;
  overflow: hidden;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(5, 8, 15, 0.78);
  border-bottom: 1px solid var(--line);
}

.navbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(25, 217, 255, 0.72), transparent);
  opacity: 0.55;
}

.nav-inner {
  width: min(var(--max), calc(100% - 32px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 24px rgba(25, 217, 255, 0.18);
}

.brand strong {
  display: block;
  font-size: 1.04rem;
  line-height: 1.1;
}

.brand span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-link {
  padding: 9px 11px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
  background: rgba(25, 217, 255, 0.11);
  transform: translateY(-1px);
}

.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 1.35rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.075);
}

.btn-primary {
  color: #031018;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  border-color: transparent;
  box-shadow: 0 14px 34px rgba(25, 217, 255, 0.22);
}

.btn-primary:hover {
  box-shadow: 0 18px 42px rgba(25, 217, 255, 0.32);
}

.btn-ghost {
  color: var(--text);
}

.hero {
  position: relative;
  min-height: min(780px, 78vh);
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(5, 8, 15, 0.92) 0%, rgba(5, 8, 15, 0.64) 48%, rgba(5, 8, 15, 0.28) 100%),
    var(--hero-image) center / cover no-repeat;
  border-bottom: 1px solid var(--line);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 150px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 86px 0 110px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 42px;
  align-items: center;
}

.hero-content {
  min-width: 0;
}

.hero-status {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(3, 8, 14, 0.58);
  color: #d9eaf7;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.hero-status strong {
  color: var(--green);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(92, 255, 157, 0.12);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.72); opacity: 0.72; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(3.2rem, 10vw, 7.4rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 680px;
  color: #d7e9f7;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.7;
  margin-bottom: 28px;
}

.hero-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.quick-strip {
  width: min(var(--max), calc(100% - 32px));
  margin: -58px auto 0;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.stat-card,
.tile,
.info-card,
.content-card,
.timeline-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(13, 27, 43, 0.92), rgba(8, 16, 27, 0.92));
  box-shadow: var(--shadow);
}

.stat-card {
  padding: 18px;
  min-height: 96px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.stat-card strong {
  font-size: 1.35rem;
}

.stat-card em {
  display: inline-block;
  color: var(--green);
  font-style: normal;
}

.section {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 86px 0 0;
}

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

.section-head h2,
.page-title h1 {
  margin-bottom: 8px;
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 1;
}

.section-head p,
.page-title p {
  color: var(--muted);
  max-width: 700px;
  line-height: 1.7;
  margin-bottom: 0;
}

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

.live-preview-section {
  padding-top: 74px;
}

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

.home-feed-card {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(13, 27, 43, 0.9), rgba(6, 13, 22, 0.94)),
    rgba(7, 16, 27, 0.9);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.home-feed-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  background:
    linear-gradient(180deg, rgba(15, 34, 53, 0.96), rgba(6, 13, 22, 0.96)),
    rgba(7, 16, 27, 0.95);
}

.home-feed-card span {
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.home-feed-card strong {
  font-size: 1.15rem;
}

.home-feed-card p {
  min-height: 54px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.home-feed-card.is-loading {
  opacity: 0.68;
}

.tile {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 104px;
  padding: 18px;
  overflow: hidden;
  position: relative;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(25, 217, 255, 0.14), transparent 44%);
  opacity: 0;
  transition: opacity 180ms ease;
}

.tile:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.tile:hover::after {
  opacity: 1;
}

.tile-icon {
  position: relative;
  z-index: 1;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(25, 217, 255, 0.1);
  border: 1px solid var(--line);
  font-size: 1.45rem;
}

.tile-text {
  position: relative;
  z-index: 1;
}

.tile-text strong {
  display: block;
  margin-bottom: 5px;
}

.tile-text span {
  color: var(--muted);
  font-size: 0.9rem;
}

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

.info-card,
.content-card {
  padding: 22px;
}

.info-card h3,
.content-card h3,
.timeline-card h3 {
  margin-bottom: 9px;
  font-size: 1.15rem;
}

.info-card p,
.content-card p,
.timeline-card p {
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 0;
}

.server-panel {
  margin-top: 86px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.join-deck {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 18px;
  align-items: stretch;
}

.join-copy,
.join-steps article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(13, 27, 43, 0.92), rgba(8, 16, 27, 0.92));
  box-shadow: var(--shadow);
}

.join-copy {
  padding: 28px;
}

.join-copy h2 {
  margin: 10px 0 12px;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
}

.join-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.join-steps article {
  min-height: 174px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 180ms ease, border-color 180ms ease;
}

.join-steps article:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.join-steps span {
  width: fit-content;
  padding: 6px 8px;
  border-radius: var(--radius);
  color: #041018;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  font-size: 0.8rem;
  font-weight: 900;
}

.join-steps strong {
  font-size: 1.16rem;
}

.join-steps p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.discord-profile {
  margin-top: 24px;
  max-width: 720px;
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5, 8, 15, 0.56);
  backdrop-filter: blur(12px);
}

.owner-card {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 430px;
  padding: 26px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(25, 217, 255, 0.16), rgba(255, 110, 36, 0.09)),
    rgba(6, 12, 22, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}

.owner-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 48%, rgba(25, 217, 255, 0.16) 49%, transparent 51% 100%);
  opacity: 0.7;
  pointer-events: none;
}

.owner-card > * {
  position: relative;
  z-index: 1;
}

.owner-badge {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: rgba(3, 8, 14, 0.72);
  box-shadow: 0 0 40px rgba(25, 217, 255, 0.18);
  font-size: 2rem;
  overflow: hidden;
}

.owner-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.owner-card .eyebrow {
  margin-top: 22px;
}

.owner-rank {
  width: fit-content;
  margin-top: 16px;
  padding: 7px 9px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 209, 102, 0.34);
  background: rgba(255, 209, 102, 0.08);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.owner-card h2 {
  margin: 10px 0 10px;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 0.95;
}

.owner-card p {
  color: #d7e9f7;
  line-height: 1.65;
}

.owner-stats {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.owner-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.22);
}

.owner-stat span {
  color: var(--muted);
}

.owner-stat strong {
  color: var(--text);
}

.discord-profile img {
  width: 86px;
  height: 86px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 34px rgba(25, 217, 255, 0.24);
  object-fit: cover;
}

.discord-profile h3 {
  margin: 0 0 6px;
  font-size: 1.5rem;
}

.discord-profile p {
  margin: 0 0 12px;
  color: var(--muted);
}

.discord-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.discord-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 800;
}

.ip-panel {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(135deg, rgba(25, 217, 255, 0.18), rgba(92, 255, 157, 0.08)),
    rgba(10, 20, 33, 0.9);
}

.ip-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.26);
}

.ip-box code {
  font-size: clamp(1rem, 2vw, 1.35rem);
  color: var(--cyan);
  font-weight: 900;
}

.page-hero {
  padding: 74px 0 40px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(5, 8, 15, 0.92), rgba(5, 8, 15, 0.58)),
    var(--hero-image) center / cover no-repeat;
}

.page-title {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.page-body {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0 92px;
}

.content-card {
  min-height: 180px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.content-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.content-card .tag {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 9px;
  border-radius: var(--radius);
  color: #041018;
  background: var(--cyan);
  font-weight: 900;
  font-size: 0.78rem;
}

.live-feed {
  display: grid;
  gap: 14px;
}

.feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.feed-header h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.feed-header span {
  color: var(--muted);
  font-size: 0.95rem;
}

.feed-post {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(13, 27, 43, 0.92), rgba(8, 16, 27, 0.92));
  box-shadow: var(--shadow);
}

.feed-avatar {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(25, 217, 255, 0.11);
  overflow: hidden;
}

.feed-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-author {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.feed-author strong {
  color: var(--text);
}

.feed-author time {
  color: var(--muted);
  font-size: 0.88rem;
}

.feed-content {
  color: #d9eaf7;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.feed-content.muted {
  color: var(--muted);
}

.feed-content code,
.embed-description code,
.embed-field code {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.35);
  color: #f5fbff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.mention {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  margin: 0 1px;
  padding: 1px 7px;
  border-radius: 5px;
  color: #f5fbff;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--mention-color) 34%, transparent), color-mix(in srgb, var(--mention-color) 20%, transparent));
  border: 1px solid color-mix(in srgb, var(--mention-color) 56%, transparent);
  font-weight: 800;
  white-space: nowrap;
}

.mention-channel {
  --mention-color: #5865f2;
  color: #dfe4ff;
}

.embed-stack,
.attachment-stack {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.discord-embed {
  max-width: 620px;
  padding: 14px 14px 14px 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--embed-color);
  border-radius: var(--radius);
  background: rgba(4, 8, 15, 0.55);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
}

.embed-author,
.embed-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.embed-author img,
.embed-footer img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.embed-author a,
.discord-embed h3 a {
  color: var(--text);
}

.embed-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  margin-top: 8px;
}

.discord-embed h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.embed-description {
  color: #d9eaf7;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.embed-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.embed-field {
  display: grid;
  gap: 4px;
  color: #d9eaf7;
  line-height: 1.45;
}

.embed-field:not(.is-inline) {
  grid-column: 1 / -1;
}

.embed-field strong {
  color: var(--text);
}

.embed-field span {
  color: var(--muted);
}

.embed-thumbnail img {
  width: 84px;
  max-height: 84px;
  border-radius: var(--radius);
  object-fit: cover;
  border: 1px solid var(--line);
}

.embed-image {
  display: block;
  margin-top: 12px;
}

.embed-image img,
.image-attachment img {
  max-width: min(100%, 520px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  object-fit: cover;
}

.embed-footer {
  margin-top: 12px;
}

.feed-attachment {
  width: fit-content;
  max-width: 100%;
}

.file-attachment {
  display: inline-flex;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(25, 217, 255, 0.08);
  color: var(--text);
  font-weight: 800;
}

.feed-empty {
  padding: 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(25, 217, 255, 0.06);
  color: var(--muted);
  line-height: 1.65;
}

.feed-empty strong {
  color: var(--text);
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-card {
  padding: 20px;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
}

.timeline-card time {
  color: var(--green);
  font-weight: 900;
}

.notice {
  margin-top: 28px;
  padding: 20px;
  border: 1px solid rgba(255, 209, 102, 0.36);
  border-radius: var(--radius);
  background: rgba(255, 209, 102, 0.08);
  color: #ffe6a6;
  line-height: 1.65;
}

.footer {
  border-top: 1px solid var(--line);
  background: rgba(3, 6, 11, 0.78);
}

.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  color: var(--text);
  font-weight: 800;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 50;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: rgba(7, 16, 27, 0.96);
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, opacity 180ms ease;
}

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

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1060px) {
  .nav-links {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 82px;
    display: none;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(5, 8, 15, 0.96);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-link {
    width: 100%;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

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

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

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

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

@media (max-width: 760px) {
  .nav-inner {
    width: min(100% - 22px, var(--max));
  }

  .nav-actions .btn-ghost {
    display: none;
  }

  .hero {
    min-height: 74vh;
    background-position: 38% center;
  }

  .hero-inner {
    width: min(100% - 28px, var(--max));
    padding: 68px 0 92px;
    grid-template-columns: 1fr;
  }

  .owner-card {
    min-height: auto;
  }

  .quick-strip {
    grid-template-columns: 1fr;
    margin-top: -44px;
    width: min(100% - 28px, var(--max));
  }

  .section,
  .page-body,
  .page-title,
  .footer-inner {
    width: min(100% - 28px, var(--max));
  }

  .section {
    padding-top: 68px;
  }

  .section-head {
    display: block;
  }

  .section-head .btn {
    margin-top: 18px;
  }

  .channel-grid,
  .home-feed-grid,
  .info-grid,
  .page-grid,
  .join-steps,
  .server-panel {
    grid-template-columns: 1fr;
  }

  .discord-profile {
    grid-template-columns: 64px 1fr;
  }

  .discord-profile img {
    width: 64px;
    height: 64px;
  }

  .feed-header {
    display: block;
  }

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

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .brand span {
    display: none;
  }

  .btn {
    width: 100%;
  }

  .nav-actions .btn-primary {
    width: auto;
  }

  .hero-actions,
  .page-actions {
    display: grid;
  }

  .ip-box {
    align-items: stretch;
    flex-direction: column;
  }

  .discord-profile,
  .feed-post {
    grid-template-columns: 1fr;
  }
}
