/* =========================================================
   CreatorCraft — The End
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Pixelify+Sans:wght@400;500;600;700&display=swap');

:root {
  --void: #030204;
  --void-2: #0c0913;
  --line: rgba(255, 200, 150, 0.12);
  --line-strong: rgba(255, 141, 61, 0.5);
  --orange: #ff8a3d;
  --orange-soft: #ffb066;
  --orange-deep: #a2451a;
  --text: #f5efe6;
  --text-dim: #a89a8c;
  --text-faint: #6e6258;

  --font: 'Pixelify Sans', system-ui, sans-serif;
  --radius: 10px;
  --radius-sm: 6px;
  --max-width: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--void);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--orange-deep); color: #fff; }
:focus-visible { outline: 1px solid var(--orange); outline-offset: 3px; }

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 32px; }

h1, h2, h3 {
  font-family: var(--font);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.05;
  margin: 0;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(2.6rem, 7.5vw, 5.6rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
p { color: var(--text-dim); max-width: 58ch; margin: 0; font-size: 0.95rem; }

.mono { font-family: var(--font); }

/* -------- section label -------- */
.tag {
  font-family: var(--font);
  font-size: 0.68rem;
  color: var(--orange-soft);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* -------- buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 15px 26px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn-primary { background: var(--orange); border-color: var(--orange); color: #1a0d02; }
.btn-primary:hover { background: transparent; color: var(--orange-soft); }
.btn-outline:hover { background: var(--orange); color: #1a0d02; border-color: var(--orange); }

/* -------- Hero -------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
#hero-canvas { display: none; }

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  animation: drift 14s ease-in-out infinite;
}
.hero-glow-a {
  width: 520px; height: 520px;
  background: radial-gradient(circle, var(--orange) 0%, transparent 70%);
  top: -120px; left: 50%;
  transform: translateX(-65%);
}
.hero-glow-b {
  width: 420px; height: 420px;
  background: radial-gradient(circle, #7a3fe0 0%, transparent 70%);
  bottom: -80px; left: 50%;
  transform: translateX(-35%);
  animation-delay: -7s;
}
@keyframes drift {
  0%, 100% { transform: translate(-65%, 0) scale(1); }
  50% { transform: translate(-55%, 20px) scale(1.08); }
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.35;
  mix-blend-mode: overlay;
}
@media (prefers-reduced-motion: reduce) {
  .hero-glow { animation: none; }
}

.hero-mark {
  position: absolute;
  top: 30px;
  left: 32px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-mark img { width: 28px; height: 28px; border-radius: var(--radius-sm); }
.hero-mark span { font-family: var(--font); font-size: 0.68rem; color: var(--text-dim); letter-spacing: 0.08em; }

.hero-coords {
  position: absolute;
  top: 30px;
  right: 32px;
  z-index: 3;
  font-family: var(--font);
  font-size: 0.62rem;
  color: var(--text-faint);
  text-align: right;
  letter-spacing: 0.03em;
  line-height: 1.5;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-content .tag { display: block; margin-bottom: 10px; }
.hero-content h1 { color: var(--text); }
.hero-content h1 .accent { color: var(--orange-soft); }
.hero-content p.lead { margin: 18px 0 0; font-size: 0.98rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; justify-content: center; }

/* -------- join bar -------- */
.join-bar {
  position: relative;
  z-index: 2;
  margin-top: 46px;
  border-top: 1px solid var(--line);
  background: rgba(12, 9, 19, 0.55);
  backdrop-filter: blur(6px);
}
.join-bar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.join-line {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font);
  font-size: 0.82rem;
  flex-wrap: wrap;
}
.join-line .label { color: var(--text-faint); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; }
.join-line .ip { color: var(--orange-soft); }
.join-bar button {
  font-family: var(--font);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  cursor: pointer;
  text-transform: uppercase;
}
.join-bar button:hover { color: var(--orange-soft); border-color: var(--orange); }

.status-row { display: flex; gap: 26px; flex-wrap: wrap; font-family: var(--font); font-size: 0.72rem; }
.status-pill { display: flex; align-items: center; gap: 8px; color: var(--text-dim); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--orange-soft); flex: none; }
.status-dot.offline { background: #e0517a; }

/* -------- section -------- */
.section { padding: 96px 0; border-bottom: 1px solid var(--line); }
.section:last-of-type { border-bottom: none; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 44px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
}
.section-head h2 { color: var(--text); }
.section-head .tag { margin-bottom: 0; }
.section.align-right .section-head { flex-direction: row-reverse; text-align: right; }

/* -------- unique selling points -------- */
.feature-list { display: flex; flex-direction: column; }
.feature-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.feature-row:last-child { border-bottom: none; }
.feature-num {
  font-size: 0.85rem;
  color: var(--orange-soft);
  min-width: 2.4em;
  flex: none;
  padding-top: 2px;
}
.feature-text h3 { color: var(--text); font-size: 1.05rem; margin-bottom: 8px; }
.feature-text p { font-size: 0.92rem; }

/* -------- online players -------- */
.player-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.player-card {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 14px 8px 8px;
  background: var(--void-2);
}
.player-card img { width: 30px; height: 30px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); }
.player-card .name { font-family: var(--font); font-size: 0.78rem; color: var(--text); }

.empty-note {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 22px;
  color: var(--text-faint);
  font-family: var(--font);
  font-size: 0.78rem;
}

/* -------- trailer -------- */
.trailer-frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  aspect-ratio: 16/9;
  background: var(--void-2);
  overflow: hidden;
}
.trailer-frame iframe { width: 100%; height: 100%; border: 0; position: absolute; inset: 0; }
.trailer-soon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  font-family: var(--font);
  color: var(--text-faint);
  text-align: center;
}
.trailer-soon .big { font-family: var(--font); font-size: 1.4rem; text-transform: uppercase; color: var(--orange-soft); letter-spacing: 0.03em; }

