/* Palette: derived from primary #AA81FF */
:root {
  --bg: #0A010E;
  --text: #f3e9fc;
  --primary: #AA81FF;
  --primary-strong: #c4a5ff;
  --primary-dim: #7a5bc0;
  --primary-soft: rgba(170, 129, 255, .14);
  --primary-glow: rgba(170, 129, 255, .35);
  --surface: #140820;
  --surface-2: #1d0e2d;
  --border: #2c1a42;
  --muted: #a898bd;
  --radius: 14px;
  --font: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 50% -120px, var(--primary-soft), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-strong); text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--primary); color: var(--bg); }

/* icons: css-masked svg, inherits text color */
.ic {
  display: inline-block;
  width: 1.15em; height: 1.15em;
  flex: none;
  vertical-align: -0.2em;
  background-color: currentColor;
  -webkit-mask: var(--src) center / contain no-repeat;
          mask: var(--src) center / contain no-repeat;
}

.wrap { max-width: 880px; margin: 0 auto; padding: 0 1.25rem 3rem; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem 1.25rem;
  background: rgba(10, 1, 14, .8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav__brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--text); }
.nav__brand .ic { color: var(--primary); }
.nav__links { display: flex; flex-wrap: nowrap; gap: .25rem; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav__links::-webkit-scrollbar { display: none; }
.nav__links a {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .65rem; border-radius: 8px;
  color: var(--muted); font-size: .85rem; white-space: nowrap;
}
.nav__links a:hover { color: var(--text); background: var(--primary-soft); text-decoration: none; }
@media (max-width: 760px) {
  .nav__links span { display: none; }
  .nav__links a { padding: .45rem .6rem; }
  .nav__links .ic { width: 1.3em; height: 1.3em; }
}

/* hero */
.hero { padding: 4.5rem 0 2rem; }
.hero h1 { margin: 0 0 1rem; font-size: clamp(2rem, 6vw, 3.25rem); line-height: 1.15; letter-spacing: -.02em; }
.accent { color: var(--primary); text-shadow: 0 0 28px var(--primary-glow); }
.hero__intro { max-width: 60ch; margin: 0; color: var(--muted); font-size: 1.05rem; }

/* sections */
.section { padding: 2.25rem 0 .5rem; }
.section h2 {
  display: flex; align-items: center; gap: .6rem;
  margin: 0 0 1.1rem; font-size: 1.3rem;
}
.section h2 .ic { color: var(--primary); }
.section h2::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--border), transparent); }

/* chips */
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.chip {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .45rem .85rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  transition: border-color .15s, background .15s, transform .15s;
}
.chip .ic { color: var(--primary); }
.chip:hover { border-color: var(--primary-dim); background: var(--surface-2); transform: translateY(-2px); }

/* cards */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
}
.card h3 { display: flex; align-items: center; gap: .5rem; margin: 0 0 .5rem; font-size: 1.1rem; }
.card h3 .ic { color: var(--primary); }
.card p { margin: 0 0 1rem; }

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem 1rem; border-radius: 10px;
  background: var(--primary); color: var(--bg); font-weight: 700; font-size: .9rem;
  transition: box-shadow .15s, transform .15s;
}
.btn:hover { color: var(--bg); text-decoration: none; box-shadow: 0 0 24px var(--primary-glow); transform: translateY(-1px); }

/* games */
.games {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem;
}
.game { display: block; color: var(--text); }
.game:hover { text-decoration: none; color: var(--text); }
.game__art {
  position: relative; display: block; aspect-ratio: 2 / 3; overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.game__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.game__fallback { position: absolute; inset: 0; display: none; place-items: center; color: var(--primary-dim); font-size: 2.5rem; }
.game__art.missing img { display: none; }
.game__art.missing .game__fallback { display: grid; }
.game:hover .game__art { transform: translateY(-4px); border-color: var(--primary); box-shadow: 0 8px 28px var(--primary-glow); }
.game__name { display: flex; align-items: center; gap: .4rem; margin-top: .6rem; font-size: .88rem; color: var(--muted); }
.game:hover .game__name { color: var(--text); }
.game__name .ic { width: 1em; height: 1em; margin-left: auto; }

/* oc */
.oc { display: grid; grid-template-columns: minmax(0, 260px) 1fr; gap: 1.5rem; align-items: center; }
.oc__img {
  position: relative; aspect-ratio: 1; overflow: hidden;
  background: var(--surface-2); border: 1px dashed var(--primary-dim); border-radius: 12px;
}
.oc__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.oc__fallback { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; color: var(--primary-dim); font-size: 2.2rem; }
.oc__fallback small { font-size: .7rem; color: var(--muted); }
.oc__img.missing img { display: none; }
.oc__img.missing .oc__fallback { display: flex; }
.oc__info { margin: 0; }
.oc__info dt { display: flex; align-items: center; gap: .5rem; margin-top: .75rem; font-weight: 700; color: var(--primary); }
.oc__info dt:first-child { margin-top: 0; }
.oc__info dd { margin: .25rem 0 0; color: var(--text); }
@media (max-width: 640px) { .oc { grid-template-columns: 1fr; } .oc__img { max-width: 260px; } }

/* socials */
.socials { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .75rem; }
.social {
  display: grid; grid-template-columns: auto 1fr; column-gap: .75rem; align-items: center;
  padding: .8rem 1rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; color: var(--text);
  transition: border-color .15s, background .15s, transform .15s;
}
.social .ic { grid-row: span 2; width: 1.6em; height: 1.6em; color: var(--primary); }
.social__label { font-weight: 700; }
.social__handle { color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social:hover { border-color: var(--primary); background: var(--surface-2); transform: translateY(-2px); text-decoration: none; color: var(--text); }

/* footer */
.footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
  max-width: 880px; margin: 0 auto; padding: 1.5rem 1.25rem 2.5rem;
  border-top: 1px solid var(--border); color: var(--muted); font-size: .85rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
