/* ITCSS — Helynx Games (hl-o / hl-c / hl-u / hl-is) */
:root {
  --hl-primary: #8e44ad;
  --hl-primary-dark: #5b2c6f;
  --hl-secondary: #9b59b6;
  --hl-accent: #e91e63;
  --hl-accent-deep: #ad1457;
  --hl-btn-fill: #ad1457;
  --hl-bg: #121018;
  --hl-bg-2: #1a1520;
  --hl-bg-3: #221a2c;
  --hl-text: #f0eef5;
  --hl-muted: #b8b3c4;
  --hl-border: rgba(240, 238, 245, 0.28);
  --hl-header-h: 72px;
  --hl-font-display: "Inconsolata", ui-monospace, monospace;
  --hl-font-body: "Droid Serif", "Libre Baskerville", Georgia, serif;
  --hl-radius: 10px;
  --hl-max: 1120px;
}

[hidden] { display: none !important; }

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

html {
  scroll-padding-top: var(--hl-header-h);
  overflow-x: clip;
}

body {
  margin: 0;
  padding-top: var(--hl-header-h);
  background: var(--hl-bg);
  color: var(--hl-text);
  font-family: var(--hl-font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--hl-accent); }
a:hover, a:focus-visible { color: #ff4d8d; }

/* Settings — underline on text links only */
a:not([class*="hl-c-btn"]) {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1.5px;
  transition: background-size 0.25s ease, color 0.2s ease;
}
a:not([class*="hl-c-btn"]):hover,
a:not([class*="hl-c-btn"]):focus-visible {
  background-size: 100% 1.5px;
}

h1, h2, h3, h4, .hl-c-kicker, .hl-c-btn, .hl-c-nav__link, .hl-c-logo__word {
  font-family: var(--hl-font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(1.85rem, 4vw, 2.75rem); line-height: 1.15; margin: 0 0 0.75rem; }
h2 { font-size: clamp(1.35rem, 2.5vw, 1.85rem); line-height: 1.2; margin: 0 0 0.65rem; }
h3 { font-size: 1.2rem; margin: 0 0 0.5rem; }
h4 { font-size: 1.05rem; margin: 0 0 0.4rem; }

.hl-o-wrap {
  width: min(100% - 2rem, var(--hl-max));
  margin-inline: auto;
}

.hl-c-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--hl-accent);
  margin: 0 0 0.5rem;
}

.hl-c-lede { font-size: 1.15rem; color: var(--hl-muted); max-width: 42rem; }
.hl-c-meta { color: var(--hl-muted); font-size: 0.95rem; }
.hl-c-page { padding: 2rem 0 3.5rem; }
.hl-c-page > .hl-c-card { margin: 1.25rem 0; padding: 1.25rem; }

/* Objects — vignette sections */
.hl-c-hero,
.hl-c-cta,
.hl-c-404 {
  position: relative;
  background:
    radial-gradient(ellipse 80% 70% at 50% 0%, rgba(142, 68, 173, 0.28), transparent 55%),
    linear-gradient(180deg, #1a1520 0%, #121018 70%);
}
.hl-c-hero::before,
.hl-c-cta::before,
.hl-c-404::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(105deg, transparent 40%, rgba(233, 30, 99, 0.08) 50%, transparent 60%),
    radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, 0.55) 100%);
}

.hl-c-hero { padding: 3.25rem 0 2.25rem; }
.hl-c-hero__title { max-width: 18ch; }
.hl-c-hero__text { max-width: 40rem; color: var(--hl-muted); margin: 0 0 1.25rem; }
.hl-c-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hl-c-hero > .hl-o-wrap { position: relative; z-index: 1; }

.hl-c-facts {
  border-block: 1px solid var(--hl-border);
  background: var(--hl-bg-2);
  padding: 1rem 0;
}
.hl-c-facts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}
.hl-c-facts__label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  color: var(--hl-muted);
  font-family: var(--hl-font-display);
}
.hl-c-facts strong { font-family: var(--hl-font-display); }

/* Header — fixed opaque */
.hl-c-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--hl-header-h);
  background: #1a1520;
  border-bottom: 1px solid var(--hl-border);
}
.hl-c-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
}
.hl-c-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--hl-text) !important;
  background-image: none !important;
  flex-shrink: 0;
  width: 180px;
}
.hl-c-logo__mark { width: 42px; height: 42px; flex-shrink: 0; }
.hl-c-logo__word {
  font-size: 1.35rem;
  color: var(--hl-text);
}
.hl-c-logo--foot { width: auto; justify-content: center; margin-inline: auto; }

