:root {
  --accent: #ff4c29;
  --accent-2: #b3331a;
  --text: #f4f0ee;
  --muted: #9a8079;
  --card-bg: rgba(14, 10, 9, 0.84);
  --card-grad: linear-gradient(160deg, rgba(14, 10, 9, 0.9), rgba(40, 20, 12, 0.9));
  --border: rgba(255, 76, 41, 0.18);
}

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

* { cursor: url("assets/cat-cursor.svg") 6 4, auto; }
html.js-cursor * { cursor: none; }
.cat-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 34px; height: 34px;
  margin: -4px 0 0 -6px;
  background: url("assets/cat-cursor.svg") center/contain no-repeat;
  pointer-events: none;
  z-index: 9999;
  opacity: 1;
  will-change: transform;
  transition: opacity 0.25s ease;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
}
@media (hover: none) {
  * { cursor: auto; }
  .cat-cursor { display: none; }
}

html, body { height: 100%; overscroll-behavior: none; }

body {
  font-family: "Consolas", ui-monospace, monospace;
  color: var(--text);
  background: #020203;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  position: fixed;
  inset: 0;
  width: 100%;
  touch-action: none;
}

a { color: inherit; text-decoration: none; }

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0) 0px,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 0, 0, 0.22) 3px,
    rgba(0, 0, 0, 0.22) 3px
  );
  mix-blend-mode: multiply;
  opacity: 0.5;
}

.bg {
  position: fixed;
  inset: -60px;
  z-index: 0;
  background: #020202 url("assets/pfp.jpg") center/cover no-repeat;
  filter: blur(60px) brightness(0.55) saturate(1.1);
  transform: scale(1.2);
  animation: drift 22s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: scale(1.32) translate(-14px, -10px); } }

.bg-video {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #020202;
}

.bg-tint {
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.55)),
    radial-gradient(circle at center, transparent 25%, rgba(0,0,0,0.75) 100%);
  pointer-events: none;
}

#rain { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.5; }

.enter {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 4, 3, 0.86);
  backdrop-filter: blur(14px);
  cursor: pointer;
  transition: opacity 0.6s ease, visibility 0.6s;
}
.enter.hide { opacity: 0; visibility: hidden; }
.enter-text {
  font-family: "Consolas", monospace;
  letter-spacing: 3px;
  color: var(--text);
  font-size: 0.95rem;
  text-transform: uppercase;
  animation: blink 1.8s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: 0.35; } }

.wrap { position: relative; z-index: 10; padding: 20px; }

.card {
  width: min(92vw, 430px);
  padding: 0 30px 30px;
  border-radius: 10px;
  background: var(--card-grad);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px) saturate(120%);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  text-align: center;
  transition: transform 0.15s ease-out;
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
}

.banner {
  margin: 0 -30px;
  height: 150px;
  overflow: hidden;
  position: relative;
}
.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0) 40%, var(--card-bg));
}

.pfp-wrap {
  width: 116px; height: 116px;
  margin: -58px auto 14px;
  position: relative;
  z-index: 2;
}
.status-dot {
  position: absolute;
  bottom: 5px; right: 5px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #747f8d;
  border: 3px solid #1a0f0b;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
  z-index: 3;
  transition: background 0.3s ease;
}

.pfp-ring {
  width: 116px; height: 116px;
  border-radius: 50%;
  padding: 2px;
  background: conic-gradient(from 0deg, #ff4c29, #1a0d08, #ff8a3d, #0a0505, #ff4c29);
  animation: spin 4s linear infinite;
  box-shadow: 0 0 28px rgba(255, 76, 41, 0.4);
}
@keyframes spin { to { transform: rotate(360deg); } }
.pfp {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #0a0a0c;
  animation: spin 4s linear infinite reverse;
}

.name {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: lowercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  text-shadow: 0 0 18px rgba(255, 76, 41, 0.45);
}
.glitch { position: relative; display: inline-block; }

.username {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 1px;
  font-family: "Consolas", monospace;
}

.presence {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8rem;
  letter-spacing: 0.3px;
  font-family: "Consolas", monospace;
  min-height: 1.1em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.presence-ico { flex: none; }

.views, .clock {
  position: absolute;
  top: 12px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid var(--border);
  backdrop-filter: blur(6px);
  font-family: "Consolas", monospace;
  font-size: 0.72rem;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.88);
}
.views { right: 12px; }
.clock { left: 12px; }
.views svg, .clock svg { opacity: 0.85; }

.socials {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.soc {
  width: 44px; height: 44px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  transition: 0.2s;
}
.soc:hover {
  color: var(--accent);
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 8px 22px rgba(255, 76, 41, 0.28);
  background: rgba(255, 76, 41, 0.1);
}

.foot {
  position: fixed;
  bottom: 16px;
  left: 0; right: 0;
  z-index: 10;
  text-align: center;
  font-family: "Consolas", monospace;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 2px;
}

.audio-toggle {
  position: fixed;
  bottom: 16px;
  left: 16px;
  z-index: 20;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid var(--border);
  backdrop-filter: blur(6px);
  transition: 0.2s;
}
.audio-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(255, 76, 41, 0.22);
}
.audio-toggle .slash { display: none; }
.audio-toggle.muted .wave { opacity: 0; }
.audio-toggle.muted .slash { display: block; }

@media (max-width: 480px), (max-height: 680px) {
  .wrap { padding: 12px; }
  .card {
    width: min(94vw, 400px);
    padding: 0 22px 22px;
    border-radius: 12px;
  }
  .banner { margin: 0 -22px; height: 118px; }

  .pfp-wrap { width: 92px; height: 92px; margin: -46px auto 10px; }
  .pfp-ring { width: 92px; height: 92px; }
  .status-dot { width: 18px; height: 18px; bottom: 3px; right: 3px; border-width: 2.5px; }

  .name { font-size: 1.4rem; }
  .username { font-size: 0.85rem; margin-top: 4px; }
  .presence { font-size: 0.74rem; margin-top: 6px; }

  .socials { margin-top: 16px; gap: 10px; }
  .soc { width: 40px; height: 40px; }

  .views, .clock { top: 10px; padding: 4px 8px; font-size: 0.62rem; }
  .views { right: 10px; }
  .clock { left: 10px; }
  .audio-toggle { width: 36px; height: 36px; bottom: 12px; left: 12px; }
  .foot { bottom: 10px; font-size: 0.66rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
}
