:root {
  --bg: #07110a;
  --bg-2: #0d1f12;
  --panel: rgba(29, 58, 13, 0.55);
  --panel-solid: #14290c;
  --edge: #7cfc3a;
  --edge-soft: rgba(124, 252, 58, 0.35);
  --fg: #f2ffe8;
  --muted: #b3d49e;
  --accent: #7cfc3a;
  --accent-ink: #07110a;
  color-scheme: dark;
}

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

html { background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  padding: 40px max(16px, env(safe-area-inset-right, 0px)) 56px max(16px, env(safe-area-inset-left, 0px));
}

/* Fondo: brillo verde y cuadrícula tenue que se desplaza despacio. */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60rem 30rem at 50% -10%, rgba(124, 252, 58, 0.18), transparent 70%),
    radial-gradient(40rem 30rem at 90% 110%, rgba(40, 140, 40, 0.25), transparent 70%),
    linear-gradient(var(--bg), var(--bg-2));
}
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124, 252, 58, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 252, 58, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
  animation: drift 40s linear infinite;
}
@keyframes drift { to { background-position: 44px 44px, 44px 44px; } }

.wrap { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 36px; }

.hero { text-align: center; }
#fx { width: 100%; height: 140px; display: block; }
.fx-fallback {
  margin: 0;
  font-size: clamp(30px, 9vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.handle {
  display: inline-block;
  margin: 6px 0 0;
  padding: 2px 12px;
  border: 1px solid var(--edge-soft);
  border-radius: 999px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}
.bio {
  margin: 16px auto 0;
  max-width: 38ch;
  color: var(--muted);
  font-style: italic;
  text-wrap: balance;
}

.block h2 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.about { margin: 0; max-width: 60ch; }

.cards { display: flex; flex-direction: column; gap: 12px; }
.card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  padding: 16px 18px;
  background: var(--panel);
  border: 1.5px solid var(--edge);
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
  backdrop-filter: blur(6px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
a.card:hover {
  transform: translateY(-2px);
  background: rgba(40, 80, 20, 0.7);
  box-shadow: 0 0 0 1px var(--edge), 0 10px 30px rgba(124, 252, 58, 0.18);
}
.card-lead { display: flex; align-items: center; gap: 14px; min-width: 0; }
.card-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0 0 4px rgba(124, 252, 58, 0.18);
}
.card-icon svg { width: 22px; height: 22px; fill: currentColor; }
.card-main { min-width: 0; }
.card-title { font-weight: 700; overflow-wrap: anywhere; }
.card-sub { margin-top: 2px; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.tag {
  margin-left: 6px;
  padding: 1px 8px;
  border: 1px solid var(--edge-soft);
  border-radius: 999px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  vertical-align: middle;
}
.btn {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.btn-wide { display: block; text-align: center; text-decoration: none; padding: 14px 16px; }
a.btn:hover { filter: brightness(1.1); }

button.btn { border: 0; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.card.playing { padding: 10px; }
.music-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; background: #000; }

.enter {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px));
  background: rgba(7, 17, 10, 0.94);
  backdrop-filter: blur(10px);
}
.enter[hidden] { display: none; }
.enter-box { width: 100%; max-width: 640px; display: flex; flex-direction: column; gap: 14px; text-align: center; }
.enter-name {
  border: 0;
  background: none;
  color: var(--fg);
  font: inherit;
  font-size: clamp(26px, 9vw, 52px);
  font-weight: 800;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  cursor: pointer;
  padding: 8px 12px;
  text-shadow: 0 0 24px rgba(124, 252, 58, 0.55);
  animation: pulse 2.4s ease-in-out infinite;
}
.enter-hint { margin: 0; color: var(--muted); font-size: 14px; }
@keyframes pulse { 50% { text-shadow: 0 0 44px rgba(124, 252, 58, 0.9); } }
body.gated { overflow: hidden; }

a:focus-visible, button:focus-visible { outline: 3px solid var(--fg); outline-offset: 3px; }

.foot { text-align: center; color: var(--muted); font-size: 13px; }

@media (max-width: 480px) {
  .card { flex-direction: column; align-items: flex-start; }
  .btn { align-self: stretch; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .bg::after { animation: none; }
  a.card:hover { transform: none; }
  .card { transition: none; }
  .enter-name { animation: none; }
}