.hl-c-nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-left: auto;
  flex-wrap: nowrap;
}
.hl-c-nav__link {
  color: var(--hl-text) !important;
  background-image: none !important;
  font-size: 0.92rem;
  white-space: nowrap;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.hl-c-nav__link:hover,
.hl-c-nav__link:focus-visible,
.hl-c-nav__link.hl-is-active {
  color: #fff !important;
  border-bottom-color: var(--hl-accent);
}

.hl-c-header__cta { margin-left: 0.5rem; flex-shrink: 0; }

.hl-c-burger {
  display: none;
  order: 99;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--hl-border);
  background: var(--hl-bg-3);
  color: var(--hl-text);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.hl-c-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
}

.hl-c-navmask {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.45);
}
.hl-c-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 210;
  height: 100vh;
  height: 100dvh;
  width: min(75vw, 320px);
  padding: 64px 0 20px;
  background: #1a1520;
  border-left: 1px solid var(--hl-border);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.25s ease, visibility 0.25s;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  overflow-y: auto;
}
.hl-c-drawer[hidden] {
  display: flex !important;
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
}
.hl-c-navmask[hidden] {
  display: block !important;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
}
.hl-c-drawer a {
  padding: 10px 20px;
  font-size: 0.95rem;
  color: var(--hl-text) !important;
  background-image: none !important;
  font-family: var(--hl-font-display);
}
.hl-c-drawer .hl-c-btn { margin: 12px 20px 0; width: calc(100% - 40px); justify-content: center; }
.hl-c-drawer__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--hl-border);
  background: var(--hl-bg-3);
  color: var(--hl-text);
  font-size: 1.5rem;
  cursor: pointer;
}
body.hl-nav-open .hl-c-drawer {
  transform: translateX(0);
  visibility: visible;
}
body.hl-nav-open .hl-c-navmask { display: block; }
.hl-c-navmask[hidden] { display: none !important; }

/* Buttons — double border #14 */
.hl-c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1.15rem;
  border: 2px solid var(--hl-text);
  outline: 2px solid var(--hl-accent);
  outline-offset: 3px;
  background: var(--hl-bg-2);
  color: var(--hl-text);
  text-decoration: none !important;
  background-image: none !important;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.hl-c-btn--accent {
  background: var(--hl-btn-fill);
  color: #fff;
  border-color: #fff;
  outline-color: var(--hl-accent);
}
.hl-c-btn--accent:hover,
.hl-c-btn--accent:focus-visible,
.hl-c-btn--accent:active,
.hl-c-btn--accent:visited {
  background: #8e0e45;
  color: #fff;
  border-color: #fff;
}
.hl-c-btn--ghost {
  background: transparent;
  color: var(--hl-text);
  border-color: var(--hl-text);
  outline-color: rgba(240, 238, 245, 0.35);
}
.hl-c-btn--ghost:hover,
.hl-c-btn--ghost:focus-visible,
.hl-c-btn--ghost:active,
.hl-c-btn--ghost:visited {
  background: rgba(240, 238, 245, 0.1);
  color: #fff;
  border-color: #fff;
}
.hl-c-header a.hl-c-btn--accent {
  background: var(--hl-btn-fill);
  color: #fff;
  border-color: #fff;
}
.hl-c-header a.hl-c-btn--accent:hover,
.hl-c-header a.hl-c-btn--accent:focus-visible {
  background: #8e0e45;
  color: #fff;
}

/* Cards — outline only #10 */
.hl-c-card,
.hl-c-card--outline {
  background: transparent;
  border: 1.5px solid var(--hl-border);
  border-radius: var(--hl-radius);
  box-shadow: none;
}

/* Tabs L2#8 */
.hl-c-tabshell { padding: 2rem 0 1rem; }
.hl-c-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  border-bottom: 1px solid var(--hl-border);
  margin-bottom: 1.5rem;
}
.hl-c-tab {
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--hl-muted);
  font-family: var(--hl-font-display);
  font-size: 0.95rem;
  cursor: pointer;
}
.hl-c-tab[aria-selected="true"] {
  color: var(--hl-text);
  border-bottom-color: var(--hl-primary);
}
.hl-c-tabpanel { padding-bottom: 1rem; }
.hl-c-block { margin-bottom: 2rem; }
.hl-c-block__lead { color: var(--hl-muted); max-width: 40rem; }

