/* Created by Graaphix */
/* Designed by Graaphix */

:root {
  --bg: #0b0b10;
  --bg-2: #12121a;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f4f1ea;
  --muted: #a19d95;
  --faint: #6d6a65;
  --gold: #e8c27a;
  --gold-2: #f6dfaa;
  --gold-ink: #2a1f0b;
  --ok: #6fdc9b;
  --warn: #f1b85a;
  --bad: #f07a6a;
  --radius: 20px;
  --radius-s: 12px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --display: "Bricolage Grotesque", "Manrope", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(232, 194, 122, 0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(122, 92, 232, 0.08), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 500 16px/1.6 var(--body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px;
  background: var(--gold); color: var(--gold-ink); font-weight: 700;
  transition: top .2s var(--ease);
}
.skip:focus { top: 16px; }

#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Header ───────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  background: rgba(11, 11, 16, 0.65);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.top.is-scrolled { border-bottom-color: var(--line); background: rgba(11, 11, 16, 0.82); }
.top__inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.brand__name { font: 800 19px/1 var(--display); letter-spacing: -.02em; }
.brand__name em { font-style: normal; color: var(--gold); margin-left: 4px; }
.top__nav { display: flex; gap: 4px; }
.top__nav a {
  padding: 8px 14px; border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 600;
  transition: color .2s, background .2s;
}
.top__nav a:hover { color: var(--text); background: var(--surface-2); }
.top__end { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.search-trigger {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px 8px 12px; border-radius: 999px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 14px;
  transition: border-color .2s, color .2s;
}
.search-trigger:hover { border-color: var(--line-2); color: var(--text); }
.search-trigger svg, .search svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
kbd {
  font: 600 11px/1 var(--body); padding: 4px 7px; border-radius: 6px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--muted);
}

.pulse {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line); white-space: nowrap;
}
.pulse i { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); position: relative; }
.pulse i::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid currentColor; color: inherit; opacity: 0;
  animation: ping 2s var(--ease) infinite;
}
.pulse[data-state="ok"] i { background: var(--ok); color: var(--ok); }
.pulse[data-state="partial"] i { background: var(--warn); color: var(--warn); }
.pulse[data-state="down"] i { background: var(--bad); color: var(--bad); }
@keyframes ping { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.8); opacity: 0; } }

/* ── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn--gold {
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, #c99a4a);
  color: var(--gold-ink);
  box-shadow: 0 10px 30px -10px rgba(232, 194, 122, .6), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(232, 194, 122, .75), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn--ghost { background: var(--surface); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--surface-2); transform: translateY(-2px); }
.btn--light { background: var(--text); color: #111; padding: 12px 20px; }
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -12px rgba(255, 255, 255, .5); }

/* ── Hero ─────────────────────────────────────────── */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
  padding: 72px 0 56px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px;
  padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--gold-2);
  background: rgba(232, 194, 122, .08); border: 1px solid rgba(232, 194, 122, .22);
}
.eyebrow__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); }
h1 {
  margin: 0; font: 800 clamp(42px, 6.4vw, 78px)/0.98 var(--display); letter-spacing: -.035em;
}
.shine {
  background: linear-gradient(100deg, var(--gold) 0%, var(--gold-2) 30%, #fff 45%, var(--gold-2) 60%, var(--gold) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 7s linear infinite;
}
@keyframes shine { from { background-position: 100% 0; } to { background-position: -150% 0; } }
.hero__lede { margin: 24px 0 32px; max-width: 34em; color: var(--muted); font-size: 18px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.stats { display: flex; gap: 36px; margin: 44px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dt { font-size: 13px; color: var(--faint); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.stats dd { margin: 0; font: 800 32px/1.1 var(--display); letter-spacing: -.02em; }

/* Spotlight */
.spot { position: relative; }
.spot__frame {
  position: relative; border-radius: 28px; overflow: hidden;
  display: flex; flex-direction: column;
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .03) inset;
  background: var(--bg-2);
  isolation: isolate;
}
.spot__frame::before {
  content: ""; position: absolute; inset: -40%; z-index: -1;
  background: conic-gradient(from 0deg, transparent, var(--spot-hue, var(--gold)), transparent 30%);
  opacity: .25; filter: blur(40px);
  animation: spin 14s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.spot__art { position: relative; aspect-ratio: 5 / 3; overflow: hidden; }
.spot__art::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 35%;
  background: linear-gradient(to top, rgba(14, 14, 20, 1), transparent);
}
.spot__art svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  animation: artIn .9s var(--ease) both;
}
@keyframes artIn { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
.spot__info {
  position: relative; padding: 4px 28px 28px; min-height: 196px;
  display: flex; flex-direction: column; align-items: flex-start;
  background: rgb(14, 14, 20);
}
.spot__info .btn { margin-top: auto; }
.spot__info > * { animation: rise .6s var(--ease) both; }
.spot__info > :nth-child(2) { animation-delay: .06s; }
.spot__info > :nth-child(3) { animation-delay: .12s; }
.spot__info > :nth-child(4) { animation-delay: .18s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.spot__kicker { display: block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--spot-hue, var(--gold)); }
.spot__title { margin: 6px 0 6px; font: 800 30px/1.1 var(--display); letter-spacing: -.02em; }
.spot__desc { margin: 0 0 18px; color: #cfcac1; font-size: 15px; max-width: 32em; }
.spot__dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.spot__dot {
  position: relative; width: 28px; height: 6px; border-radius: 99px; border: 0; padding: 0; cursor: pointer;
  background: var(--line-2); overflow: hidden; transition: width .35s var(--ease);
}
.spot__dot[aria-selected="true"] { width: 52px; }
.spot__dot span { position: absolute; inset: 0; background: var(--gold); transform-origin: left; transform: scaleX(0); }
.spot__dot[aria-selected="true"] span { animation: fill var(--spot-ms, 6000ms) linear forwards; }
.spot.is-paused .spot__dot span { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }

/* ── Sections ─────────────────────────────────────── */
.section-title { margin: 0; font: 800 clamp(28px, 3.4vw, 40px)/1.1 var(--display); letter-spacing: -.025em; }
.section-sub { margin: 8px 0 0; color: var(--muted); }

.recent { padding: 24px 0 8px; }
.recent__row { display: flex; gap: 12px; margin-top: 18px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.recent__row::-webkit-scrollbar { display: none; }
.recent__item {
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
  padding: 8px 18px 8px 8px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .2s, transform .25s var(--ease);
}
.recent__item:hover { border-color: var(--hue); transform: translateY(-2px); }
.recent__thumb { width: 56px; height: 40px; border-radius: 10px; overflow: hidden; }
.recent__thumb svg { width: 100%; height: 100%; }
.recent__item b { font-size: 14px; display: block; }
.recent__item small { color: var(--faint); font-size: 12px; }

/* Library */
.library { padding: 56px 0 24px; scroll-margin-top: 80px; }
.library__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.search {
  display: flex; align-items: center; gap: 10px; width: min(360px, 100%);
  padding: 0 10px 0 16px; height: 48px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted);
  transition: border-color .2s, box-shadow .2s;
}
.search:focus-within { border-color: rgba(232, 194, 122, .5); box-shadow: 0 0 0 4px rgba(232, 194, 122, .1); }
.search input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent;
  color: var(--text); font: 500 15px var(--body);
}
.search input::placeholder { color: var(--faint); }
.search input::-webkit-search-cancel-button { display: none; }

.filters {
  display: flex; gap: 8px; margin: 28px 0 28px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  padding: 9px 16px; border-radius: 999px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted);
  font-size: 14px; font-weight: 600;
  transition: all .2s var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--line-2); }
.chip[aria-pressed="true"] { background: var(--text); color: #111; border-color: var(--text); }
.chip small { font-size: 12px; opacity: .6; }

.grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
}

/* Card */
.card {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
  border: 1px solid var(--line);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s var(--ease), border-color .3s, box-shadow .4s var(--ease);
  animation: cardIn .6s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 60ms);
}
@keyframes cardIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--hue) 22%, transparent), transparent 45%);
  opacity: 0; transition: opacity .3s;
}
.card:hover, .card:focus-visible {
  border-color: color-mix(in srgb, var(--hue) 55%, transparent);
  box-shadow: 0 30px 60px -28px color-mix(in srgb, var(--hue) 60%, transparent);
}
.card:hover::after { opacity: 1; }
.card.is-tilting { transition: transform .08s linear, border-color .3s, box-shadow .4s var(--ease); }

