:root {
  --fg: #d8d8d8;
  --muted: #8a8a8a;
  --card: rgba(20, 22, 20, 0.55);
  --border: rgba(255, 255, 255, 0.08);
  --online: #43b581;
  --idle: #faa61a;
  --dnd: #f04747;
  --offline: #747f8d;

  --fig-x: 49.9%;
  --fig-y: 37.2%;
  --at-x: 72%;
  --at-y: 50%;
  --fig-h: 115vh;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--fg);
  background: #000;
  overflow: hidden;
}
#clickScreen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  color: var(--fg);
  background: none;
}
#clickScreen h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,0.9), 0 0 22px rgba(255,255,255,0.4), 0 0 44px rgba(255,255,255,0.2);
  transition: transform .18s ease, text-shadow .18s ease;
}
#clickScreen:hover h1 {
  transform: translateY(-2px);
  text-shadow: 0 2px 16px rgba(0,0,0,0.9), 0 0 26px rgba(255,255,255,0.6), 0 0 55px rgba(255,255,255,0.3);
}

.page {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
  pointer-events: none;
  visibility: hidden;
}
body.revealed .page { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
    radial-gradient(ellipse at center, transparent 35%, rgba(0,0,0,0.7) 100%);
  z-index: -1;
  pointer-events: none;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  padding: 0 8vw;
  gap: 0;
}

.name {
  font-family: "Unbounded", "Syne", sans-serif;
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,0.9), 0 0 22px rgba(255,255,255,0.4), 0 0 44px rgba(255,255,255,0.2);
}
.tagline {
  margin-top: 0.6rem;
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  color: var(--fg);
  letter-spacing: 0.04em;
  text-shadow: 0 1px 10px rgba(0,0,0,0.85);
}

.links {
  margin-top: 2rem;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: min(420px, 100%);
}

.b-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  background: rgba(14,16,20,0.5);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: var(--fg);
  text-decoration: none;
  transition: background .18s ease, transform .18s ease, border-color .18s ease;
}
.b-row:hover {
  background: rgba(14,16,20,0.68);
  border-color: rgba(255,255,255,0.24);
  transform: translateY(-1px);
}
.b-tile {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(0,0,0,0.32);
  color: #fff;
}
.b-tile svg { width: 21px; height: 21px; }
.b-tile-av { position: relative; width: 40px; height: 40px; background: none; padding: 0; overflow: visible; }
.b-av { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; display: block; }
.b-lb { font-weight: 550; font-size: 1rem; }
.b-vl {
  margin-left: auto;
  color: #a8adb5;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}
.b-badges { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.badge { width: 20px; height: 20px; display: block; }
.b-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.b-sub { color: #a8adb5; font-size: 0.85rem; text-transform: lowercase; }
.dc-dot {
  position: absolute;
  right: -2px; bottom: -2px;
  width: 13px; height: 13px; flex: none;
  border-radius: 50%;
  border: 3px solid #12141a;
  background: var(--offline);
}
.dc-dot[data-status="online"] { background: var(--online); color: var(--online); }
.dc-dot[data-status="idle"]   { background: var(--idle);   color: var(--idle); }
.dc-dot[data-status="dnd"]    { background: var(--dnd);    color: var(--dnd); }
.dc-dot[data-status="offline"]{ background: var(--offline);color: var(--offline); }

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-hint span { animation: none; }
}

.esp-wrap {
  position: fixed;
  inset: 0;
  transform-origin: var(--at-x) 0%;
  animation: swing 3s ease-in-out infinite alternate;
  will-change: transform;
  z-index: -1;
}

.esp-fig {
  position: absolute;
  left: var(--at-x);
  top: var(--at-y);
  height: var(--fig-h);
  aspect-ratio: 1920 / 1080;
  transform: translate(calc(-1 * var(--fig-x)), calc(-1 * var(--fig-y)));
}

#bg {
  width: 100%;
  height: 100%;
  display: block;
  filter: blur(18px);
  transition: filter 1s ease;
}
body.revealed #bg { filter: none; }

@keyframes swing {
  from { transform: rotate(-6deg); }
  to   { transform: rotate(2deg); }
}

.esp-box {
  position: absolute;
  top: 22.7%;
  left: 46.1%;
  width: 7.5%;
  height: 28.9%;
  border: 1.5px solid #39ff6a;
  box-shadow: 0 0 6px rgba(57,255,106,0.6);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
body.revealed .esp-box { opacity: 1; }

.esp-health {
  position: absolute;
  top: 0;
  right: -8px;
  width: 3px;
  height: 100%;
  background: linear-gradient(to top, #ff3b3b 0%, #ff3b3b 25%, #39ff6a 25%, #39ff6a 100%);
  box-shadow: 0 0 4px rgba(57,255,106,0.5);
}

.esp-weapon {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 4px;
  width: 46px;
  height: auto;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.9));
  pointer-events: none;
}

.esp-name {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 26px;
  color: #fff;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0,0,0,0.9);
  white-space: nowrap;
  letter-spacing: 0.05em;
  pointer-events: none;
  animation: chroma 3s linear infinite;
}

@keyframes chroma {
  0%   { color: #ff3b3b; }
  16%  { color: #ff9d3b; }
  33%  { color: #f7ff3b; }
  50%  { color: #39ff6a; }
  66%  { color: #3bd4ff; }
  83%  { color: #b83bff; }
  100% { color: #ff3b3b; }
}

.footer {
  position: fixed;
  left: calc(50% + 14px);
  bottom: 22px;
  transform: translateX(-50%);
  background: #262626;
  color: #9a9a9a;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 7px 16px;
  border-radius: 999px;
  text-decoration: none;
  transition: background .18s ease, color .18s ease;
  z-index: 2;
}
.footer:hover { background: #3a3a3a; color: #fff; }
.footer.reveal.in { transform: translateX(-50%); }

#sky, .esp-wrap { filter: blur(0px); transition: filter 1s ease; }
body:not(.revealed) #sky,
body:not(.revealed) .esp-wrap { filter: blur(16px); }

#sky {
  position: fixed;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

@media (max-width: 720px) {
  :root { --at-x: 85%; --at-y: 50%; --fig-h: 72vh; }
  .page { padding: 0 5vw; }
  .links { width: min(300px, 68vw); }

  .b-row:not(#discord) {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0 0.6rem;
    align-items: center;
  }
  .b-row:not(#discord) .b-tile { grid-row: span 2; }
  .b-vl { margin-left: 0; }

  .b-lb, .b-vl, .b-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  .links { gap: 0.5rem; }
  .b-row { padding: 0.55rem 0.75rem; border-radius: 11px; gap: 0.6rem; }
  .b-tile, .b-tile-av, .b-av { width: 32px; height: 32px; }
  .b-tile { border-radius: 8px; }
  .b-tile svg { width: 17px; height: 17px; }
  .b-lb { font-size: 0.85rem; }
  .b-vl, .b-sub { font-size: 0.72rem; }
  .b-badges { gap: 3px; }
  .badge { width: 16px; height: 16px; }
  .dc-dot { width: 10px; height: 10px; border-width: 2px; }
  .esp-weapon { width: 30px; }
  .esp-name { font-size: 9px; margin-top: 20px; }
}