.hl-c-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 1fr);
  gap: 1.25rem;
  align-items: center;
  border: 1.5px solid var(--hl-border);
  border-radius: var(--hl-radius);
  padding: 1rem;
  background: linear-gradient(135deg, rgba(142, 68, 173, 0.12), transparent 60%);
}
.hl-c-feature img { width: 100%; border-radius: 6px; object-fit: contain; }

.hl-c-genre { margin: 1.75rem 0; }
.hl-c-genre__head { margin-bottom: 1rem; max-width: 40rem; }
.hl-c-genre__head p { color: var(--hl-muted); }

.hl-c-rankcard {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.15rem;
  margin-bottom: 1rem;
  position: relative;
}
.hl-c-rankcard--winner {
  grid-template-columns: minmax(0, 1fr);
  padding: 1.5rem;
  background: radial-gradient(ellipse at top left, rgba(233, 30, 99, 0.12), transparent 55%);
}
.hl-c-rankcard--winner .hl-c-rankcard__media {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1rem;
  align-items: center;
}
.hl-c-rankcard--alt {
  grid-template-columns: 72px 1fr;
  padding: 0.9rem 1rem;
}
.hl-c-rankcard__media img { object-fit: contain; }
.hl-c-rankcard__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.75rem; }
.hl-c-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  margin: 0;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--hl-accent);
  color: var(--hl-accent);
  font-family: var(--hl-font-display);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hl-c-ctrlgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.hl-c-ctrl { padding: 1.15rem; }
.hl-c-ctrl ul { list-style: none; padding: 0; margin: 0 0 0.75rem; }
.hl-c-ctrl li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
  color: var(--hl-muted);
}
.hl-c-ctrl svg { color: var(--hl-text); flex-shrink: 0; }

.hl-c-faq__item {
  border: 1.5px solid var(--hl-border);
  border-radius: var(--hl-radius);
  padding: 0.75rem 1rem;
  margin-bottom: 0.65rem;
  background: transparent;
}
.hl-c-faq__item summary {
  cursor: pointer;
  font-family: var(--hl-font-display);
  font-weight: 700;
}
.hl-c-faq__item p { margin: 0.65rem 0 0; color: var(--hl-muted); }

.hl-c-blogprev {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.hl-c-blogcard { padding: 0 0 1rem; overflow: hidden; }
.hl-c-blogcard__band {
  height: 72px;
  margin-bottom: 0.85rem;
  background: linear-gradient(120deg, var(--hl-primary-dark), var(--hl-accent));
}
.hl-c-blogcard h3,
.hl-c-blogcard h2 { padding: 0 1rem; }
.hl-c-blogcard p { padding: 0 1rem; color: var(--hl-muted); }
.hl-c-blogcard .hl-c-kicker { padding: 0 1rem; }

.hl-c-cta { padding: 3rem 0; text-align: center; }
.hl-c-cta > .hl-o-wrap { position: relative; z-index: 1; }
.hl-c-cta p { color: var(--hl-muted); max-width: 36rem; margin: 0 auto 1.25rem; }

/* Footer L4#6 centred stack */
.hl-c-footer {
  border-top: 1px solid var(--hl-border);
  background: #0e0c14;
  padding: 2.5rem 0 2rem;
  text-align: center;
}
.hl-c-footer__stack { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.hl-c-footer__lead { max-width: 36rem; color: var(--hl-muted); margin: 0; }
.hl-c-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.hl-c-footer__link {
  border: 0;
  background: none;
  color: var(--hl-accent);
  font: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}
.hl-c-footer__legal,
.hl-c-footer__copy {
  max-width: 44rem;
  color: var(--hl-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* Cookie L10#1 */
.hl-c-cookie {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 110;
  background: #1a1520;
  border-top: 1px solid var(--hl-border);
  padding: 0.85rem 0;
}
.hl-c-cookie:not([hidden]) { display: block; }
.hl-c-cookie__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  justify-content: space-between;
}
.hl-c-cookie p { margin: 0; color: var(--hl-muted); max-width: 48rem; font-size: 0.95rem; }
.hl-c-cookie .hl-c-btn {
  outline: none;
  box-shadow: none;
}
body.hl-cookie-open { padding-bottom: 5.5rem; }

/* Inner pages */
.hl-c-crumbs { width: min(100% - 2rem, var(--hl-max)); margin: 1.25rem auto 0; }
.hl-c-crumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
  color: var(--hl-muted);
}
.hl-c-crumbs__item:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  opacity: 0.5;
}

.hl-c-timeline {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  border-left: 2px solid var(--hl-border);
}
.hl-c-timeline li { padding: 0 0 1.5rem 1.25rem; position: relative; }
.hl-c-timeline li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--hl-accent);
}
.hl-c-timeline time {
  display: block;
  font-family: var(--hl-font-display);
  color: var(--hl-accent);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hl-c-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.hl-c-form { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.85rem; }
.hl-c-form__field { display: flex; flex-direction: column; gap: 0.35rem; }
.hl-c-form__field span { font-family: var(--hl-font-display); font-size: 0.85rem; }
.hl-c-form input,
.hl-c-form textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1.5px solid var(--hl-border);
  border-radius: 6px;
  background: var(--hl-bg-2);
  color: var(--hl-text);
  font: inherit;
}
.hl-c-form__note { font-size: 0.85rem; color: var(--hl-muted); margin: 0; }
.hl-c-contactcard { padding: 1.25rem; }
.hl-c-company { padding: 1.25rem; }

