:root {
  --bg: #07110d;
  --panel: rgba(15, 28, 22, .84);
  --panel-strong: #10251a;
  --text: #f7f2df;
  --muted: #b9c6b7;
  --green: #50d44f;
  --gold: #ffc247;
  --cyan: #59d8ff;
  --lava: #ff6b24;
  --border: rgba(255, 255, 255, .14);
  --shadow: 0 24px 80px rgba(0, 0, 0, .35);
  font-family: "Segoe UI", Arial, ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  font-style: normal;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 167, 58, .24), transparent 28%),
    radial-gradient(circle at 78% 18%, rgba(70, 216, 255, .18), transparent 30%),
    linear-gradient(135deg, #08120e 0%, #142117 44%, #050807 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .75), transparent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 72px);
  backdrop-filter: blur(18px);
  background: rgba(5, 13, 10, .74);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0;
  flex-shrink: 0;
}

.brand span {
  white-space: nowrap;
}

.brand img { width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(0,0,0,.4)); }

.site-nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.site-nav a,
.ghost-btn,
.primary-btn,
.nav-toggle {
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 11px 16px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.site-nav a {
  color: var(--muted);
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, .09);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  color: var(--text);
  background: rgba(255, 255, 255, .08);
  border-color: var(--border);
}

.hero {
  min-height: calc(100vh - 82px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 560px);
  align-items: center;
  gap: clamp(28px, 6vw, 80px);
  padding: clamp(38px, 7vw, 92px) clamp(18px, 5vw, 72px) 42px;
}

.hero-copy h1,
.page-hero h1,
.admin-panel h1,
.admin-login h1 {
  margin: 8px 0 16px;
  font-size: clamp(3rem, 8vw, 7.6rem);
  line-height: .9;
  letter-spacing: 0;
  text-shadow: 0 8px 0 rgba(0, 0, 0, .22);
}

.lead,
.page-hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.65;
}

.eyebrow {
  margin: 0;
  color: var(--gold);
  text-transform: uppercase;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .14em;
}

.hero-actions,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-btn {
  color: #171005;
  background: linear-gradient(135deg, var(--gold), #ffdf70);
  box-shadow: 0 14px 30px rgba(255, 194, 71, .28);
}

.ghost-btn {
  color: var(--text);
  background: rgba(255, 255, 255, .08);
  border-color: var(--border);
}

.hero-logo {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-logo img {
  width: min(100%, 560px);
  animation: floatLogo 5s ease-in-out infinite;
  filter: drop-shadow(0 28px 40px rgba(0, 0, 0, .42));
}

.stats-band,
.section-grid,
.server-layout,
.details-grid,
.team-grid,
.vote-grid,
.rules-list,
.timeline,
.news-panel {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto clamp(42px, 7vw, 86px);
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--border);
  box-shadow: var(--shadow);
}

.stats-band div,
.feature,
.detail,
.member,
.vote-card,
.timeline,
.news-panel,
.rule,
.connect-card,
.admin-login,
.admin-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.stats-band div { padding: 22px; }
.stats-band strong { display: block; color: var(--text); font-size: 1.2rem; }
.stats-band span, .detail span, .member span { color: var(--muted); }

.section-grid,
.details-grid,
.team-grid,
.vote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature,
.member,
.vote-card,
.detail,
.connect-card,
.timeline,
.news-panel,
.rule {
  border-radius: 8px;
  padding: 24px;
}

.feature h2,
.member h2,
.vote-card h2,
.timeline h2,
.news-panel h2,
.rule h2 { margin: 8px 0 10px; }

.feature p,
.member p,
.vote-card p,
.timeline li,
.news-panel p,
.rule p { color: var(--muted); line-height: 1.65; }

.icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #08120e;
  background: var(--green);
  border-radius: 8px;
  font-weight: 900;
}

.news-panel {
  display: grid;
  grid-template-columns: .7fr 1fr;
  gap: 24px;
  align-items: center;
}

.page {
  padding: clamp(42px, 7vw, 90px) 0 32px;
}

