/* D-Gen portal — hyperpop · kawaii · lovey glitch · heart-X */

@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap");

:root {
  --void: #08000f;
  --void2: #120018;
  --pink: #ff4d9a;
  --pink-hot: #ff7ab8;
  --pink-dim: #a3185a;
  --cyan: #67e8f9;
  --lavender: #e9d5ff;
  --text: #fce7f3;
  --muted: rgba(252, 231, 243, 0.7);
  --panel: rgba(18, 0, 28, 0.72);
  --border: rgba(255, 77, 154, 0.4);
  --glow: 0 0 32px rgba(255, 77, 154, 0.45);
  --font: "Outfit", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--void);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
  overflow-x: hidden;
}
body.booting { overflow: hidden; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: #fff; text-shadow: 0 0 12px var(--pink); }
::selection { background: var(--pink); color: #1a0010; }

/* overlays */
.sparkle {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0.35;
  background-image:
    radial-gradient(1px 1px at 10% 20%, #fff, transparent),
    radial-gradient(1px 1px at 70% 40%, var(--cyan), transparent),
    radial-gradient(1.5px 1.5px at 40% 80%, var(--pink), transparent),
    radial-gradient(1px 1px at 90% 10%, #fff, transparent);
  background-size: 100% 100%;
  animation: twinkle 4s ease-in-out infinite alternate;
}
@keyframes twinkle { to { opacity: 0.55; } }
.pink-vignette {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 2;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(8, 0, 15, 0.75) 100%);
}
#heart-rain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 3;
  overflow: hidden;
}
.heart-drop {
  position: absolute;
  top: -2rem;
  font-size: 0.85rem;
  opacity: 0.35;
  animation: fall linear forwards;
  color: var(--pink);
  text-shadow: 0 0 8px var(--pink);
}
@keyframes fall {
  to { transform: translateY(110vh) rotate(40deg); opacity: 0; }
}

/* boot */
.boot-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050008;
  transition: opacity 0.6s ease, visibility 0.6s;
}
.boot-gate.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.boot-inner {
  text-align: center;
  max-width: 22rem;
  padding: 1.5rem;
}
.boot-inner img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  animation: pulse 1.2s ease-in-out infinite;
  filter: drop-shadow(0 0 16px var(--pink));
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
.boot-code {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--cyan);
  letter-spacing: 0.08em;
  min-height: 1.4em;
}
.boot-ask {
  margin: 0.75rem 0 1rem;
  font-size: 0.95rem;
  color: var(--lavender);
}
.boot-btns { display: flex; flex-direction: column; gap: 0.5rem; }
.btn {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.9rem;
}
.btn.primary {
  background: linear-gradient(135deg, var(--pink), var(--pink-hot));
  color: #1a0010;
  box-shadow: var(--glow);
}
.btn.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--text);
}
.btn.ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.boot-fine {
  margin-top: 0.85rem;
  font-size: 0.7rem;
  color: var(--muted);
}

/* layout chrome */
.shell {
  position: relative;
  z-index: 5;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1.1rem;
  background: rgba(8, 0, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: inherit;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.brand i {
  display: block;
  font-style: normal;
  font-weight: 500;
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav a { color: var(--muted); }
.nav a:hover { color: var(--pink-hot); }
.listen-btn {
  background: linear-gradient(135deg, #ff5500, #ff7a33);
  color: #fff !important;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .nav { display: none; }
}

.ticker {
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 77, 154, 0.2);
  background: rgba(255, 77, 154, 0.06);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--pink-hot);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ticker-track {
  display: inline-block;
  white-space: nowrap;
  padding: 0.35rem 0;
  animation: marquee 40s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

main { max-width: 1100px; margin: 0 auto; padding: 1.25rem 1.1rem 4rem; }

/* hero */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem 0 2rem;
  min-height: min(70vh, 560px);
}
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
}
.hero-frame {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 2px solid var(--border);
  box-shadow: var(--glow);
  aspect-ratio: 1;
  max-width: 420px;
  margin: 0 auto;
  background: #100018;
}
.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-frame .stamp {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--pink);
  color: var(--pink-hot);
  padding: 0.3rem 0.5rem;
  border-radius: 0.3rem;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 700;
  margin: 0 0 0.5rem;
}
.hero h1 {
  margin: 0;
  line-height: 1.05;
}
.hero h1 .line {
  display: block;
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 0 28px rgba(255, 77, 154, 0.5);
}
.hero h1 .small {
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  font-weight: 600;
  color: var(--muted);
  margin-top: 0.45rem;
  letter-spacing: 0.04em;
}
.wordmark {
  width: min(100%, 380px);
  height: auto;
  margin: 0.65rem 0 0.85rem;
  filter: drop-shadow(0 0 16px rgba(255, 77, 154, 0.5));
}
@media (max-width: 820px) {
  .wordmark { margin-left: auto; margin-right: auto; display: block; }
}
.hero-lead {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 34rem;
}
@media (max-width: 820px) {
  .hero-lead { margin-left: auto; margin-right: auto; }
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.15rem;
}
@media (max-width: 820px) {
  .hero-actions { justify-content: center; }
}

/* sections */
.section {
  margin: 2.5rem 0;
  padding: 1.35rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--panel);
  backdrop-filter: blur(8px);
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.section h2 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}
.section-sub {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.pills a {
  display: inline-block;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
  color: #0a0012 !important;
  text-shadow: none !important;
}
.pills a:hover { filter: brightness(1.08); transform: scale(1.03); }

.embed-wrap {
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #000;
  min-height: 166px;
}
.embed-wrap.twitch {
  min-height: 280px;
  aspect-ratio: 16 / 9;
}
.embed-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: inherit;
  border: 0;
  display: block;
}

