
:root {
  --bg: #0b0f14;
  --text: #e5eef8;
  --text-muted: #b6c2d1;
  --border: rgba(255, 255, 255, 0.16);
  --glass-bg: rgba(15, 23, 42, 0.38);
  --glass-bg-hover: rgba(15, 23, 42, 0.48);
  --glass-shadow: 0 8px 32px rgba(2, 6, 23, 0.45);
  --accent-1: #a855f7;
  --accent-2: #38bdf8;
  --accent-3: #10b981;
  --shadow-neon: 0 0 24px 2px rgba(168, 85, 247, 0.35);
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: rgba(217, 70, 239, 0.3); }

.video-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.1) contrast(1.05) brightness(0.6);
}

.video-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(2, 6, 23, 0.35), transparent 60%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.25) 0%, rgba(2, 6, 23, 0.55) 100%);
}

.page {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
}

.container {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.avatar-wrap {
  position: relative;
  width: 112px;
  height: 112px;
  border-radius: 9999px;
  padding: 3px;
  background: linear-gradient(45deg, var(--accent-1), var(--accent-2), var(--accent-3));
  box-shadow: var(--shadow-neon);
}

.avatar {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--glass-bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: 0.15em;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.name {
  margin: 0;
  font-size: 2.25rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(45deg, #f0abfc 0%, #67e8f9 50%, #6ee7b7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

.bio {
  margin: 0.25rem 0 0;
  max-width: 45ch;
  color: #aeb7c5;
  font-size: 1rem;
  line-height: 1.6;
}

.links {
  width: 100%;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card {
  width: 100%;
  padding: 0.75rem 1.0rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--glass-bg);
  backdrop-filter: blur(10px) saturate(1.25);
  box-shadow: var(--glass-shadow);
}

.link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--glass-bg);
  color: inherit;
  text-decoration: none;
  backdrop-filter: blur(10px) saturate(1.25);
  box-shadow: var(--glass-shadow);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.link:hover {
  border-color: rgba(168, 85, 247, 0.5);
  background: var(--glass-bg-hover);
  box-shadow: var(--shadow-neon);
  transform: translateY(-1px);
}

.icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  color: #cbd5e1;
}

.link:hover .icon { color: #ffffff; }

.footer {
  margin-top: 2rem;
  color: var(--text-muted);
  font-size: 12px;
}

@media (min-width: 640px) {
  .name { font-size: 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .bg-video { filter: brightness(0.7) contrast(1.0) saturate(1.0); }
}

.steam { display: flex; flex-direction: column; gap: 6px; }
.steam-row { display: flex; align-items: center; gap: 10px; }
.steam-label { color: var(--text-muted); font-size: 12px; }
.steam-status { text-transform: lowercase; font-weight: 600; }
.steam-game { font-weight: 600; }
.steam-hours { color: var(--text-muted); font-size: 12px; margin-left: auto; }
.steam-icon { width: 24px; height: 24px; border-radius: 4px; border: 1px solid var(--border); background: rgba(0,0,0,0.25); }
.steam-updated { color: var(--text-muted); font-size: 11px; margin-top: 2px; }
.steam-dot { width: 8px; height: 8px; border-radius: 999px; display: inline-block; box-shadow: 0 0 10px rgba(16, 185, 129, .5); }
.steam-dot.online { background: #10b981; }
.steam-dot.busy { background: #f59e0b; box-shadow: 0 0 10px rgba(245, 158, 11, .5); }
.steam-dot.away, .steam-dot.snooze { background: #38bdf8; box-shadow: 0 0 10px rgba(56, 189, 248, .5); }
.steam-dot.offline, .steam-dot.unknown { background: #64748b; box-shadow: 0 0 10px rgba(100, 116, 139, .4); }

.steam-inline { margin-left: auto; display: flex; align-items: center; gap: 8px; min-width: 0; }
.steam-inline .steam-game { max-width: 10rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.steam-inline .steam-hours { font-size: 11px; color: var(--text-muted); }

/* Hide X/Twitter link in linktree */
.links a[href^="https://x.com"] { display: none !important; }

.theme-switch { position: fixed; top: 16px; right: 16px; z-index: 1002; }
.theme-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--glass-bg);
  color: var(--text);
  backdrop-filter: blur(8px) saturate(1.1);
  box-shadow: var(--glass-shadow);
  cursor: pointer; font: 12px/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.theme-btn:hover { border-color: rgba(0,255,200,.45); }
.theme-btn .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--term-accent, var(--accent)); box-shadow: 0 0 10px rgba(0,255,200,.35); }
.theme-btn .chev { width: 16px; height: 16px; opacity: .8; }

.theme-menu {
  position: absolute; top: calc(100% + 6px); right: 0; min-width: 180px;
  padding: 6px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--glass-bg);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(10px) saturate(1.1);
  display: none;
  transform-origin: top right; transform: scale(.98); opacity: 0;
  transition: transform .18s ease, opacity .18s ease;
}
.theme-menu.open { display: block; transform: scale(1); opacity: 1; }
.theme-menu button {
  width: 100%; text-align: left; padding: 8px 10px; border-radius: 8px;
  border: 1px solid transparent; background: transparent; color: var(--text);
  font: 12px/1.2 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; cursor: pointer;
}
.theme-menu button:hover { border-color: rgba(0,255,200,.35); }

.music-player {
  position: fixed; right: 16px; bottom: 16px; z-index: 1002;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--glass-bg);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(10px) saturate(1.1);
  color: var(--text);
  min-width: 260px;
}
.music-player .mp-btn { border: 1px solid var(--border); background: transparent; color: var(--text); border-radius: 8px; padding: 6px 8px; cursor: pointer; }
.music-player .mp-btn:hover { border-color: rgba(0,255,200,.4); }
.music-player .mp-track { flex: 1; display: grid; gap: 6px; }
.music-player .mp-title { font-size: 12px; color: var(--text-muted); }
.music-player .mp-vol { width: 100%; accent-color: var(--term-accent, var(--accent)); }

.version-badge {
  position: fixed;
  bottom: 12px;
  left: 12px;
  z-index: 1100;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--glass-bg);
  color: var(--text);
  font: 12px/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(8px) saturate(1.1);
}