.page-hero {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto 34px;
}

.page-hero h1 { font-size: clamp(2.6rem, 6vw, 5.8rem); }

.server-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 18px;
  align-items: stretch;
}

.connect-card {
  display: grid;
  justify-items: start;
  align-content: center;
}

.connect-card img { width: 180px; margin-bottom: 12px; }
.connect-card h2 { word-break: break-word; }
.details-grid { width: auto; margin: 0; grid-template-columns: repeat(3, 1fr); }
.detail strong { display: block; margin-top: 10px; font-size: 1.4rem; }

.timeline ol { margin: 0; padding-left: 22px; }
.timeline li { margin: 10px 0; }

.rules-list { display: grid; gap: 16px; }
.rule { display: grid; grid-template-columns: 58px 1fr; gap: 18px; align-items: start; }
.rule strong { color: var(--gold); font-size: 1.5rem; }

.vote-card {
  color: var(--text);
  text-decoration: none;
  min-height: 210px;
  transition: transform .2s ease, border-color .2s ease;
}

.vote-card:hover { transform: translateY(-4px); border-color: rgba(255, 194, 71, .7); }
.vote-card span { color: var(--cyan); font-weight: 900; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 40;
  transform: translate(-50%, 20px);
  opacity: 0;
  padding: 12px 16px;
  border-radius: 8px;
  color: #07110d;
  background: var(--green);
  font-weight: 900;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

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

.admin-body {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.admin-shell { width: min(900px, 100%); }
.admin-login { max-width: 460px; margin: auto; padding: 28px; border-radius: 8px; }
.admin-login img { width: 150px; }
.admin-login h1, .admin-panel h1 { font-size: clamp(2.2rem, 6vw, 4.2rem); }

.admin-login form,
.admin-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--text);
  background: rgba(0, 0, 0, .25);
  font: inherit;
  font-style: normal;
}

textarea { min-height: 110px; resize: vertical; }
.form-error { min-height: 22px; color: #ff9a86; font-weight: 800; }
.hidden { display: none !important; }
.admin-panel { padding: 28px; border-radius: 8px; }
.admin-top { display: flex; justify-content: space-between; gap: 18px; align-items: start; margin-bottom: 24px; }
.admin-form { grid-template-columns: repeat(2, 1fr); }
.admin-form label:nth-child(5), .admin-actions, .admin-note { grid-column: 1 / -1; }
.admin-note { color: var(--muted); margin: 0; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s ease, transform .65s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-16px) rotate(1deg); }
}

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    position: absolute;
    top: 82px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(5, 13, 10, .96);
  }
  .site-nav.open { display: flex; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-logo { order: -1; }
  .hero-logo img { width: min(84vw, 420px); }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .section-grid, .team-grid, .vote-grid, .server-layout, .news-panel { grid-template-columns: 1fr; }
  .details-grid { grid-template-columns: 1fr; }
  .admin-form { grid-template-columns: 1fr; }
  .admin-top, .site-footer { flex-direction: column; }
}