.discog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.65rem;
}
.discog a, .discog .tile {
  display: block;
  border-radius: 0.55rem;
  overflow: hidden;
  border: 1px solid rgba(255, 77, 154, 0.28);
  background: #0d0014;
  color: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
}
.discog a:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(255, 77, 154, 0.25);
}
.discog img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.discog span {
  display: block;
  font-size: 0.7rem;
  padding: 0.4rem 0.45rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.motifs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.motifs img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #111;
  transition: transform 0.15s;
}
.motifs img:hover { transform: scale(1.08) rotate(-3deg); }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.55rem;
}
.gallery img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 77, 154, 0.22);
}

.lyric {
  font-family: var(--mono);
  font-size: 0.88rem;
  line-height: 1.6;
  color: #fda4d0;
  border-left: 3px solid var(--pink);
  padding: 0.75rem 1rem;
  background: rgba(255, 77, 154, 0.08);
  border-radius: 0 0.5rem 0.5rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 700px) {
  .about-grid { grid-template-columns: 1fr; }
}
.about-grid p { color: var(--muted); margin: 0 0 0.75rem; }

.site-foot {
  margin-top: 2rem;
  padding: 1.25rem 0 0;
  border-top: 1px solid rgba(255, 77, 154, 0.2);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.site-foot .mono { font-family: var(--mono); color: var(--cyan); }

/* floating EPK CTA */
.fab-epk {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.15rem;
  font: inherit;
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  background: linear-gradient(135deg, var(--pink), #ff9ad0);
  color: #1a0010;
  box-shadow: var(--glow);
}
.fab-epk:hover { filter: brightness(1.06); }

.hud {
  position: fixed;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 150;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

/* game-dev lane: same Heart-X energy, separate playable-world signal */
.game-dev-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.8fr);
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(92, 225, 255, 0.28);
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(92, 225, 255, 0.1), rgba(255, 77, 154, 0.08));
}
.game-dev-hero h3 { margin: 0.2rem 0 0.45rem; color: #fff; }
.game-dev-hero p { color: var(--muted); margin: 0 0 0.75rem; }
.game-dev-hero img { width: 100%; max-width: 260px; justify-self: end; border-radius: 0.55rem; border: 1px solid rgba(92, 225, 255, 0.4); }
.game-dev-kicker { font: 0.68rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan); }
.game-grid-dgen { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 0.65rem; margin-top: 0.85rem; }
.game-grid-dgen a { display: block; color: inherit; text-decoration: none; border: 1px solid rgba(255, 77, 154, 0.2); border-radius: 0.55rem; overflow: hidden; background: rgba(11, 4, 20, 0.7); transition: transform 0.16s ease, border-color 0.16s ease; }
.game-grid-dgen a:hover { transform: translateY(-3px); border-color: var(--cyan); }
.game-grid-dgen img { display: block; width: 100%; aspect-ratio: 1.5; object-fit: cover; }
.game-grid-dgen span { display: block; padding: 0.55rem 0.6rem; font: 0.72rem var(--mono); color: #ffd4ea; }
@media (max-width: 700px) { .game-dev-hero { grid-template-columns: 1fr; } .game-dev-hero img { justify-self: start; max-width: 220px; } }

/* EAFFX20 visual lock: prevent inherited portal rules from collapsing the cards. */
.game-dev-hero { grid-template-columns: minmax(0, 1fr) 280px !important; min-height: 220px; }
.game-dev-hero > div { min-width: 0; }
.game-dev-hero > img { display: block !important; width: 280px !important; height: 190px !important; object-fit: cover; align-self: center; }
.game-grid-dgen { display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)) !important; align-items: stretch; }
.game-grid-dgen > a { display: flex !important; flex-direction: column !important; min-width: 0; width: 100% !important; }
.game-grid-dgen > a > img { display: block !important; flex: 0 0 auto; width: 100% !important; height: 120px !important; aspect-ratio: auto !important; object-fit: cover !important; }
.game-grid-dgen > a > span { display: block !important; width: auto !important; min-height: 3.4em; line-height: 1.35; }
@media (max-width: 900px) { .game-grid-dgen { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@media (max-width: 600px) { .game-dev-hero { grid-template-columns: 1fr !important; } .game-dev-hero > img { width: 100% !important; max-width: none; } .game-grid-dgen { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
