/* hovac — one stylesheet, no framework. */
:root {
  --bg: #1d1d1d;
  --bg-2: #121212;
  --card: #171717;
  --card-2: #212121;
  --line: #101010;
  --line-hover: #3a3a3a;
  --text: #ffffff;
  --muted: #a9a9a9;
  --pink: #ef83d7;
  --cyan: #2eb8f0;
  --grad: linear-gradient(100deg, var(--pink), var(--cyan));
  --warn: #ffb84d;
  --bad: #ff6b6b;
  --ok: #4ade80;
  --radius: 8px;
  --wrap: 1180px;
  --font: "Source Sans 3", "Source Sans Pro", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: var(--font);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 80px; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: #2d2d2d; }
::-webkit-scrollbar-thumb:hover { background: #3e3e3e; }
html { scrollbar-color: #2d2d2d var(--bg-2); }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.center .lead, .center .prose { margin-left: auto; margin-right: auto; }
.center .btn + .btn { margin-left: 6px; }
.hero--page { min-height: 52vh; display: flex; align-items: center; }
.hero--page .wrap { width: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }
.i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -.125em; }
.grad, .brand em { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; background-size: 400%; animation: shift 4s ease-in-out infinite; }
@keyframes shift { 50% { background-position: 100% 0; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--bg-2); border-bottom: 1px solid #0a0a0a; }
.topbar__in { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font: 600 1.25rem var(--display); margin: 0; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 8px; }
.brand em { font-style: normal; }
.topnav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.topnav a { color: var(--muted); padding: 6px 12px; border-radius: 999px; white-space: nowrap; display: flex; gap: 6px; align-items: center; }
.topnav a:hover { color: var(--cyan); text-decoration: none; }
.topnav a[aria-current] { color: var(--text); background: var(--card-2); }
.topnav__discord:hover { color: #5865f2 !important; }
@media (max-width: 560px) { .topnav__discord span { display: none; } .brand span { display: none; } }

/* hero */
.hero { padding: 40px 0 28px; position: relative; isolation: isolate; }
.hero--game::before, .hero--home::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(29,29,29,.55), var(--bg) 92%), var(--hero, none) center/cover; opacity: .9; }
.hero--home { padding: 72px 0 40px; }
.hero--home { text-align: center; }
.hero--home .lead { margin-left: auto; margin-right: auto; }
.hero--home::before { background: none; }
.hero--small { padding: 32px 0 12px; }
.hero h1 .i { margin-right: .25em; color: var(--pink); font-size: .9em; }
.lead { font-size: 1.15rem; font-weight: 300; color: #d6d6d6; max-width: 70ch; }
.lead img { display: inline-block; vertical-align: middle; max-height: 80px; }
.stats { color: var(--muted); }
.stats strong { color: var(--text); }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 18px; font-size: .88rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }

.plats { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 14px; }
.plat { display: flex; align-items: center; gap: 6px; font-size: .85rem; padding: 4px 10px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); color: #d6d6d6; }
.plats--small .plat { font-size: .75rem; padding: 2px 8px; }

/* search */
.search { display: flex; align-items: center; gap: 10px; max-width: 560px; margin-top: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 0 14px; }
.search:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(46,184,240,.15); }
.search input { flex: 1; background: none; border: 0; color: var(--text); font: inherit; padding: 12px 0; outline: none; min-width: 0; }
.search .i { color: var(--muted); }
.search__key { font-size: .75rem; color: var(--muted); }
.search:focus-within .search__key { display: none; }
.results { margin-top: 8px; min-height: 40vh; }
.results__count { color: var(--muted); }
.results mark { background: rgba(46,184,240,.25); color: inherit; border-radius: 3px; padding: 0 1px; }

/* buttons */
.btn { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 8px; background: #000; border: 0; color: #fff; font-weight: 600; cursor: pointer; }
.btn:hover { text-decoration: none; }
.btn::before { content: ""; position: absolute; inset: -2px; z-index: -2; border-radius: 10px; background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #68d43d, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000); background-size: 400%; filter: blur(5px); opacity: 0; transition: opacity .3s ease-in-out; animation: glowing 20s linear infinite; }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: #000; }
.btn:hover::before, .btn:focus-visible::before { opacity: 1; }
@keyframes glowing { 50% { background-position: 400% 0; } }
.btn--primary { background: var(--grad); background-size: 400%; animation: shift 5s linear infinite; }
.btn--primary::after { inset: 2px; border-radius: 6px; }
.btn--block { display: flex; width: 100%; margin-bottom: 8px; }
.btn--small { padding: 6px 12px; font-size: .88rem; }

/* badges */
.badges { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 10px; }
.badge { font-size: .74rem; font-weight: 400; padding: 1px 9px; border-radius: 8px; color: #fff; background: linear-gradient(45deg, #ef83d7, #2eb8f0); background-size: 400%; animation: shift 5s linear infinite; }
.badge--fabric { background-image: linear-gradient(45deg, #ffffff, #74b4f0); color: #000; }
.badge--forge { background-image: linear-gradient(45deg, #efe883, #edf02e); color: #000; }
.badge--weave { background-image: linear-gradient(45deg, #ece0cd, #cdb787); color: #000; }
.badge--cracked { background-image: linear-gradient(45deg, #a0f5a7, #127c04); color: #000; }
.badge--internal { background-image: linear-gradient(45deg, #ff1b81, #680233); }
.badge--external { background-image: linear-gradient(45deg, #a41bff, #540268); }
.badge--rat { background-image: linear-gradient(45deg, #ef8383, #f02e2e); }
.badge--ct { background-image: linear-gradient(45deg, #b45af7, #7f2ebc, #4d1974); }

/* logos (image or letter) */
.card__logo, .client__logo { display: grid; place-items: center; overflow: hidden; flex: none; font-family: var(--display); font-weight: 700; color: #000; background: var(--card-2); }
.card__logo img, .client__logo img { width: 100%; height: 100%; object-fit: contain; padding: 12%; }
.card__logo--letter, .client__logo--letter { background: var(--grad); }
.card--old .card__logo--letter { background: var(--line-hover); color: var(--muted); }

/* client cards */
.subsec { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line-hover); }
.subsec__title { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; margin: 0 0 4px; color: #d6d6d6; }
.subsec__title .i { color: var(--muted); }
.subsec__text { color: var(--muted); margin: 0; font-size: .95rem; }
.grid { list-style: none; margin: 16px 0 28px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s, transform .15s, background .15s; }
.card:hover { border-color: var(--line-hover); background: var(--card-2); transform: translateY(-2px); }
.card__thumb { aspect-ratio: 16 / 9; background: var(--card-2); overflow: hidden; }
.card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .card__thumb img { transform: scale(1.04); }
.card--old .card__thumb img { filter: grayscale(.6) brightness(.8); }
.card__body { padding: 0 16px 16px; display: flex; flex-direction: column; }
.card__logo { width: 48px; height: 48px; border-radius: 8px; margin-top: -24px; margin-bottom: 10px; border: 3px solid var(--card); font-size: 1.2rem; position: relative; }
.card:hover .card__logo { border-color: var(--card-2); }
.card__name { margin: 0 0 8px; font-size: 1.08rem; }
.card__link { color: var(--text); }
.card__link::after { content: ""; position: absolute; inset: 0; }
.card__link:hover { text-decoration: none; }
.card__link:focus-visible { outline: none; }
.card:has(.card__link:focus-visible) { outline: 2px solid var(--cyan); outline-offset: 2px; }
.card__text { color: var(--muted); font-size: .9rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* category tiles (game page) */
.cats { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
@media (max-width: 400px) { .cats { grid-template-columns: 1fr; } }
.cat { position: relative; isolation: isolate; overflow: hidden; min-height: 168px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--c) 35%, var(--line)); display: flex; align-items: flex-end; transition: transform .2s, border-color .2s; }
.cat:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 70%, var(--line)); }
.cat__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .4s; }
.cat:hover .cat__bg { transform: scale(1.05); }
.cat::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, color-mix(in srgb, var(--c) 28%, rgba(29,29,29,.92)) 0%, rgba(29,29,29,.78) 55%, rgba(29,29,29,.45) 100%); }
.cat__body { padding: 18px 20px; }
.cat__title { margin: 0 0 6px; font-size: 1.35rem; }
.cat__title .i { color: var(--c); margin-right: 8px; }
.cat__link { color: var(--text); }
.cat__link::after { content: ""; position: absolute; inset: 0; }
.cat__link:hover { text-decoration: none; }
.cat:has(.cat__link:focus-visible) { outline: 2px solid var(--c); outline-offset: 2px; }
.cat__text { color: #d6d6d6; font-size: .93rem; margin: 0 0 8px; max-width: 46ch; }
.cat__count { margin: 0; font-size: .82rem; font-weight: 600; color: var(--c); }

/* featured carousel */
.featured { margin-bottom: 28px; }
.slides { position: relative; }
.slides__track { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; border-radius: 8px; }
.slides__track::-webkit-scrollbar { display: none; }
.slide { scroll-snap-align: start; position: relative; isolation: isolate; overflow: hidden; min-height: 250px; border: 1px solid var(--line); border-radius: 8px; display: flex; align-items: center; }
.slide__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.slide::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(29,29,29,.95) 0%, rgba(29,29,29,.8) 45%, rgba(29,29,29,.25) 100%); }
.slide__body { padding: 32px clamp(20px, 5vw, 48px); }
.slide h3 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
.slide h3 a { color: var(--text); }
.slide p { color: #d6d6d6; max-width: 56ch; }
.eyebrow { color: var(--pink) !important; font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; display: flex; gap: 6px; align-items: center; }
.dots { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.dots button { width: 8px; height: 8px; border-radius: 99px; border: 0; padding: 0; background: var(--line-hover); cursor: pointer; transition: width .2s, background .2s; }
.dots button[aria-current="true"] { width: 24px; background: var(--grad); }

/* category chips (section pages) */
.chips { padding-top: 6px; padding-bottom: 6px; }
.chips ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.chips a { display: flex; align-items: center; gap: 6px; white-space: nowrap; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: #d6d6d6; font-size: .88rem; }
.chips a:hover { text-decoration: none; border-color: var(--line-hover); }
.chips a[aria-current] { background: var(--text); color: var(--bg); border-color: var(--text); }
.count { font-size: .75em; color: var(--muted); font-weight: 500; margin-left: 4px; }
.chips a[aria-current] .count { color: #555; }

/* section headers with "see all" */
.row { margin: 28px auto 8px; }
.row__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.row__head h2 { margin: 0; display: flex; align-items: center; gap: 10px; }
.row__head h2 .i { color: var(--pink); }
.more { display: inline-flex; gap: 6px; align-items: center; font-size: .9rem; white-space: nowrap; }

/* games (home): image left, text right, like the old site */
.games { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 16px; }
.game { position: relative; display: grid; grid-template-columns: 40% 1fr; border-radius: var(--radius); overflow: hidden; background: rgba(0,0,0,.13); border: 1px solid var(--line); transition: border-color .2s; }
.game:hover { border-color: var(--line-hover); }
.game__img { width: 100%; height: 100%; object-fit: cover; min-height: 200px; }
.game__body { padding: 22px 26px; display: flex; flex-direction: column; justify-content: center; }
.game h3 { font-size: 1.5rem; margin-bottom: 8px; }
.game__link { color: var(--text); }
.game__link::after { content: ""; position: absolute; inset: 0; }
.game__link:hover { text-decoration: none; }
.game p { color: #cccccc; font-weight: 300; }
.game__cta { margin: 4px 0 0; }
.game:hover .btn::before { opacity: 1; }
@media (max-width: 640px) { .game { grid-template-columns: 1fr; } .game__img { aspect-ratio: 16 / 9; min-height: 0; } }

/* about + A–Z */
.prose { max-width: 75ch; }
.prose ol, .prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose img { border-radius: 8px; }
.prose code, kbd { background: var(--card-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: .88em; }
.about { margin-top: 12px; }
.az { margin: 32px auto 48px; }
.az__list { list-style: none; padding: 0; margin: 0; columns: 4 180px; column-gap: 24px; }
.az__list li { break-inside: avoid; padding: 2px 0; }
.az__list a { color: #cccccc; font-size: .92rem; }

/* client page */
.client { padding-top: 28px; }
.client__layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; grid-template-areas: "top side" "main side"; gap: 0 36px; align-items: start; }
.client__top { grid-area: top; margin-bottom: 28px; }
.client__main { grid-area: main; min-width: 0; }
.client__side { grid-area: side; position: sticky; top: 80px; }
@media (max-width: 860px) {
  .client__layout { grid-template-columns: 1fr; grid-template-areas: "top" "side" "main"; }
  .client__side { position: static; margin-bottom: 28px; }
}
.banner { position: relative; margin: 0 0 -44px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 1; background: var(--card); }
@media (max-width: 860px) { .banner { aspect-ratio: 3 / 1; } }
.banner img { width: 100%; height: 100%; object-fit: cover; object-position: center 75%; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(29,29,29,.85) 100%); }
@media (max-width: 600px) { .banner { aspect-ratio: 2 / 1; } }
.client__head { display: flex; align-items: flex-end; gap: 16px; margin: 0 0 14px 20px; position: relative; }
.client__head h1 { margin: 0; }
.client__logo { width: 88px; height: 88px; border-radius: 8px; font-size: 2.2rem; border: 4px solid var(--bg); }
.sub { color: var(--muted); margin: 0; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.facts div { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; }
.facts dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
@media (max-width: 600px) {
  .facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 14px; }
  .facts div { padding: 6px 10px; border-radius: 8px; min-width: 0; }
  .facts dt { font-size: .62rem; }
  .facts dd { font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .client__top .lead { font-size: 1rem; }
}
.status--active { color: var(--ok); }
.status--discontinued, .status--archived { color: var(--warn); }
.client__main > section { margin-bottom: 36px; }
@media (max-width: 560px) { .client__head { margin-left: 8px; } .client__logo { width: 72px; height: 72px; font-size: 1.8rem; } }
.dlbox { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.dlbox__title { font: 700 1.1rem var(--display); }
.dlbox .plats { margin: 12px 0 0; }
.dlbox__meta { margin: 10px 0 0; font-size: .85rem; color: var(--muted); }
.dlbox__meta strong { color: var(--text); }
.dlbox__more { display: block; margin-top: 10px; font-size: .85rem; }
.warn { display: flex; gap: 8px; font-size: .85rem; background: rgba(255,107,107,.1); border: 1px solid rgba(255,107,107,.4); color: #ffc9c9; padding: 10px; border-radius: 8px; }
.warn .i { color: var(--bad); margin-top: 3px; }
.warn--info { background: rgba(255,184,77,.08); border-color: rgba(255,184,77,.35); color: #ffe2b5; }
.warn--info .i { color: var(--warn); }
.features { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 20px; }
.features li { display: flex; gap: 8px; }
.features li p { margin: 0; }
.features .i { color: var(--ok); margin-top: 5px; }
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: min(85%, 560px); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.shots figure { margin: 0; }
.shots img { border-radius: 8px; border: 1px solid var(--line); }
.shots figcaption { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.yt { position: relative; display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 16/9; background: #000; max-width: 720px; }
.yt img, .yt iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.yt__play { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3rem; color: #fff; background: rgba(0,0,0,.25); }
.dl-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.dl-table th, .dl-table td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.dl-table th { color: var(--muted); font-weight: 500; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.dl-table td:last-child { text-align: right; }
@media (max-width: 560px) { .dl-table th:nth-child(3), .dl-table td:nth-child(3) { display: none; } }

/* FAQ */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; overflow: hidden; }
.faq details[open] { border-color: var(--line-hover); }
.faq summary { cursor: pointer; padding: 14px 48px 14px 18px; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq summary:hover { background: var(--card-2); }
.faq details > div { padding: 0 18px 16px; color: #d6d6d6; }
.faq details > div > :last-child { margin-bottom: 0; }

/* footer */
.foot { border-top: 1px solid #0a0a0a; margin-top: 48px; padding: 32px 0; background: var(--bg-2); }
.foot__in { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 24px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot a { color: #cccccc; }
.brand--small { font-size: 1.1rem; }
@media (max-width: 700px) { .foot__in { grid-template-columns: 1fr; } }

/* Client-supplied images (archive screenshots etc.): cards show the top, banners the hero area. */
.card__thumb img[src^="/img/clients/"] { object-position: top; }
.banner img[src^="/img/clients/"] { object-position: 50% 22%; }