@media (max-width: 520px) {
  .brand span { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .stats-band { grid-template-columns: 1fr; }
  .rule { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: 3rem; }
  .site-header { padding-inline: 14px; }
}

/* Motion refresh */
body {
  background:
    radial-gradient(circle at var(--mouse-x, 22%) var(--mouse-y, 18%), rgba(89, 216, 255, .16), transparent 26%),
    radial-gradient(circle at 18% 12%, rgba(255, 167, 58, .28), transparent 28%),
    radial-gradient(circle at 78% 18%, rgba(80, 212, 79, .16), transparent 30%),
    linear-gradient(135deg, #07110d 0%, #13251a 46%, #050807 100%);
}

body::before {
  animation: gridDrift 18s linear infinite;
}

body::after {
  content: "";
  position: fixed;
  inset: -40%;
  z-index: -1;
  pointer-events: none;
  background: conic-gradient(from 90deg at 50% 50%, transparent 0 22%, rgba(255, 194, 71, .16), transparent 36% 62%, rgba(89, 216, 255, .12), transparent 76% 100%);
  opacity: .62;
  animation: slowSpin 28s linear infinite;
}

.pixel-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.pixel-field span {
  position: absolute;
  left: var(--x);
  bottom: -24px;
  width: var(--size);
  height: var(--size);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 3px;
  background: rgba(255, 194, 71, .16);
  box-shadow: 0 0 18px rgba(255, 194, 71, .2);
  animation: pixelRise var(--speed) linear infinite;
  animation-delay: var(--delay);
}

.pixel-field span:nth-child(3n) {
  background: rgba(89, 216, 255, .14);
  box-shadow: 0 0 18px rgba(89, 216, 255, .2);
}

.pixel-field span:nth-child(4n) {
  background: rgba(80, 212, 79, .13);
  box-shadow: 0 0 18px rgba(80, 212, 79, .2);
}

.site-header {
  backdrop-filter: blur(22px) saturate(135%);
  background: linear-gradient(90deg, rgba(5, 13, 10, .86), rgba(9, 22, 17, .72));
  box-shadow: 0 18px 50px rgba(0, 0, 0, .2);
}

.brand img {
  animation: logoPulse 4.5s ease-in-out infinite;
}

.site-nav a {
  position: relative;
  overflow: hidden;
  transition: color .22s ease, background .22s ease, transform .22s ease, border-color .22s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  inset: auto 14px 7px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

.site-nav a:hover,
.site-nav a.active {
  border-color: rgba(255, 255, 255, .1);
  transform: translateY(-2px);
}

.site-nav a:hover::after,
.site-nav a.active::after {
  transform: scaleX(1);
}

.hero,
.page,
.site-footer,
.admin-shell {
  position: relative;
  z-index: 1;
}

.hero-copy h1,
.page-hero h1,
.admin-panel h1,
.admin-login h1 {
  background: linear-gradient(180deg, #fff8dd 0%, #e9dfbf 52%, #c4b88e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 8px 0 rgba(0, 0, 0, .22), 0 0 38px rgba(255, 194, 71, .12);
}

.primary-btn,
.ghost-btn {
  position: relative;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease, background .22s ease, border-color .22s ease;
}

.primary-btn::before,
.ghost-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 35%, rgba(255, 255, 255, .36), transparent 64% 100%);
  transform: translateX(-120%);
}

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-3px) scale(1.02);
}

.primary-btn:hover {
  box-shadow: 0 18px 42px rgba(255, 194, 71, .38);
  filter: saturate(1.08);
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .24);
}

.primary-btn:hover::before,
.ghost-btn:hover::before {
  animation: shineSweep .85s ease;
}

.hero-logo img,
.admin-login img {
  animation: floatLogo 5s ease-in-out infinite, glowBeat 3.8s ease-in-out infinite;
}

.stats-band div,
.feature,
.detail,
.member,
.vote-card,
.timeline,
.news-panel,
.rule,
.connect-card,
.admin-login,
.admin-panel {
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(22px) saturate(135%);
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform .18s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
  will-change: transform;
}

.feature::before,
.detail::before,
.member::before,
.vote-card::before,
.timeline::before,
.news-panel::before,
.rule::before,
.connect-card::before,
.admin-login::before,
.admin-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--shine-x, 50%) var(--shine-y, 50%), rgba(255, 255, 255, .18), transparent 34%);
  opacity: 0;
  transition: opacity .2s ease;
}

.feature:hover,
.detail:hover,
.member:hover,
.vote-card:hover,
.timeline:hover,
.news-panel:hover,
.rule:hover,
.connect-card:hover,
.admin-login:hover,
.admin-panel:hover {
  border-color: rgba(255, 194, 71, .34);
  background: rgba(16, 36, 26, .82);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .46), 0 0 40px rgba(255, 194, 71, .08);
}

.feature:hover::before,
.detail:hover::before,
.member:hover::before,
.vote-card:hover::before,
.timeline:hover::before,
.news-panel:hover::before,
.rule:hover::before,
.connect-card:hover::before,
.admin-login:hover::before,
.admin-panel:hover::before {
  opacity: 1;
}

