/* =============================================================
   OMEGYX — Centered single-page layout
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Share+Tech+Mono&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #0a0c15;
  background-image:
    linear-gradient(rgba(10,12,21,0.55), rgba(10,12,21,0.72)),
    var(--hero-bg, none);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  position: relative;
}

/* Subtle ambient glow when no background image is set */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 10%, rgba(109,40,217,0.2) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(6,182,212,0.1) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

/* =============================================================
   STAGE — centres all content
   ============================================================= */

.stage {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  width: 100%;
  padding: 2rem 1.5rem 4rem; /* bottom pad leaves room for corner footer */
  position: relative;
  z-index: 1;
}

.center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  text-align: center;
}

/* =============================================================
   SERVER NAME
   ============================================================= */

.server-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(5rem, 22vw, 13rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
  color: #fff;
  text-shadow:
    0 0 60px rgba(139,92,246,0.35),
    0 2px 4px rgba(0,0,0,0.5);
  user-select: none;
}

/* =============================================================
   PLAYER COUNT
   ============================================================= */

.player-count {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

.player-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e, 0 0 16px rgba(34,197,94,0.4);
  flex-shrink: 0;
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.8); }
}

/* =============================================================
   IP ADDRESS — click to copy
   ============================================================= */

.ip-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  padding: 0;
}

.ip-text {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(1.375rem, 5vw, 2.5rem);
  color: #fff;
  letter-spacing: 0.02em;
  padding: 0.625rem 1.75rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
  display: block;
}
.ip-block:hover .ip-text {
  background: rgba(139,92,246,0.12);
  border-color: rgba(139,92,246,0.45);
  box-shadow: 0 0 24px rgba(139,92,246,0.2);
}
.ip-block.copied .ip-text {
  background: rgba(34,197,94,0.1);
  border-color: rgba(34,197,94,0.4);
  box-shadow: 0 0 20px rgba(34,197,94,0.15);
}

.ip-copy-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  transition: color 0.2s;
}
.ip-block:hover .ip-copy-hint { color: rgba(255,255,255,0.55); }
.ip-block.copied .ip-copy-hint { color: rgba(34,197,94,0.7); }

.icon-check { display: none; }
.ip-block.copied .icon-copy  { display: none; }
.ip-block.copied .icon-check { display: block; }
.ip-block.copied .hint-text  { content: 'Copied!'; }

/* =============================================================
   NAV LINKS
   ============================================================= */

.site-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

.site-link {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.55);
  padding: 0.375rem 0.75rem;
  border-radius: 7px;
  transition: color 0.15s, background 0.15s;
}
.site-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.07);
}

.link-sep {
  color: rgba(255,255,255,0.18);
  font-size: 0.75rem;
  pointer-events: none;
  user-select: none;
}

/* =============================================================
   CORNER FOOTER — bottom-right
   ============================================================= */

.corner-footer {
  position: fixed;
  bottom: 1.125rem;
  right: 1.25rem;
  text-align: right;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  max-width: min(340px, 90vw);
}

.disclaimer {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.2);
  line-height: 1.4;
}

.legal-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.875rem;
  flex-wrap: wrap;
}

.legal-links a,
.legal-links span {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  transition: color 0.15s;
}
.legal-links a:hover { color: rgba(255,255,255,0.6); }

/* =============================================================
   COPY TOAST
   ============================================================= */

.copy-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  padding: 0.5rem 1.25rem;
  background: rgba(20,24,40,0.95);
  border: 1px solid rgba(139,92,246,0.4);
  border-radius: 9px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a78bfa;
  opacity: 0;
  pointer-events: none;
  z-index: 99;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
  backdrop-filter: blur(12px);
}
.copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* =============================================================
   VOTE PAGE
   ============================================================= */

.vote-page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  max-width: 520px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
  position: relative;
  z-index: 1;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.5rem;
  transition: color 0.15s;
}
.back-link:hover { color: rgba(255,255,255,0.8); }

.vote-page-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.375rem;
}
.vote-page-desc {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  font-family: 'Nunito', sans-serif;
}

.vote-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
}

.vote-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.vote-item:hover {
  background: rgba(139,92,246,0.1);
  border-color: rgba(139,92,246,0.35);
  color: #fff;
}
.vote-item svg { opacity: 0.4; transition: opacity 0.15s; }
.vote-item:hover svg { opacity: 1; }

/* =============================================================
   LEGAL PAGE
   ============================================================= */

body.legal {
  overflow: auto;
  display: block;
  justify-content: unset;
  align-items: unset;
}

.legal-page {
  min-height: 100vh;
  min-height: 100svh;
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
  position: relative;
  z-index: 1;
}

.legal-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.legal-meta {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.35);
  font-family: 'Share Tech Mono', monospace;
  margin-bottom: 2.25rem;
}

.legal-body section {
  margin-bottom: 1.75rem;
}

.legal-body h2 {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.5rem;
}

.legal-body p,
.legal-body li {
  font-size: 0.9375rem;
  font-family: 'Nunito', sans-serif;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
}

.legal-body ul {
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-top: 0.5rem;
}

.legal-body a {
  color: rgba(139,92,246,0.9);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-body a:hover { color: #fff; }

/* =============================================================
   RESPONSIVE TWEAKS
   ============================================================= */

@media (max-width: 480px) {
  .center { gap: 1.25rem; }
  .corner-footer { right: 0.875rem; bottom: 0.875rem; }
  .site-link { padding: 0.3rem 0.5rem; font-size: 0.9375rem; }
}

/* Ensure the copy toast doesn't overlap corner footer on small screens */
@media (max-width: 480px) {
  .copy-toast { bottom: 5rem; }
}
