/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
  /* Base canvas: deep indigo-black, not a flat #000/#111 — keeps a hint of
     the violet cast a dim arcade or blacklight bowling alley actually has. */
  --bg: #0A0714;
  --bg-panel: #150F28;

  /* Three competing neon hues (arcade marquee + bowling blacklight signage
     both mix several tube colors at once — a single accent-on-black reads
     flatter than the real thing). */
  --neon-magenta: #FF2E92;
  --neon-cyan: #33E1FF;
  --neon-amber: #FFC24B;

  --text: #F1EDFA;
  --text-muted: #9A8FBF;

  --font-marquee: 'Monoton', cursive;
  --font-body: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --max-width: 960px;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, p, ul {
  margin: 0;
}

ul {
  list-style: none;
  padding: 0;
}

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

img {
  max-width: 100%;
  display: block;
}

/* Visible focus ring everywhere, styled to match the neon theme instead of
   removing the browser default. */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ==========================================================================
   Ambient background glow
   ========================================================================== */
.scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.glow {
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.28;
}

.glow--magenta {
  background: var(--neon-magenta);
  top: -20vmax;
  left: -15vmax;
}

.glow--cyan {
  background: var(--neon-cyan);
  bottom: -25vmax;
  right: -15vmax;
}

.glow--amber {
  background: var(--neon-amber);
  top: 30%;
  left: 50%;
  width: 40vmax;
  height: 40vmax;
  opacity: 0.16;
}

/* ==========================================================================
   Layout shell
   ========================================================================== */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding-block: 64px;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  padding-block: 96px 64px;
}

.avatar-frame {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  padding: 4px;
  /* Conic gradient ring stands in for a neon tube bent into a circle. */
  background: conic-gradient(from 180deg, var(--neon-magenta), var(--neon-cyan), var(--neon-amber), var(--neon-magenta));
  box-shadow: 0 0 24px rgba(255, 46, 146, 0.35);
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-panel);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--text);
}

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

.marquee {
  font-family: var(--font-marquee);
  font-weight: 400;
  font-size: clamp(3.5rem, 12vw, 7rem);
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--text);
  text-shadow:
    0 0 8px rgba(255, 46, 146, 0.8),
    0 0 24px rgba(255, 46, 146, 0.6),
    0 0 48px rgba(51, 225, 255, 0.35);
  animation: flicker-in 1.6s ease-out 1;
}

.tagline {
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  color: var(--text-muted);
  max-width: 32ch;
}

.status-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 12px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

/* One orchestrated moment on load; everything else stays quiet. */
@keyframes flicker-in {
  0%   { opacity: 0; }
  6%   { opacity: 1; }
  8%   { opacity: 0.2; }
  10%  { opacity: 1; }
  28%  { opacity: 1; }
  30%  { opacity: 0.3; }
  32%  { opacity: 1; }
  100% { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: scale(0.85); }
  50%      { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   Interest panels — each keeps its own silhouette instead of a shared
   rounded-card shape, so the shape itself reads as signage per subject.
   ========================================================================== */
.panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px;
}

.panel {
  background: var(--bg-panel);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.panel:hover {
  transform: translateY(-4px);
}

.panel-icon {
  width: 32px;
  height: 32px;
}

.panel h2 {
  font-family: var(--font-marquee);
  font-weight: 400;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
}

.panel p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* HUD readout: one corner cut off like an in-game overlay panel.
   A regular `border` is a rectangular stroke, so clip-path would slice it
   away along the diagonal cut with no line drawn there. Instead, ::before
   paints a solid cyan shape clipped to the same polygon, then a mask
   subtracts an inset copy of that shape, leaving only a 1px ring that
   follows the cut corner exactly (see the shared --gaming-clip variable). */
.panel--gaming {
  --gaming-clip: polygon(0 0, 100% 0, 100% 100%, 24px 100%, 0 calc(100% - 24px));
  position: relative;
  clip-path: var(--gaming-clip);
}

.panel--gaming::before {
  content: '';
  position: absolute;
  inset: 0;
  clip-path: var(--gaming-clip);
  padding: 1px;
  background: rgba(51, 225, 255, 0.6);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.panel--gaming .panel-icon,
.panel--gaming h2 {
  color: var(--neon-cyan);
}

/* box-shadow would be clipped away by the polygon like the border was;
   drop-shadow renders from the clipped shape's own silhouette instead. */
.panel--gaming:hover {
  filter: drop-shadow(0 0 16px rgba(51, 225, 255, 0.55));
}

/* CRT monitor rounding: only the top corners curve, like an old scoreboard screen. */
.panel--bowling {
  border-radius: 40px 40px 10px 10px;
  border: 1px solid rgba(255, 194, 75, 0.4);
}

.panel--bowling .panel-icon,
.panel--bowling h2 {
  color: var(--neon-amber);
}

.panel--bowling:hover {
  box-shadow: 0 0 24px rgba(255, 194, 75, 0.35);
}

/* Circuit-board panel: faint trace pattern instead of a plain fill. */
.panel--tech {
  border-radius: 6px;
  border: 1px solid rgba(255, 46, 146, 0.4);
  /* Layer order matters here: the repeating trace lines must come before the
     solid fill, since earlier background-image layers paint on top. */
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 46, 146, 0.08) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(0deg, rgba(255, 46, 146, 0.08) 0 1px, transparent 1px 40px),
    linear-gradient(var(--bg-panel), var(--bg-panel));
}

.panel--tech .panel-icon,
.panel--tech h2 {
  color: var(--neon-magenta);
}

.panel--tech:hover {
  box-shadow: 0 0 24px rgba(255, 46, 146, 0.35);
}

.rig-readout {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  /* Full-opacity neon-magenta (not the dimmed 0.8 tried earlier) to clear
     WCAG AA contrast against --bg-panel at this small size. */
  color: var(--neon-magenta);
  margin-top: auto;
  padding-top: 8px;
}

/* ==========================================================================
   Connect
   ========================================================================== */
.connect {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.social-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* Styled like a gamertag nameplate chip rather than a generic icon button. */
.social-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border: 1px solid rgba(241, 237, 250, 0.25);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.social-link:hover {
  color: var(--text);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(51, 225, 255, 0.35);
}

.contact a {
  color: var(--neon-cyan);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.contact a:hover {
  border-color: var(--neon-cyan);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 24px 48px;
  border-top: 1px solid rgba(241, 237, 250, 0.1);
  text-align: center;
}

.site-footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Motion & small-screen adjustments
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .marquee,
  .status-dot {
    animation: none;
  }
}

@media (max-width: 480px) {
  section {
    padding-block: 40px;
  }

  .hero {
    padding-block: 64px 40px;
  }

  .panel {
    padding: 24px 20px;
  }
}