.stats-band div:hover {
  transform: perspective(900px) translateY(-3px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  background: rgba(20, 44, 32, .9);
}

.vote-card:hover {
  transform: perspective(900px) translateY(-6px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
}

.icon {
  box-shadow: 0 0 28px rgba(80, 212, 79, .24);
  animation: iconBob 3s ease-in-out infinite;
}

input,
textarea {
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease, transform .2s ease;
}

input:focus,
textarea:focus {
  border-color: rgba(89, 216, 255, .62);
  background: rgba(0, 0, 0, .34);
  box-shadow: 0 0 0 4px rgba(89, 216, 255, .1), 0 12px 34px rgba(0, 0, 0, .22);
  transform: translateY(-1px);
}

.admin-shell {
  width: min(980px, 100%);
}

.admin-login {
  max-width: 500px;
  padding: 32px;
}

.admin-panel {
  padding: 30px;
}

.reveal {
  transform: translateY(24px) scale(.98);
  filter: blur(8px);
  transition: opacity .75s ease, transform .75s ease, filter .75s ease;
}

.reveal.in-view {
  transform: translateY(0) scale(1);
  filter: blur(0);
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

@keyframes glowBeat {
  0%, 100% { filter: drop-shadow(0 28px 40px rgba(0, 0, 0, .42)) drop-shadow(0 0 0 rgba(255, 194, 71, 0)); }
  50% { filter: drop-shadow(0 30px 44px rgba(0, 0, 0, .48)) drop-shadow(0 0 28px rgba(255, 194, 71, .2)); }
}

@keyframes gridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 48px 48px, 48px 48px; }
}

@keyframes slowSpin {
  to { transform: rotate(1turn); }
}

@keyframes pixelRise {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: .7; }
  100% { transform: translateY(-115vh) rotate(240deg); opacity: 0; }
}

@keyframes shineSweep {
  to { transform: translateX(120%); }
}

@keyframes iconBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@media (max-width: 980px) {
  .feature,
  .detail,
  .member,
  .vote-card,
  .timeline,
  .news-panel,
  .rule,
  .connect-card,
  .admin-login,
  .admin-panel {
    transform: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  .pixel-field { display: none; }
}

/* Full-site polish */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  width: var(--progress, 0%);
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--green), var(--cyan));
  box-shadow: 0 0 18px rgba(255, 194, 71, .58);
  pointer-events: none;
}

.motion-ready main {
  animation: pageBloom .7s ease both;
}

.site-header::after {
  content: "";
  position: absolute;
  left: clamp(18px, 5vw, 72px);
  right: clamp(18px, 5vw, 72px);
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 194, 71, .72), rgba(89, 216, 255, .42), transparent);
  opacity: .8;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 12% 5% auto auto;
  width: min(42vw, 480px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 49%, rgba(255, 255, 255, .08) 50%, transparent 51%),
    linear-gradient(transparent 49%, rgba(255, 255, 255, .08) 50%, transparent 51%);
  filter: blur(.2px);
  opacity: .48;
  animation: orbitRing 18s linear infinite;
  pointer-events: none;
}

.hero-copy {
  position: relative;
}

.hero-copy::before,
.page-hero::before {
  content: "";
  display: block;
  width: 74px;
  height: 5px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--green), var(--cyan));
  box-shadow: 0 0 24px rgba(255, 194, 71, .26);
}

.lead {
  border-left: 3px solid rgba(255, 194, 71, .58);
  padding-left: 18px;
}

.stats-band {
  position: relative;
  isolation: isolate;
}

.stats-band::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  background: linear-gradient(90deg, var(--gold), var(--green), var(--cyan), var(--gold));
  background-size: 240% 100%;
  animation: borderFlow 7s linear infinite;
}

.stats-band strong[data-admin-field="status"] {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.stats-band strong[data-admin-field="status"]::before,
.detail strong[data-admin-field="status"]::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(80, 212, 79, .55);
  animation: statusPulse 1.8s ease-in-out infinite;
}