.card__art { position: relative; aspect-ratio: 5 / 3; overflow: hidden; }
.card__art svg { width: 100%; height: 100%; transition: transform .8s var(--ease); }
.card:hover .card__art svg { transform: scale(1.06); }
.card__art::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 40%;
  background: linear-gradient(to top, rgba(14, 14, 20, .9), transparent);
}
.badge {
  position: absolute; left: 14px; top: 14px; z-index: 1;
  padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(8, 8, 12, .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .14);
}
.badge--new { left: auto; right: 14px; background: var(--gold); color: var(--gold-ink); border-color: transparent; }
.status {
  position: absolute; left: 14px; bottom: 12px; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #ddd8cf;
}
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.status[data-state="ok"] i { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.status[data-state="down"] i { background: var(--bad); }

.card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card h3 { margin: 0; font: 700 22px/1.2 var(--display); letter-spacing: -.015em; }
.ver { font-size: 12px; color: var(--faint); font-weight: 600; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.tagline { margin: 4px 0 10px; color: var(--hue); font-weight: 600; font-size: 14px; }
.desc { margin: 0 0 16px; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.modes { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; }
.modes li {
  padding: 4px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: #cfcac1;
  background: var(--surface-2); border: 1px solid var(--line);
}
.card__foot {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; border-top: 1px solid var(--line);
}
.players { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 600; }
.players svg, .cta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cta {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px;
  padding: 8px 14px; border-radius: 999px; background: var(--surface-2); transition: background .25s, color .25s, gap .25s var(--ease);
}
.card:hover .cta { background: var(--hue); color: #111; gap: 10px; }

.empty { text-align: center; padding: 56px 0; color: var(--muted); }
.empty p { margin: 0 0 16px; font-size: 17px; }
.noscript-list { columns: 2; color: var(--gold); }

/* Why */
.why { padding: 72px 0 88px; scroll-margin-top: 80px; }
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 32px; }
.why__item {
  padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: border-color .3s, transform .4s var(--ease);
}
.why__item:hover { border-color: rgba(232, 194, 122, .35); transform: translateY(-4px); }
.why__item svg { width: 40px; height: 40px; fill: none; stroke: var(--gold); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.why__item h3 { margin: 0 0 6px; font: 700 18px/1.25 var(--display); }
.why__item p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); color: var(--faint); font-size: 14px; }
.foot__inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot a { color: var(--muted); transition: color .2s; }
.foot a:hover { color: var(--gold); }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 48px 0 32px; }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .top__nav, .search-trigger span, .search-trigger kbd { display: none; }
  .search-trigger { padding: 9px; }
  .pulse { padding: 7px 10px; }
  .stats { gap: 24px; }
  .stats dd { font-size: 26px; }
  .hero__lede { font-size: 16px; }
  .spot__info { padding: 4px 20px 20px; min-height: 0; }
  .spot__title { font-size: 24px; }
  .search kbd { display: none; }
  .why__grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .pulse #pulse-text { display: none; }
  .hero__actions .btn { flex: 1; }
}
@media (hover: none) {
  .card { transform: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}

/* Designed by Graaphix */
