@font-face {
  font-family: Manrope;
  src: url('/assets/manrope-latin.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #100e19;
  --panel: #1b1727;
  --text: #fcf8ff;
  --muted: #c9c2d7;
  --line: #3b324c;
  --accent: #d6c2ff;
  --width: 1264px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 6.5rem; }
body {
  margin: 0;
  font: 1rem/1.6 Manrope, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul { margin: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.045em; font-weight: 800; }
:focus-visible { outline: 3px solid #f8e285; outline-offset: 4px; }
.page-width { width: min(var(--width), calc(100% - 5rem)); margin-inline: auto; }
.skip-link {
  position: fixed;
  z-index: 10;
  top: .5rem;
  left: .5rem;
  padding: .65rem 1rem;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 3;
  border-bottom: 1px solid #ffffff14;
  background: #100e19f2;
  backdrop-filter: blur(16px);
}
.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; }
.brand img { width: 42px; height: 42px; object-fit: cover; border-radius: 11px; }
.brand span { font-weight: 800; letter-spacing: -.03em; white-space: nowrap; }
.site-nav { display: flex; gap: clamp(1rem, 3vw, 2.5rem); align-items: center; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: .94rem; font-weight: 750; text-decoration: none; }
.site-nav a:hover { color: var(--text); text-decoration: underline; text-underline-offset: .4em; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(ellipse at 77% 12%, #342268 0, transparent 55%),
    linear-gradient(112deg, #211432, #161324 57%, #152138);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(#ffffff26 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(110deg, transparent 28%, #000 95%);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  align-items: center;
  gap: 1.25rem 2.5rem;
  min-height: 404px;
  padding-block: clamp(2.3rem, 5vw, 4.4rem);
}
.hero h1 { font-size: clamp(3.25rem, 7vw, 6.45rem); line-height: .96; letter-spacing: -.075em; }
.hero h1 span { display: block; color: var(--accent); }
.hero p { max-width: 33ch; margin-block: 1.3rem 1.4rem; font-size: clamp(1rem, 1.6vw, 1.14rem); color: var(--muted); }
.primary, .store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  padding: .65rem .9rem;
  border: 1px solid transparent;
  border-radius: 9px;
  text-align: center;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.25;
}
.primary { padding-inline: 1.25rem; background: #e3d4ff; color: #211632; }
.primary:hover { background: #f1e9ff; }
.hero-art {
  position: relative;
  isolation: isolate;
  aspect-ratio: 1.68;
  border: 1px solid #9c82de72;
  border-radius: 24px;
  background: radial-gradient(ellipse at 47% 80%, #1d519b90, transparent 57%),
    radial-gradient(ellipse at 75% 0%, #7236ac80, transparent 65%), #10122e;
  box-shadow: 8px 8px 0 #161125, 9px 9px 0 #7454a267, 0 24px 55px #08061075;
  overflow: hidden;
}
.hero-art::before, .hero-art::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 98%;
  height: 65%;
  border: 1px solid #ac98ff53;
  border-radius: 50%;
  transform: rotate(-25deg);
}
.hero-art::after { width: 114%; height: 83%; border-color: #879dff37; }
.hero-art img {
  position: absolute;
  inset: 0;
  margin: auto;
  width: auto;
  height: 100%;
  max-width: 95%;
  object-fit: contain;
  mix-blend-mode: screen;
  mask-image: radial-gradient(ellipse at 50% 47%, #000 52%, transparent 75%);
}

.catalogue { padding-block: clamp(2.4rem, 5vw, 4.4rem); }
.section-header { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.35rem; }
.section-header h2, .studio h2 { font-size: clamp(2rem, 4.3vw, 3.25rem); }
.section-header p { color: var(--muted); }
.available-grid, .development-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 1.9vw, 1.5rem); }
.game {
  --game-color: #aebdff;
  --art-position: center;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 28px #08061138;
}
.game:hover, .game:focus-within { border-color: var(--game-color); }
.game:target { outline: 2px solid var(--game-color); outline-offset: 4px; }
.game-christmas { --game-color: #ffcf98; }
.game-pulpdash { --game-color: #7de7f5; --art-position: center 69%; }
.game-ballanche { --game-color: #adc8ff; --art-position: center 24%; }
.game-potion { --game-color: #ffb1e7; --art-position: center 27%; }
.game-brain { --game-color: #b6d5ff; --art-position: center 52%; }
.game-padel { --game-color: #e4f492; }
.game-art {
  position: relative;
  aspect-ratio: 1.52;
  overflow: hidden;
  background: #111630;
  border-bottom: 2px solid var(--game-color);
}
.game-art img { width: 100%; height: 100%; object-fit: cover; object-position: var(--art-position); }
.game-info { display: flex; flex-direction: column; flex: 1; align-items: flex-start; gap: .55rem; padding: 1.1rem; }
.game-info h3 { font-size: clamp(1.28rem, 2.1vw, 1.6rem); }
.game-genre { color: var(--game-color); font-size: .88rem; font-weight: 800; }
.game-description { color: var(--muted); font-size: 1rem; }
.game-actions { width: 100%; margin-top: auto; padding-top: .65rem; }
.store-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.store {
  flex: 1 1 6rem;
  background: #282135;
  border-color: #4c405e;
  color: var(--text);
  font-size: .875rem;
}
.store:hover { background: var(--game-color); border-color: var(--game-color); color: #170f23; }
.trailer-link {
  position: absolute;
  bottom: .65rem;
  right: .65rem;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .35rem .7rem;
  border: 1px solid #ffffff57;
  border-radius: 8px;
  background: #100e19eb;
  font-size: .875rem;
  font-weight: 800;
  text-decoration: none;
}
.trailer-link:hover { background: var(--text); color: var(--bg); }
.game-platform { color: var(--muted); font-size: .875rem; }
.development { margin-top: clamp(2.7rem, 6vw, 5.1rem); }
.development-grid .game { display: grid; grid-template-columns: 34% minmax(0, 1fr); }
.development-grid .game-art { aspect-ratio: auto; border-bottom: 0; border-right: 2px solid var(--game-color); }
.development-grid .game-art img { position: absolute; inset: 0; }
.game-padel .game-art img { object-fit: contain; }
.development-grid .game-info { justify-content: center; padding-block: 1.25rem; }

.studio {
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-block: 1px solid var(--line);
  background: linear-gradient(120deg, #201431, #151324 65%);
}
.studio-inner { display: grid; grid-template-columns: .75fr 1fr; align-items: center; gap: 1rem 2.5rem; }
.studio p { max-width: 56ch; color: var(--muted); }
.site-footer { padding-block: 1.6rem 2rem; }
.footer-inner { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; }
.site-footer p { color: var(--muted); font-size: .9rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; font-size: .9rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: .22em; }
.footer-links a:hover { color: var(--accent); }

.legal-main, .download-main { width: min(760px, calc(100% - 3rem)); padding-block: 3.25rem; min-height: 60vh; }
.legal-main h1, .download-main h1 { margin-bottom: 1.3rem; font-size: clamp(2rem, 6vw, 3.4rem); }
.legal-main h2 { margin: 1.8rem 0 .65rem; font-size: 1.4rem; }
.legal-main p, .legal-main li, .download-main p { color: var(--muted); margin-bottom: .85rem; overflow-wrap: anywhere; }
.legal-main a { text-underline-offset: .2em; }
.legal-main .eyebrow, .legal-main .legal-date { color: var(--accent); font-size: .875rem; }
.legal-main .button { display: inline-block; margin-top: 1rem; }
.download-main { text-align: center; }
.download-main .download-icon { width: 88px; height: 88px; border-radius: 20px; margin: 0 auto 1.2rem; }
.download-main .store-links { justify-content: center; gap: .75rem; width: min(100%, 420px); margin: 1.3rem auto; }
.download-back { display: inline-block; margin-top: 1rem; }

@media (min-width: 1100px) {
  .available-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
  .page-width { width: calc(100% - 2.5rem); }
  .hero-inner { min-height: 0; gap: 1.2rem; }
  .hero h1 { font-size: clamp(2.8rem, 8.25vw, 4.3rem); }
  .section-header { align-items: start; flex-direction: column; gap: .35rem; }
  .development-grid .game { grid-template-columns: 30% minmax(0, 1fr); }
}
@media (max-width: 570px) {
  html { scroll-padding-top: 7.5rem; }
  .header-inner { flex-wrap: wrap; gap: 0; padding-top: .55rem; }
  .brand img { width: 32px; height: 32px; }
  .site-nav { width: 100%; gap: 1.25rem; }
  .site-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 1.55rem; padding-block: 2.2rem 1.75rem; }
  .hero h1 { font-size: clamp(3.15rem, 12vw, 4.35rem); }
  .hero p { margin-block: .9rem 1rem; }
  .hero-art { max-width: 100%; width: 21rem; aspect-ratio: 2; }
  .available-grid { grid-template-columns: 1fr; }
  .game-art { aspect-ratio: 1.84; }
  .development-grid { grid-template-columns: 1fr; }
  .development-grid .game { grid-template-columns: 33% minmax(0, 1fr); }
  .studio-inner { grid-template-columns: 1fr; }
}
@media (max-width: 350px) {
  .page-width { width: calc(100% - 1.75rem); }
  .site-nav { gap: .85rem; }
  .hero h1 { font-size: 2.9rem; }
}
