:root {
  --bg: #000000;
  --text-main: #f5f5f5;
  --text-body: #bdbdbd;
  --text-muted: #a1a1a1;
  --text-subtle: #7a7a7a;

  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.18);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color-scheme: dark;
}

::selection {
  background: #ffffff;
  color: #000000;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.35);
}

body {
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
  color: var(--text-main);
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  cursor: pointer;
  transition: opacity 0.6s ease;
}

.intro span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-muted);
  animation: pulse 2.4s ease-in-out infinite;
}

.intro.hide {
  opacity: 0;
  pointer-events: none;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.35;
  }

  50% {
    opacity: 1;
  }
}

.background {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg);
}

.background::before {
  content: "";
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(ellipse 36% 24% at 50% 18%, rgba(255, 255, 255, 0.1), transparent 70%),
    radial-gradient(circle at 82% 88%, rgba(255, 255, 255, 0.035), transparent 40%);
  animation: drift 32s ease-in-out infinite alternate;
  will-change: transform;
}

.background::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 25%, #000, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 25%, #000, transparent 100%);
}

@keyframes drift {
  from {
    transform: translate(-3%, 2%) scale(1);
  }

  to {
    transform: translate(3%, -2%) scale(1.06);
  }
}

main {
  flex: 1;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 60px;
  padding: 150px 24px 80px;
}

.preview-col {
  width: min(520px, 100%);
  flex-shrink: 0;
  padding-top: 60px;
  position: sticky;
  top: 20px;
}

.info-col {
  width: min(430px, 100%);
  flex-shrink: 0;
}

.preview {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #0a0a0a;
  border-radius: 3px;
  box-shadow: 0 40px 120px -30px rgba(255, 255, 255, 0.12), 0 20px 50px -20px rgba(0, 0, 0, 0.9);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

@media (hover: hover) {
  .frame:hover {
    transform: translateY(-4px);
    box-shadow: 0 50px 130px -30px rgba(255, 255, 255, 0.18), 0 24px 60px -20px rgba(0, 0, 0, 0.9);
  }
}

.frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0a0a0a;
  border-radius: 0;
  transition: opacity 0.35s ease, transform 0.7s var(--ease);
  cursor: zoom-in;
}

.frame img.ph {
  background: rgba(255, 255, 255, 0.06);
}

.frame.fade img {
  opacity: 0;
  transform: scale(1.03);
}

.head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--surface-hover);
  box-shadow: 0 0 0 1px var(--border);
}

.name {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.badge {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.role {
  font-size: 13px;
  color: var(--text-subtle);
  margin-top: 2px;
}

nav {
  display: flex;
  gap: 2px;
  margin-bottom: 22px;
  padding: 3px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  width: max-content;
  position: relative;
}

nav button {
  background: none;
  border: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-subtle);
  cursor: pointer;
  padding: 7px 16px;
  border-radius: 7px;
  position: relative;
  z-index: 1;
  transition: color 0.2s, transform 0.15s;
}

nav button:hover {
  color: var(--text-main);
}

nav button:active {
  transform: scale(0.96);
}

nav button.active {
  color: var(--text-main);
}

.pill {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: 0;
  border-radius: 7px;
  background: var(--surface-hover);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.pill.ready {
  transition: transform 0.45s var(--ease), width 0.45s var(--ease);
}

nav button:focus-visible,
.item:focus-visible,
.discord-link:focus-visible,
.roblox-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.panel {
  display: none;
}

.panel.active {
  display: block;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-subtle);
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}

.item .t {
  flex: 1;
}

.item:hover {
  color: var(--text-main);
}

.item.active {
  background: var(--surface-hover);
  color: var(--text-main);
}

.text {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-body);
  padding: 6px 2px;
  overflow-wrap: anywhere;
}

.text h3 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin: 30px 0 8px;
}

.text ul {
  list-style: none;
}

.text li {
  padding: 9px 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-main);
  border-bottom: 1px solid var(--border);
}

.text li:last-child {
  border-bottom: 0;
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-bottom: 30px;
}

.discord-link,
.roblox-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.35s var(--ease);
}

.discord-link:hover,
.roblox-link:hover {
  color: var(--text-main);
  background: var(--surface-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.discord-link:active,
.roblox-link:active {
  transform: scale(0.97);
}

.discord-link img,
.roblox-link img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.discord-link:hover img,
.roblox-link:hover img {
  opacity: 1;
}

.discord-link img {
  border-radius: 5px;
}

.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: rgba(0, 0, 0, 0.94);
  cursor: zoom-out;
}

.image-viewer img {
  max-width: 95vw;
  max-height: 95vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

@media (max-width: 1100px) {
  main {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 0 32px 60px;
  }

  .preview-col,
  .info-col {
    width: 100%;
    max-width: 520px;
    padding-top: 0;
  }

  .preview-col {
    top: 0;
    z-index: 5;
    padding: 28px 0 14px;
    background: linear-gradient(var(--bg) 85%, transparent);
  }

  .preview {
    width: 100%;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 600px) {
  main {
    padding: 36px 20px 48px;
    gap: 32px;
  }

  .head {
    margin-bottom: 26px;
  }

  .preview-col,
  .info-col {
    max-width: 100%;
  }

  .item {
    padding: 13px 12px;
  }

  .text {
    font-size: 14px;
  }

  footer {
    padding-bottom: 22px;
  }
}

@media (max-width: 360px) {
  main {
    padding-left: 14px;
    padding-right: 14px;
  }

  .name {
    font-size: 18px;
  }

  .item {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro span,
  .background::before {
    animation: none;
  }

  .pill.ready,
  .frame,
  .discord-link,
  .roblox-link {
    transition: none;
  }
}