/* Recreation of guns.lol/nartz (modern layout, Fira Code, monochrome) */
:root {
  --text: #e8e8e8;
  --icon: #ffffff;
  --border: rgba(68,68,68,.44);
  --card: rgba(0,0,0,.35);
  --blur: 11px;
  --ease: cubic-bezier(.16,1,.3,1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { background: #000; color: var(--text); font: 500 15px/1.5 "Fira Code", ui-monospace, monospace; overflow: hidden; -webkit-font-smoothing: antialiased; }
a, button { color: inherit; font: inherit; text-decoration: none; background: none; border: 0; cursor: pointer; }
img { display: block; }
.i { width: 100%; height: 100%; }

/* background video */
.bg { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: filter 1s ease; }
body:not(.entered) .bg { filter: blur(24px) brightness(.35); }

/* click to enter */
.enter { position: fixed; inset: 0; z-index: 10; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; width: 100%; color: #fff; font-size: clamp(20px, 2.4vw, 28px); font-weight: 700; transition: opacity .7s ease, visibility .7s; }
.enter img { width: 80px; height: 80px; object-fit: contain; animation: float 3s ease-in-out infinite; }
.enter span { text-shadow: 0 0 18px rgba(255,255,255,.45); }
body.entered .enter { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes float { 50% { transform: translateY(-6px); } }

/* stage + card */
.stage { position: fixed; inset: 0; display: grid; place-items: center; padding: 16px; perspective: 900px; }
.card {
  width: min(700px, 100%);
  padding: 28px 24px 30px;
  border-radius: 40px;
  background: var(--card);
  border: 7px solid var(--border);
  -webkit-backdrop-filter: blur(var(--blur));
  backdrop-filter: blur(var(--blur));
  position: relative;
  overflow: hidden;
  will-change: transform;
  animation: pulse 3s ease-in-out infinite;
  visibility: hidden;
}
@keyframes pulse { 50% { border-color: rgba(120,120,120,.6); box-shadow: 0 0 40px rgba(255,255,255,.06); } }

/* light that follows the cursor while the card tilts */
.glare { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; z-index: 2;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.14), transparent 55%);
  opacity: 0; transition: opacity .35s; }
.card.tilting .glare { opacity: 1; }
.card.tilting { box-shadow: 0 30px 60px -20px rgba(0,0,0,.8), 0 0 40px rgba(255,255,255,.06); }

/* "unfold" entrance (backwards fill, so the tilt can take over the transform afterwards) */
body.entered .card { visibility: visible; animation: unfold 1s var(--ease) backwards, pulse 3s ease-in-out 1s infinite; }
@keyframes unfold {
  0% { opacity: 0; transform: scaleY(.02) scaleX(.6); }
  45% { opacity: 1; transform: scaleY(.02) scaleX(1); }
  100% { opacity: 1; transform: none; }
}

/* profile header */
.profile { display: flex; align-items: center; gap: 18px; }
.avatar { position: relative; width: 120px; height: 120px; flex: none; }
.pfp { width: 120px; height: 120px; border-radius: 35%; object-fit: cover; border-radius: 50%; }
.deco { position: absolute; left: -12px; top: -12px; width: 144px; height: 144px; pointer-events: none; }
.who { min-width: 0; }
.name-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.name { font-size: clamp(28px, 4.6vw, 36px); font-weight: 500; letter-spacing: .01em; color: #fff; text-shadow: 0 0 14px rgba(255,255,255,.55); line-height: 1.2; }
.typed { margin-top: 4px; font-weight: 700; font-size: 15px; min-height: 1.5em; }
.caret { animation: blink 1s steps(1) infinite; margin-left: 1px; }
@keyframes blink { 50% { opacity: 0; } }

/* roblox widget */
.widget { position: relative; display: flex; align-items: center; gap: 14px; margin-top: 22px; padding: 14px 16px; border-radius: 22px; background: rgba(40,40,40,.35); border: 2px solid rgba(68,68,68,.5); transition: background .25s, transform .3s var(--ease); }
.widget:hover { background: rgba(60,60,60,.4); transform: translateY(-2px); }
.w-avatar { width: 64px; height: 64px; object-fit: contain; flex: none; }
.w-name { font-size: 17px; font-weight: 700; color: #fff; }
.w-stats { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: #cfcfcf; margin-top: 2px; }
.w-stats span { display: inline-flex; align-items: center; gap: 4px; }
.w-stats svg { width: 15px; height: 15px; }
.w-btn { display: inline-block; margin-top: 6px; padding: 1px 10px; border-radius: 6px; background: #21a35b; color: #fff; font-size: 12.5px; font-weight: 700; transition: background .2s; }
.widget:hover .w-btn { background: #26b866; }
.w-label { position: absolute; top: 10px; right: 14px; display: flex; align-items: center; gap: 5px; font-size: 12px; color: #6f6f6f; }
.w-label .i { width: 13px; height: 13px; }

/* socials */
.socials { display: flex; justify-content: center; gap: 14px; margin-top: 24px; }
.socials > * { width: 36px; height: 36px; color: var(--icon); display: grid; place-items: center; transition: transform .25s var(--ease), filter .25s; }
.socials > * .i { width: 34px; height: 34px; }
.socials > *:hover { transform: translateY(-3px) scale(1.08); filter: drop-shadow(0 0 8px rgba(255,255,255,.6)); }

/* ghost cursor trail */
.ghost { position: fixed; top: 0; left: 0; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #fff; pointer-events: none; z-index: 20; opacity: .7; animation: ghost .7s ease-out forwards; }
@keyframes ghost { to { opacity: 0; transform: scale(.2); } }


@media (max-width: 560px) {
  .card { padding: 22px 16px 24px; border-width: 5px; border-radius: 30px; }
  .profile { flex-direction: column; text-align: center; gap: 12px; }
  .name-row { justify-content: center; }
  .avatar, .pfp { width: 100px; height: 100px; }
  .deco { width: 120px; height: 120px; left: -10px; top: -10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
