/* ===== index.css (fixed) ===== */

/* Vars & cursors */
:root {
  --cursor-reticle: url("data:image/svg+xml;utf8,\<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'>\<circle cx='16' cy='16' r='10' fill='none' stroke='%23e50914' stroke-width='2'/>\<line x1='16' y1='2'  x2='16' y2='8'  stroke='%23ffffff' stroke-width='2'/>\<line x1='16' y1='24' x2='16' y2='30' stroke='%23ffffff' stroke-width='2'/>\<line x1='2'  y1='16' x2='8'  y2='16' stroke='%23ffffff' stroke-width='2'/>\<line x1='24' y1='16' x2='30' y2='16' stroke='%23ffffff' stroke-width='2'/>\<circle cx='16' cy='16' r='2.2' fill='%23e50914'/></svg>");
  --cursor-reticle-big: var(--cursor-reticle);
  --red: #e50914;
  --black: #141414;
  --dark: #2f2f2f;
  --muted: #b3b3b3;
  --white: #fff;
  --maxw: 1280px;
  --safe-top: env(safe-area-inset-top);
  --safe-bottom: env(safe-area-inset-bottom);
}

* { box-sizing: border-box }
html, body { height: 100% }
html, body { cursor: var(--cursor-reticle) 16 16, crosshair; }
a, button, .card, .profile-tile { cursor: var(--cursor-reticle-big) 16 16, crosshair; }
input, textarea { cursor: text; }

body {
  margin: 0;
  background: #000;
  color: var(--white);
  font: 16px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  overflow-x: hidden;
  padding-bottom: var(--safe-bottom);
}

/* Navbar */
.navbar {
  position: fixed;
  inset: 0 auto auto 0;
  width: 100%;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: calc(8px + var(--safe-top)) clamp(12px, 3vw, 24px) 12px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .75), transparent);
}
.logo { color: var(--red); font-weight: 800; letter-spacing: .5px; text-decoration: none }

/* Main */
.profile-selection {
  margin-top: 72px;
  flex: 1;
  display: grid;
  place-items: center;
  padding: clamp(12px, 5vw, 32px) clamp(12px, 3vw, 16px);
  text-align: center;
}

.profile-title {
  font-size: clamp(1.6rem, 6vw, 3.2rem);
  margin: 0 0 22px;
}

/* Grid */
.profiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(120px, 28vw, 180px), 1fr));
  gap: clamp(16px, 4vw, 34px);
  justify-items: center;
  width: min(100% - clamp(16px, 6vw, 48px), var(--maxw));
  margin: 8px auto clamp(40px, 7vh, 56px);
}

/* Tiles */
.profile-tile {
  background: transparent; border: 0; padding: 0; margin: 0;
  outline: none; display: block;
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  transition: opacity .45s ease, transform .5s cubic-bezier(.22,.61,.36,1);
  will-change: transform, opacity;
}
.profile-tile.reveal { opacity: 1; transform: translate3d(0,0,0) }

.tile-inner {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  transform: translate3d(var(--fxStart, 0px), 0, 0);
  will-change: transform;
}

.avatar {
  width: clamp(92px, 22vw, 180px);
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 0 0 rgba(255,255,255,0);
  transition: box-shadow .25s ease, transform .28s ease;
  transform: translate3d(0,0,0) scale(1);
  contain: content;
}
.avatar img {
  width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none;
  transform: translate3d(0,0,0) scale(1);
  transition: transform .28s ease;
}

/* Hover (desktop only) */
@media (hover:hover) and (pointer:fine) {
  .profile-tile:hover .avatar, .profile-tile:focus-visible .avatar {
    box-shadow: 0 0 0 3px #fff; transform: translate3d(0,-2px,0) scale(1.02);
  }
  .profile-tile:hover .avatar img, .profile-tile:focus-visible .avatar img {
    transform: translate3d(0,0,0) scale(1.06);
  }
}

.label { color: #cfcfcf; font-size: clamp(.9rem, 2.4vw, 1.05rem); letter-spacing: .2px; text-shadow: 0 1px 0 rgba(0,0,0,.6); }
.profile-tile:hover .label, .profile-tile:focus-visible .label { color: #fff }

/* Float */
@keyframes floatXY {
  0%   { transform: translate3d(var(--fxStart, 0px), 0, 0) }
  50%  { transform: translate3d(var(--fxMid, 6px), -3px, 0) }
  100% { transform: translate3d(var(--fxEnd, -0px), 0, 0) }
}
.float .tile-inner { animation: floatXY var(--floatDur, 8s) cubic-bezier(.42,0,.58,1) var(--floatDelay, .2s) infinite; }
.profile-tile:hover .tile-inner, .profile-tile:focus-visible .tile-inner { animation-play-state: paused }

/* Footer */
footer {
  border-top: 1px solid var(--dark);
  color: var(--muted);
  padding: 24px clamp(12px, 4vw, 24px);
}
.social { display: flex; gap: 16px; justify-content: center; margin-bottom: 12px }
.social a { color: var(--muted); font-size: 1.3rem }
.social a:hover { color: var(--white) }

/* Screen reader only text */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 1px, 1px);
  white-space: nowrap; border: 0;
}

@media (max-width: 360px) {
  .profile-title { font-size: clamp(1.3rem, 8vw, 1.8rem); }
  .avatar { border-radius: 10px; }
}

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