.hl-c-glossary { margin: 1.5rem 0; }
.hl-c-glossary > div {
  border-bottom: 1px solid var(--hl-border);
  padding: 0.85rem 0;
}
.hl-c-glossary dt {
  font-family: var(--hl-font-display);
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.hl-c-glossary dd { margin: 0; color: var(--hl-muted); }

.hl-c-article { max-width: 46rem; }
.hl-c-article__still { margin: 1.25rem 0; }
.hl-c-prose-list { color: var(--hl-muted); }
.hl-c-prose-list li { margin-bottom: 0.5rem; }

.hl-c-next { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--hl-border); }
.hl-c-next__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem;
}
.hl-c-next__list a {
  display: block;
  padding: 1rem;
  color: var(--hl-text) !important;
  background-image: none !important;
}
.hl-c-next__kind {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--hl-accent);
  margin-bottom: 0.35rem;
  font-family: var(--hl-font-display);
}
.hl-c-next__list span:last-child { display: block; color: var(--hl-muted); font-size: 0.9rem; margin-top: 0.35rem; }

.hl-c-collection { margin: 2rem 0; }

.hl-c-404 { padding: 4rem 0 5rem; text-align: center; min-height: 60vh; }
.hl-c-404 > .hl-o-wrap { position: relative; z-index: 1; }
.hl-c-404__moment {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 1.5rem;
  border: 1.5px solid var(--hl-border);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #0a0810;
}
.hl-c-404__beam {
  position: absolute;
  width: 220%;
  height: 18px;
  background: linear-gradient(90deg, transparent, rgba(233, 30, 99, 0.45), transparent);
  transform: rotate(28deg);
  top: 35%;
  left: -40%;
}
.hl-c-404__beam--2 { top: 58%; transform: rotate(-18deg); opacity: 0.55; }
.hl-c-404__glyph {
  position: relative;
  z-index: 1;
  font-family: var(--hl-font-display);
  font-size: 2.5rem;
  color: var(--hl-text);
}
.hl-c-404__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 1.25rem; }

/* Blur-in K#5 — waiting under html.js only */
html.js [data-hl-reveal] {
  opacity: 0;
  transition: opacity 0.01s linear;
}
html.js [data-hl-reveal].hl-is-in {
  opacity: 1;
  animation: hl-k-blur 0.5s ease both;
}
@keyframes hl-k-blur {
  from { filter: blur(8px); opacity: 0; }
  to { filter: blur(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html.js [data-hl-reveal],
  html.js [data-hl-reveal].hl-is-in {
    opacity: 1;
    animation: none;
    filter: none;
  }
  .hl-c-drawer { transition: none; }
}

@media (max-width: 1024px) {
  .hl-c-nav { display: none; }
  .hl-c-header__cta { display: none; }
  .hl-c-burger { display: inline-flex; }
  .hl-c-logo { width: 120px; }
  .hl-c-logo__mark { width: 36px; height: 36px; }
  .hl-c-logo__word { font-size: 1.1rem; }
  :root { --hl-header-h: 64px; }
}

@media (max-width: 768px) {
  .hl-c-feature { grid-template-columns: 1fr; }
  .hl-c-rankcard--winner .hl-c-rankcard__media { grid-template-columns: 72px 1fr; }
  .hl-c-hero__actions .hl-c-btn { width: 100%; }
  .hl-c-cookie__row { flex-direction: column; align-items: stretch; }
  .hl-c-cookie__actions .hl-c-btn { width: 100%; }
}

@media (max-width: 480px) {
  .hl-c-rankcard--alt { grid-template-columns: 1fr; }
}
