: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;
}

* { 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: #0b0d0b;
  /* ponytail: allow scroll only if content genuinely overflows a short phone */
  overflow-x: hidden;
}

/* --- click screen --- */
#clickScreen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #fff;
  cursor: pointer;
  user-select: none;
  font-family: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
}
#clickScreen h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 400;
}

/* --- terminal boot loader --- */
#loader {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: #000;
  padding: 2rem;
  color: #00ff00;
  font-family: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
  font-size: 0.85rem;
  overflow: hidden;
  white-space: pre-wrap;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}
#terminal { width: 37.5vw; height: 100%; }
@media (max-width: 700px) { #terminal { width: 100%; } }

.hidden { display: none !important; }

/* site fades + slides in once the boot finishes */
#bg, .page {
  opacity: 0;
  transition: opacity 1s ease;
}
.page {
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
  pointer-events: none;
}
body.revealed #bg { opacity: 1; }
body.revealed .page { opacity: 1; transform: none; pointer-events: auto; }

/* fullscreen background behind everything */
#bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
/* darken the (bright) video so white text reads, plus a vignette */
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;
}

/* single screen — everything fits, no scrolling */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 6vh 8vw;
  gap: 0;
}

.name {
  font-size: clamp(2.5rem, 7vw, 5rem);
  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);
}
.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);
}

/* --- about (centered) --- */
.about-h {
  margin-top: 2.4rem;
  text-align: center;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.85), 0 0 14px rgba(255,255,255,0.3);
  margin-bottom: 1.6rem;
}
.links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: min(420px, 100%);
}

/* glass pill row (email / telegram / discord) */
.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: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  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; }
/* status indicator: ring on the avatar's bottom-right */
.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); }

/* --- fade-in reveal --- */
.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; }
}