/* -------- discord -------- */
.discord-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.discord-row .count { font-family: var(--font); font-size: 0.9rem; display: flex; align-items: center; gap: 10px; }
.member-avatars { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.member-avatars .avatar {
  width: 34px; height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
}
.member-avatars .avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-avatars .avatar .status-dot { position: absolute; bottom: 1px; right: 1px; border: 1px solid var(--void); }
.dstatus-online { background: #57e389; }
.dstatus-idle { background: #f5b942; }
.dstatus-dnd { background: #e0517a; }

/* -------- team -------- */
.role-block { margin-bottom: 44px; }
.role-block:last-child { margin-bottom: 0; }
.role-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin-bottom: 4px;
}
.role-head h3 { font-size: 1rem; color: var(--text); }
.role-head .count { font-family: var(--font); font-size: 0.64rem; color: var(--text-faint); }

.team-grid { display: flex; flex-direction: column; }
.team-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.team-card:last-child { border-bottom: none; }
.team-card img { width: 38px; height: 38px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); flex: none; }
.team-card .names { min-width: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.team-card .display-name { font-family: var(--font); font-weight: 600; text-transform: uppercase; font-size: 0.88rem; color: var(--text); letter-spacing: 0.01em; }
.team-card .username { font-family: var(--font); font-size: 0.72rem; color: var(--text-faint); }

/* -------- footer -------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 0;
  background: var(--void-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}
.footer-brand p { margin-top: 14px; font-size: 0.85rem; max-width: 32ch; }
.footer-heading {
  display: block;
  font-size: 0.66rem;
  color: var(--text-faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-list a { color: var(--text-dim); font-size: 0.86rem; }
.footer-list a:hover { color: var(--orange-soft); }
.footer-list.mono li { display: flex; justify-content: space-between; gap: 12px; font-size: 0.78rem; }
.footer-list.mono .k { color: var(--text-faint); }
.footer-list.mono .v { color: var(--orange-soft); text-align: right; }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom .copyright { font-family: var(--font); font-size: 0.68rem; color: var(--text-faint); }
.footer-bottom .disclaimer { font-family: var(--font); font-size: 0.68rem; color: var(--text-faint); }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.center { text-align: center; }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (max-width: 720px) {
  .hero-content { padding: 0 20px; }
  .hero-coords { display: none; }
  .section { padding: 64px 0; }
  .section.align-right .section-head { flex-direction: column; text-align: left; }
}