.detail strong[data-admin-field="status"] {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.feature::after,
.member::after,
.vote-card::after,
.detail::after,
.connect-card::after,
.rule::after {
  content: "";
  position: absolute;
  inset: auto 18px 18px auto;
  width: 44px;
  height: 44px;
  border-right: 2px solid rgba(255, 194, 71, .28);
  border-bottom: 2px solid rgba(89, 216, 255, .22);
  opacity: .78;
  transform: translate(8px, 8px);
  transition: transform .22s ease, opacity .22s ease;
}

.feature:hover::after,
.member:hover::after,
.vote-card:hover::after,
.detail:hover::after,
.connect-card:hover::after,
.rule:hover::after {
  opacity: 1;
  transform: translate(0, 0);
}

.feature h2,
.member h2,
.vote-card h2,
.detail strong,
.rule h2 {
  text-shadow: 0 0 22px rgba(255, 194, 71, .1);
}

.page-hero {
  position: relative;
  padding: 18px 0 8px;
}

.page-hero::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: min(34vw, 280px);
  aspect-ratio: 1;
  background: url("../assets/sandwi4-logo.png") center / contain no-repeat;
  opacity: .08;
  filter: saturate(1.2);
  pointer-events: none;
  animation: ghostLogo 6s ease-in-out infinite;
}

.connect-card {
  isolation: isolate;
}

.connect-card::before {
  opacity: .5;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 194, 71, .2), transparent 35%),
    radial-gradient(circle at 80% 80%, rgba(89, 216, 255, .14), transparent 34%);
}

.connect-card img {
  animation: floatLogo 5s ease-in-out infinite, glowBeat 3.8s ease-in-out infinite;
}

.timeline ol {
  counter-reset: joinSteps;
  list-style: none;
  padding-left: 0;
}

.timeline li {
  counter-increment: joinSteps;
  position: relative;
  padding-left: 48px;
}

.timeline li::before {
  content: counter(joinSteps);
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: #07110d;
  background: linear-gradient(135deg, var(--gold), var(--green));
  font-weight: 900;
  box-shadow: 0 0 24px rgba(255, 194, 71, .22);
}

.rule strong {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: rgba(255, 194, 71, .12);
  border: 1px solid rgba(255, 194, 71, .24);
  box-shadow: inset 0 0 24px rgba(255, 194, 71, .08), 0 0 24px rgba(255, 194, 71, .08);
}

.vote-card {
  display: grid;
  align-content: start;
}

.vote-card span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  border-radius: 8px;
  background: rgba(89, 216, 255, .11);
  border: 1px solid rgba(89, 216, 255, .25);
}

.vote-card h2::after {
  content: "↗";
  display: inline-block;
  margin-left: 10px;
  color: var(--gold);
  transition: transform .22s ease;
}

.vote-card:hover h2::after {
  transform: translate(3px, -3px);
}

.member span,
.detail span {
  display: inline-flex;
  width: max-content;
  padding: 6px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08);
}

.news-panel {
  isolation: isolate;
}

.news-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, rgba(255, 194, 71, .1), transparent 35%, rgba(89, 216, 255, .08));
  opacity: .75;
}

.ripple {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(255, 255, 255, .46);
  transform: translate(-50%, -50%) scale(0);
  animation: ripple .65s ease-out;
}

@keyframes pageBloom {
  from { opacity: 0; transform: translateY(10px); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes orbitRing {
  to { transform: rotate(1turn); }
}

@keyframes borderFlow {
  to { background-position: 240% 0; }
}

@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(80, 212, 79, .52); }
  50% { box-shadow: 0 0 0 9px rgba(80, 212, 79, 0); }
}

@keyframes ghostLogo {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes ripple {
  to { transform: translate(-50%, -50%) scale(18); opacity: 0; }
}

@media (max-width: 980px) {
  .hero::before,
  .page-hero::after {
    display: none;
  }

  .site-nav {
    backdrop-filter: blur(22px) saturate(135%);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .42);
  }
}
